#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ postumis(int *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int sum(int *, int *, int);
int main(void) {
  int St[18] = {0, -14, -14, -14, -14, 0,  0,  0,  0,
                0, 0,   0,   0,   14,  14, 14, 14, 14};
  int Stcopy[18] = {0, -14, -14, -14, -14, 0,  0,  0,  0,
                    0, 0,   0,   0,   14,  14, 14, 14, 14};
  int akf[18];
  for (int w = 0; w < 18; w++) {
    for (int i = 0; i < 18; i++)
      for (int i = 0; i < 18; i++)
        akf[w] = sum(St, Stcopy, 18);
    postumis(Stcopy, 18);
  }
  printf("\n AFK = ");
  for (int i = 0; i < 18; i++) {
    printf("%5d", akf[i]);
  }
  putchar('\n');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xe93(%rip),%rsi
mov    $0x48,%edx
call   1060 <memcpy@plt>
lea    -0xa0(%rbp),%rdi
lea    0xecb(%rip),%rsi
mov    $0x48,%edx
call   1060 <memcpy@plt>
movl   $0x0,-0xf4(%rbp)
cmpl   $0x12,-0xf4(%rbp)
jge    124b <main+0xfb>
movl   $0x0,-0xf8(%rbp)
cmpl   $0x12,-0xf8(%rbp)
jge    1226 <main+0xd6>
movl   $0x0,-0xfc(%rbp)
cmpl   $0x12,-0xfc(%rbp)
jge    120d <main+0xbd>
lea    -0x50(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x12,%edx
call   1070 <sum@plt>
mov    %eax,%ecx
movslq -0xf4(%rbp),%rax
mov    %ecx,-0xf0(%rbp,%rax,4)
mov    -0xfc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc(%rbp)
jmp    11c7 <main+0x77>
jmp    1212 <main+0xc2>
mov    -0xf8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf8(%rbp)
jmp    11b0 <main+0x60>
lea    -0xa0(%rbp),%rdi
mov    $0x12,%esi
call   1040 <postumis@plt>
mov    -0xf4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf4(%rbp)
jmp    1199 <main+0x49>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x100(%rbp)
cmpl   $0x12,-0x100(%rbp)
jge    12a0 <main+0x150>
movslq -0x100(%rbp),%rax
mov    -0xf0(%rbp,%rax,4),%esi
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x100(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x100(%rbp)
jmp    1263 <main+0x113>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0xe8,%rsp
mov    0xeec(%rip),%rax
mov    %rax,0xe0(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xeae(%rip),%xmm1
movaps %xmm1,0xc0(%rsp)
movaps 0xe8f(%rip),%xmm2
movaps %xmm2,0xb0(%rsp)
movaps 0xe70(%rip),%xmm3
movaps %xmm3,0xa0(%rsp)
mov    %rax,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm1,0x70(%rsp)
movaps %xmm2,0x60(%rsp)
movaps %xmm3,0x50(%rsp)
xor    %r15d,%r15d
lea    0xa0(%rsp),%r14
lea    0x50(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
mov    $0x12,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1060 <sum@plt>
mov    %eax,(%rsp,%r15,4)
add    $0xffffffff,%ebp
jne    11e0 <main+0xa0>
mov    %rbx,%rdi
mov    $0x12,%esi
call   1040 <postumis@plt>
add    $0x1,%r15
cmp    $0x12,%r15
jne    11d0 <main+0x90>
lea    0xd19(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp),%esi
lea    0xd11(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.St = [18 x i32] [i32 0, i32 -14, i32 -14, i32 -14, i32 -14, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 14, i32 14, i32 14, i32 14, i32 14]
@__const.main.Stcopy = [18 x i32] [i32 0, i32 -14, i32 -14, i32 -14, i32 -14, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 14, i32 14, i32 14, i32 14, i32 14]
@.str = [9 x i8] c"\0A AFK = \00"
@.str.1 = [4 x i8] c"%5d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [18 x i32]
%3 = alloca [18 x i32]
%4 = alloca [18 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = bitcast [18 x i32]* %2 to i8*
%10 = bitcast [18 x i32]* %3 to i8*
store i32 0, i32* %5
br label %11
11: ; preds = %39, %0
%12 = load i32, i32* %5
%13 = icmp slt i32 %12, 18
br i1 %13, label %14, label %42
14: ; preds = %11
store i32 0, i32* %6
br label %15
15: ; preds = %33, %14
%16 = load i32, i32* %6
%17 = icmp slt i32 %16, 18
br i1 %17, label %18, label %36
18: ; preds = %15
store i32 0, i32* %7
br label %19
19: ; preds = %29, %18
%20 = load i32, i32* %7
%21 = icmp slt i32 %20, 18
br i1 %21, label %22, label %32
22: ; preds = %19
%23 = getelementptr inbounds [18 x i32], [18 x i32]* %2, i64 0, i64 0
%24 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 0
%25 = call i32 @sum(i32* %23, i32* %24, i32 18)
%26 = load i32, i32* %5
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [18 x i32], [18 x i32]* %4, i64 0, i64 %27
store i32 %25, i32* %28
br label %29
29: ; preds = %22
%30 = load i32, i32* %7
%31 = add nsw i32 %30, 1
store i32 %31, i32* %7
br label %19
32: ; preds = %19
br label %33
33: ; preds = %32
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 1
store i32 %35, i32* %6
br label %15
36: ; preds = %15
%37 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 0
%38 = call i32 @postumis(i32* %37, i32 18)
br label %39
39: ; preds = %36
%40 = load i32, i32* %5
%41 = add nsw i32 %40, 1
store i32 %41, i32* %5
br label %11
42: ; preds = %11
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %8
br label %44
44: ; preds = %53, %42
%45 = load i32, i32* %8
%46 = icmp slt i32 %45, 18
br i1 %46, label %47, label %56
47: ; preds = %44
%48 = load i32, i32* %8
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [18 x i32], [18 x i32]* %4, i64 0, i64 %49
%51 = load i32, i32* %50
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %51)
br label %53
53: ; preds = %47
%54 = load i32, i32* %8
%55 = add nsw i32 %54, 1
store i32 %55, i32* %8
br label %44
56: ; preds = %44
%57 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
@__const.main.Stcopy = [18 x i32] [i32 0, i32 -14, i32 -14, i32 -14, i32 -14, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 14, i32 14, i32 14, i32 14, i32 14]
@.str = [9 x i8] c"\0A AFK = \00"
@.str.1 = [4 x i8] c"%5d\00"
define i32 @main() {
%1 = alloca [18 x i32]
%2 = alloca [18 x i32]
%3 = alloca [18 x i32]
%4 = bitcast [18 x i32]* %1 to i8*
%5 = bitcast [18 x i32]* %2 to i8*
%6 = bitcast [18 x i32]* %3 to i8*
%7 = getelementptr inbounds [18 x i32], [18 x i32]* %1, i64 0, i64 0
%8 = getelementptr inbounds [18 x i32], [18 x i32]* %2, i64 0, i64 0
br label %9
9: ; preds = %0, %91
%10 = phi i64 [ 0, %0 ], [ %93, %91 ]
%11 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 %10
br label %69
12: ; preds = %91
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%14 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 0
%15 = load i32, i32* %14
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %15)
%17 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 1
%18 = load i32, i32* %17
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 2
%21 = load i32, i32* %20
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %21)
%23 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 3
%24 = load i32, i32* %23
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %24)
%26 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 4
%27 = load i32, i32* %26
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %27)
%29 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 5
%30 = load i32, i32* %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%32 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 6
%33 = load i32, i32* %32
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %33)
%35 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 7
%36 = load i32, i32* %35
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 8
%39 = load i32, i32* %38
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 9
%42 = load i32, i32* %41
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 10
%45 = load i32, i32* %44
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 11
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 12
%51 = load i32, i32* %50
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %51)
%53 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 13
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %54)
%56 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 14
%57 = load i32, i32* %56
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %57)
%59 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 15
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %60)
%62 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 16
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds [18 x i32], [18 x i32]* %3, i64 0, i64 17
%66 = load i32, i32* %65
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %66)
%68 = call i32 @putchar(i8 signext 10)
ret i32 0
69: ; preds = %9, %69
%70 = phi i32 [ 0, %9 ], [ %89, %69 ]
%71 = call i32 @sum(i32* %7, i32* %8, i32 18)
%72 = call i32 @sum(i32* %7, i32* %8, i32 18)
%73 = call i32 @sum(i32* %7, i32* %8, i32 18)
%74 = call i32 @sum(i32* %7, i32* %8, i32 18)
%75 = call i32 @sum(i32* %7, i32* %8, i32 18)
%76 = call i32 @sum(i32* %7, i32* %8, i32 18)
%77 = call i32 @sum(i32* %7, i32* %8, i32 18)
%78 = call i32 @sum(i32* %7, i32* %8, i32 18)
%79 = call i32 @sum(i32* %7, i32* %8, i32 18)
%80 = call i32 @sum(i32* %7, i32* %8, i32 18)
%81 = call i32 @sum(i32* %7, i32* %8, i32 18)
%82 = call i32 @sum(i32* %7, i32* %8, i32 18)
%83 = call i32 @sum(i32* %7, i32* %8, i32 18)
%84 = call i32 @sum(i32* %7, i32* %8, i32 18)
%85 = call i32 @sum(i32* %7, i32* %8, i32 18)
%86 = call i32 @sum(i32* %7, i32* %8, i32 18)
%87 = call i32 @sum(i32* %7, i32* %8, i32 18)
%88 = call i32 @sum(i32* %7, i32* %8, i32 18)
store i32 %88, i32* %11
%89 = add nuw nsw i32 %70, 1
%90 = icmp eq i32 %89, 18
br i1 %90, label %91, label %69
91: ; preds = %69
%92 = call i32 @postumis(i32* %8, i32 18)
%93 = add nuw nsw i64 %10, 1
%94 = icmp eq i64 %93, 18
br i1 %94, label %12, label %9
}