Changeset 1eabfc in git


Ignore:
Timestamp:
Aug 26, 2018, 11:34:25 AM (6 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
46db0814d770d7de29357aac459e015a60f8df24
Parents:
53238ada2509c5e616157c153594cd6ff9f936be
Message:
fix: kTest_L  requires tailRing
Location:
kernel/GBEngine
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kspoly.cc

    r53238a r1eabfc  
    5959  int ret = 0;
    6060  ring tailRing = PR->tailRing;
    61   kTest_L(PR);
     61  kTest_L(PR,tailRing);
    6262  kTest_T(PW);
    6363
     
    192192  int ret = 0;
    193193  ring tailRing = PR->tailRing;
    194   kTest_L(PR);
     194  kTest_L(PR,tailRing);
    195195  kTest_T(PW);
    196196
     
    336336  int ret = 0;
    337337  ring tailRing = PR->tailRing;
    338   kTest_L(PR);
     338  kTest_L(PR,tailRing);
    339339  kTest_T(PW);
    340340
     
    473473  int ret = 0;
    474474  ring tailRing = PR->tailRing;
    475   kTest_L(PR);
     475  kTest_L(PR,tailRing);
    476476  kTest_T(PW);
    477477
     
    671671  int ret = 0;
    672672  ring tailRing = PR->tailRing;
    673   kTest_L(PR);
     673  kTest_L(PR,tailRing);
    674674  kTest_T(PW);
    675675
     
    909909  create_count++;
    910910#endif
    911   kTest_L(Pair);
     911  kTest_L(Pair,tailRing);
    912912  poly p1 = Pair->p1;
    913913  poly p2 = Pair->p2;
     
    10271027  poly Save =   PW->GetLmCurrRing();
    10281028
    1029   kTest_L(PR);
     1029  kTest_L(PR,PR->tailRing);
    10301030  kTest_T(PW);
    10311031  pAssume(pIsMonomOf(Lp, Current));
     
    10831083  poly Save =   PW->GetLmCurrRing();
    10841084
    1085   kTest_L(PR);
     1085  kTest_L(PR,PR->tailRing);
    10861086  kTest_T(PW);
    10871087  pAssume(pIsMonomOf(Lp, Current));
  • kernel/GBEngine/kstd2.cc

    r53238a r1eabfc  
    14391439  //if (TEST_OPT_PROT) { PrintS("N"); mflush(); }
    14401440  //L->Normalize(); // HANNES: should have a test
    1441   kTest_L(L);
     1441  kTest_L(L,strat->tailRing);
    14421442  return L->GetLmCurrRing();
    14431443}
  • kernel/GBEngine/kutil.cc

    r53238a r1eabfc  
    244244  if (strat->kHEdgeFound)
    245245  {
    246     kTest_L(L);
     246    kTest_L(L,strat->tailRing);
    247247    poly p1;
    248248    poly p = L->GetLmTailRing();
     
    311311        kBucketDestroy(&bucket);
    312312    }
    313     kTest_L(L);
     313    kTest_L(L,strat->tailRing);
    314314  }
    315315}
     
    75417541  //if (TEST_OPT_PROT) { PrintS("N"); mflush(); }
    75427542  //L->Normalize(); // HANNES: should have a test
    7543   kTest_L(L);
     7543  kTest_L(L,strat->tailRing);
    75447544  return L->GetLmCurrRing();
    75457545}
     
    76567656  //if (TEST_OPT_PROT) { PrintS("N"); mflush(); }
    76577657  //L->Normalize(); // HANNES: should have a test
    7658   kTest_L(L);
     7658  kTest_L(L,strat->tailRing);
    76597659  return L->GetLmCurrRing();
    76607660}
     
    77717771  //if (TEST_OPT_PROT) { PrintS("N"); mflush(); }
    77727772  //L->Normalize(); // HANNES: should have a test
    7773   kTest_L(L);
     7773  kTest_L(L,strat->tailRing);
    77747774  return L->GetLmCurrRing();
    77757775}
     
    1268112681  }
    1268212682  L->Normalize(); // HANNES: should have a test
    12683   kTest_L(L);
     12683  kTest_L(L,strat->tailRing);
    1268412684  return L->GetLmCurrRing();
    1268512685}
  • kernel/GBEngine/kutil.h

    r53238a r1eabfc  
    638638BOOLEAN kTest_TS(kStrategy strat);
    639639// test LObject
    640 BOOLEAN kTest_L(LObject* L, ring tailRing = NULL,
     640BOOLEAN kTest_L(LObject* L, ring tailRing,
    641641                 BOOLEAN testp = FALSE, int lpos = -1,
    642642                 TSet T = NULL, int tlength = -1);
     
    650650#define kTest_T(T)      (TRUE)
    651651#define kTest_S(T)      (TRUE)
    652 #define kTest_L(T    (TRUE)
     652#define kTest_L(T,R)    (TRUE)
    653653#endif
    654654
Note: See TracChangeset for help on using the changeset viewer.