#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*/ draw_guessword(char *, int);
int /*<<< orphan*/ draw_hangman(char *, int);
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ printf(char *, ...);
int play_hangman(char localword[6], int wordlength) {
  int numberofguesses = 1;
  char partialword[6];
  char guessedchars[256];
  char onechar;
  int numberofchar = 0;
  int index;
  int found;
  int countfound = 0;
  int reprompt = 0;
  for (index = 0; index < wordlength; index++) {
    partialword[index] = '-';
  }
  while (numberofguesses <= 10) {
    draw_hangman(partialword, wordlength);
    numberofchar++;
    reprompt = 0;
    while (reprompt == 0) {
      printf("Guess a character? ");
      gets(&onechar);
      for (index = 0; index < numberofchar; index++) {
        if (onechar == guessedchars[index]) {
          printf("You already used the character %c, please enter a new one.\n",
                 onechar);
        } else {
          reprompt = 1;
        }
      }
    }
    guessedchars[numberofchar] = onechar;
    draw_guessword(guessedchars, numberofchar);
    found = 0;
    for (index = 0; index < 6; index++) {
      if (onechar == localword[index]) {
        partialword[index] = onechar;
        localword[index] = '@';
        found = 1;
        countfound++;
        if (countfound == wordlength)
          numberofguesses = 99;
      }
    }
    if (found == 0) {
      numberofguesses++;
      printf("Incorrect guess: %d\n", numberofguesses);
    }
  }
  return numberofguesses;
}


x86 assembly (clang, -O0):
<play_hangman>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x0,-0x128(%rbp)
movl   $0x0,-0x134(%rbp)
movl   $0x0,-0x138(%rbp)
movl   $0x0,-0x12c(%rbp)
mov    -0x12c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11b0 <play_hangman+0x70>
movslq -0x12c(%rbp),%rax
movb   $0x2d,-0x16(%rbp,%rax,1)
mov    -0x12c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x12c(%rbp)
jmp    1181 <play_hangman+0x41>
jmp    11b5 <play_hangman+0x75>
cmpl   $0xa,-0x10(%rbp)
jg     1385 <play_hangman+0x245>
lea    -0x16(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1050 <draw_hangman@plt>
mov    -0x128(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x128(%rbp)
movl   $0x0,-0x138(%rbp)
cmpl   $0x0,-0x138(%rbp)
jne    1287 <play_hangman+0x147>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x121(%rbp),%rdi
call   1040 <gets@plt>
movl   $0x0,-0x12c(%rbp)
mov    -0x12c(%rbp),%eax
cmp    -0x128(%rbp),%eax
jge    1282 <play_hangman+0x142>
movsbl -0x121(%rbp),%eax
movslq -0x12c(%rbp),%rcx
movsbl -0x120(%rbp,%rcx,1),%ecx
ff
cmp    %ecx,%eax
jne    125f <play_hangman+0x11f>
movsbl -0x121(%rbp),%esi
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1269 <play_hangman+0x129>
movl   $0x1,-0x138(%rbp)
jmp    126e <play_hangman+0x12e>
mov    -0x12c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x12c(%rbp)
jmp    1215 <play_hangman+0xd5>
jmp    11e4 <play_hangman+0xa4>
mov    -0x121(%rbp),%cl
movslq -0x128(%rbp),%rax
mov    %cl,-0x120(%rbp,%rax,1)
lea    -0x120(%rbp),%rdi
mov    -0x128(%rbp),%esi
call   1060 <draw_guessword@plt>
movl   $0x0,-0x130(%rbp)
movl   $0x0,-0x12c(%rbp)
cmpl   $0x6,-0x12c(%rbp)
jge    1359 <play_hangman+0x219>
movsbl -0x121(%rbp),%eax
mov    -0x8(%rbp),%rcx
movslq -0x12c(%rbp),%rdx
movsbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
jne    1340 <play_hangman+0x200>
mov    -0x121(%rbp),%cl
movslq -0x12c(%rbp),%rax
mov    %cl,-0x16(%rbp,%rax,1)
mov    -0x8(%rbp),%rax
movslq -0x12c(%rbp),%rcx
movb   $0x40,(%rax,%rcx,1)
movl   $0x1,-0x130(%rbp)
mov    -0x134(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x134(%rbp)
mov    -0x134(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    133b <play_hangman+0x1fb>
movl   $0x63,-0x10(%rbp)
jmp    1340 <play_hangman+0x200>
jmp    1345 <play_hangman+0x205>
mov    -0x12c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x12c(%rbp)
jmp    12c1 <play_hangman+0x181>
cmpl   $0x0,-0x130(%rbp)
jne    1380 <play_hangman+0x240>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b5 <play_hangman+0x75>
mov    -0x10(%rbp),%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<play_hangman>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    %esi,%r13d
mov    %rdi,%rbx
test   %esi,%esi
jle    117d <play_hangman+0x2d>
mov    %r13d,%edx
lea    0xa(%rsp),%rdi
mov    $0x2d,%esi
call   1040 <memset@plt>
mov    $0x1,%ebp
lea    0xe8b(%rip),%r15
xor    %r14d,%r14d
xor    %eax,%eax
mov    %rax,0x18(%rsp)
xor    %r12d,%r12d
mov    %r13d,0x10(%rsp)
jmp    11c2 <play_hangman+0x72>
nopl   (%rax)
mov    %al,0xf(%rsp)
movb   $0x40,0x5(%rbx)
add    $0x1,%r12d
cmp    %r13d,%r12d
je     1378 <play_hangman+0x228>
add    $0xffffffffffffffff,%r14
cmp    $0xb,%ebp
jge    137d <play_hangman+0x22d>
mov    %ebp,0x14(%rsp)
lea    0xa(%rsp),%rdi
mov    %r13d,%esi
call   1060 <draw_hangman@plt>
jmp    11e6 <play_hangman+0x96>
cs nopw 0x0(%rax,%rax,1)
nop
test   $0x1,%r13b
je     124d <play_hangman+0xfd>
lea    0xe13(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x9(%rsp),%rdi
call   1050 <gets@plt>
mov    $0x1,%r13b
xor    %ebp,%ebp
add    $0x1,%rbp
nopw   0x0(%rax,%rax,1)
movsbl 0x9(%rsp),%esi
cmp    0x1f(%rsp,%rbp,1),%sil
jne    1240 <play_hangman+0xf0>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    (%r14,%rbp,1),%rax
add    $0x1,%rax
add    $0x1,%rbp
cmp    $0x2,%rax
jne    1210 <play_hangman+0xc0>
jmp    11e0 <play_hangman+0x90>
nopw   0x0(%rax,%rax,1)
lea    (%r14,%rbp,1),%rax
xor    %r13d,%r13d
cmp    $0x1,%rax
jne    1203 <play_hangman+0xb3>
mov    0x9(%rsp),%al
mov    0x18(%rsp),%rsi
mov    %al,0x21(%rsp,%rsi,1)
add    $0x1,%rsi
lea    0x20(%rsp),%rdi
mov    %rsi,0x18(%rsp)
call   1070 <draw_guessword@plt>
mov    0x9(%rsp),%al
xor    %ecx,%ecx
cmp    (%rbx),%al
jne    12b0 <play_hangman+0x160>
mov    %al,0xa(%rsp)
movb   $0x40,(%rbx)
add    $0x1,%r12d
mov    0x10(%rsp),%r13d
cmp    %r13d,%r12d
mov    0x14(%rsp),%ebp
mov    $0x63,%edx
cmove  %edx,%ebp
mov    $0x1,%ecx
cmp    0x1(%rbx),%al
je     12c3 <play_hangman+0x173>
jmp    12da <play_hangman+0x18a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x10(%rsp),%r13d
mov    0x14(%rsp),%ebp
mov    $0x63,%edx
cmp    0x1(%rbx),%al
jne    12da <play_hangman+0x18a>
mov    %al,0xb(%rsp)
movb   $0x40,0x1(%rbx)
add    $0x1,%r12d
cmp    %r13d,%r12d
cmove  %edx,%ebp
mov    $0x1,%ecx
cmp    0x2(%rbx),%al
je     1300 <play_hangman+0x1b0>
cmp    0x3(%rbx),%al
je     131c <play_hangman+0x1cc>
cmp    0x4(%rbx),%al
je     1338 <play_hangman+0x1e8>
cmp    0x5(%rbx),%al
je     11a0 <play_hangman+0x50>
jmp    1358 <play_hangman+0x208>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %al,0xc(%rsp)
movb   $0x40,0x2(%rbx)
add    $0x1,%r12d
cmp    %r13d,%r12d
cmove  %edx,%ebp
mov    $0x1,%ecx
cmp    0x3(%rbx),%al
jne    12e4 <play_hangman+0x194>
mov    %al,0xd(%rsp)
movb   $0x40,0x3(%rbx)
add    $0x1,%r12d
cmp    %r13d,%r12d
cmove  %edx,%ebp
mov    $0x1,%ecx
cmp    0x4(%rbx),%al
jne    12e9 <play_hangman+0x199>
mov    %al,0xe(%rsp)
movb   $0x40,0x4(%rbx)
add    $0x1,%r12d
cmp    %r13d,%r12d
cmove  %edx,%ebp
mov    $0x1,%ecx
cmp    0x5(%rbx),%al
je     11a0 <play_hangman+0x50>
test   %ecx,%ecx
jne    11b5 <play_hangman+0x65>
add    $0x1,%ebp
lea    0xce6(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11b5 <play_hangman+0x65>
mov    $0x63,%ebp
mov    %ebp,%eax
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Guess a character? \00"
@.str.1 = [60 x i8] c"You already used the character %c, please enter a new one.\0A\00"
@.str.2 = [21 x i8] c"Incorrect guess: %d\0A\00"
define i32 @play_hangman(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca [6 x i8]
%7 = alloca [256 x i8]
%8 = alloca i8
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
store i32 1, i32* %5
store i32 0, i32* %9
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %10
br label %14
14: ; preds = %22, %2
%15 = load i32, i32* %10
%16 = load i32, i32* %4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = load i32, i32* %10
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [6 x i8], [6 x i8]* %6, i64 0, i64 %20
store i8 45, i8* %21
br label %22
22: ; preds = %18
%23 = load i32, i32* %10
%24 = add nsw i32 %23, 1
store i32 %24, i32* %10
br label %14
25: ; preds = %14
br label %26
26: ; preds = %113, %25
%27 = load i32, i32* %5
%28 = icmp sle i32 %27, 10
br i1 %28, label %29, label %114
29: ; preds = %26
%30 = getelementptr inbounds [6 x i8], [6 x i8]* %6, i64 0, i64 0
%31 = load i32, i32* %4
%32 = call i32 @draw_hangman(i8* %30, i32 %31)
%33 = load i32, i32* %9
%34 = add nsw i32 %33, 1
store i32 %34, i32* %9
store i32 0, i32* %13
br label %35
35: ; preds = %63, %29
%36 = load i32, i32* %13
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %64
38: ; preds = %35
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%40 = call i32 @gets(i8* %8)
store i32 0, i32* %10
br label %41
41: ; preds = %60, %38
%42 = load i32, i32* %10
%43 = load i32, i32* %9
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %63
45: ; preds = %41
%46 = load i8, i8* %8
%47 = sext i8 %46 to i32
%48 = load i32, i32* %10
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %49
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %47, %52
br i1 %53, label %54, label %58
54: ; preds = %45
%55 = load i8, i8* %8
%56 = sext i8 %55 to i32
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i32 %56)
br label %59
58: ; preds = %45
store i32 1, i32* %13
br label %59
59: ; preds = %58, %54
br label %60
60: ; preds = %59
%61 = load i32, i32* %10
%62 = add nsw i32 %61, 1
store i32 %62, i32* %10
br label %41
63: ; preds = %41
br label %35
64: ; preds = %35
%65 = load i8, i8* %8
%66 = load i32, i32* %9
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %67
store i8 %65, i8* %68
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%70 = load i32, i32* %9
%71 = call i32 @draw_guessword(i8* %69, i32 %70)
store i32 0, i32* %11
store i32 0, i32* %10
br label %72
72: ; preds = %102, %64
%73 = load i32, i32* %10
%74 = icmp slt i32 %73, 6
br i1 %74, label %75, label %105
75: ; preds = %72
%76 = load i8, i8* %8
%77 = sext i8 %76 to i32
%78 = load i8*, i8** %3
%79 = load i32, i32* %10
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, i8* %78, i64 %80
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %77, %83
br i1 %84, label %85, label %101
85: ; preds = %75
%86 = load i8, i8* %8
%87 = load i32, i32* %10
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [6 x i8], [6 x i8]* %6, i64 0, i64 %88
store i8 %86, i8* %89
%90 = load i8*, i8** %3
%91 = load i32, i32* %10
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, i8* %90, i64 %92
store i8 64, i8* %93
store i32 1, i32* %11
%94 = load i32, i32* %12
%95 = add nsw i32 %94, 1
store i32 %95, i32* %12
%96 = load i32, i32* %12
%97 = load i32, i32* %4
%98 = icmp eq i32 %96, %97
br i1 %98, label %99, label %100
99: ; preds = %85
store i32 99, i32* %5
br label %100
100: ; preds = %99, %85
br label %101
101: ; preds = %100, %75
br label %102
102: ; preds = %101
%103 = load i32, i32* %10
%104 = add nsw i32 %103, 1
store i32 %104, i32* %10
br label %72
105: ; preds = %72
%106 = load i32, i32* %11
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %113
108: ; preds = %105
%109 = load i32, i32* %5
%110 = add nsw i32 %109, 1
store i32 %110, i32* %5
%111 = load i32, i32* %5
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %111)
br label %113
113: ; preds = %108, %105
br label %26
114: ; preds = %26
%115 = load i32, i32* %5
ret i32 %115
}

LLVM IR (-O2):
@.str = [20 x i8] c"Guess a character? \00"
@.str.1 = [60 x i8] c"You already used the character %c, please enter a new one.\0A\00"
@.str.2 = [21 x i8] c"Incorrect guess: %d\0A\00"
define i32 @play_hangman(i8* nocapture %0, i32 %1) {
%3 = alloca [6 x i8]
%4 = alloca [256 x i8]
%5 = alloca i8
%6 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%8 = icmp sgt i32 %1, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%11 = zext i32 %1 to i64
br label %12
12: ; preds = %9, %2
%13 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 5
%14 = getelementptr inbounds i8, i8* %0, i64 1
%15 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 1
%16 = getelementptr inbounds i8, i8* %0, i64 2
%17 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 2
%18 = getelementptr inbounds i8, i8* %0, i64 3
%19 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 3
%20 = getelementptr inbounds i8, i8* %0, i64 4
%21 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 4
%22 = getelementptr inbounds i8, i8* %0, i64 5
br label %23
23: ; preds = %12, %117
%24 = phi i64 [ 0, %12 ], [ %51, %117 ]
%25 = phi i64 [ 1, %12 ], [ %121, %117 ]
%26 = phi i32 [ 0, %12 ], [ %118, %117 ]
%27 = phi i32 [ 1, %12 ], [ %119, %117 ]
%28 = call i32 @draw_hangman(i8* %6, i32 %1)
br label %30
29: ; preds = %42
br i1 %35, label %30, label %50
30: ; preds = %23, %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%32 = call i32 @gets(i8* %5)
br label %33
33: ; preds = %47, %30
%34 = phi i64 [ %48, %47 ], [ 0, %30 ]
%35 = phi i1 [ false, %47 ], [ true, %30 ]
br label %36
36: ; preds = %33, %42
%37 = phi i64 [ %45, %42 ], [ %34, %33 ]
%38 = load i8, i8* %5
%39 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 %37
%40 = load i8, i8* %39
%41 = icmp eq i8 %38, %40
br i1 %41, label %42, label %47
42: ; preds = %36
%43 = sext i8 %38 to i32
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i32 %43)
%45 = add nuw nsw i64 %37, 1
%46 = icmp eq i64 %45, %25
br i1 %46, label %29, label %36
47: ; preds = %36
%48 = add nuw nsw i64 %37, 1
%49 = icmp eq i64 %48, %25
br i1 %49, label %50, label %33
50: ; preds = %29, %47
%51 = add nuw i64 %24, 1
%52 = load i8, i8* %5
%53 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 %51
store i8 %52, i8* %53
%54 = trunc i64 %51 to i32
%55 = call i32 @draw_guessword(i8* %7, i32 %54)
%56 = load i8, i8* %5
%57 = load i8, i8* %0
%58 = icmp eq i8 %56, %57
br i1 %58, label %59, label %63
59: ; preds = %50
store i8 %56, i8* %6
store i8 64, i8* %0
%60 = add nsw i32 %26, 1
%61 = icmp eq i32 %60, %1
%62 = select i1 %61, i32 99, i32 %27
br label %63
63: ; preds = %59, %50
%64 = phi i32 [ %27, %50 ], [ %62, %59 ]
%65 = phi i32 [ 0, %50 ], [ 1, %59 ]
%66 = phi i32 [ %26, %50 ], [ %60, %59 ]
%67 = load i8, i8* %14
%68 = icmp eq i8 %56, %67
br i1 %68, label %69, label %73
69: ; preds = %63
store i8 %56, i8* %15
store i8 64, i8* %14
%70 = add nsw i32 %66, 1
%71 = icmp eq i32 %70, %1
%72 = select i1 %71, i32 99, i32 %64
br label %73
73: ; preds = %69, %63
%74 = phi i32 [ %64, %63 ], [ %72, %69 ]
%75 = phi i32 [ %65, %63 ], [ 1, %69 ]
%76 = phi i32 [ %66, %63 ], [ %70, %69 ]
%77 = load i8, i8* %16
%78 = icmp eq i8 %56, %77
br i1 %78, label %79, label %83
79: ; preds = %73
store i8 %56, i8* %17
store i8 64, i8* %16
%80 = add nsw i32 %76, 1
%81 = icmp eq i32 %80, %1
%82 = select i1 %81, i32 99, i32 %74
br label %83
83: ; preds = %79, %73
%84 = phi i32 [ %74, %73 ], [ %82, %79 ]
%85 = phi i32 [ %75, %73 ], [ 1, %79 ]
%86 = phi i32 [ %76, %73 ], [ %80, %79 ]
%87 = load i8, i8* %18
%88 = icmp eq i8 %56, %87
br i1 %88, label %89, label %93
89: ; preds = %83
store i8 %56, i8* %19
store i8 64, i8* %18
%90 = add nsw i32 %86, 1
%91 = icmp eq i32 %90, %1
%92 = select i1 %91, i32 99, i32 %84
br label %93
93: ; preds = %89, %83
%94 = phi i32 [ %84, %83 ], [ %92, %89 ]
%95 = phi i32 [ %85, %83 ], [ 1, %89 ]
%96 = phi i32 [ %86, %83 ], [ %90, %89 ]
%97 = load i8, i8* %20
%98 = icmp eq i8 %56, %97
br i1 %98, label %99, label %103
99: ; preds = %93
store i8 %56, i8* %21
store i8 64, i8* %20
%100 = add nsw i32 %96, 1
%101 = icmp eq i32 %100, %1
%102 = select i1 %101, i32 99, i32 %94
br label %103
103: ; preds = %99, %93
%104 = phi i32 [ %94, %93 ], [ %102, %99 ]
%105 = phi i32 [ %95, %93 ], [ 1, %99 ]
%106 = phi i32 [ %96, %93 ], [ %100, %99 ]
%107 = load i8, i8* %22
%108 = icmp eq i8 %56, %107
br i1 %108, label %109, label %112
109: ; preds = %103
store i8 %56, i8* %13
store i8 64, i8* %22
%110 = add nsw i32 %106, 1
%111 = icmp eq i32 %110, %1
br i1 %111, label %122, label %117
112: ; preds = %103
%113 = icmp eq i32 %105, 0
br i1 %113, label %114, label %117
114: ; preds = %112
%115 = add nsw i32 %104, 1
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %115)
br label %117
117: ; preds = %109, %114, %112
%118 = phi i32 [ %106, %114 ], [ %106, %112 ], [ %110, %109 ]
%119 = phi i32 [ %115, %114 ], [ %104, %112 ], [ %104, %109 ]
%120 = icmp slt i32 %119, 11
%121 = add nuw i64 %25, 1
br i1 %120, label %23, label %122
122: ; preds = %109, %117
%123 = phi i32 [ %119, %117 ], [ 99, %109 ]
ret i32 %123
}