Skip to content

Commit

Permalink
Merge branch 'rt-copyprop' into scala-generic
Browse files Browse the repository at this point in the history
  • Loading branch information
ailrst committed Jul 24, 2024
2 parents 7ee3e4b + 6ec5295 commit 9ed5776
Show file tree
Hide file tree
Showing 12 changed files with 933 additions and 60 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ scripts/total.txt
build/

offlineASL/aarch64_*
offlineASL-scala/lifter/src/generated/*
offlineASL-cpp/subprojects/aslp-lifter/src/generated/*
offlineASL-cpp/subprojects/aslp-lifter/include/aslp/generated/*



1 change: 1 addition & 0 deletions bin/asli.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ let opt_export_aarch64_dir = ref ""
let opt_verbose = ref false



let () =
Printexc.record_backtrace true ;
Printexc.register_printer
Expand Down
1 change: 1 addition & 0 deletions libASL/cpp_backend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ let rec prints_expr e st =
| Expr_LitString s -> "\"" ^ s ^ "\""
| Expr_Tuple(es) -> "std::make_tuple(" ^ (String.concat "," (List.map (fun e -> prints_expr e st) es)) ^ ")"
| Expr_Unknown(ty) -> default_value ty st
| Expr_If(_, c, t, [], e) -> Printf.sprintf "((%s) ? (%s) : (%s))" (prints_expr c st) (prints_expr t st) (prints_expr e st)

| _ -> failwith @@ "prints_expr: " ^ pp_expr e

Expand Down
1 change: 1 addition & 0 deletions libASL/ocaml_backend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ let rec prints_expr e st =
| Expr_LitString s -> "\"" ^ s ^ "\""
| Expr_Tuple(es) -> "(" ^ (String.concat "," (List.map (fun e -> prints_expr e st) es)) ^ ")"
| Expr_Unknown(ty) -> default_value ty st
| Expr_If (ty, c, t, [], e) -> Printf.sprintf "(if (%s) then (%s) else (%s))" (prints_expr c st) (prints_expr t st) (prints_expr e st)

| _ -> failwith @@ "prints_expr: " ^ pp_expr e

Expand Down
Loading

0 comments on commit 9ed5776

Please sign in to comment.