#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 main() {
  int MyInt = 123;
  float MyFloat = 999.999;
  char MyChar = 'z';
  char E = "E";
  char G = "G";
  char A = "A";
  int CourseNumber = 1302;
  printf("%d", MyInt);
  printf("%f", MyFloat);
  printf("%c", MyChar);
  printf("%c", E);
  printf("%c", G);
  printf("%c", A);
  printf("%d", CourseNumber);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x7b,-0x8(%rbp)
movss  0xed2(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movb   $0x7a,-0xd(%rbp)
lea    0xec6(%rip),%rax
mov    %al,-0xe(%rbp)
lea    0xebe(%rip),%rax
mov    %al,-0xf(%rbp)
lea    0xeb6(%rip),%rax
mov    %al,-0x10(%rbp)
movl   $0x516,-0x14(%rbp)
mov    -0x8(%rbp),%esi
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0xc(%rbp),%esi
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
movsbl -0xd(%rbp),%esi
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
movsbl -0xe(%rbp),%esi
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
movsbl -0xf(%rbp),%esi
lea    0xe69(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x10(%rbp),%esi
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe44(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xeeb(%rip),%r14
mov    %r14,%rdi
mov    $0x7b,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x3e7,%esi
call   1030 <printf@plt>
lea    0xecc(%rip),%rbx
mov    %rbx,%rdi
mov    $0x7a,%esi
call   1030 <printf@plt>
lea    0xeac(%rip),%rax
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xe9c(%rip),%rax
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xe8c(%rip),%rax
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x516,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [2 x i8] c"E\00"
@.str.1 = [2 x i8] c"G\00"
@.str.2 = [2 x i8] c"A\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i32
store i32 0, i32* %1
store i32 123, i32* %2
store float 0x408F3FFE00000000, float* %3
store i8 122, i8* %4
store i8 ptrtoint ([2 x i8]* @.str to i8), i8* %5
store i8 ptrtoint ([2 x i8]* @.str.1 to i8), i8* %6
store i8 ptrtoint ([2 x i8]* @.str.2 to i8), i8* %7
store i32 1302, i32* %8
%9 = load i32, i32* %2
%10 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = load float, float* %3
%12 = fptosi float %11 to i32
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = load i8, i8* %4
%15 = sext i8 %14 to i32
%16 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%17 = load i8, i8* %5
%18 = sext i8 %17 to i32
%19 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %18)
%20 = load i8, i8* %6
%21 = sext i8 %20 to i32
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %21)
%23 = load i8, i8* %7
%24 = sext i8 %23 to i32
%25 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %24)
%26 = load i32, i32* %8
%27 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"E\00"
@.str.1 = [2 x i8] c"G\00"
@.str.2 = [2 x i8] c"A\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [3 x i8] c"%c\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 123)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 999)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 122)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 sext (i8 ptrtoint ([2 x i8]* @.str to i8) to i32))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 sext (i8 ptrtoint ([2 x i8]* @.str.1 to i8) to i32))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 sext (i8 ptrtoint ([2 x i8]* @.str.2 to i8) to i32))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 1302)
ret i32 0
}