Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dafny fails, but returns exit status of zero #21

Closed
0xabu opened this issue Aug 15, 2016 · 0 comments
Closed

Dafny fails, but returns exit status of zero #21

0xabu opened this issue Aug 15, 2016 · 0 comments
Assignees
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label

Comments

@0xabu
Copy link

0xabu commented Aug 15, 2016

Dafny generally gets the exit status correct for verification, but some invocations that emit an error message incorrectly return an exit status of zero. This is a minor bug, but still isn't good for a parent build system.

For example, in both of these cases Dafny has clearly failed (at a different stage) and printed an error message, but it returned a zero exit status:

% Dafny.exe /noNLarith /timeLimit:60 /trace /compile:0 main.i.dfy
[TRACE] Using prover: C:\Users\baumann\src\spartan\tools\Mindy\Binaries\z3.exe
Dafny program verifier version 1.9.7.30401, Copyright (c) 2003-2016, Microsoft.
Parsing main.i.dfy
smc_handler.gen.dfy(1499,7): Error: more than one declaration of function/procedure name: CheckWellformed$$_.Main
smc_handler.gen.dfy(1499,7): Error: more than one declaration of function/procedure name: IntraModuleCall$$_.Main
2 name resolution errors detected in C:\cygwin64\tmp\main.i.bpl

*** Encountered internal translation error - re-running Boogie to get better debug information

C:\cygwin64\tmp\main.i.bpl(6013,10): Error: more than one declaration of function/procedure name: CheckWellformed$$_.Main
C:\cygwin64\tmp\main.i.bpl(6018,10): Error: more than one declaration of function/procedure name: IntraModuleCall$$_.Main
2 name resolution errors detected in C:\cygwin64\tmp\main.i.bpl
% Dafny.exe /trace /noVerify /compile:2 /out:main.exe main.i.dfy
[TRACE] Using prover: C:\Users\baumann\src\spartan\tools\Mindy\Dafny\z3.exe
Dafny program verifier version 1.9.7.30401, Copyright (c) 2003-2016, Microsoft.
Parsing main.i.dfy
Coalescing blocks...
Inlining...

Running abstract interpretation...
  [0.0624617 s]

Dafny program verifier finished with 0 verified, 0 errors
Compilation error: an assume statement cannot be compiled (line 188)
Compilation error: an assume statement cannot be compiled (line 235)
@parno parno added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Sep 19, 2016
camrein added a commit that referenced this issue Apr 8, 2021
Add integration tests to ensure file load stability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Projects
None yet
Development

No branches or pull requests

3 participants