#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*/ FlushInput();
int RandomInt(int, int);
int atoi(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/);
int main(int argc, char **argv) {
  int low, high, input, num, guess, lowerBound, upperBound, tries;
  if (argc < 2) {
    printf("Usage: %s low high\n"
           "       low  - the lower bound\n"
           "       high - the upper bound\n\n",
           argv[0]);
    return -1;
  }
  printf("Welcome to the Guessing Game!\n");
  low = atoi(argv[1]);
  high = atoi(argv[2]);
  srand((unsigned)time(0));
  do {
    lowerBound = low - 1;
    upperBound = high + 1;
    tries = 0;
    do {
      printf("Who shall pick a number? (%d=player, %d=computer, %d=quit) ", 1,
             2, 0);
      scanf("%d", &input);
      FlushInput();
    } while (input != 1 && input != 2 && input != 0);
    if (input == 1) {
      do {
        printf("Pick a number for me to guess (between %d and %d, %d=quit): ",
               low, high, 0);
        scanf("%d", &input);
        FlushInput();
      } while (input != 0 && (input < low || input > high));
      if (input != 0) {
        num = input;
        do {
          guess = (upperBound - lowerBound) / 2 + lowerBound;
          tries++;
          printf("Is the number %d? (%d=too low, %d=too high, %d=correct, "
                 "%d=quit) ",
                 guess, 1, 2, 3, 0);
          do {
            scanf("%d", &input);
            FlushInput();
          } while (input != 1 && input != 2 && input != 3 && input != 0);
          switch (input) {
          case 1:
            if (guess == num)
              printf("What? You think you can get away with that?\n");
            else
              lowerBound = guess;
            break;
          case 2:
            if (guess == num)
              printf("What? You think you can get away with that?\n");
            else
              upperBound = guess;
            break;
          case 3:
            if (guess != num) {
              printf("(Hey! I know I didn't really guess it yet.)\n");
              guess = num;
            }
            break;
          default:
            break;
          }
        } while (guess != num && input != 0);
      }
      if (input != 0) {
        printf("I guessed your number in %d ", tries);
        if (tries == 1) {
          printf("guess!\n");
        } else {
          printf("guesses!\n");
        }
      }
    } else if (input == 2) {
      num = RandomInt(low, high);
      printf("Guess the number I'm thinking of (between %d and %d, %d=quit): ",
             low, high, 0);
      scanf("%d", &input);
      FlushInput();
      tries++;
      while (input != num && input != 0) {
        if (input < num) {
          printf("Too low. ");
        } else {
          printf("Too high. ");
        }
        printf("Guess again: ");
        scanf("%d", &input);
        FlushInput();
        tries++;
      }
      if (input != 0) {
        printf("You guessed the number in %d ", tries);
        if (tries == 1) {
          printf("try!\n");
        } else {
          printf("tries!\n");
        }
      }
    }
    if (input != 0) {
      printf("Play again? (%d=yes, %d=no) ", 1, 0);
      scanf("%d", &input);
      FlushInput();
    }
  } while (input != 0);
  printf("Bye.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11b1 <main+0x41>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1649 <main+0x4d9>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x18(%rbp)
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
lea    0xe63(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe85(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1080 <scanf@plt>
mov    $0x0,%al
call   1070 <FlushInput@plt>
xor    %eax,%eax
cmpl   $0x1,-0x1c(%rbp)
mov    %al,-0x31(%rbp)
je     125f <main+0xef>
xor    %eax,%eax
cmpl   $0x2,-0x1c(%rbp)
mov    %al,-0x31(%rbp)
je     125f <main+0xef>
cmpl   $0x0,-0x1c(%rbp)
setne  %al
mov    %al,-0x31(%rbp)
mov    -0x31(%rbp),%al
test   $0x1,%al
jne    1206 <main+0x96>
cmpl   $0x1,-0x1c(%rbp)
jne    14c1 <main+0x351>
jmp    1279 <main+0x109>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe29(%rip),%rdi
xor    %ecx,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe16(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1080 <scanf@plt>
mov    $0x0,%al
call   1070 <FlushInput@plt>
xor    %eax,%eax
cmpl   $0x0,-0x1c(%rbp)
mov    %al,-0x32(%rbp)
je     12d8 <main+0x168>
mov    -0x1c(%rbp),%ecx
mov    $0x1,%al
cmp    -0x14(%rbp),%ecx
mov    %al,-0x33(%rbp)
jl     12d2 <main+0x162>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
setg   %al
mov    %al,-0x33(%rbp)
mov    -0x33(%rbp),%al
mov    %al,-0x32(%rbp)
mov    -0x32(%rbp),%al
test   $0x1,%al
jne    1279 <main+0x109>
cmpl   $0x0,-0x1c(%rbp)
je     1471 <main+0x301>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x2c(%rbp),%eax
sub    -0x28(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    -0x28(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x24(%rbp),%esi
lea    0xdd2(%rip),%rdi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
xor    %r9d,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd71(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1080 <scanf@plt>
mov    $0x0,%al
call   1070 <FlushInput@plt>
xor    %eax,%eax
cmpl   $0x1,-0x1c(%rbp)
mov    %al,-0x34(%rbp)
je     1382 <main+0x212>
xor    %eax,%eax
cmpl   $0x2,-0x1c(%rbp)
mov    %al,-0x34(%rbp)
je     1382 <main+0x212>
xor    %eax,%eax
cmpl   $0x3,-0x1c(%rbp)
mov    %al,-0x34(%rbp)
je     1382 <main+0x212>
cmpl   $0x0,-0x1c(%rbp)
setne  %al
mov    %al,-0x34(%rbp)
mov    -0x34(%rbp),%al
test   $0x1,%al
jne    1334 <main+0x1c4>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x38(%rbp)
sub    $0x1,%eax
je     13c3 <main+0x253>
jmp    13a1 <main+0x231>
mov    -0x38(%rbp),%eax
sub    $0x2,%eax
je     13ed <main+0x27d>
jmp    13b2 <main+0x242>
mov    -0x38(%rbp),%eax
sub    $0x3,%eax
je     1417 <main+0x2a7>
jmp    143c <main+0x2cc>
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jne    13e2 <main+0x272>
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13e8 <main+0x278>
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    1441 <main+0x2d1>
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jne    140c <main+0x29c>
lea    0xd2e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1412 <main+0x2a2>
mov    -0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    1441 <main+0x2d1>
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     1437 <main+0x2c7>
lea    0xd31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    1441 <main+0x2d1>
jmp    1441 <main+0x2d1>
jmp    1446 <main+0x2d6>
mov    -0x24(%rbp),%ecx
xor    %eax,%eax
cmp    -0x20(%rbp),%ecx
mov    %al,-0x39(%rbp)
je     1461 <main+0x2f1>
cmpl   $0x0,-0x1c(%rbp)
setne  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    12f3 <main+0x183>
jmp    1471 <main+0x301>
cmpl   $0x0,-0x1c(%rbp)
je     14bc <main+0x34c>
mov    -0x30(%rbp),%esi
lea    0xd03(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x30(%rbp)
jne    14a9 <main+0x339>
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14b7 <main+0x347>
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14bc <main+0x34c>
jmp    15ef <main+0x47f>
cmpl   $0x2,-0x1c(%rbp)
jne    15ea <main+0x47a>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1030 <RandomInt@plt>
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xcd1(%rip),%rdi
xor    %ecx,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbb6(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1080 <scanf@plt>
mov    $0x0,%al
call   1070 <FlushInput@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x1c(%rbp),%ecx
xor    %eax,%eax
cmp    -0x20(%rbp),%ecx
mov    %al,-0x3a(%rbp)
je     152a <main+0x3ba>
cmpl   $0x0,-0x1c(%rbp)
setne  %al
mov    %al,-0x3a(%rbp)
mov    -0x3a(%rbp),%al
test   $0x1,%al
jne    153a <main+0x3ca>
jmp    159a <main+0x42a>
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1559 <main+0x3e9>
lea    0xcaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1567 <main+0x3f7>
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb30(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1080 <scanf@plt>
mov    $0x0,%al
call   1070 <FlushInput@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    150f <main+0x39f>
cmpl   $0x0,-0x1c(%rbp)
je     15e5 <main+0x475>
mov    -0x30(%rbp),%esi
lea    0xc6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x30(%rbp)
jne    15d2 <main+0x462>
lea    0xc72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15e0 <main+0x470>
lea    0xc65(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15e5 <main+0x475>
jmp    15ea <main+0x47a>
jmp    15ef <main+0x47f>
cmpl   $0x0,-0x1c(%rbp)
je     1625 <main+0x4b5>
lea    0xc46(%rip),%rdi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xa97(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1080 <scanf@plt>
mov    $0x0,%al
call   1070 <FlushInput@plt>
jmp    162a <main+0x4ba>
cmpl   $0x0,-0x1c(%rbp)
jne    11ed <main+0x7d>
lea    0xc28(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     11b1 <main+0x31>
mov    (%rbx),%rsi
lea    0xe60(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%eax
jmp    14f0 <main+0x370>
lea    0x1012(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%rbx),%rdi
call   10a0 <atoi@plt>
mov    %eax,%r14d
mov    0x10(%rbx),%rdi
call   10a0 <atoi@plt>
mov    %eax,%ebp
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
lea    -0x1(%r14),%eax
mov    %eax,0xc(%rsp)
lea    0x1(%rbp),%eax
mov    %eax,0x8(%rsp)
lea    0xe95(%rip),%r13
mov    %rsp,%rbx
lea    0xe8e(%rip),%r15
mov    %rbp,0x18(%rsp)
nopw   0x0(%rax,%rax,1)
lea    0xe3a(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1090 <scanf@plt>
xor    %eax,%eax
call   1080 <FlushInput@plt>
mov    (%rsp),%eax
cmp    $0x2,%eax
ja     1210 <main+0x90>
je     1380 <main+0x200>
cmp    $0x1,%eax
jne    14e2 <main+0x362>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %ebp,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1090 <scanf@plt>
xor    %eax,%eax
call   1080 <FlushInput@plt>
mov    (%rsp),%r12d
test   %r12d,%r12d
je     14e2 <main+0x362>
cmp    %r14d,%r12d
jl     1260 <main+0xe0>
cmp    %ebp,%r12d
jg     1260 <main+0xe0>
mov    %r14,0x10(%rsp)
xor    %r15d,%r15d
mov    0xc(%rsp),%r14d
mov    0x8(%rsp),%eax
mov    %eax,0x4(%rsp)
nop
mov    0x4(%rsp),%eax
sub    %r14d,%eax
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
sar    %ebp
add    %r14d,%ebp
lea    0xe03(%rip),%rdi
mov    %ebp,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1050 <printf@plt>
cs nopw 0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %rbx,%rsi
call   1090 <scanf@plt>
xor    %eax,%eax
call   1080 <FlushInput@plt>
mov    (%rsp),%eax
cmp    $0x3,%eax
ja     12f0 <main+0x170>
mov    %r15,%rcx
mov    %r15,0x20(%rsp)
add    $0x1,%r15d
cmp    $0x3,%eax
je     1330 <main+0x1b0>
cmp    $0x2,%eax
je     1340 <main+0x1c0>
cmp    $0x1,%eax
jne    1360 <main+0x1e0>
cmp    %r12d,%ebp
je     1345 <main+0x1c5>
mov    %ebp,%r14d
jmp    1360 <main+0x1e0>
nop
cmp    %r12d,%ebp
je     1360 <main+0x1e0>
jmp    145a <main+0x2da>
nopw   0x0(%rax,%rax,1)
cmp    %r12d,%ebp
jne    1353 <main+0x1d3>
lea    0xee9(%rip),%rdi
call   1040 <puts@plt>
jmp    1360 <main+0x1e0>
mov    %ebp,0x4(%rsp)
nopw   0x0(%rax,%rax,1)
mov    (%rsp),%eax
cmp    %r12d,%ebp
je     1469 <main+0x2e9>
test   %eax,%eax
jne    12b0 <main+0x130>
jmp    1469 <main+0x2e9>
nopl   0x0(%rax)
mov    %r14d,%edi
mov    %ebp,%esi
call   1030 <RandomInt@plt>
mov    %eax,%r15d
lea    0xd98(%rip),%rdi
mov    %r14d,%esi
mov    %ebp,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1090 <scanf@plt>
xor    %eax,%eax
call   1080 <FlushInput@plt>
mov    (%rsp),%eax
cmp    %r15d,%eax
je     1436 <main+0x2b6>
test   %eax,%eax
je     1436 <main+0x2b6>
mov    $0x1,%ebp
lea    0xda0(%rip),%r12
nopl   0x0(%rax)
mov    %r12,%rdi
cmp    %r15d,%eax
jl     13df <main+0x25f>
lea    0xd97(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd94(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1090 <scanf@plt>
xor    %eax,%eax
call   1080 <FlushInput@plt>
add    $0x1,%ebp
mov    (%rsp),%eax
cmp    %r15d,%eax
je     1415 <main+0x295>
test   %eax,%eax
jne    13d0 <main+0x250>
test   %eax,%eax
je     14e2 <main+0x362>
lea    0xd6b(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdb9(%rip),%rdi
jmp    149a <main+0x31a>
test   %eax,%eax
je     14e2 <main+0x362>
lea    0xd4a(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd9c(%rip),%rdi
jmp    149a <main+0x31a>
lea    0xda8(%rip),%rdi
call   1040 <puts@plt>
mov    (%rsp),%eax
test   %eax,%eax
mov    0x10(%rsp),%r14
je     149f <main+0x31f>
lea    0xc96(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x20(%rsp)
lea    0xd6a(%rip),%rdi
lea    0xd6c(%rip),%rax
cmove  %rax,%rdi
call   1040 <puts@plt>
cmpl   $0x0,(%rsp)
mov    0x18(%rsp),%rbp
lea    0xbe1(%rip),%r15
je     14e2 <main+0x362>
lea    0xcf5(%rip),%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1090 <scanf@plt>
xor    %eax,%eax
call   1080 <FlushInput@plt>
cmpl   $0x0,(%rsp)
jne    1210 <main+0x90>
lea    0xcff(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [81 x i8] c"Usage: %s low high\0A low - the lower bound\0A high - the upper bound\0A\0A\00"
@.str.1 = [31 x i8] c"Welcome to the Guessing Game!\0A\00"
@.str.2 = [60 x i8] c"Who shall pick a number? (%d=player, %d=computer, %d=quit) \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [61 x i8] c"Pick a number for me to guess (between %d and %d, %d=quit): \00"
@.str.5 = [66 x i8] c"Is the number %d? (%d=too low, %d=too high, %d=correct, %d=quit) \00"
@.str.6 = [45 x i8] c"What? You think you can get away with that?\0A\00"
@.str.7 = [45 x i8] c"(Hey! I know I didn't really guess it yet.)\0A\00"
@.str.8 = [29 x i8] c"I guessed your number in %d \00"
@.str.9 = [8 x i8] c"guess!\0A\00"
@.str.10 = [10 x i8] c"guesses!\0A\00"
@.str.11 = [64 x i8] c"Guess the number I'm thinking of (between %d and %d, %d=quit): \00"
@.str.12 = [10 x i8] c"Too low. \00"
@.str.13 = [11 x i8] c"Too high. \00"
@.str.14 = [14 x i8] c"Guess again: \00"
@.str.15 = [30 x i8] c"You guessed the number in %d \00"
@.str.16 = [6 x i8] c"try!\0A\00"
@.str.17 = [8 x i8] c"tries!\0A\00"
@.str.18 = [29 x i8] c"Play again? (%d=yes, %d=no) \00"
@.str.19 = [6 x i8] c"Bye.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 2
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0), i8* %19)
store i32 -1, i32* %3
br label %231
21: ; preds = %2
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i32 @atoi(i8* %25)
store i32 %26, i32* %6
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 2
%29 = load i8*, i8** %28
%30 = call i32 @atoi(i8* %29)
store i32 %30, i32* %7
%31 = call i64 @time(i32 0)
%32 = trunc i64 %31 to i32
%33 = call i32 @srand(i32 %32)
br label %34
34: ; preds = %226, %21
%35 = load i32, i32* %6
%36 = sub nsw i32 %35, 1
store i32 %36, i32* %11
%37 = load i32, i32* %7
%38 = add nsw i32 %37, 1
store i32 %38, i32* %12
store i32 0, i32* %13
br label %39
39: ; preds = %52, %34
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 2, i32 0)
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %8)
%42 = call i32 (...) @FlushInput()
br label %43
43: ; preds = %39
%44 = load i32, i32* %8
%45 = icmp ne i32 %44, 1
br i1 %45, label %46, label %52
46: ; preds = %43
%47 = load i32, i32* %8
%48 = icmp ne i32 %47, 2
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load i32, i32* %8
%51 = icmp ne i32 %50, 0
br label %52
52: ; preds = %49, %46, %43
%53 = phi i1 [ false, %46 ], [ false, %43 ], [ %51, %49 ]
br i1 %53, label %39, label %54
54: ; preds = %52
%55 = load i32, i32* %8
%56 = icmp eq i32 %55, 1
br i1 %56, label %57, label %166
57: ; preds = %54
br label %58
58: ; preds = %77, %57
%59 = load i32, i32* %6
%60 = load i32, i32* %7
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0), i32 %59, i32 %60, i32 0)
%62 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %8)
%63 = call i32 (...) @FlushInput()
br label %64
64: ; preds = %58
%65 = load i32, i32* %8
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %77
67: ; preds = %64
%68 = load i32, i32* %8
%69 = load i32, i32* %6
%70 = icmp slt i32 %68, %69
br i1 %70, label %75, label %71
71: ; preds = %67
%72 = load i32, i32* %8
%73 = load i32, i32* %7
%74 = icmp sgt i32 %72, %73
br label %75
75: ; preds = %71, %67
%76 = phi i1 [ true, %67 ], [ %74, %71 ]
br label %77
77: ; preds = %75, %64
%78 = phi i1 [ false, %64 ], [ %76, %75 ]
br i1 %78, label %58, label %79
79: ; preds = %77
%80 = load i32, i32* %8
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %152
82: ; preds = %79
%83 = load i32, i32* %8
store i32 %83, i32* %9
br label %84
84: ; preds = %149, %82
%85 = load i32, i32* %12
%86 = load i32, i32* %11
%87 = sub nsw i32 %85, %86
%88 = sdiv i32 %87, 2
%89 = load i32, i32* %11
%90 = add nsw i32 %88, %89
store i32 %90, i32* %10
%91 = load i32, i32* %13
%92 = add nsw i32 %91, 1
store i32 %92, i32* %13
%93 = load i32, i32* %10
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0), i32 %93, i32 1, i32 2, i32 3, i32 0)
br label %95
95: ; preds = %110, %84
%96 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %8)
%97 = call i32 (...) @FlushInput()
br label %98
98: ; preds = %95
%99 = load i32, i32* %8
%100 = icmp ne i32 %99, 1
br i1 %100, label %101, label %110
101: ; preds = %98
%102 = load i32, i32* %8
%103 = icmp ne i32 %102, 2
br i1 %103, label %104, label %110
104: ; preds = %101
%105 = load i32, i32* %8
%106 = icmp ne i32 %105, 3
br i1 %106, label %107, label %110
107: ; preds = %104
%108 = load i32, i32* %8
%109 = icmp ne i32 %108, 0
br label %110
110: ; preds = %107, %104, %101, %98
%111 = phi i1 [ false, %104 ], [ false, %101 ], [ false, %98 ], [ %109, %107 ]
br i1 %111, label %95, label %112
112: ; preds = %110
%113 = load i32, i32* %8
switch i32 %113, label %140 [
i32 1, label %114
i32 2, label %123
i32 3, label %132
]
114: ; preds = %112
%115 = load i32, i32* %10
%116 = load i32, i32* %9
%117 = icmp eq i32 %115, %116
br i1 %117, label %118, label %120
118: ; preds = %114
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
br label %122
120: ; preds = %114
%121 = load i32, i32* %10
store i32 %121, i32* %11
br label %122
122: ; preds = %120, %118
br label %141
123: ; preds = %112
%124 = load i32, i32* %10
%125 = load i32, i32* %9
%126 = icmp eq i32 %124, %125
br i1 %126, label %127, label %129
127: ; preds = %123
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
br label %131
129: ; preds = %123
%130 = load i32, i32* %10
store i32 %130, i32* %12
br label %131
131: ; preds = %129, %127
br label %141
132: ; preds = %112
%133 = load i32, i32* %10
%134 = load i32, i32* %9
%135 = icmp ne i32 %133, %134
br i1 %135, label %136, label %139
136: ; preds = %132
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
%138 = load i32, i32* %9
store i32 %138, i32* %10
br label %139
139: ; preds = %136, %132
br label %141
140: ; preds = %112
br label %141
141: ; preds = %140, %139, %131, %122
br label %142
142: ; preds = %141
%143 = load i32, i32* %10
%144 = load i32, i32* %9
%145 = icmp ne i32 %143, %144
br i1 %145, label %146, label %149
146: ; preds = %142
%147 = load i32, i32* %8
%148 = icmp ne i32 %147, 0
br label %149
149: ; preds = %146, %142
%150 = phi i1 [ false, %142 ], [ %148, %146 ]
br i1 %150, label %84, label %151
151: ; preds = %149
br label %152
152: ; preds = %151, %79
%153 = load i32, i32* %8
%154 = icmp ne i32 %153, 0
br i1 %154, label %155, label %165
155: ; preds = %152
%156 = load i32, i32* %13
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i32 %156)
%158 = load i32, i32* %13
%159 = icmp eq i32 %158, 1
br i1 %159, label %160, label %162
160: ; preds = %155
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %164
162: ; preds = %155
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
br label %164
164: ; preds = %162, %160
br label %165
165: ; preds = %164, %152
br label %218
166: ; preds = %54
%167 = load i32, i32* %8
%168 = icmp eq i32 %167, 2
br i1 %168, label %169, label %217
169: ; preds = %166
%170 = load i32, i32* %6
%171 = load i32, i32* %7
%172 = call i32 @RandomInt(i32 %170, i32 %171)
store i32 %172, i32* %9
%173 = load i32, i32* %6
%174 = load i32, i32* %7
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.11, i64 0, i64 0), i32 %173, i32 %174, i32 0)
%176 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %8)
%177 = call i32 (...) @FlushInput()
%178 = load i32, i32* %13
%179 = add nsw i32 %178, 1
store i32 %179, i32* %13
br label %180
180: ; preds = %197, %169
%181 = load i32, i32* %8
%182 = load i32, i32* %9
%183 = icmp ne i32 %181, %182
br i1 %183, label %184, label %187
184: ; preds = %180
%185 = load i32, i32* %8
%186 = icmp ne i32 %185, 0
br label %187
187: ; preds = %184, %180
%188 = phi i1 [ false, %180 ], [ %186, %184 ]
br i1 %188, label %189, label %203
189: ; preds = %187
%190 = load i32, i32* %8
%191 = load i32, i32* %9
%192 = icmp slt i32 %190, %191
br i1 %192, label %193, label %195
193: ; preds = %189
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
br label %197
195: ; preds = %189
%196 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
br label %197
197: ; preds = %195, %193
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
%199 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %8)
%200 = call i32 (...) @FlushInput()
%201 = load i32, i32* %13
%202 = add nsw i32 %201, 1
store i32 %202, i32* %13
br label %180
203: ; preds = %187
%204 = load i32, i32* %8
%205 = icmp ne i32 %204, 0
br i1 %205, label %206, label %216
206: ; preds = %203
%207 = load i32, i32* %13
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 %207)
%209 = load i32, i32* %13
%210 = icmp eq i32 %209, 1
br i1 %210, label %211, label %213
211: ; preds = %206
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
br label %215
213: ; preds = %206
%214 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
br label %215
215: ; preds = %213, %211
br label %216
216: ; preds = %215, %203
br label %217
217: ; preds = %216, %166
br label %218
218: ; preds = %217, %165
%219 = load i32, i32* %8
%220 = icmp ne i32 %219, 0
br i1 %220, label %221, label %225
221: ; preds = %218
%222 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i32 1, i32 0)
%223 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %8)
%224 = call i32 (...) @FlushInput()
br label %225
225: ; preds = %221, %218
br label %226
226: ; preds = %225
%227 = load i32, i32* %8
%228 = icmp ne i32 %227, 0
br i1 %228, label %34, label %229
229: ; preds = %226
%230 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
store i32 0, i32* %3
br label %231
231: ; preds = %229, %16
%232 = load i32, i32* %3
ret i32 %232
}

LLVM IR (-O2):
@.str = [81 x i8] c"Usage: %s low high\0A low - the lower bound\0A high - the upper bound\0A\0A\00"
@.str.2 = [60 x i8] c"Who shall pick a number? (%d=player, %d=computer, %d=quit) \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [61 x i8] c"Pick a number for me to guess (between %d and %d, %d=quit): \00"
@.str.5 = [66 x i8] c"Is the number %d? (%d=too low, %d=too high, %d=correct, %d=quit) \00"
@.str.8 = [29 x i8] c"I guessed your number in %d \00"
@.str.11 = [64 x i8] c"Guess the number I'm thinking of (between %d and %d, %d=quit): \00"
@.str.12 = [10 x i8] c"Too low. \00"
@.str.13 = [11 x i8] c"Too high. \00"
@.str.14 = [14 x i8] c"Guess again: \00"
@.str.15 = [30 x i8] c"You guessed the number in %d \00"
@.str.18 = [29 x i8] c"Play again? (%d=yes, %d=no) \00"
@str = [30 x i8] c"Welcome to the Guessing Game!\00"
@str.20 = [5 x i8] c"Bye.\00"
@str.21 = [7 x i8] c"tries!\00"
@str.22 = [5 x i8] c"try!\00"
@str.23 = [9 x i8] c"guesses!\00"
@str.24 = [7 x i8] c"guess!\00"
@str.25 = [44 x i8] c"(Hey! I know I didn't really guess it yet.)\00"
@str.27 = [44 x i8] c"What? You think you can get away with that?\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = icmp slt i32 %0, 2
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i8*, i8** %1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %124
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32 @atoi(i8* %12)
%14 = getelementptr inbounds i8*, i8** %1, i64 2
%15 = load i8*, i8** %14
%16 = tail call i32 @atoi(i8* %15)
%17 = tail call i64 @time(i32 0)
%18 = trunc i64 %17 to i32
%19 = tail call i32 @srand(i32 %18)
%20 = add nsw i32 %13, -1
%21 = add nsw i32 %16, 1
br label %22
22: ; preds = %28, %9
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 2, i32 0)
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%25 = call i32 (...) @FlushInput()
%26 = load i32, i32* %3
%27 = icmp ugt i32 %26, 2
br i1 %27, label %28, label %29
28: ; preds = %22, %116
br label %22
29: ; preds = %22
switch i32 %26, label %122 [
i32 1, label %30
i32 2, label %81
]
30: ; preds = %29, %36
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0), i32 %13, i32 %16, i32 0)
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%33 = call i32 (...) @FlushInput()
%34 = load i32, i32* %3
%35 = icmp eq i32 %34, 0
br i1 %35, label %122, label %36
36: ; preds = %30
%37 = icmp slt i32 %34, %13
%38 = icmp sgt i32 %34, %16
%39 = select i1 %37, i1 true, i1 %38
br i1 %39, label %30, label %40
40: ; preds = %36, %67
%41 = phi i32 [ %68, %67 ], [ %20, %36 ]
%42 = phi i32 [ %69, %67 ], [ %21, %36 ]
%43 = phi i32 [ %54, %67 ], [ 0, %36 ]
%44 = sub nsw i32 %42, %41
%45 = sdiv i32 %44, 2
%46 = add nsw i32 %45, %41
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0), i32 %46, i32 1, i32 2, i32 3, i32 0)
br label %48
48: ; preds = %48, %40
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%50 = call i32 (...) @FlushInput()
%51 = load i32, i32* %3
%52 = icmp ugt i32 %51, 3
br i1 %52, label %48, label %53
53: ; preds = %48
%54 = add nuw nsw i32 %43, 1
switch i32 %51, label %67 [
i32 1, label %55
i32 2, label %57
i32 3, label %59
]
55: ; preds = %53
%56 = icmp eq i32 %46, %34
br i1 %56, label %64, label %67
57: ; preds = %53
%58 = icmp eq i32 %46, %34
br i1 %58, label %64, label %67
59: ; preds = %53
%60 = icmp eq i32 %46, %34
br i1 %60, label %67, label %61
61: ; preds = %59
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.25, i64 0, i64 0))
%63 = load i32, i32* %3
br label %74
64: ; preds = %57, %55
%65 = phi i8* [ getelementptr inbounds ([44 x i8], [44 x i8]* @str.27, i64 0, i64 0), %55 ], [ getelementptr inbounds ([44 x i8], [44 x i8]* @str.27, i64 0, i64 0), %57 ]
%66 = call i32 @puts(i8* dereferenceable(1) %65)
br label %67
67: ; preds = %64, %57, %55, %59, %53
%68 = phi i32 [ %41, %53 ], [ %41, %59 ], [ %46, %55 ], [ %41, %57 ], [ %41, %64 ]
%69 = phi i32 [ %42, %53 ], [ %42, %59 ], [ %42, %55 ], [ %46, %57 ], [ %42, %64 ]
%70 = icmp ne i32 %46, %34
%71 = load i32, i32* %3
%72 = icmp ne i32 %71, 0
%73 = select i1 %70, i1 %72, i1 false
br i1 %73, label %40, label %74
74: ; preds = %67, %61
%75 = phi i32 [ %63, %61 ], [ %71, %67 ]
%76 = icmp eq i32 %75, 0
br i1 %76, label %113, label %77
77: ; preds = %74
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i32 %54)
%79 = icmp eq i32 %43, 0
%80 = select i1 %79, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.24, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.23, i64 0, i64 0)
br label %110
81: ; preds = %29
%82 = call i32 @RandomInt(i32 %13, i32 %16)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.11, i64 0, i64 0), i32 %13, i32 %16, i32 0)
%84 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%85 = call i32 (...) @FlushInput()
%86 = load i32, i32* %3
%87 = icmp ne i32 %86, %82
%88 = icmp ne i32 %86, 0
%89 = and i1 %87, %88
br i1 %89, label %90, label %105
90: ; preds = %81, %90
%91 = phi i32 [ %100, %90 ], [ %86, %81 ]
%92 = phi i32 [ %99, %90 ], [ 1, %81 ]
%93 = icmp slt i32 %91, %82
%94 = select i1 %93, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0)
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %94)
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
%97 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%98 = call i32 (...) @FlushInput()
%99 = add nuw nsw i32 %92, 1
%100 = load i32, i32* %3
%101 = icmp ne i32 %100, %82
%102 = icmp ne i32 %100, 0
%103 = and i1 %101, %102
br i1 %103, label %90, label %104
104: ; preds = %90
br i1 %102, label %108, label %122
105: ; preds = %81
br i1 %88, label %106, label %122
106: ; preds = %105
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 1)
br label %110
108: ; preds = %104
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 %99)
br label %110
110: ; preds = %77, %108, %106
%111 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.22, i64 0, i64 0), %106 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.21, i64 0, i64 0), %108 ], [ %80, %77 ]
%112 = call i32 @puts(i8* dereferenceable(1) %111)
br label %113
113: ; preds = %110, %74
%114 = load i32, i32* %3
%115 = icmp eq i32 %114, 0
br i1 %115, label %122, label %116
116: ; preds = %113
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i32 1, i32 0)
%118 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%119 = call i32 (...) @FlushInput()
%120 = load i32, i32* %3
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %28
122: ; preds = %29, %104, %113, %116, %105, %30
%123 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.20, i64 0, i64 0))
br label %124
124: ; preds = %122, %6
%125 = phi i32 [ -1, %6 ], [ 0, %122 ]
ret i32 %125
}