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.
62 lines
1.4 KiB
Text
62 lines
1.4 KiB
Text
default
|
|
{
|
|
state_entry()
|
|
{
|
|
{
|
|
llOwnerSay("f1");
|
|
}
|
|
{
|
|
llOwnerSay("f1");
|
|
}
|
|
{
|
|
{
|
|
llOwnerSay("f2:" + "3");
|
|
}
|
|
}
|
|
vector ___ret__00001 = <((float)0), ((float)0), ((float)0)>;
|
|
{
|
|
{
|
|
{
|
|
{
|
|
llOwnerSay("f2:" + "4");
|
|
}
|
|
}
|
|
{
|
|
jump ___lbl__00005;
|
|
}
|
|
@___lbl__00005;
|
|
{
|
|
___ret__00001 = <((float)1), ((float)1), ((float)1)>;
|
|
jump ___rtl__00004;
|
|
}
|
|
integer ___ret__00002;
|
|
{
|
|
{
|
|
___ret__00002 = llGetLinkNumber();
|
|
jump ___rtl__00007;
|
|
}
|
|
}
|
|
@___rtl__00007;
|
|
do
|
|
;
|
|
while (___ret__00002);
|
|
{
|
|
___ret__00001 = <((float)0), ((float)0), ((float)0)>;
|
|
jump ___rtl__00004;
|
|
}
|
|
}
|
|
}
|
|
@___rtl__00004;
|
|
if (___ret__00001 == <((float)0), ((float)0), ((float)0)>)
|
|
llOwnerSay("ok");
|
|
}
|
|
|
|
timer()
|
|
{
|
|
{
|
|
{
|
|
llOwnerSay("hi");
|
|
}
|
|
}
|
|
}
|
|
}
|