mirror of
https://github.com/samsonjs/compiler.git
synced 2026-03-25 08:45:52 +00:00
added test for large object file generation
This commit is contained in:
parent
fe37723c2f
commit
874578f9e8
1 changed files with 650 additions and 0 deletions
650
test/test_huge.code
Normal file
650
test/test_huge.code
Normal file
|
|
@ -0,0 +1,650 @@
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
|
a=1
|
||||||
|
print a
|
||||||
|
aa=10
|
||||||
|
print aa
|
||||||
|
somethinglong=65536
|
||||||
|
print somethinglong
|
||||||
|
x=5*(3-5)
|
||||||
|
print x
|
||||||
|
c=1- -a
|
||||||
|
print c
|
||||||
|
g=1* -1
|
||||||
|
print g
|
||||||
|
h=x*2+2
|
||||||
|
print h
|
||||||
|
j=h-27/9
|
||||||
|
k=j-8/2
|
||||||
|
m=k-4*(5+5+5)
|
||||||
|
n=m+85
|
||||||
|
|
||||||
|
if 1
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if 1x=3 if 1c=4 end end
|
||||||
|
|
||||||
|
if 1 > 2
|
||||||
|
x=3
|
||||||
|
if 1 c=4
|
||||||
|
end
|
||||||
|
else
|
||||||
|
x=2
|
||||||
|
end
|
||||||
|
|
||||||
|
while 0
|
||||||
|
while a < 10
|
||||||
|
a = a + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
until a == 0
|
||||||
|
a = a - 1
|
||||||
|
if -1
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
cc = c
|
||||||
|
repeat
|
||||||
|
cc = cc * 2
|
||||||
|
if cc == 32
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
s=0
|
||||||
|
for x = 1 to 5
|
||||||
|
s = s + x
|
||||||
|
end
|
||||||
|
|
||||||
|
do 10
|
||||||
|
a = a * a
|
||||||
|
end
|
||||||
|
|
||||||
|
xitcode=a-a
|
||||||
Loading…
Reference in a new issue