Skip to content

Commit

Permalink
Fix incorrect implementation of intModUnOp in sbv backend.
Browse files Browse the repository at this point in the history
This was an unintentional omission from PR #93, which correctly
updated `intModUnOp` in the what4 backend, but not in sbv.

Fixes #114.
  • Loading branch information
Brian Huffman committed Dec 10, 2020
1 parent f61023e commit 56f6585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saw-core-sbv/src/Verifier/SAW/Simulator/SBV.hs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ intModBinOp f =
intModUnOp :: (SInteger -> SInteger) -> SValue
intModUnOp f =
Prims.natFun $ \n -> return $
Prims.intFun "intModUnOp" $ \x -> return $
Prims.intModFun "intModUnOp" $ \x -> return $
VIntMod n (normalizeIntMod n (f x))

normalizeIntMod :: Natural -> SInteger -> SInteger
Expand Down

0 comments on commit 56f6585

Please sign in to comment.