Changeset 5ecf042 in git for Singular/kutil.cc
- Timestamp:
- Dec 19, 2000, 7:31:48 PM (23 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 7022cd9d4b1177139f7d205efecb93fa232cc319
- Parents:
- b9d57bdc42ac80a762bda08cdb917d46e9f35616
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/kutil.cc
rb9d57b r5ecf042 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.8 6 2000-12-18 17:47:18obachman Exp $ */4 /* $Id: kutil.cc,v 1.87 2000-12-19 18:31:41 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 647 647 } 648 648 } 649 r_assume(L->max == NULL);650 649 if (L->p1 == NULL) 651 650 { … … 776 775 return dReportError("L[%d].i_r2 out of sync", i); 777 776 } 777 if (strat->L[i].i_r != -1) 778 return dReportError("L[%d].i_r out of sync", i); 778 779 } 779 780 return TRUE; … … 3991 3992 for (i=strat->sl; i>0; i--) 3992 3993 { 3993 //if (strat->interpt) test_int_std(strat->kIdeal); 3994 strat->S[i] = redtailBba(strat->S[i],i-1,strat); 3994 TObject* T_j = strat->s_2_t(i); 3995 if (T_j != NULL) 3996 { 3997 assume(strat->S[i] == T_j->p); 3998 strat->S[i] = redtailBba(T_j, i-1, strat); 3999 assume(strat->S[i] == T_j->p); 4000 if (strat->redTailChange && strat->tailRing != currRing) 4001 { 4002 if (T_j->max != NULL) p_LmFree(T_j->max, strat->tailRing); 4003 if (pNext(T_j->p) != NULL) 4004 T_j->max = p_GetMaxExpP(pNext(T_j->p), strat->tailRing); 4005 else 4006 T_j->max = NULL; 4007 } 4008 } 4009 else 4010 strat->S[i] = redtailBba(strat->S[i],i-1,strat); 4011 3995 4012 if (TEST_OPT_INTSTRATEGY) 3996 4013 { … … 4130 4147 4131 4148 if (L != NULL && L->tailRing != new_tailRing) 4132 L->ShallowCopyDelete(new_tailRing, p_shallow_copy_delete); 4133 if (T != NULL && T->tailRing != new_tailRing) 4149 { 4150 if (L->i_r < 0) 4151 L->ShallowCopyDelete(new_tailRing, p_shallow_copy_delete); 4152 else 4153 { 4154 assume(L->i_r <= strat->tl); 4155 TObject* t_l = strat->R[L->i_r]; 4156 assume(t_l != NULL); 4157 L->tailRing = new_tailRing; 4158 L->p = t_l->p; 4159 L->t_p = t_l->t_p; 4160 L->max = t_l->max; 4161 } 4162 } 4163 4164 if (T != NULL && T->tailRing != new_tailRing && T->i_r < 0) 4134 4165 T->ShallowCopyDelete(new_tailRing, new_tailBin, p_shallow_copy_delete); 4135 4166 … … 4172 4203 } 4173 4204 4174 #endif // KUTIL_CC4175 4205 4176 4206 #if 0 … … 4325 4355 4326 4356 #endif 4357 4358 #endif // KUTIL_CC
Note: See TracChangeset
for help on using the changeset viewer.