Skip to content

Commit

Permalink
Adding tests and updating handling of zero_extend 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Sep 26, 2023
1 parent e1df59f commit 570af3f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/reasoners/bitv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ module Shostak(X : ALIEN) = struct
{ descr = Vextract (t', i, j); size }
| { f = Op BVnot; xs = [ t ]; ty = Tbitv size; _ } ->
{ descr = Vnot t; size }
| { f = Op BVZeroExtend n; xs = [ t ]; ty = Tbitv size; _ } when n = 0 ->
{ descr = Vother t; size }
| { f = Op BVZeroExtend n; xs = [ t ]; ty = Tbitv size; _ } when n > 0 ->
{ descr = Vconcat (E.BV.bvzero n, t); size = n + size }
| { ty = Tbitv size; _ } ->
Expand Down
20 changes: 20 additions & 0 deletions tests/dune.inc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 570af3f

Please sign in to comment.