diff options
author | qunyanm <qunyanm@hotmail.com> | 2015-11-16 11:03:28 -0800 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-12-02 09:22:24 +0000 |
commit | f97656456a74564cdf96633c3f46223d39e2c6f2 (patch) | |
tree | f3c0b415cd624a8732fb8d5d162778c2c1648ef7 /Test/test2/BadLineNumber.bpl | |
parent | e172da3b4ac7f8d352d366d81f1c7c3184426033 (diff) |
Use the EndCurly token when creating the ReturnCmd for unifiedExit
When there are more than one exit blocks, an unified exit block is
created which includes a ReturnCmd. However, the ReturnCmd is created
with NoToken. This causes the line/column number reported for a failed
postcondition to be (0,0). The right token should be the EndCurly since
the ReturnCmd is in the exit block.
Diffstat (limited to 'Test/test2/BadLineNumber.bpl')
-rw-r--r-- | Test/test2/BadLineNumber.bpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/test2/BadLineNumber.bpl b/Test/test2/BadLineNumber.bpl new file mode 100644 index 00000000..b8776a4e --- /dev/null +++ b/Test/test2/BadLineNumber.bpl @@ -0,0 +1,15 @@ +// RUN: %boogie "%s" > "%t" +// RUN: %diff "%s.expect" "%t" + +procedure p(); + ensures false; + +implementation p() +{ + if (*) + { + } + else + { + } +}
\ No newline at end of file |