Changeset caf8c6 in git
- Timestamp:
- Mar 22, 2018, 11:34:54 AM (5 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 556097841b7ad9fa7668ad61e04b914a898af42c
- Parents:
- bd0e073bf0ae20c6d66da9cd3ea1a713bb29dd6c
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/misc_ip.cc
rbd0e07 rcaf8c6 859 859 StringAppendS("YYDEBUG=1,"); 860 860 #endif 861 #ifdef HAVE_ASSUME862 StringAppendS("ASSUME,");863 #endif864 861 #ifdef MDEBUG 865 862 StringAppend("MDEBUG=%d,",MDEBUG); -
dox/Doxyfile.in
rbd0e07 rcaf8c6 1989 1989 __cplusplus \ 1990 1990 GENTABLE \ 1991 HAVE_ASSUME \1992 1991 HAVE_ATEXIT \ 1993 1992 HAVE_BIGINTM \ -
kernel/GBEngine/kInline.h
rbd0e07 rcaf8c6 758 758 long ldeg; 759 759 ldeg = tailRing->pLDeg(GetLmTailRing(), &length, tailRing); 760 #if def HAVE_ASSUME760 #ifndef SING_NDEBUG 761 761 if ( pLength == 0) 762 762 p_Last(GetLmTailRing(), pLength, tailRing); -
kernel/GBEngine/sca.cc
rbd0e07 rcaf8c6 882 882 } 883 883 884 #ifdef HAVE_ASSUME885 static int sca_mora_count = 0;886 #endif887 888 884 // ideal sca_mora (ideal F, ideal Q, intvec *w, intvec *, kStrategy strat) 889 885 ideal k_sca_mora(const ideal F, const ideal Q, const intvec */*w*/, const intvec *, kStrategy strat, const ring _currRing) … … 913 909 #ifdef PDEBUG 914 910 assume( strat->homog == bIdHomog ); 915 #endif916 917 #ifdef HAVE_ASSUME918 sca_mora_count++;919 911 #endif 920 912 -
kernel/GBEngine/syz1.cc
rbd0e07 rcaf8c6 379 379 380 380 assume(LONG_MAX - SYZ_SHIFT_BASE > tc[n-1]); 381 #if def HAVE_ASSUME381 #ifndef SING_NDEBUG 382 382 for (i=1; i<n; i++) 383 383 { -
kernel/mod2.h
rbd0e07 rcaf8c6 153 153 /* undefine to enable inline */ 154 154 #define NO_INLINE 155 156 /* undefine to disable assume -- should normally be defined for SING_NDEBUG */157 #define HAVE_ASSUME158 155 159 156 /* undef PDEBUG to disable checks of polys … … 383 380 #endif 384 381 385 #if ndef HAVE_ASSUME382 #ifdef SING_NDEBUG 386 383 #define assume(x) do {} while (0) 387 384 #define r_assume(x) do {} while (0) 388 #else /* ! HAVE_ASSUME*/385 #else /* SING_NDEBUG */ 389 386 390 387 #define assume_violation(s,f,l) \ … … 414 411 } \ 415 412 while (0) 416 #endif /* HAVE_ASSUME*/413 #endif /* SING_NDEBUG */ 417 414 418 415 /* do have RDEBUG, unless we are doing the very real thing */ 419 #if def HAVE_ASSUME416 #ifndef SING_NDEBUG 420 417 #ifndef RDEBUG 421 418 #define RDEBUG -
libpolys/misc/auxiliary.h
rbd0e07 rcaf8c6 160 160 /* undefine to enable inline */ 161 161 #define NO_INLINE 162 163 /* undefine to disable assume -- should normally be defined for SING_NDEBUG */164 #define HAVE_ASSUME165 162 166 163 /* undef PDEBUG to disable checks of polys -
libpolys/polys/monomials/p_polys.cc
rbd0e07 rcaf8c6 3450 3450 int l = 0; 3451 3451 3452 #if def HAVE_ASSUME3452 #ifndef SING_NDEBUG 3453 3453 int lp = pLength(*r_p); 3454 3454 #endif … … 3485 3485 *r_q = pNext(&qq); 3486 3486 *lq = l; 3487 #if def HAVE_ASSUME3487 #ifndef SING_NDEBUG 3488 3488 assume(pLength(*r_p) + pLength(*r_q) == lp); 3489 3489 #endif -
libpolys/polys/sbuckets.cc
rbd0e07 rcaf8c6 334 334 poly sBucketSortMerge(poly p, const ring r) 335 335 { 336 #ifdef HAVE_ASSUME 336 if (p == NULL || pNext(p) == NULL) return p; 337 338 #ifndef SING_NDEBUG 337 339 int l_in = pLength(p); 338 #endif 339 340 if (p == NULL || pNext(p) == NULL) return p; 341 340 #endif 342 341 sBucket_pt bucket = sBucketCreate(r); 343 342 poly pn = pNext(p); … … 358 357 359 358 p_Test(pn, r); 360 #ifdef HAVE_ASSUME361 359 assume(l_dummy == pLength(pn)); 362 360 assume(l_in == l_dummy); 363 #endif364 361 return pn; 365 362 } … … 371 368 poly sBucketSortAdd(poly p, const ring r) 372 369 { 373 #if def HAVE_ASSUME370 #ifndef SING_NDEBUG 374 371 int l_in = pLength(p); 375 372 #endif … … 395 392 396 393 p_Test(pn, r); 397 #if def HAVE_ASSUME394 #ifndef SING_NDEBUG 398 395 assume(l_dummy == pLength(pn)); 399 396 assume(l_in >= l_dummy); -
libpolys/reporter/reporter.h
rbd0e07 rcaf8c6 121 121 #endif 122 122 123 #if ndef HAVE_ASSUME123 #ifdef SING_NDEBUG 124 124 #define assume(x) do {} while (0) 125 125 #define r_assume(x) do {} while (0) 126 #else /* ! HAVE_ASSUME*/126 #else /* !SING_NDEBUG */ 127 127 128 128 #define assume_violation(s,f,l) \ … … 152 152 } \ 153 153 while (0) 154 #endif /* HAVE_ASSUME*/154 #endif /* !SING_NDEBUG */ 155 155 156 156 #endif /* ifndef OUTPUT_H */
Note: See TracChangeset
for help on using the changeset viewer.