Changeset 512a2b in git for Singular/pDebug.cc
- Timestamp:
- Sep 18, 2000, 11:19:39 AM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d1655e92ca71fb37d1b57af88efdff5b65b8988b
- Parents:
- f3398d316400fe1ee1677fc397cacb80566ac664
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/pDebug.cc
rf3398d r512a2b 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 8/00 9 * Version: $Id: pDebug.cc,v 1. 3 2000-09-14 14:20:44obachman Exp $9 * Version: $Id: pDebug.cc,v 1.4 2000-09-18 09:19:23 obachman Exp $ 10 10 *******************************************************************/ 11 11 … … 18 18 #ifdef PDEBUG 19 19 20 #include "p olys.h"20 #include "p_polys.h" 21 21 #include "febase.h" 22 22 #include "omalloc.h" 23 23 #include "ring.h" 24 #include "numbers.h" 24 25 25 26 … … 68 69 if (custom != NULL) 69 70 { 70 pPolyAssumeReturn(custom == r); 71 pPolyAssumeReturnMsg(custom == r || rEqual((ring) custom, r, FALSE), 72 "monomial not from specified ring"); 71 73 return TRUE; 72 74 } … … 101 103 static int pDivisibleBy_FALSE = 1; 102 104 static int pDivisibleBy_ShortFalse = 1; 103 BOOLEAN pDebug ShortDivisibleBy(poly p1, unsigned long sev_1, ring r_1,105 BOOLEAN pDebugLmShortDivisibleBy(poly p1, unsigned long sev_1, ring r_1, 104 106 poly p2, unsigned long not_sev_2, ring r_2) 105 107 { … … 108 110 109 111 pDivisibleBy_number++; 110 BOOLEAN ret = _p_DivisibleBy1(p1, r_1, p2, r_2);112 BOOLEAN ret = p_LmDivisibleBy(p1, r_1, p2, r_2); 111 113 if (! ret) pDivisibleBy_FALSE++; 112 114 if (sev_1 & not_sev_2) … … 205 207 206 208 // special check for ringorder_s/S 207 if ( currRing->order[1] == ringorder_S)209 if (r->order[1] == ringorder_S) 208 210 { 209 211 long c1, cc1, ccc1, ec1; 210 sro_ord* o = &( currRing->typ[1]);211 212 c1 = p GetComp(p);212 sro_ord* o = &(r->typ[1]); 213 214 c1 = p_GetComp(p, r); 213 215 cc1 = o->data.syzcomp.Components[c1]; 214 216 ccc1 = o->data.syzcomp.ShiftedComponents[cc1]; 215 217 pPolyAssumeReturnMsg(c1 == 0 || cc1 != 0, "Component <-> TrueComponent zero mismatch"); 216 218 pPolyAssumeReturnMsg(c1 == 0 || ccc1 != 0,"Component <-> ShiftedComponent zero mismatch"); 217 ec1 = p->exp[ currRing->typ[1].data.syzcomp.place];219 ec1 = p->exp[r->typ[1].data.syzcomp.place]; 218 220 pPolyAssumeReturnMsg(ec1 == ccc1, "Shifted comp out of sync. should %d, is %d"); 219 221 } … … 224 226 poly p_should_equal = p_DebugInit(p, r, r); 225 227 pPolyAssumeReturnMsg(p_ExpVectorEqual(p, p_should_equal, r), "p_Setm field(s) out of sync"); 226 p_ Free(p_should_equal, r);228 p_LmFree(p_should_equal, r); 227 229 } 228 230 … … 280 282 poly pnext = pNext(lm); 281 283 pNext(lm) = tail; 282 BOOLEAN cmp = p_LmCmp(lm, tail );284 BOOLEAN cmp = p_LmCmp(lm, tail, lmRing); 283 285 if (cmp != 1) 284 286 dPolyReportError(lm, lmRing, "wrong order: lm <= Lm(tail)");
Note: See TracChangeset
for help on using the changeset viewer.