#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 *, double, ...);
int main() {
  int num, size, count;
  char letter;
  double gpa;
  num = 11;
  size = 4;
  count = num - 3;
  size = num + size - count;
  printf("num = %d\n", num);
  printf("size = %i\n", size);
  printf("count = %d\n", count);
  num = 214;
  letter = 'X';
  gpa = 3.93;
  printf("Letter = %c\nGPA = %lf\n", letter, gpa);
  printf("num  = %8d\n", num);
  printf("size = %8i\n", size);
  printf("GPA  = %8.2lf\n", gpa);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xb,-0x8(%rbp)
movl   $0x4,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0xfffffffd,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    %ecx,%eax
mov    -0x10(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
lea    0xeae(%rip),%rdi
mov    $0x1,%al
mov    %al,-0x21(%rbp)
call   1030 <printf@plt>
mov    -0x21(%rbp),%al
cvtsi2sdl -0xc(%rbp),%xmm0
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x21(%rbp),%al
cvtsi2sdl -0x10(%rbp),%xmm0
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
movl   $0xd6,-0x8(%rbp)
movb   $0x58,-0x11(%rbp)
movabs $0x400f70a3d70a3d71,%rax
70 0f 40
mov    %rax,-0x20(%rbp)
movsbl -0x11(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  -0x20(%rbp),%xmm1
lea    0xe70(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
lea    0xe74(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
cvtsi2sdl -0xc(%rbp),%xmm0
lea    0xe6d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
lea    0xe66(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf18(%rip),%rdi
movsd  0xee0(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
movsd  0xed2(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
movsd  0xec4(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
movsd  0xeb6(%rip),%xmm0
movsd  0xeb6(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
movsd  0xea8(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
movsd  0xe72(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
movsd  0xe74(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"num = %d\0A\00"
@.str.1 = [11 x i8] c"size = %i\0A\00"
@.str.2 = [12 x i8] c"count = %d\0A\00"
@.str.3 = [23 x i8] c"Letter = %c\0AGPA = %lf\0A\00"
@.str.4 = [12 x i8] c"num = %8d\0A\00"
@.str.5 = [12 x i8] c"size = %8i\0A\00"
@.str.6 = [15 x i8] c"GPA = %8.2lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca double
store i32 0, i32* %1
store i32 11, i32* %2
store i32 4, i32* %3
%7 = load i32, i32* %2
%8 = sub nsw i32 %7, 3
store i32 %8, i32* %4
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = add nsw i32 %9, %10
%12 = load i32, i32* %4
%13 = sub nsw i32 %11, %12
store i32 %13, i32* %3
%14 = load i32, i32* %2
%15 = sitofp i32 %14 to double
%16 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double %15)
%17 = load i32, i32* %3
%18 = sitofp i32 %17 to double
%19 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), double %18)
%20 = load i32, i32* %4
%21 = sitofp i32 %20 to double
%22 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %21)
store i32 214, i32* %2
store i8 88, i8* %5
store double 3.930000e+00, double* %6
%23 = load i8, i8* %5
%24 = sitofp i8 %23 to double
%25 = load double, double* %6
%26 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), double %24, double %25)
%27 = load i32, i32* %2
%28 = sitofp i32 %27 to double
%29 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), double %28)
%30 = load i32, i32* %3
%31 = sitofp i32 %30 to double
%32 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), double %31)
%33 = load double, double* %6
%34 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), double %33)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"num = %d\0A\00"
@.str.1 = [11 x i8] c"size = %i\0A\00"
@.str.2 = [12 x i8] c"count = %d\0A\00"
@.str.3 = [23 x i8] c"Letter = %c\0AGPA = %lf\0A\00"
@.str.4 = [12 x i8] c"num = %8d\0A\00"
@.str.5 = [12 x i8] c"size = %8i\0A\00"
@.str.6 = [15 x i8] c"GPA = %8.2lf\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double 1.100000e+01)
%2 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), double 7.000000e+00)
%3 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double 8.000000e+00)
%4 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), double 8.800000e+01, double 3.930000e+00)
%5 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), double 2.140000e+02)
%6 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), double 7.000000e+00)
%7 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), double 3.930000e+00)
ret i32 0
}