Skip to content

Commit

Permalink
Added a simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwolf76 committed Dec 31, 2012
1 parent 17f276b commit 95487f1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 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);

0 comments on commit 95487f1

Please sign in to comment.