Skip to content

Commit

Permalink
[SMTLIB backend] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TDacik committed Oct 25, 2024
1 parent 5a810a2 commit 0a11822
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/generic_smtlib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

exception NonStandardTerm of string

let rec translate_decl (SMT.Variable (name, sort)) translate_sort =
Format.asprintf "(declare-const %s %s)" (Identifier.show name) (translate_sort sort)
let translate_var_name (SMT.Variable (name, sort)) =
Format.asprintf "%s!%s" (Identifier.show name) (Sort.show_kind sort)

(** Translation of standard terms. Translation of non-standard term raises exception
that should be handled by concrete solver. *)
and translate_std translate translate_sort term = match term with
| SMT.Variable (name, _) -> Identifier.show name
let rec translate_std translate translate_sort term = match term with
| SMT.Variable _ -> translate_var_name term
| SMT.Constant (name, _) -> name
| SMT.True -> "true"
| SMT.False -> "false"
Expand Down

0 comments on commit 0a11822

Please sign in to comment.