#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*/ play();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main() {
  printf("HelloWorldello, World!\n");
  play();
  puts("Hello!");
  static int c = 30;
  int a = 10;
  int b = 20;
  int d = 30;
  char e = 'a';
  char f = 'a';
  printf("a的地址：%p\n", &a);
  printf("b的地址：%p\n", &b);
  printf("c的地址：%p\n", &c);
  printf("d的地址：%p\n", &d);
  printf("e的地址：%p\n", &e);
  printf("f的地址：%p\n", &f);
  float f1 = 2.345;
  printf("f1's value is %.2f\n", f1);
  printf("f1's address is %p\n", &f1);
  printf("f1's address is %p\n", &f1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <play@plt>
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
movl   $0xa,-0x8(%rbp)
movl   $0x14,-0xc(%rbp)
movl   $0x1e,-0x10(%rbp)
movb   $0x61,-0x11(%rbp)
movb   $0x61,-0x12(%rbp)
lea    0xe9f(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9e(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9d(%rip),%rdi
lea    0x2e89(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe99(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe98(%rip),%rdi
lea    -0x11(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe97(%rip),%rdi
lea    -0x12(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
movss  0xe0c(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe80(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe86(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe74(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xf5f(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <play@plt>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
movl   $0xa,0x14(%rsp)
movl   $0x14,0x10(%rsp)
movl   $0x1e,0xc(%rsp)
movb   $0x61,0x7(%rsp)
movb   $0x61,0x6(%rsp)
lea    0xe90(%rip),%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8e(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8c(%rip),%rdi
lea    0x2e8c(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe88(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe86(%rip),%rdi
lea    0x7(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe84(%rip),%rdi
lea    0x6(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x4016147b,0x8(%rsp)
40
lea    0xe7a(%rip),%rdi
movsd  0xdfd(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe78(%rip),%rbx
lea    0x8(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [24 x i8] c"HelloWorldello, World!\0A\00"
@.str.1 = [7 x i8] c"Hello!\00"
@main.c = internal global i32 30
@.str.2 = [17 x i8] c"a\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.3 = [17 x i8] c"b\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.4 = [17 x i8] c"c\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.5 = [17 x i8] c"d\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.6 = [17 x i8] c"e\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.7 = [17 x i8] c"f\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.8 = [20 x i8] c"f1's value is %.2f\0A\00"
@.str.9 = [20 x i8] c"f1's address is %p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i8
%7 = alloca float
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (...) @play()
%10 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i32 10, i32* %2
store i32 20, i32* %3
store i32 30, i32* %4
store i8 97, i8* %5
store i8 97, i8* %6
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32* @main.c)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32* %4)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %6)
store float 0x4002C28F60000000, float* %7
%17 = load float, float* %7
%18 = fpext float %17 to double
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), float* %7)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), float* %7)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"Hello!\00"
@main.c = internal global i32 30
@.str.2 = [17 x i8] c"a\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.3 = [17 x i8] c"b\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.4 = [17 x i8] c"c\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.5 = [17 x i8] c"d\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.6 = [17 x i8] c"e\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.7 = [17 x i8] c"f\E7\9A\84\E5\9C\B0\E5\9D\80\EF\BC\9A%p\0A\00"
@.str.8 = [20 x i8] c"f1's value is %.2f\0A\00"
@.str.9 = [20 x i8] c"f1's address is %p\0A\00"
@str = [23 x i8] c"HelloWorldello, World!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8
%5 = alloca i8
%6 = alloca float
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 (...) @play()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%10 = bitcast i32* %1 to i8*
store i32 10, i32* %1
%11 = bitcast i32* %2 to i8*
store i32 20, i32* %2
%12 = bitcast i32* %3 to i8*
store i32 30, i32* %3
store i8 97, i8* %4
store i8 97, i8* %5
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32* @main.c)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32* %3)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* %4)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %5)
%19 = bitcast float* %6 to i8*
store float 0x4002C28F60000000, float* %6
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double 0x4002C28F60000000)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), float* %6)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), float* %6)
ret i32 0
}