#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 CheckWin(char);
int /*<<< orphan*/ ClearScreen();
int /*<<< orphan*/ PrintChar(int);
int /*<<< orphan*/ PrintString(char *);
int PutDown(char);
char ReadChar();
void Exec(char *argv[]) {
  char c;
  char *char_device = (char *)65536;
  int flag = 0;
  unsigned int i, j, result;
  char xWin[6];
  xWin[0] = 'x';
  xWin[1] = ' ';
  xWin[2] = 'w';
  xWin[3] = 'i';
  xWin[4] = 'n';
  xWin[5] = '\0';
  char oWin[6];
  oWin[0] = 'o';
  xWin[1] = ' ';
  xWin[2] = 'w';
  xWin[3] = 'i';
  xWin[4] = 'n';
  xWin[5] = '\0';
  ClearScreen();
  *char_device = 24 >> 1;
  *(char_device + 1) = 40 >> 1;
  while (1) {
    while (1) {
      c = ReadChar();
      if (c != '\0') {
        break;
      }
    }
    switch (c) {
    case 'x':
      if (flag == 1) {
        break;
      }
      if (PutDown('x') == 1) {
        flag = 1;
        if (CheckWin('x') == 1) {
          ClearScreen();
          *char_device = 24 >> 1;
          *(char_device + 1) = (40 >> 1) - 2;
          PrintString(xWin);
          while (1) {
            c = ReadChar();
            if (c == 0x0d) {
              break;
            }
          }
          ClearScreen();
          return;
        }
      }
      break;
    case 'o':
      if (flag == 0) {
        break;
      }
      if (PutDown('o') == 1) {
        flag = 0;
        if (CheckWin('o') == 1) {
          ClearScreen();
          *char_device = 24 >> 1;
          *(char_device + 1) = (40 >> 1) - 2;
          PrintString(oWin);
          while (1) {
            c = ReadChar();
            if (c == 0x0d) {
              break;
            }
          }
          ClearScreen();
          return;
        }
      }
      break;
    case 0x0d:
      *char_device = 0;
      *(char_device + 1) = 0;
      for (i = 0; i < 24; i++) {
        for (j = 0; j < 40; j++) {
          PrintChar(20);
        }
      }
      *char_device = 0;
      *(char_device + 1) = 0;
      return;
    default:
      break;
    }
  }
}


x86 assembly (clang, -O0):
<Exec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x10000,%eax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movb   $0x78,-0x2e(%rbp)
movb   $0x20,-0x2d(%rbp)
movb   $0x77,-0x2c(%rbp)
movb   $0x69,-0x2b(%rbp)
movb   $0x6e,-0x2a(%rbp)
movb   $0x0,-0x29(%rbp)
movb   $0x6f,-0x34(%rbp)
movb   $0x20,-0x2d(%rbp)
movb   $0x77,-0x2c(%rbp)
movb   $0x69,-0x2b(%rbp)
movb   $0x6e,-0x2a(%rbp)
movb   $0x0,-0x29(%rbp)
mov    $0x0,%al
call   1060 <ClearScreen@plt>
mov    -0x18(%rbp),%rax
movb   $0xc,(%rax)
mov    -0x18(%rbp),%rax
movb   $0x14,0x1(%rax)
jmp    11c7 <Exec+0x67>
mov    $0x0,%al
call   1070 <ReadChar@plt>
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x0,%eax
je     11e3 <Exec+0x83>
jmp    11e8 <Exec+0x88>
jmp    11c7 <Exec+0x67>
movsbl -0x9(%rbp),%eax
mov    %eax,-0x38(%rbp)
sub    $0xd,%eax
je     1343 <Exec+0x1e3>
jmp    11fd <Exec+0x9d>
mov    -0x38(%rbp),%eax
sub    $0x6f,%eax
je     12b1 <Exec+0x151>
jmp    120e <Exec+0xae>
mov    -0x38(%rbp),%eax
sub    $0x78,%eax
jne    13b3 <Exec+0x253>
jmp    121f <Exec+0xbf>
cmpl   $0x1,-0x1c(%rbp)
jne    122e <Exec+0xce>
jmp    13b8 <Exec+0x258>
mov    $0x78,%edi
call   1030 <PutDown@plt>
cmp    $0x1,%eax
jne    12ac <Exec+0x14c>
movl   $0x1,-0x1c(%rbp)
mov    $0x78,%edi
call   1050 <CheckWin@plt>
cmp    $0x1,%eax
jne    12a7 <Exec+0x147>
mov    $0x0,%al
call   1060 <ClearScreen@plt>
mov    -0x18(%rbp),%rax
movb   $0xc,(%rax)
mov    -0x18(%rbp),%rax
movb   $0x12,0x1(%rax)
lea    -0x2e(%rbp),%rdi
call   1080 <PrintString@plt>
mov    $0x0,%al
call   1070 <ReadChar@plt>
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0xd,%eax
jne    1296 <Exec+0x136>
jmp    129b <Exec+0x13b>
jmp    127a <Exec+0x11a>
mov    $0x0,%al
call   1060 <ClearScreen@plt>
jmp    13bd <Exec+0x25d>
jmp    12ac <Exec+0x14c>
jmp    13b8 <Exec+0x258>
cmpl   $0x0,-0x1c(%rbp)
jne    12c0 <Exec+0x160>
jmp    13b8 <Exec+0x258>
mov    $0x6f,%edi
call   1030 <PutDown@plt>
cmp    $0x1,%eax
jne    133e <Exec+0x1de>
movl   $0x0,-0x1c(%rbp)
mov    $0x6f,%edi
call   1050 <CheckWin@plt>
cmp    $0x1,%eax
jne    1339 <Exec+0x1d9>
mov    $0x0,%al
call   1060 <ClearScreen@plt>
mov    -0x18(%rbp),%rax
movb   $0xc,(%rax)
mov    -0x18(%rbp),%rax
movb   $0x12,0x1(%rax)
lea    -0x34(%rbp),%rdi
call   1080 <PrintString@plt>
mov    $0x0,%al
call   1070 <ReadChar@plt>
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0xd,%eax
jne    1328 <Exec+0x1c8>
jmp    132d <Exec+0x1cd>
jmp    130c <Exec+0x1ac>
mov    $0x0,%al
call   1060 <ClearScreen@plt>
jmp    13bd <Exec+0x25d>
jmp    133e <Exec+0x1de>
jmp    13b8 <Exec+0x258>
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movb   $0x0,0x1(%rax)
movl   $0x0,-0x20(%rbp)
cmpl   $0x18,-0x20(%rbp)
jae    139f <Exec+0x23f>
movl   $0x0,-0x24(%rbp)
cmpl   $0x28,-0x24(%rbp)
jae    138c <Exec+0x22c>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    136a <Exec+0x20a>
jmp    1391 <Exec+0x231>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1359 <Exec+0x1f9>
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movb   $0x0,0x1(%rax)
jmp    13bd <Exec+0x25d>
jmp    13b8 <Exec+0x258>
jmp    11c2 <Exec+0x62>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Exec>:
push   %rbx
sub    $0x10,%rsp
movl   $0x69772078,0x4(%rsp)
69
movb   $0x6f,0xa(%rsp)
movw   $0x6e,0x8(%rsp)
xor    %eax,%eax
call   1060 <ClearScreen@plt>
movb   $0xc,0x10000
0c
movb   $0x14,0x10001
14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1070 <ReadChar@plt>
test   %al,%al
je     11a0 <Exec+0x40>
movsbl %al,%eax
cmp    $0xd,%eax
je     1260 <Exec+0x100>
cmp    $0x6f,%eax
je     11f8 <Exec+0x98>
cmp    $0x78,%eax
jne    11a0 <Exec+0x40>
cmp    $0x1,%ebx
mov    $0x1,%ebx
je     11a0 <Exec+0x40>
mov    $0x78,%edi
call   1030 <PutDown@plt>
mov    $0x0,%ebx
cmp    $0x1,%eax
jne    11a0 <Exec+0x40>
mov    $0x78,%edi
call   1050 <CheckWin@plt>
mov    $0x1,%ebx
cmp    $0x1,%eax
jne    11a0 <Exec+0x40>
jmp    142f <Exec+0x2cf>
test   %ebx,%ebx
mov    $0x0,%ebx
je     11a0 <Exec+0x40>
mov    $0x6f,%edi
call   1030 <PutDown@plt>
mov    $0x1,%ebx
cmp    $0x1,%eax
jne    11a0 <Exec+0x40>
mov    $0x6f,%edi
call   1050 <CheckWin@plt>
mov    $0x0,%ebx
cmp    $0x1,%eax
jne    11a0 <Exec+0x40>
xor    %eax,%eax
call   1060 <ClearScreen@plt>
movb   $0xc,0x10000
0c
movb   $0x12,0x10001
12
lea    0xa(%rsp),%rdi
call   1080 <PrintString@plt>
xchg   %ax,%ax
xor    %eax,%eax
call   1070 <ReadChar@plt>
cmp    $0xd,%al
jne    1250 <Exec+0xf0>
jmp    145b <Exec+0x2fb>
movb   $0x0,0x10000
movb   $0x0,0x10001
mov    $0x18,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
mov    $0x14,%edi
call   1040 <PrintChar@plt>
add    $0xffffffff,%ebx
jne    1280 <Exec+0x120>
movb   $0x0,0x10000
movb   $0x0,0x10001
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
call   1060 <ClearScreen@plt>
movb   $0xc,0x10000
0c
movb   $0x12,0x10001
12
lea    0x4(%rsp),%rdi
call   1080 <PrintString@plt>
xor    %eax,%eax
call   1070 <ReadChar@plt>
cmp    $0xd,%al
jne    1450 <Exec+0x2f0>
xor    %eax,%eax
call   1060 <ClearScreen@plt>
jmp    1429 <Exec+0x2c9>

