#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*/ Rect(int /*<<< orphan*/ *, double, double, double, double,
                        char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double, double, double,
                           double);
void RectIR(FILE *F, double w, double h, double x, double y, char *color) {
  Rect(F, w, h, x, y, color);
  fprintf(F,
          "<rect "
          "style=\"fill-opacity:1;stroke-width:2;stroke-miterlimit:4;"
          "stroke-dasharray:none;fill:url(#Wavy);fill-rule:"
          "nonzero;opacity:1\" "
          "id=\"rect6217\" "
          "width=\"%.2lf\" "
          "height=\"%.2lf\" "
          "x=\"%.2lf\" "
          "y=\"%.2lf\" "
          "ry=\"0\" "
          "/>\n",
          w, h, x, y);
}


x86 assembly (clang, -O0):
<RectIR>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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    -0x8(%rbp),%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
call   1040 <Rect@plt>
mov    -0x8(%rbp),%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
lea    0xe7c(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RectIR>:
push   %rbx
sub    $0x20,%rsp
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
mov    %rdi,%rbx
call   1040 <Rect@plt>
lea    0xeb5(%rip),%rsi
mov    %rbx,%rdi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
add    $0x20,%rsp
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [204 x i8] c"<rect style=\22fill-opacity:1;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;fill:url(#Wavy);fill-rule:nonzero;opacity:1\22 id=\22rect6217\22 width=\22%.2lf\22 height=\22%.2lf\22 x=\22%.2lf\22 y=\22%.2lf\22 ry=\220\22 />\0A\00"
define void @RectIR(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*
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
%13 = load i32*, i32** %7
%14 = load double, double* %8
%15 = load double, double* %9
%16 = load double, double* %10
%17 = load double, double* %11
%18 = load i8*, i8** %12
%19 = call i32 @Rect(i32* %13, double %14, double %15, double %16, double %17, i8* %18)
%20 = load i32*, i32** %7
%21 = load double, double* %8
%22 = load double, double* %9
%23 = load double, double* %10
%24 = load double, double* %11
%25 = call i32 @fprintf(i32* %20, i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), double %21, double %22, double %23, double %24)
ret void
}

LLVM IR (-O2):
@.str = [204 x i8] c"<rect style=\22fill-opacity:1;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;fill:url(#Wavy);fill-rule:nonzero;opacity:1\22 id=\22rect6217\22 width=\22%.2lf\22 height=\22%.2lf\22 x=\22%.2lf\22 y=\22%.2lf\22 ry=\220\22 />\0A\00"
define void @RectIR(i32* %0, double %1, double %2, double %3, double %4, i8* %5) {
%7 = tail call i32 @Rect(i32* %0, double %1, double %2, double %3, double %4, i8* %5)
%8 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), double %1, double %2, double %3, double %4)
ret void
}