-- For now, we assume library methods return ints. Fixing this would require type information of library methods.
t->ifignoreLibMethodsthenmkStringSymbol"libMethodCall">>=mkIntVarelseerror("Verifier: Type of "++prettyPrintname++" unknown or not implemented: "++showt)
'$':_->ifignoreLibMethodsthenmkStringSymbol"libMethodCall">>=mkIntVarelseerror"introduced variable in WLP expression"
-- If we're not dealing with library methods, we should be able to get the type from the type environment
_->caselookupTypedeclsenvnameof
PrimTypeBooleanT->mkBoolVarsymbol
PrimTypeFloatT->mkRealVarsymbol
PrimTypeDoubleT->mkRealVarsymbol
PrimTypeIntT->mkIntVarsymbol
RefType_->mkIntVarsymbol
t->error("Verifier: Type of "++prettyPrintname++" unknown or not implemented: "++showt)