Skip to content

Commit

Permalink
Add inputs to Hashtabl
Browse files Browse the repository at this point in the history
  • Loading branch information
Linda-Njau committed Jun 26, 2024
1 parent 0cca70f commit 597d481
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sail_json_backend/json.ml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ let sigs = Hashtbl.create 997
let names = Hashtbl.create 997
let descriptions = Hashtbl.create 997
let operands = Hashtbl.create 997
let inputs = Hashtbl.create 997
let encodings = Hashtbl.create 997
let assembly = Hashtbl.create 997
let assembly_clean = Hashtbl.create 997
Expand Down Expand Up @@ -230,6 +231,7 @@ let parse_encdec i mc format =
end
end
| _ -> assert false


let add_assembly app_id p =
let x = string_list_of_mpat p in
Expand All @@ -242,9 +244,10 @@ let parse_assembly_mpat mp pb =
match mp with
| MP_aux (MP_app (app_id, mpl), _) ->
debug_print ("MP_app " ^ string_of_id app_id);
let operandl = List.concat (List.map string_list_of_mpat mpl) in
let inputl = List.concat (List.map string_list_of_mpat mpl) in
Hashtbl.add inputs (string_of_id app_id) inputl;
begin
List.iter debug_print operandl;
List.iter debug_print inputl;
debug_print "MCL_bidir (right part)";
match pb with
| MPat_aux (MPat_pat p, _) ->
Expand Down

0 comments on commit 597d481

Please sign in to comment.