#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() {
  float MyFloat;
  int MyInt;
  char MyChar;
  char E;
  char G;
  char A;
  int CourseNumber;
  MyInt = 123;
  MyFloat = 999.999;
  MyChar = 'Z';
  E = 'E';
  G = 'G';
  A = 'A';
  CourseNumber = 1302;
  printf("MyInt is: %d\n", MyInt);
  printf("MyFloat is: %.3f\n", MyFloat);
  printf("MyChar is:%c\n", MyChar);
  printf("Coursenumber is: %c%c%d%c\n", E, G, CourseNumber, A);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x7b,-0x8(%rbp)
movl   $0x4479fff0,-0x4(%rbp)
movb   $0x5a,-0x9(%rbp)
movb   $0x45,-0xa(%rbp)
movb   $0x47,-0xb(%rbp)
movb   $0x41,-0xc(%rbp)
movl   $0x516,-0x10(%rbp)
movsbl -0x8(%rbp),%esi
lea    0xeb8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvttss2si %xmm0,%eax
lea    0xeaf(%rip),%rdi
movsbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
movsbl -0x9(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xa(%rbp),%al
movsbl -0xb(%rbp),%edx
mov    -0x10(%rbp),%ecx
movsbl -0xc(%rbp),%r8d
lea    0xe9d(%rip),%rdi
movsbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%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    0xee3(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x5a,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee0(%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 = [14 x i8] c"MyInt is: %d\0A\00"
@.str.1 = [18 x i8] c"MyFloat is: %.3f\0A\00"
@.str.2 = [14 x i8] c"MyChar is:%c\0A\00"
@.str.3 = [27 x i8] c"Coursenumber is: %c%c%d%c\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca i32
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
%7 = alloca i32
store i32 123, i32* %2
store float 0x408F3FFE00000000, float* %1
store i8 90, i8* %3
store i8 69, i8* %4
store i8 71, i8* %5
store i8 65, i8* %6
store i32 1302, i32* %7
%8 = load i32, i32* %2
%9 = trunc i32 %8 to i8
%10 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8 signext %9)
%11 = load float, float* %1
%12 = fptosi float %11 to i8
%13 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8 signext %12)
%14 = load i8, i8* %3
%15 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 signext %14)
%16 = load i8, i8* %4
%17 = load i8, i8* %5
%18 = sext i8 %17 to i32
%19 = load i32, i32* %7
%20 = load i8, i8* %6
%21 = sext i8 %20 to i32
%22 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8 signext %16, i32 %18, i32 %19, i32 %21)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"MyInt is: %d\0A\00"
@.str.1 = [18 x i8] c"MyFloat is: %.3f\0A\00"
@.str.2 = [14 x i8] c"MyChar is:%c\0A\00"
@.str.3 = [27 x i8] c"Coursenumber is: %c%c%d%c\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8 signext 123)
%2 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8 signext poison)
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 signext 90)
%4 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8 signext 69, i32 71, i32 1302, i32 65)
ret i32 0
}