-
-
Save sysopfb/2672c6da333e6af6f7e63a900eddf511 to your computer and use it in GitHub Desktop.
michael
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
from z3 import * | |
x = BitVec('x',32) | |
y = BitVec('y',16) | |
s = Solver() | |
s.add(x * ZeroExt(16,y) == 0x7B5658DB) | |
s.add(ZeroExt(16,x) * ZeroExt(32, y) > 0x7B5658DB) | |
vals=[] | |
while s.check() == sat: | |
#print(s.model()) | |
vals.append((s.model()[x], s.model()[y])) | |
s.add(Or(x != s.model()[x], y != s.model()[y])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment