#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, ...);
int main(int argc, const char *argv[]) {
  printf("Outout character = %c\n", 'A');
  printf("Integer = %d\n", 5);
  printf("Negative integer = %d%3.i, %3.i\n", -5, -6, -7);
  printf("Integer with sign = %+d, %+d\n", -4, 5);
  printf("Float with sign = %+f, %+f\n", -4.0, 5.0);
  printf("Integer = %d\tString = %s\tChar=%c\tDouble = %f\n", 4, "Test", 'I',
         5.0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xedb(%rip),%rdi
mov    $0x41,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0xfffffffb,%esi
mov    $0xfffffffa,%edx
mov    $0xfffffff9,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0xfffffffc,%esi
mov    $0x5,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0xfffffffc,%esi
movsd  0xe6b(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x4,%esi
lea    0xf07(%rip),%rdx
mov    $0x49,%ecx
movsd  0xe44(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
mov    $0x41,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0xfffffffb,%esi
mov    $0xfffffffa,%edx
mov    $0xfffffff9,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0xfffffffc,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
movsd  0xe85(%rip),%xmm0
mov    $0xfffffffc,%esi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
lea    0xf21(%rip),%rdx
mov    $0x4,%esi
mov    $0x49,%ecx
movsd  0xe59(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Outout character = %c\0A\00"
@.str.1 = [14 x i8] c"Integer = %d\0A\00"
@.str.2 = [33 x i8] c"Negative integer = %d%3.i, %3.i\0A\00"
@.str.3 = [30 x i8] c"Integer with sign = %+d, %+d\0A\00"
@.str.4 = [28 x i8] c"Float with sign = %+f, %+f\0A\00"
@.str.5 = [46 x i8] c"Integer = %d\09String = %s\09Char=%c\09Double = %f\0A\00"
@.str.6 = [5 x i8] c"Test\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 65)
%7 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 5)
%8 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 -5, i32 -6, i32 -7)
%9 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 -4, i32 5)
%10 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 -4, double 5.000000e+00)
%11 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 73, double 5.000000e+00)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"Outout character = %c\0A\00"
@.str.1 = [14 x i8] c"Integer = %d\0A\00"
@.str.2 = [33 x i8] c"Negative integer = %d%3.i, %3.i\0A\00"
@.str.3 = [30 x i8] c"Integer with sign = %+d, %+d\0A\00"
@.str.4 = [28 x i8] c"Float with sign = %+f, %+f\0A\00"
@.str.5 = [46 x i8] c"Integer = %d\09String = %s\09Char=%c\09Double = %f\0A\00"
@.str.6 = [5 x i8] c"Test\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 65)
%4 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 5)
%5 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 -5, i32 -6, i32 -7)
%6 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 -4, i32 5)
%7 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 -4, double 5.000000e+00)
%8 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 73, double 5.000000e+00)
ret i32 0
}