#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*/ getch();
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  int matriz[8][8];
  int i, j, diagonal, somatrianguloinferior;
  srand(time(NULL));
  diagonal = 0;
  somatrianguloinferior = 0;
  printf("Matriz 8x8 com numero aleatorios? Aqui nos temos!\n\n\n");
  for (i = 0; i < 8; i++) {
    for (j = 0; j < 8; j++) {
      matriz[i][j] = rand() % 101;
    }
  }
  printf("----- Matriz -----\t\n\n");
  for (i = 0; i < 8; i++) {
    for (j = 0; j < 8; j++) {
      printf("[%d]\t", matriz[i][j]);
      if (i == j) {
        diagonal = diagonal + matriz[i][j];
      }
      if (i > j) {
        somatrianguloinferior = somatrianguloinferior + matriz[i][j];
      }
    }
    printf("\n\n");
  }
  printf("A soma da Diagonal Principal e: %d\n", diagonal);
  printf("A soma de todos os numeros abaixo da Diagonal Principal e: %d\n",
         somatrianguloinferior);
  getch();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
movl   $0x0,-0x11c(%rbp)
movl   $0x0,-0x120(%rbp)
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0x8,-0x114(%rbp)
jge    121d <main+0xcd>
movl   $0x0,-0x118(%rbp)
cmpl   $0x8,-0x118(%rbp)
jge    1204 <main+0xb4>
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x65,%ecx
cltd
idiv   %ecx
movslq -0x114(%rbp),%rcx
lea    -0x110(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x118(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    11b5 <main+0x65>
jmp    1209 <main+0xb9>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    119e <main+0x4e>
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0x8,-0x114(%rbp)
jge    133b <main+0x1eb>
movl   $0x0,-0x118(%rbp)
cmpl   $0x8,-0x118(%rbp)
jge    1319 <main+0x1c9>
movslq -0x114(%rbp),%rcx
lea    -0x110(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x118(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x114(%rbp),%eax
cmp    -0x118(%rbp),%eax
jne    12c3 <main+0x173>
mov    -0x11c(%rbp),%eax
movslq -0x114(%rbp),%rdx
lea    -0x110(%rbp),%rcx
shl    $0x5,%rdx
add    %rdx,%rcx
movslq -0x118(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x11c(%rbp)
mov    -0x114(%rbp),%eax
cmp    -0x118(%rbp),%eax
jle    1300 <main+0x1b0>
mov    -0x120(%rbp),%eax
movslq -0x114(%rbp),%rdx
lea    -0x110(%rbp),%rcx
shl    $0x5,%rdx
add    %rdx,%rcx
movslq -0x118(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x120(%rbp)
jmp    1305 <main+0x1b5>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    124c <main+0xfc>
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    1235 <main+0xe5>
mov    -0x11c(%rbp),%esi
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x120(%rbp),%esi
lea    0xd19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <getch@plt>
xor    %eax,%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
xor    %ebx,%ebx
nopl   (%rax)
xor    %eax,%eax
call   1080 <rand@plt>
cltq
imul   $0x288df0cb,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x4,%ecx
add    %edx,%ecx
imul   $0x65,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x10(%rsp,%rbx,1)
xor    %eax,%eax
call   1080 <rand@plt>
cltq
imul   $0x288df0cb,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x4,%ecx
add    %edx,%ecx
imul   $0x65,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x14(%rsp,%rbx,1)
xor    %eax,%eax
call   1080 <rand@plt>
cltq
imul   $0x288df0cb,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x4,%ecx
add    %edx,%ecx
imul   $0x65,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x18(%rsp,%rbx,1)
xor    %eax,%eax
call   1080 <rand@plt>
cltq
imul   $0x288df0cb,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x4,%ecx
add    %edx,%ecx
imul   $0x65,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x1c(%rsp,%rbx,1)
xor    %eax,%eax
call   1080 <rand@plt>
cltq
imul   $0x288df0cb,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x4,%ecx
add    %edx,%ecx
imul   $0x65,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x20(%rsp,%rbx,1)
xor    %eax,%eax
call   1080 <rand@plt>
cltq
imul   $0x288df0cb,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x4,%ecx
add    %edx,%ecx
imul   $0x65,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x24(%rsp,%rbx,1)
xor    %eax,%eax
call   1080 <rand@plt>
cltq
imul   $0x288df0cb,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x4,%ecx
add    %edx,%ecx
imul   $0x65,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x28(%rsp,%rbx,1)
xor    %eax,%eax
call   1080 <rand@plt>
cltq
imul   $0x288df0cb,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x4,%ecx
add    %edx,%ecx
imul   $0x65,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x2c(%rsp,%rbx,1)
add    $0x20,%rbx
cmp    $0x100,%rbx
jne    1190 <main+0x30>
lea    0xdad(%rip),%rdi
call   1030 <puts@plt>
lea    0x2c(%rsp),%rax
xor    %r14d,%r14d
xor    %ebp,%ebp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,0x8(%rsp)
mov    %rax,(%rsp)
mov    -0x1c(%rax),%r12d
lea    0xcdc(%rip),%r15
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r14,%r14
mov    $0x0,%r13d
cmove  %r12d,%r13d
mov    $0x0,%eax
cmove  %eax,%r12d
add    %ebx,%r13d
add    %ebp,%r12d
mov    (%rsp),%rax
mov    -0x18(%rax),%ebx
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x1,%r14
mov    $0x0,%ebp
cmove  %ebx,%ebp
add    %r13d,%ebp
cmp    $0x2,%r14
mov    $0x0,%eax
cmovb  %eax,%ebx
mov    (%rsp),%rax
mov    -0x14(%rax),%r13d
mov    $0x0,%r14d
cmove  %r13d,%r14d
add    %r12d,%ebx
mov    %r15,%r12
mov    %r15,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    %ebp,%r14d
cmpq   $0x3,0x8(%rsp)
mov    $0x0,%eax
cmovb  %eax,%r13d
mov    (%rsp),%rax
mov    -0x10(%rax),%ebp
mov    $0x0,%r15d
cmove  %ebp,%r15d
add    %ebx,%r13d
mov    %r12,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    %r14d,%r15d
cmpq   $0x4,0x8(%rsp)
mov    $0x0,%eax
cmovb  %eax,%ebp
mov    (%rsp),%rax
mov    -0xc(%rax),%r12d
mov    $0x0,%ebx
cmove  %r12d,%ebx
add    %r13d,%ebp
lea    0xc02(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    %r15d,%ebx
cmpq   $0x5,0x8(%rsp)
mov    $0x0,%r15d
cmovb  %r15d,%r12d
mov    (%rsp),%rax
mov    -0x8(%rax),%r13d
mov    $0x0,%r14d
cmove  %r13d,%r14d
add    %ebp,%r12d
lea    0xbc9(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    %ebx,%r14d
cmpq   $0x6,0x8(%rsp)
cmovb  %r15d,%r13d
mov    $0x0,%ebx
mov    (%rsp),%rax
mov    -0x4(%rax),%ebp
mov    $0x0,%r15d
cmove  %ebp,%r15d
add    %r12d,%r13d
lea    0xb92(%rip),%r12
mov    %r12,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    %r14d,%r15d
mov    0x8(%rsp),%r14
cmp    $0x7,%r14
cmovb  %ebx,%ebp
mov    (%rsp),%rax
mov    (%rax),%esi
mov    $0x0,%ebx
cmove  %esi,%ebx
add    %r13d,%ebp
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    %r15d,%ebx
lea    0xc02(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%rax
add    $0x1,%r14
add    $0x20,%rax
cmp    $0x8,%r14
jne    1310 <main+0x1b0>
lea    0xb36(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb4a(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <getch@plt>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [53 x i8] c"Matriz 8x8 com numero aleatorios? Aqui nos temos!\0A\0A\0A\00"
@.str.1 = [22 x i8] c"----- Matriz -----\09\0A\0A\00"
@.str.2 = [6 x i8] c"[%d]\09\00"
@.str.3 = [3 x i8] c"\0A\0A\00"
@.str.4 = [36 x i8] c"A soma da Diagonal Principal e: %d\0A\00"
@.str.5 = [63 x i8] c"A soma de todos os numeros abaixo da Diagonal Principal e: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [8 x [8 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 @time(i32* null)
%8 = call i32 @srand(i32 %7)
store i32 0, i32* %5
store i32 0, i32* %6
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %10
10: ; preds = %30, %0
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %33
13: ; preds = %10
store i32 0, i32* %4
br label %14
14: ; preds = %26, %13
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 8
br i1 %16, label %17, label %29
17: ; preds = %14
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 101
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %2, i64 0, i64 %21
%23 = load i32, i32* %4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %22, i64 0, i64 %24
store i32 %19, i32* %25
br label %26
26: ; preds = %17
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %14
29: ; preds = %14
br label %30
30: ; preds = %29
%31 = load i32, i32* %3
%32 = add nsw i32 %31, 1
store i32 %32, i32* %3
br label %10
33: ; preds = %10
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %35
35: ; preds = %84, %33
%36 = load i32, i32* %3
%37 = icmp slt i32 %36, 8
br i1 %37, label %38, label %87
38: ; preds = %35
store i32 0, i32* %4
br label %39
39: ; preds = %79, %38
%40 = load i32, i32* %4
%41 = icmp slt i32 %40, 8
br i1 %41, label %42, label %82
42: ; preds = %39
%43 = load i32, i32* %3
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %2, i64 0, i64 %44
%46 = load i32, i32* %4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [8 x i32], [8 x i32]* %45, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %49)
%51 = load i32, i32* %3
%52 = load i32, i32* %4
%53 = icmp eq i32 %51, %52
br i1 %53, label %54, label %64
54: ; preds = %42
%55 = load i32, i32* %5
%56 = load i32, i32* %3
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %2, i64 0, i64 %57
%59 = load i32, i32* %4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [8 x i32], [8 x i32]* %58, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = add nsw i32 %55, %62
store i32 %63, i32* %5
br label %64
64: ; preds = %54, %42
%65 = load i32, i32* %3
%66 = load i32, i32* %4
%67 = icmp sgt i32 %65, %66
br i1 %67, label %68, label %78
68: ; preds = %64
%69 = load i32, i32* %6
%70 = load i32, i32* %3
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %2, i64 0, i64 %71
%73 = load i32, i32* %4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [8 x i32], [8 x i32]* %72, i64 0, i64 %74
%76 = load i32, i32* %75
%77 = add nsw i32 %69, %76
store i32 %77, i32* %6
br label %78
78: ; preds = %68, %64
br label %79
79: ; preds = %78
%80 = load i32, i32* %4
%81 = add nsw i32 %80, 1
store i32 %81, i32* %4
br label %39
82: ; preds = %39
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %84
84: ; preds = %82
%85 = load i32, i32* %3
%86 = add nsw i32 %85, 1
store i32 %86, i32* %3
br label %35
87: ; preds = %35
%88 = load i32, i32* %5
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %6
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i32 %90)
%92 = call i32 (...) @getch()
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [6 x i8] c"[%d]\09\00"
@.str.4 = [36 x i8] c"A soma da Diagonal Principal e: %d\0A\00"
@.str.5 = [63 x i8] c"A soma de todos os numeros abaixo da Diagonal Principal e: %d\0A\00"
@str = [52 x i8] c"Matriz 8x8 com numero aleatorios? Aqui nos temos!\0A\0A\00"
@str.6 = [21 x i8] c"----- Matriz -----\09\0A\00"
@str.7 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca [8 x [8 x i32]]
%2 = bitcast [8 x [8 x i32]]* %1 to i8*
%3 = tail call i32 @time(i32* null)
%4 = tail call i32 @srand(i32 %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
br label %6
6: ; preds = %0, %6
%7 = phi i64 [ 0, %0 ], [ %32, %6 ]
%8 = tail call i32 (...) @rand()
%9 = srem i32 %8, 101
%10 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %7, i64 0
store i32 %9, i32* %10
%11 = tail call i32 (...) @rand()
%12 = srem i32 %11, 101
%13 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %7, i64 1
store i32 %12, i32* %13
%14 = tail call i32 (...) @rand()
%15 = srem i32 %14, 101
%16 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %7, i64 2
store i32 %15, i32* %16
%17 = tail call i32 (...) @rand()
%18 = srem i32 %17, 101
%19 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %7, i64 3
store i32 %18, i32* %19
%20 = tail call i32 (...) @rand()
%21 = srem i32 %20, 101
%22 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %7, i64 4
store i32 %21, i32* %22
%23 = tail call i32 (...) @rand()
%24 = srem i32 %23, 101
%25 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %7, i64 5
store i32 %24, i32* %25
%26 = tail call i32 (...) @rand()
%27 = srem i32 %26, 101
%28 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %7, i64 6
store i32 %27, i32* %28
%29 = tail call i32 (...) @rand()
%30 = srem i32 %29, 101
%31 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %7, i64 7
store i32 %30, i32* %31
%32 = add nuw nsw i64 %7, 1
%33 = icmp eq i64 %32, 8
br i1 %33, label %34, label %6
34: ; preds = %6
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0))
br label %36
36: ; preds = %34, %36
%37 = phi i64 [ 0, %34 ], [ %110, %36 ]
%38 = phi i32 [ 0, %34 ], [ %102, %36 ]
%39 = phi i32 [ 0, %34 ], [ %108, %36 ]
%40 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %37, i64 0
%41 = load i32, i32* %40
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %41)
%43 = icmp eq i64 %37, 0
%44 = select i1 %43, i32 %41, i32 0
%45 = add nsw i32 %44, %39
%46 = icmp eq i64 %37, 0
%47 = select i1 %46, i32 0, i32 %41
%48 = add nsw i32 %47, %38
%49 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %37, i64 1
%50 = load i32, i32* %49
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %50)
%52 = icmp eq i64 %37, 1
%53 = select i1 %52, i32 %50, i32 0
%54 = add nsw i32 %53, %45
%55 = icmp ugt i64 %37, 1
%56 = select i1 %55, i32 %50, i32 0
%57 = add nsw i32 %56, %48
%58 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %37, i64 2
%59 = load i32, i32* %58
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %59)
%61 = icmp eq i64 %37, 2
%62 = select i1 %61, i32 %59, i32 0
%63 = add nsw i32 %62, %54
%64 = icmp ugt i64 %37, 2
%65 = select i1 %64, i32 %59, i32 0
%66 = add nsw i32 %65, %57
%67 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %37, i64 3
%68 = load i32, i32* %67
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %68)
%70 = icmp eq i64 %37, 3
%71 = select i1 %70, i32 %68, i32 0
%72 = add nsw i32 %71, %63
%73 = icmp ugt i64 %37, 3
%74 = select i1 %73, i32 %68, i32 0
%75 = add nsw i32 %74, %66
%76 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %37, i64 4
%77 = load i32, i32* %76
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %77)
%79 = icmp eq i64 %37, 4
%80 = select i1 %79, i32 %77, i32 0
%81 = add nsw i32 %80, %72
%82 = icmp ugt i64 %37, 4
%83 = select i1 %82, i32 %77, i32 0
%84 = add nsw i32 %83, %75
%85 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %37, i64 5
%86 = load i32, i32* %85
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %86)
%88 = icmp eq i64 %37, 5
%89 = select i1 %88, i32 %86, i32 0
%90 = add nsw i32 %89, %81
%91 = icmp ugt i64 %37, 5
%92 = select i1 %91, i32 %86, i32 0
%93 = add nsw i32 %92, %84
%94 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %37, i64 6
%95 = load i32, i32* %94
%96 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %95)
%97 = icmp eq i64 %37, 6
%98 = select i1 %97, i32 %95, i32 0
%99 = add nsw i32 %98, %90
%100 = icmp ugt i64 %37, 6
%101 = select i1 %100, i32 %95, i32 0
%102 = add nsw i32 %101, %93
%103 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 %37, i64 7
%104 = load i32, i32* %103
%105 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %104)
%106 = icmp eq i64 %37, 7
%107 = select i1 %106, i32 %104, i32 0
%108 = add nsw i32 %107, %99
%109 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.7, i64 0, i64 0))
%110 = add nuw nsw i64 %37, 1
%111 = icmp eq i64 %110, 8
br i1 %111, label %112, label %36
112: ; preds = %36
%113 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i32 %108)
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i32 %102)
%115 = tail call i32 (...) @getch()
ret i32 0
}