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:
Brian Huffman 2016-12-13 17:40:57 -08:00
parent e48f430b30
commit 08a7982a46

View File

@ -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