MCPcopy Create free account
hub / github.com/Singular/Singular / check

Method check

kernel/GBEngine/f5lists.cc:93–112  ·  view source on GitHub ↗

PNode* PList::insert(poly p) { PNode* temp = first; PNode* pn = new PNode(p,temp); first = pn; return first; } */

Source from the content-addressed store, hash-verified

91}
92*/
93bool PList::check(poly p) {
94 PNode* temp = first;
95 //Print("\nCHECK: \n");
96 //pWrite(p);
97 //Print("-----\n");
98 while(NULL != temp) {
99 //pWrite(temp->getPoly());
100 //pWrite(p);
101 //Print("COMPARE: %d\n",pLmEqual(p,temp->getPoly()));
102 if(1 == pLmEqual(p,temp->getPoly())) {
103 //Print("YES!\n");
104 //pWrite(pHead(temp->getPoly()));
105 //Print("YES!\n");
106 return 1;
107 }
108 temp = temp->getNext();
109 }
110 //Print("NOTHING!\n");
111 return 0;
112}
113
114void PList::print() {
115 Print("-----LIST-----\n");

Callers

nothing calls this directly

Calls 2

getPolyMethod · 0.45
getNextMethod · 0.45

Tested by

no test coverage detected