Skip to content

Commit f5e2ed3

Browse files
committed
saw-core: Add special error message for recursor applied to bvToNat.
1 parent db2ae99 commit f5e2ed3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

saw-core/src/SAWCore/Simulator.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ evalTermF cfg lam recEval tf env =
251251
VCtorMux _ps branches ->
252252
do alts <- traverse (evalCtorMuxBranch vrec) (IntMap.elems branches)
253253
combineAlts alts
254+
VBVToNat{} ->
255+
panic "evalTerF / evalRecursor"
256+
["Unsupported symbolic recursor argument of type Nat"]
254257
_ ->
255258
panic "evalTermF / evalRecursor"
256259
["Expected constructor for datatype: " <> toAbsoluteName (nameInfo d)]

0 commit comments

Comments
 (0)