mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
This test suite has been in use for a long time now, in place of the obsolete and unmanageable testparser.py and testfuncs.py. It verifies the complete optimizer output to stdout and stderr, to ensure that the output matches the expectations. See unit_tests/README.txt for more info.
71 lines
1.6 KiB
Text
71 lines
1.6 KiB
Text
default
|
|
{
|
|
state_entry()
|
|
{
|
|
{
|
|
llOwnerSay("f1");
|
|
}
|
|
if (1)
|
|
{
|
|
llOwnerSay("f1");
|
|
}
|
|
{
|
|
integer f2param = 3;
|
|
{
|
|
llOwnerSay("f2:" + (string)f2param);
|
|
}
|
|
}
|
|
vector ___ret__00001;
|
|
{
|
|
integer f3p1 = 4;
|
|
string f3p2 = "x";
|
|
{
|
|
{
|
|
integer f2param = f3p1;
|
|
{
|
|
llOwnerSay("f2:" + (string)f2param);
|
|
}
|
|
}
|
|
integer f3p1;
|
|
{
|
|
jump ___lbl__00005;
|
|
llOwnerSay("f3:" + (string)f3p1 + f3p2);
|
|
}
|
|
@___lbl__00005;
|
|
if (f3p2 != "")
|
|
{
|
|
___ret__00001 = <1, 1, 1>;
|
|
jump ___rtl__00004;
|
|
}
|
|
integer ___ret__00002;
|
|
{
|
|
{
|
|
___ret__00002 = llGetLinkNumber();
|
|
jump ___rtl__00007;
|
|
}
|
|
}
|
|
@___rtl__00007;
|
|
do
|
|
;
|
|
while (___ret__00002);
|
|
{
|
|
___ret__00001 = <0, 0, 0>;
|
|
jump ___rtl__00004;
|
|
}
|
|
}
|
|
}
|
|
@___rtl__00004;
|
|
if (___ret__00001 == <0., 0., 0.>)
|
|
llOwnerSay("ok");
|
|
}
|
|
|
|
timer()
|
|
{
|
|
{
|
|
string s = "hi";
|
|
{
|
|
llOwnerSay(s);
|
|
}
|
|
}
|
|
}
|
|
}
|