-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1600 from GaloisInc/mr-solver/widening
Mr Solver Widening
- Loading branch information
Showing
6 changed files
with
262 additions
and
118 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,19 @@ | ||
include "arrays.saw"; | ||
|
||
let eq_bool b1 b2 = | ||
if b1 then | ||
if b2 then true else false | ||
else | ||
if b2 then false else true; | ||
|
||
let fail = do { print "Test failed"; exit 1; }; | ||
let run_test name test expected = | ||
do { if expected then print (str_concat "Test: " name) else | ||
print (str_concat (str_concat "Test: " name) " (expecting failure)"); | ||
actual <- test; | ||
if eq_bool actual expected then print "Success\n" else | ||
do { print "Test failed\n"; exit 1; }; }; | ||
|
||
// Test that contains0 |= contains0 | ||
contains0 <- parse_core_mod "arrays" "contains0"; | ||
mr_solver_debug 1 contains0 contains0; | ||
run_test "contains0 |= contains0" (mr_solver contains0 contains0) true; |
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
Oops, something went wrong.