#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 main() {
  char adversario[5][5] = {{0, 0, 0, 0, 0},
                           {1, 1, 0, 0, 0},
                           {0, 0, 1, 1, 0},
                           {0, 1, 0, 0, 1},
                           {0, 1, 1, 0, 0}};
  char campo[5][5];
  char nome[10];
  int pontos = 0, l, c, continuar = 1;
  printf("Digite seu nome: ");
  scanf("%s", nome);
  for (l = 0; l < 5; l++) {
    for (c = 0; c < 5; c++) {
      campo[l][c] = '*';
      printf("%c", campo[l][c]);
    }
    printf("\n");
  }
  while (continuar == 1) {
    printf("Entre com as coordenadas: \n");
    printf("Numero da linha: ");
    scanf("%d", &l);
    printf("Numero da coluna: ");
    scanf("%d", &c);
    if (adversario[l][c] == 1) {
      pontos++;
      printf(" Bomba!! você ganhou 1 ponto \n\n");
      campo[l][c] = 'B';
    } else {
      campo[l][c] = 'A';
      printf("Agua!!, que pena \n\n");
    }
    for (l = 0; l < 5; l++) {
      for (c = 0; c < 5; c++) {
        printf("%c", campo[l][c]);
      }
      printf("\n");
    }
    printf("Se deseja continuar digite 1: ");
    scanf("%d", &continuar);
  }
  printf("Olá %s \n", nome);
  printf("você fez %d ponto(s). \n", pontos);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xec2(%rip),%al
