#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 */
float RAND_MAX;
int /*<<< orphan*/ calc_deltas(float *, float, float, float);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
float log(float);
float *malloc(int);
int /*<<< orphan*/ printf(char *, int, int, int);
scalar_t__ rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  int transmitted = 0, absorbed = 0, returned = 0, count = 0, running = 1,
      max_count = 1000;
  float r = 0.0, thickness = 3.0, arate = 0.05, cos_theta = 1.0, cos_phi = 0.0,
        x = 0.0, y = 0.0, z = 0.0, lbda = 1.0;
  float *dxyz;
  dxyz = malloc(3 * sizeof(*dxyz));
  if (dxyz == NULL) {
    fprintf(stderr, "allocation error\n");
    exit(1);
  }
  srand(time(NULL));
  while (running) {
    r = -log((float)rand() / RAND_MAX) / lbda;
    calc_deltas(dxyz, r, cos_phi, cos_theta);
    x += dxyz[0];
    y += dxyz[1];
    z += dxyz[2];
    cos_theta = 2 * (((float)rand() / RAND_MAX) - 0.5);
    cos_phi = 2 * (((float)rand() / RAND_MAX) - 0.5);
    if (x > thickness) {
      transmitted++;
      count++;
      if (count < max_count) {
        x = 0.0;
        y = 0.0;
        z = 0.0;
        cos_theta = 1.0;
        cos_phi = 0.0;
      } else {
        running = 0;
      }
    } else if (x < 0.0) {
      returned++;
      count++;
      if (count < max_count) {
        x = 0.0;
        y = 0.0;
        z = 0.0;
        cos_theta = 1.0;
        cos_phi = 0.0;
      } else {
        running = 0;
      }
    } else if (((float)rand() / RAND_MAX) < arate) {
      absorbed++;
      count++;
      if (count < max_count) {
        x = 0.0;
        y = 0.0;
        z = 0.0;
        cos_theta = 1.0;
        cos_phi = 0.0;
      } else {
        running = 0;
      }
    }
  }
  printf("Transmitted: %i, Returned: %i, Absorbed, %i", transmitted, returned,
         absorbed);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x3e8,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xe2f(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  0xe1e(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  0xe0d(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0xde0(%rip),%xmm0
movss  %xmm0,-0x40(%rbp)
mov    $0xc,%edi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    125d <main+0xcd>
mov    0x2d93(%rip),%rax
mov    (%rax),%edi
lea    0xdd2(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
cmpl   $0x0,-0x18(%rbp)
je     14df <main+0x34f>
mov    $0x0,%al
call   10b0 <rand@plt>
cvtsi2ss %rax,%xmm0
mov    0x2d5e(%rip),%rax
divss  (%rax),%xmm0
call   1090 <log@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
divss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x48(%rbp),%rdi
movss  -0x20(%rbp),%xmm0
movss  -0x30(%rbp),%xmm1
movss  -0x2c(%rbp),%xmm2
call   1080 <calc_deltas@plt>
mov    -0x48(%rbp),%rax
movss  (%rax),%xmm0
addss  -0x34(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x48(%rbp),%rax
movss  0x4(%rax),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x38(%rbp)
mov    -0x48(%rbp),%rax
movss  0x8(%rax),%xmm0
addss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x3c(%rbp)
mov    $0x0,%al
call   10b0 <rand@plt>
cvtsi2ss %rax,%xmm0
mov    0x2cdb(%rip),%rax
divss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xcfb(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xce7(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    $0x0,%al
call   10b0 <rand@plt>
cvtsi2ss %rax,%xmm0
mov    0x2c9f(%rip),%rax
divss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xcbf(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xcab(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x34(%rbp),%xmm0
ucomiss -0x24(%rbp),%xmm0
jbe    13dd <main+0x24d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13d1 <main+0x241>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0xc41(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
jmp    13d8 <main+0x248>
movl   $0x0,-0x18(%rbp)
jmp    14da <main+0x34a>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    144f <main+0x2bf>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1443 <main+0x2b3>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0xbcf(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
jmp    144a <main+0x2ba>
movl   $0x0,-0x18(%rbp)
jmp    14d5 <main+0x345>
mov    $0x0,%al
call   10b0 <rand@plt>
cvtsi2ss %rax,%xmm1
mov    0x2b86(%rip),%rax
divss  (%rax),%xmm1
movss  -0x28(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    14d0 <main+0x340>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    14c4 <main+0x334>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0xb4e(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
jmp    14cb <main+0x33b>
movl   $0x0,-0x18(%rbp)
jmp    14d0 <main+0x340>
jmp    14d5 <main+0x345>
jmp    14da <main+0x34a>
jmp    126d <main+0xdd>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xb43(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%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    $0xc,%edi
call   1070 <malloc@plt>
test   %rax,%rax
je     1320 <main+0x190>
mov    %rax,%r13
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    0x2e1f(%rip),%rbx
xor    %r12d,%r12d
movl   $0x0,0xc(%rsp)
xor    %r15d,%r15d
xor    %r14d,%r14d
jmp    11f8 <main+0x68>
nopl   0x0(%rax)
add    $0x1,%r12d
lea    0x1(%r14),%eax
cmp    $0x3e7,%r14d
mov    %eax,%r14d
jge    12f9 <main+0x169>
xorps  %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
movaps 0xdf8(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
nopl   (%rax)
xor    %eax,%eax
call   10b0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
divss  (%rbx),%xmm0
call   1090 <log@plt>
xorps  0xde1(%rip),%xmm0
movaps 0x10(%rsp),%xmm1
movaps %xmm1,%xmm2
shufps $0x55,%xmm1,%xmm2
mov    %r13,%rdi
call   1080 <calc_deltas@plt>
movss  0x8(%rsp),%xmm0
addss  0x0(%r13),%xmm0
movss  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   10b0 <rand@plt>
mov    %rax,%rbp
movss  (%rbx),%xmm0
movaps %xmm0,0x10(%rsp)
xor    %eax,%eax
call   10b0 <rand@plt>
movss  0x8(%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtsi2ss %rbp,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ss %rax,%xmm1
unpcklps %xmm0,%xmm1
movss  (%rbx),%xmm0
unpcklps 0x10(%rsp),%xmm0
divps  %xmm0,%xmm1
cvtps2pd %xmm1,%xmm0
addpd  0xd81(%rip),%xmm0
ucomiss 0xd8a(%rip),%xmm2
ja     11e0 <main+0x50>
xorps  %xmm1,%xmm1
ucomiss %xmm2,%xmm1
ja     12f0 <main+0x160>
addpd  %xmm0,%xmm0
cvtpd2ps %xmm0,%xmm0
movapd %xmm0,0x10(%rsp)
xor    %eax,%eax
call   10b0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
divss  (%rbx),%xmm0
movss  0xd57(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1210 <main+0x80>
addl   $0x1,0xc(%rsp)
jmp    11e4 <main+0x54>
add    $0x1,%r15d
jmp    11e4 <main+0x54>
lea    0xd4e(%rip),%rdi
mov    %r12d,%esi
mov    %r15d,%edx
mov    0xc(%rsp),%ecx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cb1(%rip),%rax
mov    (%rax),%edi
lea    0xd0c(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [18 x i8] c"allocation error\0A\00"
@RAND_MAX = global float 0.000000e+00
@.str.1 = [44 x i8] c"Transmitted: %i, Returned: %i, Absorbed, %i\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float*
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 1, i32* %6
store i32 1000, i32* %7
store float 0.000000e+00, float* %8
store float 3.000000e+00, float* %9
store float 0x3FA99999A0000000, float* %10
store float 1.000000e+00, float* %11
store float 0.000000e+00, float* %12
store float 0.000000e+00, float* %13
store float 0.000000e+00, float* %14
store float 0.000000e+00, float* %15
store float 1.000000e+00, float* %16
%18 = call float* @malloc(i32 12)
store float* %18, float** %17
%19 = load float*, float** %17
%20 = icmp eq float* %19, null
br i1 %20, label %21, label %25
21: ; preds = %0
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %0
%26 = call i32 @time(i32* null)
%27 = call i32 @srand(i32 %26)
br label %28
28: ; preds = %125, %25
%29 = load i32, i32* %6
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %126
31: ; preds = %28
%32 = call i64 (...) @rand()
%33 = sitofp i64 %32 to float
%34 = load float, float* @RAND_MAX
%35 = fdiv float %33, %34
%36 = call float @log(float %35)
%37 = fneg float %36
%38 = load float, float* %16
%39 = fdiv float %37, %38
store float %39, float* %8
%40 = load float*, float** %17
%41 = load float, float* %8
%42 = load float, float* %12
%43 = load float, float* %11
%44 = call i32 @calc_deltas(float* %40, float %41, float %42, float %43)
%45 = load float*, float** %17
%46 = getelementptr inbounds float, float* %45, i64 0
%47 = load float, float* %46
%48 = load float, float* %13
%49 = fadd float %48, %47
store float %49, float* %13
%50 = load float*, float** %17
%51 = getelementptr inbounds float, float* %50, i64 1
%52 = load float, float* %51
%53 = load float, float* %14
%54 = fadd float %53, %52
store float %54, float* %14
%55 = load float*, float** %17
%56 = getelementptr inbounds float, float* %55, i64 2
%57 = load float, float* %56
%58 = load float, float* %15
%59 = fadd float %58, %57
store float %59, float* %15
%60 = call i64 (...) @rand()
%61 = sitofp i64 %60 to float
%62 = load float, float* @RAND_MAX
%63 = fdiv float %61, %62
%64 = fpext float %63 to double
%65 = fsub double %64, 5.000000e-01
%66 = fmul double 2.000000e+00, %65
%67 = fptrunc double %66 to float
store float %67, float* %11
%68 = call i64 (...) @rand()
%69 = sitofp i64 %68 to float
%70 = load float, float* @RAND_MAX
%71 = fdiv float %69, %70
%72 = fpext float %71 to double
%73 = fsub double %72, 5.000000e-01
%74 = fmul double 2.000000e+00, %73
%75 = fptrunc double %74 to float
store float %75, float* %12
%76 = load float, float* %13
%77 = load float, float* %9
%78 = fcmp ogt float %76, %77
br i1 %78, label %79, label %90
79: ; preds = %31
%80 = load i32, i32* %2
%81 = add nsw i32 %80, 1
store i32 %81, i32* %2
%82 = load i32, i32* %5
%83 = add nsw i32 %82, 1
store i32 %83, i32* %5
%84 = load i32, i32* %5
%85 = load i32, i32* %7
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %88
87: ; preds = %79
store float 0.000000e+00, float* %13
store float 0.000000e+00, float* %14
store float 0.000000e+00, float* %15
store float 1.000000e+00, float* %11
store float 0.000000e+00, float* %12
br label %89
88: ; preds = %79
store i32 0, i32* %6
br label %89
89: ; preds = %88, %87
br label %125
90: ; preds = %31
%91 = load float, float* %13
%92 = fpext float %91 to double
%93 = fcmp olt double %92, 0.000000e+00
br i1 %93, label %94, label %105
94: ; preds = %90
%95 = load i32, i32* %4
%96 = add nsw i32 %95, 1
store i32 %96, i32* %4
%97 = load i32, i32* %5
%98 = add nsw i32 %97, 1
store i32 %98, i32* %5
%99 = load i32, i32* %5
%100 = load i32, i32* %7
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %103
102: ; preds = %94
store float 0.000000e+00, float* %13
store float 0.000000e+00, float* %14
store float 0.000000e+00, float* %15
store float 1.000000e+00, float* %11
store float 0.000000e+00, float* %12
br label %104
103: ; preds = %94
store i32 0, i32* %6
br label %104
104: ; preds = %103, %102
br label %124
105: ; preds = %90
%106 = call i64 (...) @rand()
%107 = sitofp i64 %106 to float
%108 = load float, float* @RAND_MAX
%109 = fdiv float %107, %108
%110 = load float, float* %10
%111 = fcmp olt float %109, %110
br i1 %111, label %112, label %123
112: ; preds = %105
%113 = load i32, i32* %3
%114 = add nsw i32 %113, 1
store i32 %114, i32* %3
%115 = load i32, i32* %5
%116 = add nsw i32 %115, 1
store i32 %116, i32* %5
%117 = load i32, i32* %5
%118 = load i32, i32* %7
%119 = icmp slt i32 %117, %118
br i1 %119, label %120, label %121
120: ; preds = %112
store float 0.000000e+00, float* %13
store float 0.000000e+00, float* %14
store float 0.000000e+00, float* %15
store float 1.000000e+00, float* %11
store float 0.000000e+00, float* %12
br label %122
121: ; preds = %112
store i32 0, i32* %6
br label %122
122: ; preds = %121, %120
br label %123
123: ; preds = %122, %105
br label %124
124: ; preds = %123, %104
br label %125
125: ; preds = %124, %89
br label %28
126: ; preds = %28
%127 = load i32, i32* %2
%128 = load i32, i32* %4
%129 = load i32, i32* %3
%130 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), i32 %127, i32 %128, i32 %129)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [18 x i8] c"allocation error\0A\00"
@RAND_MAX = global float 0.000000e+00
@.str.1 = [44 x i8] c"Transmitted: %i, Returned: %i, Absorbed, %i\00"
define i32 @main() {
%1 = tail call float* @malloc(i32 12)
%2 = icmp eq float* %1, null
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @exit(i32 1)
unreachable
7: ; preds = %0
%8 = tail call i32 @time(i32* null)
%9 = tail call i32 @srand(i32 %8)
br label %10
10: ; preds = %51, %7
%11 = phi i32 [ %52, %51 ], [ 0, %7 ]
%12 = phi i32 [ %16, %51 ], [ 0, %7 ]
%13 = phi i32 [ %20, %51 ], [ 0, %7 ]
%14 = phi i32 [ %53, %51 ], [ 0, %7 ]
br label %15
15: ; preds = %10, %67
%16 = phi i32 [ %12, %10 ], [ %68, %67 ]
%17 = phi i32 [ %13, %10 ], [ %20, %67 ]
%18 = phi i32 [ %14, %10 ], [ %69, %67 ]
br label %19
19: ; preds = %15, %57
%20 = phi i32 [ %17, %15 ], [ %58, %57 ]
%21 = phi i32 [ %18, %15 ], [ %59, %57 ]
br label %22
22: ; preds = %61, %19
%23 = phi float [ 0.000000e+00, %19 ], [ %35, %61 ]
%24 = phi <2 x float> [ <float 0.000000e+00, float 1.000000e+00>, %19 ], [ %49, %61 ]
%25 = tail call i64 (...) @rand()
%26 = sitofp i64 %25 to float
%27 = load float, float* @RAND_MAX
%28 = fdiv float %26, %27
%29 = tail call float @log(float %28)
%30 = fneg float %29
%31 = extractelement <2 x float> %24, i64 0
%32 = extractelement <2 x float> %24, i64 1
%33 = tail call i32 @calc_deltas(float* %1, float %30, float %31, float %32)
%34 = load float, float* %1
%35 = fadd float %23, %34
%36 = tail call i64 (...) @rand()
%37 = load float, float* @RAND_MAX
%38 = tail call i64 (...) @rand()
%39 = insertelement <2 x i64> poison, i64 %38, i64 0
%40 = insertelement <2 x i64> %39, i64 %36, i64 1
%41 = sitofp <2 x i64> %40 to <2 x float>
%42 = load float, float* @RAND_MAX
%43 = insertelement <2 x float> poison, float %42, i64 0
%44 = insertelement <2 x float> %43, float %37, i64 1
%45 = fdiv <2 x float> %41, %44
%46 = fpext <2 x float> %45 to <2 x double>
%47 = fadd <2 x double> %46, <double -5.000000e-01, double -5.000000e-01>
%48 = fmul <2 x double> %47, <double 2.000000e+00, double 2.000000e+00>
%49 = fptrunc <2 x double> %48 to <2 x float>
%50 = fcmp ogt float %35, 3.000000e+00
br i1 %50, label %51, label %55
51: ; preds = %22
%52 = add nuw nsw i32 %11, 1
%53 = add nsw i32 %21, 1
%54 = icmp slt i32 %21, 999
br i1 %54, label %10, label %71
55: ; preds = %22
%56 = fcmp olt float %35, 0.000000e+00
br i1 %56, label %57, label %61
57: ; preds = %55
%58 = add nsw i32 %20, 1
%59 = add nsw i32 %21, 1
%60 = icmp slt i32 %21, 999
br i1 %60, label %19, label %71
61: ; preds = %55
%62 = tail call i64 (...) @rand()
%63 = sitofp i64 %62 to float
%64 = load float, float* @RAND_MAX
%65 = fdiv float %63, %64
%66 = fcmp olt float %65, 0x3FA99999A0000000
br i1 %66, label %67, label %22
67: ; preds = %61
%68 = add nsw i32 %16, 1
%69 = add nsw i32 %21, 1
%70 = icmp slt i32 %21, 999
br i1 %70, label %15, label %71
71: ; preds = %51, %67, %57
%72 = phi i32 [ %11, %57 ], [ %11, %67 ], [ %52, %51 ]
%73 = phi i32 [ %16, %57 ], [ %68, %67 ], [ %16, %51 ]
%74 = phi i32 [ %58, %57 ], [ %20, %67 ], [ %20, %51 ]
%75 = tail call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), i32 %72, i32 %74, i32 %73)
ret i32 0
}