Skip to content

Commit

Permalink
Merge pull request #1283 from GaloisInc/issue1045
Browse files Browse the repository at this point in the history
Make `goal_eval_unint` work with polymorphic functions.
  • Loading branch information
mergify[bot] authored May 5, 2021
2 parents c1851b2 + a24bb18 commit 6d3f39c
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 6d3f39c

Please sign in to comment.