mov    %al,-0x8(%rbp)
movl   $0x0,-0x50(%rbp)
movl   $0x1,-0x5c(%rbp)
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x4a(%rbp),%rsi
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0x5,-0x54(%rbp)
jge    120f <main+0xef>
movl   $0x0,-0x58(%rbp)
cmpl   $0x5,-0x58(%rbp)
jge    11f3 <main+0xd3>
movslq -0x54(%rbp),%rcx
lea    -0x40(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
movb   $0x2a,(%rax,%rcx,1)
movslq -0x54(%rbp),%rcx
lea    -0x40(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    119f <main+0x7f>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    118e <main+0x6e>
jmp    1214 <main+0xf4>
cmpl   $0x1,-0x5c(%rbp)
jne    137a <main+0x25a>
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe1e(%rip),%rdi
lea    -0x54(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdfe(%rip),%rdi
lea    -0x58(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movslq -0x54(%rbp),%rcx
lea    -0x20(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x1,%eax
jne    12bf <main+0x19f>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x54(%rbp),%rcx
lea    -0x40(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
movb   $0x42,(%rax,%rcx,1)
jmp    12e4 <main+0x1c4>
movslq -0x54(%rbp),%rcx
lea    -0x40(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
movb   $0x41,(%rax,%rcx,1)
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0x5,-0x54(%rbp)
jge    1355 <main+0x235>
movl   $0x0,-0x58(%rbp)
cmpl   $0x5,-0x58(%rbp)
jge    1339 <main+0x219>
movslq -0x54(%rbp),%rcx
lea    -0x40(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    12fc <main+0x1dc>
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    12eb <main+0x1cb>
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcf5(%rip),%rdi
lea    -0x5c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1214 <main+0xf4>
lea    -0x4a(%rbp),%rsi
lea    0xd44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x50(%rbp),%esi
lea    0xd3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movl   $0x1,0xc(%rsp)
lea    0xebc(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec0(%rip),%rdi
lea    0x2e(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x14(%rsp),%rbx
mov    $0xffffffff,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movb   $0x2a,-0x4(%rbx)
mov    $0x2a,%edi
call   1030 <putchar@plt>
movl   $0x1,0x4(%rsp)
movb   $0x2a,-0x3(%rbx)
mov    $0x2a,%edi
call   1030 <putchar@plt>
movl   $0x2,0x4(%rsp)
movb   $0x2a,-0x2(%rbx)
mov    $0x2a,%edi
call   1030 <putchar@plt>
movl   $0x3,0x4(%rsp)
movb   $0x2a,-0x1(%rbx)
mov    $0x2a,%edi
call   1030 <putchar@plt>
movl   $0x4,0x4(%rsp)
movb   $0x2a,(%rbx)
mov    $0x2a,%edi
call   1030 <putchar@plt>
movl   $0x5,0x4(%rsp)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x2(%rbp),%eax
mov    %eax,0x8(%rsp)
add    $0x1,%ebp
add    $0x5,%rbx
cmp    $0x4,%ebp
jb     1190 <main+0x50>
lea    0xe1b(%rip),%rbx
lea    0x4(%rsp),%r14
lea    0xdcf(%rip),%r13
lea    0xe1e(%rip),%r15
lea    0xc(%rsp),%r12
xor    %ebp,%ebp
jmp    1272 <main+0x132>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x1,0xc(%rsp)
jne    13ad <main+0x26d>
lea    0xe1f(%rip),%rdi
call   1040 <puts@plt>
lea    0xda9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xda1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movslq 0x8(%rsp),%rcx
movslq 0x4(%rsp),%rax
lea    (%rcx,%rcx,4),%rcx
lea    (%rcx,%r13,1),%rdx
cmpb   $0x1,(%rax,%rdx,1)
jne    1300 <main+0x1c0>
add    $0x1,%ebp
lea    0xdee(%rip),%rdi
call   1040 <puts@plt>
movslq 0x8(%rsp),%rax
movslq 0x4(%rsp),%rcx
lea    (%rax,%rax,4),%rax
add    %rsp,%rax
add    $0x10,%rax
movb   $0x42,(%rcx,%rax,1)
jmp    1317 <main+0x1d7>
nopl   0x0(%rax,%rax,1)
add    %rsp,%rcx
add    $0x10,%rcx
movb   $0x41,(%rax,%rcx,1)
lea    0xda1(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,0x8(%rsp)
xor    %eax,%eax
jmp    134e <main+0x20e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x8(%rsp)
cmp    $0x4,%ecx
jge    1250 <main+0x110>
movl   $0x0,0x4(%rsp)
cltq
lea    (%rax,%rax,4),%rax
movsbl 0x10(%rsp,%rax,1),%edi
call   1030 <putchar@plt>
mov    0x4(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
cmp    $0x3,%ecx
jg     1330 <main+0x1f0>
cs nopw 0x0(%rax,%rax,1)
movslq 0x8(%rsp),%rcx
cltq
lea    (%rcx,%rcx,4),%rcx
add    %rsp,%rcx
add    $0x10,%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <putchar@plt>
mov    0x4(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
cmp    $0x4,%ecx
jl     1380 <main+0x240>
jmp    1330 <main+0x1f0>
lea    0xcc1(%rip),%rdi
lea    0x2e(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcb8(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.adversario = [5 x [5 x i8]] [[5 x i8] zeroinitializer, [5 x i8] c"\01\01\00\00\00", [5 x i8] c"\00\00\01\01\00", [5 x i8] c"\00\01\00\00\01", [5 x i8] c"\00\01\01\00\00"]
@.str = [18 x i8] c"Digite seu nome: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [3 x i8] c"%c\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [28 x i8] c"Entre com as coordenadas: \0A\00"
@.str.5 = [18 x i8] c"Numero da linha: \00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [19 x i8] c"Numero da coluna: \00"
@.str.8 = [33 x i8] c" Bomba!! voc\C3\AA ganhou 1 ponto \0A\0A\00"
@.str.9 = [20 x i8] c"Agua!!, que pena \0A\0A\00"
@.str.10 = [31 x i8] c"Se deseja continuar digite 1: \00"
@.str.11 = [10 x i8] c"Ol\C3\A1 %s \0A\00"
@.str.12 = [25 x i8] c"voc\C3\AA fez %d ponto(s). \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [5 x i8]]
%3 = alloca [5 x [5 x i8]]
%4 = alloca [10 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = bitcast [5 x [5 x i8]]* %2 to i8*
store i32 0, i32* %5
store i32 1, i32* %8
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %11)
store i32 0, i32* %6
br label %13
13: ; preds = %41, %0
%14 = load i32, i32* %6
%15 = icmp slt i32 %14, 5
br i1 %15, label %16, label %44
16: ; preds = %13
store i32 0, i32* %7
br label %17
17: ; preds = %36, %16
%18 = load i32, i32* %7
%19 = icmp slt i32 %18, 5
br i1 %19, label %20, label %39
20: ; preds = %17
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %22
%24 = load i32, i32* %7
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %23, i64 0, i64 %25
store i8 42, i8* %26
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %28
%30 = load i32, i32* %7
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [5 x i8], [5 x i8]* %29, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %34)
br label %36
36: ; preds = %20
%37 = load i32, i32* %7
%38 = add nsw i32 %37, 1
store i32 %38, i32* %7
br label %17
39: ; preds = %17
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %41
41: ; preds = %39
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
br label %13
44: ; preds = %13
br label %45
45: ; preds = %107, %44
%46 = load i32, i32* %8
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %110
48: ; preds = %45
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %6)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%53 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %7)
%54 = load i32, i32* %6
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %2, i64 0, i64 %55
%57 = load i32, i32* %7
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [5 x i8], [5 x i8]* %56, i64 0, i64 %58
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 1
br i1 %62, label %63, label %73
63: ; preds = %48
%64 = load i32, i32* %5
%65 = add nsw i32 %64, 1
store i32 %65, i32* %5
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%67 = load i32, i32* %6
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %68
%70 = load i32, i32* %7
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [5 x i8], [5 x i8]* %69, i64 0, i64 %71
store i8 66, i8* %72
br label %81
73: ; preds = %48
%74 = load i32, i32* %6
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %75
%77 = load i32, i32* %7
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [5 x i8], [5 x i8]* %76, i64 0, i64 %78
store i8 65, i8* %79
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
br label %81
81: ; preds = %73, %63
store i32 0, i32* %6
br label %82
82: ; preds = %104, %81
%83 = load i32, i32* %6
%84 = icmp slt i32 %83, 5
br i1 %84, label %85, label %107
85: ; preds = %82
store i32 0, i32* %7
br label %86
86: ; preds = %99, %85
%87 = load i32, i32* %7
%88 = icmp slt i32 %87, 5
br i1 %88, label %89, label %102
89: ; preds = %86
%90 = load i32, i32* %6
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %91
%93 = load i32, i32* %7
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [5 x i8], [5 x i8]* %92, i64 0, i64 %94
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %97)
br label %99
99: ; preds = %89
%100 = load i32, i32* %7
%101 = add nsw i32 %100, 1
store i32 %101, i32* %7
br label %86
102: ; preds = %86
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %104
104: ; preds = %102
%105 = load i32, i32* %6
%106 = add nsw i32 %105, 1
store i32 %106, i32* %6
br label %82
107: ; preds = %82
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%109 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %8)
br label %45
110: ; preds = %45
%111 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %111)
%113 = load i32, i32* %5
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i32 %113)
ret i32 0
}

LLVM IR (-O2):
@__const.main.adversario = [5 x [5 x i8]] [[5 x i8] zeroinitializer, [5 x i8] c"\01\01\00\00\00", [5 x i8] c"\00\00\01\01\00", [5 x i8] c"\00\01\00\00\01", [5 x i8] c"\00\01\01\00\00"]
@.str = [18 x i8] c"Digite seu nome: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.5 = [18 x i8] c"Numero da linha: \00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [19 x i8] c"Numero da coluna: \00"
@.str.10 = [31 x i8] c"Se deseja continuar digite 1: \00"
@.str.11 = [10 x i8] c"Ol\C3\A1 %s \0A\00"
@.str.12 = [25 x i8] c"voc\C3\AA fez %d ponto(s). \0A\00"
@str = [27 x i8] c"Entre com as coordenadas: \00"
@str.13 = [19 x i8] c"Agua!!, que pena \0A\00"
@str.14 = [32 x i8] c" Bomba!! voc\C3\AA ganhou 1 ponto \0A\00"
define i32 @main() {
%1 = alloca [5 x [5 x i8]]
%2 = alloca [10 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0, i64 0
%7 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
store i32 1, i32* %5
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %7)
br label %13
13: ; preds = %0, %13
%14 = phi i32 [ 0, %0 ], [ %27, %13 ]
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %15, i64 0
store i8 42, i8* %16
%17 = call i32 @putchar(i32 42)
store i32 1, i32* %4
%18 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %15, i64 1
store i8 42, i8* %18
%19 = call i32 @putchar(i32 42)
store i32 2, i32* %4
%20 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %15, i64 2
store i8 42, i8* %20
%21 = call i32 @putchar(i32 42)
store i32 3, i32* %4
%22 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %15, i64 3
store i8 42, i8* %22
%23 = call i32 @putchar(i32 42)
store i32 4, i32* %4
%24 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %15, i64 4
store i8 42, i8* %24
%25 = call i32 @putchar(i32 42)
store i32 5, i32* %4
%26 = call i32 @putchar(i32 10)
%27 = add nuw nsw i32 %14, 1
store i32 %27, i32* %3
%28 = icmp ult i32 %14, 4
br i1 %28, label %13, label %29
29: ; preds = %13, %83
%30 = phi i32 [ %55, %83 ], [ 0, %13 ]
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
%36 = load i32, i32* %3
%37 = sext i32 %36 to i64
%38 = load i32, i32* %4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* @__const.main.adversario, i64 0, i64 %37, i64 %39
%41 = load i8, i8* %40
%42 = icmp eq i8 %41, 1
br i1 %42, label %43, label %51
43: ; preds = %29
%44 = add nsw i32 %30, 1
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.14, i64 0, i64 0))
%46 = load i32, i32* %3
%47 = sext i32 %46 to i64
%48 = load i32, i32* %4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %47, i64 %49
store i8 66, i8* %50
br label %54
51: ; preds = %29
%52 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %37, i64 %39
store i8 65, i8* %52
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.13, i64 0, i64 0))
br label %54
54: ; preds = %51, %43
%55 = phi i32 [ %44, %43 ], [ %30, %51 ]
store i32 0, i32* %3
br label %56
56: ; preds = %54, %78
%57 = phi i32 [ 0, %54 ], [ %81, %78 ]
store i32 0, i32* %4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %58, i64 0
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = call i32 @putchar(i32 %61)
%63 = load i32, i32* %4
%64 = add nsw i32 %63, 1
store i32 %64, i32* %4
%65 = icmp slt i32 %63, 4
br i1 %65, label %66, label %78
66: ; preds = %56, %66
%67 = phi i32 [ %76, %66 ], [ %64, %56 ]
%68 = load i32, i32* %3
%69 = sext i32 %68 to i64
%70 = sext i32 %67 to i64
%71 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %69, i64 %70
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = call i32 @putchar(i32 %73)
%75 = load i32, i32* %4
%76 = add nsw i32 %75, 1
store i32 %76, i32* %4
%77 = icmp slt i32 %75, 4
br i1 %77, label %66, label %78
78: ; preds = %66, %56
%79 = call i32 @putchar(i32 10)
%80 = load i32, i32* %3
%81 = add nsw i32 %80, 1
store i32 %81, i32* %3
%82 = icmp slt i32 %80, 4
br i1 %82, label %56, label %83
83: ; preds = %78
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%85 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %5)
%86 = load i32, i32* %5
%87 = icmp eq i32 %86, 1
br i1 %87, label %29, label %88
88: ; preds = %83
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %7)
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i32 %55)
ret i32 0
}