You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently moved to dReal from z3 due to its obvious advantage dealing with non-linear theories. However, for some of the problems I have been working on, I wish to declare functions with a non-numeric(i.e string or character) domain.
For e.g in z3: (declare-datatypes () ((State stopped running)))
was a supported statement which declared the datatype State with the domain {stopped,running}.
I could then simply declare a function as (declare-fun currentState () State)
and it would set the domain for currentState to {stopped,running}
Is there any way to declare such custom datatypes in dReal as well?
The text was updated successfully, but these errors were encountered:
Unfortunately, we don't support declare-datatypes. As far as I know, it's an experimental feature which possibly will be included in the next standard of SMTLIB.
We do support Bool, Int, and Real sorts. I think you may encode the datatype using two Bool variables.
Hi,
I have recently moved to dReal from z3 due to its obvious advantage dealing with non-linear theories. However, for some of the problems I have been working on, I wish to declare functions with a non-numeric(i.e string or character) domain.
For e.g in z3:
(declare-datatypes () ((State stopped running)))
was a supported statement which declared the datatype
State
with the domain{stopped,running}
.I could then simply declare a function as
(declare-fun currentState () State)
and it would set the domain for
currentState
to{stopped,running}
Is there any way to declare such custom datatypes in dReal as well?
The text was updated successfully, but these errors were encountered: