summaryrefslogtreecommitdiff
path: root/test/smt/shiftr_zero_1.sat.sail
diff options
context:
space:
mode:
authorAlasdair Armstrong2019-04-05 14:45:21 +0100
committerAlasdair Armstrong2019-04-09 16:16:32 +0100
commit97cc026337ea5cfc33586b6725c312c1a507f922 (patch)
tree93d9682e005855b58e8eec6cf6e649d22df1f5c3 /test/smt/shiftr_zero_1.sat.sail
parent76bf4a3853e547ae2e0327b20e4f4b89d16820b7 (diff)
SMT: Experimental Jib->SMT translation
Currently only works with CVC4, test cases are in test/smt. Can prove that RISC-V add instruction actually adds values in registers and that's about it for now.
Diffstat (limited to 'test/smt/shiftr_zero_1.sat.sail')
-rw-r--r--test/smt/shiftr_zero_1.sat.sail10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/smt/shiftr_zero_1.sat.sail b/test/smt/shiftr_zero_1.sat.sail
new file mode 100644
index 00000000..9eb75c69
--- /dev/null
+++ b/test/smt/shiftr_zero_1.sat.sail
@@ -0,0 +1,10 @@
+default Order dec
+
+$include <prelude.sail>
+
+register R : bits(64)
+
+function check_sat((): unit) -> bool = {
+ let x = sail_shiftright(R, 63);
+ not_bool(x == 0x0000_0000_0000_0000)
+} \ No newline at end of file