| 21 | void nc_gr_initBba(ideal F, kStrategy strat); // from gr_kstd2.cc! |
| 22 | |
| 23 | void addLObject(LObject& h, kStrategy& strat) |
| 24 | { |
| 25 | if(h.IsNull()) return; |
| 26 | |
| 27 | strat->initEcart(&h); |
| 28 | h.sev=0; // pGetShortExpVector(h.p); |
| 29 | |
| 30 | // add h into S and L |
| 31 | int pos=posInS(strat, strat->sl, h.p, h.ecart); |
| 32 | |
| 33 | if ( (pos <= strat->sl) && (p_ComparePolys(h.p, strat->S[pos], currRing)) ) |
| 34 | { |
| 35 | if (TEST_OPT_PROT) |
| 36 | PrintS("d\n"); |
| 37 | } |
| 38 | else |
| 39 | { |
| 40 | if (TEST_OPT_INTSTRATEGY) |
| 41 | { |
| 42 | p_Cleardenom(h.p, currRing); |
| 43 | } |
| 44 | else |
| 45 | { |
| 46 | pNorm(h.p); |
| 47 | } |
| 48 | |
| 49 | if ((strat->syzComp==0)||(!strat->homog)) |
| 50 | { |
| 51 | h.p = redtailBba(h.p,pos-1,strat); |
| 52 | |
| 53 | if (TEST_OPT_INTSTRATEGY) |
| 54 | { |
| 55 | p_Cleardenom(h.p,currRing); |
| 56 | } |
| 57 | else |
| 58 | { |
| 59 | pNorm(h.p); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | if(h.IsNull()) return; |
| 64 | |
| 65 | // statistic |
| 66 | if (TEST_OPT_PROT) |
| 67 | { |
| 68 | PrintS("s\n"); |
| 69 | } |
| 70 | |
| 71 | #ifdef KDEBUG |
| 72 | if (TEST_OPT_DEBUG) |
| 73 | { |
| 74 | PrintS("new s:"); |
| 75 | wrp(h.p); |
| 76 | PrintLn(); |
| 77 | } |
| 78 | #endif |
| 79 | |
| 80 | enterpairs(h.p, strat->sl, h.ecart, 0, strat); |
no test coverage detected