mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-14 11:16:33 +03:00
Use correct default value for symbolic indexing. Fixes #388.
We now use the zero value of the element type as the default; previously we were incorrectly using the zero value of the *index* type.
This commit is contained in:
parent
e48f430b30
commit
08a7982a46
@ -333,7 +333,7 @@ indexFront mblen a xs idx
|
||||
where
|
||||
k = SBV.kindOf idx
|
||||
w = SBV.intSizeOf idx
|
||||
def = ready $ VWord (toInteger w) $ ready $ WordVal $ SBV.svInteger k 0
|
||||
def = ready $ zeroV a
|
||||
f n y = iteValue (SBV.svEqual idx (SBV.svInteger k n)) (lookupSeqMap xs n) y
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user