#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, char *, double,
                           double, double, double);
void RectWithBorder(FILE *F, double w, double h, double x, double y,
                    char *color) {
  char borderColor[] = "#000000";
  fprintf(F,
          "<rect style=\"fill:%s;stroke:%s;stroke-width:1;"
          "stroke-linecap:butt;stroke-linejoin:miter;"
          "stroke-miterlimit:1;stroke-opacity:1;"
          "stroke-dasharray:none\" "
          "id=\"rect2985\" "
          "width=\"%.2lf\" "
          "height=\"%.2lf\" "
          "x=\"%.2lf\" "
          "y=\"%.2lf\" "
          "/>\n",
          color, borderColor, w, h, x, y);
}


x86 assembly (clang, -O0):
<RectWithBorder>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    0xec5(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
lea    0xea2(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RectWithBorder>:
push   %rax
mov    %rsi,%rdx
movabs $0x30303030303023,%rax
mov    %rax,(%rsp)
lea    0xed7(%rip),%rsi
mov    %rsp,%rcx
call   1030 <fprintf@plt>
pop    %rax
ret

LLVM IR (-O0):
@__const.RectWithBorder.borderColor = [8 x i8] c"\00"
@.str = [215 x i8] c"<rect style=\22fill:%s;stroke:%s;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1;stroke-opacity:1;stroke-dasharray:none\22 id=\22rect2985\22 width=\22%.2lf\22 height=\22%.2lf\22 x=\22%.2lf\22 y=\22%.2lf\22 />\0A\00"
define void @RectWithBorder(i32* %0, double %1, double %2, double %3, double %4, i8* %5) {
%7 = alloca i32*
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca i8*
%13 = alloca [8 x i8]
store i32* %0, i32** %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store i8* %5, i8** %12
%14 = bitcast [8 x i8]* %13 to i8*
%15 = load i32*, i32** %7
%16 = load i8*, i8** %12
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %13, i64 0, i64 0
%18 = load double, double* %8
%19 = load double, double* %9
%20 = load double, double* %10
%21 = load double, double* %11
%22 = call i32 @fprintf(i32* %15, i8* getelementptr inbounds ([215 x i8], [215 x i8]* @.str, i64 0, i64 0), i8* %16, i8* %17, double %18, double %19, double %20, double %21)
ret void
}

LLVM IR (-O2):
@.str = [215 x i8] c"<rect style=\22fill:%s;stroke:%s;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1;stroke-opacity:1;stroke-dasharray:none\22 id=\22rect2985\22 width=\22%.2lf\22 height=\22%.2lf\22 x=\22%.2lf\22 y=\22%.2lf\22 />\0A\00"
define void @RectWithBorder(i32* nocapture %0, double %1, double %2, double %3, double %4, i8* %5) {
%7 = alloca i64
%8 = bitcast i64* %7 to i8*
store i64 13563782407139363, i64* %7
%9 = call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([215 x i8], [215 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %8, double %1, double %2, double %3, double %4)
ret void
}