Changeset 470125b in git for kernel/GBEngine/kutil.cc


Ignore:
Timestamp:
Oct 21, 2017, 4:36:59 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
eafad1bbcab7f4572ef04a53e0ed3b009d4cc466
Parents:
90e748412d86517c444a170ecbebbf9489c44e06
Message:
fix: TObject::pLength
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r90e748 r470125b  
    74307430    {
    74317431      T->Set(strat->S[j], r, strat->tailRing);
     7432      assume(T->GetpLength()==pLength(T->p != __null ? T->p : T->t_p));
    74327433      return T;
    74337434    }
     
    74557456            (ecart== LONG_MAX || ecart>= strat->ecartS[j]))
    74567457        {
     7458          t->pLength=pLength(t->t_p);
    74577459          return t;
    74587460        }
     
    74647466          if (p_LmDivisibleBy(t->t_p, p, r))
    74657467          {
     7468            t->pLength=pLength(t->t_p);
    74667469            return t;
    74677470          }
     
    74847487            (ecart== LONG_MAX || ecart>= strat->ecartS[j]) && n_DivBy(pGetCoeff(p), pGetCoeff(t->t_p), r->cf))
    74857488        {
     7489          t->pLength=pLength(t->t_p);
    74867490          return t;
    74877491        }
     
    74937497          if (p_LmDivisibleBy(t->t_p, p, r) && n_DivBy(pGetCoeff(p), pGetCoeff(t->t_p), r->cf))
    74947498          {
     7499            t->pLength=pLength(t->t_p);
    74957500            return t;
    74967501          }
     
    75957600
    75967601  LObject Ln(pNext(h), strat->tailRing);
    7597   Ln.pLength = L->GetpLength() - 1;
     7602  Ln.GetpLength();
    75987603
    75997604  pNext(h) = NULL;
    7600   if (L->p != NULL) pNext(L->p) = NULL;
     7605  if (L->p != NULL)
     7606  {
     7607    pNext(L->p) = NULL;
     7608    if (L->t_p != NULL) pNext(L->t_p) = NULL;
     7609  }
    76017610  L->pLength = 1;
    76027611
     
    76267635        if (j < 0) break;
    76277636        With = &(strat->T[j]);
     7637        assume(With->GetpLength()==pLength(With->p != __null ? With->p : With->t_p));
    76287638      }
    76297639      else
     
    76317641        With = kFindDivisibleByInS_T(strat, end_pos, &Ln, &With_s);
    76327642        if (With == NULL) break;
     7643        assume(With->GetpLength()==pLength(With->p != __null ? With->p : With->t_p));
    76337644      }
    76347645      cnt--;
Note: See TracChangeset for help on using the changeset viewer.