#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 *, float, double, ...);
int main(int argc, char const *argv[]) {
  float n1 = 3.0;
  double n2 = 3.0;
  long n3 = 2000000000;
  long n4 = 1234567890;
  printf("%.1e %.1e %.1e %.1e\n", n1, n2, n3, n4);
  printf("%ld %ld\n", n3, n4);
  printf("%ld %ld %ld %ld\n", n1, n2, n3, n4);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  0xeda(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movsd  0xec5(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movq   $0x77359400,-0x28(%rbp)
77
movq   $0x499602d2,-0x30(%rbp)
49
movss  -0x14(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
lea    0xea3(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
cvtsi2ssq -0x28(%rbp),%xmm0
cvtsi2sdq -0x30(%rbp),%xmm1
lea    0xea6(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
lea    0xe7e(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf00(%rip),%rdi
movss  0xee0(%rip),%xmm0
movsd  0xee0(%rip),%xmm1
mov    $0x77359400,%esi
mov    $0x499602d2,%edx
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
movss  0xebc(%rip),%xmm0
movsd  0xec0(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x77359400,%esi
mov    $0x499602d2,%edx
movss  0xe90(%rip),%xmm0
movsd  0xe90(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"%.1e %.1e %.1e %.1e\0A\00"
@.str.1 = [9 x i8] c"%ld %ld\0A\00"
@.str.2 = [17 x i8] c"%ld %ld %ld %ld\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca double
%8 = alloca i64
%9 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 3.000000e+00, float* %6
store double 3.000000e+00, double* %7
store i64 2000000000, i64* %8
store i64 1234567890, i64* %9
%10 = load float, float* %6
%11 = load double, double* %7
%12 = load i64, i64* %8
%13 = load i64, i64* %9
%14 = call i32 (i8*, float, double, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), float %10, double %11, i64 %12, i64 %13)
%15 = load i64, i64* %8
%16 = sitofp i64 %15 to float
%17 = load i64, i64* %9
%18 = sitofp i64 %17 to double
%19 = call i32 (i8*, float, double, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), float %16, double %18)
%20 = load float, float* %6
%21 = load double, double* %7
%22 = load i64, i64* %8
%23 = load i64, i64* %9
%24 = call i32 (i8*, float, double, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), float %20, double %21, i64 %22, i64 %23)
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"%.1e %.1e %.1e %.1e\0A\00"
@.str.1 = [9 x i8] c"%ld %ld\0A\00"
@.str.2 = [17 x i8] c"%ld %ld %ld %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, float, double, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), float 3.000000e+00, double 3.000000e+00, i64 2000000000, i64 1234567890)
%4 = tail call i32 (i8*, float, double, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), float 2.000000e+09, double 0x41D26580B4800000)
%5 = tail call i32 (i8*, float, double, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), float 3.000000e+00, double 3.000000e+00, i64 2000000000, i64 1234567890)
ret i32 0
}