diff --git a/infer/src/absint/AbstractInterpreter.ml b/infer/src/absint/AbstractInterpreter.ml index 1b23f524b..06c017a89 100644 --- a/infer/src/absint/AbstractInterpreter.ml +++ b/infer/src/absint/AbstractInterpreter.ml @@ -184,11 +184,8 @@ struct let exec_instr pre_disjuncts analysis_data node instr = List.foldi pre_disjuncts ~init:[] ~f:(fun i post_disjuncts pre_disjunct -> let should_skip = - match DConfig.join_policy with - | `NeverJoin -> - false - | `UnderApproximateAfter n -> - List.length post_disjuncts >= n + let (`UnderApproximateAfter n) = DConfig.join_policy in + List.length post_disjuncts >= n in if should_skip then ( L.d_printfln "@[Reached max disjuncts limit, skipping disjunct #%d@;@]" i ;