Skip to content

Commit

Permalink
fix arg snafu
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Oct 30, 2023
1 parent 55bed72 commit a84d38f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/SBV/SMT/SMTLib2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,11 @@ cvtExp curProgInfo caps rm tableMap functionMap expr@(SBVApp _ arguments) = sh e
| bvOp, sgned = mkAbs fArg "bvslt" "bvneg"
| bvOp = fArg
| True = mkAbs fArg "<" "-"
where fArg = hd "liftAgs" args
where fArg = hd "liftAbs" args
mkAbs x cmp neg = "(ite " ++ ltz ++ " " ++ nx ++ " " ++ x ++ ")"
where ltz = "(" ++ cmp ++ " " ++ x ++ " " ++ z ++ ")"
nx = "(" ++ neg ++ " " ++ x ++ ")"
z = cvtCV rm (mkConstCV (kindOf fArg) (0::Integer))
z = cvtCV rm (mkConstCV (kindOf (hd "liftAbs.arguments" arguments)) (0::Integer))

lift2B bOp vOp
| boolOp = lift2 bOp
Expand Down

0 comments on commit a84d38f

Please sign in to comment.