Changeset 930ea8 in git for kernel/sca.cc


Ignore:
Timestamp:
Jan 11, 2012, 2:42:18 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
6c98d526bf15bb5a2845bfd4fb4f54474229668c
Parents:
31f1850ad6697d9acd155b53fa63f9e1a648ed9c
Message:
chg: compiler warnings: newHEdge, messageStat
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/sca.cc

    r31f1850 r930ea8  
    149149#endif
    150150
    151   int srmax, lrmax;
    152151  int olddeg, reduc;
    153152  int red_result = 1;
     
    168167  strat->posInT=posInT110; // !!!
    169168
    170   srmax = strat->sl;
    171   reduc = olddeg = lrmax = 0;
     169  reduc = olddeg = 0;
    172170
    173171
     
    180178    )
    181179  {
    182     if (strat->Ll > lrmax) lrmax =strat->Ll;// stat.
    183 
    184180#ifdef KDEBUG
    185181    if (TEST_OPT_DEBUG) messageSets(strat);
     
    235231
    236232    addLObject(strat->P, strat);
    237 
    238     if (strat->sl > srmax) srmax = strat->sl;
    239233
    240234    const poly save = strat->P.p;
     
    307301  //       h.p = save;
    308302  //       addLObject(h, strat);
    309 
    310 //         if (strat->sl > srmax) srmax = strat->sl;
    311303      }
    312304
     
    340332  }
    341333
    342   if (TEST_OPT_PROT) messageStat(srmax,lrmax,hilbcount,strat);
     334  if (TEST_OPT_PROT) messageStat(hilbcount,strat);
    343335
    344336  if (tempQ!=NULL) updateResult(strat->Shdl,tempQ,strat);
     
    436428#endif
    437429
    438   int   srmax, lrmax, red_result = 1;
     430  int   red_result = 1;
    439431  int   olddeg, reduc;
    440432
     
    458450//   if (strat->minim>0) strat->M = idInit(IDELEMS(F),F->rank);
    459451
    460   srmax = strat->sl;
    461   reduc = olddeg = lrmax = 0;
     452  reduc = olddeg = 0;
    462453
    463454#define NO_BUCKETS
     
    548539  while (strat->Ll >= 0)
    549540  {
    550     if (strat->Ll > lrmax) lrmax =strat->Ll;// stat.
    551 
    552541#ifdef KDEBUG
    553542//     loop_count++;
     
    693682      if (strat->P.lcm!=NULL) pLmFree(strat->P.lcm);
    694683
    695       if (strat->sl>srmax) srmax = strat->sl;
    696 
    697684      // //////////////////////////////////////////////////////////
    698685      // SCA:
     
    836823  }
    837824
    838   if (TEST_OPT_PROT) messageStat(srmax,lrmax,hilbcount,strat);
     825  if (TEST_OPT_PROT) messageStat(hilbcount,strat);
    839826
    840827
     
    969956
    970957
    971   int srmax = strat->sl;
    972   int lrmax = strat->Ll;
    973958  int olddeg = 0;
    974959  int reduc = 0;
     
    10361021
    10371022              enterL(&strat->L,&strat->Ll,&strat->Lmax,h,pos);
    1038 
    1039               if (strat->Ll>lrmax) lrmax = strat->Ll;
    10401023            }
    10411024      }
     
    10521035    sca_mora_loop_count++;
    10531036#endif
    1054     if (lrmax< strat->Ll) lrmax=strat->Ll; // stat
    10551037    //test_int_std(strat->kIdeal);
    10561038#ifdef KDEBUG
     
    11451127      strat->P.lcm=NULL;
    11461128
    1147       if (strat->sl>srmax) srmax = strat->sl; // stat.
    1148       if (strat->Ll>lrmax) lrmax = strat->Ll;
    1149 
    1150 
    1151 
    11521129      // //////////////////////////////////////////////////////////
    11531130      // SCA:
     
    11861163
    11871164        enterL(&strat->L,&strat->Ll,&strat->Lmax,h,pos);
    1188 
    1189         if (strat->Ll>lrmax) lrmax = strat->Ll;
    11901165      }
    11911166
     
    12311206  pDelete(&strat->kNoether);
    12321207  omFreeSize((ADDRESS)strat->NotUsedAxis,(pVariables+1)*sizeof(BOOLEAN));
    1233   if (TEST_OPT_PROT) messageStat(srmax,lrmax,hilbcount,strat);
     1208  if (TEST_OPT_PROT) messageStat(hilbcount,strat);
    12341209  if (TEST_OPT_WEIGHTM)
    12351210  {
Note: See TracChangeset for help on using the changeset viewer.