#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 testStxAbsolute();
int testStxZeropage();
int testStxZeropageY();
int testStyAbsolute();
int testStyZeropage();
int testStyZeropageX();
void testStores() {
  printf("testStxZeropage: %d\r\n", testStxZeropage());
  printf("testStxZeropageY: %d\r\n", testStxZeropageY());
  printf("testStxAbsolute: %d\r\n", testStxAbsolute());
  printf("testStyZeropage: %d\r\n", testStyZeropage());
  printf("testStyZeropageX: %d\r\n", testStyZeropageX());
  printf("testStyAbsolute: %d\r\n", testStyAbsolute());
}


x86 assembly (clang, -O0):
<testStores>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1080 <testStxZeropage@plt>
mov    %eax,%esi
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <testStxZeropageY@plt>
mov    %eax,%esi
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <testStxAbsolute@plt>
mov    %eax,%esi
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <testStyZeropage@plt>
mov    %eax,%esi
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <testStyZeropageX@plt>
mov    %eax,%esi
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1090 <testStyAbsolute@plt>
mov    %eax,%esi
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testStores>:
push   %rax
xor    %eax,%eax
call   1080 <testStxZeropage@plt>
lea    0xe81(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1050 <testStxZeropageY@plt>
lea    0xe82(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <testStxAbsolute@plt>
lea    0xe84(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1060 <testStyZeropage@plt>
lea    0xe85(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1070 <testStyZeropageX@plt>
lea    0xe86(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1090 <testStyAbsolute@plt>
lea    0xe88(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"testStxZeropage: %d\0D\0A\00"
@.str.1 = [23 x i8] c"testStxZeropageY: %d\0D\0A\00"
@.str.2 = [22 x i8] c"testStxAbsolute: %d\0D\0A\00"
@.str.3 = [22 x i8] c"testStyZeropage: %d\0D\0A\00"
@.str.4 = [23 x i8] c"testStyZeropageX: %d\0D\0A\00"
@.str.5 = [22 x i8] c"testStyAbsolute: %d\0D\0A\00"
define void @testStores() {
%1 = call i32 (...) @testStxZeropage()
%2 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 (...) @testStxZeropageY()
%4 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @testStxAbsolute()
%6 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 (...) @testStyZeropage()
%8 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = call i32 (...) @testStyZeropageX()
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = call i32 (...) @testStyAbsolute()
%12 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %11)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"testStxZeropage: %d\0D\0A\00"
@.str.1 = [23 x i8] c"testStxZeropageY: %d\0D\0A\00"
@.str.2 = [22 x i8] c"testStxAbsolute: %d\0D\0A\00"
@.str.3 = [22 x i8] c"testStyZeropage: %d\0D\0A\00"
@.str.4 = [23 x i8] c"testStyZeropageX: %d\0D\0A\00"
@.str.5 = [22 x i8] c"testStyAbsolute: %d\0D\0A\00"
define void @testStores() {
%1 = tail call i32 (...) @testStxZeropage()
%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 (...) @testStxZeropageY()
%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 (...) @testStxAbsolute()
%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 (...) @testStyZeropage()
%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 (...) @testStyZeropageX()
%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 (...) @testStyAbsolute()
%12 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %11)
ret void
}