Skip to content

Commit

Permalink
Make goal_eval_unint handle functions with arguments of type Nat.
Browse files Browse the repository at this point in the history
We can now make functions like `take` and `drop` uninterpreted.

Fixes #1588.
  • Loading branch information
Brian Huffman committed Feb 21, 2022
1 parent a134e4a commit 147209b
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 @@ -1519,6 +1519,10 @@ mkArgTerm sc ty val =
do x <- termOfTValue sc tval
pure (ArgTermConst x)

(_, VNat n) ->
do x <- scNat sc n
pure (ArgTermConst x)

_ -> fail $ "could not create uninterpreted function argument of type " ++ show ty

termOfTValue :: SharedContext -> TValue (What4 sym) -> IO Term
Expand Down

0 comments on commit 147209b

Please sign in to comment.