#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 testOraAbsolute();
int testOraAbsoluteX();
int testOraAbsoluteY();
int testOraImmediate();
int testOraIndirectX();
int testOraIndirectY();
int testOraZeropage();
int testOraZeropageX();
void testOra() {
  printf("testOraImmediate: %d\r\n", testOraImmediate());
  printf("testOraZeropage: %d\r\n", testOraZeropage());
  printf("testOraZeropageX: %d\r\n", testOraZeropageX());
  printf("testOraAbsolute: %d\r\n", testOraAbsolute());
  printf("testOraAbsoluteX: %d\r\n", testOraAbsoluteX());
  printf("testOraAbsoluteY: %d\r\n", testOraAbsoluteY());
  printf("testOraIndirectX: %d\r\n", testOraIndirectX());
  printf("testOraIndirectY: %d\r\n", testOraIndirectY());
}


x86 assembly (clang, -O0):
<testOra>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10a0 <testOraImmediate@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   10b0 <testOraZeropage@plt>
mov    %eax,%esi
lea    0xe5e(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <testOraZeropageX@plt>
mov    %eax,%esi
lea    0xe5f(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1090 <testOraAbsolute@plt>
mov    %eax,%esi
lea    0xe61(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <testOraAbsoluteX@plt>
mov    %eax,%esi
lea    0xe62(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <testOraAbsoluteY@plt>
mov    %eax,%esi
lea    0xe64(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <testOraIndirectX@plt>
mov    %eax,%esi
lea    0xe66(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <testOraIndirectY@plt>
mov    %eax,%esi
lea    0xe68(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testOra>:
push   %rax
xor    %eax,%eax
call   10a0 <testOraImmediate@plt>
lea    0xe61(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   10b0 <testOraZeropage@plt>
lea    0xe63(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <testOraZeropageX@plt>
lea    0xe64(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1090 <testOraAbsolute@plt>
lea    0xe66(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <testOraAbsoluteX@plt>
lea    0xe67(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <testOraAbsoluteY@plt>
lea    0xe69(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1080 <testOraIndirectX@plt>
lea    0xe6b(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <testOraIndirectY@plt>
lea    0xe6d(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"testOraImmediate: %d\0D\0A\00"
@.str.1 = [22 x i8] c"testOraZeropage: %d\0D\0A\00"
@.str.2 = [23 x i8] c"testOraZeropageX: %d\0D\0A\00"
@.str.3 = [22 x i8] c"testOraAbsolute: %d\0D\0A\00"
@.str.4 = [23 x i8] c"testOraAbsoluteX: %d\0D\0A\00"
@.str.5 = [23 x i8] c"testOraAbsoluteY: %d\0D\0A\00"
@.str.6 = [23 x i8] c"testOraIndirectX: %d\0D\0A\00"
@.str.7 = [23 x i8] c"testOraIndirectY: %d\0D\0A\00"
define void @testOra() {
%1 = call i32 (...) @testOraImmediate()
%2 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 (...) @testOraZeropage()
%4 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @testOraZeropageX()
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 (...) @testOraAbsolute()
%8 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = call i32 (...) @testOraAbsoluteX()
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = call i32 (...) @testOraAbsoluteY()
%12 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = call i32 (...) @testOraIndirectX()
%14 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = call i32 (...) @testOraIndirectY()
%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"testOraImmediate: %d\0D\0A\00"
@.str.1 = [22 x i8] c"testOraZeropage: %d\0D\0A\00"
@.str.2 = [23 x i8] c"testOraZeropageX: %d\0D\0A\00"
@.str.3 = [22 x i8] c"testOraAbsolute: %d\0D\0A\00"
@.str.4 = [23 x i8] c"testOraAbsoluteX: %d\0D\0A\00"
@.str.5 = [23 x i8] c"testOraAbsoluteY: %d\0D\0A\00"
@.str.6 = [23 x i8] c"testOraIndirectX: %d\0D\0A\00"
@.str.7 = [23 x i8] c"testOraIndirectY: %d\0D\0A\00"
define void @testOra() {
%1 = tail call i32 (...) @testOraImmediate()
%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 (...) @testOraZeropage()
%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 (...) @testOraZeropageX()
%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 (...) @testOraAbsolute()
%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 (...) @testOraAbsoluteX()
%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 (...) @testOraAbsoluteY()
%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 (...) @testOraIndirectX()
%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 (...) @testOraIndirectY()
%16 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %15)
ret void
}