diff options
| author | Alasdair Armstrong | 2019-04-17 15:25:50 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-04-17 15:25:50 +0100 |
| commit | bcf2221ba51a3df93c96e3f4a1e779079914d68d (patch) | |
| tree | e736f9a1c39f961afda34bc4ac88a9522337a72f /test/smt | |
| parent | 8be892e3653472bfc0fa7b38930e20b3fcf9f81b (diff) | |
SMT: Unroll simple foreach loops
Diffstat (limited to 'test/smt')
| -rw-r--r-- | test/smt/foreach_simple.unsat.sail | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/smt/foreach_simple.unsat.sail b/test/smt/foreach_simple.unsat.sail new file mode 100644 index 00000000..d971affb --- /dev/null +++ b/test/smt/foreach_simple.unsat.sail @@ -0,0 +1,13 @@ +default Order dec + +$include <prelude.sail> + +$property +function prop() -> bool = { + let n = 3; + bv = 0x0; + foreach (i from 0 to n) { + bv[i] = bitone + }; + bv == 0xF +} |
