Changeset 3d3ab7 in git for kernel


Ignore:
Timestamp:
Jul 7, 2015, 1:48:23 PM (9 years ago)
Author:
Adi Popescu <adi_popescum@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
41aecf0b6da407ff436939ad6d3daa64856a3da0
Parents:
6d11d24961ab342e357f6f0a5ffaea867ce8d7a3
Message:
cleaned: enterOnePairRing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r6d11d2 r3d3ab7  
    11721172    int      l,j,compare,compareCoeff;
    11731173    LObject  Lp;
    1174   omTestMemory(1);
    11751174    if (strat->interred_flag) return;
    11761175  #ifdef KDEBUG
     
    11991198        return;
    12001199    }
    1201     omTestMemory(1);
    12021200    // basic product criterion
    12031201    pLcm(p,strat->S[i],Lp.lcm);
     
    12241222    }
    12251223    assume(!strat->fromT);
    1226     omTestMemory(1);
    12271224    /*
    12281225    *the set B collects the pairs of type (S[j],p)
     
    13191316      }
    13201317    }
    1321     omTestMemory(1);
    13221318    /*
    13231319    *the pair (S[i],p) enters B if the spoly != 0
     
    13461342      Lp.p = ksCreateShortSpoly(strat->S[i], p, strat->tailRing);
    13471343    }
    1348     omTestMemory(1);
    13491344    if (Lp.p == NULL)
    13501345    {
     
    13701365      */
    13711366      pLmDelete(Lp.lcm);
    1372       printf("\nsdkjhggh\n");
    13731367    }
    13741368    else
     
    13851379        Lp.i_r1 = strat->S_2_R[i];
    13861380      }
    1387       omTestMemory(1);
    13881381      strat->initEcartPair(&Lp,strat->S[i],p,strat->ecartS[i],ecart);
    1389       omTestMemory(1);
    13901382      l = strat->posInL(strat->L,strat->Ll,&Lp,strat);
    1391       omTestMemory(1);
    13921383      enterL(&strat->L,&strat->Ll,&strat->Lmax,Lp,l);
    1393       omTestMemory(1);
    1394       printf("\nJust printed and retuirned:\n");
    13951384    }
    13961385  #else
    1397   number s, t;
    13981386  assume(i<=strat->sl);
    13991387  assume(atR >= 0);
     
    14151403      return;
    14161404  }
     1405  //This is commented out since it is buggy over ZZ
     1406  //(check theory with Gerhard, Anne and Christian)
    14171407  #if 0
    14181408  // basic chain criterion
     
    14251415  *if the leading term of r devides lcm(s,p) then (s,p) will not enter B
    14261416  */
    1427   #if 0
     1417 
     1418  #if ADIDEBUG
    14281419  idPrint(strat->Shdl);
    14291420  for(int ii=0; ii<=strat->Ll; ii++)
     
    14321423  {printf("\nB[%i]\n",ii);pWrite(strat->B[ii].p);pWrite(strat->B[ii].p1);pWrite(strat->B[ii].p2);pWrite(strat->B[ii].lcm);}
    14331424  #endif
     1425 
    14341426  for(j = strat->Bl;j>=0;j--)
    14351427  {
     
    15081500  }
    15091501  #endif
     1502  number s, t;
    15101503  poly m1, m2, gcd;
    1511   //#if 1
    15121504  #if ADIDEBUG
    15131505  printf("\nTrying to add spair S[%i] und p\n",i);pWrite(strat->S[i]);pWrite(p);
     
    15251517  poly pm1 = pp_Mult_mm(pNext(p), m1, strat->tailRing);
    15261518  poly sim2 = pp_Mult_mm(pNext(si), m2, strat->tailRing);
     1519  pDelete(&si);
    15271520  if(sim2 == NULL)
    15281521  {
    15291522    if(pm1 == NULL)
    15301523    {
     1524      pDelete(&sim2);
     1525      pDelete(&pm1);
     1526      pDelete(&gcd);
     1527      pDelete(&m1);
     1528      pDelete(&m2);
    15311529      return;
    15321530    }
     
    15341532    {
    15351533      gcd = pCopy(pm1);
     1534      pDelete(&pm1);
     1535      pDelete(&sim2);
     1536      pDelete(&m1);
     1537      pDelete(&m2);
    15361538    }
    15371539  }
     
    15641566  int posx;
    15651567  h.pCleardenom();
    1566   //printf("\nThis is our new achieved polynomial:\n");pWrite(gcd);
    15671568  if(h.p == NULL)
    15681569    return;
    15691570  pSetm(h.p);
    1570   //#if 1
    15711571  #if ADIDEBUG
    15721572  printf("\nThis is afterwards:\n");
     
    15941594    h.t_p = k_LmInit_currRing_2_tailRing(h.p, strat->tailRing);
    15951595  #if ADIDEBUG
    1596   printf("\nThis s-poly was added to L:\n");pWrite(h.p);pWrite(h.p1);pWrite(h.p2);printf("\ni_r1 = %i, i_r2 = %i\n",h.i_r1, h.i_r2);pWrite(strat->T[h.i_r1].p);pWrite(strat->T[h.i_r2].p);
     1596  printf("\nThis s-poly was added to B:\n");pWrite(h.p);pWrite(h.p1);pWrite(h.p2);printf("\ni_r1 = %i, i_r2 = %i\n",h.i_r1, h.i_r2);pWrite(strat->T[h.i_r1].p);pWrite(strat->T[h.i_r2].p);
    15971597  #endif
    15981598  enterL(&strat->B,&strat->Bl,&strat->Bmax,h,posx);
    1599   #if 0
    1600   for(int i=0; i<=strat->Bl; i++)
    1601   {
    1602     printf("\n    B[%i]\n",i);
    1603     p_Write(strat->B[i].p, strat->B[i].tailRing);
    1604     p_Write(strat->B[i].p1, strat->B[i].tailRing);
    1605     p_Write(strat->B[i].p2, strat->B[i].tailRing);
    1606   }
    1607   #endif
    16081599  kTest_TS(strat);
    16091600}
Note: See TracChangeset for help on using the changeset viewer.