z3py - Uninterpreted datatype in Z3 -
i'd create uninterpreted datatype in z3 lets call "a". according z3 documentations, can declare using "declaresort" follows:
a = declaresort('a') a, b = consts('a b', a) s = solver() s.add(a != b) s.check()
however i've seen people using following:
a = datatype('event') a.declare('a0') = a.create() a, b = consts('a b', a)
my question difference between 2 , 1 correct declare new uninterpreted datatype. not understand a.declare('a0') means in second part.
the event datatype contains 1 element called a0, should use first suggestion use declaresort.
Comments
Post a Comment