I am starting to use Z3py, and I have so difficulties to understand how function it. I have to know if the array isEmpty or not, but I don't know how create a reference between "x" and "array"
def isEmpty():
x = Int('x')
y = Int('y')
array = Array('array', IntSort(), IntSort())
empty = Bool('isEmpty')
s = Solver()
#s.add(x==0)
dato = Implies(x>0,empty == False),Or(Implies(x<=0,empty == True))
s.add(dato)
if s.check() == sat:
#print("0")
#print(s.model())
return s.model()
if __name__ == '__main__':
isEmpty()