LLVM IR (-O0):
define void @Exec(i8** %0) {
%2 = alloca i8**
%3 = alloca i8
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [6 x i8]
%10 = alloca [6 x i8]
store i8** %0, i8*** %2
store i8* inttoptr (i64 65536 to i8*), i8** %4
store i32 0, i32* %5
%11 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
store i8 120, i8* %11
%12 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 1
store i8 32, i8* %12
%13 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 2
store i8 119, i8* %13
%14 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 3
store i8 105, i8* %14
%15 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 4
store i8 110, i8* %15
%16 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 5
store i8 0, i8* %16
%17 = getelementptr inbounds [6 x i8], [6 x i8]* %10, i64 0, i64 0
store i8 111, i8* %17
%18 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 1
store i8 32, i8* %18
%19 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 2
store i8 119, i8* %19
%20 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 3
store i8 105, i8* %20
%21 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 4
store i8 110, i8* %21
%22 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 5
store i8 0, i8* %22
%23 = call i32 (...) @ClearScreen()
%24 = load i8*, i8** %4
store i8 12, i8* %24
%25 = load i8*, i8** %4
%26 = getelementptr inbounds i8, i8* %25, i64 1
store i8 20, i8* %26
br label %27
27: ; preds = %1, %119
br label %28
28: ; preds = %27, %34
%29 = call signext i8 (...) @ReadChar()
store i8 %29, i8* %3
%30 = load i8, i8* %3
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28
br label %35
34: ; preds = %28
br label %28
35: ; preds = %33
%36 = load i8, i8* %3
%37 = sext i8 %36 to i32
switch i32 %37, label %118 [
i32 120, label %38
i32 111, label %66
i32 13, label %94
]
38: ; preds = %35
%39 = load i32, i32* %5
%40 = icmp eq i32 %39, 1
br i1 %40, label %41, label %42
41: ; preds = %38
br label %119
42: ; preds = %38
%43 = call i32 @PutDown(i8 signext 120)
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %65
45: ; preds = %42
store i32 1, i32* %5
%46 = call i32 @CheckWin(i8 signext 120)
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %64
48: ; preds = %45
%49 = call i32 (...) @ClearScreen()
%50 = load i8*, i8** %4
store i8 12, i8* %50
%51 = load i8*, i8** %4
%52 = getelementptr inbounds i8, i8* %51, i64 1
store i8 18, i8* %52
%53 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%54 = call i32 @PrintString(i8* %53)
br label %55
55: ; preds = %48, %61
%56 = call signext i8 (...) @ReadChar()
store i8 %56, i8* %3
%57 = load i8, i8* %3
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 13
br i1 %59, label %60, label %61
60: ; preds = %55
br label %62
61: ; preds = %55
br label %55
62: ; preds = %60
%63 = call i32 (...) @ClearScreen()
br label %120
64: ; preds = %45
br label %65
65: ; preds = %64, %42
br label %119
66: ; preds = %35
%67 = load i32, i32* %5
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %66
br label %119
70: ; preds = %66
%71 = call i32 @PutDown(i8 signext 111)
%72 = icmp eq i32 %71, 1
br i1 %72, label %73, label %93
73: ; preds = %70
store i32 0, i32* %5
%74 = call i32 @CheckWin(i8 signext 111)
%75 = icmp eq i32 %74, 1
br i1 %75, label %76, label %92
76: ; preds = %73
%77 = call i32 (...) @ClearScreen()
%78 = load i8*, i8** %4
store i8 12, i8* %78
%79 = load i8*, i8** %4
%80 = getelementptr inbounds i8, i8* %79, i64 1
store i8 18, i8* %80
%81 = getelementptr inbounds [6 x i8], [6 x i8]* %10, i64 0, i64 0
%82 = call i32 @PrintString(i8* %81)
br label %83
83: ; preds = %76, %89
%84 = call signext i8 (...) @ReadChar()
store i8 %84, i8* %3
%85 = load i8, i8* %3
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 13
br i1 %87, label %88, label %89
88: ; preds = %83
br label %90
89: ; preds = %83
br label %83
90: ; preds = %88
%91 = call i32 (...) @ClearScreen()
br label %120
92: ; preds = %73
br label %93
93: ; preds = %92, %70
br label %119
94: ; preds = %35
%95 = load i8*, i8** %4
store i8 0, i8* %95
%96 = load i8*, i8** %4
%97 = getelementptr inbounds i8, i8* %96, i64 1
store i8 0, i8* %97
store i32 0, i32* %6
br label %98
98: ; preds = %111, %94
%99 = load i32, i32* %6
%100 = icmp ult i32 %99, 24
br i1 %100, label %101, label %114
101: ; preds = %98
store i32 0, i32* %7
br label %102
102: ; preds = %107, %101
%103 = load i32, i32* %7
%104 = icmp ult i32 %103, 40
br i1 %104, label %105, label %110
105: ; preds = %102
%106 = call i32 @PrintChar(i32 20)
br label %107
107: ; preds = %105
%108 = load i32, i32* %7
%109 = add i32 %108, 1
store i32 %109, i32* %7
br label %102
110: ; preds = %102
br label %111
111: ; preds = %110
%112 = load i32, i32* %6
%113 = add i32 %112, 1
store i32 %113, i32* %6
br label %98
114: ; preds = %98
%115 = load i8*, i8** %4
store i8 0, i8* %115
%116 = load i8*, i8** %4
%117 = getelementptr inbounds i8, i8* %116, i64 1
store i8 0, i8* %117
br label %120
118: ; preds = %35
br label %119
119: ; preds = %118, %93, %69, %65, %41
br label %27
120: ; preds = %114, %90, %62
ret void
}

