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

Commit

Permalink
Adapt vAsFirstOrderType to saw-core tuple representation.
Browse files Browse the repository at this point in the history
Since saw-core revision 5c0f54e0 (December 2018), tuple
types are no longer nil-terminated.
  • Loading branch information
Brian Huffman committed Dec 3, 2019
1 parent 8b185b3 commit 414d7b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Verifier/SAW/Simulator/SBV.hs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ vAsFirstOrderType v =
t2 <- vAsFirstOrderType v2
case t2 of
FOTTuple ts -> return (FOTTuple (t1 : ts))
_ -> Nothing
_ -> return (FOTTuple [t1, t2])

VRecordType tps
-> (FOTRec <$> Map.fromList <$>
mapM (\(f,tp) -> (f,) <$> vAsFirstOrderType tp) tps)
Expand Down

0 comments on commit 414d7b3

Please sign in to comment.