definition: |
lit2SMT :: Literal -> Term lit2SMT (Intc i) = TConst (TInt i) lit2SMT (Floatc f) = TConst (TFloat f) lit2SMT (Charc c) = TConst (TInt (ord c)) |
demand: |
argument 1 |
deterministic: |
deterministic operation |
documentation: |
Translates a literal into an SMT expression. We represent character as ints. |
failfree: |
_ |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{({Intc}) |-> {TConst} || ({Floatc}) |-> {TConst} || ({Charc}) |-> {TConst}} |
name: |
lit2SMT |
precedence: |
no precedence defined |
result-values: |
{TConst} |
signature: |
FlatCurry.Types.Literal -> Verify.ESMT.Term |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |