#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 variable1 = -10;
  unsigned int variable2 = 15;
  float variable7 = 3.5f;
  double variable8 = 2e10;
  long double variable9 = 5.5;
  char variable10 = 'c';
  printf("print value of %%d and %%i: %d, %i\n", variable1, variable2);
  printf("print value of %%u: %u, %u\n", variable1, variable2);
  printf("print value of %%o, %%x, %%X: %o, %x, %X\n", variable1, variable1,
         variable1);
  printf("print value of %%f, %%F, %%e, %%E, %%g and %%G: %f, %F, %e, %E, %g, "
         "%G\n",
         variable7, variable7, variable7, variable7, variable7, variable8);
  printf("print value of %%c, %%s: %c, %s\n", variable10, "message");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0xfffffff6,-0x4(%rbp)
movl   $0xf,-0x8(%rbp)
movl   $0x40600000,-0xc(%rbp)
movabs $0x4212a05f20000000,%rax
a0 12 42
mov    %rax,-0x18(%rbp)
flds   0xebf(%rip)
fstpt  -0x30(%rbp)
movb   $0x63,-0x31(%rbp)
movsbl -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xeae(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x32(%rbp)
call   1030 <printf@plt>
mov    -0x32(%rbp),%al
movsbl -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x32(%rbp),%al
mov    -0x4(%rbp),%ecx
mov    %cl,%dl
movsbl %dl,%esi
lea    0xebc(%rip),%rdi
mov    %ecx,%edx
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvttss2si %xmm0,%eax
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0xc(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0xc(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movsd  -0x18(%rbp),%xmm4
lea    0xea6(%rip),%rdi
movsbl %al,%esi
mov    $0x5,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
lea    0xef7(%rip),%rdx
movsbl -0x31(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
mov    $0xfffffff6,%esi
mov    $0xf,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0xfffffff6,%esi
mov    $0xf,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
mov    $0xfffffff6,%esi
mov    $0xfffffff6,%edx
mov    $0xfffffff6,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
movsd  0xe93(%rip),%xmm0
movsd  0xe93(%rip),%xmm4
mov    $0x3,%esi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
movaps %xmm0,%xmm3
mov    $0x5,%al
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
lea    0xf4b(%rip),%rdx
mov    $0x63,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"print value of %%d and %%i: %d, %i\0A\00"
@.str.1 = [28 x i8] c"print value of %%u: %u, %u\0A\00"
@.str.2 = [42 x i8] c"print value of %%o, %%x, %%X: %o, %x, %X\0A\00"
@.str.3 = [72 x i8] c"print value of %%f, %%F, %%e, %%E, %%g and %%G: %f, %F, %e, %E, %g, %G\0A\00"
@.str.4 = [33 x i8] c"print value of %%c, %%s: %c, %s\0A\00"
@.str.5 = [8 x i8] c"message\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca double
%5 = alloca x86_fp80
%6 = alloca i8
store i32 -10, i32* %1
store i32 15, i32* %2
store float 3.500000e+00, float* %3
store double 2.000000e+10, double* %4
store x86_fp80 0xK4001B000000000000000, x86_fp80* %5
store i8 99, i8* %6
%7 = load i32, i32* %1
%8 = trunc i32 %7 to i8
%9 = load i32, i32* %2
%10 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8 signext %8, i32 %9)
%11 = load i32, i32* %1
%12 = trunc i32 %11 to i8
%13 = load i32, i32* %2
%14 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8 signext %12, i32 %13)
%15 = load i32, i32* %1
%16 = trunc i32 %15 to i8
%17 = load i32, i32* %1
%18 = load i32, i32* %1
%19 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8 signext %16, i32 %17, i32 %18)
%20 = load float, float* %3
%21 = fptosi float %20 to i8
%22 = load float, float* %3
%23 = fpext float %22 to double
%24 = load float, float* %3
%25 = fpext float %24 to double
%26 = load float, float* %3
%27 = fpext float %26 to double
%28 = load float, float* %3
%29 = fpext float %28 to double
%30 = load double, double* %4
%31 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i8 signext %21, double %23, double %25, double %27, double %29, double %30)
%32 = load i8, i8* %6
%33 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8 signext %32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [36 x i8] c"print value of %%d and %%i: %d, %i\0A\00"
@.str.1 = [28 x i8] c"print value of %%u: %u, %u\0A\00"
@.str.2 = [42 x i8] c"print value of %%o, %%x, %%X: %o, %x, %X\0A\00"
@.str.3 = [72 x i8] c"print value of %%f, %%F, %%e, %%E, %%g and %%G: %f, %F, %e, %E, %g, %G\0A\00"
@.str.4 = [33 x i8] c"print value of %%c, %%s: %c, %s\0A\00"
@.str.5 = [8 x i8] c"message\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8 signext -10, i32 15)
%2 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8 signext -10, i32 15)
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8 signext -10, i32 -10, i32 -10)
%4 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i8 signext 3, double 3.500000e+00, double 3.500000e+00, double 3.500000e+00, double 3.500000e+00, double 2.000000e+10)
%5 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8 signext 99, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}