Skip to content

Commit

Permalink
Rename Cnf into Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
Halbaroth committed Oct 8, 2024
1 parent 2b1f718 commit b92fe5b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 18 deletions.
5 changes: 1 addition & 4 deletions rsc/extra/subgraphs.dot
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ subgraph cluster_lib {
style=filled;
color=lightblue;
"Frontend";
"Cnf";
"Typechecker";
"Parsed_interface";
"Input";
"Translate";
"Parse_command"
}

Expand Down
10 changes: 5 additions & 5 deletions src/bin/common/solving_loop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ let process_source ?selector_inst ~print_status src =
~size_limit ~response_file
|> Parser.init
|> Typer.init
~additional_builtins:Cnf.builtins
~additional_builtins:Translate.builtins
~extension_builtins:[Typer.Ext.bv2nat]
|> Typer_Pipe.init ~type_check
in
Expand Down Expand Up @@ -512,7 +512,7 @@ let process_source ?selector_inst ~print_status src =
{ Typer_Pipe.id; contents; loc; attrs = []; implicit = false }
in
let cnf =
Cnf.make (State.get State.logic_file st).loc
Translate.make (State.get State.logic_file st).loc
(State.get solver_ctx_key st).ctx stmt
in
State.set solver_ctx_key (
Expand Down Expand Up @@ -628,7 +628,7 @@ let process_source ?selector_inst ~print_status src =
Expr.mk_term
(Sy.name name)
[]
(Cnf.dty_to_ty term.DStd.Expr.term_ty)
(Translate.dty_to_ty term.DStd.Expr.term_ty)
in
match get_value simple_form with
| Some v -> Fmt.to_to_string Expr.print v
Expand Down Expand Up @@ -705,7 +705,7 @@ let process_source ?selector_inst ~print_status src =
in
let stmt = { Typer_Pipe.id; contents; loc ; attrs; implicit } in
let cnf, is_thm =
match Cnf.make (State.get State.logic_file st).loc l stmt with
match Translate.make (State.get State.logic_file st).loc l stmt with
| { Commands.st_decl = Query (_, _, kind); _ } as cnf :: hyps ->
let is_thm =
match kind with Ty.Thm | Sat -> true | _ -> false
Expand Down Expand Up @@ -827,7 +827,7 @@ let process_source ?selector_inst ~print_status src =
unsupported statement is encountered.
*)
let cnf =
Cnf.make (State.get State.logic_file st).loc
Translate.make (State.get State.logic_file st).loc
(State.get solver_ctx_key st).ctx td
in
State.set solver_ctx_key (
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
; modules that make up the lib
(modules
; frontend
Cnf D_loop D_state_option Frontend Parsed_interface Models
Translate D_loop D_state_option Frontend Parsed_interface Models
; reasoners
Ac Arith Arrays_rel Bitv Ccx Shostak Relation
Fun_sat Fun_sat_frontend Inequalities Bitv_rel Th_util Adt Adt_rel
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 1 addition & 7 deletions src/lib/index.mld
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,8 @@ Finally, the native input method is defined in the {!module:AltErgoLib.Parsed_in
and {!module:AltErgoLib.Typechecker} modules.

{!modules:
AltErgoLib.Cnf
AltErgoLib.Translate
AltErgoLib.Frontend
AltErgoLib.Input
AltErgoLib.Parsed_interface
AltErgoLib.Typechecker
}


Expand Down Expand Up @@ -117,10 +114,7 @@ AltErgoLib.Matching_types
AltErgoLib.Shostak
AltErgoLib.Ac
AltErgoLib.Arith
AltErgoLib.Arrays
AltErgoLib.Bitv
AltErgoLib.Enum
AltErgoLib.Ite
AltErgoLib.Polynome
AltErgoLib.Records
AltErgoLib.Sig
Expand Down
2 changes: 1 addition & 1 deletion src/lib/structures/expr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2346,7 +2346,7 @@ module Triggers = struct
let content = TMap.fold (fun t _ acc -> t :: acc) res [] in
let content = List.stable_sort pat_weight content in
if Options.get_verbose () then
Printer.print_dbg ~module_name:"Cnf"
Printer.print_dbg ~module_name:"Translate"
~function_name:"clean_trigger"
"AXIOM: %s@ \
from multi-trig of sz %d : %a@ \
Expand Down

0 comments on commit b92fe5b

Please sign in to comment.