-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: invertibility condition for SLTU (when
t != 0
)
This fixes the bogus assumption that `t != BitVector(1)` implies that `t == BitVector(0)`, which does not hold in our engine since the target value `t` can be any arbitrary 64-bit vector. Determining whether such target values make sense in general is outside the scope of this change.
- Loading branch information
1 parent
c24270a
commit 6947f52
Showing
3 changed files
with
64 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
uint64_t main() { | ||
uint64_t a; | ||
uint64_t* x; | ||
|
||
x = malloc(8); | ||
|
||
*x = 0; | ||
|
||
read(0, x, 1); | ||
|
||
a = *x - 42; | ||
|
||
if (a < 0) | ||
return 0; | ||
if (a > 18446744073709551615) | ||
return 0; | ||
if (a == 18446744073709551615) | ||
return 1; | ||
|
||
return 0; | ||
} |
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