Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a921bca

Browse filesBrowse files
committed
Removing compiled files
1 parent 5c6f0f6 commit a921bca
Copy full SHA for a921bca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

57 files changed

+2525
-0
lines changed

‎Block.class

Copy file name to clipboard
1.78 KB
Binary file not shown.

‎GraphVisitor.class

Copy file name to clipboard
3.42 KB
Binary file not shown.

‎Liveness.class

Copy file name to clipboard
5.45 KB
Binary file not shown.

‎Nodes.class

Copy file name to clipboard
753 Bytes
Binary file not shown.

‎out/production/projekt/.code.sh

Copy file name to clipboardExpand all lines: out/production/projekt/.code.sh
Whitespace-only changes.

‎out/production/projekt/.idea/inspectionProfiles/Project_Default.xml

Copy file name to clipboardExpand all lines: out/production/projekt/.idea/inspectionProfiles/Project_Default.xml
+11Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎out/production/projekt/.idea/inspectionProfiles/profiles_settings.xml

Copy file name to clipboardExpand all lines: out/production/projekt/.idea/inspectionProfiles/profiles_settings.xml
+7Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎out/production/projekt/Block.class

Copy file name to clipboard
2.15 KB
Binary file not shown.
4.01 KB
Binary file not shown.

‎out/production/projekt/Liveness.class

Copy file name to clipboard
6.91 KB
Binary file not shown.

‎out/production/projekt/Nodes.class

Copy file name to clipboard
891 Bytes
Binary file not shown.

‎out/production/projekt/out/production/projekt/.code.sh

Copy file name to clipboardExpand all lines: out/production/projekt/out/production/projekt/.code.sh
Whitespace-only changes.
+55Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Automatic calling all the necessary Files to test all test cases.
2+
import os
3+
import subprocess
4+
5+
n = 0
6+
fileShellScript = open("shellScript.sh","w")
7+
8+
dirList = os.listdir('testCases/')
9+
dirList.sort()
10+
11+
for sFile in dirList:
12+
if sFile.find('.pas') == -1:
13+
dirList.remove(sFile)
14+
15+
for sFile in dirList:
16+
n += 1
17+
18+
def copyAllTheThings(n):
19+
inc = 1
20+
temp = n
21+
fileShellScript.write("clear\n")
22+
fileShellScript.write("echo \"\"######################## Starting Shell Script \"########################\"\n")
23+
fileShellScript.write("echo \"# Compiling all *.java Files...\"\n")
24+
fileShellScript.write("javac *.java\n")
25+
fileShellScript.write("echo \"# Removing old tests...\"\n")
26+
fileShellScript.write("rm -r tests/\n")
27+
fileShellScript.write("echo \"# Preparing directory...\"\n")
28+
fileShellScript.write("mkdir tests\n")
29+
while temp != 0:
30+
fileShellScript.write("cp testCases/"+str(inc)+".pas tests/\n")
31+
inc += 1
32+
temp -= 1
33+
34+
def createShellScript(n):
35+
inc = 1
36+
temp = n
37+
while temp != 0:
38+
fileShellScript.write("echo \"######################## Test " + str(inc) + " ########################\"\n")
39+
fileShellScript.write("echo \"# Calling StupsCompiler - Compiling...\"\n")
40+
fileShellScript.write("java StupsCompiler -compile tests/"+str(inc)+".pas\n")
41+
fileShellScript.write("echo \"# Calling StupsCompiler - Liveness Analysis...\"\n")
42+
fileShellScript.write("java StupsCompiler -liveness tests/"+str(inc)+".pas\n")
43+
fileShellScript.write("echo \"# Calling jasmin.jar...\"\n")
44+
fileShellScript.write("java -jar jasmin.jar tests/"+str(inc)+".j\n")
45+
fileShellScript.write("echo \"# Executing Java File...\"\n")
46+
fileShellScript.write("java tests/"+str(inc)+"\n")
47+
fileShellScript.write("echo \"# Done.\"\n")
48+
inc += 1
49+
temp -= 1
50+
51+
# Main Program
52+
copyAllTheThings(n)
53+
createShellScript(n)
54+
print "# Found "+str(n)+" testcases. Now execute:"
55+
print "# > sh shellScript.sh"
+41Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
program someTest;
2+
var a,c,b,x : integer;
3+
var endPointer : boolean;
4+
begin
5+
endPointer := true;
6+
a := 1;
7+
x := 0;
8+
c := 0;
9+
b := 42;
10+
if x = 1 then
11+
begin
12+
b := a + a;
13+
c := b;
14+
writeln(a);
15+
if x < 2 then
16+
begin
17+
a := a+1;
18+
b := b+2;
19+
end;
20+
end;
21+
writeln(c);
22+
23+
if x > 4 then
24+
begin
25+
writeln(a);
26+
writeln(b);
27+
end
28+
else
29+
begin
30+
writeln(c);
31+
writeln(c);
32+
end;
33+
34+
writeln(endPointer);
35+
x := 0;
36+
while x < 4 do
37+
begin
38+
writeln(a);
39+
x := x+1;
40+
end
41+
end.
+55Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Automatic calling all the necessary Files to test all test cases.
2+
import os
3+
import subprocess
4+
5+
n = 0
6+
fileShellScript = open("shellScript.sh","w")
7+
8+
dirList = os.listdir('testCases/')
9+
dirList.sort()
10+
11+
for sFile in dirList:
12+
if sFile.find('.pas') == -1:
13+
dirList.remove(sFile)
14+
15+
for sFile in dirList:
16+
n += 1
17+
18+
def copyAllTheThings(n):
19+
inc = 1
20+
temp = n
21+
fileShellScript.write("clear\n")
22+
fileShellScript.write("echo \"\"######################## Starting Shell Script \"########################\"\n")
23+
fileShellScript.write("echo \"# Compiling all *.java Files...\"\n")
24+
fileShellScript.write("javac *.java\n")
25+
fileShellScript.write("echo \"# Removing old tests...\"\n")
26+
fileShellScript.write("rm -r tests/\n")
27+
fileShellScript.write("echo \"# Preparing directory...\"\n")
28+
fileShellScript.write("mkdir tests\n")
29+
while temp != 0:
30+
fileShellScript.write("cp testCases/"+str(inc)+".pas tests/\n")
31+
inc += 1
32+
temp -= 1
33+
34+
def createShellScript(n):
35+
inc = 1
36+
temp = n
37+
while temp != 0:
38+
fileShellScript.write("echo \"######################## Test " + str(inc) + " ########################\"\n")
39+
fileShellScript.write("echo \"# Calling StupsCompiler - Compiling...\"\n")
40+
fileShellScript.write("java StupsCompiler -compile tests/"+str(inc)+".pas\n")
41+
fileShellScript.write("echo \"# Calling StupsCompiler - Liveness Analysis...\"\n")
42+
fileShellScript.write("java StupsCompiler -liveness tests/"+str(inc)+".pas\n")
43+
fileShellScript.write("echo \"# Calling jasmin.jar...\"\n")
44+
fileShellScript.write("java -jar jasmin.jar tests/"+str(inc)+".j\n")
45+
fileShellScript.write("echo \"# Executing Java File...\"\n")
46+
fileShellScript.write("java tests/"+str(inc)+"\n")
47+
fileShellScript.write("echo \"# Done.\"\n")
48+
inc += 1
49+
temp -= 1
50+
51+
# Main Program
52+
copyAllTheThings(n)
53+
createShellScript(n)
54+
print "# Found "+str(n)+" testcases. Now execute:"
55+
print "# > sh shellScript.sh"
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
program not_john;
2+
var fi_lo: boolean ;
3+
var c, b, a : integer;
4+
begin
5+
if (2=2) and not(2<>2) then writeln ( 1 );
6+
7+
end .
+26Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
program simple;
2+
var f: boolean ;
3+
var c, b, a : integer;
4+
begin
5+
a := 4;
6+
b := 4;
7+
f := a > b;
8+
writeln( f );
9+
f := a >= b;
10+
writeln( f );
11+
f := a = b;
12+
writeln( f );
13+
f := a <= b;
14+
writeln( true );
15+
f := a < b;
16+
writeln( f );
17+
18+
if(f ) then
19+
begin
20+
writeln(3);
21+
end
22+
else
23+
writeln(1);
24+
if (2=2) and not(2<>2) then writeln ( 1 );
25+
26+
end .
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
program simple;
2+
var f: boolean ;
3+
var c, b, a : integer;
4+
begin
5+
a := 0;
6+
b := 6;
7+
f := a > b;
8+
while a < b do begin
9+
a := a -- (1+a);
10+
writeln(a);
11+
end;
12+
writeln(false);
13+
14+
end .
+41Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
program someTest;
2+
var a,c,b,d : integer;
3+
var endPointer : boolean;
4+
begin
5+
endPointer := true;
6+
a := 1;
7+
d := 0;
8+
c := 0;
9+
b := 42;
10+
if d = 1 then
11+
begin
12+
b := a + a;
13+
c := b;
14+
writeln(a);
15+
if d < 2 then
16+
begin
17+
a := a+1;
18+
b := b+2;
19+
end;
20+
end;
21+
writeln(c);
22+
23+
if d > 4 then
24+
begin
25+
writeln(a);
26+
writeln(b);
27+
end
28+
else
29+
begin
30+
writeln(c);
31+
writeln(c);
32+
end;
33+
34+
writeln(endPointer);
35+
d := 0;
36+
while d < 4 do
37+
begin
38+
writeln(a);
39+
d := d+1;
40+
end
41+
end.
+24Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Program IlovePriNum;
2+
Var i, n: Integer;
3+
Var prim: Boolean;
4+
Begin
5+
n := 42;
6+
i := 2;
7+
prim := true;
8+
while true do
9+
BEGIN
10+
if (n mod i)=0 then
11+
BEGIN
12+
writeln(i);
13+
prim := false;
14+
break;
15+
END else
16+
i := i + 1;
17+
if i=(n-1) then
18+
BEGIN
19+
prim := true;
20+
break;
21+
END;
22+
END
23+
//writeln(prim)
24+
End.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.