3535 let start = Instant :: now ( ) ;
3636
3737 let atoms = atoms ( traces, atomic_propositions) ;
38- // Add initial formulas
38+ // Add initial formulas.
3939 let ( atom, mut ltl_cache) = create_initial_cache ( atoms, & target) ;
40- // Check if target is an atom
40+ // Check if target is an atom.
4141 if let Some ( f) = atom {
4242 let ltl_time = start. elapsed ( ) ;
4343 let f_str = rebuild_formula ( & f, & ltl_cache) ;
5151 } ;
5252 }
5353
54- // Ltl search
54+ // LTL search
5555 let ltl_res = enum_aux ( & mut ltl_cache, & operators, & target, max_size_ltl) ;
5656
5757 let ltl_time = start. elapsed ( ) ;
8787 }
8888}
8989
90- /// Solve Boolean Synthesis problem using Divide and Conquer and the algorithm specified in `params`.
90+ /// Solve Boolean Set Cover problem using Divide and Conquer and the algorithm specified in `params`.
9191///
9292/// If the number of traces is more than 128, split immediately.
9393/// Otherwise, try to solve the instance with the algorithm implemented by `params`.
@@ -104,7 +104,7 @@ where
104104 P : BoolAlgoParams + Clone ,
105105{
106106 let nb_traces = target. len ( ) ;
107- // Check whether the fom
107+ // Check whether the formula is already in the cache.
108108 if let Some ( f) = initial_cache. get_from_cv ( target, target) {
109109 // Due to hash collisions, the formula may not be right; we check that
110110 // the formula has the right characteristic vector.
@@ -170,7 +170,7 @@ where
170170 } )
171171}
172172
173- /// Divide and conquer subrouting to split into two subproblems with clever merging.
173+ /// Divide and conquer subroutine to split into two subproblems with clever merging.
174174///
175175/// We use [`find_split`] to get indices for the left subproblem, and solve it recursively.
176176/// If we get a solution, use the set of unsatisfied indices for the right subproblem,
@@ -259,7 +259,7 @@ where
259259/// of traces to keeps in each split.
260260///
261261/// If the split was on the positives, the returned operation is [`LtlBinaryOp::Or`],
262- /// and otherwise it's [`LtlBinaryOp::And`].
262+ /// and otherwise it is [`LtlBinaryOp::And`].
263263fn find_split ( target : & [ bool ] ) -> Option < ( LtlBinaryOp , Vec < usize > , Vec < usize > ) > {
264264 let nb_traces = target. len ( ) ;
265265 let nb_pos = target. iter ( ) . filter ( |b| * * b) . count ( ) ;
0 commit comments