Skip to content

Commit

Permalink
fix hgoes#20
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Waldmann committed Mar 16, 2021
1 parent f1f1146 commit f96e515
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backends/pipe/Language/SMTLib2/Pipe/Internals.hs
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,10 @@ lispToExprWith :: (GShow fun,GShow e,GetFunType fun,GetType e)
-> LispParse a)
-> LispParse a
lispToExprWith p hint (runExcept . lispToConstant -> Right (AnyValue val)) res
= res (Const val)
= case (hint,val) of
(Just (Sort RealRepr), IntValue i) ->
res (Const $ RealValue $ fromInteger i)
_ -> res (Const val)
lispToExprWith p hint (L.Symbol sym) res
= parseVar p hint sym (res . Expr.Var) (res . Expr.QVar) (res . Expr.FVar) (res . Expr.LVar) `catchError`
(\_ -> do
Expand Down

0 comments on commit f96e515

Please sign in to comment.