#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*/ endxlate();
int irandomn(int);
int /*<<< orphan*/ keep_block(double, double, double);
double perturb(double, double);
double randomn(double);
int /*<<< orphan*/ scadinline(char *, double, double, double, double, double,
                              double, double);
int /*<<< orphan*/ xkeep_topper(double, double, double, int);
int /*<<< orphan*/ xlate(double, double, double);
void recursive_keep(double x, double y, double width, double length,
                    double height, int level) {
  int i;
  if (irandomn(1000) < 300) {
    xlate(x, y, 0);
    keep_block(width, length, height);
    endxlate();
    xlate(0, 0, height);
    recursive_keep(x, y, width, length, perturb(height, 0.2), level);
    endxlate();
    return;
  }
  if (level == 0 || irandomn(1000) < 300) {
    xlate(x, y, 0);
    xkeep_topper(width, length, height, 1);
    endxlate();
    return;
  }
  i = irandomn(100);
  xlate(x, y, 0);
  keep_block(width, length, height);
  endxlate();
  xlate(0, 0, height);
  if ((level % 2) == 0) {
    double offset, nw1, nw2, x1, x2;
    offset = randomn(width * 0.2) - (0.1 * width);
    offset = 0.0;
    nw1 = (width / 2.0) + offset;
    nw2 = (width - nw1);
    x1 = x - offset / 2.0 - 0.25 * width;
    x2 = x + 0.25 * width - offset / 2.0;
    scadinline(
        "/* x/y = %lf,%lf, o=%lf nw1 = %lf, nw2 = %lf, x1 = %lf, x2 = %lf */\n",
        x, y, offset, nw1, nw2, x1, x2);
    recursive_keep(x1, y, nw1, length, perturb(height, 0.2), level - 1);
    recursive_keep(x2, y, nw2, length, perturb(height, 0.2), level - 1);
  } else {
    double offset, nl1, nl2, y1, y2;
    offset = randomn(length * 0.2) - (0.1 * length);
    offset = 0.0;
    nl1 = (length / 2.0) + offset;
    nl2 = (length - nl1);
    y1 = y - offset / 2.0 - 0.25 * length;
    y2 = y + 0.25 * length - offset / 2.0;
    scadinline(
        "/* x/y = %lf,%lf, o=%lf nl1 = %lf, nl2 = %lf, y1 = %lf, y2 = %lf */\n",
        x, y, offset, nl1, nl2, y1, y2);
    recursive_keep(x, y1, width, nl1, perturb(height, 0.2), level - 1);
    recursive_keep(x, y2, width, nl2, perturb(height, 0.2), level - 1);
  }
  endxlate();
}


