Skip to content

Commit 83e3d41

Browse files
committed
fix: bug in PR #490
1 parent afc48b7 commit 83e3d41

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

check/fixes.frm

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,6 +2750,47 @@ assert stdout =~ exact_pattern(<<'EOF')
27502750
nonempty(14): x y
27512751
EOF
27522752
*--#] Issue486 :
2753+
*--#[ Issue490_1 :
2754+
T t;
2755+
I i1,...,i4;
2756+
L F = t(i1,i3)*t(i2,i4);
2757+
id t(i1?,?a)*t(i2?,?b) = t(i1,i2,?a,?b);
2758+
P;
2759+
.end
2760+
assert succeeded?
2761+
assert result("F") =~ expr("t(i1,i2,i3,i4)")
2762+
*--#] Issue490_1 :
2763+
*--#[ Issue490_2 :
2764+
T t(cyclic);
2765+
I i1,...,i4;
2766+
L F = t(i1,i3)*t(i2,i4);
2767+
id t(i1?,?a)*t(i2?,?b) = t(i1,i2,?a,?b);
2768+
P;
2769+
.end
2770+
assert succeeded?
2771+
assert result("F") =~ expr("t(i1,i2,i3,i4)")
2772+
*--#] Issue490_2 :
2773+
*--#[ Issue490_3 :
2774+
T t(cyclic);
2775+
I i1,...,i6;
2776+
L F = t(i1,i3,i2,i5)*t(i1,i4,i2,i6);
2777+
id t(i1?,?a,i2?,?c)*t(i1?,?b,i2?,?d) = t(i1,i2)*t(?a,?b)*t(?c,?d);
2778+
P;
2779+
.end
2780+
assert succeeded?
2781+
assert result("F") =~ expr("t(i1,i2)*t(i3,i4)*t(i5,i6)")
2782+
*--#] Issue490_3 :
2783+
*--#[ Issue490_4 :
2784+
T t;
2785+
CF f;
2786+
I i1,i2;
2787+
L F = t(i1,i2)*t(i1,i2);
2788+
id t(?a)*t(?a) = f(?a);
2789+
P;
2790+
.end
2791+
assert succeeded?
2792+
assert result("F") =~ expr("f(i1,i2)")
2793+
*--#] Issue490_4 :
27532794
*--#[ Issue499_1 :
27542795
* Freeze in parsing complex conjugate
27552796
S x#c;

sources/function.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ FullOK: if ( AN.SignCheck && AN.ExpectedSign ) goto NoGamma;
10531053
if ( *m == FUNNYWILD ) {
10541054
tobeeaten = AT.WildArgTaken[numofwildarg++];
10551055
if ( CheckWild(BHEAD m[1],ARGTOARG|EATTENSOR,tobeeaten,t) ) goto endloop;
1056-
AddWild(BHEAD m[1],ARGTOARG,i);
1056+
AddWild(BHEAD m[1],ARGTOARG|EATTENSOR,tobeeaten);
10571057
m += 2;
10581058
t += tobeeaten;
10591059
continue;

0 commit comments

Comments
 (0)