Skip to content

Commit

Permalink
Fix implementation of append in symbolic simulator
Browse files Browse the repository at this point in the history
The case 'VWord # VStream' was previously missing from the definition.
This addresses issue #131.
  • Loading branch information
Brian Huffman committed Oct 23, 2014
1 parent 337b7d3 commit bb3ffde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cryptol/Symbolic/Prims.hs
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ mapV f v =
_ -> panic "Cryptol.Symbolic.Prims.mapV" [ "non-mappable value" ]

catV :: Value -> Value -> Value
catV xs (VStream ys) = VStream (fromSeq xs ++ ys)
catV (VWord x) ys = VWord (cat x (fromWord ys))
catV xs (VWord y) = VWord (cat (fromWord xs) y)
catV (VSeq b xs) (VSeq _ ys) = VSeq b (xs ++ ys)
catV (VSeq _ xs) (VStream ys) = VStream (xs ++ ys)
catV _ _ = panic "Cryptol.Symbolic.Prims.catV" [ "non-concatenable value" ]

dropV :: Integer -> Value -> Value
Expand Down

0 comments on commit bb3ffde

Please sign in to comment.