#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*/ printf(char *, double, double);
void print_check(double x, double y) {
  int w, h;
  for (h = 0; h < 6; h++) {
    for (w = 0; w < 69; w++) {
      if (((w + h) % 2) == 0) {
        printf("        <rect x=\"%.2fin\" y=\"%.2fin\" width=\"0.08in\" "
               "height=\"0.08in\" fill=\"#ffffff\" />\n",
               x + (0.083 * w), y + (0.083 * h));
      }
    }
  }
}


x86 assembly (clang, -O0):
<print_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x6,-0x18(%rbp)
jge    11c1 <print_check+0xb1>
movl   $0x0,-0x14(%rbp)
cmpl   $0x45,-0x14(%rbp)
jge    11ae <print_check+0x9e>
mov    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    119b <print_check+0x8b>
movsd  -0x8(%rbp),%xmm1
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xe93(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm2
cvtsi2sdl -0x18(%rbp),%xmm1
movsd  0xe79(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
jmp    11a0 <print_check+0x90>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113a <print_check+0x2a>
jmp    11b3 <print_check+0xa3>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1129 <print_check+0x19>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_check>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
movsd  %xmm0,0x20(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm1,0x18(%rsp)
addsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
xor    %ebp,%ebp
lea    0xef7(%rip),%rbx
movsd  0xec7(%rip),%xmm1
jmp    115c <print_check+0x4c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
addsd  %xmm1,%xmm0
add    $0x1,%ebp
cmp    $0x45,%ebp
je     119a <print_check+0x8a>
test   $0x1,%bpl
jne    1150 <print_check+0x40>
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xe8a(%rip),%xmm0
addsd  0x20(%rsp),%xmm0
mov    %rbx,%rdi
movsd  0x10(%rsp),%xmm1
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
movsd  0xe70(%rip),%xmm1
jmp    1150 <print_check+0x40>
movsd  0xe5e(%rip),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
xorpd  %xmm0,%xmm0
mov    $0x1,%ebp
lea    0xe72(%rip),%rbx
xorpd  %xmm2,%xmm2
jmp    11dc <print_check+0xcc>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%ebp
movapd %xmm2,%xmm0
cmp    $0x46,%ebp
je     1218 <print_check+0x108>
addsd  %xmm1,%xmm2
test   $0x1,%bpl
jne    11d0 <print_check+0xc0>
mulsd  0xe12(%rip),%xmm0
addsd  0x20(%rsp),%xmm0
mov    %rbx,%rdi
movsd  0x10(%rsp),%xmm1
movsd  %xmm2,0x8(%rsp)
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm2
movsd  0xdf2(%rip),%xmm1
jmp    11d0 <print_check+0xc0>
movsd  0xdf0(%rip),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
lea    0xdf7(%rip),%rbx
jmp    124c <print_check+0x13c>
nopl   0x0(%rax,%rax,1)
addsd  %xmm1,%xmm0
add    $0x1,%ebp
cmp    $0x45,%ebp
je     128a <print_check+0x17a>
test   $0x1,%bpl
jne    1240 <print_check+0x130>
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xd9a(%rip),%xmm0
addsd  0x20(%rsp),%xmm0
mov    %rbx,%rdi
movsd  0x10(%rsp),%xmm1
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
movsd  0xd80(%rip),%xmm1
jmp    1240 <print_check+0x130>
movsd  0xd86(%rip),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
lea    0xd85(%rip),%rbx
jmp    12bc <print_check+0x1ac>
nopl   (%rax)
addsd  %xmm1,%xmm0
add    $0x1,%ebp
cmp    $0x45,%ebp
je     12fa <print_check+0x1ea>
test   $0x1,%bpl
je     12b0 <print_check+0x1a0>
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xd2a(%rip),%xmm0
addsd  0x20(%rsp),%xmm0
mov    %rbx,%rdi
movsd  0x10(%rsp),%xmm1
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
movsd  0xd10(%rip),%xmm1
jmp    12b0 <print_check+0x1a0>
movsd  0xd1e(%rip),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
lea    0xd15(%rip),%rbx
jmp    132c <print_check+0x21c>
nopl   (%rax)
addsd  %xmm1,%xmm0
add    $0x1,%ebp
cmp    $0x45,%ebp
je     136a <print_check+0x25a>
test   $0x1,%bpl
jne    1320 <print_check+0x210>
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xcba(%rip),%xmm0
addsd  0x20(%rsp),%xmm0
mov    %rbx,%rdi
movsd  0x10(%rsp),%xmm1
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
movsd  0xca0(%rip),%xmm1
jmp    1320 <print_check+0x210>
movsd  0x18(%rsp),%xmm0
addsd  0xcb0(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
lea    0xca5(%rip),%rbx
jmp    139c <print_check+0x28c>
nopl   (%rax)
addsd  %xmm1,%xmm0
add    $0x1,%ebp
cmp    $0x45,%ebp
je     13da <print_check+0x2ca>
test   $0x1,%bpl
je     1390 <print_check+0x280>
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xc4a(%rip),%xmm0
addsd  0x20(%rsp),%xmm0
mov    %rbx,%rdi
movsd  0x18(%rsp),%xmm1
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
movsd  0xc30(%rip),%xmm1
jmp    1390 <print_check+0x280>
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [86 x i8] c" <rect x=\22%.2fin\22 y=\22%.2fin\22 width=\220.08in\22 height=\220.08in\22 fill=\22#ffffff\22 />\0A\00"
define void @print_check(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca i32
%6 = alloca i32
store double %0, double* %3
store double %1, double* %4
store i32 0, i32* %6
br label %7
7: ; preds = %35, %2
%8 = load i32, i32* %6
%9 = icmp slt i32 %8, 6
br i1 %9, label %10, label %38
10: ; preds = %7
store i32 0, i32* %5
br label %11
11: ; preds = %31, %10
%12 = load i32, i32* %5
%13 = icmp slt i32 %12, 69
br i1 %13, label %14, label %34
14: ; preds = %11
%15 = load i32, i32* %5
%16 = load i32, i32* %6
%17 = add nsw i32 %15, %16
%18 = srem i32 %17, 2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %14
%21 = load double, double* %3
%22 = load i32, i32* %5
%23 = sitofp i32 %22 to double
%24 = call double @llvm.fmuladd.f64(double 8.300000e-02, double %23, double %21)
%25 = load double, double* %4
%26 = load i32, i32* %6
%27 = sitofp i32 %26 to double
%28 = call double @llvm.fmuladd.f64(double 8.300000e-02, double %27, double %25)
%29 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), double %24, double %28)
br label %30
30: ; preds = %20, %14
br label %31
31: ; preds = %30
%32 = load i32, i32* %5
%33 = add nsw i32 %32, 1
store i32 %33, i32* %5
br label %11
34: ; preds = %11
br label %35
35: ; preds = %34
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
store i32 %37, i32* %6
br label %7
38: ; preds = %7
ret void
}

LLVM IR (-O2):
@.str = [86 x i8] c" <rect x=\22%.2fin\22 y=\22%.2fin\22 width=\220.08in\22 height=\220.08in\22 fill=\22#ffffff\22 />\0A\00"
define void @print_check(double %0, double %1) {
%3 = fadd double %1, 0.000000e+00
br label %4
4: ; preds = %2, %12
%5 = phi i32 [ 0, %2 ], [ %13, %12 ]
%6 = and i32 %5, 1
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = sitofp i32 %5 to double
%10 = tail call double @llvm.fmuladd.f64(double %9, double 8.300000e-02, double %0)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), double %10, double %3)
br label %12
12: ; preds = %4, %8
%13 = add nuw nsw i32 %5, 1
%14 = icmp eq i32 %13, 69
br i1 %14, label %15, label %4
15: ; preds = %12
%16 = fadd double %1, 8.300000e-02
br label %17
17: ; preds = %26, %15
%18 = phi i32 [ 0, %15 ], [ %19, %26 ]
%19 = add nuw nsw i32 %18, 1
%20 = and i32 %19, 1
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = sitofp i32 %18 to double
%24 = tail call double @llvm.fmuladd.f64(double %23, double 8.300000e-02, double %0)
%25 = tail call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), double %24, double %16)
br label %26
26: ; preds = %22, %17
%27 = icmp eq i32 %19, 69
br i1 %27, label %28, label %17
28: ; preds = %26
%29 = fadd double %1, 1.660000e-01
br label %30
30: ; preds = %38, %28
%31 = phi i32 [ 0, %28 ], [ %39, %38 ]
%32 = and i32 %31, 1
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %30
%35 = sitofp i32 %31 to double
%36 = tail call double @llvm.fmuladd.f64(double %35, double 8.300000e-02, double %0)
%37 = tail call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), double %36, double %29)
br label %38
38: ; preds = %34, %30
%39 = add nuw nsw i32 %31, 1
%40 = icmp eq i32 %39, 69
br i1 %40, label %41, label %30
41: ; preds = %38
%42 = fadd double %1, 2.490000e-01
br label %43
43: ; preds = %51, %41
%44 = phi i32 [ 0, %41 ], [ %52, %51 ]
%45 = and i32 %44, 1
%46 = icmp eq i32 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %43
%48 = sitofp i32 %44 to double
%49 = tail call double @llvm.fmuladd.f64(double %48, double 8.300000e-02, double %0)
%50 = tail call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), double %49, double %42)
br label %51
51: ; preds = %47, %43
%52 = add nuw nsw i32 %44, 1
%53 = icmp eq i32 %52, 69
br i1 %53, label %54, label %43
54: ; preds = %51
%55 = fadd double %1, 3.320000e-01
br label %56
56: ; preds = %64, %54
%57 = phi i32 [ 0, %54 ], [ %65, %64 ]
%58 = and i32 %57, 1
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = sitofp i32 %57 to double
%62 = tail call double @llvm.fmuladd.f64(double %61, double 8.300000e-02, double %0)
%63 = tail call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), double %62, double %55)
br label %64
64: ; preds = %60, %56
%65 = add nuw nsw i32 %57, 1
%66 = icmp eq i32 %65, 69
br i1 %66, label %67, label %56
67: ; preds = %64
%68 = fadd double %1, 0x3FDA8F5C28F5C290
br label %69
69: ; preds = %77, %67
%70 = phi i32 [ 0, %67 ], [ %78, %77 ]
%71 = and i32 %70, 1
%72 = icmp eq i32 %71, 0
br i1 %72, label %77, label %73
73: ; preds = %69
%74 = sitofp i32 %70 to double
%75 = tail call double @llvm.fmuladd.f64(double %74, double 8.300000e-02, double %0)
%76 = tail call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), double %75, double %68)
br label %77
77: ; preds = %73, %69
%78 = add nuw nsw i32 %70, 1
%79 = icmp eq i32 %78, 69
br i1 %79, label %80, label %69
80: ; preds = %77
ret void
}