-
Notifications
You must be signed in to change notification settings - Fork 32
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 #247 from uclid-org/adt.constructionordering
Fix minor bug in ADT datatype declaration field ordering
- Loading branch information
Showing
6 changed files
with
113 additions
and
1 deletion.
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
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,29 @@ | ||
|
||
|
||
module main { | ||
|
||
datatype adt_t = A (ia : integer, ba : bv4) | B (ib : integer, bb : boolean); | ||
|
||
var adt1 : adt_t; | ||
var adt2 : adt_t; | ||
|
||
init { | ||
adt1 = B(10, true); | ||
adt2 = A(10, 4bv4); | ||
} | ||
|
||
next { | ||
adt1' = B(adt1.ib+1, adt1.bb); | ||
adt2' = A(adt2.ia+1, adt2.ba); | ||
} | ||
|
||
property match: adt1.ib == adt2.ia; | ||
|
||
control { | ||
v = bmc(2); | ||
check; | ||
print_results; | ||
v.print_cex_json(); | ||
} | ||
|
||
} |
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,29 @@ | ||
|
||
|
||
module main { | ||
|
||
datatype adt_t = A (ia : integer, ba : bv4) | B (ib : integer, bb : boolean); | ||
|
||
var adt1 : adt_t; | ||
var adt2 : adt_t; | ||
|
||
init { | ||
adt1 = B(true, 10); | ||
adt2 = A(10, 4bv4); | ||
} | ||
|
||
next { | ||
adt1' = B(adt1.ib+1, adt1.bb); | ||
adt2' = A(adt2.ia+1, adt2.ba); | ||
} | ||
|
||
property match: adt1.ib == adt2.ia; | ||
|
||
control { | ||
v = bmc(2); | ||
check; | ||
print_results; | ||
v.print_cex_json(); | ||
} | ||
|
||
} |
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,29 @@ | ||
|
||
|
||
module main { | ||
|
||
datatype adt_t = A (i : integer, b : bv4) | B (i : integer, b : boolean); | ||
|
||
var adt1 : adt_t; | ||
var adt2 : adt_t; | ||
|
||
init { | ||
adt1 = B(10, true); | ||
adt2 = A(10, 4bv4); | ||
} | ||
|
||
next { | ||
adt1' = B(adt1.i+1, adt1.b); | ||
adt2' = A(adt2.i+1, adt2.b); | ||
} | ||
|
||
property match: adt1.i == adt2.i; | ||
|
||
control { | ||
v = bmc(2); | ||
check; | ||
print_results; | ||
v.print_cex_json(); | ||
} | ||
|
||
} |