#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(float, float, float, int /*<<< orphan*/);
int /*<<< orphan*/ diff();
int /*<<< orphan*/ enddiff();
int /*<<< orphan*/ endonion();
int /*<<< orphan*/ endxlate();
int /*<<< orphan*/ finalize();
int /*<<< orphan*/ fingers(int, float, float, float, float, int, int, float,
                           float, float);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ onion();
int /*<<< orphan*/ opencscad_init();
int /*<<< orphan*/ process_options(int, char **, float *, int *, float *, int *,
                                   float *, float *, float *, int *, int *);
int /*<<< orphan*/ replicator_build_platform(int);
int /*<<< orphan*/ scadinline(char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ xlate(float, float, float);
int main(int argc, char *argv[]) {
  int segments = 10;
  float deltaangle = 30;
  float angle = 0;
  float curl = 1.3;
  float taper = 0.95;
  float length = 80.0;
  float deltalength = length / 8;
  float thickness = 8.0 / 10.0;
  int left = 0;
  int build_platform = 0;
  int pair = 0;
  process_options(argc, argv, &length, &segments, &deltaangle, &left,
                  &thickness, &taper, &curl, &build_platform, &pair);
  opencscad_init();
  scadinline("$fn = 16;\n");
  replicator_build_platform(build_platform);
  diff();
  onion();
  fingers(4, length, deltalength, angle, deltaangle, left, segments, thickness,
          taper, curl);
  if (pair) {
    scadinline("translate(v = [%d, %d, 0]) {\n", 0 * (int)length / 2,
               (int)length / 5);
    fprintf(stderr, "blah\n");
    fingers(4, length, deltalength, angle, deltaangle, !left, segments,
            thickness, taper, curl);
    scadinline("}\n");
  }
  endonion();
  xlate(-length * 2.5, -length * 2.5, length * -5);
  cube(length * 5, length * 5, length * 5, 0);
  endxlate();
  enddiff();
  finalize();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x70,%rsp
movl   $0x0,-0x14(%rbp)
mov    %edi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
movl   $0xa,-0x24(%rbp)
movss  0xe0c(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  0xdf3(%rip),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  0xde2(%rip),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  0xdd1(%rip),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x38(%rbp),%xmm0
movss  0xdbb(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0xda6(%rip),%xmm0
movss  %xmm0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x20(%rbp),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x24(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x44(%rbp),%r9
lea    -0x40(%rbp),%r14
lea    -0x34(%rbp),%rbx
lea    -0x30(%rbp),%r11
lea    -0x48(%rbp),%r10
lea    -0x4c(%rbp),%rax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1040 <process_options@plt>
mov    $0x0,%al
call   10c0 <opencscad_init@plt>
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   10a0 <scadinline@plt>
mov    -0x48(%rbp),%edi
call   1070 <replicator_build_platform@plt>
mov    $0x0,%al
call   1100 <diff@plt>
mov    $0x0,%al
call   1060 <onion@plt>
movss  -0x38(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm1
movss  -0x2c(%rbp),%xmm2
movss  -0x28(%rbp),%xmm3
mov    -0x44(%rbp),%esi
mov    -0x24(%rbp),%edx
movss  -0x40(%rbp),%xmm4
movss  -0x34(%rbp),%xmm5
movss  -0x30(%rbp),%xmm6
mov    $0x4,%edi
call   1030 <fingers@plt>
cmpl   $0x0,-0x4c(%rbp)
je     13b4 <main+0x1d4>
cvttss2si -0x38(%rbp),%eax
imul   $0x0,%eax,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
cvttss2si -0x38(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   10a0 <scadinline@plt>
mov    0x2c86(%rip),%rax
mov    (%rax),%edi
lea    0xcee(%rip),%rsi
call   10b0 <fprintf@plt>
movss  -0x38(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm1
movss  -0x2c(%rbp),%xmm2
movss  -0x28(%rbp),%xmm3
cmpl   $0x0,-0x44(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%esi
mov    -0x24(%rbp),%edx
movss  -0x40(%rbp),%xmm4
movss  -0x34(%rbp),%xmm5
movss  -0x30(%rbp),%xmm6
mov    $0x4,%edi
call   1030 <fingers@plt>
lea    0xcaa(%rip),%rdi
mov    $0x0,%al
call   10a0 <scadinline@plt>
mov    $0x0,%al
call   10e0 <endonion@plt>
movss  -0x38(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc47(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  -0x38(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xc21(%rip),%xmm2
mulsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
movss  0xc0d(%rip),%xmm2
mulss  -0x38(%rbp),%xmm2
call   1050 <xlate@plt>
movss  0xbf7(%rip),%xmm0
mulss  -0x38(%rbp),%xmm0
movss  0xbea(%rip),%xmm1
mulss  -0x38(%rbp),%xmm1
movss  0xbdd(%rip),%xmm2
mulss  -0x38(%rbp),%xmm2
xor    %edi,%edi
call   10f0 <cube@plt>
mov    $0x0,%al
call   10d0 <endxlate@plt>
mov    $0x0,%al
call   1090 <enddiff@plt>
mov    $0x0,%al
call   1080 <finalize@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x28,%rsp
movl   $0xa,0x1c(%rsp)
movl   $0x41f00000,0x18(%rsp)
41
movl   $0x3fa66666,0x14(%rsp)
3f
movl   $0x3f733333,0x10(%rsp)
3f
movl   $0x42a00000,0x4(%rsp)
42
movl   $0x3f4ccccd,0xc(%rsp)
3f
movl   $0x0,0x8(%rsp)
movl   $0x0,0x24(%rsp)
movl   $0x0,0x20(%rsp)
sub    $0x8,%rsp
lea    0x28(%rsp),%rax
lea    0x2c(%rsp),%r10
lea    0x1c(%rsp),%r11
lea    0x18(%rsp),%rbx
lea    0x14(%rsp),%r14
lea    0xc(%rsp),%rdx
lea    0x24(%rsp),%rcx
lea    0x20(%rsp),%r8
lea    0x10(%rsp),%r9
push   %rax
push   %r10
push   %r11
push   %rbx
push   %r14
call   1040 <process_options@plt>
add    $0x30,%rsp
xor    %eax,%eax
call   10c0 <opencscad_init@plt>
lea    0xd91(%rip),%rdi
xor    %eax,%eax
call   10a0 <scadinline@plt>
mov    0x24(%rsp),%edi
call   1070 <replicator_build_platform@plt>
xor    %eax,%eax
call   1100 <diff@plt>
xor    %eax,%eax
call   1060 <onion@plt>
movss  0x4(%rsp),%xmm0
movss  0x18(%rsp),%xmm3
mov    0x8(%rsp),%esi
mov    0x1c(%rsp),%edx
movss  0xc(%rsp),%xmm4
movss  0x10(%rsp),%xmm5
movss  0x14(%rsp),%xmm6
movss  0xd35(%rip),%xmm1
xorps  %xmm2,%xmm2
mov    $0x4,%edi
call   1030 <fingers@plt>
cmpl   $0x0,0x20(%rsp)
je     1374 <main+0x194>
cvttss2si 0x4(%rsp),%eax
cltq
imul   $0x66666667,%rax,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x21,%rdx
add    %eax,%edx
lea    0xd15(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   10a0 <scadinline@plt>
mov    0x2cca(%rip),%rax
mov    (%rax),%edi
lea    0xd1a(%rip),%rsi
call   10b0 <fprintf@plt>
movss  0x4(%rsp),%xmm0
movss  0x18(%rsp),%xmm3
xor    %esi,%esi
cmpl   $0x0,0x8(%rsp)
sete   %sil
mov    0x1c(%rsp),%edx
movss  0xc(%rsp),%xmm4
movss  0x10(%rsp),%xmm5
movss  0x14(%rsp),%xmm6
movss  0xca7(%rip),%xmm1
xorps  %xmm2,%xmm2
mov    $0x4,%edi
call   1030 <fingers@plt>
lea    0xcd2(%rip),%rdi
xor    %eax,%eax
call   10a0 <scadinline@plt>
xor    %eax,%eax
call   10e0 <endonion@plt>
movss  0x4(%rsp),%xmm2
movss  0xc7b(%rip),%xmm0
mulss  %xmm2,%xmm0
mulss  0xc73(%rip),%xmm2
movaps %xmm0,%xmm1
call   1050 <xlate@plt>
movss  0x4(%rsp),%xmm0
mulss  0xc61(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
xor    %edi,%edi
call   10f0 <cube@plt>
xor    %eax,%eax
call   10d0 <endxlate@plt>
xor    %eax,%eax
call   1090 <enddiff@plt>
xor    %eax,%eax
call   1080 <finalize@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [11 x i8] c"$fn = 16;\0A\00"
@.str.1 = [30 x i8] c"translate(v = [%d, %d, 0]) {\0A\00"
@stderr = global i32 0
@.str.2 = [6 x i8] c"blah\0A\00"
@.str.3 = [3 x i8] c"}\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 10, i32* %6
store float 3.000000e+01, float* %7
store float 0.000000e+00, float* %8
store float 0x3FF4CCCCC0000000, float* %9
store float 0x3FEE666660000000, float* %10
store float 8.000000e+01, float* %11
%17 = load float, float* %11
%18 = fdiv float %17, 8.000000e+00
store float %18, float* %12
store float 0x3FE99999A0000000, float* %13
store i32 0, i32* %14
store i32 0, i32* %15
store i32 0, i32* %16
%19 = load i32, i32* %4
%20 = load i8**, i8*** %5
%21 = call i32 @process_options(i32 %19, i8** %20, float* %11, i32* %6, float* %7, i32* %14, float* %13, float* %10, float* %9, i32* %15, i32* %16)
%22 = call i32 (...) @opencscad_init()
%23 = call i32 (i8*, ...) @scadinline(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* %15
%25 = call i32 @replicator_build_platform(i32 %24)
%26 = call i32 (...) @diff()
%27 = call i32 (...) @onion()
%28 = load float, float* %11
%29 = load float, float* %12
%30 = load float, float* %8
%31 = load float, float* %7
%32 = load i32, i32* %14
%33 = load i32, i32* %6
%34 = load float, float* %13
%35 = load float, float* %10
%36 = load float, float* %9
%37 = call i32 @fingers(i32 4, float %28, float %29, float %30, float %31, i32 %32, i32 %33, float %34, float %35, float %36)
%38 = load i32, i32* %16
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %65
40: ; preds = %2
%41 = load float, float* %11
%42 = fptosi float %41 to i32
%43 = mul nsw i32 0, %42
%44 = sdiv i32 %43, 2
%45 = load float, float* %11
%46 = fptosi float %45 to i32
%47 = sdiv i32 %46, 5
%48 = call i32 (i8*, ...) @scadinline(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %44, i32 %47)
%49 = load i32, i32* @stderr
%50 = call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%51 = load float, float* %11
%52 = load float, float* %12
%53 = load float, float* %8
%54 = load float, float* %7
%55 = load i32, i32* %14
%56 = icmp ne i32 %55, 0
%57 = xor i1 %56, true
%58 = zext i1 %57 to i32
%59 = load i32, i32* %6
%60 = load float, float* %13
%61 = load float, float* %10
%62 = load float, float* %9
%63 = call i32 @fingers(i32 4, float %51, float %52, float %53, float %54, i32 %58, i32 %59, float %60, float %61, float %62)
%64 = call i32 (i8*, ...) @scadinline(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %65
65: ; preds = %40, %2
%66 = call i32 (...) @endonion()
%67 = load float, float* %11
%68 = fneg float %67
%69 = fpext float %68 to double
%70 = fmul double %69, 2.500000e+00
%71 = fptrunc double %70 to float
%72 = load float, float* %11
%73 = fneg float %72
%74 = fpext float %73 to double
%75 = fmul double %74, 2.500000e+00
%76 = fptrunc double %75 to float
%77 = load float, float* %11
%78 = fmul float %77, -5.000000e+00
%79 = call i32 @xlate(float %71, float %76, float %78)
%80 = load float, float* %11
%81 = fmul float %80, 5.000000e+00
%82 = load float, float* %11
%83 = fmul float %82, 5.000000e+00
%84 = load float, float* %11
%85 = fmul float %84, 5.000000e+00
%86 = call i32 @cube(float %81, float %83, float %85, i32 0)
%87 = call i32 (...) @endxlate()
%88 = call i32 (...) @enddiff()
%89 = call i32 (...) @finalize()
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"$fn = 16;\0A\00"
@.str.1 = [30 x i8] c"translate(v = [%d, %d, 0]) {\0A\00"
@stderr = global i32 0
@.str.2 = [6 x i8] c"blah\0A\00"
@.str.3 = [3 x i8] c"}\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = bitcast i32* %3 to i8*
store i32 10, i32* %3
%13 = bitcast float* %4 to i8*
store float 3.000000e+01, float* %4
%14 = bitcast float* %5 to i8*
store float 0x3FF4CCCCC0000000, float* %5
%15 = bitcast float* %6 to i8*
store float 0x3FEE666660000000, float* %6
%16 = bitcast float* %7 to i8*
store float 8.000000e+01, float* %7
%17 = bitcast float* %8 to i8*
store float 0x3FE99999A0000000, float* %8
%18 = bitcast i32* %9 to i8*
store i32 0, i32* %9
%19 = bitcast i32* %10 to i8*
store i32 0, i32* %10
%20 = bitcast i32* %11 to i8*
store i32 0, i32* %11
%21 = call i32 @process_options(i32 %0, i8** %1, float* %7, i32* %3, float* %4, i32* %9, float* %8, float* %6, float* %5, i32* %10, i32* %11)
%22 = call i32 (...) @opencscad_init()
%23 = call i32 (i8*, ...) @scadinline(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* %10
%25 = call i32 @replicator_build_platform(i32 %24)
%26 = call i32 (...) @diff()
%27 = call i32 (...) @onion()
%28 = load float, float* %7
%29 = load float, float* %4
%30 = load i32, i32* %9
%31 = load i32, i32* %3
%32 = load float, float* %8
%33 = load float, float* %6
%34 = load float, float* %5
%35 = call i32 @fingers(i32 4, float %28, float 1.000000e+01, float 0.000000e+00, float %29, i32 %30, i32 %31, float %32, float %33, float %34)
%36 = load i32, i32* %11
%37 = icmp eq i32 %36, 0
br i1 %37, label %56, label %38
38: ; preds = %2
%39 = load float, float* %7
%40 = fptosi float %39 to i32
%41 = sdiv i32 %40, 5
%42 = call i32 (i8*, ...) @scadinline(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 %41)
%43 = load i32, i32* @stderr
%44 = call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%45 = load float, float* %7
%46 = load float, float* %4
%47 = load i32, i32* %9
%48 = icmp eq i32 %47, 0
%49 = zext i1 %48 to i32
%50 = load i32, i32* %3
%51 = load float, float* %8
%52 = load float, float* %6
%53 = load float, float* %5
%54 = call i32 @fingers(i32 4, float %45, float 1.000000e+01, float 0.000000e+00, float %46, i32 %49, i32 %50, float %51, float %52, float %53)
%55 = call i32 (i8*, ...) @scadinline(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %56
56: ; preds = %38, %2
%57 = call i32 (...) @endonion()
%58 = load float, float* %7
%59 = fmul float %58, -2.500000e+00
%60 = fmul float %58, -5.000000e+00
%61 = call i32 @xlate(float %59, float %59, float %60)
%62 = load float, float* %7
%63 = fmul float %62, 5.000000e+00
%64 = call i32 @cube(float %63, float %63, float %63, i32 0)
%65 = call i32 (...) @endxlate()
%66 = call i32 (...) @enddiff()
%67 = call i32 (...) @finalize()
ret i32 0
}