mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-16 20:03:27 +03:00
Fix implementation of append in symbolic simulator
The case 'VWord # VStream' was previously missing from the definition. This addresses issue #131.
This commit is contained in:
parent
337b7d3a38
commit
bb3ffde9ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user