MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / iter

Method iter

code/other/dpll.cpp:9–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 int var() { return ++n; }
8 void clause(vi vars) {
9 set<int> seen; iter(it,vars) {
10 if (seen.find(IDX(*it)^1) != seen.end()) return;
11 seen.insert(IDX(*it)); }
12 head.push_back(cl.size());
13 iter(it,seen) cl.push_back(*it);
14 tail.push_back((int)cl.size() - 2); }

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected