main() {
  int i = 0;
  int j = 0;
  char allOps[16][3] = {"*",  "/",  "%",  "+", "-", "<", "<=", ">",
                        ">=", "==", "!=", "&", "^", "|", "&&", "||"};
  int thisIsC = 0;
  if (thisIsC) {
    printf("#include <stdio.h>\n\n");
    printf("main() {\n\n");
    printf("  int m = 2;\n");
    printf("  int n = 3;\n");
    printf("  int o = 5;\n");
    printf("  int answer = 0;\n\n");
  } else {
    printf("var m = 2;\n");
    printf("var n = 3;\n");
    printf("var o = 5;\n");
    printf("var answer = 0;\n\n");
  }
  for (i = 0; i < 16; i++) {
    for (j = 0; j < 16; j++) {
      if (thisIsC) {
        printf("  printf(\"");
      } else {
        printf("write(\"");
      }
      if (strcmp(allOps[i], "%") == 0) {
        if (thisIsC) {
          printf("%%%% and ");
        } else {
          printf("%% and ");
        }
      } else {
        printf("%s and ", allOps[i]);
      }
      if (strcmp(allOps[j], "%") == 0) {
        if (thisIsC) {
          printf("%%%% permutations\\n");
        } else {
          printf("%% permutations\\n");
        }
      } else {
        printf("%s permutations\\n", allOps[j]);
      }
      printf("\");\n");
      if (thisIsC) {
        printf("  printf(\"=========================\\n\");\n");
        printf("  ");
      } else {
        printf("writeln(\"=========================\");\n");
      }
      printf("answer = m %s n %s o;\n", allOps[i], allOps[j]);
      if (thisIsC) {
        printf("  printf(\"%%d\\n\", answer);\n");
        printf("  ");
      } else {
        printf("writeln(answer);\n");
      }
      printf("answer = (m %s n) %s o;\n", allOps[i], allOps[j]);
      if (thisIsC) {
        printf("  printf(\"%%d\\n\", answer);\n");
        printf("  ");
      } else {
        printf("writeln(answer);\n");
      }
      printf("answer = m %s (n %s o);\n", allOps[i], allOps[j]);
      if (thisIsC) {
        printf("  printf(\"%%d\\n\\n\", answer);\n");
        printf("  ");
      } else {
        printf("writeln(answer, \"\\n\");\n");
      }
      printf("\n");
    }
  }
  if (thisIsC) {
    printf("}\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xea8(%rip),%rsi
mov    $0x30,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
je     11cc <main+0x9c>
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1204 <main+0xd4>
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x10,-0x8(%rbp)
jge    14d8 <main+0x3a8>
movl   $0x0,-0xc(%rbp)
cmpl   $0x10,-0xc(%rbp)
jge    14c5 <main+0x395>
cmpl   $0x0,-0x44(%rbp)
je     1243 <main+0x113>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1251 <main+0x121>
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rdi
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xe70(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12a5 <main+0x175>
cmpl   $0x0,-0x44(%rbp)
je     1292 <main+0x162>
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12a0 <main+0x170>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12c2 <main+0x192>
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0x3,%rax,%rax
add    %rax,%rsi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x40(%rbp),%rdi
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xdff(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1316 <main+0x1e6>
cmpl   $0x0,-0x44(%rbp)
je     1303 <main+0x1d3>
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1311 <main+0x1e1>
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1333 <main+0x203>
movslq -0xc(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0x3,%rax,%rax
add    %rax,%rsi
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x44(%rbp)
je     136c <main+0x23c>
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137a <main+0x24a>
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0x3,%rax,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
lea    -0x40(%rbp),%rdx
imul   $0x3,%rax,%rax
add    %rax,%rdx
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x44(%rbp)
je     13d1 <main+0x2a1>
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13df <main+0x2af>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0x3,%rax,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
lea    -0x40(%rbp),%rdx
imul   $0x3,%rax,%rax
add    %rax,%rdx
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x44(%rbp)
je     1436 <main+0x306>
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1444 <main+0x314>
lea    0xd5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0x3,%rax,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
lea    -0x40(%rbp),%rdx
imul   $0x3,%rax,%rax
add    %rax,%rdx
lea    0xd5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x44(%rbp)
je     149b <main+0x36b>
lea    0xd5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14a9 <main+0x379>
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    121c <main+0xec>
jmp    14ca <main+0x39a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    120b <main+0xdb>
cmpl   $0x0,-0x44(%rbp)
je     14f0 <main+0x3c0>
lea    0xd29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movaps 0xecb(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeaf(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe93(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xf3e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3b(%rip),%rdi
call   1040 <puts@plt>
lea    0xe8f(%rip),%rbx
lea    0xf5f(%rip),%r12
lea    0xf69(%rip),%rbp
xor    %eax,%eax
jmp    11d3 <main+0x93>
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rax
add    $0x1,%rax
cmp    $0x10,%rax
je     12fc <main+0x1bc>
mov    %rax,0x8(%rsp)
lea    (%rax,%rax,2),%rax
lea    (%rsp,%rax,1),%r15
add    $0x10,%r15
xor    %r13d,%r13d
jmp    1285 <main+0x145>
nopl   0x0(%rax)
lea    0xe65(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf03(%rip),%rdi
call   1040 <puts@plt>
lea    0xed5(%rip),%rdi
call   1040 <puts@plt>
lea    0xe4e(%rip),%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
lea    0xe49(%rip),%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
lea    0xe46(%rip),%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x3,%r13
cmp    $0x30,%r13
je     11c0 <main+0x80>
lea    0xda4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     12c0 <main+0x180>
lea    0xd99(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12ce <main+0x18e>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xd73(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%rsp,%r13,1),%r14
add    $0x10,%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    11f0 <main+0xb0>
lea    0xd5a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1201 <main+0xc1>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.allOps = [16 x [3 x i8]] [[3 x i8] c"*\00\00", [3 x i8] c"/\00\00", [3 x i8] c"%\00\00", [3 x i8] c"+\00\00", [3 x i8] c"-\00\00", [3 x i8] c"<\00\00", [3 x i8] c"<=\00", [3 x i8] c">\00\00", [3 x i8] c">=\00", [3 x i8] c"==\00", [3 x i8] c"!=\00", [3 x i8] c"&\00\00", [3 x i8] c"^\00\00", [3 x i8] c"|\00\00", [3 x i8] c"&&\00", [3 x i8] c"||\00"]
@.str = [21 x i8] c"#include <stdio.h>\0A\0A\00"
@.str.1 = [11 x i8] c"main() {\0A\0A\00"
@.str.2 = [14 x i8] c" int m = 2;\0A\00"
@.str.3 = [14 x i8] c" int n = 3;\0A\00"
@.str.4 = [14 x i8] c" int o = 5;\0A\00"
@.str.5 = [20 x i8] c" int answer = 0;\0A\0A\00"
@.str.6 = [12 x i8] c"var m = 2;\0A\00"
@.str.7 = [12 x i8] c"var n = 3;\0A\00"
@.str.8 = [12 x i8] c"var o = 5;\0A\00"
@.str.9 = [18 x i8] c"var answer = 0;\0A\0A\00"
@.str.10 = [11 x i8] c" printf(\22\00"
@.str.11 = [8 x i8] c"write(\22\00"
@.str.12 = [2 x i8] c"%\00"
@.str.13 = [10 x i8] c"%%%% and \00"
@.str.14 = [8 x i8] c"%% and \00"
@.str.15 = [8 x i8] c"%s and \00"
@.str.16 = [20 x i8] c"%%%% permutations\\n\00"
@.str.17 = [18 x i8] c"%% permutations\\n\00"
@.str.18 = [18 x i8] c"%s permutations\\n\00"
@.str.19 = [5 x i8] c"\22);\0A\00"
@.str.20 = [42 x i8] c" printf(\22=========================\\n\22);\0A\00"
@.str.21 = [3 x i8] c" \00"
@.str.22 = [39 x i8] c"writeln(\22=========================\22);\0A\00"
@.str.23 = [23 x i8] c"answer = m %s n %s o;\0A\00"
@.str.24 = [28 x i8] c" printf(\22%%d\\n\22, answer);\0A\00"
@.str.25 = [18 x i8] c"writeln(answer);\0A\00"
@.str.26 = [25 x i8] c"answer = (m %s n) %s o;\0A\00"
@.str.27 = [25 x i8] c"answer = m %s (n %s o);\0A\00"
@.str.28 = [30 x i8] c" printf(\22%%d\\n\\n\22, answer);\0A\00"
@.str.29 = [24 x i8] c"writeln(answer, \22\\n\22);\0A\00"
@.str.30 = [2 x i8] c"\0A\00"
@.str.31 = [3 x i8] c"}\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [16 x [3 x i8]]
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
%6 = bitcast [16 x [3 x i8]]* %4 to i8*
store i32 0, i32* %5
%7 = load i32, i32* %5
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %21
16: ; preds = %0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
br label %21
21: ; preds = %16, %9
store i32 0, i32* %2
br label %22
22: ; preds = %144, %21
%23 = load i32, i32* %2
%24 = icmp slt i32 %23, 16
br i1 %24, label %25, label %147
25: ; preds = %22
store i32 0, i32* %3
br label %26
26: ; preds = %140, %25
%27 = load i32, i32* %3
%28 = icmp slt i32 %27, 16
br i1 %28, label %29, label %143
29: ; preds = %26
%30 = load i32, i32* %5
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
br label %36
34: ; preds = %29
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %36
36: ; preds = %34, %32
%37 = load i32, i32* %2
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %38
%40 = getelementptr inbounds [3 x i8], [3 x i8]* %39, i64 0, i64 0
%41 = call i32 @strcmp(i8* %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %51
43: ; preds = %36
%44 = load i32, i32* %5
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
br label %50
48: ; preds = %43
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %50
50: ; preds = %48, %46
br label %57
51: ; preds = %36
%52 = load i32, i32* %2
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %53
%55 = getelementptr inbounds [3 x i8], [3 x i8]* %54, i64 0, i64 0
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* %55)
br label %57
57: ; preds = %51, %50
%58 = load i32, i32* %3
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %59
%61 = getelementptr inbounds [3 x i8], [3 x i8]* %60, i64 0, i64 0
%62 = call i32 @strcmp(i8* %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %72
64: ; preds = %57
%65 = load i32, i32* %5
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
br label %71
69: ; preds = %64
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0))
br label %71
71: ; preds = %69, %67
br label %78
72: ; preds = %57
%73 = load i32, i32* %3
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %74
%76 = getelementptr inbounds [3 x i8], [3 x i8]* %75, i64 0, i64 0
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* %76)
br label %78
78: ; preds = %72, %71
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%80 = load i32, i32* %5
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %85
82: ; preds = %78
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.20, i64 0, i64 0))
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0))
br label %87
85: ; preds = %78
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.22, i64 0, i64 0))
br label %87
87: ; preds = %85, %82
%88 = load i32, i32* %2
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %89
%91 = getelementptr inbounds [3 x i8], [3 x i8]* %90, i64 0, i64 0
%92 = load i32, i32* %3
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %93
%95 = getelementptr inbounds [3 x i8], [3 x i8]* %94, i64 0, i64 0
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i8* %91, i8* %95)
%97 = load i32, i32* %5
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %102
99: ; preds = %87
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.24, i64 0, i64 0))
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0))
br label %104
102: ; preds = %87
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.25, i64 0, i64 0))
br label %104
104: ; preds = %102, %99
%105 = load i32, i32* %2
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %106
%108 = getelementptr inbounds [3 x i8], [3 x i8]* %107, i64 0, i64 0
%109 = load i32, i32* %3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %110
%112 = getelementptr inbounds [3 x i8], [3 x i8]* %111, i64 0, i64 0
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.26, i64 0, i64 0), i8* %108, i8* %112)
%114 = load i32, i32* %5
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %119
116: ; preds = %104
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.24, i64 0, i64 0))
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0))
br label %121
119: ; preds = %104
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.25, i64 0, i64 0))
br label %121
121: ; preds = %119, %116
%122 = load i32, i32* %2
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %123
%125 = getelementptr inbounds [3 x i8], [3 x i8]* %124, i64 0, i64 0
%126 = load i32, i32* %3
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %4, i64 0, i64 %127
%129 = getelementptr inbounds [3 x i8], [3 x i8]* %128, i64 0, i64 0
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.27, i64 0, i64 0), i8* %125, i8* %129)
%131 = load i32, i32* %5
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %136
133: ; preds = %121
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.28, i64 0, i64 0))
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0))
br label %138
136: ; preds = %121
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.29, i64 0, i64 0))
br label %138
138: ; preds = %136, %133
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i64 0, i64 0))
br label %140
140: ; preds = %138
%141 = load i32, i32* %3
%142 = add nsw i32 %141, 1
store i32 %142, i32* %3
br label %26
143: ; preds = %26
br label %144
144: ; preds = %143
%145 = load i32, i32* %2
%146 = add nsw i32 %145, 1
store i32 %146, i32* %2
br label %22
147: ; preds = %22
%148 = load i32, i32* %5
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %152
150: ; preds = %147
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
br label %152
152: ; preds = %150, %147
%153 = load i32, i32* %1
ret i32 %153
}

