Remove unused variable in latest test

This commit is contained in:
Sei Lisa 2024-05-25 14:42:40 +02:00
parent d70c914738
commit 1d1aba9687
2 changed files with 8 additions and 10 deletions

View file

@ -2,19 +2,17 @@ default{timer(){
integer ia = llGetUnixTime(); integer ia = llGetUnixTime();
integer ib = llGetUnixTime(); integer ib = llGetUnixTime();
integer ic = -5; integer ic = -5;
integer id = ia*2; integer id = -ic*ia;
integer ie = -ic*ia;
float fa = llGetTime(); float fa = llGetTime();
float fb = llGetTime(); float fb = llGetTime();
float fc = -5.5; float fc = -5.5;
float fd = fa*2; float fd = -fc*fa;
float fe = -fc*fa;
// FIXME: This is broken in the output module. // FIXME: This is broken in the output module.
// The output should parenthesize the first two factors in the products, // The output should parenthesize the first two factors in the products,
// just as they are in the source. Fortunately they are equivalent. // just as they are in the source. Fortunately they are equivalent.
// FIXME: The output is not optimal. // FIXME: The output is not optimal.
// It would suffice to add a space without parenthesizing the --ia, // It would suffice to add a space without parenthesizing the --ia,
// just like in the source. // just like in the source.
llOwnerSay((string)[(- --ia*ib)*ib, (-++ia*ib)*ib, --ia*ib, ie]); llOwnerSay((string)[(- --ia*ib)*ib, (-++ia*ib)*ib, --ia*ib, id]);
llOwnerSay((string)[(- --fa*fb)*fb, (-++fa*fb)*fb, --fa*fb, fe]); llOwnerSay((string)[(- --fa*fb)*fb, (-++fa*fb)*fb, --fa*fb, fd]);
}} }}

View file

@ -4,11 +4,11 @@ default
{ {
integer ia = llGetUnixTime(); integer ia = llGetUnixTime();
integer ib = llGetUnixTime(); integer ib = llGetUnixTime();
integer ie = -(-5) * ia; integer id = -(-5) * ia;
float fa = llGetTime(); float fa = llGetTime();
float fb = llGetTime(); float fb = llGetTime();
float fe = -(-5.5) * fa; float fd = -(-5.5) * fa;
llOwnerSay((string)[-(--ia) * ib * ib, -++ia * ib * ib, (--ia) * ib, ie]); llOwnerSay((string)[-(--ia) * ib * ib, -++ia * ib * ib, (--ia) * ib, id]);
llOwnerSay((string)[-(--fa) * fb * fb, -++fa * fb * fb, (--fa) * fb, fe]); llOwnerSay((string)[-(--fa) * fb * fb, -++fa * fb * fb, (--fa) * fb, fd]);
} }
} }