#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*/ printf(char *, int);
int testEorAbsolute();
int testEorAbsoluteX();
int testEorAbsoluteY();
int testEorImmediate();
int testEorIndirectX();
int testEorIndirectY();
int testEorZeropage();
int testEorZeropageX();
void testEor() {
  printf("testEorImmediate: %d\r\n", testEorImmediate());
  printf("testEorZeropage: %d\r\n", testEorZeropage());
  printf("testEorZeropageX: %d\r\n", testEorZeropageX());
  printf("testEorAbsolute: %d\r\n", testEorAbsolute());
  printf("testEorAbsoluteX: %d\r\n", testEorAbsoluteX());
  printf("testEorAbsoluteY: %d\r\n", testEorAbsoluteY());
  printf("testEorIndirectX: %d\r\n", testEorIndirectX());
  printf("testEorIndirectY: %d\r\n", testEorIndirectY());
}


x86 assembly (clang, -O0):
<testEor>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1080 <testEorImmediate@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <testEorZeropage@plt>
mov    %eax,%esi
lea    0xe5e(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   10b0 <testEorZeropageX@plt>
mov    %eax,%esi
lea    0xe5f(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <testEorAbsolute@plt>
mov    %eax,%esi
lea    0xe61(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1090 <testEorAbsoluteX@plt>
mov    %eax,%esi
lea    0xe62(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <testEorAbsoluteY@plt>
mov    %eax,%esi
lea    0xe64(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <testEorIndirectX@plt>
mov    %eax,%esi
lea    0xe66(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <testEorIndirectY@plt>
mov    %eax,%esi
lea    0xe68(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testEor>:
push   %rax
xor    %eax,%eax
call   1080 <testEorImmediate@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <testEorZeropage@plt>
lea    0xe63(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   10b0 <testEorZeropageX@plt>
lea    0xe64(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <testEorAbsolute@plt>
lea    0xe66(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1090 <testEorAbsoluteX@plt>
lea    0xe67(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <testEorAbsoluteY@plt>
lea    0xe69(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   10a0 <testEorIndirectX@plt>
lea    0xe6b(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <testEorIndirectY@plt>
lea    0xe6d(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"testEorImmediate: %d\0D\0A\00"
@.str.1 = [22 x i8] c"testEorZeropage: %d\0D\0A\00"
@.str.2 = [23 x i8] c"testEorZeropageX: %d\0D\0A\00"
@.str.3 = [22 x i8] c"testEorAbsolute: %d\0D\0A\00"
@.str.4 = [23 x i8] c"testEorAbsoluteX: %d\0D\0A\00"
@.str.5 = [23 x i8] c"testEorAbsoluteY: %d\0D\0A\00"
@.str.6 = [23 x i8] c"testEorIndirectX: %d\0D\0A\00"
@.str.7 = [23 x i8] c"testEorIndirectY: %d\0D\0A\00"
define void @testEor() {
%1 = call i32 (...) @testEorImmediate()
%2 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 (...) @testEorZeropage()
%4 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @testEorZeropageX()
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 (...) @testEorAbsolute()
%8 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = call i32 (...) @testEorAbsoluteX()
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = call i32 (...) @testEorAbsoluteY()
%12 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = call i32 (...) @testEorIndirectX()
%14 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = call i32 (...) @testEorIndirectY()
%16 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %15)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"testEorImmediate: %d\0D\0A\00"
@.str.1 = [22 x i8] c"testEorZeropage: %d\0D\0A\00"
@.str.2 = [23 x i8] c"testEorZeropageX: %d\0D\0A\00"
@.str.3 = [22 x i8] c"testEorAbsolute: %d\0D\0A\00"
@.str.4 = [23 x i8] c"testEorAbsoluteX: %d\0D\0A\00"
@.str.5 = [23 x i8] c"testEorAbsoluteY: %d\0D\0A\00"
@.str.6 = [23 x i8] c"testEorIndirectX: %d\0D\0A\00"
@.str.7 = [23 x i8] c"testEorIndirectY: %d\0D\0A\00"
define void @testEor() {
%1 = tail call i32 (...) @testEorImmediate()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @testEorZeropage()
%4 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 (...) @testEorZeropageX()
%6 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 (...) @testEorAbsolute()
%8 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = tail call i32 (...) @testEorAbsoluteX()
%10 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = tail call i32 (...) @testEorAbsoluteY()
%12 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = tail call i32 (...) @testEorIndirectX()
%14 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = tail call i32 (...) @testEorIndirectY()
%16 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %15)
ret void
}