LLVM IR (-O2):
@__const.main.allOps = [16 x [3 x i8]] [[3 x i8] c"*\00\00", [3 x i8] c"/\00\00", [3 x i8] c"%\00\00", [3 x i8] c"+\00\00", [3 x i8] c"-\00\00", [3 x i8] c"<\00\00", [3 x i8] c"<=\00", [3 x i8] c">\00\00", [3 x i8] c">=\00", [3 x i8] c"==\00", [3 x i8] c"!=\00", [3 x i8] c"&\00\00", [3 x i8] c"^\00\00", [3 x i8] c"|\00\00", [3 x i8] c"&&\00", [3 x i8] c"||\00"]
@.str.11 = [8 x i8] c"write(\22\00"
@.str.12 = [2 x i8] c"%\00"
@.str.14 = [8 x i8] c"%% and \00"
@.str.15 = [8 x i8] c"%s and \00"
@.str.17 = [18 x i8] c"%% permutations\\n\00"
@.str.18 = [18 x i8] c"%s permutations\\n\00"
@.str.23 = [23 x i8] c"answer = m %s n %s o;\0A\00"
@.str.26 = [25 x i8] c"answer = (m %s n) %s o;\0A\00"
@.str.27 = [25 x i8] c"answer = m %s (n %s o);\0A\00"
@str = [11 x i8] c"var m = 2;\00"
@str.32 = [11 x i8] c"var n = 3;\00"
@str.33 = [11 x i8] c"var o = 5;\00"
@str.34 = [17 x i8] c"var answer = 0;\0A\00"
@str.35 = [4 x i8] c"\22);\00"
@str.36 = [38 x i8] c"writeln(\22=========================\22);\00"
@str.38 = [17 x i8] c"writeln(answer);\00"
@str.39 = [23 x i8] c"writeln(answer, \22\\n\22);\00"
define i32 @main() {
%1 = alloca [16 x [3 x i8]]
%2 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %1, i64 0, i64 0, i64 0
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.32, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.33, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.34, i64 0, i64 0))
br label %7
7: ; preds = %0, %39
%8 = phi i64 [ 0, %0 ], [ %40, %39 ]
%9 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %1, i64 0, i64 %8, i64 0
br label %10
10: ; preds = %7, %27
%11 = phi i64 [ 0, %7 ], [ %37, %27 ]
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @strcmp(i8* %9, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %19
17: ; preds = %10
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* %9)
br label %19
19: ; preds = %15, %17
%20 = getelementptr inbounds [16 x [3 x i8]], [16 x [3 x i8]]* %1, i64 0, i64 %11, i64 0
%21 = call i32 @strcmp(i8* %20, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0))
br label %27
25: ; preds = %19
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* %20)
br label %27
27: ; preds = %23, %25
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.35, i64 0, i64 0))
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.36, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i8* %9, i8* %20)
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.38, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.26, i64 0, i64 0), i8* %9, i8* %20)
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.38, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.27, i64 0, i64 0), i8* %9, i8* %20)
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.39, i64 0, i64 0))
%36 = call i32 @putchar(i32 10)
%37 = add nuw nsw i64 %11, 1
%38 = icmp eq i64 %37, 16
br i1 %38, label %39, label %10
39: ; preds = %27
%40 = add nuw nsw i64 %8, 1
%41 = icmp eq i64 %40, 16
br i1 %41, label %42, label %7
42: ; preds = %39
ret i32 0
}