#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*/ scadinline(char *);
void replicator_build_platform(int build_platform) {
  if (!build_platform)
    return;
  scadinline("module replicator2_build_platform()\n");
  scadinline("{\n");
  scadinline("	rotate(v = [0, 0, 1], a = 90)\n");
  scadinline("		translate(v = [0, 0, -5])\n");
  scadinline("		cube(size = [150, 280, 10], center = true);\n");
  scadinline("}\n");
  scadinline("replicator2_build_platform();\n");
}


x86 assembly (clang, -O0):
<replicator_build_platform>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    112a <replicator_build_platform+0x1a>
jmp    117e <replicator_build_platform+0x6e>
lea    0xecf(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xee8(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xedf(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xef3(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xf04(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xf27(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xf1e(%rip),%rdi
call   1030 <scadinline@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<replicator_build_platform>:
test   %edi,%edi
je     116a <replicator_build_platform+0x5a>
push   %rax
lea    0xee4(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xefd(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xef4(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xf08(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xf19(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xf3c(%rip),%rdi
call   1030 <scadinline@plt>
lea    0xf33(%rip),%rdi
pop    %rax
jmp    1030 <scadinline@plt>
ret

LLVM IR (-O0):
@.str = [37 x i8] c"module replicator2_build_platform()\0A\00"
@.str.1 = [3 x i8] c"{\0A\00"
@.str.2 = [32 x i8] c"\09rotate(v = [0, 0, 1], a = 90)\0A\00"
@.str.3 = [29 x i8] c"\09\09translate(v = [0, 0, -5])\0A\00"
@.str.4 = [47 x i8] c"\09\09cube(size = [150, 280, 10], center = true);\0A\00"
@.str.5 = [3 x i8] c"}\0A\00"
@.str.6 = [31 x i8] c"replicator2_build_platform();\0A\00"
define void @replicator_build_platform(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %1
br label %14
6: ; preds = %1
%7 = call i32 @scadinline(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scadinline(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @scadinline(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scadinline(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @scadinline(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @scadinline(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @scadinline(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
br label %14
14: ; preds = %6, %5
ret void
}

LLVM IR (-O2):
@.str = [37 x i8] c"module replicator2_build_platform()\0A\00"
@.str.1 = [3 x i8] c"{\0A\00"
@.str.2 = [32 x i8] c"\09rotate(v = [0, 0, 1], a = 90)\0A\00"
@.str.3 = [29 x i8] c"\09\09translate(v = [0, 0, -5])\0A\00"
@.str.4 = [47 x i8] c"\09\09cube(size = [150, 280, 10], center = true);\0A\00"
@.str.5 = [3 x i8] c"}\0A\00"
@.str.6 = [31 x i8] c"replicator2_build_platform();\0A\00"
define void @replicator_build_platform(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %11, label %3
3: ; preds = %1
%4 = tail call i32 @scadinline(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @scadinline(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @scadinline(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @scadinline(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @scadinline(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @scadinline(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 @scadinline(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
br label %11
11: ; preds = %1, %3
ret void
}