@@ -33,6 +33,7 @@ open CHPretty
3333(* chutil *)
3434open CHGc
3535open CHLogger
36+ open CHTiming
3637open CHTimingLog
3738open CHXmlDocument
3839
@@ -128,14 +129,15 @@ let speclist = [
128129 " print status on proof obligations and invariants" );
129130 (" -projectname" , Arg. String system_settings#set_projectname,
130131 " name of the project (determines name of results directory)" );
131- (" -nofilter" , Arg. Unit (fun () -> system_settings#set_filterabspathfiles false ),
132- " do not filter out functions in files with absolute path names" );
133- (" -unreachability" , Arg. Unit (fun () -> system_settings#set_use_unreachability),
134- " use unreachability as a justification for discharging proof obligations" );
135- (" -wordsize" , Arg. Int system_settings#set_wordsize,
136- " set word size (e.g., 16, 32, or 64)" );
137- (" -contractpath" , Arg. String system_settings#set_contractpath,
138- " path to contract files" )
132+ (" -keep_system_includes" ,
133+ Arg. Unit (fun () -> system_settings#set_keep_system_includes true ),
134+ " do not filter out functions in files with absolute path names" );
135+ (" -unreachability" , Arg. Unit (fun () -> system_settings#set_use_unreachability),
136+ " use unreachability as a justification for discharging proof obligations" );
137+ (" -wordsize" , Arg. Int system_settings#set_wordsize,
138+ " set word size (e.g., 16, 32, or 64)" );
139+ (" -contractpath" , Arg. String system_settings#set_contractpath,
140+ " path to contract files" )
139141]
140142
141143let usage_msg = " chc_analyze <options> <path to analysis directory>"
@@ -153,10 +155,11 @@ let save_log_files (contenttype:string) =
153155
154156let main () =
155157 try
156- let _ = set_log_level " DEBUG " in
158+ let _ = set_log_level " WARNING " in
157159 let _ = read_args () in
158160 let _ = chlog#set_max_entry_size 1000 in
159161 let _ = log_info " AIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAIAI" in
162+ let cfilename = system_settings#get_cfilename in
160163 if ! cmd = " version" then
161164 begin
162165 pr_debug [version#toPretty; NL ];
@@ -201,13 +204,15 @@ let main () =
201204 else if ! cmd = " generate_and_check" then
202205 begin
203206 generate_and_check_process_file (List. rev ! domains);
207+ pr_timing [STR cfilename; STR " : finished generate_and_check" ];
204208 log_info
205209 " Invariants generated and proof obligations checked [%s:%d]"
206210 __FILE__ __LINE__;
207211 save_log_files " gencheck" ;
208212 log_info
209213 " Invariant generation and proof obligation check log files saved [%s:%d]"
210- __FILE__ __LINE__
214+ __FILE__ __LINE__;
215+ pr_timing [STR cfilename; STR " : finished saving log files" ]
211216 end
212217
213218 else
0 commit comments