Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a simple test

  • Loading branch information...
commit 95487f1dd4c913521474c3321d94c35910d16279 1 parent 17f276b
@mwolf76 authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/shift.smv
View
20 test/shift.smv
@@ -0,0 +1,20 @@
+MODEL lsh
+MODULE main
+
+VAR
+ x : uint32_t;
+ y : uint32_t;
+ c : uint32_t;
+
+INIT
+ (c = 1) & (x = 1) & (y = 1);
+
+TRANS
+ next(x) = ((c = 1) ? ( x << y )
+ : ( x >> y ));
+
+ next(y) = y;
+
+ next(c) = ((x = 0x100000000) ? 2
+ : (x = 1) ? 1
+ : c);
Please sign in to comment.
Something went wrong with that request. Please try again.