#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, ...);
int main() {
  int MyInt = 123, CourseNumber = 1302;
  float MyFloat = 999.999;
  char MyChar = 'z', E = 'E', G = 'G', A = 'A';
  printf("My integer is: %d\n", MyInt);
  printf("My float is: %.3f\n", MyFloat);
  printf("My character is: %c\n", MyChar);
  printf("My course number is: %d\n", CourseNumber);
  printf("Three random characters are : %c , %c, %c\n", E, G, 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   $0x516,-0xc(%rbp)
movl   $0x4479fff0,-0x10(%rbp)
movb   $0x7a,-0x11(%rbp)
movb   $0x45,-0x12(%rbp)
movb   $0x47,-0x13(%rbp)
movb   $0x41,-0x14(%rbp)
movsbl -0x8(%rbp),%esi
lea    0xeb1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvttss2si %xmm0,%eax
lea    0xead(%rip),%rdi
movsbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
movsbl -0x11(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
lea    0xeaf(%rip),%rdi
movsbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x12(%rbp),%al
movsbl -0x13(%rbp),%edx
movsbl -0x14(%rbp),%ecx
lea    0xeac(%rip),%rdi
movsbl %al,%esi
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    %eax,%eax
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x7a,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x16,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x45,%esi
mov    $0x47,%edx
mov    $0x41,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"My integer is: %d\0A\00"
@.str.1 = [19 x i8] c"My float is: %.3f\0A\00"
@.str.2 = [21 x i8] c"My character is: %c\0A\00"
@.str.3 = [25 x i8] c"My course number is: %d\0A\00"
@.str.4 = [43 x i8] c"Three random characters are : %c , %c, %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
store i32 0, i32* %1
store i32 123, i32* %2
store i32 1302, i32* %3
store float 0x408F3FFE00000000, float* %4
store i8 122, i8* %5
store i8 69, i8* %6
store i8 71, i8* %7
store i8 65, i8* %8
%9 = load i32, i32* %2
%10 = trunc i32 %9 to i8
%11 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext %10)
%12 = load float, float* %4
%13 = fptosi float %12 to i8
%14 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8 signext %13)
%15 = load i8, i8* %5
%16 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8 signext %15)
%17 = load i32, i32* %3
%18 = trunc i32 %17 to i8
%19 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8 signext %18)
%20 = load i8, i8* %6
%21 = load i8, i8* %7
%22 = sext i8 %21 to i32
%23 = load i8, i8* %8
%24 = sext i8 %23 to i32
%25 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i8 signext %20, i32 %22, i32 %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"My integer is: %d\0A\00"
@.str.1 = [19 x i8] c"My float is: %.3f\0A\00"
@.str.2 = [21 x i8] c"My character is: %c\0A\00"
@.str.3 = [25 x i8] c"My course number is: %d\0A\00"
@.str.4 = [43 x i8] c"Three random characters are : %c , %c, %c\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext 123)
%2 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8 signext poison)
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8 signext 122)
%4 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8 signext 22)
%5 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i8 signext 69, i32 71, i32 65)
ret i32 0
}