#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() {
  printf("%-10s \t %-10s \t %10s \n", "Name", "Code", "Price");
  printf("%-10s \t %-10.0f \t %10.2f \n", "Fan", 67831.0, 1234.5);
  printf("%-10s \t %-10.0f \t %10.2f \n", "Motor", 450.0, 5786.70);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xefa(%rip),%rdi
lea    0xf0a(%rip),%rsi
lea    0xf08(%rip),%rdx
lea    0xf06(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
lea    0xf12(%rip),%rsi
movsd  0xeb8(%rip),%xmm0
movsd  0xeb8(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
lea    0xef1(%rip),%rsi
movsd  0xe83(%rip),%xmm0
movsd  0xe83(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf08(%rip),%rdi
lea    0xf18(%rip),%rsi
lea    0xf16(%rip),%rdx
lea    0xf14(%rip),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0c(%rip),%rbx
lea    0xf20(%rip),%rsi
movsd  0xeb6(%rip),%xmm0
movsd  0xeb6(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xf03(%rip),%rsi
movsd  0xea5(%rip),%xmm0
movsd  0xea5(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"%-10s \09 %-10s \09 %10s \0A\00"
@.str.1 = [5 x i8] c"Name\00"
@.str.2 = [5 x i8] c"Code\00"
@.str.3 = [6 x i8] c"Price\00"
@.str.4 = [27 x i8] c"%-10s \09 %-10.0f \09 %10.2f \0A\00"
@.str.5 = [4 x i8] c"Fan\00"
@.str.6 = [6 x i8] c"Motor\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double 6.783100e+04, double 1.234500e+03)
%4 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double 4.500000e+02, double 5.786700e+03)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"%-10s \09 %-10s \09 %10s \0A\00"
@.str.1 = [5 x i8] c"Name\00"
@.str.2 = [5 x i8] c"Code\00"
@.str.3 = [6 x i8] c"Price\00"
@.str.4 = [27 x i8] c"%-10s \09 %-10.0f \09 %10.2f \0A\00"
@.str.5 = [4 x i8] c"Fan\00"
@.str.6 = [6 x i8] c"Motor\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%2 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double 6.783100e+04, double 1.234500e+03)
%3 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double 4.500000e+02, double 5.786700e+03)
ret i32 0
}