diff options
| author | Alasdair Armstrong | 2017-11-17 18:00:08 +0000 |
|---|---|---|
| committer | Alasdair Armstrong | 2017-11-17 18:00:08 +0000 |
| commit | c46ae4d67795682d79e737c671edec8ceee94287 (patch) | |
| tree | 7b6665150ca8f2516805236a0798fe285557edb9 /src/lem_interp | |
| parent | 8de4a99f86dcad90ddf82758e54374386d2d2f92 (diff) | |
Fix Makefile for interpreter and update instruction_extractor
Instruction extractor code that I commented out in this commit seems
buggy anyway - it will claim that the length of all bitvectors is 64?!
Diffstat (limited to 'src/lem_interp')
| -rw-r--r-- | src/lem_interp/instruction_extractor.lem | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lem_interp/instruction_extractor.lem b/src/lem_interp/instruction_extractor.lem index e603bb58..8bc19f8c 100644 --- a/src/lem_interp/instruction_extractor.lem +++ b/src/lem_interp/instruction_extractor.lem @@ -44,20 +44,21 @@ open import Interp_ast open import Interp_utilities open import Pervasives -type instr_param_typ = +type instr_param_typ = | IBit | IBitvector of maybe nat | IRange of maybe nat | IEnum of string * nat | IOther -type instruction_form = +type instruction_form = | Instr_form of string * list (string * instr_param_typ) * list base_effect -| Skipped +| Skipped val extract_instructions : string -> defs tannot -> list instruction_form let rec extract_ityp t tag = match (t,tag) with +(* AA: Hack | (T_abbrev _ t,_) -> extract_ityp t tag | (T_id "bit",_) -> IBit | (T_id "bool",_) -> IBit @@ -74,6 +75,7 @@ let rec extract_ityp t tag = match (t,tag) with IEnum i (natFromInteger max) | (T_id i,Tag_enum max) -> IEnum i (natFromInteger max) +*) | _ -> IOther end |
