is there a built in method in Z3 python to convert a formula to DNF ? I would imagine applying some strategies or tactics to do so.
Also, how do I "create" an expression, for example, if I have the variables
op=Or, arg1=True, arg2=False
I want to create the expression Or(True,False) using op,arg1,arg2. I could do something like
if op.name == 'or': Or(arg1,arg2)
elif op.name == 'and': And(arg1,arg2)
...
but is there a better way ?
Also, I recall there's a file in Z3 that lists the sort code, e.g. 2L is Z3_INT_SORT, what's its name ?