File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,9 +38,8 @@ class max_cliques : public T {
3838 m_todo.push_back (p);
3939 for (unsigned i = 0 ; i < m_todo.size (); ++i) {
4040 p = m_todo[i];
41- if (m_seen1.contains (p)) {
42- continue ;
43- }
41+ if (m_seen1.contains (p))
42+ continue ;
4443 m_seen1.insert (p);
4544 if (m_seen2.contains (p)) {
4645 unsigned_vector const & tc = m_tc[p];
@@ -50,14 +49,12 @@ class max_cliques : public T {
5049 }
5150 else {
5251 unsigned np = negate (p);
53- if (goal.contains (np)) {
54- reachable.insert (np);
55- }
52+ if (goal.contains (np))
53+ reachable.insert (np);
5654 m_todo.append (next (np));
5755 }
5856 }
59- for (unsigned i = m_todo.size (); i > 0 ; ) {
60- --i;
57+ for (unsigned i = m_todo.size (); i-- > 0 ; ) {
6158 p = m_todo[i];
6259 if (m_seen2.contains (p))
6360 continue ;
@@ -209,9 +206,8 @@ class max_cliques : public T {
209206 unsigned_vector mux;
210207 for (unsigned x : am1)
211208 mux.push_back (x);
212- if (mux.size () == 2 && mux[0 ] == negate (mux[1 ])) {
213- continue ;
214- }
209+ if (mux.size () == 2 && mux[0 ] == negate (mux[1 ]))
210+ continue ;
215211 cliques.push_back (mux);
216212 }
217213 }
You can’t perform that action at this time.
0 commit comments