aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2/example.v
diff options
context:
space:
mode:
Diffstat (limited to 'backends/smt2/example.v')
-rw-r--r--backends/smt2/example.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/backends/smt2/example.v b/backends/smt2/example.v
new file mode 100644
index 000000000..b195266eb
--- /dev/null
+++ b/backends/smt2/example.v
@@ -0,0 +1,11 @@
+module main(input clk);
+ reg [3:0] counter = 0;
+ always @(posedge clk) begin
+ if (counter == 10)
+ counter <= 0;
+ else
+ counter <= counter + 1;
+ end
+ assert property (counter != 15);
+ // assert property (counter <= 10);
+endmodule