#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*/ lcd_draw_circle(int, int, int, int);
int /*<<< orphan*/ lcd_draw_dot(int, int, int);
int /*<<< orphan*/ lcd_draw_line(int, int /*<<< orphan*/, int, int, int);
int /*<<< orphan*/ lcd_draw_pixel(int, int, int);
int /*<<< orphan*/ lcd_draw_rect(int, int, int, int, int);
int /*<<< orphan*/ lcd_draw_thin_line(int, int /*<<< orphan*/, int, int, int);
int /*<<< orphan*/ lcd_init(int);
void main() {
  lcd_init(0X001F);
  lcd_draw_pixel(0X07E0, 110, 20);
  lcd_draw_dot(0XF800, 130, 20);
  lcd_draw_line(0XFFE0, 0, 50, 240, 50);
  lcd_draw_thin_line(0XFFE0, 0, 60, 240, 60);
  lcd_draw_circle(0XFFFF, 120, 160, 20);
  lcd_draw_rect(0X0000, 95, 200, 50, 80);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1f,%edi
call   1050 <lcd_init@plt>
mov    $0x7e0,%edi
mov    $0x6e,%esi
mov    $0x14,%edx
call   1080 <lcd_draw_pixel@plt>
mov    $0xf800,%edi
mov    $0x82,%esi
mov    $0x14,%edx
call   1070 <lcd_draw_dot@plt>
mov    $0xffe0,%edi
xor    %esi,%esi
mov    $0x32,%r8d
mov    $0xf0,%ecx
mov    %r8d,%edx
call   1030 <lcd_draw_line@plt>
mov    $0xffe0,%edi
xor    %esi,%esi
mov    $0x3c,%r8d
mov    $0xf0,%ecx
mov    %r8d,%edx
call   1040 <lcd_draw_thin_line@plt>
mov    $0xffff,%edi
mov    $0x78,%esi
mov    $0xa0,%edx
mov    $0x14,%ecx
call   1060 <lcd_draw_circle@plt>
xor    %edi,%edi
mov    $0x5f,%esi
mov    $0xc8,%edx
mov    $0x32,%ecx
mov    $0x50,%r8d
call   1090 <lcd_draw_rect@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1f,%edi
call   1050 <lcd_init@plt>
mov    $0x7e0,%edi
mov    $0x6e,%esi
mov    $0x14,%edx
call   1080 <lcd_draw_pixel@plt>
mov    $0xf800,%edi
mov    $0x82,%esi
mov    $0x14,%edx
call   1070 <lcd_draw_dot@plt>
mov    $0xffe0,%edi
xor    %esi,%esi
mov    $0x32,%edx
mov    $0xf0,%ecx
mov    $0x32,%r8d
call   1030 <lcd_draw_line@plt>
mov    $0xffe0,%edi
xor    %esi,%esi
mov    $0x3c,%edx
mov    $0xf0,%ecx
mov    $0x3c,%r8d
call   1040 <lcd_draw_thin_line@plt>
mov    $0xffff,%edi
mov    $0x78,%esi
mov    $0xa0,%edx
mov    $0x14,%ecx
call   1060 <lcd_draw_circle@plt>
xor    %edi,%edi
mov    $0x5f,%esi
mov    $0xc8,%edx
mov    $0x32,%ecx
mov    $0x50,%r8d
pop    %rax
jmp    1090 <lcd_draw_rect@plt>

LLVM IR (-O0):
define void @main() {
%1 = call i32 @lcd_init(i32 31)
%2 = call i32 @lcd_draw_pixel(i32 2016, i32 110, i32 20)
%3 = call i32 @lcd_draw_dot(i32 63488, i32 130, i32 20)
%4 = call i32 @lcd_draw_line(i32 65504, i32 0, i32 50, i32 240, i32 50)
%5 = call i32 @lcd_draw_thin_line(i32 65504, i32 0, i32 60, i32 240, i32 60)
%6 = call i32 @lcd_draw_circle(i32 65535, i32 120, i32 160, i32 20)
%7 = call i32 @lcd_draw_rect(i32 0, i32 95, i32 200, i32 50, i32 80)
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 @lcd_init(i32 31)
%2 = tail call i32 @lcd_draw_pixel(i32 2016, i32 110, i32 20)
%3 = tail call i32 @lcd_draw_dot(i32 63488, i32 130, i32 20)
%4 = tail call i32 @lcd_draw_line(i32 65504, i32 0, i32 50, i32 240, i32 50)
%5 = tail call i32 @lcd_draw_thin_line(i32 65504, i32 0, i32 60, i32 240, i32 60)
%6 = tail call i32 @lcd_draw_circle(i32 65535, i32 120, i32 160, i32 20)
%7 = tail call i32 @lcd_draw_rect(i32 0, i32 95, i32 200, i32 50, i32 80)
ret void
}