*interreduce F * *****************/
| 267 | *interreduce F * |
| 268 | *****************/ |
| 269 | static ideal kInterRedCC(ideal F, ideal Q) |
| 270 | { |
| 271 | int j; |
| 272 | kStrategy strat = new skStrategy; |
| 273 | /* |
| 274 | if (TEST_OPT_PROT) |
| 275 | { |
| 276 | writeTime("start InterRed:"); |
| 277 | mflush(); |
| 278 | } |
| 279 | strat->syzComp = 0; |
| 280 | */ |
| 281 | strat->kAllAxis = (currRing->ppNoether) != NULL; |
| 282 | strat->kNoether=pCopy((currRing->ppNoether)); |
| 283 | strat->ak = id_RankFreeModule(F, currRing); |
| 284 | initBuchMoraCrit(strat); |
| 285 | strat->NotUsedAxis = (BOOLEAN *)omAlloc((currRing->N+1)*sizeof(BOOLEAN)); |
| 286 | for(j=currRing->N; j>0; j--) |
| 287 | { |
| 288 | strat->NotUsedAxis[j] = TRUE; |
| 289 | } |
| 290 | strat->enterS = enterSBba; |
| 291 | strat->posInT = posInT0; |
| 292 | strat->initEcart = initEcartNormal; |
| 293 | strat->sl = -1; |
| 294 | strat->tl = -1; |
| 295 | strat->tmax = setmaxT; |
| 296 | strat->T = initT(); |
| 297 | strat->R = initR(); |
| 298 | strat->sevT = initsevT(); |
| 299 | if(rHasLocalOrMixedOrdering(currRing)) |
| 300 | { |
| 301 | strat->honey = TRUE; |
| 302 | } |
| 303 | |
| 304 | //initSCC(F,Q,strat); |
| 305 | initS(F,Q,strat); |
| 306 | |
| 307 | /* |
| 308 | timetmp=clock();//22.01.02 |
| 309 | initSSpecialCC(F,Q,NULL,strat); |
| 310 | tininitS=tininitS+clock()-timetmp;//22.01.02 |
| 311 | */ |
| 312 | if(TEST_OPT_REDSB) |
| 313 | { |
| 314 | strat->noTailReduction=FALSE; |
| 315 | } |
| 316 | updateS(TRUE,strat); |
| 317 | |
| 318 | if(TEST_OPT_REDSB && TEST_OPT_INTSTRATEGY) |
| 319 | { |
| 320 | completeReduce(strat); |
| 321 | } |
| 322 | if(strat->kNoether!=NULL) pLmFree(&strat->kNoether); |
| 323 | omFreeSize((ADDRESS)strat->T,strat->tmax*sizeof(TObject)); |
| 324 | omFreeSize((ADDRESS)strat->ecartS,IDELEMS(strat->Shdl)*sizeof(int)); |
| 325 | omFreeSize((ADDRESS)strat->sevS,IDELEMS(strat->Shdl)*sizeof(unsigned long)); |
| 326 | omFreeSize((ADDRESS)strat->NotUsedAxis,(currRing->N+1)*sizeof(BOOLEAN)); |
no test coverage detected