#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 testStaAbsolute();
int testStaAbsoluteX();
int testStaAbsoluteY();
int testStaIndirectX();
int testStaIndirectY();
int testStaZeropage();
int testStaZeropageX();
void testSta() {
  printf("testStaZeropage: %d\r\n", testStaZeropage());
  printf("testStaZeropageX: %d\r\n", testStaZeropageX());
  printf("testStaAbsolute: %d\r\n", testStaAbsolute());
  printf("testStaAbsoluteX: %d\r\n", testStaAbsoluteX());
  printf("testStaAbsoluteY: %d\r\n", testStaAbsoluteY());
  printf("testStaIndirectX: %d\r\n", testStaIndirectX());
  printf("testStaIndirectY: %d\r\n", testStaIndirectY());
}


x86 assembly (clang, -O0):
<testSta>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1060 <testStaZeropage@plt>
mov    %eax,%esi
lea    0xe6c(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <testStaZeropageX@plt>
mov    %eax,%esi
lea    0xe6d(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <testStaAbsolute@plt>
mov    %eax,%esi
lea    0xe6f(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <testStaAbsoluteX@plt>
mov    %eax,%esi
lea    0xe70(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <testStaAbsoluteY@plt>
mov    %eax,%esi
lea    0xe72(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <testStaIndirectX@plt>
mov    %eax,%esi
lea    0xe74(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <testStaIndirectY@plt>
mov    %eax,%esi
lea    0xe76(%rip),%rdi
call   1050 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testSta>:
push   %rax
xor    %eax,%eax
call   1060 <testStaZeropage@plt>
lea    0xe71(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   10a0 <testStaZeropageX@plt>
lea    0xe72(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <testStaAbsolute@plt>
lea    0xe74(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <testStaAbsoluteX@plt>
lea    0xe75(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <testStaAbsoluteY@plt>
lea    0xe77(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <testStaIndirectX@plt>
lea    0xe79(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <testStaIndirectY@plt>
lea    0xe7b(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"testStaZeropage: %d\0D\0A\00"
@.str.1 = [23 x i8] c"testStaZeropageX: %d\0D\0A\00"
@.str.2 = [22 x i8] c"testStaAbsolute: %d\0D\0A\00"
@.str.3 = [23 x i8] c"testStaAbsoluteX: %d\0D\0A\00"
@.str.4 = [23 x i8] c"testStaAbsoluteY: %d\0D\0A\00"
@.str.5 = [23 x i8] c"testStaIndirectX: %d\0D\0A\00"
@.str.6 = [23 x i8] c"testStaIndirectY: %d\0D\0A\00"
define void @testSta() {
%1 = call i32 (...) @testStaZeropage()
%2 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 (...) @testStaZeropageX()
%4 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @testStaAbsolute()
%6 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 (...) @testStaAbsoluteX()
%8 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = call i32 (...) @testStaAbsoluteY()
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = call i32 (...) @testStaIndirectX()
%12 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = call i32 (...) @testStaIndirectY()
%14 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %13)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"testStaZeropage: %d\0D\0A\00"
@.str.1 = [23 x i8] c"testStaZeropageX: %d\0D\0A\00"
@.str.2 = [22 x i8] c"testStaAbsolute: %d\0D\0A\00"
@.str.3 = [23 x i8] c"testStaAbsoluteX: %d\0D\0A\00"
@.str.4 = [23 x i8] c"testStaAbsoluteY: %d\0D\0A\00"
@.str.5 = [23 x i8] c"testStaIndirectX: %d\0D\0A\00"
@.str.6 = [23 x i8] c"testStaIndirectY: %d\0D\0A\00"
define void @testSta() {
%1 = tail call i32 (...) @testStaZeropage()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @testStaZeropageX()
%4 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 (...) @testStaAbsolute()
%6 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 (...) @testStaAbsoluteX()
%8 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = tail call i32 (...) @testStaAbsoluteY()
%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 (...) @testStaIndirectX()
%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 (...) @testStaIndirectY()
%14 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %13)
ret void
}