@@ -85,17 +85,16 @@ let runAnalysis ~cmtRoot =
8585 processCmtFiles ~cmt Root;
8686 if runConfig.dce then (
8787 DeadException. forceDelayedItems () ;
88- DeadOptionalArgs. forceDelayedItems () )
88+ DeadOptionalArgs. forceDelayedItems () ;
89+ DeadCommon. reportDead ~check OptionalArg:DeadOptionalArgs. check;
90+ WriteDeadAnnotations. write () );
91+ if runConfig.exception_ then Exception.Checks. doChecks () ;
92+ if runConfig.termination && ! Common.Cli. debug then Arnold. reportStats ()
8993
90- let runAnalysisAndReport ~cmtRoot ~ ppf =
94+ let runAnalysisAndReport ~cmtRoot =
9195 Log_.Color. setup () ;
9296 if ! Common.Cli. json then EmitJson. start () ;
9397 runAnalysis ~cmt Root;
94- if runConfig.dce then (
95- DeadCommon. reportDead ~check OptionalArg:DeadOptionalArgs. check ppf;
96- WriteDeadAnnotations. write () );
97- if runConfig.exception_ then Exception. reportResults ~ppf ;
98- if runConfig.termination then Arnold. reportResults ~ppf ;
9998 Log_.Stats. report () ;
10099 Log_.Stats. clear () ;
101100 if ! Common.Cli. json then EmitJson. finish ()
@@ -207,11 +206,10 @@ let cli () =
207206 " Write @dead annotations directly in the source files" );
208207 ]
209208 in
210- let ppf = Format. std_formatter in
211209 Arg. parse speclist print_endline usage;
212210 if ! analysisKindSet = false then setConfig () ;
213211 let cmtRoot = ! cmtRootRef in
214- runAnalysisAndReport ~cmt Root ~ppf
212+ runAnalysisAndReport ~cmt Root
215213 [@@ raises exit]
216214
217215module RunConfig = RunConfig
0 commit comments