#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*/ DrawGrid(double, double, double, double, int, int);
void DrawWindows(double x, double y) {
  double xleft, xright;
  xleft = x + 3.0 * 0.25;
  xright = x + 3.0 * 0.75;
  DrawGrid(xleft - 0.2 * 1.5, y + 0.3, 0.2, 0.25, 3, 2);
  DrawGrid(xright - 0.2 * 1.5, y + 0.3, 0.2, 0.25, 3, 2);
  DrawGrid(xleft - 0.2, y + 1.25, 0.2, 0.25, 2, 2);
  DrawGrid(xright - 0.2, y + 1.25, 0.2, 0.25, 2, 2);
}


x86 assembly (clang, -O0):
<DrawWindows>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xf06(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xeec(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xecd(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xeb9(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
movsd  0xe94(%rip),%xmm2
movsd  0xe94(%rip),%xmm3
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <DrawGrid@plt>
movsd  -0x20(%rbp),%xmm0
movsd  0xe90(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe7c(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
movsd  0xe57(%rip),%xmm2
movsd  0xe57(%rip),%xmm3
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <DrawGrid@plt>
movsd  -0x18(%rbp),%xmm0
movsd  0xe33(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe37(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
movsd  0xe1a(%rip),%xmm2
movsd  0xe1a(%rip),%xmm3
mov    $0x2,%esi
mov    %esi,%edi
call   1030 <DrawGrid@plt>
movsd  -0x20(%rbp),%xmm0
movsd  0xdf9(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xdfd(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
movsd  0xde0(%rip),%xmm2
movsd  0xde0(%rip),%xmm3
mov    $0x2,%esi
mov    %esi,%edi
call   1030 <DrawGrid@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DrawWindows>:
sub    $0x28,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  0xede(%rip),%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,0x20(%rsp)
addsd  0xed4(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movapd %xmm2,%xmm0
addsd  0xeca(%rip),%xmm0
movsd  0xeca(%rip),%xmm4
addsd  %xmm1,%xmm4
movsd  %xmm4,0x18(%rsp)
movsd  0xec0(%rip),%xmm2
movsd  0xec0(%rip),%xmm3
movapd %xmm4,%xmm1
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <DrawGrid@plt>
movsd  0xe8d(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0xe89(%rip),%xmm2
movsd  0xe89(%rip),%xmm3
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <DrawGrid@plt>
movsd  0x20(%rsp),%xmm0
addsd  0xe74(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  0xe6e(%rip),%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0xe48(%rip),%xmm2
movsd  0xe48(%rip),%xmm3
mov    $0x2,%edi
mov    $0x2,%esi
call   1030 <DrawGrid@plt>
movsd  0x10(%rsp),%xmm0
addsd  0xe33(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe15(%rip),%xmm2
movsd  0xe15(%rip),%xmm3
mov    $0x2,%edi
mov    $0x2,%esi
add    $0x28,%rsp
jmp    1030 <DrawGrid@plt>

LLVM IR (-O0):
define void @DrawWindows(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %3
store double %1, double* %4
%7 = load double, double* %3
%8 = fadd double %7, 7.500000e-01
store double %8, double* %5
%9 = load double, double* %3
%10 = fadd double %9, 2.250000e+00
store double %10, double* %6
%11 = load double, double* %5
%12 = fsub double %11, 0x3FD3333333333334
%13 = load double, double* %4
%14 = fadd double %13, 3.000000e-01
%15 = call i32 @DrawGrid(double %12, double %14, double 2.000000e-01, double 2.500000e-01, i32 3, i32 2)
%16 = load double, double* %6
%17 = fsub double %16, 0x3FD3333333333334
%18 = load double, double* %4
%19 = fadd double %18, 3.000000e-01
%20 = call i32 @DrawGrid(double %17, double %19, double 2.000000e-01, double 2.500000e-01, i32 3, i32 2)
%21 = load double, double* %5
%22 = fsub double %21, 2.000000e-01
%23 = load double, double* %4
%24 = fadd double %23, 1.250000e+00
%25 = call i32 @DrawGrid(double %22, double %24, double 2.000000e-01, double 2.500000e-01, i32 2, i32 2)
%26 = load double, double* %6
%27 = fsub double %26, 2.000000e-01
%28 = load double, double* %4
%29 = fadd double %28, 1.250000e+00
%30 = call i32 @DrawGrid(double %27, double %29, double 2.000000e-01, double 2.500000e-01, i32 2, i32 2)
ret void
}

LLVM IR (-O2):
define void @DrawWindows(double %0, double %1) {
%3 = fadd double %0, 7.500000e-01
%4 = fadd double %0, 2.250000e+00
%5 = fadd double %3, 0xBFD3333333333334
%6 = fadd double %1, 3.000000e-01
%7 = tail call i32 @DrawGrid(double %5, double %6, double 2.000000e-01, double 2.500000e-01, i32 3, i32 2)
%8 = fadd double %4, 0xBFD3333333333334
%9 = tail call i32 @DrawGrid(double %8, double %6, double 2.000000e-01, double 2.500000e-01, i32 3, i32 2)
%10 = fadd double %3, -2.000000e-01
%11 = fadd double %1, 1.250000e+00
%12 = tail call i32 @DrawGrid(double %10, double %11, double 2.000000e-01, double 2.500000e-01, i32 2, i32 2)
%13 = fadd double %4, -2.000000e-01
%14 = tail call i32 @DrawGrid(double %13, double %11, double 2.000000e-01, double 2.500000e-01, i32 2, i32 2)
ret void
}