-
Notifications
You must be signed in to change notification settings - Fork 29
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 #1074 from daniel-larraz/mult-two-polys-error
Handle non-linear terms gracefully in to_presburger
- Loading branch information
Showing
4 changed files
with
34 additions
and
2 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
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,24 @@ | ||
node s2 (n: int) returns (x: int); | ||
var n0: int; | ||
let | ||
n0 = n -> pre n0; | ||
x = n0 -> pre x + n0; | ||
tel | ||
|
||
node s3 (n: int) returns (x: int); | ||
var mult: int; | ||
var n0: int; | ||
let | ||
mult = 1 -> pre mult + 1; | ||
n0 = n -> pre n0; | ||
x = n0 * mult; | ||
tel | ||
|
||
node check_s3 (n: int) returns (x: bool); | ||
var x1: int; | ||
var x2: int; | ||
let | ||
x1 = s2(n); | ||
x2 = s3(n); | ||
check x1 = x2; | ||
tel |