@@ -2476,6 +2476,48 @@ P;
24762476assert succeeded?
24772477assert result(" F" ) =~ expr(" 9999" )
24782478*--#] Issue268_2 :
2479+ *--#[ Issue271 :
2480+ #-
2481+ #define N " 16"
2482+ Symbol x,n;
2483+ Local test = -{`N'*(`N'+1)/2} + <x^1>+...+<x^`N'>;
2484+ .sort
2485+ #$split = 0;
2486+ Identify x^n?pos_ = n;
2487+ $split = $split + term_;
2488+ ModuleOption sum $split;
2489+ .sort
2490+ #message split = `$split'
2491+ Print;
2492+ .end
2493+ assert succeeded?
2494+ assert stdout =~ exact_pattern(<<EOF)
2495+ ~~~split = 0
2496+ EOF
2497+ assert result(" test" ) =~ expr(" 0" )
2498+ *--#] Issue271 :
2499+ *--#[ Issue271b :
2500+ #-
2501+ #define N " 16"
2502+ Symbol x,n;
2503+ Local test = -{`N'*(`N'+1)/2} + <x^1>+...+<x^`N'>;
2504+ .sort
2505+ #$split = 0;
2506+ $split = $split + term_;
2507+ ModuleOption sum $split;
2508+ .sort
2509+ #message split = `$split'
2510+ Print;
2511+ .end
2512+ # This symbolic sum doesn't work in TFORM, but does work in ParFORM:
2513+ #pend_if threaded?
2514+ assert succeeded?
2515+ assert stdout =~ exact_pattern(<<EOF)
2516+ ~~~split = -136+x+x^2+x^3+x^4+x^5+x^6+x^7+x^8+x^9+x^10+x^11+x^12+x^13+x^14+x^15
2517+ +x^16
2518+ EOF
2519+ assert result(" test" ) =~ expr(" - 136 + x + x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^10 + x^11 + x^12 + x^13 + x^14 + x^15 + x^16" )
2520+ *--#] Issue271b :
24792521*--#[ Issue277 :
24802522* A question about addargs
24812523CFunction f,g,h;
@@ -4448,6 +4490,53 @@ assert warning?("Excess information in symmetric properties")
44484490assert warning?(" Illegal information in number of arguments properties" )
44494491assert warning?(" Undefined $-variable" )
44504492*--# ] Issue766 :
4493+ *--# [ Issue796 :
4494+ * Regression: the fix for 796 deadlocks here:
4495+ Symbol x;
4496+ Local test = <x^1>+...+<x^128>;
4497+ # $maxpow = 0;
4498+ $maxpow = max_($maxpow,count_(x,1));
4499+ ModuleOption maximum $maxpow;
4500+ .sort
4501+ # message maxpow: `$maxpow'
4502+ .end
4503+ assert succeeded?
4504+ assert stdout =~ exact_pattern(<<' EOF' )
4505+ maxpow: 128
4506+ EOF
4507+ *--# ] Issue796 :
4508+ *--# [ Issue796b :
4509+ * Regression: the fix for 796 deadlocks here:
4510+ Symbol x;
4511+ Local test = <x^1>+...+<x^128>;
4512+ # $minpow = 129;
4513+ $minpow = min_($minpow,count_(x,1));
4514+ ModuleOption minimum $minpow;
4515+ .sort
4516+ # message minpow: `$minpow'
4517+ .end
4518+ assert succeeded?
4519+ assert stdout =~ exact_pattern(<<' EOF' )
4520+ minpow: 1
4521+ EOF
4522+ *--# ] Issue796b :
4523+ *--# [ Issue796c :
4524+ * This case has always deadlocked:
4525+ Symbol x;
4526+ Local test = <x^1>+...+<x^128>;
4527+ # $sumpow = 129;
4528+ $sumpow = max_($sumpow,count_(x,1));
4529+ ModuleOption sum $sumpow;
4530+ .sort
4531+ # message sumpow: `$sumpow'
4532+ .end
4533+ # ParFORM does not pass this test
4534+ # pend_if mpi?
4535+ assert succeeded?
4536+ assert stdout =~ exact_pattern(<<' EOF' )
4537+ sumpow: 129
4538+ EOF
4539+ *--# ] Issue796c :
44514540*--# [ PullReq535 :
44524541* This test requires more than the specified 50K workspace.
44534542# :maxtermsize 200
0 commit comments