Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Use unique ids to disambiguate uninterpreted functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed Oct 18, 2019
1 parent 47655bd commit 8b185b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Verifier/SAW/Simulator/SBV.hs
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,10 @@ muxSbvExtra c x y =
sbvSolveBasic :: ModuleMap -> Map Ident SValue -> [String] -> Term -> IO SValue
sbvSolveBasic m addlPrims unints t = do
let unintSet = Set.fromList unints
let uninterpreted (EC _ nm ty)
| Set.member nm unintSet = Just $ parseUninterpreted [] nm ty
| otherwise = Nothing
let extcns (EC ix nm ty) = parseUninterpreted [] (nm ++ "#" ++ show ix) ty
let uninterpreted ec
| Set.member (ecName ec) unintSet = Just (extcns ec)
| otherwise = Nothing
cfg <- Sim.evalGlobal m (Map.union constMap addlPrims) extcns uninterpreted
Sim.evalSharedTerm cfg t

Expand Down

0 comments on commit 8b185b3

Please sign in to comment.