Closed PRugg-Cap closed 2 weeks ago
It hits https://github.com/rems-project/sail/blob/9fd675d56144e05e107aabb9c11ef0a8874c07f2/src/lib/smt_gen.ml#L381 if I uncomment the failwith
. Looks like a V_struct
case is missing?
Changing this line to false might work around it. Probably hadn't considered this case as I've mostly been using the SMT as an intermediate representation for SystemVerilog expressions, where there aren't any struct literals.
Apologies for raising multiple issues: I'm finally trying to use the refactored backend. Really appreciate your time on this!
I appreciate it, there are probably lots of small issue right now that I just haven't hit, as I haven't really been using the generated SMT in anger.
Changing this line to false might work around it.
Lifesaver! Thank you :)
Should be fixed by https://github.com/rems-project/sail/pull/675
The following code:
Generates the following SMT2 file (sail 0.18.0,
sail -smt test.sail
):This then causes a z3 error:
(error "line 5 column 27: unknown constant zUNKNOWN")
Apologies for raising multiple issues: I'm finally trying to use the refactored backend. Really appreciate your time on this!