- Timestamp:
- Dec 4, 2018, 4:25:34 PM (5 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 308e89cd3835b81bfc0e9f0dbd5450159e27cad4
- Parents:
- f4245d4d5a8b5328234382a5c5cf906631971ade
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kutil.cc
rf4245d r0d8474c 12263 12263 { 12264 12264 #ifdef CRITERION_DEBUG 12265 Print("Consider pair (%s, %s)\n", pString(q), pString(p)); 12266 // also write the LMs in separate lines: 12267 poly lmq = pHead(q); 12268 poly lmp = pHead(p); 12269 pSetCoeff(lmq, n_Init(1, currRing->cf)); 12270 pSetCoeff(lmp, n_Init(1, currRing->cf)); 12271 Print(" %s\n", pString(lmq)); 12272 Print(" %s\n", pString(lmp)); 12273 pLmDelete(lmq); 12274 pLmDelete(lmp); 12265 if (TEST_OPT_DEBUG) 12266 { 12267 PrintS("Consider pair ("); wrp(q); PrintS(", "); wrp(p); PrintS(")"); PrintLn(); 12268 // also write the LMs in separate lines: 12269 poly lmq = pHead(q); 12270 poly lmp = pHead(p); 12271 pSetCoeff(lmq, n_Init(1, currRing->cf)); 12272 pSetCoeff(lmp, n_Init(1, currRing->cf)); 12273 Print(" %s\n", pString(lmq)); 12274 Print(" %s\n", pString(lmp)); 12275 pLmDelete(lmq); 12276 pLmDelete(lmp); 12277 } 12275 12278 #endif 12276 12279 … … 12283 12286 assume(p_CheckIsFromRing(pNext(p),strat->tailRing)); 12284 12287 12285 #ifdef KDEBUG12286 // if (TEST_OPT_DEBUG)12287 // {12288 // PrintS("enterOnePairShift(q,p) invoked with q = ");12289 // wrp(q); // wrp(pHead(q));12290 // PrintS(", p = ");12291 // wrp(p); //wrp(pHead(p));12292 // PrintLn();12293 // }12294 #endif12295 12296 12288 /* poly q stays for s[i], ecartq = ecart(q), qisFromQ = applies to q */ 12297 12289 … … 12310 12302 Lp.lcm = p_Lcm(p,q, currRing); // q is what was strat->S[i], so a poly in LM/TR presentation 12311 12303 12312 /* applythe V criterion */12304 /* the V criterion */ 12313 12305 if (!pmIsInV(Lp.lcm)) 12314 12306 { 12315 #ifdef KDEBUG 12316 if (TEST_OPT_DEBUG) 12317 { 12318 PrintS("V crit applied to q = "); 12319 wrp(q); // wrp(pHead(q)); 12320 PrintS(", p = "); 12321 wrp(p); //wrp(pHead(p)); 12322 PrintLn(); 12323 } 12324 #endif 12307 strat->cv++; // counter for applying the V criterion 12325 12308 pLmFree(Lp.lcm); 12326 /* + counter for applying the V criterion */12327 strat->cv++;12328 12309 #ifdef CRITERION_DEBUG 12329 PrintS("--- V crit\n");12310 if (TEST_OPT_DEBUG) PrintS("--- V crit\n"); 12330 12311 #endif 12331 12312 return; … … 12354 12335 pLmFree(Lp.lcm); 12355 12336 #ifdef CRITERION_DEBUG 12356 PrintS("--- prod crit\n");12337 if (TEST_OPT_DEBUG) PrintS("--- prod crit\n"); 12357 12338 #endif 12358 12339 return; … … 12364 12345 pLmFree(Lp.lcm); 12365 12346 #ifdef CRITERION_DEBUG 12366 PrintS("--- ecartq > ecart\n");12347 if (TEST_OPT_DEBUG) PrintS("--- ecartq > ecart\n"); 12367 12348 #endif 12368 12349 return; … … 12389 12370 pLmFree(Lp.lcm); 12390 12371 #ifdef CRITERION_DEBUG 12391 Print("--- divided by B[%d]\n", j);12372 if (TEST_OPT_DEBUG) Print("--- divided by B[%d]\n", j); 12392 12373 #endif 12393 12374 return; … … 12401 12382 deleteInL(strat->B,&strat->Bl,j,strat); 12402 12383 #ifdef CRITERION_DEBUG 12403 Print("divides B[%d] -> delete B[%d]\n", j, j);12384 if (TEST_OPT_DEBUG) Print("divides B[%d] -> delete B[%d]\n", j, j); 12404 12385 #endif 12405 12386 strat->c3++; … … 12433 12414 pLmFree(Lp.lcm); 12434 12415 #ifdef CRITERION_DEBUG 12435 PrintS("--- prod crit\n");12416 if (TEST_OPT_DEBUG) PrintS("--- prod crit\n"); 12436 12417 #endif 12437 12418 return; … … 12441 12422 pLmFree(Lp.lcm); 12442 12423 #ifdef CRITERION_DEBUG 12443 PrintS("--- ecartq > ecart\n");12424 if (TEST_OPT_DEBUG) PrintS("--- ecartq > ecart\n"); 12444 12425 #endif 12445 12426 return; … … 12462 12443 pLmFree(Lp.lcm); 12463 12444 #ifdef CRITERION_DEBUG 12464 Print("--- divided by B[%d]\n", j);12445 if (TEST_OPT_DEBUG) Print("--- divided by B[%d]\n", j); 12465 12446 #endif 12466 12447 return; … … 12473 12454 deleteInL(strat->B,&strat->Bl,j,strat); 12474 12455 #ifdef CRITERION_DEBUG 12475 Print("divides B[%d] -> delete B[%d]\n", j, j);12456 if (TEST_OPT_DEBUG) Print("divides B[%d] -> delete B[%d]\n", j, j); 12476 12457 #endif 12477 12458 strat->c3++; … … 12489 12470 { 12490 12471 #ifdef CRITERION_DEBUG 12491 PrintS("--- q == NULL || p == NULL\n");12472 if (TEST_OPT_DEBUG) PrintS("--- q == NULL || p == NULL\n"); 12492 12473 #endif 12493 12474 return; … … 12497 12478 Lp.p=NULL; 12498 12479 #ifdef CRITERION_DEBUG 12499 PrintS("--- pair from Q\n");12480 if (TEST_OPT_DEBUG) PrintS("--- pair from Q\n"); 12500 12481 #endif 12501 12482 } … … 12558 12539 if (Lp.lcm!=NULL) pLmFree(Lp.lcm); 12559 12540 #ifdef CRITERION_DEBUG 12560 PrintS("--- S-poly = 0\n");12541 if (TEST_OPT_DEBUG) PrintS("--- S-poly = 0\n"); 12561 12542 #endif 12562 12543 } … … 12597 12578 enterL(&strat->B,&strat->Bl,&strat->Bmax,Lp,l); 12598 12579 #ifdef CRITERION_DEBUG 12599 PrintS("+++ Entered pair\n");12580 if (TEST_OPT_DEBUG) PrintS("+++ Entered pair\n"); 12600 12581 #endif 12601 12582 }
Note: See TracChangeset
for help on using the changeset viewer.