summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKathy Gray2016-04-27 14:44:13 +0100
committerKathy Gray2016-04-27 14:44:13 +0100
commitab180378931eda01764ea4731622681ef98d19ba (patch)
tree64374f4ed4da402e8814bc6e2e548c9ee155c589 /src
parent919397ebfce5aad56c47a10e272b148ff6b5e274 (diff)
expand supported patterns for most_significant
Diffstat (limited to 'src')
-rw-r--r--src/lem_interp/interp_lib.lem3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lem_interp/interp_lib.lem b/src/lem_interp/interp_lib.lem
index c84588ef..8b390b8a 100644
--- a/src/lem_interp/interp_lib.lem
+++ b/src/lem_interp/interp_lib.lem
@@ -118,6 +118,9 @@ let rec most_significant v =
match detaint v with
| V_vector _ _ (v::vs) -> v
| V_vector_sparse _ _ _ _ _ -> most_significant (fill_in_sparse v)
+ | V_lit (L_aux L_one _) -> v
+ | V_lit (L_aux L_zero _) -> v
+ | V_lit (L_aux L_undef _) -> v
| V_unknown -> V_unknown
| _ -> Assert_extra.failwith ("most_significant given non-vector " ^ (string_of_value v))
end;;