#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*/ cube(double, double, double, int);
int /*<<< orphan*/ endxlate();
int /*<<< orphan*/ gabled_roof(double, double, double);
int /*<<< orphan*/ xlate(int /*<<< orphan*/, int /*<<< orphan*/, double);
void keep_block_void(double width, double length, double height) {
  double w, l, h;
  w = width * 0.8;
  l = length * 0.8;
  h = height * 0.8;
  if (w < 10.0 || l < 10.0 || h < 10.0)
    return;
  xlate(0, 0, -0.30 * h);
  xlate(0, 0, 0.25 * h);
  gabled_roof(l, w, h / 2.0);
  endxlate();
  xlate(0, 0, -h / 4.0);
  cube(w, l, h, 1);
  endxlate();
  endxlate();
}


x86 assembly (clang, -O0):
<keep_block_void>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  0xea9(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe97(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe85(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe6b(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
ja     11c6 <keep_block_void+0x86>
movsd  0xe58(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
ja     11c6 <keep_block_void+0x86>
movsd  0xe45(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    11cb <keep_block_void+0x8b>
jmp    1276 <keep_block_void+0x136>
movsd  0xe55(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
xor    %esi,%esi
mov    %esi,%edi
call   1030 <xlate@plt>
movsd  0xe37(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
xor    %esi,%esi
mov    %esi,%edi
call   1030 <xlate@plt>
movsd  -0x28(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  0xe0a(%rip),%xmm3
divsd  %xmm3,%xmm2
call   1040 <gabled_roof@plt>
mov    $0x0,%al
call   1050 <endxlate@plt>
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xdce(%rip),%xmm1
divsd  %xmm1,%xmm0
xor    %esi,%esi
mov    %esi,%edi
call   1030 <xlate@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
mov    $0x1,%edi
call   1060 <cube@plt>
mov    $0x0,%al
call   1050 <endxlate@plt>
mov    $0x0,%al
call   1050 <endxlate@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<keep_block_void>:
sub    $0x18,%rsp
movapd %xmm0,%xmm4
movsd  0xeb0(%rip),%xmm0
mulsd  %xmm0,%xmm4
movsd  0xeac(%rip),%xmm3
ucomisd %xmm4,%xmm3
ja     1226 <keep_block_void+0xe6>
mulsd  %xmm0,%xmm1
ucomisd %xmm1,%xmm3
ja     1226 <keep_block_void+0xe6>
mulsd  %xmm0,%xmm2
ucomisd %xmm2,%xmm3
ja     1226 <keep_block_void+0xe6>
movsd  0xe86(%rip),%xmm0
mulsd  %xmm2,%xmm0
xor    %edi,%edi
xor    %esi,%esi
movsd  %xmm2,(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm4,0x8(%rsp)
call   1030 <xlate@plt>
movsd  0xe68(%rip),%xmm0
mulsd  (%rsp),%xmm0
xor    %edi,%edi
xor    %esi,%esi
call   1030 <xlate@plt>
movsd  0xe5a(%rip),%xmm2
mulsd  (%rsp),%xmm2
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
call   1040 <gabled_roof@plt>
xor    %eax,%eax
call   1050 <endxlate@plt>
movsd  0xe3d(%rip),%xmm0
mulsd  (%rsp),%xmm0
xor    %edi,%edi
xor    %esi,%esi
call   1030 <xlate@plt>
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  (%rsp),%xmm2
mov    $0x1,%edi
call   1060 <cube@plt>
xor    %eax,%eax
call   1050 <endxlate@plt>
xor    %eax,%eax
add    $0x18,%rsp
jmp    1050 <endxlate@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @keep_block_void(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%10 = load double, double* %4
%11 = fmul double %10, 8.000000e-01
store double %11, double* %7
%12 = load double, double* %5
%13 = fmul double %12, 8.000000e-01
store double %13, double* %8
%14 = load double, double* %6
%15 = fmul double %14, 8.000000e-01
store double %15, double* %9
%16 = load double, double* %7
%17 = fcmp olt double %16, 1.000000e+01
br i1 %17, label %24, label %18
18: ; preds = %3
%19 = load double, double* %8
%20 = fcmp olt double %19, 1.000000e+01
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load double, double* %9
%23 = fcmp olt double %22, 1.000000e+01
br i1 %23, label %24, label %25
24: ; preds = %21, %18, %3
br label %48
25: ; preds = %21
%26 = load double, double* %9
%27 = fmul double -3.000000e-01, %26
%28 = call i32 @xlate(i32 0, i32 0, double %27)
%29 = load double, double* %9
%30 = fmul double 2.500000e-01, %29
%31 = call i32 @xlate(i32 0, i32 0, double %30)
%32 = load double, double* %8
%33 = load double, double* %7
%34 = load double, double* %9
%35 = fdiv double %34, 2.000000e+00
%36 = call i32 @gabled_roof(double %32, double %33, double %35)
%37 = call i32 (...) @endxlate()
%38 = load double, double* %9
%39 = fneg double %38
%40 = fdiv double %39, 4.000000e+00
%41 = call i32 @xlate(i32 0, i32 0, double %40)
%42 = load double, double* %7
%43 = load double, double* %8
%44 = load double, double* %9
%45 = call i32 @cube(double %42, double %43, double %44, i32 1)
%46 = call i32 (...) @endxlate()
%47 = call i32 (...) @endxlate()
br label %48
48: ; preds = %25, %24
ret void
}

LLVM IR (-O2):
define void @keep_block_void(double %0, double %1, double %2) {
%4 = fmul double %0, 8.000000e-01
%5 = fmul double %1, 8.000000e-01
%6 = fmul double %2, 8.000000e-01
%7 = fcmp olt double %4, 1.000000e+01
%8 = fcmp olt double %5, 1.000000e+01
%9 = or i1 %7, %8
%10 = fcmp olt double %6, 1.000000e+01
%11 = or i1 %9, %10
br i1 %11, label %25, label %12
12: ; preds = %3
%13 = fmul double %6, -3.000000e-01
%14 = tail call i32 @xlate(i32 0, i32 0, double %13)
%15 = fmul double %6, 2.500000e-01
%16 = tail call i32 @xlate(i32 0, i32 0, double %15)
%17 = fmul double %6, 5.000000e-01
%18 = tail call i32 @gabled_roof(double %5, double %4, double %17)
%19 = tail call i32 (...) @endxlate()
%20 = fmul double %6, -2.500000e-01
%21 = tail call i32 @xlate(i32 0, i32 0, double %20)
%22 = tail call i32 @cube(double %4, double %5, double %6, i32 1)
%23 = tail call i32 (...) @endxlate()
%24 = tail call i32 (...) @endxlate()
br label %25
25: ; preds = %3, %12
ret void
}