#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int s[10];
  int i;
  int total = 0;
  FILE *arquivo;
  arquivo = fopen("freq.txt", "r");
  for (i = 0; i < 10; i++) {
    fscanf(arquivo, "%i", &s[i]);
  }
  s['A']++;
  s['B']++;
  s['C']++;
  fclose(arquivo);
  for (i = 0; i < 10; i++) {
    total += s[i];
  }
  printf("%8s %13s\n", "ELEMENTO", "VALOR");
  for (i = 0; i < 10; i++) {
    if (s[i] != 0) {
      printf("%8d %4c %5x %13d\n", i, i, i, s[i]);
    }
  }
  printf("%8s%13d\n", "TOTAL", total);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x38(%rbp)
lea    0xea3(%rip),%rdi
lea    0xea5(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    11ab <main+0x6b>
mov    -0x40(%rbp),%rdi
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rdx
shl    $0x2,%rax
add    %rax,%rdx
lea    0xe73(%rip),%rsi
call   1050 <fscanf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1174 <main+0x34>
mov    0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,0xd4(%rbp)
mov    0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,0xd8(%rbp)
mov    0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,0xdc(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    120e <main+0xce>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11e8 <main+0xa8>
lea    0xdf9(%rip),%rdi
lea    0xdfc(%rip),%rsi
lea    0xdfe(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    127d <main+0x13d>
movslq -0x34(%rbp),%rax
cmpl   $0x0,-0x30(%rbp,%rax,4)
je     126a <main+0x12a>
mov    -0x34(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x34(%rbp),%ecx
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%r8d
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    126f <main+0x12f>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1231 <main+0xf1>
mov    -0x38(%rbp),%edx
lea    0xdb2(%rip),%rdi
lea    0xdb4(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d44(%rip),%rax
mov    (%rax),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xeab(%rip),%rdi
lea    0xead(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
lea    0xea0(%rip),%r14
mov    %rsp,%rdx
mov    %rax,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0x4(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0x14(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0x18(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0x1c(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0x20(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
lea    0x24(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fscanf@plt>
addl   $0x1,0x104(%rsp)
01
addl   $0x1,0x108(%rsp)
01
addl   $0x1,0x10c(%rsp)
01
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    (%rsp),%eax
mov    %eax,0x28(%rsp)
mov    0x4(%rsp),%r12d
mov    0x8(%rsp),%r15d
mov    0xc(%rsp),%r14d
mov    0x10(%rsp),%ebp
mov    0x14(%rsp),%ebx
mov    0x18(%rsp),%r13d
mov    0x1c(%rsp),%eax
mov    %eax,0x2c(%rsp)
mov    0x20(%rsp),%eax
mov    %eax,0x30(%rsp)
mov    0x24(%rsp),%eax
mov    %eax,0x34(%rsp)
lea    0xda3(%rip),%rdi
lea    0xda6(%rip),%rsi
lea    0xda8(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%r8d
test   %r8d,%r8d
je     129d <main+0x15d>
lea    0xd97(%rip),%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%r8d
test   %r8d,%r8d
je     12c4 <main+0x184>
lea    0xd79(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%r8d
test   %r8d,%r8d
je     12eb <main+0x1ab>
lea    0xd52(%rip),%rdi
mov    $0x2,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%r8d
test   %r8d,%r8d
je     1312 <main+0x1d2>
lea    0xd2b(%rip),%rdi
mov    $0x3,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%r8d
test   %r8d,%r8d
je     1339 <main+0x1f9>
lea    0xd04(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%r8d
test   %r8d,%r8d
je     1360 <main+0x220>
lea    0xcdd(%rip),%rdi
mov    $0x5,%esi
mov    $0x5,%edx
mov    $0x5,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%r8d
test   %r8d,%r8d
je     1387 <main+0x247>
lea    0xcb6(%rip),%rdi
mov    $0x6,%esi
mov    $0x6,%edx
mov    $0x6,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%r8d
test   %r8d,%r8d
je     13ae <main+0x26e>
lea    0xc8f(%rip),%rdi
mov    $0x7,%esi
mov    $0x7,%edx
mov    $0x7,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%r8d
test   %r8d,%r8d
je     13d5 <main+0x295>
lea    0xc68(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    $0x8,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%r8d
test   %r8d,%r8d
je     13fc <main+0x2bc>
lea    0xc41(%rip),%rdi
mov    $0x9,%esi
mov    $0x9,%edx
mov    $0x9,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
add    0x28(%rsp),%r12d
add    %r12d,%r15d
add    %r15d,%r14d
add    %r14d,%ebp
add    %ebp,%ebx
add    %ebx,%r13d
mov    0x2c(%rsp),%ecx
add    %r13d,%ecx
mov    0x30(%rsp),%eax
add    %ecx,%eax
mov    0x34(%rsp),%edx
add    %eax,%edx
lea    0xc10(%rip),%rdi
lea    0xc12(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2ba2(%rip),%rax
mov    (%rax),%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"freq.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%i\00"
@.str.3 = [10 x i8] c"%8s %13s\0A\00"
@.str.4 = [9 x i8] c"ELEMENTO\00"
@.str.5 = [6 x i8] c"VALOR\00"
@.str.6 = [18 x i8] c"%8d %4c %5x %13d\0A\00"
@.str.7 = [9 x i8] c"%8s%13d\0A\00"
@.str.8 = [6 x i8] c"TOTAL\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %4
%6 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %6, i32** %5
store i32 0, i32* %3
br label %7
7: ; preds = %16, %0
%8 = load i32, i32* %3
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = load i32*, i32** %5
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %13
%15 = call i32 @fscanf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %14)
br label %16
16: ; preds = %10
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %7
19: ; preds = %7
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 65
%21 = load i32, i32* %20
%22 = add nsw i32 %21, 1
store i32 %22, i32* %20
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 66
%24 = load i32, i32* %23
%25 = add nsw i32 %24, 1
store i32 %25, i32* %23
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 67
%27 = load i32, i32* %26
%28 = add nsw i32 %27, 1
store i32 %28, i32* %26
%29 = load i32*, i32** %5
%30 = call i32 @fclose(i32* %29)
store i32 0, i32* %3
br label %31
31: ; preds = %41, %19
%32 = load i32, i32* %3
%33 = icmp slt i32 %32, 10
br i1 %33, label %34, label %44
34: ; preds = %31
%35 = load i32, i32* %3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = load i32, i32* %4
%40 = add nsw i32 %39, %38
store i32 %40, i32* %4
br label %41
41: ; preds = %34
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 1
store i32 %43, i32* %3
br label %31
44: ; preds = %31
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %3
br label %46
46: ; preds = %65, %44
%47 = load i32, i32* %3
%48 = icmp slt i32 %47, 10
br i1 %48, label %49, label %68
49: ; preds = %46
%50 = load i32, i32* %3
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %64
55: ; preds = %49
%56 = load i32, i32* %3
%57 = load i32, i32* %3
%58 = load i32, i32* %3
%59 = load i32, i32* %3
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %56, i32 %57, i32 %58, i32 %62)
br label %64
64: ; preds = %55, %49
br label %65
65: ; preds = %64
%66 = load i32, i32* %3
%67 = add nsw i32 %66, 1
store i32 %67, i32* %3
br label %46
68: ; preds = %46
%69 = load i32, i32* %4
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %69)
%71 = load i32, i32* @EXIT_SUCCESS
ret i32 %71
}

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