diff options
| author | Kathy Gray | 2016-04-27 14:44:13 +0100 |
|---|---|---|
| committer | Kathy Gray | 2016-04-27 14:44:13 +0100 |
| commit | ab180378931eda01764ea4731622681ef98d19ba (patch) | |
| tree | 64374f4ed4da402e8814bc6e2e548c9ee155c589 /src | |
| parent | 919397ebfce5aad56c47a10e272b148ff6b5e274 (diff) | |
expand supported patterns for most_significant
Diffstat (limited to 'src')
| -rw-r--r-- | src/lem_interp/interp_lib.lem | 3 |
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;; |
