diff options
| author | Thomas Bauereiss | 2018-04-18 16:03:26 +0100 |
|---|---|---|
| committer | Thomas Bauereiss | 2018-04-18 16:03:26 +0100 |
| commit | e1b2379f9058e858722f2bd9691c76d00c00dcaa (patch) | |
| tree | 635c9dfcf02772200796297f98aea114a118fda1 /aarch64/mono/aarch64_extras.lem | |
| parent | 15f965c9e4bd39eb7fe97552b9ac9db51a3cdbfb (diff) | |
Add some lemmas about bitvectors
Also clean up some library functions a bit, and add some missing failure
handling variants of division operations on bitvectors.
Diffstat (limited to 'aarch64/mono/aarch64_extras.lem')
| -rw-r--r-- | aarch64/mono/aarch64_extras.lem | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/aarch64/mono/aarch64_extras.lem b/aarch64/mono/aarch64_extras.lem index 3e9ee225..e5da7f69 100644 --- a/aarch64/mono/aarch64_extras.lem +++ b/aarch64/mono/aarch64_extras.lem @@ -35,10 +35,10 @@ let get_slice_int len n lo = of_bools (get_slice_int_bl len n lo) val set_slice_int : forall 'a. Size 'a => integer -> integer -> integer -> mword 'a -> integer let set_slice_int len n lo v = let hi = lo + len - 1 in - let bs = bool_list_of_int n in - let len_n = max (hi + 1) (integerFromNat (List.length bs)) in - let ext_bs = exts_bools len_n bs in - signed_of_bools (update_subrange_list false ext_bs hi lo (bitlistFromWord v)) + let bs = bools_of_int (hi + 1) n in + (*let len_n = max (hi + 1) (integerFromNat (List.length bs)) in + let ext_bs = exts_bools len_n bs in*) + signed_of_bools (update_subrange_list false bs hi lo (bitlistFromWord v)) (*let ext_slice signed v i j = let len = length v in |
