#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ system(char *);
int main() {
  int i, j, result[5][5], cont = 0, continuar;
  char nome[20];
  continuar = 1;
  while (continuar == 1) {
    printf("Digite seu nome\n");
    scanf("%s", nome);
    printf("Preencha os campos com 0 e 1\n");
    for (i = 0; i < 5; i++)
      for (j = 0; j < 5; j++) {
        printf("Campo[%d][%d] = ", i, j);
        scanf("%d", &result[i][j]);
      }
    for (i = 0; i < 5; i++) {
      for (j = 0; j < 5; j++) {
        printf(" %d ", result[i][j]);
      }
      printf("\n");
    }
    printf("Digite as coordenadas\n");
    printf("O numero da linha :");
    scanf("%d", &i);
    printf("O numero da coluna :");
    scanf("%d", &j);
    printf("Voce escolheu a linha %d e coluna %d\n", i, j);
    if (result[i][j] == 1) {
      printf("Bomba!!\n");
      cont++;
    }
    if (result[i][j] == 0) {
      printf("Agua!!\n");
    }
    printf("Deseja continuar ? (1 - s/2 - n)\n");
    scanf("%d", &continuar);
  }
  printf("%s voce tem, %d pontos\n", nome, cont);
  return 0;
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x74(%rbp)
movl   $0x1,-0x78(%rbp)
cmpl   $0x1,-0x78(%rbp)
jne    1350 <main+0x230>
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x90(%rbp),%rsi
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    11fa <main+0xda>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    11e7 <main+0xc7>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x70(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1193 <main+0x73>
jmp    11ec <main+0xcc>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1182 <main+0x62>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    126a <main+0x14a>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    124e <main+0x12e>
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1212 <main+0xf2>
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1201 <main+0xe1>
lea    0xdda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdb6(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd96(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    1300 <main+0x1e0>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
movslq -0x8(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    132b <main+0x20b>
lea    0xd96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd03(%rip),%rdi
lea    -0x78(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1140 <main+0x20>
lea    -0x90(%rbp),%rsi
mov    -0x74(%rbp),%edx
lea    0xd83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
movl   $0x1,0xc(%rsp)
lea    0xea3(%rip),%rbx
lea    0xead(%rip),%rbp
lea    0xea9(%rip),%r14
lea    0xf51(%rip),%r15
lea    0xc(%rsp),%r12
xor    %r13d,%r13d
jmp    11a0 <main+0x60>
nop
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x1,0xc(%rsp)
jne    139c <main+0x25c>
lea    0xedc(%rip),%rdi
call   1040 <puts@plt>
lea    0xe4d(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xecd(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,0x8(%rsp)
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nop
movl   $0x0,0x4(%rsp)
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movslq 0x8(%rsp),%rax
movslq 0x4(%rsp),%rcx
lea    (%rax,%rax,4),%rax
lea    (%rsp,%rax,4),%rax
add    $0x30,%rax
lea    (%rax,%rcx,4),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
lea    0x1(%rax),%edx
mov    %edx,0x4(%rsp)
mov    0x8(%rsp),%esi
cmp    $0x4,%eax
jl     11f0 <main+0xb0>
lea    0x1(%rsi),%eax
mov    %eax,0x8(%rsp)
cmp    $0x4,%esi
mov    %eax,%esi
jl     11e0 <main+0xa0>
movl   $0x0,0x8(%rsp)
xor    %eax,%eax
jmp    126a <main+0x12a>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x8(%rsp)
cmp    $0x4,%ecx
jge    12e0 <main+0x1a0>
movl   $0x0,0x4(%rsp)
cltq
lea    (%rax,%rax,4),%rax
mov    0x30(%rsp,%rax,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
cmp    $0x3,%ecx
jg     1250 <main+0x110>
cs nopw 0x0(%rax,%rax,1)
movslq 0x8(%rsp),%rcx
cltq
lea    (%rcx,%rcx,4),%rcx
lea    (%rsp,%rcx,4),%rcx
add    $0x30,%rcx
mov    (%rcx,%rax,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
cmp    $0x4,%ecx
jl     12a0 <main+0x160>
jmp    1250 <main+0x110>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xdc9(%rip),%rdi
call   1040 <puts@plt>
lea    0xd29(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xd20(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
lea    0xd10(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movslq 0x8(%rsp),%rax
movslq 0x4(%rsp),%rcx
lea    (%rax,%rax,4),%rax
lea    (%rsp,%rax,4),%rax
add    $0x30,%rax
mov    (%rax,%rcx,4),%eax
cmp    $0x1,%eax
jne    1383 <main+0x243>
lea    0xd8d(%rip),%rdi
call   1040 <puts@plt>
add    $0x1,%r13d
movslq 0x8(%rsp),%rax
movslq 0x4(%rsp),%rcx
lea    (%rax,%rax,4),%rax
lea    (%rsp,%rax,4),%rax
add    $0x30,%rax
mov    (%rax,%rcx,4),%eax
test   %eax,%eax
jne    1180 <main+0x40>
lea    0xd55(%rip),%rdi
call   1040 <puts@plt>
jmp    1180 <main+0x40>
lea    0xcc8(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"Digite seu nome\0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [30 x i8] c"Preencha os campos com 0 e 1\0A\00"
@.str.3 = [17 x i8] c"Campo[%d][%d] = \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [5 x i8] c" %d \00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [23 x i8] c"Digite as coordenadas\0A\00"
@.str.8 = [20 x i8] c"O numero da linha :\00"
@.str.9 = [21 x i8] c"O numero da coluna :\00"
@.str.10 = [38 x i8] c"Voce escolheu a linha %d e coluna %d\0A\00"
@.str.11 = [9 x i8] c"Bomba!!\0A\00"
@.str.12 = [8 x i8] c"Agua!!\0A\00"
@.str.13 = [34 x i8] c"Deseja continuar ? (1 - s/2 - n)\0A\00"
@.str.14 = [24 x i8] c"%s voce tem, %d pontos\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [5 x [5 x i32]]
%5 = alloca i32
%6 = alloca i32
%7 = alloca [20 x i8]
store i32 0, i32* %1
store i32 0, i32* %5
store i32 1, i32* %6
br label %8
8: ; preds = %98, %0
%9 = load i32, i32* %6
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %101
11: ; preds = %8
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %2
br label %16
16: ; preds = %38, %11
%17 = load i32, i32* %2
%18 = icmp slt i32 %17, 5
br i1 %18, label %19, label %41
19: ; preds = %16
store i32 0, i32* %3
br label %20
20: ; preds = %34, %19
%21 = load i32, i32* %3
%22 = icmp slt i32 %21, 5
br i1 %22, label %23, label %37
23: ; preds = %20
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %24, i32 %25)
%27 = load i32, i32* %2
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %4, i64 0, i64 %28
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [5 x i32], [5 x i32]* %29, i64 0, i64 %31
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %32)
br label %34
34: ; preds = %23
%35 = load i32, i32* %3
%36 = add nsw i32 %35, 1
store i32 %36, i32* %3
br label %20
37: ; preds = %20
br label %38
38: ; preds = %37
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
store i32 %40, i32* %2
br label %16
41: ; preds = %16
store i32 0, i32* %2
br label %42
42: ; preds = %63, %41
%43 = load i32, i32* %2
%44 = icmp slt i32 %43, 5
br i1 %44, label %45, label %66
45: ; preds = %42
store i32 0, i32* %3
br label %46
46: ; preds = %58, %45
%47 = load i32, i32* %3
%48 = icmp slt i32 %47, 5
br i1 %48, label %49, label %61
49: ; preds = %46
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %4, i64 0, i64 %51
%53 = load i32, i32* %3
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [5 x i32], [5 x i32]* %52, i64 0, i64 %54
%56 = load i32, i32* %55
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %56)
br label %58
58: ; preds = %49
%59 = load i32, i32* %3
%60 = add nsw i32 %59, 1
store i32 %60, i32* %3
br label %46
61: ; preds = %46
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %63
63: ; preds = %61
%64 = load i32, i32* %2
%65 = add nsw i32 %64, 1
store i32 %65, i32* %2
br label %42
66: ; preds = %42
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%69 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%71 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%72 = load i32, i32* %2
%73 = load i32, i32* %3
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0), i32 %72, i32 %73)
%75 = load i32, i32* %2
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %4, i64 0, i64 %76
%78 = load i32, i32* %3
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [5 x i32], [5 x i32]* %77, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = icmp eq i32 %81, 1
br i1 %82, label %83, label %87
83: ; preds = %66
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%85 = load i32, i32* %5
%86 = add nsw i32 %85, 1
store i32 %86, i32* %5
br label %87
87: ; preds = %83, %66
%88 = load i32, i32* %2
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %4, i64 0, i64 %89
%91 = load i32, i32* %3
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [5 x i32], [5 x i32]* %90, i64 0, i64 %92
%94 = load i32, i32* %93
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %87
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %98
98: ; preds = %96, %87
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0))
%100 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %6)
br label %8
101: ; preds = %8
%102 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%103 = load i32, i32* %5
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0), i8* %102, i32 %103)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%s\00"
@.str.3 = [17 x i8] c"Campo[%d][%d] = \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [5 x i8] c" %d \00"
@.str.8 = [20 x i8] c"O numero da linha :\00"
@.str.9 = [21 x i8] c"O numero da coluna :\00"
@.str.10 = [38 x i8] c"Voce escolheu a linha %d e coluna %d\0A\00"
@.str.14 = [24 x i8] c"%s voce tem, %d pontos\0A\00"
@str = [16 x i8] c"Digite seu nome\00"
@str.15 = [29 x i8] c"Preencha os campos com 0 e 1\00"
@str.16 = [22 x i8] c"Digite as coordenadas\00"
@str.17 = [33 x i8] c"Deseja continuar ? (1 - s/2 - n)\00"
@str.18 = [7 x i8] c"Agua!!\00"
@str.19 = [8 x i8] c"Bomba!!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [5 x [5 x i32]]
%4 = alloca i32
%5 = alloca [20 x i8]
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast [5 x [5 x i32]]* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
store i32 1, i32* %4
br label %11
11: ; preds = %0, %92
%12 = phi i32 [ 0, %0 ], [ %88, %92 ]
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %10)
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.15, i64 0, i64 0))
store i32 0, i32* %1
br label %17
16: ; preds = %33
store i32 0, i32* %1
br label %36
17: ; preds = %11, %33
%18 = phi i32 [ 0, %11 ], [ %34, %33 ]
store i32 0, i32* %2
br label %19
19: ; preds = %19, %17
%20 = phi i32 [ %18, %17 ], [ %32, %19 ]
%21 = phi i32 [ 0, %17 ], [ %30, %19 ]
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %20, i32 %21)
%23 = load i32, i32* %1
%24 = sext i32 %23 to i64
%25 = load i32, i32* %2
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 %24, i64 %26
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %27)
%29 = load i32, i32* %2
%30 = add nsw i32 %29, 1
store i32 %30, i32* %2
%31 = icmp slt i32 %29, 4
%32 = load i32, i32* %1
br i1 %31, label %19, label %33
33: ; preds = %19
%34 = add nsw i32 %32, 1
store i32 %34, i32* %1
%35 = icmp slt i32 %32, 4
br i1 %35, label %17, label %16
36: ; preds = %16, %56
%37 = phi i32 [ 0, %16 ], [ %59, %56 ]
store i32 0, i32* %2
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 %38, i64 0
%40 = load i32, i32* %39
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
%44 = icmp slt i32 %42, 4
br i1 %44, label %45, label %56
45: ; preds = %36, %45
%46 = phi i32 [ %54, %45 ], [ %43, %36 ]
%47 = load i32, i32* %1
%48 = sext i32 %47 to i64
%49 = sext i32 %46 to i64
%50 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 %48, i64 %49
%51 = load i32, i32* %50
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %51)
%53 = load i32, i32* %2
%54 = add nsw i32 %53, 1
store i32 %54, i32* %2
%55 = icmp slt i32 %53, 4
br i1 %55, label %45, label %56
56: ; preds = %45, %36
%57 = call i32 @putchar(i32 10)
%58 = load i32, i32* %1
%59 = add nsw i32 %58, 1
store i32 %59, i32* %1
%60 = icmp slt i32 %58, 4
br i1 %60, label %36, label %61
61: ; preds = %56
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.16, i64 0, i64 0))
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%64 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%66 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%67 = load i32, i32* %1
%68 = load i32, i32* %2
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0), i32 %67, i32 %68)
%70 = load i32, i32* %1
%71 = sext i32 %70 to i64
%72 = load i32, i32* %2
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 %71, i64 %73
%75 = load i32, i32* %74
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %86
77: ; preds = %61
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.19, i64 0, i64 0))
%79 = add nsw i32 %12, 1
%80 = load i32, i32* %1
%81 = load i32, i32* %2
%82 = sext i32 %80 to i64
%83 = sext i32 %81 to i64
%84 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 %82, i64 %83
%85 = load i32, i32* %84
br label %86
86: ; preds = %77, %61
%87 = phi i32 [ %85, %77 ], [ %75, %61 ]
%88 = phi i32 [ %79, %77 ], [ %12, %61 ]
%89 = icmp eq i32 %87, 0
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.18, i64 0, i64 0))
br label %92
92: ; preds = %90, %86
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.17, i64 0, i64 0))
%94 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%95 = load i32, i32* %4
%96 = icmp eq i32 %95, 1
br i1 %96, label %11, label %97
97: ; preds = %92
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0), i8* %10, i32 %88)
ret i32 0
}