#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 */
double RAND_MAX;
int /*<<< orphan*/ exchange2letters(char *);
double exp(double);
int /*<<< orphan*/ foursquareDecipher(char *, char *, char *, char *, int);
int /*<<< orphan*/ free(char *);
char *malloc(int);
double rand();
double scoreTextQgram(char *, int);
int /*<<< orphan*/ strcpy(char *, char *);
float foursquareCrack(char *text, int len, char *bestKey1, char *bestKey2) {
  int i, j, count;
  float T;
  char temp, *deciphered = malloc(sizeof(char) * (len + 1));
  char testKey1[26], testKey2[26];
  char maxKey1[26], maxKey2[26];
  double prob, dF, maxscore, score;
  double bestscore;
  strcpy(maxKey1, bestKey1);
  strcpy(maxKey2, bestKey2);
  foursquareDecipher(maxKey1, maxKey2, text, deciphered, len);
  maxscore = scoreTextQgram(deciphered, len);
  bestscore = maxscore;
  for (T = 20; T >= 0; T -= 0.1) {
    for (count = 0; count < 10000; count++) {
      strcpy(testKey1, maxKey1);
      strcpy(testKey2, maxKey2);
      if (count % 2 == 0) {
        exchange2letters(testKey1);
      } else {
        exchange2letters(testKey2);
      }
      foursquareDecipher(testKey1, testKey2, text, deciphered, len);
      score = scoreTextQgram(deciphered, len);
      dF = score - maxscore;
      if (dF >= 0) {
        maxscore = score;
        strcpy(maxKey1, testKey1);
        strcpy(maxKey2, testKey2);
      } else if (T > 0) {
        prob = exp(dF / T);
        if (prob > 1.0 * rand() / RAND_MAX) {
          maxscore = score;
          strcpy(maxKey1, testKey1);
          strcpy(maxKey2, testKey2);
        }
      }
      if (maxscore > bestscore) {
        bestscore = maxscore;
        strcpy(bestKey1, maxKey1);
        strcpy(bestKey2, maxKey2);
      }
    }
  }
  free(deciphered);
  return bestscore;
}


x86 assembly (clang, -O0):
<foursquareCrack>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
lea    -0xa0(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1060 <strcpy@plt>
lea    -0xc0(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1060 <strcpy@plt>
lea    -0xa0(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0xc(%rbp),%r8d
call   1050 <foursquareDecipher@plt>
mov    -0x40(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1090 <scoreTextQgram@plt>
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
movss  0xde4(%rip),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1451 <foursquareCrack+0x2d1>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x2710,-0x2c(%rbp)
jge    1429 <foursquareCrack+0x2a9>
lea    -0x60(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1060 <strcpy@plt>
lea    -0x80(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
call   1060 <strcpy@plt>
mov    -0x2c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1288 <foursquareCrack+0x108>
lea    -0x60(%rbp),%rdi
call   1040 <exchange2letters@plt>
jmp    1291 <foursquareCrack+0x111>
lea    -0x80(%rbp),%rdi
call   1040 <exchange2letters@plt>
lea    -0x60(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0xc(%rbp),%r8d
call   1050 <foursquareDecipher@plt>
mov    -0x40(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1090 <scoreTextQgram@plt>
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
subsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1320 <foursquareCrack+0x1a0>
movsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
lea    -0xa0(%rbp),%rdi
lea    -0x60(%rbp),%rsi
call   1060 <strcpy@plt>
lea    -0xc0(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1060 <strcpy@plt>
jmp    13d0 <foursquareCrack+0x250>
movss  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    13cb <foursquareCrack+0x24b>
movsd  -0xd0(%rbp),%xmm0
ff
movss  -0x30(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
call   1080 <exp@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
mov    $0x0,%al
call   10a0 <rand@plt>
movaps %xmm0,%xmm2
movsd  -0xf0(%rbp),%xmm0
ff
movsd  0xc93(%rip),%xmm1
mulsd  %xmm2,%xmm1
mov    0x2c60(%rip),%rax
divsd  (%rax),%xmm1
ucomisd %xmm1,%xmm0
jbe    13c6 <foursquareCrack+0x246>
movsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
lea    -0xa0(%rbp),%rdi
lea    -0x60(%rbp),%rsi
call   1060 <strcpy@plt>
lea    -0xc0(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1060 <strcpy@plt>
jmp    13cb <foursquareCrack+0x24b>
jmp    13d0 <foursquareCrack+0x250>
movsd  -0xd8(%rbp),%xmm0
ff
ucomisd -0xe8(%rbp),%xmm0
ff
jbe    1416 <foursquareCrack+0x296>
movsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
mov    -0x18(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1060 <strcpy@plt>
mov    -0x20(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
call   1060 <strcpy@plt>
jmp    141b <foursquareCrack+0x29b>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1239 <foursquareCrack+0xb9>
jmp    142e <foursquareCrack+0x2ae>
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbc9(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
jmp    1221 <foursquareCrack+0xa1>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movsd  -0xe8(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foursquareCrack>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %rcx,%r15
mov    %rdx,%rbp
mov    %esi,%r13d
mov    %rdi,%r12
lea    0x1(%r13),%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
lea    0x50(%rsp),%r14
mov    %r14,%rdi
mov    %rbp,0x38(%rsp)
mov    %rbp,%rsi
call   1060 <strcpy@plt>
lea    0x70(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15,0x40(%rsp)
mov    %r15,%rsi
call   1060 <strcpy@plt>
mov    %r14,%rdi
mov    %rbp,%r14
mov    %rbp,%rsi
mov    %r12,0x48(%rsp)
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %r13d,%r8d
call   1050 <foursquareDecipher@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
call   1090 <scoreTextQgram@plt>
movss  0xdfe(%rip),%xmm1
lea    0xb0(%rsp),%r15
lea    0x90(%rsp),%r12
movsd  %xmm0,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
jmp    1242 <foursquareCrack+0xc2>
movsd  0x28(%rsp),%xmm0
addsd  0xdda(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
ucomiss 0xdc8(%rip),%xmm1
jb     1383 <foursquareCrack+0x203>
movss  %xmm1,0x24(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movsd  %xmm0,0x28(%rsp)
xor    %ebp,%ebp
jmp    126b <foursquareCrack+0xeb>
nopl   0x0(%rax)
add    $0x1,%ebp
cmp    $0x2710,%ebp
je     1220 <foursquareCrack+0xa0>
mov    %r15,%rdi
lea    0x50(%rsp),%rsi
call   1060 <strcpy@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1060 <strcpy@plt>
test   $0x1,%bpl
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <exchange2letters@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    0x48(%rsp),%rdx
mov    %rbx,%rcx
mov    %r13d,%r8d
call   1050 <foursquareDecipher@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
call   1090 <scoreTextQgram@plt>
movaps %xmm0,%xmm3
movsd  0x8(%rsp),%xmm2
subsd  %xmm2,%xmm0
ucomisd 0xd47(%rip),%xmm0
jae    1320 <foursquareCrack+0x1a0>
movss  0x24(%rsp),%xmm1
ucomiss 0xd2c(%rip),%xmm1
jbe    1344 <foursquareCrack+0x1c4>
divsd  0x28(%rsp),%xmm0
movsd  %xmm3,0x18(%rsp)
call   1080 <exp@plt>
movsd  %xmm0,0x30(%rsp)
xor    %eax,%eax
call   10a0 <rand@plt>
movsd  0x18(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
mov    0x2cdd(%rip),%rax
divsd  (%rax),%xmm0
movsd  0x30(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    1344 <foursquareCrack+0x1c4>
nopl   0x0(%rax,%rax,1)
movsd  %xmm3,0x18(%rsp)
lea    0x50(%rsp),%rdi
mov    %r15,%rsi
call   1060 <strcpy@plt>
mov    %r14,%rdi
mov    %r12,%rsi
call   1060 <strcpy@plt>
movsd  0x18(%rsp),%xmm2
movsd  %xmm2,0x8(%rsp)
ucomisd 0x10(%rsp),%xmm2
jbe    1260 <foursquareCrack+0xe0>
mov    0x38(%rsp),%rdi
lea    0x50(%rsp),%rsi
call   1060 <strcpy@plt>
mov    0x40(%rsp),%rdi
mov    %r14,%rsi
call   1060 <strcpy@plt>
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
jmp    1260 <foursquareCrack+0xe0>
mov    %rbx,%rdi
call   1030 <free@plt>
movsd  0x10(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@RAND_MAX = global double 0.000000e+00
define float @foursquareCrack(i8* %0, i32 %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca float
%13 = alloca i8
%14 = alloca i8*
%15 = alloca [26 x i8]
%16 = alloca [26 x i8]
%17 = alloca [26 x i8]
%18 = alloca [26 x i8]
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%24 = load i32, i32* %6
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = mul i64 1, %26
%28 = trunc i64 %27 to i32
%29 = call i8* @malloc(i32 %28)
store i8* %29, i8** %14
%30 = getelementptr inbounds [26 x i8], [26 x i8]* %17, i64 0, i64 0
%31 = load i8*, i8** %7
%32 = call i32 @strcpy(i8* %30, i8* %31)
%33 = getelementptr inbounds [26 x i8], [26 x i8]* %18, i64 0, i64 0
%34 = load i8*, i8** %8
%35 = call i32 @strcpy(i8* %33, i8* %34)
%36 = getelementptr inbounds [26 x i8], [26 x i8]* %17, i64 0, i64 0
%37 = getelementptr inbounds [26 x i8], [26 x i8]* %18, i64 0, i64 0
%38 = load i8*, i8** %5
%39 = load i8*, i8** %14
%40 = load i32, i32* %6
%41 = call i32 @foursquareDecipher(i8* %36, i8* %37, i8* %38, i8* %39, i32 %40)
%42 = load i8*, i8** %14
%43 = load i32, i32* %6
%44 = call double @scoreTextQgram(i8* %42, i32 %43)
store double %44, double* %21
%45 = load double, double* %21
store double %45, double* %23
store float 2.000000e+01, float* %12
br label %46
46: ; preds = %134, %4
%47 = load float, float* %12
%48 = fcmp oge float %47, 0.000000e+00
br i1 %48, label %49, label %139
49: ; preds = %46
store i32 0, i32* %11
br label %50
50: ; preds = %130, %49
%51 = load i32, i32* %11
%52 = icmp slt i32 %51, 10000
br i1 %52, label %53, label %133
53: ; preds = %50
%54 = getelementptr inbounds [26 x i8], [26 x i8]* %15, i64 0, i64 0
%55 = getelementptr inbounds [26 x i8], [26 x i8]* %17, i64 0, i64 0
%56 = call i32 @strcpy(i8* %54, i8* %55)
%57 = getelementptr inbounds [26 x i8], [26 x i8]* %16, i64 0, i64 0
%58 = getelementptr inbounds [26 x i8], [26 x i8]* %18, i64 0, i64 0
%59 = call i32 @strcpy(i8* %57, i8* %58)
%60 = load i32, i32* %11
%61 = srem i32 %60, 2
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %53
%64 = getelementptr inbounds [26 x i8], [26 x i8]* %15, i64 0, i64 0
%65 = call i32 @exchange2letters(i8* %64)
br label %69
66: ; preds = %53
%67 = getelementptr inbounds [26 x i8], [26 x i8]* %16, i64 0, i64 0
%68 = call i32 @exchange2letters(i8* %67)
br label %69
69: ; preds = %66, %63
%70 = getelementptr inbounds [26 x i8], [26 x i8]* %15, i64 0, i64 0
%71 = getelementptr inbounds [26 x i8], [26 x i8]* %16, i64 0, i64 0
%72 = load i8*, i8** %5
%73 = load i8*, i8** %14
%74 = load i32, i32* %6
%75 = call i32 @foursquareDecipher(i8* %70, i8* %71, i8* %72, i8* %73, i32 %74)
%76 = load i8*, i8** %14
%77 = load i32, i32* %6
%78 = call double @scoreTextQgram(i8* %76, i32 %77)
store double %78, double* %22
%79 = load double, double* %22
%80 = load double, double* %21
%81 = fsub double %79, %80
store double %81, double* %20
%82 = load double, double* %20
%83 = fcmp oge double %82, 0.000000e+00
br i1 %83, label %84, label %92
84: ; preds = %69
%85 = load double, double* %22
store double %85, double* %21
%86 = getelementptr inbounds [26 x i8], [26 x i8]* %17, i64 0, i64 0
%87 = getelementptr inbounds [26 x i8], [26 x i8]* %15, i64 0, i64 0
%88 = call i32 @strcpy(i8* %86, i8* %87)
%89 = getelementptr inbounds [26 x i8], [26 x i8]* %18, i64 0, i64 0
%90 = getelementptr inbounds [26 x i8], [26 x i8]* %16, i64 0, i64 0
%91 = call i32 @strcpy(i8* %89, i8* %90)
br label %117
92: ; preds = %69
%93 = load float, float* %12
%94 = fcmp ogt float %93, 0.000000e+00
br i1 %94, label %95, label %116
95: ; preds = %92
%96 = load double, double* %20
%97 = load float, float* %12
%98 = fpext float %97 to double
%99 = fdiv double %96, %98
%100 = call double @exp(double %99)
store double %100, double* %19
%101 = load double, double* %19
%102 = call double (...) @rand()
%103 = fmul double 1.000000e+00, %102
%104 = load double, double* @RAND_MAX
%105 = fdiv double %103, %104
%106 = fcmp ogt double %101, %105
br i1 %106, label %107, label %115
107: ; preds = %95
%108 = load double, double* %22
store double %108, double* %21
%109 = getelementptr inbounds [26 x i8], [26 x i8]* %17, i64 0, i64 0
%110 = getelementptr inbounds [26 x i8], [26 x i8]* %15, i64 0, i64 0
%111 = call i32 @strcpy(i8* %109, i8* %110)
%112 = getelementptr inbounds [26 x i8], [26 x i8]* %18, i64 0, i64 0
%113 = getelementptr inbounds [26 x i8], [26 x i8]* %16, i64 0, i64 0
%114 = call i32 @strcpy(i8* %112, i8* %113)
br label %115
115: ; preds = %107, %95
br label %116
116: ; preds = %115, %92
br label %117
117: ; preds = %116, %84
%118 = load double, double* %21
%119 = load double, double* %23
%120 = fcmp ogt double %118, %119
br i1 %120, label %121, label %129
121: ; preds = %117
%122 = load double, double* %21
store double %122, double* %23
%123 = load i8*, i8** %7
%124 = getelementptr inbounds [26 x i8], [26 x i8]* %17, i64 0, i64 0
%125 = call i32 @strcpy(i8* %123, i8* %124)
%126 = load i8*, i8** %8
%127 = getelementptr inbounds [26 x i8], [26 x i8]* %18, i64 0, i64 0
%128 = call i32 @strcpy(i8* %126, i8* %127)
br label %129
129: ; preds = %121, %117
br label %130
130: ; preds = %129
%131 = load i32, i32* %11
%132 = add nsw i32 %131, 1
store i32 %132, i32* %11
br label %50
133: ; preds = %50
br label %134
134: ; preds = %133
%135 = load float, float* %12
%136 = fpext float %135 to double
%137 = fsub double %136, 1.000000e-01
%138 = fptrunc double %137 to float
store float %138, float* %12
br label %46
139: ; preds = %46
%140 = load i8*, i8** %14
%141 = call i32 @free(i8* %140)
%142 = load double, double* %23
%143 = fptrunc double %142 to float
ret float %143
}

LLVM IR (-O2):
@RAND_MAX = global double 0.000000e+00
define float @foursquareCrack(i8* %0, i32 %1, i8* %2, i8* %3) {
%5 = alloca [26 x i8]
%6 = alloca [26 x i8]
%7 = alloca [26 x i8]
%8 = alloca [26 x i8]
%9 = add nsw i32 %1, 1
%10 = tail call i8* @malloc(i32 %9)
%11 = getelementptr inbounds [26 x i8], [26 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [26 x i8], [26 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [26 x i8], [26 x i8]* %7, i64 0, i64 0
%14 = getelementptr inbounds [26 x i8], [26 x i8]* %8, i64 0, i64 0
%15 = call i32 @strcpy(i8* %13, i8* %2)
%16 = call i32 @strcpy(i8* %14, i8* %3)
%17 = call i32 @foursquareDecipher(i8* %13, i8* %14, i8* %0, i8* %10, i32 %1)
%18 = call double @scoreTextQgram(i8* %10, i32 %1)
br label %19
19: ; preds = %4, %60
%20 = phi double [ %18, %4 ], [ %57, %60 ]
%21 = phi double [ %18, %4 ], [ %51, %60 ]
%22 = phi float [ 2.000000e+01, %4 ], [ %62, %60 ]
%23 = fcmp ogt float %22, 0.000000e+00
%24 = fpext float %22 to double
br label %25
25: ; preds = %19, %56
%26 = phi double [ %20, %19 ], [ %57, %56 ]
%27 = phi i32 [ 0, %19 ], [ %58, %56 ]
%28 = phi double [ %21, %19 ], [ %51, %56 ]
%29 = call i32 @strcpy(i8* %11, i8* %13)
%30 = call i32 @strcpy(i8* %12, i8* %14)
%31 = and i32 %27, 1
%32 = icmp eq i32 %31, 0
%33 = select i1 %32, i8* %11, i8* %12
%34 = call i32 @exchange2letters(i8* %33)
%35 = call i32 @foursquareDecipher(i8* %11, i8* %12, i8* %0, i8* %10, i32 %1)
%36 = call double @scoreTextQgram(i8* %10, i32 %1)
%37 = fsub double %36, %28
%38 = fcmp ult double %37, 0.000000e+00
br i1 %38, label %39, label %47
39: ; preds = %25
br i1 %23, label %40, label %50
40: ; preds = %39
%41 = fdiv double %37, %24
%42 = call double @exp(double %41)
%43 = call double (...) @rand()
%44 = load double, double* @RAND_MAX
%45 = fdiv double %43, %44
%46 = fcmp ogt double %42, %45
br i1 %46, label %47, label %50
47: ; preds = %40, %25
%48 = call i32 @strcpy(i8* %13, i8* %11)
%49 = call i32 @strcpy(i8* %14, i8* %12)
br label %50
50: ; preds = %47, %39, %40
%51 = phi double [ %28, %40 ], [ %28, %39 ], [ %36, %47 ]
%52 = fcmp ogt double %51, %26
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = call i32 @strcpy(i8* %2, i8* %13)
%55 = call i32 @strcpy(i8* %3, i8* %14)
br label %56
56: ; preds = %50, %53
%57 = phi double [ %51, %53 ], [ %26, %50 ]
%58 = add nuw nsw i32 %27, 1
%59 = icmp eq i32 %58, 10000
br i1 %59, label %60, label %25
60: ; preds = %56
%61 = fadd double %24, -1.000000e-01
%62 = fptrunc double %61 to float
%63 = fcmp ult float %62, 0.000000e+00
br i1 %63, label %64, label %19
64: ; preds = %60
%65 = call i32 @free(i8* %10)
%66 = fptrunc double %57 to float
ret float %66
}