LLVM IR (-O2):
define void @Exec(i8** nocapture readnone %0) {
%2 = alloca [6 x i8]
%3 = alloca [6 x i8]
%4 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
store i8 120, i8* %4
%5 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 1
%6 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 2
%7 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 3
%8 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 4
%9 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 5
%10 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
store i8 111, i8* %10
store i8 32, i8* %5
store i8 119, i8* %6
store i8 105, i8* %7
store i8 110, i8* %8
store i8 0, i8* %9
%11 = tail call i32 (...) @ClearScreen()
store i8 12, i8* inttoptr (i64 65536 to i8*)
store i8 20, i8* inttoptr (i64 65537 to i8*)
br label %12
12: ; preds = %38, %1
%13 = phi i32 [ 0, %1 ], [ %39, %38 ]
br label %14
14: ; preds = %12, %18
br label %15
15: ; preds = %15, %14
%16 = tail call signext i8 (...) @ReadChar()
%17 = icmp eq i8 %16, 0
br i1 %17, label %15, label %18
18: ; preds = %15
%19 = sext i8 %16 to i32
switch i32 %19, label %14 [
i32 120, label %20
i32 111, label %36
i32 13, label %54
]
20: ; preds = %18
%21 = icmp eq i32 %13, 1
br i1 %21, label %38, label %22
22: ; preds = %20
%23 = tail call i32 @PutDown(i8 signext 120)
%24 = icmp eq i32 %23, 1
br i1 %24, label %25, label %38
25: ; preds = %22
%26 = tail call i32 @CheckWin(i8 signext 120)
%27 = icmp eq i32 %26, 1
br i1 %27, label %28, label %38
28: ; preds = %25
%29 = tail call i32 (...) @ClearScreen()
store i8 12, i8* inttoptr (i64 65536 to i8*)
store i8 18, i8* inttoptr (i64 65537 to i8*)
%30 = call i32 @PrintString(i8* %4)
br label %31
31: ; preds = %31, %28
%32 = call signext i8 (...) @ReadChar()
%33 = icmp eq i8 %32, 13
br i1 %33, label %34, label %31
34: ; preds = %31
%35 = call i32 (...) @ClearScreen()
br label %100
36: ; preds = %18
%37 = icmp eq i32 %13, 0
br i1 %37, label %38, label %40
38: ; preds = %36, %43, %40, %20, %25, %22
%39 = phi i32 [ 0, %22 ], [ 1, %25 ], [ 1, %20 ], [ 1, %40 ], [ 0, %43 ], [ 0, %36 ]
br label %12
40: ; preds = %36
%41 = tail call i32 @PutDown(i8 signext 111)
%42 = icmp eq i32 %41, 1
br i1 %42, label %43, label %38
43: ; preds = %40
%44 = tail call i32 @CheckWin(i8 signext 111)
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %38
46: ; preds = %43
%47 = tail call i32 (...) @ClearScreen()
store i8 12, i8* inttoptr (i64 65536 to i8*)
store i8 18, i8* inttoptr (i64 65537 to i8*)
%48 = call i32 @PrintString(i8* %10)
br label %49
49: ; preds = %49, %46
%50 = call signext i8 (...) @ReadChar()
%51 = icmp eq i8 %50, 13
br i1 %51, label %52, label %49
52: ; preds = %49
%53 = call i32 (...) @ClearScreen()
br label %100
54: ; preds = %18
store i8 0, i8* inttoptr (i64 65536 to i8*)
store i8 0, i8* inttoptr (i64 65537 to i8*)
br label %55
55: ; preds = %54, %55
%56 = phi i32 [ 0, %54 ], [ %97, %55 ]
%57 = tail call i32 @PrintChar(i32 20)
%58 = tail call i32 @PrintChar(i32 20)
%59 = tail call i32 @PrintChar(i32 20)
%60 = tail call i32 @PrintChar(i32 20)
%61 = tail call i32 @PrintChar(i32 20)
%62 = tail call i32 @PrintChar(i32 20)
%63 = tail call i32 @PrintChar(i32 20)
%64 = tail call i32 @PrintChar(i32 20)
%65 = tail call i32 @PrintChar(i32 20)
%66 = tail call i32 @PrintChar(i32 20)
%67 = tail call i32 @PrintChar(i32 20)
%68 = tail call i32 @PrintChar(i32 20)
%69 = tail call i32 @PrintChar(i32 20)
%70 = tail call i32 @PrintChar(i32 20)
%71 = tail call i32 @PrintChar(i32 20)
%72 = tail call i32 @PrintChar(i32 20)
%73 = tail call i32 @PrintChar(i32 20)
%74 = tail call i32 @PrintChar(i32 20)
%75 = tail call i32 @PrintChar(i32 20)
%76 = tail call i32 @PrintChar(i32 20)
%77 = tail call i32 @PrintChar(i32 20)
%78 = tail call i32 @PrintChar(i32 20)
%79 = tail call i32 @PrintChar(i32 20)
%80 = tail call i32 @PrintChar(i32 20)
%81 = tail call i32 @PrintChar(i32 20)
%82 = tail call i32 @PrintChar(i32 20)
%83 = tail call i32 @PrintChar(i32 20)
%84 = tail call i32 @PrintChar(i32 20)
%85 = tail call i32 @PrintChar(i32 20)
%86 = tail call i32 @PrintChar(i32 20)
%87 = tail call i32 @PrintChar(i32 20)
%88 = tail call i32 @PrintChar(i32 20)
%89 = tail call i32 @PrintChar(i32 20)
%90 = tail call i32 @PrintChar(i32 20)
%91 = tail call i32 @PrintChar(i32 20)
%92 = tail call i32 @PrintChar(i32 20)
%93 = tail call i32 @PrintChar(i32 20)
%94 = tail call i32 @PrintChar(i32 20)
%95 = tail call i32 @PrintChar(i32 20)
%96 = tail call i32 @PrintChar(i32 20)
%97 = add nuw nsw i32 %56, 1
%98 = icmp eq i32 %97, 24
br i1 %98, label %99, label %55
99: ; preds = %55
store i8 0, i8* inttoptr (i64 65536 to i8*)
store i8 0, i8* inttoptr (i64 65537 to i8*)
br label %100
100: ; preds = %99, %52, %34
ret void
}