#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*/ color(int, int, int);
int /*<<< orphan*/ draw_circle(int, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ draw_circle_fill(int, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ draw_line(int, int, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ draw_rectangle(int, int, int, int, int /*<<< orphan*/);
void draw(void) {
  draw_rectangle(100, 100, 600, 600, color(0x00, 0x00, 0x00));
  draw_line(100, 100, 600, 600, color(0xff, 0x00, 0x00));
  draw_circle(350, 350, 100, color(0xff, 0x00, 0x00));
  draw_circle_fill(800, 350, 100, color(0xff, 0xff, 0x00));
}


x86 assembly (clang, -O0):
<draw>:
push   %rbp
mov    %rsp,%rbp
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1070 <color@plt>
mov    %eax,%r8d
mov    $0x64,%esi
mov    $0x258,%ecx
mov    %esi,%edi
mov    %ecx,%edx
call   1030 <draw_rectangle@plt>
mov    $0xff,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1070 <color@plt>
mov    %eax,%r8d
mov    $0x64,%esi
mov    $0x258,%ecx
mov    %esi,%edi
mov    %ecx,%edx
call   1060 <draw_line@plt>
mov    $0xff,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1070 <color@plt>
mov    %eax,%ecx
mov    $0x15e,%esi
mov    $0x64,%edx
mov    %esi,%edi
call   1050 <draw_circle@plt>
mov    $0xff,%esi
xor    %edx,%edx
mov    %esi,%edi
call   1070 <color@plt>
mov    %eax,%ecx
mov    $0x320,%edi
mov    $0x15e,%esi
mov    $0x64,%edx
call   1040 <draw_circle_fill@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <color@plt>
mov    $0x64,%edi
mov    $0x64,%esi
mov    $0x258,%edx
mov    $0x258,%ecx
mov    %eax,%r8d
call   1030 <draw_rectangle@plt>
mov    $0xff,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <color@plt>
mov    $0x64,%edi
mov    $0x64,%esi
mov    $0x258,%edx
mov    $0x258,%ecx
mov    %eax,%r8d
call   1060 <draw_line@plt>
mov    $0xff,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <color@plt>
mov    $0x15e,%edi
mov    $0x15e,%esi
mov    $0x64,%edx
mov    %eax,%ecx
call   1050 <draw_circle@plt>
mov    $0xff,%edi
mov    $0xff,%esi
xor    %edx,%edx
call   1070 <color@plt>
mov    $0x320,%edi
mov    $0x15e,%esi
mov    $0x64,%edx
mov    %eax,%ecx
pop    %rax
jmp    1040 <draw_circle_fill@plt>

LLVM IR (-O0):
define void @draw() {
%1 = call i32 @color(i32 0, i32 0, i32 0)
%2 = call i32 @draw_rectangle(i32 100, i32 100, i32 600, i32 600, i32 %1)
%3 = call i32 @color(i32 255, i32 0, i32 0)
%4 = call i32 @draw_line(i32 100, i32 100, i32 600, i32 600, i32 %3)
%5 = call i32 @color(i32 255, i32 0, i32 0)
%6 = call i32 @draw_circle(i32 350, i32 350, i32 100, i32 %5)
%7 = call i32 @color(i32 255, i32 255, i32 0)
%8 = call i32 @draw_circle_fill(i32 800, i32 350, i32 100, i32 %7)
ret void
}

LLVM IR (-O2):
define void @draw() {
%1 = tail call i32 @color(i32 0, i32 0, i32 0)
%2 = tail call i32 @draw_rectangle(i32 100, i32 100, i32 600, i32 600, i32 %1)
%3 = tail call i32 @color(i32 255, i32 0, i32 0)
%4 = tail call i32 @draw_line(i32 100, i32 100, i32 600, i32 600, i32 %3)
%5 = tail call i32 @color(i32 255, i32 0, i32 0)
%6 = tail call i32 @draw_circle(i32 350, i32 350, i32 100, i32 %5)
%7 = tail call i32 @color(i32 255, i32 255, i32 0)
%8 = tail call i32 @draw_circle_fill(i32 800, i32 350, i32 100, i32 %7)
ret void
}