Changeset 780e11 in git for kernel/kstd1.cc
- Timestamp:
- Oct 19, 2011, 4:47:55 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b304ba2d40702a4f469ed9a2270027d1188c0c75
- Parents:
- 1327a0002c1e1e8edbf06eba651a4e39a3a26c9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstd1.cc
r1327a0 r780e11 2315 2315 strat->posInL=posInL0; /* ord according pComp */ 2316 2316 2317 /*Shdl=*/initBuchMora(F, Q, strat);2317 /*Shdl=*/initBuchMora(F, Q, strat); 2318 2318 srmax = strat->sl; 2319 2319 reduc = olddeg = lrmax = 0; … … 2469 2469 2470 2470 #ifdef KDEBUG 2471 messageSets(strat); 2471 if (TEST_OPT_DEBUG) 2472 { 2473 messageSets(strat); 2474 } 2472 2475 memset(&(strat->P), 0, sizeof(strat->P)); 2473 2476 #endif … … 2537 2540 int need_retry; 2538 2541 int counter=3; 2539 int elems=idElem(F); 2540 ideal res=kInterRedBba(F,Q,need_retry); 2542 ideal res, res1; 2543 int elems; 2544 ideal null=NULL; 2545 if ((Q==NULL) || (!TEST_OPT_REDSB)) 2546 { 2547 elems=idElem(F); 2548 res=kInterRedBba(F,Q,need_retry); 2549 } 2550 else 2551 { 2552 ideal FF=idSimpleAdd(F,Q); 2553 res=kInterRedBba(FF,NULL,need_retry); 2554 idDelete(&FF); 2555 null=idInit(1,1); 2556 res1=kNF(null,Q,res); 2557 idDelete(&res); 2558 res=res1; 2559 } 2541 2560 while (need_retry && (counter>0)) 2542 2561 { … … 2544 2563 if (TEST_OPT_DEBUG) { Print("retry counter %d\n",counter); } 2545 2564 #endif 2546 idealres1=kInterRedBba(res,Q,need_retry);2565 res1=kInterRedBba(res,Q,need_retry); 2547 2566 int new_elems=idElem(res1); 2548 2567 counter -= (new_elems >= elems); 2549 2568 elems = new_elems; 2550 2569 idDelete(&res); 2551 res = res1; 2552 } 2570 if ((Q!=NULL) && (TEST_OPT_REDSB)) 2571 { 2572 res=kNF(null,Q,res1); 2573 idDelete(&res1); 2574 } 2575 else 2576 res = res1; 2577 } 2578 if (null!=NULL) idDelete(&null); 2553 2579 test=save; 2554 2580 idSkipZeroes(res); 2555 2581 return res; 2556 2582 } 2557 2558 2583 2559 2584 // returns TRUE if mora should use buckets, false otherwise
Note: See TracChangeset
for help on using the changeset viewer.