#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 atan(double);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf("%ld", 15829542671);
  printf("\n%2d\n%2d*\n", 2, 100);
  printf("%3%\n");
  printf("%.2d/%.2d/%.4d\n", 7, 14, 1789);
  double pi;
  pi = 4 * atan(1.0);
  printf("%.0f %.1f %.2f %.3f %.6f %.10f\n", pi, pi, pi, pi, pi, pi);
  printf("%.0e %.1e %.2e %.10e\n", pi, pi, pi, pi, pi, pi);
  printf("%.g %.1g %.2g %.4g %.8g\n", 10 / 3.0, 10 / 3.0, 10 / 3.0, 10 / 3.0,
         10 / 3.0);
  char *name = "name.xls";
  printf("...%.14s...\n", name);
  printf("...%14.14s...", name);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
movabs $0x3af83a70f,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x2,%esi
mov    $0x64,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
mov    $0x7,%esi
mov    $0xe,%edx
mov    $0x6fd,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xe76(%rip),%xmm0
call   1040 <atan@plt>
shl    $0x2,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm4
movsd  -0x10(%rbp),%xmm5
lea    0xe6c(%rip),%rdi
mov    $0x6,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm4
movsd  -0x10(%rbp),%xmm5
lea    0xe60(%rip),%rdi
mov    $0x6,%al
call   1030 <printf@plt>
lea    0xe68(%rip),%rdi
movsd  0xdf6(%rip),%xmm4
movaps %xmm4,%xmm0
movaps %xmm4,%xmm1
movaps %xmm4,%xmm2
movaps %xmm4,%xmm3
mov    $0x5,%al
call   1030 <printf@plt>
lea    0xe5f(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xee4(%rip),%rdi
movabs $0x3af83a70f,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x2,%esi
mov    $0x64,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x7,%esi
mov    $0xe,%edx
mov    $0x6fd,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
movsd  0xe78(%rip),%xmm0
call   1040 <atan@plt>
shl    $0x2,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xe90(%rip),%rdi
movapd %xmm0,%xmm1
movapd %xmm0,%xmm2
movapd %xmm0,%xmm3
movapd %xmm0,%xmm4
movapd %xmm0,%xmm5
mov    $0x6,%al
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
movaps %xmm0,%xmm3
movaps %xmm0,%xmm4
movaps %xmm0,%xmm5
mov    $0x6,%al
call   1030 <printf@plt>
lea    0xe81(%rip),%rdi
movsd  0xe17(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
movaps %xmm0,%xmm3
movaps %xmm0,%xmm4
mov    $0x5,%al
call   1030 <printf@plt>
lea    0xe81(%rip),%rdi
lea    0xe71(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe76(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%ld\00"
@.str.1 = [11 x i8] c"\0A%2d\0A%2d*\0A\00"
@.str.2 = [5 x i8] c"%3%\0A\00"
@.str.3 = [16 x i8] c"%.2d/%.2d/%.4d\0A\00"
@.str.4 = [32 x i8] c"%.0f %.1f %.2f %.3f %.6f %.10f\0A\00"
@.str.5 = [22 x i8] c"%.0e %.1e %.2e %.10e\0A\00"
@.str.6 = [25 x i8] c"%.g %.1g %.2g %.4g %.8g\0A\00"
@.str.7 = [9 x i8] c"name.xls\00"
@.str.8 = [13 x i8] c"...%.14s...\0A\00"
@.str.9 = [14 x i8] c"...%14.14s...\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca i8*
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 15829542671)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 100)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 7, i32 14, i32 1789)
%8 = call i32 @atan(double 1.000000e+00)
%9 = mul nsw i32 4, %8
%10 = sitofp i32 %9 to double
store double %10, double* %2
%11 = load double, double* %2
%12 = load double, double* %2
%13 = load double, double* %2
%14 = load double, double* %2
%15 = load double, double* %2
%16 = load double, double* %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), double %11, double %12, double %13, double %14, double %15, double %16)
%18 = load double, double* %2
%19 = load double, double* %2
%20 = load double, double* %2
%21 = load double, double* %2
%22 = load double, double* %2
%23 = load double, double* %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), double %18, double %19, double %20, double %21, double %22, double %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), double 0x400AAAAAAAAAAAAB, double 0x400AAAAAAAAAAAAB, double 0x400AAAAAAAAAAAAB, double 0x400AAAAAAAAAAAAB, double 0x400AAAAAAAAAAAAB)
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8** %3
%26 = load i8*, i8** %3
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* %26)
%28 = load i8*, i8** %3
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* %28)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%ld\00"
@.str.1 = [11 x i8] c"\0A%2d\0A%2d*\0A\00"
@.str.2 = [5 x i8] c"%3%\0A\00"
@.str.3 = [16 x i8] c"%.2d/%.2d/%.4d\0A\00"
@.str.4 = [32 x i8] c"%.0f %.1f %.2f %.3f %.6f %.10f\0A\00"
@.str.5 = [22 x i8] c"%.0e %.1e %.2e %.10e\0A\00"
@.str.6 = [25 x i8] c"%.g %.1g %.2g %.4g %.8g\0A\00"
@.str.7 = [9 x i8] c"name.xls\00"
@.str.8 = [13 x i8] c"...%.14s...\0A\00"
@.str.9 = [14 x i8] c"...%14.14s...\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 15829542671)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 100)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 7, i32 14, i32 1789)
%5 = tail call i32 @atan(double 1.000000e+00)
%6 = shl nsw i32 %5, 2
%7 = sitofp i32 %6 to double
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), double %7, double %7, double %7, double %7, double %7, double %7)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), double %7, double %7, double %7, double %7, double %7, double %7)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), double 0x400AAAAAAAAAAAAB, double 0x400AAAAAAAAAAAAB, double 0x400AAAAAAAAAAAAB, double 0x400AAAAAAAAAAAAB, double 0x400AAAAAAAAAAAAB)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}