#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*/ battle(int, int, char *, char *);
int /*<<< orphan*/ edit(int, int, char *);
int /*<<< orphan*/ getch();
int getchar();
int /*<<< orphan*/ map(int, int, char *);
int /*<<< orphan*/ map_print(int, int, char *);
int /*<<< orphan*/ move_r(int, int, int, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ system(char *);
main() {
  int order_r, order_c;
  order_r = 10;
  order_c = 10;
  int p;
  p = (order_r * order_c) - 1;
  char matrix[p];
  printf("\nMONSTER WARS\n");
  printf("Welcome To NewFound Town");
  char name[1000];
  printf("\nWhat's Your Name?");
  scanf("%s", name);
  getch();
  map(10, 10, matrix);
  printf("\nStart Game?\n");
  system("cls");
  edit(order_r, order_c, matrix);
  map_print(order_r, order_c, matrix);
  getch();
  int c, i;
  i = 0;
  while (i >= 0) {
    if ((c = getchar()) == 'd') {
      move_r(order_r, order_c, i, matrix);
      map_print(order_r, order_c, matrix);
      if (i == 2) {
        system("cls");
        printf("Wild Pikachu Appeared!!");
        printf("Oh %s, what will you do?\n", name);
        getch();
        printf("\nFIGHT!\n");
        printf("-----------\n");
        int pikastat;
        pikastat = 20;
        int mystat;
        mystat = 20;
        int i, j, myturn;
      battle:;
        myturn = 1;
        while (myturn == 1 && pikastat != 0) {
          printf("Attack using whip (5 loss)?\n");
          getch();
          pikastat = pikastat - 5;
          printf("Pika Health : %d", pikastat);
          myturn = 0;
          goto battle;
        }
        if (pikastat == 0) {
          printf("YOU BEAT PIKA FUCK YEAH!!!");
          getch();
          system("cls");
        }
        map_print(order_r, order_c, matrix);
        move_r(order_r, order_c, i, matrix);
        map_print(order_r, order_c, matrix);
        getch();
        break;
      }
      ++i;
    }
  }
  char opp[] = "Pika";
  int mystat = 10;
  int pikastat = 10;
  battle(mystat, pikastat, name, opp);
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0xa,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   %ecx,%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x448(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x410(%rbp),%rsi
lea    0xe0b(%rip),%rdi
call   1090 <scanf@plt>
mov    $0x0,%al
call   10a0 <getch@plt>
mov    -0x448(%rbp),%rdx
mov    $0xa,%esi
mov    %esi,%edi
call   1060 <map@plt>
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xde8(%rip),%rdi
call   1040 <system@plt>
mov    -0x448(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <edit@plt>
mov    -0x448(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1070 <map_print@plt>
mov    $0x0,%al
call   10a0 <getch@plt>
movl   $0x0,-0x418(%rbp)
cmpl   $0x0,-0x418(%rbp)
jl     1471 <main+0x2d1>
mov    $0x0,%al
call   1080 <getchar@plt>
mov    %eax,-0x414(%rbp)
cmp    $0x64,%eax
jne    146c <main+0x2cc>
mov    -0x448(%rbp),%rcx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x418(%rbp),%edx
call   10b0 <move_r@plt>
mov    -0x448(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1070 <map_print@plt>
cmpl   $0x2,-0x418(%rbp)
jne    145d <main+0x2bd>
lea    0xd4d(%rip),%rdi
call   1040 <system@plt>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x410(%rbp),%rsi
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <getch@plt>
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x14,-0x41c(%rbp)
movl   $0x14,-0x420(%rbp)
movl   $0x1,-0x42c(%rbp)
xor    %eax,%eax
cmpl   $0x1,-0x42c(%rbp)
mov    %al,-0x449(%rbp)
jne    138d <main+0x1ed>
cmpl   $0x0,-0x41c(%rbp)
setne  %al
mov    %al,-0x449(%rbp)
mov    -0x449(%rbp),%al
test   $0x1,%al
jne    13a0 <main+0x200>
jmp    13e7 <main+0x247>
lea    0xcf1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <getch@plt>
mov    -0x41c(%rbp),%eax
sub    $0x5,%eax
mov    %eax,-0x41c(%rbp)
mov    -0x41c(%rbp),%esi
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x42c(%rbp)
jmp    135e <main+0x1be>
cmpl   $0x0,-0x41c(%rbp)
jne    1415 <main+0x275>
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <getch@plt>
lea    0xc3c(%rip),%rdi
call   1040 <system@plt>
mov    -0x448(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1070 <map_print@plt>
mov    -0x448(%rbp),%rcx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x424(%rbp),%edx
call   10b0 <move_r@plt>
mov    -0x448(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1070 <map_print@plt>
mov    $0x0,%al
call   10a0 <getch@plt>
jmp    1471 <main+0x2d1>
mov    -0x418(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x418(%rbp)
jmp    129e <main+0xfe>
mov    0xc6a(%rip),%eax
mov    %eax,-0x431(%rbp)
mov    0xc62(%rip),%al
mov    %al,-0x42d(%rbp)
movl   $0xa,-0x438(%rbp)
movl   $0xa,-0x43c(%rbp)
mov    -0x438(%rbp),%edi
mov    -0x43c(%rbp),%esi
lea    -0x410(%rbp),%rdx
lea    -0x431(%rbp),%rcx
call   10c0 <battle@plt>
mov    $0x0,%al
call   10a0 <getch@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x470,%rsp
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xe2d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe38(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe3d(%rip),%rdi
lea    0x80(%rsp),%rsi
call   10a0 <scanf@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
lea    0x10(%rsp),%rbx
mov    $0xa,%edi
mov    $0xa,%esi
mov    %rbx,%rdx
call   1070 <map@plt>
lea    0xe83(%rip),%rdi
call   1030 <puts@plt>
lea    0xe02(%rip),%rdi
call   1050 <system@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    %rbx,%rdx
call   1040 <edit@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    %rbx,%rdx
call   1080 <map_print@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
nopl   (%rax)
xor    %eax,%eax
call   1090 <getchar@plt>
cmp    $0x64,%eax
jne    1260 <main+0xb0>
lea    0x10(%rsp),%rbx
mov    $0xa,%edi
mov    $0xa,%esi
xor    %edx,%edx
mov    %rbx,%rcx
call   10c0 <move_r@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    %rbx,%rdx
call   1080 <map_print@plt>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1090 <getchar@plt>
cmp    $0x64,%eax
jne    12a0 <main+0xf0>
lea    0x10(%rsp),%rbx
mov    $0xa,%edi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10c0 <move_r@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    %rbx,%rdx
call   1080 <map_print@plt>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1090 <getchar@plt>
cmp    $0x64,%eax
jne    12e0 <main+0x130>
lea    0x10(%rsp),%r12
mov    $0xa,%edi
mov    $0xa,%esi
mov    $0x2,%edx
mov    %r12,%rcx
call   10c0 <move_r@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    %r12,%rdx
call   1080 <map_print@plt>
lea    0xd0e(%rip),%r15
mov    %r15,%rdi
call   1050 <system@plt>
lea    0xd03(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd0d(%rip),%rdi
lea    0x80(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
lea    0xd53(%rip),%rdi
call   1030 <puts@plt>
lea    0xd4f(%rip),%rdi
call   1030 <puts@plt>
lea    0xd4f(%rip),%r13
mov    %r13,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
lea    0xcd9(%rip),%rbx
mov    %rbx,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc7d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
mov    %r15,%rdi
call   1050 <system@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    %r12,%rdx
call   1080 <map_print@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    %r12,%rcx
call   10c0 <move_r@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    %r12,%rdx
call   1080 <map_print@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
movl   $0x616b6950,0x8(%rsp)
61
movb   $0x0,0xc(%rsp)
lea    0x8(%rsp),%rcx
mov    $0xa,%edi
mov    $0xa,%esi
mov    %r14,%rdx
call   10d0 <battle@plt>
xor    %eax,%eax
call   10b0 <getch@plt>
xor    %eax,%eax
add    $0x470,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [15 x i8] c"\0AMONSTER WARS\0A\00"
@.str.1 = [25 x i8] c"Welcome To NewFound Town\00"
@.str.2 = [19 x i8] c"\0AWhat's Your Name?\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [14 x i8] c"\0AStart Game?\0A\00"
@.str.5 = [4 x i8] c"cls\00"
@.str.6 = [24 x i8] c"Wild Pikachu Appeared!!\00"
@.str.7 = [26 x i8] c"Oh %s, what will you do?\0A\00"
@.str.8 = [9 x i8] c"\0AFIGHT!\0A\00"
@.str.9 = [13 x i8] c"-----------\0A\00"
@.str.10 = [29 x i8] c"Attack using whip (5 loss)?\0A\00"
@.str.11 = [17 x i8] c"Pika Health : %d\00"
@.str.12 = [27 x i8] c"YOU BEAT PIKA FUCK YEAH!!!\00"
@__const.main.opp = [5 x i8] c"Pika\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca [1000 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [5 x i8]
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %1
store i32 10, i32* %2
store i32 10, i32* %3
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = mul nsw i32 %18, %19
%21 = sub nsw i32 %20, 1
store i32 %21, i32* %4
%22 = load i32, i32* %4
%23 = zext i32 %22 to i64
%24 = call i8* @llvm.stacksave()
store i8* %24, i8** %5
%25 = alloca i8, i64 %23
store i64 %23, i64* %6
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%29 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %29)
%31 = call i32 (...) @getch()
%32 = call i32 @map(i32 10, i32 10, i8* %25)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%34 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%35 = load i32, i32* %2
%36 = load i32, i32* %3
%37 = call i32 @edit(i32 %35, i32 %36, i8* %25)
%38 = load i32, i32* %2
%39 = load i32, i32* %3
%40 = call i32 @map_print(i32 %38, i32 %39, i8* %25)
%41 = call i32 (...) @getch()
store i32 0, i32* %9
br label %42
42: ; preds = %104, %0
%43 = load i32, i32* %9
%44 = icmp sge i32 %43, 0
br i1 %44, label %45, label %105
45: ; preds = %42
%46 = call i32 (...) @getchar()
store i32 %46, i32* %8
%47 = icmp eq i32 %46, 100
br i1 %47, label %48, label %104
48: ; preds = %45
%49 = load i32, i32* %2
%50 = load i32, i32* %3
%51 = load i32, i32* %9
%52 = call i32 @move_r(i32 %49, i32 %50, i32 %51, i8* %25)
%53 = load i32, i32* %2
%54 = load i32, i32* %3
%55 = call i32 @map_print(i32 %53, i32 %54, i8* %25)
%56 = load i32, i32* %9
%57 = icmp eq i32 %56, 2
br i1 %57, label %58, label %101
58: ; preds = %48
%59 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%61 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i8* %61)
%63 = call i32 (...) @getch()
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
store i32 20, i32* %10
store i32 20, i32* %11
br label %66
66: ; preds = %75, %58
store i32 1, i32* %14
br label %67
67: ; preds = %66
%68 = load i32, i32* %14
%69 = icmp eq i32 %68, 1
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load i32, i32* %10
%72 = icmp ne i32 %71, 0
br label %73
73: ; preds = %70, %67
%74 = phi i1 [ false, %67 ], [ %72, %70 ]
br i1 %74, label %75, label %82
75: ; preds = %73
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
%77 = call i32 (...) @getch()
%78 = load i32, i32* %10
%79 = sub nsw i32 %78, 5
store i32 %79, i32* %10
%80 = load i32, i32* %10
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 %80)
store i32 0, i32* %14
br label %66
82: ; preds = %73
%83 = load i32, i32* %10
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %89
85: ; preds = %82
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%87 = call i32 (...) @getch()
%88 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %89
89: ; preds = %85, %82
%90 = load i32, i32* %2
%91 = load i32, i32* %3
%92 = call i32 @map_print(i32 %90, i32 %91, i8* %25)
%93 = load i32, i32* %2
%94 = load i32, i32* %3
%95 = load i32, i32* %12
%96 = call i32 @move_r(i32 %93, i32 %94, i32 %95, i8* %25)
%97 = load i32, i32* %2
%98 = load i32, i32* %3
%99 = call i32 @map_print(i32 %97, i32 %98, i8* %25)
%100 = call i32 (...) @getch()
br label %105
101: ; preds = %48
%102 = load i32, i32* %9
%103 = add nsw i32 %102, 1
store i32 %103, i32* %9
br label %104
104: ; preds = %101, %45
br label %42
105: ; preds = %89, %42
%106 = bitcast [5 x i8]* %15 to i8*
store i32 10, i32* %16
store i32 10, i32* %17
%107 = load i32, i32* %16
%108 = load i32, i32* %17
%109 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%110 = getelementptr inbounds [5 x i8], [5 x i8]* %15, i64 0, i64 0
%111 = call i32 @battle(i32 %107, i32 %108, i8* %109, i8* %110)
%112 = call i32 (...) @getch()
%113 = load i8*, i8** %5
%114 = load i32, i32* %1
ret i32 %114
}

LLVM IR (-O2):
@.str.1 = [25 x i8] c"Welcome To NewFound Town\00"
@.str.2 = [19 x i8] c"\0AWhat's Your Name?\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.5 = [4 x i8] c"cls\00"
@.str.6 = [24 x i8] c"Wild Pikachu Appeared!!\00"
@.str.7 = [26 x i8] c"Oh %s, what will you do?\0A\00"
@.str.11 = [17 x i8] c"Pika Health : %d\00"
@.str.12 = [27 x i8] c"YOU BEAT PIKA FUCK YEAH!!!\00"
@__const.main.opp = [5 x i8] c"Pika\00"
@str = [14 x i8] c"\0AMONSTER WARS\00"
@str.13 = [13 x i8] c"\0AStart Game?\00"
@str.14 = [8 x i8] c"\0AFIGHT!\00"
@str.15 = [12 x i8] c"-----------\00"
@str.16 = [28 x i8] c"Attack using whip (5 loss)?\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = alloca [5 x i8]
%3 = alloca [99 x i8]
%4 = getelementptr inbounds [99 x i8], [99 x i8]* %3, i64 0, i64 0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%10 = call i32 (...) @getch()
%11 = call i32 @map(i32 10, i32 10, i8* %4)
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.13, i64 0, i64 0))
%13 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @edit(i32 10, i32 10, i8* %4)
%15 = call i32 @map_print(i32 10, i32 10, i8* %4)
%16 = call i32 (...) @getch()
br label %17
17: ; preds = %0, %17
%18 = call i32 (...) @getchar()
%19 = icmp eq i32 %18, 100
br i1 %19, label %20, label %17
20: ; preds = %17
%21 = call i32 @move_r(i32 10, i32 10, i32 0, i8* %4)
%22 = call i32 @map_print(i32 10, i32 10, i8* %4)
br label %23
23: ; preds = %23, %20
%24 = call i32 (...) @getchar()
%25 = icmp eq i32 %24, 100
br i1 %25, label %26, label %23
26: ; preds = %23
%27 = call i32 @move_r(i32 10, i32 10, i32 1, i8* %4)
%28 = call i32 @map_print(i32 10, i32 10, i8* %4)
br label %29
29: ; preds = %29, %26
%30 = call i32 (...) @getchar()
%31 = icmp eq i32 %30, 100
br i1 %31, label %32, label %29
32: ; preds = %29
%33 = call i32 @move_r(i32 10, i32 10, i32 2, i8* %4)
%34 = call i32 @map_print(i32 10, i32 10, i8* %4)
%35 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i8* %7)
%38 = call i32 (...) @getch()
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.14, i64 0, i64 0))
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.15, i64 0, i64 0))
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.16, i64 0, i64 0))
%42 = call i32 (...) @getch()
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 15)
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.16, i64 0, i64 0))
%45 = call i32 (...) @getch()
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 10)
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.16, i64 0, i64 0))
%48 = call i32 (...) @getch()
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 5)
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.16, i64 0, i64 0))
%51 = call i32 (...) @getch()
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 0)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%54 = call i32 (...) @getch()
%55 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%56 = call i32 @map_print(i32 10, i32 10, i8* %4)
%57 = call i32 @move_r(i32 10, i32 10, i32 undef, i8* %4)
%58 = call i32 @map_print(i32 10, i32 10, i8* %4)
%59 = call i32 (...) @getch()
%60 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%61 = call i32 @battle(i32 10, i32 10, i8* %7, i8* %60)
%62 = call i32 (...) @getch()
ret i32 0
}