#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*/ writeScreen(int, int, int, int);
void testFullScreenWrites() {
  writeScreen(640, 480, 3, 8);
  writeScreen(640, 480, 3, 4);
  writeScreen(640, 480, 3, 2);
  writeScreen(640, 480, 3, 1);
  writeScreen(320, 240, 3, 8);
  writeScreen(320, 240, 3, 4);
  writeScreen(320, 240, 3, 2);
  writeScreen(320, 240, 3, 1);
  writeScreen(160, 120, 3, 8);
  writeScreen(160, 120, 3, 4);
  writeScreen(160, 120, 3, 2);
  writeScreen(160, 120, 3, 1);
  writeScreen(80, 60, 3, 8);
  writeScreen(80, 60, 3, 4);
  writeScreen(80, 60, 3, 2);
  writeScreen(80, 60, 3, 1);
}


x86 assembly (clang, -O0):
<testFullScreenWrites>:
push   %rbp
mov    %rsp,%rbp
mov    $0x280,%edi
mov    $0x1e0,%esi
mov    $0x3,%edx
mov    $0x8,%ecx
call   1030 <writeScreen@plt>
mov    $0x280,%edi
mov    $0x1e0,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <writeScreen@plt>
mov    $0x280,%edi
mov    $0x1e0,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1030 <writeScreen@plt>
mov    $0x280,%edi
mov    $0x1e0,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
call   1030 <writeScreen@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x3,%edx
mov    $0x8,%ecx
call   1030 <writeScreen@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <writeScreen@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1030 <writeScreen@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
call   1030 <writeScreen@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
mov    $0x3,%edx
mov    $0x8,%ecx
call   1030 <writeScreen@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <writeScreen@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1030 <writeScreen@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
call   1030 <writeScreen@plt>
mov    $0x50,%edi
mov    $0x3c,%esi
mov    $0x3,%edx
mov    $0x8,%ecx
call   1030 <writeScreen@plt>
mov    $0x50,%edi
mov    $0x3c,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <writeScreen@plt>
mov    $0x50,%edi
mov    $0x3c,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1030 <writeScreen@plt>
mov    $0x50,%edi
mov    $0x3c,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
call   1030 <writeScreen@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testFullScreenWrites>:
push   %rax
mov    $0x280,%edi
mov    $0x1e0,%esi
mov    $0x3,%edx
mov    $0x8,%ecx
call   1030 <writeScreen@plt>
mov    $0x280,%edi
mov    $0x1e0,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <writeScreen@plt>
mov    $0x280,%edi
mov    $0x1e0,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1030 <writeScreen@plt>
mov    $0x280,%edi
mov    $0x1e0,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
call   1030 <writeScreen@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x3,%edx
mov    $0x8,%ecx
call   1030 <writeScreen@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <writeScreen@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1030 <writeScreen@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
call   1030 <writeScreen@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
mov    $0x3,%edx
mov    $0x8,%ecx
call   1030 <writeScreen@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <writeScreen@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1030 <writeScreen@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
call   1030 <writeScreen@plt>
mov    $0x50,%edi
mov    $0x3c,%esi
mov    $0x3,%edx
mov    $0x8,%ecx
call   1030 <writeScreen@plt>
mov    $0x50,%edi
mov    $0x3c,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <writeScreen@plt>
mov    $0x50,%edi
mov    $0x3c,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1030 <writeScreen@plt>
mov    $0x50,%edi
mov    $0x3c,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
pop    %rax
jmp    1030 <writeScreen@plt>

LLVM IR (-O0):
define void @testFullScreenWrites() {
%1 = call i32 @writeScreen(i32 640, i32 480, i32 3, i32 8)
%2 = call i32 @writeScreen(i32 640, i32 480, i32 3, i32 4)
%3 = call i32 @writeScreen(i32 640, i32 480, i32 3, i32 2)
%4 = call i32 @writeScreen(i32 640, i32 480, i32 3, i32 1)
%5 = call i32 @writeScreen(i32 320, i32 240, i32 3, i32 8)
%6 = call i32 @writeScreen(i32 320, i32 240, i32 3, i32 4)
%7 = call i32 @writeScreen(i32 320, i32 240, i32 3, i32 2)
%8 = call i32 @writeScreen(i32 320, i32 240, i32 3, i32 1)
%9 = call i32 @writeScreen(i32 160, i32 120, i32 3, i32 8)
%10 = call i32 @writeScreen(i32 160, i32 120, i32 3, i32 4)
%11 = call i32 @writeScreen(i32 160, i32 120, i32 3, i32 2)
%12 = call i32 @writeScreen(i32 160, i32 120, i32 3, i32 1)
%13 = call i32 @writeScreen(i32 80, i32 60, i32 3, i32 8)
%14 = call i32 @writeScreen(i32 80, i32 60, i32 3, i32 4)
%15 = call i32 @writeScreen(i32 80, i32 60, i32 3, i32 2)
%16 = call i32 @writeScreen(i32 80, i32 60, i32 3, i32 1)
ret void
}

LLVM IR (-O2):
define void @testFullScreenWrites() {
%1 = tail call i32 @writeScreen(i32 640, i32 480, i32 3, i32 8)
%2 = tail call i32 @writeScreen(i32 640, i32 480, i32 3, i32 4)
%3 = tail call i32 @writeScreen(i32 640, i32 480, i32 3, i32 2)
%4 = tail call i32 @writeScreen(i32 640, i32 480, i32 3, i32 1)
%5 = tail call i32 @writeScreen(i32 320, i32 240, i32 3, i32 8)
%6 = tail call i32 @writeScreen(i32 320, i32 240, i32 3, i32 4)
%7 = tail call i32 @writeScreen(i32 320, i32 240, i32 3, i32 2)
%8 = tail call i32 @writeScreen(i32 320, i32 240, i32 3, i32 1)
%9 = tail call i32 @writeScreen(i32 160, i32 120, i32 3, i32 8)
%10 = tail call i32 @writeScreen(i32 160, i32 120, i32 3, i32 4)
%11 = tail call i32 @writeScreen(i32 160, i32 120, i32 3, i32 2)
%12 = tail call i32 @writeScreen(i32 160, i32 120, i32 3, i32 1)
%13 = tail call i32 @writeScreen(i32 80, i32 60, i32 3, i32 8)
%14 = tail call i32 @writeScreen(i32 80, i32 60, i32 3, i32 4)
%15 = tail call i32 @writeScreen(i32 80, i32 60, i32 3, i32 2)
%16 = tail call i32 @writeScreen(i32 80, i32 60, i32 3, i32 1)
ret void
}