Changeset 47f985 in git for kernel/syz0.cc


Ignore:
Timestamp:
Aug 3, 2011, 6:58:36 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
7e53d9acff21e67d7a47d268428d8f4f7825e91b
Parents:
2a38d905f7089590329433f35ad43c3aaf5fd122
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-03 18:58:36+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:14:21+01:00
Message:
FIX: kBucketCreate needs a ring!
CHG: minor bucket-related fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/syz0.cc

    r2a38d90 r47f985  
    2525#include <polys/kbuckets.h>
    2626#include <polys/prCopy.h>
    27 
    28 static kBucket_pt sy0buck;
    2927
    3028static void syInitSort(ideal arg,intvec **modcomp)
     
    506504static ideal sySchreyersSyzygiesFB(ideal arg,intvec ** modcomp,ideal mW,BOOLEAN redTail=TRUE)
    507505{
     506  kBucket_pt sy0buck = kBucketCreate(currRing);
     507
    508508  int Fl=IDELEMS(arg);
    509509  while ((Fl!=0) && (arg->m[Fl-1]==NULL)) Fl--;
     
    666666              omFreeSize((ADDRESS)pairs,(Fl + gencQ)*sizeof(poly));
    667667              for(k=0;k<IDELEMS(result);k++) pDelete(&((*Shdl)[k]));
     668               
     669              kBucketDestroy(&(sy0buck));
    668670              return result;
    669671            }
     
    731733  delete *modcomp;
    732734  *modcomp = newmodcomp;
     735   
     736  kBucketDestroy(&(sy0buck));
    733737  return result;
    734738}
     
    876880  resolvente res = (resolvente)omAlloc0(4*sizeof(ideal)),newres;
    877881  res[0] = idCopy(arg);
     882
    878883  while ((!idIs0(res[syzIndex])) && ((maxlength==-1) || (syzIndex<maxlength)))
    879884  {
    880885    i = IDELEMS(res[syzIndex]);
    881886    //while ((i!=0) && (!res[syzIndex]->m[i-1])) i--;
    882     sy0buck = kBucketCreate();
    883887    if (syzIndex+1==*length)
    884888    {
     
    938942    syzIndex++;
    939943    if (TEST_OPT_PROT) Print("[%d]\n",syzIndex);
    940     kBucketDestroy(&(sy0buck));
    941944  }
    942945  //syPrintResolution(res,1,*length);
Note: See TracChangeset for help on using the changeset viewer.