#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 SNDCTL_DSP_RESET;
int SNDCTL_DSP_STEREO;
int SNDCTL_DSP_SYNC;
int SOUND_PCM_WRITE_BITS;
int SOUND_PCM_WRITE_CHANNELS;
int SOUND_PCM_WRITE_RATE;
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("SNDCTL_DSP_STEREO = %d;\n", SNDCTL_DSP_STEREO);
  printf("SNDCTL_DSP_RESET = %d;\n", SNDCTL_DSP_RESET);
  printf("SNDCTL_DSP_SYNC = %d;\n", SNDCTL_DSP_SYNC);
  printf("SOUND_PCM_WRITE_BITS = %d;\n", SOUND_PCM_WRITE_BITS);
  printf("SOUND_PCM_WRITE_CHANNELS = %d;\n", SOUND_PCM_WRITE_CHANNELS);
  printf("SOUND_PCM_WRITE_RATE = %d;\n", SOUND_PCM_WRITE_RATE);
  printf("{ Sizeof(short) = %d; }\n", sizeof(short));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%esi
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e7b(%rip),%rax
mov    (%rax),%esi
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e5e(%rip),%rax
mov    (%rax),%esi
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xeec(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%esi
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%esi
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%esi
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%esi
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%esi
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"SNDCTL_DSP_STEREO = %d;\0A\00"
@SNDCTL_DSP_STEREO = global i32 0
@.str.1 = [24 x i8] c"SNDCTL_DSP_RESET = %d;\0A\00"
@SNDCTL_DSP_RESET = global i32 0
@.str.2 = [23 x i8] c"SNDCTL_DSP_SYNC = %d;\0A\00"
@SNDCTL_DSP_SYNC = global i32 0
@.str.3 = [28 x i8] c"SOUND_PCM_WRITE_BITS = %d;\0A\00"
@SOUND_PCM_WRITE_BITS = global i32 0
@.str.4 = [32 x i8] c"SOUND_PCM_WRITE_CHANNELS = %d;\0A\00"
@SOUND_PCM_WRITE_CHANNELS = global i32 0
@.str.5 = [28 x i8] c"SOUND_PCM_WRITE_RATE = %d;\0A\00"
@SOUND_PCM_WRITE_RATE = global i32 0
@.str.6 = [25 x i8] c"{ Sizeof(short) = %d; }\0A\00"
define i32 @main() {
%1 = load i32, i32* @SNDCTL_DSP_STEREO
%2 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @SNDCTL_DSP_RESET
%4 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @SNDCTL_DSP_SYNC
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @SOUND_PCM_WRITE_BITS
%8 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @SOUND_PCM_WRITE_CHANNELS
%10 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @SOUND_PCM_WRITE_RATE
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 2)
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"SNDCTL_DSP_STEREO = %d;\0A\00"
@SNDCTL_DSP_STEREO = global i32 0
@.str.1 = [24 x i8] c"SNDCTL_DSP_RESET = %d;\0A\00"
@SNDCTL_DSP_RESET = global i32 0
@.str.2 = [23 x i8] c"SNDCTL_DSP_SYNC = %d;\0A\00"
@SNDCTL_DSP_SYNC = global i32 0
@.str.3 = [28 x i8] c"SOUND_PCM_WRITE_BITS = %d;\0A\00"
@SOUND_PCM_WRITE_BITS = global i32 0
@.str.4 = [32 x i8] c"SOUND_PCM_WRITE_CHANNELS = %d;\0A\00"
@SOUND_PCM_WRITE_CHANNELS = global i32 0
@.str.5 = [28 x i8] c"SOUND_PCM_WRITE_RATE = %d;\0A\00"
@SOUND_PCM_WRITE_RATE = global i32 0
@.str.6 = [25 x i8] c"{ Sizeof(short) = %d; }\0A\00"
define i32 @main() {
%1 = load i32, i32* @SNDCTL_DSP_STEREO
%2 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @SNDCTL_DSP_RESET
%4 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @SNDCTL_DSP_SYNC
%6 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @SOUND_PCM_WRITE_BITS
%8 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @SOUND_PCM_WRITE_CHANNELS
%10 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @SOUND_PCM_WRITE_RATE
%12 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 2)
ret i32 0
}