Open aehyvari opened 8 months ago
I think this is not going to be easy in the current implementation. The code of ArithLogic
assumes we do not create nonlinear expressions.
I see two ways forward here, both of which would be good to have, eventually.
One is a change in the frontend, which would use a new term data structure that would follow closely the term grammar of SMT-LIB, and we would translate that to PTRef
during some internalization process.
Second change is to actually start supporting nonlinear arithmetic, at least in the term representation.
Opensmt throws a
LANonLinearException
on this instance. It'd be nice if it didn't. Maybe we should somehow tellArithLogic
when it is parsing adefine-fun
to ignore the nonlinearities.