#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 Myvariable = 123;
  char Mychar = 'z';
  int Myint = 123;
  float MyFloat = 999.999;
  char E = 'E';
  char G = 'G';
  char A = 'A';
  int CourseNumber = 1302;
  printf("MyVariable is; %d\n", Myvariable);
  printf("MyChar is; %.c\n", Mychar);
  printf("MyInt is; %d\n", Myint);
  printf("MyFloat is; %.3f\n", MyFloat);
  printf("MyChar is; %c%c%d%c\n", 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)
movb   $0x7a,-0x9(%rbp)
movl   $0x7b,-0x10(%rbp)
movl   $0x4479fff0,-0x14(%rbp)
movb   $0x45,-0x15(%rbp)
movb   $0x47,-0x16(%rbp)
movb   $0x41,-0x17(%rbp)
movl   $0x516,-0x1c(%rbp)
movsbl -0x8(%rbp),%esi
lea    0xeaa(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x1d(%rbp)
call   1030 <printf@plt>
mov    -0x1d(%rbp),%al
movsbl -0x9(%rbp),%esi
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1d(%rbp),%al
movsbl -0x10(%rbp),%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvttss2si %xmm0,%eax
lea    0xe9b(%rip),%rdi
movsbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x15(%rbp),%al
movsbl -0x16(%rbp),%edx
mov    -0x1c(%rbp),%ecx
movsbl -0x17(%rbp),%r8d
lea    0xe8d(%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
mov    $0x7a,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x7b,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee2(%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 = [19 x i8] c"MyVariable is; %d\0A\00"
@.str.1 = [16 x i8] c"MyChar is; %.c\0A\00"
@.str.2 = [14 x i8] c"MyInt is; %d\0A\00"
@.str.3 = [18 x i8] c"MyFloat is; %.3f\0A\00"
@.str.4 = [21 x i8] c"MyChar is; %c%c%d%c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = alloca i32
%5 = alloca float
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i32
store i32 0, i32* %1
store i32 123, i32* %2
store i8 122, i8* %3
store i32 123, i32* %4
store float 0x408F3FFE00000000, float* %5
store i8 69, i8* %6
store i8 71, i8* %7
store i8 65, i8* %8
store i32 1302, i32* %9
%10 = load i32, i32* %2
%11 = trunc i32 %10 to i8
%12 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext %11)
%13 = load i8, i8* %3
%14 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8 signext %13)
%15 = load i32, i32* %4
%16 = trunc i32 %15 to i8
%17 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 signext %16)
%18 = load float, float* %5
%19 = fptosi float %18 to i8
%20 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i8 signext %19)
%21 = load i8, i8* %6
%22 = load i8, i8* %7
%23 = sext i8 %22 to i32
%24 = load i32, i32* %9
%25 = load i8, i8* %8
%26 = sext i8 %25 to i32
%27 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8 signext %21, i32 %23, i32 %24, i32 %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"MyVariable is; %d\0A\00"
@.str.1 = [16 x i8] c"MyChar is; %.c\0A\00"
@.str.2 = [14 x i8] c"MyInt is; %d\0A\00"
@.str.3 = [18 x i8] c"MyFloat is; %.3f\0A\00"
@.str.4 = [21 x i8] c"MyChar is; %c%c%d%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 ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8 signext 122)
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 signext 123)
%4 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i8 signext poison)
%5 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8 signext 69, i32 71, i32 1302, i32 65)
ret i32 0
}