-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unfold with undecided guards in PLE when new equalities are discovered
- Loading branch information
1 parent
03b5be0
commit 3625f16
Showing
2 changed files
with
40 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// minimal reproduction of LH #1409. UNSAFE with --rewrite; SAFE with --rewrite --noincrple | ||
fixpoint "--rewrite" | ||
fixpoint "--save" | ||
|
||
expand [1: True] | ||
|
||
constant add1 : (func(0 , [int; int])) | ||
constant add2 : (func(0 , [int; int])) | ||
constant sel : (func(0 , [int; int])) | ||
|
||
define add1 (x : int) : int = { x + 1 } | ||
define add2 (x : int) : int = { add1 (add1 x) } | ||
define sel (x : int) : int = { if ((add2 x) = (x + 2)) then 0 else 1 } | ||
|
||
bind 0 t : {v: int | true } | ||
bind 1 t2 : {v: int | true } | ||
|
||
constraint: | ||
env [0;1] | ||
lhs {v : int | true } | ||
rhs {v : int | sel 1 = 0 } | ||
id 1 tag [] |