File tree Expand file tree Collapse file tree 8 files changed +6
-30
lines changed Expand file tree Collapse file tree 8 files changed +6
-30
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ let set_options r =
113
113
set_options_opt Options. set_debug_uf r.debug_uf;
114
114
set_options_opt Options. set_debug_unsat_core r.debug_unsat_core;
115
115
set_options_opt Options. set_debug_use r.debug_use;
116
- set_options_opt Options. set_debug_warnings r.debug_warnings;
117
116
set_options_opt Options. set_rule r.rule;
118
117
119
118
set_options_opt Options. set_case_split_policy
Original file line number Diff line number Diff line change @@ -181,7 +181,6 @@ type options = {
181
181
debug_uf : bool option ;
182
182
debug_unsat_core : bool option ;
183
183
debug_use : bool option ;
184
- debug_warnings : bool option ;
185
184
rule : int option ;
186
185
187
186
case_split_policy : case_split_policy option ;
@@ -281,7 +280,6 @@ let init_options () = {
281
280
debug_uf = None ;
282
281
debug_unsat_core = None ;
283
282
debug_use = None ;
284
- debug_warnings = None ;
285
283
rule = None ;
286
284
287
285
case_split_policy = None ;
@@ -395,12 +393,11 @@ let opt_dbg3_encoding =
395
393
conv
396
394
(fun dbg3 -> dbg3)
397
395
(fun dbg3 -> dbg3)
398
- (obj5
396
+ (obj4
399
397
(opt " debug_types" bool )
400
398
(opt " debug_uf" bool )
401
399
(opt " debug_unsat_core" bool )
402
400
(opt " debug_use" bool )
403
- (opt " debug_warnings" bool )
404
401
)
405
402
406
403
let opt1_encoding =
@@ -551,8 +548,7 @@ let options_to_json opt =
551
548
(opt.debug_types,
552
549
opt.debug_uf,
553
550
opt.debug_unsat_core,
554
- opt.debug_use,
555
- opt.debug_warnings)
551
+ opt.debug_use)
556
552
in
557
553
let all_opt1 =
558
554
(opt.rule,
@@ -677,8 +673,7 @@ let options_from_json options =
677
673
let (debug_types,
678
674
debug_uf,
679
675
debug_unsat_core,
680
- debug_use,
681
- debug_warnings) = dbg_opt3 in
676
+ debug_use) = dbg_opt3 in
682
677
let (rule,
683
678
case_split_policy,
684
679
enable_adts_cs,
@@ -762,7 +757,6 @@ let options_from_json options =
762
757
debug_uf;
763
758
debug_unsat_core;
764
759
debug_use;
765
- debug_warnings;
766
760
rule;
767
761
case_split_policy;
768
762
enable_adts_cs;
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ type options = {
78
78
debug_uf : bool option ;
79
79
debug_unsat_core : bool option ;
80
80
debug_use : bool option ;
81
- debug_warnings : bool option ;
82
81
rule : int option ;
83
82
84
83
case_split_policy : case_split_policy option ;
Original file line number Diff line number Diff line change @@ -1146,8 +1146,7 @@ let mk_forall_ter =
1146
1146
let q = match form_view lem with Lemma q -> q | _ -> assert false in
1147
1147
assert (equal q.main f (* should be true *) );
1148
1148
if compare_quant q new_q <> 0 then raise Exit ;
1149
- Printer. print_wrn ~warning: (Options. get_debug_warnings () )
1150
- " (sub) axiom %s replaced with %s" name q.name;
1149
+ Printer. print_wrn " (sub) axiom %s replaced with %s" name q.name;
1151
1150
lem
1152
1151
with Not_found | Exit ->
1153
1152
let d = new_q.main.depth in (* + 1 ?? *)
Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ let debug_types = ref false
175
175
let debug_uf = ref false
176
176
let debug_unsat_core = ref false
177
177
let debug_use = ref false
178
- let debug_warnings = ref false
179
178
let debug_commands = ref false
180
179
let debug_optimize = ref false
181
180
let rule = ref (- 1 )
@@ -204,7 +203,6 @@ let set_debug_types b = debug_types := b
204
203
let set_debug_uf b = debug_uf := b
205
204
let set_debug_unsat_core b = debug_unsat_core := b
206
205
let set_debug_use b = debug_use := b
207
- let set_debug_warnings b = debug_warnings := b
208
206
let set_debug_commands b = debug_commands := b
209
207
let set_debug_optimize b = debug_optimize := b
210
208
let set_rule b = rule := b
@@ -233,7 +231,6 @@ let get_debug_types () = !debug_types
233
231
let get_debug_uf () = ! debug_uf
234
232
let get_debug_unsat_core () = ! debug_unsat_core
235
233
let get_debug_use () = ! debug_use
236
- let get_debug_warnings () = ! debug_warnings
237
234
let get_debug_commands () = ! debug_commands
238
235
let get_debug_optimize () = ! debug_optimize
239
236
let get_rule () = ! rule
Original file line number Diff line number Diff line change @@ -173,9 +173,6 @@ val set_debug_unsat_core : bool -> unit
173
173
(* * Set [debug_use] accessible with {!val:get_debug_use} *)
174
174
val set_debug_use : bool -> unit
175
175
176
- (* * Set [debug_warnings] accessible with {!val:get_debug_warnings} *)
177
- val set_debug_warnings : bool -> unit
178
-
179
176
(* * Set [debug_commands] accessible with {!val:get_debug_commands} *)
180
177
val set_debug_commands : bool -> unit
181
178
@@ -465,9 +462,6 @@ val set_used_context_file : string -> unit
465
462
(* * Get the debugging flag. *)
466
463
val get_debug : unit -> bool
467
464
468
- (* * Get the debugging flag of warnings. *)
469
- val get_debug_warnings : unit -> bool
470
-
471
465
(* * Get the debugging flag of commands. If enabled, Alt-Ergo will display all
472
466
the commands that are sent to the solver. *)
473
467
val get_debug_commands : unit -> bool
Original file line number Diff line number Diff line change @@ -227,12 +227,10 @@ let print_err ?(flushed=true) ?(header=(Options.get_output_with_headers ()))
227
227
end
228
228
else Format. ifprintf Format. err_formatter s
229
229
230
- let print_wrn ?(flushed =true ) ?(header =(Options. get_output_with_headers () ))
231
- ?(warning =true ) s =
230
+ let print_wrn ?(flushed =true ) ?(header =(Options. get_output_with_headers () )) s =
232
231
if Options. get_warning_as_error () then
233
- print_err ~flushed ~header ~error: warning s
232
+ print_err ~flushed ~header ~error: true s
234
233
else
235
- if warning then begin
236
234
let fmt = Options.Output. get_fmt_diagnostic () in
237
235
Format. fprintf fmt " @[<v 0>%s" (pp_smt clean_wrn_print);
238
236
if header then
@@ -242,8 +240,6 @@ let print_wrn ?(flushed=true) ?(header=(Options.get_output_with_headers ()))
242
240
Format. fprintf fmt " @[<v 10>[Warning] " ;
243
241
if flushed || Options. get_output_with_forced_flush ()
244
242
then Format. kfprintf flush fmt s else Format. fprintf fmt s
245
- end
246
- else Format. ifprintf Format. err_formatter s
247
243
248
244
let print_dbg ?(flushed =true ) ?(header =(Options. get_output_with_headers () ))
249
245
?(module_name =" " ) ?(function_name =" " ) s =
Original file line number Diff line number Diff line change @@ -47,13 +47,11 @@ val print_err :
47
47
48
48
(* * Print warning message on the warning formatter accessible with
49
49
{!val:Options.get_fmt_wrn} and set by default to stderr.
50
- Prints only if warning (true by default) is true.
51
50
If header is set, prints a header "[Warning]".
52
51
The wrn formatter is flushed after the print if flushed is set *)
53
52
val print_wrn :
54
53
?flushed : bool ->
55
54
?header : bool ->
56
- ?warning : bool ->
57
55
('a , Format .formatter , unit ) format -> 'a
58
56
59
57
(* * Print debug message on the debug formatter accessible with
You can’t perform that action at this time.
0 commit comments