Removed usage of old name, added in a Euler power of like primes example. When the pairwise ASSERT_NEs are absent, you get interesting results that show examples of integer overflows.

This commit is contained in:
Peter Goodman
2017-12-10 14:39:05 -05:00
parent fcd000dc14
commit 8248bbdcbc
8 changed files with 221 additions and 50 deletions
+7
View File
@@ -407,6 +407,13 @@ class DeepState(object):
def api_assume(self, arg, expr_ea, file_ea, line):
"""Implements the `DeepState_Assume` API function, which injects a
constraint into the solver."""
if not self.is_symbolic(arg):
concrete_arg = self.concretize(arg)
if concrete_arg == 0:
self.abandon_test()
else:
return
constraint = arg != 0
if not self.add_constraint(constraint):
expr, _ = self.read_c_string(expr_ea, concretize=False)