Skip to content

Commit

Permalink
Lem: avoid some function names from the Sail library
Browse files Browse the repository at this point in the history
  • Loading branch information
bacam committed Aug 14, 2023
1 parent f7a3bfa commit 1b7964d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sail_lem_backend/pretty_print_lem.ml
Expand Up @@ -115,7 +115,7 @@ let rec fix_id remove_tick name =
match name with
| "assert" | "lsl" | "lsr" | "asr" | "type" | "fun" | "function" | "raise" | "try" | "match" | "with" | "check"
| "field" | "LT" | "lt" | "lteq" | "GT" | "gt" | "gteq" | "EQ" | "eq" | "neq" | "integer" | "union" | "inter"
| "subset" ->
| "subset" | "zero_extend" | "sign_extend" | "zeros" ->
name ^ "'"
| _ ->
if String.contains name '#' then fix_id remove_tick (String.concat "_" (Util.split_on_char '#' name))
Expand Down

0 comments on commit 1b7964d

Please sign in to comment.