Changeset 836c32 in git


Ignore:
Timestamp:
Aug 23, 2016, 4:01:06 PM (8 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
74eafed4a90b880a02beba6665b920093bec6aa2
Parents:
353e59740153da5f7c66ce40ec97f46571896b9a
git-author:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2016-08-23 16:01:06+02:00
git-committer:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2017-12-15 12:17:07+01:00
Message:
chg: simplify FindReducer()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/syz4.cc

    r353e59 r836c32  
    343343    return NULL;
    344344  }
    345   long c = 0;
    346   if (syzterm != NULL)
    347     c = p_GetComp(syzterm, r) - 1;
    348   const BOOLEAN to_check = !syz_checker->empty();
    349345  const poly q = p_New(r);
    350346  pNext(q) = NULL;
    351347  const unsigned long m_not_sev = ~p_GetShortExpVector(multiplier, t, r);
    352   while (true) {
    353     for( ; m_current != m_finish; ++m_current) {
    354       if ( !((*m_current)->sev & m_not_sev)
    355           && _p_LmDivisibleByNoComp((*m_current)->lt, multiplier, t, r)) {
    356         break;
    357       }
    358     }
    359     if (m_current == m_finish) {
    360       break;
     348  for( ; m_current != m_finish; ++m_current) {
     349    if ( ((*m_current)->sev & m_not_sev)
     350        || !(_p_LmDivisibleByNoComp((*m_current)->lt, multiplier, t, r))) {
     351      continue;
    361352    }
    362353    const poly p = (*m_current)->lt;
    363354    const int k  = (*m_current)->label;
    364     ++m_current;
    365355    p_ExpVectorSum(q, multiplier, t, r); // q == product == multiplier * t
    366356    p_ExpVectorDiff(q, q, p, r); // (LM(product) / LM(L[k]))
     
    368358    p_Setm(q, r);
    369359    // cannot allow something like: a*gen(i) - a*gen(i)
    370     if (syzterm != NULL && (k == c))
    371     if (p_ExpVectorEqual(syzterm, q, r)) {
     360    if (syzterm != NULL && (k == p_GetComp(syzterm, r) - 1)
     361        && p_ExpVectorEqual(syzterm, q, r)) {
    372362      continue;
    373363    }
    374     if (to_check && IsDivisible(syz_checker, q)) {
     364    if (IsDivisible(syz_checker, q)) {
    375365      continue;
    376366    }
Note: See TracChangeset for help on using the changeset viewer.