#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 *, ...);
int /*<<< orphan*/ system(char *);
main() {
  char c1 = 'A', c2 = 'c';
  int x = 11, y = 16;
  float f = 56.7;
  double d = 456.789345;
  printf("+-------+-------+\n");
  printf("|%7c|%-7c|\n", c1, c2);
  printf("|%-7d|%7d|\n", x, y);
  printf("|%7.2f|%-7.1f|\n", f, d);
  printf("+-------+------+\n");
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movb   $0x41,-0x1(%rbp)
movb   $0x63,-0x2(%rbp)
movl   $0xb,-0x8(%rbp)
movl   $0x10,-0xc(%rbp)
movss  0xec2(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movsd  0xead(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x1(%rbp),%esi
movsbl -0x2(%rbp),%edx
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xe92(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe98(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x41,%esi
mov    $0x63,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec0(%rip),%rdi
mov    $0xb,%esi
mov    $0x10,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb4(%rip),%rdi
movsd  0xe84(%rip),%xmm0
movsd  0xe84(%rip),%xmm1
mov    $0x2,%al
call   1050 <printf@plt>
lea    0xebe(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9a(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"+-------+-------+\0A\00"
@.str.1 = [12 x i8] c"|%7c|%-7c|\0A\00"
@.str.2 = [12 x i8] c"|%-7d|%7d|\0A\00"
@.str.3 = [16 x i8] c"|%7.2f|%-7.1f|\0A\00"
@.str.4 = [18 x i8] c"+-------+------+\0A\00"
@.str.5 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca double
store i8 65, i8* %1
store i8 99, i8* %2
store i32 11, i32* %3
store i32 16, i32* %4
store float 0x404C5999A0000000, float* %5
store double 0x407C8CA12839042E, double* %6
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%8 = load i8, i8* %1
%9 = sext i8 %8 to i32
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %9, i32 %11)
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %13, i32 %14)
%16 = load float, float* %5
%17 = fpext float %16 to double
%18 = load double, double* %6
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), double %17, double %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%21 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [12 x i8] c"|%7c|%-7c|\0A\00"
@.str.2 = [12 x i8] c"|%-7d|%7d|\0A\00"
@.str.3 = [16 x i8] c"|%7.2f|%-7.1f|\0A\00"
@.str.5 = [6 x i8] c"pause\00"
@str = [18 x i8] c"+-------+-------+\00"
@str.6 = [17 x i8] c"+-------+------+\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 65, i32 99)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 11, i32 16)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), double 0x404C5999A0000000, double 0x407C8CA12839042E)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.6, i64 0, i64 0))
%6 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}