-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
064b44a
commit a7ce5e0
Showing
15 changed files
with
151 additions
and
170 deletions.
There are no files selected for viewing
5 changes: 1 addition & 4 deletions
5
...lit/assumeFalseSplit/AssumeFalseSplit.bpl → ...tationDivision/split/AssumeFalseSplit.bpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Test/implementationDivision/split/AssumeFalseSplit.bpl.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
implementation Foo/split@4() | ||
{ | ||
|
||
anon3_Then: | ||
assert 2 == 1 + 1; | ||
assume false; | ||
return; | ||
} | ||
|
||
|
||
implementation Foo/split@11() | ||
{ | ||
|
||
anon3_Else: | ||
assume 2 == 1 + 1; | ||
assert {:split_here} 2 == 2; | ||
assume 3 == 2 + 1; | ||
assume 1 == 1; | ||
goto ; | ||
} | ||
|
||
|
||
implementation Foo/split@12() | ||
{ | ||
|
||
anon3_Else: | ||
assume 2 == 1 + 1; | ||
assume 2 == 2; | ||
assert {:split_here} 3 == 2 + 1; | ||
assert 1 == 1; | ||
goto ; | ||
} | ||
|
||
|
||
|
||
Boogie program verifier finished with 1 verified, 0 errors |
6 changes: 1 addition & 5 deletions
6
...ionDivision/split/originalSplit/Split.bpl → Test/implementationDivision/split/Split.bpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
implementation Foo/split@4() returns (y: int) | ||
{ | ||
|
||
anon0: | ||
assert 5 + 0 == 5; | ||
assert 5 * 5 <= 25; | ||
assume x#AT#0 + y#AT#0 == 5; | ||
assume x#AT#0 * x#AT#0 <= 25; | ||
assume {:partition} 0 >= x#AT#0; | ||
assume y#AT#2 == y#AT#0; | ||
assert y#AT#2 >= 0; | ||
return; | ||
} | ||
|
||
|
||
implementation Foo/split@15() returns (y: int) | ||
{ | ||
|
||
anon0: | ||
assume 5 + 0 == 5; | ||
assume 5 * 5 <= 25; | ||
assume x#AT#0 + y#AT#0 == 5; | ||
assume x#AT#0 * x#AT#0 <= 25; | ||
assume {:partition} x#AT#0 > 0; | ||
assume x#AT#1 == x#AT#0 - 1; | ||
assert {:split_here} (x#AT#1 + y#AT#0) * (x#AT#1 + y#AT#0) > 25; | ||
assume y#AT#1 == y#AT#0 + 1; | ||
assume {:partition} x#AT#1 < 3; | ||
assert 2 < 2; | ||
assume y#AT#1 * y#AT#1 > 4; | ||
goto ; | ||
} | ||
|
||
|
||
implementation Foo/split@19() returns (y: int) | ||
{ | ||
|
||
anon0: | ||
assume 5 + 0 == 5; | ||
assume 5 * 5 <= 25; | ||
assume x#AT#0 + y#AT#0 == 5; | ||
assume x#AT#0 * x#AT#0 <= 25; | ||
assume {:partition} x#AT#0 > 0; | ||
assume x#AT#1 == x#AT#0 - 1; | ||
assume (x#AT#1 + y#AT#0) * (x#AT#1 + y#AT#0) > 25; | ||
assume y#AT#1 == y#AT#0 + 1; | ||
assume {:partition} x#AT#1 < 3; | ||
assume 2 < 2; | ||
assert {:split_here} y#AT#1 * y#AT#1 > 4; | ||
goto ; | ||
} | ||
|
||
|
||
implementation Foo/split@22() returns (y: int) | ||
{ | ||
|
||
anon0: | ||
assume 5 + 0 == 5; | ||
assume 5 * 5 <= 25; | ||
assume x#AT#0 + y#AT#0 == 5; | ||
assume x#AT#0 * x#AT#0 <= 25; | ||
assume {:partition} x#AT#0 > 0; | ||
assume x#AT#1 == x#AT#0 - 1; | ||
assume (x#AT#1 + y#AT#0) * (x#AT#1 + y#AT#0) > 25; | ||
assume y#AT#1 == y#AT#0 + 1; | ||
assume {:partition} 3 <= x#AT#1; | ||
assert {:split_here} y#AT#1 * y#AT#1 * y#AT#1 < 8; | ||
assert 2 < 2; | ||
goto ; | ||
} | ||
|
||
|
||
implementation Foo/split@25() returns (y: int) | ||
{ | ||
|
||
anon0: | ||
assume 5 + 0 == 5; | ||
assume 5 * 5 <= 25; | ||
assume x#AT#0 + y#AT#0 == 5; | ||
assume x#AT#0 * x#AT#0 <= 25; | ||
assume {:partition} x#AT#0 > 0; | ||
assume x#AT#1 == x#AT#0 - 1; | ||
assume (x#AT#1 + y#AT#0) * (x#AT#1 + y#AT#0) > 25; | ||
assume y#AT#1 == y#AT#0 + 1; | ||
goto anon6_Then, anon6_Else; | ||
|
||
anon6_Then: | ||
assume {:partition} x#AT#1 < 3; | ||
assume 2 < 2; | ||
assume y#AT#1 * y#AT#1 > 4; | ||
goto anon4; | ||
|
||
anon6_Else: | ||
assume {:partition} 3 <= x#AT#1; | ||
assume y#AT#1 * y#AT#1 * y#AT#1 < 8; | ||
assume 2 < 2; | ||
goto anon4; | ||
|
||
anon4: | ||
assert {:split_here} (x#AT#1 + y#AT#1) * (x#AT#1 + y#AT#1) == 25; | ||
assert x#AT#1 + y#AT#1 == 5; | ||
assert x#AT#1 * x#AT#1 <= 25; | ||
assume false; | ||
return; | ||
} | ||
|
||
|
||
Split.bpl(15,5): Error: this assertion could not be proved | ||
Execution trace: | ||
Split.bpl(8,5): anon0 | ||
|
||
Boogie program verifier finished with 0 verified, 1 error |
2 changes: 0 additions & 2 deletions
2
Test/implementationDivision/split/assumeFalseSplit/AssumeFalseSplit.bpl.expect
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
Test/implementationDivision/split/assumeFalseSplit/Foo.split.0.bpl.expect
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
Test/implementationDivision/split/assumeFalseSplit/Foo.split.1.bpl.expect
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
Test/implementationDivision/split/assumeFalseSplit/Foo.split.2.bpl.expect
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
Test/implementationDivision/split/originalSplit/Foo.split.0.bpl.expect
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
Test/implementationDivision/split/originalSplit/Foo.split.1.bpl.expect
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
Test/implementationDivision/split/originalSplit/Foo.split.2.bpl.expect
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
Test/implementationDivision/split/originalSplit/Foo.split.3.bpl.expect
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
Test/implementationDivision/split/originalSplit/Foo.split.4.bpl.expect
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
Test/implementationDivision/split/originalSplit/Split.bpl.expect
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters