-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe12.c
85 lines (73 loc) · 1.27 KB
/
e12.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// e12.spl
// compiled with splc.py (c) Sam Donow 2013
#include <stdio.h>
#include <math.h>
#include "include/mathhelpers.h"
int condition = 0;
char inputbuffer[20];
int main() {
int Juliet = 2;
int Ophelia = 2;
int Octavia = 2;
int Macbeth = 4;
int Romeo = 1;
int Julia = 2;
act1: {
goto act_1_scene1;
}
act_1_scene1: {
;
Octavia = 512 ;
Octavia = (Octavia - (16 + -4)) ;
Juliet = 2 ;
goto act2;
}
act2: {
goto act_2_scene1;
}
act_2_scene1: {
Romeo = (Romeo + 1) ;
Juliet = ((Romeo * (Romeo + 1)) / 2) ;
Macbeth = (int)sqrt(Juliet) ;
goto act_2_scene2;
}
act_2_scene2: {
Ophelia = 0 ;
condition = (square(Macbeth)) == (Juliet);
if (condition) {
Ophelia = 1 ;
}
Julia = 1 ;
goto act_2_scene3;
}
act_2_scene3: {
condition = ((Juliet % Julia)) > (0);
if (!condition) {
Ophelia = (Ophelia + 2) ;
}
Julia = (Julia + 1) ;
condition = (Julia) > (Macbeth);
if (condition) {
goto act_2_scene4;
}
if (!condition) {
goto act_2_scene3;
}
goto act_2_scene4;
}
act_2_scene4: {
;
condition = (Ophelia) > (Octavia);
if (condition) {
goto act_2_scene5;
}
goto act_2_scene1;
goto act_2_scene5;
}
act_2_scene5: {
;
fprintf(stdout, "%d", Juliet);
Ophelia = (2 * (1 + 4)) ;
fprintf(stdout, "%c", (char)Ophelia);
}
}