Skip to content

Commit

Permalink
Make goal_eval_unint handle Z n types.
Browse files Browse the repository at this point in the history
Fixes #1120.
  • Loading branch information
Brian Huffman committed Apr 28, 2021
1 parent 22dae5b commit a4942a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions saw-core-what4/src/Verifier/SAW/Simulator/What4.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,9 @@ parseUninterpretedSAW sym st sc ref trm app ty =
VIntType
-> VInt <$> mkUninterpretedSAW sym st ref trm app BaseIntegerRepr

VIntModType n
-> VIntMod n <$> mkUninterpretedSAW sym st ref trm app BaseIntegerRepr

-- 0 width bitvector is a constant
VVecType 0 VBoolType
-> return $ VWord ZBV
Expand Down Expand Up @@ -1336,6 +1339,7 @@ mkArgTerm sc ty val =
(_, VWord ZBV) -> return ArgTermBVZero -- 0-width bitvector is a constant
(_, VWord (DBV _)) -> return ArgTermVar
(VUnitType, VUnit) -> return ArgTermUnit
(VIntModType _, VIntMod _ _) -> return ArgTermVar

(VVecType _ ety, VVector vv) ->
do vs <- traverse force (V.toList vv)
Expand Down

0 comments on commit a4942a8

Please sign in to comment.