#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*/ c_pladv(int /*<<< orphan*/);
int /*<<< orphan*/ c_plbox(char *, double, int /*<<< orphan*/, char *, double,
                           int /*<<< orphan*/);
int /*<<< orphan*/ c_plend();
int /*<<< orphan*/ c_plinit();
int /*<<< orphan*/ c_plptex(double, double, double, double, double, char *);
int /*<<< orphan*/ c_plsvpa(double, double, double, double);
int /*<<< orphan*/ c_plvpor(double, double, double, double);
int /*<<< orphan*/ c_plwind(double, double, double, double);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ plparseopts(int *, char **, int);
int main(int argc, char *argv[]) {
  (void)plparseopts(&argc, argv, 0x0001);
  c_plinit();
  c_pladv(0);
  c_plvpor(0.0, 1.0, 0.0, 1.0);
  c_plwind(0.0, 1.0, 0.0, 1.0);
  c_plbox("bc", 0.0, 0, "bc", 0.0, 0);
  c_plsvpa(50.0, 150.0, 50.0, 100.0);
  c_plwind(0.0, 1.0, 0.0, 1.0);
  c_plbox("bc", 0.0, 0, "bc", 0.0, 0);
  c_plptex(0.5, 0.5, 1.0, 0.0, 0.5, "BOX at (50,150,50,100)");
  c_plend();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    -0x8(%rbp),%rdi
mov    $0x1,%edx
call   1060 <plparseopts@plt>
mov    $0x0,%al
call   1090 <c_plinit@plt>
xor    %edi,%edi
call   1070 <c_pladv@plt>
xorps  %xmm2,%xmm2
movsd  0xe27(%rip),%xmm3
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
call   1040 <c_plvpor@plt>
xorps  %xmm2,%xmm2
movsd  0xe11(%rip),%xmm3
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
call   1050 <c_plwind@plt>
lea    0xe1f(%rip),%rdx
xorps  %xmm1,%xmm1
xor    %ecx,%ecx
mov    %rdx,%rdi
movaps %xmm1,%xmm0
mov    %ecx,%esi
call   1080 <c_plbox@plt>
movsd  0xded(%rip),%xmm2
movsd  0xded(%rip),%xmm1
movsd  0xded(%rip),%xmm3
movaps %xmm2,%xmm0
call   1030 <c_plsvpa@plt>
xorps  %xmm2,%xmm2
movsd  0xdc2(%rip),%xmm3
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
call   1050 <c_plwind@plt>
lea    0xdd0(%rip),%rdx
xorps  %xmm1,%xmm1
xor    %ecx,%ecx
mov    %rdx,%rdi
movaps %xmm1,%xmm0
mov    %ecx,%esi
call   1080 <c_plbox@plt>
movsd  0xd8e(%rip),%xmm4
movsd  0xd8e(%rip),%xmm2
xorps  %xmm3,%xmm3
lea    0xda7(%rip),%rdi
movaps %xmm4,%xmm0
movaps %xmm4,%xmm1
call   10b0 <c_plptex@plt>
mov    $0x0,%al
call   10c0 <c_plend@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,0xc(%rsp)
lea    0xc(%rsp),%rdi
mov    $0x1,%edx
call   1060 <plparseopts@plt>
xor    %eax,%eax
call   1090 <c_plinit@plt>
xor    %edi,%edi
call   1070 <c_pladv@plt>
movsd  0xe32(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm3
call   1040 <c_plvpor@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xe16(%rip),%xmm1
movaps %xmm1,%xmm3
call   1050 <c_plwind@plt>
lea    0xe2f(%rip),%rbx
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %rbx,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %ecx,%ecx
call   1080 <c_plbox@plt>
movsd  0xdf2(%rip),%xmm1
movsd  0xdf2(%rip),%xmm0
movsd  0xdf2(%rip),%xmm3
movaps %xmm0,%xmm2
call   1030 <c_plsvpa@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xdc4(%rip),%xmm1
movaps %xmm1,%xmm3
call   1050 <c_plwind@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %rbx,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %ecx,%ecx
call   1080 <c_plbox@plt>
lea    0xdcb(%rip),%rdi
movsd  0xdb8(%rip),%xmm0
xorps  %xmm3,%xmm3
movaps %xmm0,%xmm1
movsd  0xd8a(%rip),%xmm2
movaps %xmm0,%xmm4
call   10b0 <c_plptex@plt>
xor    %eax,%eax
call   10c0 <c_plend@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"bc\00"
@.str.1 = [23 x i8] c"BOX at (50,150,50,100)\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = call i32 @plparseopts(i32* %4, i8** %6, i32 1)
%8 = call i32 (...) @c_plinit()
%9 = call i32 @c_pladv(i32 0)
%10 = call i32 @c_plvpor(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%11 = call i32 @c_plwind(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%12 = call i32 @c_plbox(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0.000000e+00, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0.000000e+00, i32 0)
%13 = call i32 @c_plsvpa(double 5.000000e+01, double 1.500000e+02, double 5.000000e+01, double 1.000000e+02)
%14 = call i32 @c_plwind(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%15 = call i32 @c_plbox(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0.000000e+00, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0.000000e+00, i32 0)
%16 = call i32 @c_plptex(double 5.000000e-01, double 5.000000e-01, double 1.000000e+00, double 0.000000e+00, double 5.000000e-01, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 (...) @c_plend()
%18 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"bc\00"
@.str.1 = [23 x i8] c"BOX at (50,150,50,100)\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 @plparseopts(i32* %3, i8** %1, i32 1)
%5 = call i32 (...) @c_plinit()
%6 = call i32 @c_pladv(i32 0)
%7 = call i32 @c_plvpor(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%8 = call i32 @c_plwind(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%9 = call i32 @c_plbox(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0.000000e+00, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0.000000e+00, i32 0)
%10 = call i32 @c_plsvpa(double 5.000000e+01, double 1.500000e+02, double 5.000000e+01, double 1.000000e+02)
%11 = call i32 @c_plwind(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%12 = call i32 @c_plbox(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0.000000e+00, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0.000000e+00, i32 0)
%13 = call i32 @c_plptex(double 5.000000e-01, double 5.000000e-01, double 1.000000e+00, double 0.000000e+00, double 5.000000e-01, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (...) @c_plend()
%15 = call i32 @exit(i32 0)
unreachable
}