Before going into example I just want to emphesize that I have tinkered with the current code base to run it against the newest version of z3 (4.12.2) and python (3.11.4).
To do so I have changed all occurences of inspect.getargspec to inspect.getfullargspec
in symbolic/loader.py and symbolic/symbolic_types/symbolic_type.py
All tests except bignum are passing.
My example looks like the following:
def kolor(x,y):
if y < x - 2 :
return 7
else :
return 2
def zwierze(x,y):
if y > 3 :
return 10
else:
return 50
def czynnosc(x,y):
if y < -x + 3 :
return 100
else :
return 200
def yolo(a,b):
return kolor(a,b)+zwierze(a,b)+czynnosc(a,b)
def expected_result():
return [ 112, 157, 152, 217, 212, 257, 252]
#print (yolo(-2,4))
I have exected to find 7 paths with results like in the array returned by expected_result function but instead I got the following:
Before going into example I just want to emphesize that I have tinkered with the current code base to run it against the newest version of z3 (4.12.2) and python (3.11.4). To do so I have changed all occurences of
inspect.getargspec
toinspect.getfullargspec
insymbolic/loader.py
andsymbolic/symbolic_types/symbolic_type.py
All tests except bignum are passing.
My example looks like the following:
I have exected to find 7 paths with results like in the array returned by
expected_result
function but instead I got the following:Why am I getting
257
twice and why a path resulting in112
is not found ?