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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x7b,-0x8(%rbp)
movl   $0x4479fff0,-0xc(%rbp)
movb   $0x7a,-0xd(%rbp)
movb   $0x45,-0xe(%rbp)
movb   $0x47,-0xf(%rbp)
movb   $0x41,-0x10(%rbp)
movl   $0x516,-0x14(%rbp)
mov    -0x8(%rbp),%dl
movss  -0xc(%rbp),%xmm0
cvttss2si %xmm0,%eax
movsbl -0xd(%rbp),%ecx
lea    0xea5(%rip),%rdi
movsbl %dl,%esi
movsbl %al,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xe(%rbp),%dl
mov    -0xf(%rbp),%al
mov    -0x14(%rbp),%ecx
movsbl -0x10(%rbp),%r8d
lea    0xe8e(%rip),%rdi
movsbl %dl,%esi
movsbl %al,%edx
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x7b,%esi
xor    %edx,%edx
mov    $0x7a,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x45,%esi
mov    $0x47,%edx
mov    $0x516,%ecx
mov    $0x41,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%d\0A%3f\0A%c\0A\00"
@.str.1 = [30 x i8] c"The course number is %c%c%d%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 69, i8* %5
store i8 71, i8* %6
store i8 65, i8* %7
store i32 1302, i32* %8
%9 = load i32, i32* %2
%10 = trunc i32 %9 to i8
%11 = load float, float* %3
%12 = fptosi float %11 to i8
%13 = load i8, i8* %4
%14 = sext i8 %13 to i32
%15 = call i32 (i8*, i8, i8, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext %10, i8 signext %12, i32 %14)
%16 = load i8, i8* %5
%17 = load i8, i8* %6
%18 = load i32, i32* %8
%19 = load i8, i8* %7
%20 = sext i8 %19 to i32
%21 = call i32 (i8*, i8, i8, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8 signext %16, i8 signext %17, i32 %18, i32 %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"%d\0A%3f\0A%c\0A\00"
@.str.1 = [30 x i8] c"The course number is %c%c%d%c\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8, i8, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext 123, i8 signext poison, i32 122)
%2 = tail call i32 (i8*, i8, i8, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8 signext 69, i8 signext 71, i32 1302, i32 65)
ret i32 0
}