#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*/ hrt(double, double, char *);
int /*<<< orphan*/ printf(char *, double, double);
void print_stop(double bordersize) {
  printf("        <rect x=\"%.2fin\" y=\"%.2fin\" width=\"4.50in\" "
         "height=\"0.5in\" fill=\"#0000e0\" />\n",
         bordersize + 1.25, 1.35 + bordersize);
  printf("        <rect x=\"%.2fin\" y=\"%.2fin\" width=\"4.50in\" "
         "height=\"0.5in\" fill=\"#ef0000\" />\n",
         bordersize, 1.85 + bordersize);
  hrt(bordersize, 1.35 + bordersize, "STOP");
}


x86 assembly (clang, -O0):
<print_stop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xedb(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  0xebe(%rip),%xmm1
addsd  -0x8(%rbp),%xmm1
lea    0xeca(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x8(%rbp),%xmm0
movsd  0xea8(%rip),%xmm1
addsd  -0x8(%rbp),%xmm1
lea    0xf01(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x8(%rbp),%xmm0
movsd  0xe82(%rip),%xmm1
addsd  -0x8(%rbp),%xmm1
lea    0xf38(%rip),%rdi
call   1030 <hrt@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_stop>:
sub    $0x18,%rsp
movapd %xmm0,%xmm2
movsd  %xmm0,0x8(%rsp)
movsd  0xeca(%rip),%xmm0
addsd  %xmm2,%xmm0
movsd  0xec6(%rip),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x10(%rsp)
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
movsd  0xeb0(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
addsd  %xmm0,%xmm1
lea    0xefc(%rip),%rdi
call   1040 <printf@plt>
lea    0xf45(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
add    $0x18,%rsp
jmp    1030 <hrt@plt>

LLVM IR (-O0):
@.str = [85 x i8] c" <rect x=\22%.2fin\22 y=\22%.2fin\22 width=\224.50in\22 height=\220.5in\22 fill=\22e0\22 />\0A\00"
@.str.1 = [85 x i8] c" <rect x=\22%.2fin\22 y=\22%.2fin\22 width=\224.50in\22 height=\220.5in\22 fill=\22#ef0000\22 />\0A\00"
@.str.2 = [5 x i8] c"STOP\00"
define void @print_stop(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fadd double %3, 1.250000e+00
%5 = load double, double* %2
%6 = fadd double 1.350000e+00, %5
%7 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0), double %4, double %6)
%8 = load double, double* %2
%9 = load double, double* %2
%10 = fadd double 1.850000e+00, %9
%11 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.1, i64 0, i64 0), double %8, double %10)
%12 = load double, double* %2
%13 = load double, double* %2
%14 = fadd double 1.350000e+00, %13
%15 = call i32 @hrt(double %12, double %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [85 x i8] c" <rect x=\22%.2fin\22 y=\22%.2fin\22 width=\224.50in\22 height=\220.5in\22 fill=\22e0\22 />\0A\00"
@.str.1 = [85 x i8] c" <rect x=\22%.2fin\22 y=\22%.2fin\22 width=\224.50in\22 height=\220.5in\22 fill=\22#ef0000\22 />\0A\00"
@.str.2 = [5 x i8] c"STOP\00"
define void @print_stop(double %0) {
%2 = fadd double %0, 1.250000e+00
%3 = fadd double %0, 1.350000e+00
%4 = tail call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0), double %2, double %3)
%5 = fadd double %0, 1.850000e+00
%6 = tail call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.1, i64 0, i64 0), double %0, double %5)
%7 = tail call i32 @hrt(double %0, double %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
ret void
}