Changeset 72292f in git


Ignore:
Timestamp:
Sep 13, 2010, 5:27:29 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6dd8b1607bc68ebfa7bf0794af46c6f8429788ae
Parents:
018577ef150959aa2cb45fc6f4167e9ef1096972
Message:
trac 230

git-svn-id: file:///usr/local/Singular/svn/trunk@13186 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fglm.cc

    r018577 r72292f  
    246246    {
    247247        poly p = (theIdeal->m)[k];
    248         if ( pIsConstant( p ) ) state= FglmHasOne;
    249         else if ( (power= pIsPurePower( p )) > 0 )
    250         {
     248        if (p!=NULL)
     249        {
     250          if( pIsConstant( p ) ) state= FglmHasOne;
     251          else if ( (power= pIsPurePower( p )) > 0 )
     252          {
    251253            fglmASSERT( 0 < power && power <= pVariables, "illegal power" );
    252254            if ( purePowers[power-1] == TRUE  ) state= FglmNotReduced;
    253255            else purePowers[power-1]= TRUE;
    254         }
    255         for ( int l = IDELEMS( theIdeal ) - 1; state == FglmOk && l >= 0; l-- )
     256          }
     257          for ( int l = IDELEMS( theIdeal ) - 1; state == FglmOk && l >= 0; l-- )
    256258            if ( (k != l) && pDivisibleBy( p, (theIdeal->m)[l] ) )
    257259                state= FglmNotReduced;
     260        }
    258261    }
    259262    if ( state == FglmOk )
     
    288291    {
    289292        idhdl ih = currRing->idroot->get( second->Name(), myynest );
    290         if ( (ih != NULL) && (IDTYP(ih)==IDEAL_CMD) ) {
     293        if ( (ih != NULL) && (IDTYP(ih)==IDEAL_CMD) )
     294        {
    291295            ideal sourceIdeal;
    292296            if ( currQuotient != NULL )
     
    434438      {
    435439        if((i=pIsUnivariate(sourceIdeal->m[k]))>0)
    436         { 
     440        {
    437441          if (purePowers[i-1]==0)
    438442          {
     
    450454      omFreeSize((ADDRESS)purePowers, pVariables*sizeof( BOOLEAN ) );
    451455      if (destIdeal!=NULL)
    452             state = FglmOk; 
     456            state = FglmOk;
    453457      else if ( FindUnivariateWrapper( sourceIdeal, destIdeal ) == FALSE )
    454458            state = FglmNotReduced;
Note: See TracChangeset for help on using the changeset viewer.