#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*/ cng_current_color(int, int, int);
int /*<<< orphan*/ cng_line(int, int, int, int);
int /*<<< orphan*/ cng_refresh_window();
void afficheplus(void) {
  cng_refresh_window();
  cng_current_color(10, 200, 10);
  cng_line(2, 2, 650 - 2, 2);
  cng_line(650 - 2, 2, 650 - 2, 650 - 2);
  cng_line(650 - 2, 650 - 2, 2, 650 - 2);
  cng_line(2, 650 - 2, 2, 2);
  cng_current_color(10, 10, 200);
  cng_line(650 / 2, 2, 650 / 2, 650 - 2);
  cng_line(1, 650 / 2, 650 - 2, 650 / 2);
  cng_current_color(200, 10, 10);
}


x86 assembly (clang, -O0):
<afficheplus>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <cng_refresh_window@plt>
mov    $0xa,%edx
mov    $0xc8,%esi
mov    %edx,%edi
call   1050 <cng_current_color@plt>
mov    $0x2,%ecx
mov    $0x288,%edx
mov    %ecx,%edi
mov    %ecx,%esi
call   1030 <cng_line@plt>
mov    $0x288,%ecx
mov    $0x2,%esi
mov    %ecx,%edi
mov    %ecx,%edx
call   1030 <cng_line@plt>
mov    $0x288,%ecx
mov    $0x2,%edx
mov    %ecx,%edi
mov    %ecx,%esi
call   1030 <cng_line@plt>
mov    $0x2,%ecx
mov    $0x288,%esi
mov    %ecx,%edi
mov    %ecx,%edx
call   1030 <cng_line@plt>
mov    $0xa,%esi
mov    $0xc8,%edx
mov    %esi,%edi
call   1050 <cng_current_color@plt>
mov    $0x145,%edx
mov    $0x2,%esi
mov    $0x288,%ecx
mov    %edx,%edi
call   1030 <cng_line@plt>
mov    $0x1,%edi
mov    $0x145,%ecx
mov    $0x288,%edx
mov    %ecx,%esi
call   1030 <cng_line@plt>
mov    $0xc8,%edi
mov    $0xa,%edx
mov    %edx,%esi
call   1050 <cng_current_color@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<afficheplus>:
push   %rax
xor    %eax,%eax
call   1040 <cng_refresh_window@plt>
mov    $0xa,%edi
mov    $0xc8,%esi
mov    $0xa,%edx
call   1050 <cng_current_color@plt>
mov    $0x2,%edi
mov    $0x2,%esi
mov    $0x288,%edx
mov    $0x2,%ecx
call   1030 <cng_line@plt>
mov    $0x288,%edi
mov    $0x2,%esi
mov    $0x288,%edx
mov    $0x288,%ecx
call   1030 <cng_line@plt>
mov    $0x288,%edi
mov    $0x288,%esi
mov    $0x2,%edx
mov    $0x288,%ecx
call   1030 <cng_line@plt>
mov    $0x2,%edi
mov    $0x288,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
call   1030 <cng_line@plt>
mov    $0xa,%edi
mov    $0xa,%esi
mov    $0xc8,%edx
call   1050 <cng_current_color@plt>
mov    $0x145,%edi
mov    $0x2,%esi
mov    $0x145,%edx
mov    $0x288,%ecx
call   1030 <cng_line@plt>
mov    $0x1,%edi
mov    $0x145,%esi
mov    $0x288,%edx
mov    $0x145,%ecx
call   1030 <cng_line@plt>
mov    $0xc8,%edi
mov    $0xa,%esi
mov    $0xa,%edx
pop    %rax
jmp    1050 <cng_current_color@plt>

LLVM IR (-O0):
define void @afficheplus() {
%1 = call i32 (...) @cng_refresh_window()
%2 = call i32 @cng_current_color(i32 10, i32 200, i32 10)
%3 = call i32 @cng_line(i32 2, i32 2, i32 648, i32 2)
%4 = call i32 @cng_line(i32 648, i32 2, i32 648, i32 648)
%5 = call i32 @cng_line(i32 648, i32 648, i32 2, i32 648)
%6 = call i32 @cng_line(i32 2, i32 648, i32 2, i32 2)
%7 = call i32 @cng_current_color(i32 10, i32 10, i32 200)
%8 = call i32 @cng_line(i32 325, i32 2, i32 325, i32 648)
%9 = call i32 @cng_line(i32 1, i32 325, i32 648, i32 325)
%10 = call i32 @cng_current_color(i32 200, i32 10, i32 10)
ret void
}

LLVM IR (-O2):
define void @afficheplus() {
%1 = tail call i32 (...) @cng_refresh_window()
%2 = tail call i32 @cng_current_color(i32 10, i32 200, i32 10)
%3 = tail call i32 @cng_line(i32 2, i32 2, i32 648, i32 2)
%4 = tail call i32 @cng_line(i32 648, i32 2, i32 648, i32 648)
%5 = tail call i32 @cng_line(i32 648, i32 648, i32 2, i32 648)
%6 = tail call i32 @cng_line(i32 2, i32 648, i32 2, i32 2)
%7 = tail call i32 @cng_current_color(i32 10, i32 10, i32 200)
%8 = tail call i32 @cng_line(i32 325, i32 2, i32 325, i32 648)
%9 = tail call i32 @cng_line(i32 1, i32 325, i32 648, i32 325)
%10 = tail call i32 @cng_current_color(i32 200, i32 10, i32 10)
ret void
}