Skip to content
Snippets Groups Projects
Commit 3ab94bac authored by Michael Sammler's avatar Michael Sammler
Browse files

comment

parent e2798133
No related branches found
No related tags found
No related merge requests found
...@@ -517,7 +517,9 @@ Program Definition bv_sign_extend {n} (z : N) (b : bv n) : bv (n + z) := (* SMT: ...@@ -517,7 +517,9 @@ Program Definition bv_sign_extend {n} (z : N) (b : bv n) : bv (n + z) := (* SMT:
(* s is start index and l is length. Note that this is different from (* s is start index and l is length. Note that this is different from
extract in SMTLIB which uses [extract (inclusive upper bound) extract in SMTLIB which uses [extract (inclusive upper bound)
(inclusive lower bound)] *) (inclusive lower bound)]. The version here is phrased in a way that
makes it impossible to use an upper bound that is lower than the lower
bound. *)
Program Definition bv_extract {n} (s l : N) (b : bv n) : bv l := Program Definition bv_extract {n} (s l : N) (b : bv n) : bv l :=
BV l (Z.land (bv_unsigned b Z.of_N s) (Z.ones (Z.of_N l))) _. BV l (Z.land (bv_unsigned b Z.of_N s) (Z.ones (Z.of_N l))) _.
Next Obligation. Next Obligation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment