Skip to content

Commit

Permalink
Make goal_eval_unint work with polymorphic functions.
Browse files Browse the repository at this point in the history
Fixes #1045.
  • Loading branch information
Brian Huffman committed May 5, 2021
1 parent fc1fc74 commit 3e5cd0a
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 @@ -1359,6 +1359,10 @@ mkArgTerm sc ty val =
x <- scCtorApp sc i xs
return (ArgTermConst x)

(_, TValue tval) ->
do x <- termOfTValue sc tval
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 3e5cd0a

Please sign in to comment.