[sledge sem] Improve a comment

Reviewed By: jberdine

Differential Revision: D18269122

fbshipit-source-id: 9e9fba662
master
Scott Owens 5 years ago committed by Facebook Github Bot
parent dda0470b05
commit 5caa19990b

@ -215,9 +215,11 @@ Definition nfits_def:
0 < size n < 2 ** size 0 < size n < 2 ** size
End End
(* Convert an integer to an unsigned number, following the 2's complement, (* Convert an integer to an unsigned number, following the 2's complement
* assuming (ifits i size). This looks like what OCaml's Z.extract does, which * representation, assuming (ifits i size). This is what OCaml's Z.extract does,
* is used in LLAIR for Convert expressions *) * which is used in LLAIR for Convert expressions and unsigned operations, e.g.,
* <. The difference between LLAIR's extract and i2n is that i2n assumes that i
* fits into size rather than truncating it first. *)
Definition i2n_def: Definition i2n_def:
i2n (IntV i size) : num = i2n (IntV i size) : num =
if i < 0 then if i < 0 then

Loading…
Cancel
Save