diff options
| author | Alasdair Armstrong | 2019-04-23 21:35:14 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-04-23 21:39:14 +0100 |
| commit | e5080e3f018fcd222906bf8129e53f32c138f8d8 (patch) | |
| tree | 20f63f262dd6a8be74170adc651504cd64395df0 /test/smt | |
| parent | 69f29a485af953a20005fd1d739e51ca576d4ecc (diff) | |
SMT: Add parser for generated models
Simple parser-combinator style parser for generated models. It's
actually quite tricky to reconstruct the models because we can have:
let x = something
$counterexample
function prop(x: bits(32)) -> bool = ...
where the function argument becomes zx/1 rather than zx/0, which is what
we'd expect for the argument of a property. Might need to do something
smarter with encoding locations into smt names to figure out what SMT
variables correspond to which souce variables exactly. The above
also previously generated incorrect SMT, which has now been fixed.
Diffstat (limited to 'test/smt')
| -rw-r--r-- | test/smt/tl_let_shadow.sat.sail | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/smt/tl_let_shadow.sat.sail b/test/smt/tl_let_shadow.sat.sail new file mode 100644 index 00000000..b8830a09 --- /dev/null +++ b/test/smt/tl_let_shadow.sat.sail @@ -0,0 +1,10 @@ +default Order dec + +$include <prelude.sail> + +let xs = 0xFFFF_FFFF + +$counterexample +function prop(xs: bits(32)) -> bool = { + xs == 0xFFFF_FFFF +}
\ No newline at end of file |