x86 assembly (clang, -O0):
<recursive_keep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
mov    %edi,-0x2c(%rbp)
mov    $0x3e8,%edi
call   10b0 <irandomn@plt>
cmp    $0x12c,%eax
jge    1286 <recursive_keep+0xf6>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
xorps  %xmm2,%xmm2
call   1040 <xlate@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
call   1030 <keep_block@plt>
mov    $0x0,%al
call   1080 <endxlate@plt>
movsd  -0x28(%rbp),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm1,%xmm0
call   1040 <xlate@plt>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0xdb6(%rip),%xmm1
call   1050 <perturb@plt>
movsd  -0xa0(%rbp),%xmm1
ff
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm3
ff
movaps %xmm0,%xmm4
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%edi
call   1060 <recursive_keep@plt>
mov    $0x0,%al
call   1080 <endxlate@plt>
jmp    1706 <recursive_keep+0x576>
cmpl   $0x0,-0x2c(%rbp)
je     12a5 <recursive_keep+0x115>
mov    $0x3e8,%edi
call   10b0 <irandomn@plt>
cmp    $0x12c,%eax
jge    12dc <recursive_keep+0x14c>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
xorps  %xmm2,%xmm2
call   1040 <xlate@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
mov    $0x1,%edi
call   1090 <xkeep_topper@plt>
mov    $0x0,%al
call   1080 <endxlate@plt>
jmp    1706 <recursive_keep+0x576>
mov    $0x64,%edi
call   10b0 <irandomn@plt>
mov    %eax,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
xorps  %xmm2,%xmm2
call   1040 <xlate@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
call   1030 <keep_block@plt>
mov    $0x0,%al
call   1080 <endxlate@plt>
movsd  -0x28(%rbp),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm1,%xmm0
call   1040 <xlate@plt>
mov    -0x2c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    151f <recursive_keep+0x38f>
movsd  0xcbe(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   10a0 <randomn@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xcc4(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xc8a(%rip),%xmm1
divsd  %xmm1,%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  0xc5b(%rip),%xmm2
divsd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xc56(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xc2f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xc12(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm4
movsd  -0x50(%rbp),%xmm5
movsd  -0x58(%rbp),%xmm6
lea    0xbfb(%rip),%rdi
call   1070 <scadinline@plt>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0xb8d(%rip),%xmm1
call   1050 <perturb@plt>
movsd  -0xe0(%rbp),%xmm1
ff
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0xd0(%rbp),%xmm3
ff
movaps %xmm0,%xmm4
movsd  -0xc8(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%edi
sub    $0x1,%edi
call   1060 <recursive_keep@plt>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0xb19(%rip),%xmm1
call   1050 <perturb@plt>
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xb0(%rbp),%xmm3
ff
movaps %xmm0,%xmm4
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%edi
sub    $0x1,%edi
call   1060 <recursive_keep@plt>
jmp    16ff <recursive_keep+0x56f>
movsd  0xad9(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
call   10a0 <randomn@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xadf(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xaa5(%rip),%xmm1
divsd  %xmm1,%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x20(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  0xa76(%rip),%xmm2
divsd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xa71(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xa4a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  0xa2d(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm3
movsd  -0x70(%rbp),%xmm4
movsd  -0x78(%rbp),%xmm5
movsd  -0x80(%rbp),%xmm6
lea    0xa5b(%rip),%rdi
call   1070 <scadinline@plt>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0x9a8(%rip),%xmm1
call   1050 <perturb@plt>
movsd  -0x120(%rbp),%xmm1
ff
movsd  -0x118(%rbp),%xmm2
ff
movsd  -0x110(%rbp),%xmm3
ff
movaps %xmm0,%xmm4
movsd  -0x108(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%edi
sub    $0x1,%edi
call   1060 <recursive_keep@plt>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0x934(%rip),%xmm1
call   1050 <perturb@plt>
movsd  -0x100(%rbp),%xmm1
ff
movsd  -0xf8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm3
ff
movaps %xmm0,%xmm4
movsd  -0xe8(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%edi
sub    $0x1,%edi
call   1060 <recursive_keep@plt>
mov    $0x0,%al
call   1080 <endxlate@plt>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<recursive_keep>:
push   %rbx
sub    $0x40,%rsp
mov    %edi,%ebx
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x8(%rsp)
movsd  %xmm2,(%rsp)
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    $0x3e8,%edi
call   10b0 <irandomn@plt>
cmp    $0x12c,%eax
jge    123d <recursive_keep+0xad>
xorps  %xmm2,%xmm2
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
call   1040 <xlate@plt>
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
call   1030 <keep_block@plt>
xor    %eax,%eax
call   1080 <endxlate@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0x10(%rsp),%xmm2
call   1040 <xlate@plt>
movsd  0xdf1(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1050 <perturb@plt>
movaps %xmm0,%xmm4
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
mov    %ebx,%edi
call   1060 <recursive_keep@plt>
jmp    1281 <recursive_keep+0xf1>
test   %ebx,%ebx
je     1252 <recursive_keep+0xc2>
mov    $0x3e8,%edi
call   10b0 <irandomn@plt>
cmp    $0x12b,%eax
jg     128d <recursive_keep+0xfd>
xorps  %xmm2,%xmm2
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
call   1040 <xlate@plt>
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
mov    $0x1,%edi
call   1090 <xkeep_topper@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
jmp    1080 <endxlate@plt>
mov    $0x64,%edi
call   10b0 <irandomn@plt>
xorps  %xmm2,%xmm2
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
call   1040 <xlate@plt>
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
call   1030 <keep_block@plt>
xor    %eax,%eax
call   1080 <endxlate@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0x10(%rsp),%xmm2
call   1040 <xlate@plt>
test   $0x1,%bl
jne    13d8 <recursive_keep+0x248>
movsd  (%rsp),%xmm0
mulsd  0xd11(%rip),%xmm0
call   10a0 <randomn@plt>
movsd  0xd0c(%rip),%xmm2
movsd  (%rsp),%xmm1
mulsd  %xmm1,%xmm2
addsd  0xd13(%rip),%xmm2
movapd %xmm1,%xmm0
subsd  %xmm2,%xmm0
movapd %xmm2,%xmm3
movsd  %xmm2,0x30(%rsp)
movapd %xmm0,%xmm4
movsd  %xmm0,0x38(%rsp)
movsd  0xcdf(%rip),%xmm2
mulsd  %xmm1,%xmm2
movsd  0x18(%rsp),%xmm0
addsd  %xmm0,%xmm2
movapd %xmm2,%xmm5
movsd  %xmm2,0x28(%rsp)
mulsd  0xcc7(%rip),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm6
movsd  %xmm1,(%rsp)
lea    0xcc3(%rip),%rdi
xorpd  %xmm2,%xmm2
movsd  0x20(%rsp),%xmm1
call   1070 <scadinline@plt>
movsd  0x10(%rsp),%xmm0
movsd  0xc7e(%rip),%xmm1
call   1050 <perturb@plt>
movaps %xmm0,%xmm4
add    $0xffffffff,%ebx
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
mov    %ebx,%edi
call   1060 <recursive_keep@plt>
movsd  0x10(%rsp),%xmm0
movsd  0xc46(%rip),%xmm1
call   1050 <perturb@plt>
movaps %xmm0,%xmm4
movsd  (%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x38(%rsp),%xmm2
jmp    122e <recursive_keep+0x9e>
movsd  0x8(%rsp),%xmm0
mulsd  0xc1a(%rip),%xmm0
call   10a0 <randomn@plt>
movsd  0xc15(%rip),%xmm2
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  0xc1b(%rip),%xmm2
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
movapd %xmm2,%xmm3
movsd  %xmm2,0x30(%rsp)
movapd %xmm1,%xmm4
movsd  %xmm1,0x38(%rsp)
movsd  0xbe7(%rip),%xmm2
mulsd  %xmm0,%xmm2
movsd  0x20(%rsp),%xmm1
addsd  %xmm1,%xmm2
movapd %xmm2,%xmm5
movsd  %xmm2,0x28(%rsp)
mulsd  0xbcf(%rip),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm0,%xmm6
movsd  %xmm0,0x8(%rsp)
lea    0xc0f(%rip),%rdi
xorpd  %xmm2,%xmm2
movsd  0x18(%rsp),%xmm0
call   1070 <scadinline@plt>
movsd  0x10(%rsp),%xmm0
movsd  0xb85(%rip),%xmm1
call   1050 <perturb@plt>
movaps %xmm0,%xmm4
add    $0xffffffff,%ebx
movsd  0x18(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x30(%rsp),%xmm3
mov    %ebx,%edi
call   1060 <recursive_keep@plt>
movsd  0x10(%rsp),%xmm0
movsd  0xb4e(%rip),%xmm1
call   1050 <perturb@plt>
movaps %xmm0,%xmm4
movsd  0x18(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x38(%rsp),%xmm3
jmp    1234 <recursive_keep+0xa4>

LLVM IR (-O0):
@.str = [69 x i8] c"/* x/y = %lf,%lf, o=%lf nw1 = %lf, nw2 = %lf, x1 = %lf, x2 = %lf */\0A\00"
@.str.1 = [69 x i8] c"/* x/y = %lf,%lf, o=%lf nl1 = %lf, nl2 = %lf, y1 = %lf, y2 = %lf */\0A\00"
define void @recursive_keep(double %0, double %1, double %2, double %3, double %4, i32 %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store i32 %5, i32* %12
%24 = call i32 @irandomn(i32 1000)
%25 = icmp slt i32 %24, 300
br i1 %25, label %26, label %45
26: ; preds = %6
%27 = load double, double* %7
%28 = load double, double* %8
%29 = call i32 @xlate(double %27, double %28, double 0.000000e+00)
%30 = load double, double* %9
%31 = load double, double* %10
%32 = load double, double* %11
%33 = call i32 @keep_block(double %30, double %31, double %32)
%34 = call i32 (...) @endxlate()
%35 = load double, double* %11
%36 = call i32 @xlate(double 0.000000e+00, double 0.000000e+00, double %35)
%37 = load double, double* %7
%38 = load double, double* %8
%39 = load double, double* %9
%40 = load double, double* %10
%41 = load double, double* %11
%42 = call double @perturb(double %41, double 2.000000e-01)
%43 = load i32, i32* %12
%44 = call i32 (...) @endxlate()
br label %175
45: ; preds = %6
%46 = load i32, i32* %12
%47 = icmp eq i32 %46, 0
br i1 %47, label %51, label %48
48: ; preds = %45
%49 = call i32 @irandomn(i32 1000)
%50 = icmp slt i32 %49, 300
br i1 %50, label %51, label %60
51: ; preds = %48, %45
%52 = load double, double* %7
%53 = load double, double* %8
%54 = call i32 @xlate(double %52, double %53, double 0.000000e+00)
%55 = load double, double* %9
%56 = load double, double* %10
%57 = load double, double* %11
%58 = call i32 @xkeep_topper(double %55, double %56, double %57, i32 1)
%59 = call i32 (...) @endxlate()
br label %175
60: ; preds = %48
%61 = call i32 @irandomn(i32 100)
store i32 %61, i32* %13
%62 = load double, double* %7
%63 = load double, double* %8
%64 = call i32 @xlate(double %62, double %63, double 0.000000e+00)
%65 = load double, double* %9
%66 = load double, double* %10
%67 = load double, double* %11
%68 = call i32 @keep_block(double %65, double %66, double %67)
%69 = call i32 (...) @endxlate()
%70 = load double, double* %11
%71 = call i32 @xlate(double 0.000000e+00, double 0.000000e+00, double %70)
%72 = load i32, i32* %12
%73 = srem i32 %72, 2
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %124
75: ; preds = %60
%76 = load double, double* %9
%77 = fmul double %76, 2.000000e-01
%78 = call double @randomn(double %77)
%79 = load double, double* %9
%80 = call double @llvm.fmuladd.f64(double -1.000000e-01, double %79, double %78)
store double %80, double* %14
store double 0.000000e+00, double* %14
%81 = load double, double* %9
%82 = fdiv double %81, 2.000000e+00
%83 = load double, double* %14
%84 = fadd double %82, %83
store double %84, double* %15
%85 = load double, double* %9
%86 = load double, double* %15
%87 = fsub double %85, %86
store double %87, double* %16
%88 = load double, double* %7
%89 = load double, double* %14
%90 = fdiv double %89, 2.000000e+00
%91 = fsub double %88, %90
%92 = load double, double* %9
%93 = call double @llvm.fmuladd.f64(double -2.500000e-01, double %92, double %91)
store double %93, double* %17
%94 = load double, double* %7
%95 = load double, double* %9
%96 = call double @llvm.fmuladd.f64(double 2.500000e-01, double %95, double %94)
%97 = load double, double* %14
%98 = fdiv double %97, 2.000000e+00
%99 = fsub double %96, %98
store double %99, double* %18
%100 = load double, double* %7
%101 = load double, double* %8
%102 = load double, double* %14
%103 = load double, double* %15
%104 = load double, double* %16
%105 = load double, double* %17
%106 = load double, double* %18
%107 = call i32 @scadinline(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), double %100, double %101, double %102, double %103, double %104, double %105, double %106)
%108 = load double, double* %17
%109 = load double, double* %8
%110 = load double, double* %15
%111 = load double, double* %10
%112 = load double, double* %11
%113 = call double @perturb(double %112, double 2.000000e-01)
%114 = load i32, i32* %12
%115 = sub nsw i32 %114, 1
%116 = load double, double* %18
%117 = load double, double* %8
%118 = load double, double* %16
%119 = load double, double* %10
%120 = load double, double* %11
%121 = call double @perturb(double %120, double 2.000000e-01)
%122 = load i32, i32* %12
%123 = sub nsw i32 %122, 1
br label %173
124: ; preds = %60
%125 = load double, double* %10
%126 = fmul double %125, 2.000000e-01
%127 = call double @randomn(double %126)
%128 = load double, double* %10
%129 = call double @llvm.fmuladd.f64(double -1.000000e-01, double %128, double %127)
store double %129, double* %19
store double 0.000000e+00, double* %19
%130 = load double, double* %10
%131 = fdiv double %130, 2.000000e+00
%132 = load double, double* %19
%133 = fadd double %131, %132
store double %133, double* %20
%134 = load double, double* %10
%135 = load double, double* %20
%136 = fsub double %134, %135
store double %136, double* %21
%137 = load double, double* %8
%138 = load double, double* %19
%139 = fdiv double %138, 2.000000e+00
%140 = fsub double %137, %139
%141 = load double, double* %10
%142 = call double @llvm.fmuladd.f64(double -2.500000e-01, double %141, double %140)
store double %142, double* %22
%143 = load double, double* %8
%144 = load double, double* %10
%145 = call double @llvm.fmuladd.f64(double 2.500000e-01, double %144, double %143)
%146 = load double, double* %19
%147 = fdiv double %146, 2.000000e+00
%148 = fsub double %145, %147
store double %148, double* %23
%149 = load double, double* %7
%150 = load double, double* %8
%151 = load double, double* %19
%152 = load double, double* %20
%153 = load double, double* %21
%154 = load double, double* %22
%155 = load double, double* %23
%156 = call i32 @scadinline(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0), double %149, double %150, double %151, double %152, double %153, double %154, double %155)
%157 = load double, double* %7
%158 = load double, double* %22
%159 = load double, double* %9
%160 = load double, double* %20
%161 = load double, double* %11
%162 = call double @perturb(double %161, double 2.000000e-01)
%163 = load i32, i32* %12
%164 = sub nsw i32 %163, 1
%165 = load double, double* %7
%166 = load double, double* %23
%167 = load double, double* %9
%168 = load double, double* %21
%169 = load double, double* %11
%170 = call double @perturb(double %169, double 2.000000e-01)
%171 = load i32, i32* %12
%172 = sub nsw i32 %171, 1
br label %173
173: ; preds = %124, %75
%174 = call i32 (...) @endxlate()
br label %175
175: ; preds = %173, %51, %26
ret void
}

LLVM IR (-O2):
@.str = [69 x i8] c"/* x/y = %lf,%lf, o=%lf nw1 = %lf, nw2 = %lf, x1 = %lf, x2 = %lf */\0A\00"
@.str.1 = [69 x i8] c"/* x/y = %lf,%lf, o=%lf nl1 = %lf, nl2 = %lf, y1 = %lf, y2 = %lf */\0A\00"
define void @recursive_keep(double %0, double %1, double %2, double %3, double %4, i32 %5) {
%7 = tail call i32 @irandomn(i32 1000)
%8 = icmp slt i32 %7, 300
br i1 %8, label %11, label %17
9: ; preds = %33, %45, %22, %11
%10 = tail call i32 (...) @endxlate()
ret void
11: ; preds = %6
%12 = tail call i32 @xlate(double %0, double %1, double 0.000000e+00)
%13 = tail call i32 @keep_block(double %2, double %3, double %4)
%14 = tail call i32 (...) @endxlate()
%15 = tail call i32 @xlate(double 0.000000e+00, double 0.000000e+00, double %4)
%16 = tail call double @perturb(double %4, double 2.000000e-01)
tail call void @recursive_keep(double %0, double %1, double %2, double %3, double %16, i32 %5)
br label %9
17: ; preds = %6
%18 = icmp eq i32 %5, 0
br i1 %18, label %22, label %19
19: ; preds = %17
%20 = tail call i32 @irandomn(i32 1000)
%21 = icmp slt i32 %20, 300
br i1 %21, label %22, label %25
22: ; preds = %19, %17
%23 = tail call i32 @xlate(double %0, double %1, double 0.000000e+00)
%24 = tail call i32 @xkeep_topper(double %2, double %3, double %4, i32 1)
br label %9
25: ; preds = %19
%26 = tail call i32 @irandomn(i32 100)
%27 = tail call i32 @xlate(double %0, double %1, double 0.000000e+00)
%28 = tail call i32 @keep_block(double %2, double %3, double %4)
%29 = tail call i32 (...) @endxlate()
%30 = tail call i32 @xlate(double 0.000000e+00, double 0.000000e+00, double %4)
%31 = and i32 %5, 1
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %45
33: ; preds = %25
%34 = fmul double %2, 2.000000e-01
%35 = tail call double @randomn(double %34)
%36 = fmul double %2, 5.000000e-01
%37 = fadd double %36, 0.000000e+00
%38 = fsub double %2, %37
%39 = tail call double @llvm.fmuladd.f64(double %2, double -2.500000e-01, double %0)
%40 = tail call double @llvm.fmuladd.f64(double %2, double 2.500000e-01, double %0)
%41 = tail call i32 @scadinline(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), double %0, double %1, double 0.000000e+00, double %37, double %38, double %39, double %40)
%42 = tail call double @perturb(double %4, double 2.000000e-01)
%43 = add nsw i32 %5, -1
tail call void @recursive_keep(double %39, double %1, double %37, double %3, double %42, i32 %43)
%44 = tail call double @perturb(double %4, double 2.000000e-01)
tail call void @recursive_keep(double %40, double %1, double %38, double %3, double %44, i32 %43)
br label %9
45: ; preds = %25
%46 = fmul double %3, 2.000000e-01
%47 = tail call double @randomn(double %46)
%48 = fmul double %3, 5.000000e-01
%49 = fadd double %48, 0.000000e+00
%50 = fsub double %3, %49
%51 = tail call double @llvm.fmuladd.f64(double %3, double -2.500000e-01, double %1)
%52 = tail call double @llvm.fmuladd.f64(double %3, double 2.500000e-01, double %1)
%53 = tail call i32 @scadinline(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0), double %0, double %1, double 0.000000e+00, double %49, double %50, double %51, double %52)
%54 = tail call double @perturb(double %4, double 2.000000e-01)
%55 = add nsw i32 %5, -1
tail call void @recursive_keep(double %0, double %51, double %2, double %49, double %54, i32 %55)
%56 = tail call double @perturb(double %4, double 2.000000e-01)
tail call void @recursive_keep(double %0, double %52, double %2, double %50, double %56, i32 %55)
br label %9
}