saw-core-what4
: Support SMT arrays with record/tuple elements
#1988
Labels
subsystem: saw-core
Issues related to the saw-core representation or the saw-core subsystem
type: enhancement
Issues describing an improvement to an existing feature or capability
SAW currently crashes if you try to load this spec:
The root cause is this code:
saw-script/saw-core-what4/src/Verifier/SAW/Simulator/What4.hs
Lines 317 to 327 in 8172a46
This is missing a case for
BaseStructRepr
, which is what SAW desugars Cryptol's record/tuple types into. That being said, adding such a case is not entirely straightforward. I made an attempt at this in this commit, but this ended up generating the wrong SMT code! The problem is that this Cryptol type:Will desugar into this What4 type:
This is definitely not the order I expected it to be in, and I suspect that I may need to carefully reverse some things in my earlier commit in order to make the code correct. I haven't had time to investigate this more deeply than that, unfortunately.
The text was updated successfully, but these errors were encountered: