#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 M_PI;
int /*<<< orphan*/ call_module(char *);
float cos(float);
int /*<<< orphan*/ end();
int /*<<< orphan*/ end_module();
int /*<<< orphan*/ fuselage_module(char *, float, float, float);
int /*<<< orphan*/ module(char *);
int /*<<< orphan*/ pod_module(char *, float, float);
float randf(float);
int randn(int);
int /*<<< orphan*/ ring(float);
float sin(float);
int /*<<< orphan*/ spar_module(char *, float, float);
int /*<<< orphan*/ sprintf(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ xlate(float, int /*<<< orphan*/, float);
void outrigger_module(char *modname, float length) {
  static int sparmodnum = 0;
  static int podmodnum = 0;
  int dualpod;
  float angle, dprad;
  char sparmod[30], podmod[30], podmod2[30];
  sprintf(sparmod, "outrigger_spar_%d", sparmodnum++);
  sprintf(podmod, "outrigger_pod_%d", podmodnum++);
  dualpod = (randn(100) < 50);
  angle = randn(60) + 90;
  spar_module(sparmod, length, angle);
  if (randn(100) < 50)
    pod_module(podmod, length / 3.0, length / 10.0);
  else
    fuselage_module(podmod, length / 3.0, length / 10.0, length / 12.0);
  if (dualpod) {
    sprintf(podmod2, "outrigger_pod_%d", podmodnum++);
    if (randn(100) < 50)
      pod_module(podmod2, length / 3.0, length / 10.0);
    else
      fuselage_module(podmod2, length / 3.0, length / 10.0, length / 12.0);
  }
  module(modname);
  call_module(sparmod);
  xlate(sin(angle * M_PI / 180.0) * length, 0,
        cos(angle * M_PI / 180.0) * length);
  call_module(podmod);
  end();
  if (dualpod) {
    dprad = randf(length * 0.8) + length * 0.1;
    xlate(sin(angle * M_PI / 180.0) * dprad, 0,
          cos(angle * M_PI / 180.0) * dprad);
    call_module(podmod2);
    end();
  }
  if (randn(100) < 10) {
    dprad = randf(length * 0.8) + length * 0.1;
    xlate(0, 0, cos(angle * M_PI / 180.0) * dprad);
    ring(length);
    end();
  }
  end_module();
}


x86 assembly (clang, -O0):
<outrigger_module>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
lea    -0x40(%rbp),%rdi
mov    0x2e96(%rip),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,0x2e8b(%rip)
lea    0xe20(%rip),%rsi
call   1100 <sprintf@plt>
lea    -0x60(%rbp),%rdi
mov    0x2e79(%rip),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,0x2e6e(%rip)
lea    0xe11(%rip),%rsi
call   1100 <sprintf@plt>
mov    $0x64,%edi
call   10f0 <randn@plt>
cmp    $0x32,%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    $0x3c,%edi
call   10f0 <randn@plt>
add    $0x5a,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x40(%rbp),%rdi
movss  -0xc(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
call   1060 <spar_module@plt>
mov    $0x64,%edi
call   10f0 <randn@plt>
cmp    $0x32,%eax
jge    12ca <outrigger_module+0xea>
lea    -0x60(%rbp),%rdi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd71(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xd50(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
call   10a0 <pod_module@plt>
jmp    131e <outrigger_module+0x13e>
lea    -0x60(%rbp),%rdi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd31(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xd10(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
movss  -0xc(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movsd  0xcef(%rip),%xmm3
divsd  %xmm3,%xmm2
cvtsd2ss %xmm2,%xmm2
call   1080 <fuselage_module@plt>
cmpl   $0x0,-0x10(%rbp)
je     13f5 <outrigger_module+0x215>
lea    -0x80(%rbp),%rdi
mov    0x2d66(%rip),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,0x2d5b(%rip)
lea    0xcfe(%rip),%rsi
call   1100 <sprintf@plt>
mov    $0x64,%edi
call   10f0 <randn@plt>
cmp    $0x32,%eax
jge    139c <outrigger_module+0x1bc>
lea    -0x80(%rbp),%rdi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc9f(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xc7e(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
call   10a0 <pod_module@plt>
jmp    13f0 <outrigger_module+0x210>
lea    -0x80(%rbp),%rdi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc5f(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xc3e(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
movss  -0xc(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movsd  0xc1d(%rip),%xmm3
divsd  %xmm3,%xmm2
cvtsd2ss %xmm2,%xmm2
call   1080 <fuselage_module@plt>
jmp    13f5 <outrigger_module+0x215>
mov    -0x8(%rbp),%rdi
call   10d0 <module@plt>
lea    -0x40(%rbp),%rdi
call   1050 <call_module@plt>
movss  -0x14(%rbp),%xmm0
mov    0x2bd5(%rip),%rax
mulss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbf5(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1090 <sin@plt>
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x14(%rbp),%xmm0
mov    0x2b9f(%rip),%rax
mulss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbbf(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   10c0 <cos@plt>
movaps %xmm0,%xmm1
movss  -0x84(%rbp),%xmm0
ff
mulss  -0xc(%rbp),%xmm1
xor    %edi,%edi
call   1040 <xlate@plt>
lea    -0x60(%rbp),%rdi
call   1050 <call_module@plt>
mov    $0x0,%al
call   1070 <end@plt>
cmpl   $0x0,-0x10(%rbp)
je     1561 <outrigger_module+0x381>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb80(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   10e0 <randf@plt>
cvtss2sd %xmm0,%xmm1
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb56(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
mov    0x2b01(%rip),%rax
mulss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb21(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1090 <sin@plt>
mulss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x88(%rbp)
ff
movss  -0x14(%rbp),%xmm0
mov    0x2acb(%rip),%rax
mulss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xaeb(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   10c0 <cos@plt>
movaps %xmm0,%xmm1
movss  -0x88(%rbp),%xmm0
ff
mulss  -0x18(%rbp),%xmm1
xor    %edi,%edi
call   1040 <xlate@plt>
lea    -0x80(%rbp),%rdi
call   1050 <call_module@plt>
mov    $0x0,%al
call   1070 <end@plt>
mov    $0x64,%edi
call   10f0 <randn@plt>
cmp    $0xa,%eax
jge    1604 <outrigger_module+0x424>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xaa3(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   10e0 <randf@plt>
cvtss2sd %xmm0,%xmm1
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xa79(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
mov    0x2a24(%rip),%rax
mulss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xa44(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   10c0 <cos@plt>
movaps %xmm0,%xmm1
mulss  -0x18(%rbp),%xmm1
xorps  %xmm0,%xmm0
xor    %edi,%edi
call   1040 <xlate@plt>
movss  -0xc(%rbp),%xmm0
call   1030 <ring@plt>
mov    $0x0,%al
call   1070 <end@plt>
mov    $0x0,%al
call   10b0 <end_module@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outrigger_module>:
push   %rbp
push   %r14
push   %rbx
sub    $0x80,%rsp
movss  %xmm0,0xc(%rsp)
mov    %rdi,%r14
mov    0x2e9a(%rip),%edx
lea    0x1(%rdx),%eax
mov    %eax,0x2e91(%rip)
lea    0xe16(%rip),%rsi
lea    0x60(%rsp),%rbx
mov    %rbx,%rdi
call   1100 <sprintf@plt>
mov    0x2e7b(%rip),%edx
lea    0x1(%rdx),%eax
mov    %eax,0x2e72(%rip)
lea    0xe05(%rip),%rsi
lea    0x40(%rsp),%rdi
call   1100 <sprintf@plt>
mov    $0x64,%edi
call   10f0 <randn@plt>
mov    %eax,%ebp
mov    $0x3c,%edi
call   10f0 <randn@plt>
add    $0x5a,%eax
cvtsi2ss %eax,%xmm1
mov    %rbx,%rdi
movss  0xc(%rsp),%xmm0
movss  %xmm1,0x18(%rsp)
call   1060 <spar_module@plt>
mov    $0x64,%edi
call   10f0 <randn@plt>
movss  0xc(%rsp),%xmm2
movaps %xmm2,%xmm0
divss  0xd7d(%rip),%xmm0
movaps %xmm2,%xmm1
divss  0xd76(%rip),%xmm1
cmp    $0x31,%eax
movss  %xmm0,0x10(%rsp)
movss  %xmm1,0x1c(%rsp)
jg     12b3 <outrigger_module+0xd3>
lea    0x40(%rsp),%rdi
call   10a0 <pod_module@plt>
cmp    $0x31,%ebp
jle    12ca <outrigger_module+0xea>
jmp    1335 <outrigger_module+0x155>
divss  0xd4d(%rip),%xmm2
lea    0x40(%rsp),%rdi
call   1080 <fuselage_module@plt>
cmp    $0x31,%ebp
jg     1335 <outrigger_module+0x155>
mov    0x2dc8(%rip),%edx
lea    0x1(%rdx),%eax
mov    %eax,0x2dbf(%rip)
lea    0xd52(%rip),%rsi
lea    0x20(%rsp),%rdi
call   1100 <sprintf@plt>
mov    $0x64,%edi
call   10f0 <randn@plt>
cmp    $0x31,%eax
jg     1311 <outrigger_module+0x131>
lea    0x20(%rsp),%rdi
movss  0x10(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
call   10a0 <pod_module@plt>
jmp    1335 <outrigger_module+0x155>
movss  0xc(%rsp),%xmm2
divss  0xce9(%rip),%xmm2
lea    0x20(%rsp),%rdi
movss  0x10(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
call   1080 <fuselage_module@plt>
mov    %r14,%rdi
call   10d0 <module@plt>
lea    0x60(%rsp),%rdi
call   1050 <call_module@plt>
mov    0x2c9a(%rip),%rbx
movss  (%rbx),%xmm0
mulss  0x18(%rsp),%xmm0
divss  0xcac(%rip),%xmm0
call   1090 <sin@plt>
mulss  0xc(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movss  (%rbx),%xmm0
mulss  0x18(%rsp),%xmm0
divss  0xc89(%rip),%xmm0
call   10c0 <cos@plt>
movaps %xmm0,%xmm1
mulss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm0
xor    %edi,%edi
call   1040 <xlate@plt>
lea    0x40(%rsp),%rdi
call   1050 <call_module@plt>
xor    %eax,%eax
call   1070 <end@plt>
cmp    $0x31,%ebp
jg     1469 <outrigger_module+0x289>
movss  0xc(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xc3d(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   10e0 <randf@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xc2a(%rip),%xmm1
cvtss2sd %xmm0,%xmm0
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x10(%rsp)
movss  (%rbx),%xmm0
mulss  0x18(%rsp),%xmm0
movss  0xbf7(%rip),%xmm1
divss  %xmm1,%xmm0
call   1090 <sin@plt>
mulss  0x10(%rsp),%xmm0
movss  %xmm0,0x1c(%rsp)
movss  (%rbx),%xmm0
mulss  0x18(%rsp),%xmm0
divss  0xbd0(%rip),%xmm0
call   10c0 <cos@plt>
movss  0x10(%rsp),%xmm1
mulss  %xmm0,%xmm1
movss  0x1c(%rsp),%xmm0
xor    %edi,%edi
call   1040 <xlate@plt>
lea    0x20(%rsp),%rdi
call   1050 <call_module@plt>
xor    %eax,%eax
call   1070 <end@plt>
mov    $0x64,%edi
call   10f0 <randn@plt>
cmp    $0x9,%eax
jg     1504 <outrigger_module+0x324>
movss  0xc(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xb79(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   10e0 <randf@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xb66(%rip),%xmm1
cvtss2sd %xmm0,%xmm0
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x18(%rsp),%xmm0
mulss  (%rbx),%xmm0
divss  0xb33(%rip),%xmm0
call   10c0 <cos@plt>
movss  0x10(%rsp),%xmm1
mulss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
xor    %edi,%edi
call   1040 <xlate@plt>
movss  0xc(%rsp),%xmm0
call   1030 <ring@plt>
xor    %eax,%eax
call   1070 <end@plt>
xor    %eax,%eax
call   10b0 <end_module@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@outrigger_module.sparmodnum = internal global i32 0
@outrigger_module.podmodnum = internal global i32 0
@.str = [18 x i8] c"outrigger_spar_%d\00"
@.str.1 = [17 x i8] c"outrigger_pod_%d\00"
@M_PI = global float 0.000000e+00
define void @outrigger_module(i8* %0, float %1) {
%3 = alloca i8*
%4 = alloca float
%5 = alloca i32
%6 = alloca float
%7 = alloca float
%8 = alloca [30 x i8]
%9 = alloca [30 x i8]
%10 = alloca [30 x i8]
store i8* %0, i8** %3
store float %1, float* %4
%11 = getelementptr inbounds [30 x i8], [30 x i8]* %8, i64 0, i64 0
%12 = load i32, i32* @outrigger_module.sparmodnum
%13 = add nsw i32 %12, 1
store i32 %13, i32* @outrigger_module.sparmodnum
%14 = call i32 @sprintf(i8* %11, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %12)
%15 = getelementptr inbounds [30 x i8], [30 x i8]* %9, i64 0, i64 0
%16 = load i32, i32* @outrigger_module.podmodnum
%17 = add nsw i32 %16, 1
store i32 %17, i32* @outrigger_module.podmodnum
%18 = call i32 @sprintf(i8* %15, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %16)
%19 = call i32 @randn(i32 100)
%20 = icmp slt i32 %19, 50
%21 = zext i1 %20 to i32
store i32 %21, i32* %5
%22 = call i32 @randn(i32 60)
%23 = add nsw i32 %22, 90
%24 = sitofp i32 %23 to float
store float %24, float* %6
%25 = getelementptr inbounds [30 x i8], [30 x i8]* %8, i64 0, i64 0
%26 = load float, float* %4
%27 = load float, float* %6
%28 = call i32 @spar_module(i8* %25, float %26, float %27)
%29 = call i32 @randn(i32 100)
%30 = icmp slt i32 %29, 50
br i1 %30, label %31, label %42
31: ; preds = %2
%32 = getelementptr inbounds [30 x i8], [30 x i8]* %9, i64 0, i64 0
%33 = load float, float* %4
%34 = fpext float %33 to double
%35 = fdiv double %34, 3.000000e+00
%36 = fptrunc double %35 to float
%37 = load float, float* %4
%38 = fpext float %37 to double
%39 = fdiv double %38, 1.000000e+01
%40 = fptrunc double %39 to float
%41 = call i32 @pod_module(i8* %32, float %36, float %40)
br label %57
42: ; preds = %2
%43 = getelementptr inbounds [30 x i8], [30 x i8]* %9, i64 0, i64 0
%44 = load float, float* %4
%45 = fpext float %44 to double
%46 = fdiv double %45, 3.000000e+00
%47 = fptrunc double %46 to float
%48 = load float, float* %4
%49 = fpext float %48 to double
%50 = fdiv double %49, 1.000000e+01
%51 = fptrunc double %50 to float
%52 = load float, float* %4
%53 = fpext float %52 to double
%54 = fdiv double %53, 1.200000e+01
%55 = fptrunc double %54 to float
%56 = call i32 @fuselage_module(i8* %43, float %47, float %51, float %55)
br label %57
57: ; preds = %42, %31
%58 = load i32, i32* %5
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %94
60: ; preds = %57
%61 = getelementptr inbounds [30 x i8], [30 x i8]* %10, i64 0, i64 0
%62 = load i32, i32* @outrigger_module.podmodnum
%63 = add nsw i32 %62, 1
store i32 %63, i32* @outrigger_module.podmodnum
%64 = call i32 @sprintf(i8* %61, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %62)
%65 = call i32 @randn(i32 100)
%66 = icmp slt i32 %65, 50
br i1 %66, label %67, label %78
67: ; preds = %60
%68 = getelementptr inbounds [30 x i8], [30 x i8]* %10, i64 0, i64 0
%69 = load float, float* %4
%70 = fpext float %69 to double
%71 = fdiv double %70, 3.000000e+00
%72 = fptrunc double %71 to float
%73 = load float, float* %4
%74 = fpext float %73 to double
%75 = fdiv double %74, 1.000000e+01
%76 = fptrunc double %75 to float
%77 = call i32 @pod_module(i8* %68, float %72, float %76)
br label %93
78: ; preds = %60
%79 = getelementptr inbounds [30 x i8], [30 x i8]* %10, i64 0, i64 0
%80 = load float, float* %4
%81 = fpext float %80 to double
%82 = fdiv double %81, 3.000000e+00
%83 = fptrunc double %82 to float
%84 = load float, float* %4
%85 = fpext float %84 to double
%86 = fdiv double %85, 1.000000e+01
%87 = fptrunc double %86 to float
%88 = load float, float* %4
%89 = fpext float %88 to double
%90 = fdiv double %89, 1.200000e+01
%91 = fptrunc double %90 to float
%92 = call i32 @fuselage_module(i8* %79, float %83, float %87, float %91)
br label %93
93: ; preds = %78, %67
br label %94
94: ; preds = %93, %57
%95 = load i8*, i8** %3
%96 = call i32 @module(i8* %95)
%97 = getelementptr inbounds [30 x i8], [30 x i8]* %8, i64 0, i64 0
%98 = call i32 @call_module(i8* %97)
%99 = load float, float* %6
%100 = load float, float* @M_PI
%101 = fmul float %99, %100
%102 = fpext float %101 to double
%103 = fdiv double %102, 1.800000e+02
%104 = fptrunc double %103 to float
%105 = call float @sin(float %104)
%106 = load float, float* %4
%107 = fmul float %105, %106
%108 = load float, float* %6
%109 = load float, float* @M_PI
%110 = fmul float %108, %109
%111 = fpext float %110 to double
%112 = fdiv double %111, 1.800000e+02
%113 = fptrunc double %112 to float
%114 = call float @cos(float %113)
%115 = load float, float* %4
%116 = fmul float %114, %115
%117 = call i32 @xlate(float %107, i32 0, float %116)
%118 = getelementptr inbounds [30 x i8], [30 x i8]* %9, i64 0, i64 0
%119 = call i32 @call_module(i8* %118)
%120 = call i32 (...) @end()
%121 = load i32, i32* %5
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %156
123: ; preds = %94
%124 = load float, float* %4
%125 = fpext float %124 to double
%126 = fmul double %125, 8.000000e-01
%127 = fptrunc double %126 to float
%128 = call float @randf(float %127)
%129 = fpext float %128 to double
%130 = load float, float* %4
%131 = fpext float %130 to double
%132 = call double @llvm.fmuladd.f64(double %131, double 1.000000e-01, double %129)
%133 = fptrunc double %132 to float
store float %133, float* %7
%134 = load float, float* %6
%135 = load float, float* @M_PI
%136 = fmul float %134, %135
%137 = fpext float %136 to double
%138 = fdiv double %137, 1.800000e+02
%139 = fptrunc double %138 to float
%140 = call float @sin(float %139)
%141 = load float, float* %7
%142 = fmul float %140, %141
%143 = load float, float* %6
%144 = load float, float* @M_PI
%145 = fmul float %143, %144
%146 = fpext float %145 to double
%147 = fdiv double %146, 1.800000e+02
%148 = fptrunc double %147 to float
%149 = call float @cos(float %148)
%150 = load float, float* %7
%151 = fmul float %149, %150
%152 = call i32 @xlate(float %142, i32 0, float %151)
%153 = getelementptr inbounds [30 x i8], [30 x i8]* %10, i64 0, i64 0
%154 = call i32 @call_module(i8* %153)
%155 = call i32 (...) @end()
br label %156
156: ; preds = %123, %94
%157 = call i32 @randn(i32 100)
%158 = icmp slt i32 %157, 10
br i1 %158, label %159, label %183
159: ; preds = %156
%160 = load float, float* %4
%161 = fpext float %160 to double
%162 = fmul double %161, 8.000000e-01
%163 = fptrunc double %162 to float
%164 = call float @randf(float %163)
%165 = fpext float %164 to double
%166 = load float, float* %4
%167 = fpext float %166 to double
%168 = call double @llvm.fmuladd.f64(double %167, double 1.000000e-01, double %165)
%169 = fptrunc double %168 to float
store float %169, float* %7
%170 = load float, float* %6
%171 = load float, float* @M_PI
%172 = fmul float %170, %171
%173 = fpext float %172 to double
%174 = fdiv double %173, 1.800000e+02
%175 = fptrunc double %174 to float
%176 = call float @cos(float %175)
%177 = load float, float* %7
%178 = fmul float %176, %177
%179 = call i32 @xlate(float 0.000000e+00, i32 0, float %178)
%180 = load float, float* %4
%181 = call i32 @ring(float %180)
%182 = call i32 (...) @end()
br label %183
183: ; preds = %159, %156
%184 = call i32 (...) @end_module()
ret void
}

LLVM IR (-O2):
@outrigger_module.sparmodnum = internal unnamed_addr global i32 0
@outrigger_module.podmodnum = internal unnamed_addr global i32 0
@.str = [18 x i8] c"outrigger_spar_%d\00"
@.str.1 = [17 x i8] c"outrigger_pod_%d\00"
@M_PI = global float 0.000000e+00
define void @outrigger_module(i8* %0, float %1) {
%3 = alloca [30 x i8]
%4 = alloca [30 x i8]
%5 = alloca [30 x i8]
%6 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%9 = load i32, i32* @outrigger_module.sparmodnum
%10 = add nsw i32 %9, 1
store i32 %10, i32* @outrigger_module.sparmodnum
%11 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %9)
%12 = load i32, i32* @outrigger_module.podmodnum
%13 = add nsw i32 %12, 1
store i32 %13, i32* @outrigger_module.podmodnum
%14 = call i32 @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%15 = tail call i32 @randn(i32 100)
%16 = icmp slt i32 %15, 50
%17 = tail call i32 @randn(i32 60)
%18 = add nsw i32 %17, 90
%19 = sitofp i32 %18 to float
%20 = call i32 @spar_module(i8* %6, float %1, float %19)
%21 = call i32 @randn(i32 100)
%22 = icmp slt i32 %21, 50
%23 = fdiv float %1, 3.000000e+00
%24 = fdiv float %1, 1.000000e+01
br i1 %22, label %25, label %27
25: ; preds = %2
%26 = call i32 @pod_module(i8* %7, float %23, float %24)
br label %30
27: ; preds = %2
%28 = fdiv float %1, 1.200000e+01
%29 = call i32 @fuselage_module(i8* %7, float %23, float %24, float %28)
br label %30
30: ; preds = %27, %25
br i1 %16, label %31, label %44
31: ; preds = %30
%32 = load i32, i32* @outrigger_module.podmodnum
%33 = add nsw i32 %32, 1
store i32 %33, i32* @outrigger_module.podmodnum
%34 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%35 = call i32 @randn(i32 100)
%36 = icmp slt i32 %35, 50
%37 = fdiv float %1, 3.000000e+00
%38 = fdiv float %1, 1.000000e+01
br i1 %36, label %39, label %41
39: ; preds = %31
%40 = call i32 @pod_module(i8* %8, float %37, float %38)
br label %44
41: ; preds = %31
%42 = fdiv float %1, 1.200000e+01
%43 = call i32 @fuselage_module(i8* %8, float %37, float %38, float %42)
br label %44
44: ; preds = %39, %41, %30
%45 = call i32 @module(i8* %0)
%46 = call i32 @call_module(i8* %6)
%47 = load float, float* @M_PI
%48 = fmul float %47, %19
%49 = fdiv float %48, 1.800000e+02
%50 = call float @sin(float %49)
%51 = fmul float %50, %1
%52 = load float, float* @M_PI
%53 = fmul float %52, %19
%54 = fdiv float %53, 1.800000e+02
%55 = call float @cos(float %54)
%56 = fmul float %55, %1
%57 = call i32 @xlate(float %51, i32 0, float %56)
%58 = call i32 @call_module(i8* %7)
%59 = call i32 (...) @end()
br i1 %16, label %60, label %81
60: ; preds = %44
%61 = fpext float %1 to double
%62 = fmul double %61, 8.000000e-01
%63 = fptrunc double %62 to float
%64 = call float @randf(float %63)
%65 = fpext float %64 to double
%66 = call double @llvm.fmuladd.f64(double %61, double 1.000000e-01, double %65)
%67 = fptrunc double %66 to float
%68 = load float, float* @M_PI
%69 = fmul float %68, %19
%70 = fdiv float %69, 1.800000e+02
%71 = call float @sin(float %70)
%72 = fmul float %71, %67
%73 = load float, float* @M_PI
%74 = fmul float %73, %19
%75 = fdiv float %74, 1.800000e+02
%76 = call float @cos(float %75)
%77 = fmul float %76, %67
%78 = call i32 @xlate(float %72, i32 0, float %77)
%79 = call i32 @call_module(i8* %8)
%80 = call i32 (...) @end()
br label %81
81: ; preds = %60, %44
%82 = call i32 @randn(i32 100)
%83 = icmp slt i32 %82, 10
br i1 %83, label %84, label %100
84: ; preds = %81
%85 = fpext float %1 to double
%86 = fmul double %85, 8.000000e-01
%87 = fptrunc double %86 to float
%88 = call float @randf(float %87)
%89 = fpext float %88 to double
%90 = call double @llvm.fmuladd.f64(double %85, double 1.000000e-01, double %89)
%91 = fptrunc double %90 to float
%92 = load float, float* @M_PI
%93 = fmul float %92, %19
%94 = fdiv float %93, 1.800000e+02
%95 = call float @cos(float %94)
%96 = fmul float %95, %91
%97 = call i32 @xlate(float 0.000000e+00, i32 0, float %96)
%98 = call i32 @ring(float %1)
%99 = call i32 (...) @end()
br label %100
100: ; preds = %84, %81
%101 = call i32 (...) @end_module()
ret void
}