#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 *, double, double, int /*<<< orphan*/,
                          int /*<<< orphan*/);
double process1(double);
double process2(double);
int /*<<< orphan*/ process3(double);
int /*<<< orphan*/ process4(double);
int main(int ac, char **av) {
  double in = 1.0;
  while (1) {
    printf("%-16.6g%-16.6g%-16.6g%-16.6g\n", process1(in), process2(in),
           process3(in), process4(in));
    in = 0.0;
  }
  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)
movsd  0xe92(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1060 <process1@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <process2@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <process3@plt>
mov    %eax,-0x1c(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <process4@plt>
movsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
mov    -0x1c(%rbp),%esi
mov    %eax,%edx
lea    0xe4a(%rip),%rdi
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1173 <main+0x23>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
movsd  0xea2(%rip),%xmm0
lea    0xea3(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm0,(%rsp)
call   1060 <process1@plt>
movsd  %xmm0,0x10(%rsp)
movsd  (%rsp),%xmm0
call   1030 <process2@plt>
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
call   1070 <process3@plt>
mov    %eax,%ebp
movsd  (%rsp),%xmm0
call   1040 <process4@plt>
mov    %rbx,%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
jmp    1170 <main+0x20>

LLVM IR (-O0):
@.str = [30 x i8] c"%-16.6g%-16.6g%-16.6g%-16.6g\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 1.000000e+00, double* %6
br label %7
7: ; preds = %2, %7
%8 = load double, double* %6
%9 = call double @process1(double %8)
%10 = load double, double* %6
%11 = call double @process2(double %10)
%12 = load double, double* %6
%13 = call i32 @process3(double %12)
%14 = load double, double* %6
%15 = call i32 @process4(double %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), double %9, double %11, i32 %13, i32 %15)
store double 0.000000e+00, double* %6
br label %7
}

LLVM IR (-O2):
@.str = [30 x i8] c"%-16.6g%-16.6g%-16.6g%-16.6g\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %3, %2
%4 = phi double [ 1.000000e+00, %2 ], [ 0.000000e+00, %3 ]
%5 = tail call double @process1(double %4)
%6 = tail call double @process2(double %4)
%7 = tail call i32 @process3(double %4)
%8 = tail call i32 @process4(double %4)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), double %5, double %6, i32 %7, i32 %8)
br label %3
}