definition: |
preCondExpOf :: VerifyInfo -> QName -> [(Int,TypeExpr)] -> TransStateM Term preCondExpOf ti qf args = maybe (return tTrue) (\fd -> applyFunc fd args >>= pred2smt) (find (\fd -> decodeContractQName (funcName fd) == toPreCondQName (fromNoCheckQName qf)) (preConds ti)) |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
Returns the precondition expression for a given operation and its arguments (which are assumed to be variable indices). Rename all local variables by adding the `freshvar` index to them. |
failfree: |
<FAILING> |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_,_) |-> _} |
name: |
preCondExpOf |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
VerifierState.VerifyInfo -> (String, String) -> [(Prelude.Int, FlatCurry.Types.TypeExpr)] -> Control.Monad.Trans.State.StateT TransState Prelude.IO ESMT.Term |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |