#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 guess_from_low(int *, int, int, int, int, int, int);
int guess_from_mult(int *, int, int, int, int, int);
int guess_from_start(int *, int, int, int, int);
int /*<<< orphan*/ printf(char *, ...);
void guess_xor(int *scales, int scalecount, int startset, int startguess,
               int addset, int addguess, int multset, int multguess, int mask) {
  int startoff, start_firstguess;
  int minestimate = (mask + 1) * scalecount;
  printf("max\t%d\n", minestimate);
  if (minestimate < 0) {
    printf("minestimate overflow, choose a smaller -n\n");
    return;
  }
  if (startset)
    start_firstguess = startguess;
  else
    start_firstguess = scales[0];
  if (addset && multset) {
    minestimate = guess_from_low(scales, scalecount, start_firstguess,
                                 minestimate, mask, addguess, multguess);
    for (startoff = 1; startoff < 0x1000; startoff++) {
      minestimate =
          guess_from_low(scales, scalecount, start_firstguess + startoff,
                         minestimate, mask, addguess, multguess);
      minestimate =
          guess_from_low(scales, scalecount, start_firstguess - startoff,
                         minestimate, mask, addguess, multguess);
    }
  } else if (multset) {
    minestimate = guess_from_mult(scales, scalecount, start_firstguess,
                                  minestimate, mask, multguess);
    for (startoff = 1; startoff < 0x1000; startoff++) {
      minestimate =
          guess_from_mult(scales, scalecount, start_firstguess + startoff,
                          minestimate, mask, multguess);
      minestimate =
          guess_from_mult(scales, scalecount, start_firstguess - startoff,
                          minestimate, mask, multguess);
    }
  } else {
    minestimate = guess_from_start(scales, scalecount, start_firstguess,
                                   minestimate, mask);
    for (startoff = 1; startoff < 0x1000; startoff++) {
      minestimate = guess_from_start(
          scales, scalecount, start_firstguess + startoff, minestimate, mask);
      minestimate = guess_from_start(
          scales, scalecount, start_firstguess - startoff, minestimate, mask);
    }
  }
}


x86 assembly (clang, -O0):
<guess_xor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
mov    0x20(%rbp),%eax
add    $0x1,%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x28(%rbp)
jge    11a1 <guess_xor+0x61>
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1374 <guess_xor+0x234>
cmpl   $0x0,-0x10(%rbp)
je     11b6 <guess_xor+0x76>
mov    -0x14(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    11bf <guess_xor+0x7f>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1269 <guess_xor+0x129>
cmpl   $0x0,0x10(%rbp)
je     1269 <guess_xor+0x129>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
mov    0x18(%rbp),%eax
mov    %eax,(%rsp)
call   1050 <guess_from_low@plt>
mov    %eax,-0x28(%rbp)
movl   $0x1,-0x20(%rbp)
cmpl   $0x1000,-0x20(%rbp)
jge    1264 <guess_xor+0x124>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
add    -0x20(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
mov    0x18(%rbp),%eax
mov    %eax,(%rsp)
call   1050 <guess_from_low@plt>
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
sub    -0x20(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
mov    0x18(%rbp),%eax
mov    %eax,(%rsp)
call   1050 <guess_from_low@plt>
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11fd <guess_xor+0xbd>
jmp    1374 <guess_xor+0x234>
cmpl   $0x0,0x10(%rbp)
je     12f7 <guess_xor+0x1b7>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
mov    0x18(%rbp),%r9d
call   1030 <guess_from_mult@plt>
mov    %eax,-0x28(%rbp)
movl   $0x1,-0x20(%rbp)
cmpl   $0x1000,-0x20(%rbp)
jge    12f2 <guess_xor+0x1b2>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
add    -0x20(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
mov    0x18(%rbp),%r9d
call   1030 <guess_from_mult@plt>
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
sub    -0x20(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
mov    0x18(%rbp),%r9d
call   1030 <guess_from_mult@plt>
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1297 <guess_xor+0x157>
jmp    136f <guess_xor+0x22f>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
call   1060 <guess_from_start@plt>
mov    %eax,-0x28(%rbp)
movl   $0x1,-0x20(%rbp)
cmpl   $0x1000,-0x20(%rbp)
jge    136a <guess_xor+0x22a>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
add    -0x20(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
call   1060 <guess_from_start@plt>
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x24(%rbp),%edx
sub    -0x20(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    0x20(%rbp),%r8d
call   1060 <guess_from_start@plt>
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1317 <guess_xor+0x1d7>
jmp    136f <guess_xor+0x22f>
jmp    1374 <guess_xor+0x234>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<guess_xor>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9d,0x24(%rsp)
mov    %r8d,0x10(%rsp)
mov    %rcx,0x18(%rsp)
mov    %edx,%r14d
mov    %esi,%r12d
mov    %rdi,%rbp
mov    0x80(%rsp),%eax
mov    0x78(%rsp),%ecx
mov    %ecx,0x14(%rsp)
mov    0x70(%rsp),%r13d
mov    %rax,%r15
lea    0x1(%rax),%ebx
imul   %esi,%ebx
lea    0xe66(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   %ebx,%ebx
js     1273 <guess_xor+0x123>
test   %r14d,%r14d
mov    %rbp,%rdi
jne    11ba <guess_xor+0x6a>
mov    (%rdi),%eax
mov    %rax,0x18(%rsp)
cmpl   $0x0,0x10(%rsp)
mov    0x24(%rsp),%r9d
mov    %r15,%r8
mov    0x14(%rsp),%eax
je     128d <guess_xor+0x13d>
test   %r13d,%r13d
je     128d <guess_xor+0x13d>
mov    %eax,(%rsp)
mov    %r12d,%esi
mov    0x18(%rsp),%rbp
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r12d,0x10(%rsp)
mov    %rdi,0x30(%rsp)
mov    %r8,0x28(%rsp)
call   1060 <guess_from_low@plt>
lea    -0x1(%rbp),%r14d
mov    $0x1,%ebx
mov    0x30(%rsp),%r13
mov    0x10(%rsp),%r12d
mov    0x28(%rsp),%rbp
mov    0x24(%rsp),%r15d
nopw   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rcx
lea    (%rcx,%rbx,1),%edx
mov    0x14(%rsp),%ecx
mov    %ecx,(%rsp)
mov    %r13,%rdi
mov    %r12d,%esi
mov    %eax,%ecx
mov    %ebp,%r8d
mov    %r15d,%r9d
call   1060 <guess_from_low@plt>
mov    0x14(%rsp),%ecx
mov    %ecx,(%rsp)
mov    %r13,%rdi
mov    %r12d,%esi
mov    %r14d,%edx
mov    %eax,%ecx
mov    %ebp,%r8d
mov    %r15d,%r9d
call   1060 <guess_from_low@plt>
add    $0x1,%ebx
add    $0xffffffff,%r14d
cmp    $0x1000,%ebx
jne    1220 <guess_xor+0xd0>
jmp    1354 <guess_xor+0x204>
lea    0xd8e(%rip),%rdi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>
mov    %r12d,%esi
test   %r13d,%r13d
je     1300 <guess_xor+0x1b0>
mov    0x18(%rsp),%rbp
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %eax,%r9d
mov    %r12d,%r14d
mov    %rdi,%r12
mov    %r8,%r15
mov    %eax,%r13d
call   1040 <guess_from_mult@plt>
lea    -0x1(%rbp),%ebx
mov    $0x1,%ebp
nopw   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rcx
lea    (%rcx,%rbp,1),%edx
mov    %r12,%rdi
mov    %r14d,%esi
mov    %eax,%ecx
mov    %r15d,%r8d
mov    %r13d,%r9d
call   1040 <guess_from_mult@plt>
mov    %r12,%rdi
mov    %r14d,%esi
mov    %ebx,%edx
mov    %eax,%ecx
mov    %r15d,%r8d
mov    %r13d,%r9d
call   1040 <guess_from_mult@plt>
add    $0x1,%ebp
add    $0xffffffff,%ebx
cmp    $0x1000,%ebp
jne    12c0 <guess_xor+0x170>
jmp    1354 <guess_xor+0x204>
mov    0x18(%rsp),%r14
mov    %r14d,%edx
mov    %ebx,%ecx
mov    %rdi,%r15
mov    %r8,%r13
call   1070 <guess_from_start@plt>
lea    -0x1(%r14),%ebx
mov    $0x1,%ebp
xchg   %ax,%ax
lea    (%r14,%rbp,1),%edx
mov    %r15,%rdi
mov    %r12d,%esi
mov    %eax,%ecx
mov    %r13d,%r8d
call   1070 <guess_from_start@plt>
mov    %r15,%rdi
mov    %r12d,%esi
mov    %ebx,%edx
mov    %eax,%ecx
mov    %r13d,%r8d
call   1070 <guess_from_start@plt>
add    $0x1,%ebp
add    $0xffffffff,%ebx
cmp    $0x1000,%ebp
jne    1320 <guess_xor+0x1d0>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"max\09%d\0A\00"
@.str.1 = [43 x i8] c"minestimate overflow, choose a smaller -n\0A\00"
define void @guess_xor(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
store i32* %0, i32** %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%22 = load i32, i32* %18
%23 = add nsw i32 %22, 1
%24 = load i32, i32* %11
%25 = mul nsw i32 %23, %24
store i32 %25, i32* %21
%26 = load i32, i32* %21
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %21
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %9
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
br label %153
32: ; preds = %9
%33 = load i32, i32* %12
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = load i32, i32* %13
store i32 %36, i32* %20
br label %41
37: ; preds = %32
%38 = load i32*, i32** %10
%39 = getelementptr inbounds i32, i32* %38, i64 0
%40 = load i32, i32* %39
store i32 %40, i32* %20
br label %41
41: ; preds = %37, %35
%42 = load i32, i32* %14
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %84
44: ; preds = %41
%45 = load i32, i32* %16
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %84
47: ; preds = %44
%48 = load i32*, i32** %10
%49 = load i32, i32* %11
%50 = load i32, i32* %20
%51 = load i32, i32* %21
%52 = load i32, i32* %18
%53 = load i32, i32* %15
%54 = load i32, i32* %17
%55 = call i32 @guess_from_low(i32* %48, i32 %49, i32 %50, i32 %51, i32 %52, i32 %53, i32 %54)
store i32 %55, i32* %21
store i32 1, i32* %19
br label %56
56: ; preds = %80, %47
%57 = load i32, i32* %19
%58 = icmp slt i32 %57, 4096
br i1 %58, label %59, label %83
59: ; preds = %56
%60 = load i32*, i32** %10
%61 = load i32, i32* %11
%62 = load i32, i32* %20
%63 = load i32, i32* %19
%64 = add nsw i32 %62, %63
%65 = load i32, i32* %21
%66 = load i32, i32* %18
%67 = load i32, i32* %15
%68 = load i32, i32* %17
%69 = call i32 @guess_from_low(i32* %60, i32 %61, i32 %64, i32 %65, i32 %66, i32 %67, i32 %68)
store i32 %69, i32* %21
%70 = load i32*, i32** %10
%71 = load i32, i32* %11
%72 = load i32, i32* %20
%73 = load i32, i32* %19
%74 = sub nsw i32 %72, %73
%75 = load i32, i32* %21
%76 = load i32, i32* %18
%77 = load i32, i32* %15
%78 = load i32, i32* %17
%79 = call i32 @guess_from_low(i32* %70, i32 %71, i32 %74, i32 %75, i32 %76, i32 %77, i32 %78)
store i32 %79, i32* %21
br label %80
80: ; preds = %59
%81 = load i32, i32* %19
%82 = add nsw i32 %81, 1
store i32 %82, i32* %19
br label %56
83: ; preds = %56
br label %153
84: ; preds = %44, %41
%85 = load i32, i32* %16
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %121
87: ; preds = %84
%88 = load i32*, i32** %10
%89 = load i32, i32* %11
%90 = load i32, i32* %20
%91 = load i32, i32* %21
%92 = load i32, i32* %18
%93 = load i32, i32* %17
%94 = call i32 @guess_from_mult(i32* %88, i32 %89, i32 %90, i32 %91, i32 %92, i32 %93)
store i32 %94, i32* %21
store i32 1, i32* %19
br label %95
95: ; preds = %117, %87
%96 = load i32, i32* %19
%97 = icmp slt i32 %96, 4096
br i1 %97, label %98, label %120
98: ; preds = %95
%99 = load i32*, i32** %10
%100 = load i32, i32* %11
%101 = load i32, i32* %20
%102 = load i32, i32* %19
%103 = add nsw i32 %101, %102
%104 = load i32, i32* %21
%105 = load i32, i32* %18
%106 = load i32, i32* %17
%107 = call i32 @guess_from_mult(i32* %99, i32 %100, i32 %103, i32 %104, i32 %105, i32 %106)
store i32 %107, i32* %21
%108 = load i32*, i32** %10
%109 = load i32, i32* %11
%110 = load i32, i32* %20
%111 = load i32, i32* %19
%112 = sub nsw i32 %110, %111
%113 = load i32, i32* %21
%114 = load i32, i32* %18
%115 = load i32, i32* %17
%116 = call i32 @guess_from_mult(i32* %108, i32 %109, i32 %112, i32 %113, i32 %114, i32 %115)
store i32 %116, i32* %21
br label %117
117: ; preds = %98
%118 = load i32, i32* %19
%119 = add nsw i32 %118, 1
store i32 %119, i32* %19
br label %95
120: ; preds = %95
br label %152
121: ; preds = %84
%122 = load i32*, i32** %10
%123 = load i32, i32* %11
%124 = load i32, i32* %20
%125 = load i32, i32* %21
%126 = load i32, i32* %18
%127 = call i32 @guess_from_start(i32* %122, i32 %123, i32 %124, i32 %125, i32 %126)
store i32 %127, i32* %21
store i32 1, i32* %19
br label %128
128: ; preds = %148, %121
%129 = load i32, i32* %19
%130 = icmp slt i32 %129, 4096
br i1 %130, label %131, label %151
131: ; preds = %128
%132 = load i32*, i32** %10
%133 = load i32, i32* %11
%134 = load i32, i32* %20
%135 = load i32, i32* %19
%136 = add nsw i32 %134, %135
%137 = load i32, i32* %21
%138 = load i32, i32* %18
%139 = call i32 @guess_from_start(i32* %132, i32 %133, i32 %136, i32 %137, i32 %138)
store i32 %139, i32* %21
%140 = load i32*, i32** %10
%141 = load i32, i32* %11
%142 = load i32, i32* %20
%143 = load i32, i32* %19
%144 = sub nsw i32 %142, %143
%145 = load i32, i32* %21
%146 = load i32, i32* %18
%147 = call i32 @guess_from_start(i32* %140, i32 %141, i32 %144, i32 %145, i32 %146)
store i32 %147, i32* %21
br label %148
148: ; preds = %131
%149 = load i32, i32* %19
%150 = add nsw i32 %149, 1
store i32 %150, i32* %19
br label %128
151: ; preds = %128
br label %152
152: ; preds = %151, %120
br label %153
153: ; preds = %30, %152, %83
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"max\09%d\0A\00"
@str = [42 x i8] c"minestimate overflow, choose a smaller -n\00"
define void @guess_xor(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = add nsw i32 %8, 1
%11 = mul nsw i32 %10, %1
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = icmp slt i32 %11, 0
br i1 %13, label %14, label %16
14: ; preds = %9
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
br label %59
16: ; preds = %9
%17 = icmp eq i32 %2, 0
br i1 %17, label %18, label %20
18: ; preds = %16
%19 = load i32, i32* %0
br label %20
20: ; preds = %16, %18
%21 = phi i32 [ %19, %18 ], [ %3, %16 ]
%22 = icmp ne i32 %4, 0
%23 = icmp ne i32 %6, 0
%24 = and i1 %22, %23
br i1 %24, label %25, label %36
25: ; preds = %20
%26 = tail call i32 @guess_from_low(i32* %0, i32 %1, i32 %21, i32 %11, i32 %8, i32 %5, i32 %7)
br label %27
27: ; preds = %25, %27
%28 = phi i32 [ %26, %25 ], [ %33, %27 ]
%29 = phi i32 [ 1, %25 ], [ %34, %27 ]
%30 = add nsw i32 %29, %21
%31 = tail call i32 @guess_from_low(i32* %0, i32 %1, i32 %30, i32 %28, i32 %8, i32 %5, i32 %7)
%32 = sub nsw i32 %21, %29
%33 = tail call i32 @guess_from_low(i32* %0, i32 %1, i32 %32, i32 %31, i32 %8, i32 %5, i32 %7)
%34 = add nuw nsw i32 %29, 1
%35 = icmp eq i32 %34, 4096
br i1 %35, label %59, label %27
36: ; preds = %20
br i1 %23, label %37, label %48
37: ; preds = %36
%38 = tail call i32 @guess_from_mult(i32* %0, i32 %1, i32 %21, i32 %11, i32 %8, i32 %7)
br label %39
39: ; preds = %37, %39
%40 = phi i32 [ %38, %37 ], [ %45, %39 ]
%41 = phi i32 [ 1, %37 ], [ %46, %39 ]
%42 = add nsw i32 %41, %21
%43 = tail call i32 @guess_from_mult(i32* %0, i32 %1, i32 %42, i32 %40, i32 %8, i32 %7)
%44 = sub nsw i32 %21, %41
%45 = tail call i32 @guess_from_mult(i32* %0, i32 %1, i32 %44, i32 %43, i32 %8, i32 %7)
%46 = add nuw nsw i32 %41, 1
%47 = icmp eq i32 %46, 4096
br i1 %47, label %59, label %39
48: ; preds = %36
%49 = tail call i32 @guess_from_start(i32* %0, i32 %1, i32 %21, i32 %11, i32 %8)
br label %50
50: ; preds = %48, %50
%51 = phi i32 [ %49, %48 ], [ %56, %50 ]
%52 = phi i32 [ 1, %48 ], [ %57, %50 ]
%53 = add nsw i32 %52, %21
%54 = tail call i32 @guess_from_start(i32* %0, i32 %1, i32 %53, i32 %51, i32 %8)
%55 = sub nsw i32 %21, %52
%56 = tail call i32 @guess_from_start(i32* %0, i32 %1, i32 %55, i32 %54, i32 %8)
%57 = add nuw nsw i32 %52, 1
%58 = icmp eq i32 %57, 4096
br i1 %58, label %59, label %50
59: ; preds = %50, %39, %27, %14
ret void
}