#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);
int /*<<< orphan*/ puts(char *);
void print_post_flight_statistics(double flight_time, double burnout_time,
                                  double coast_time, double apogee_time,
                                  double max_altitude, double max_speed,
                                  double max_acceleration) {
  printf("Flight duration:  %6.2lf s\n", flight_time);
  printf("Burnout time:     %6.2lf s\n", burnout_time);
  printf("Coast time:       %6.2lf s\n", coast_time);
  printf("Time to apogee:   %6.2lf s\n", apogee_time);
  printf("Falling time:     %6.2lf s\n", flight_time - apogee_time);
  printf("Max altitude:     %6.2lf m\n", max_altitude);
  printf("Max speed:        %6.2lf m/s\n", max_speed);
  printf("Max acceleration: %6.2lf G\n", max_acceleration / 9.81);
  puts("");
}


x86 assembly (clang, -O0):
<print_post_flight_statistics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
lea    0xeb1(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x10(%rbp),%xmm0
lea    0xebc(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
lea    0xec7(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x20(%rbp),%xmm0
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x8(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xee3(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xeee(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x38(%rbp),%xmm0
movsd  0xe2c(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xeef(%rip),%rdi
call   1040 <printf@plt>
lea    0xefe(%rip),%rdi
call   1030 <puts@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_post_flight_statistics>:
sub    $0x38,%rsp
movsd  %xmm6,0x30(%rsp)
movsd  %xmm5,0x28(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  %xmm3,(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
movsd  0x8(%rsp),%xmm0
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
movsd  0x10(%rsp),%xmm0
call   1040 <printf@plt>
lea    0xed8(%rip),%rdi
movsd  (%rsp),%xmm0
call   1040 <printf@plt>
movsd  0x18(%rsp),%xmm0
subsd  (%rsp),%xmm0
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xee8(%rip),%rdi
movsd  0x20(%rsp),%xmm0
call   1040 <printf@plt>
lea    0xef2(%rip),%rdi
movsd  0x28(%rsp),%xmm0
call   1040 <printf@plt>
movsd  0x30(%rsp),%xmm0
divsd  0xe29(%rip),%xmm0
lea    0xef0(%rip),%rdi
call   1040 <printf@plt>
mov    $0xa,%edi
add    $0x38,%rsp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"Flight duration: %6.2lf s\0A\00"
@.str.1 = [28 x i8] c"Burnout time: %6.2lf s\0A\00"
@.str.2 = [28 x i8] c"Coast time: %6.2lf s\0A\00"
@.str.3 = [28 x i8] c"Time to apogee: %6.2lf s\0A\00"
@.str.4 = [28 x i8] c"Falling time: %6.2lf s\0A\00"
@.str.5 = [28 x i8] c"Max altitude: %6.2lf m\0A\00"
@.str.6 = [30 x i8] c"Max speed: %6.2lf m/s\0A\00"
@.str.7 = [28 x i8] c"Max acceleration: %6.2lf G\0A\00"
@.str.8 = [1 x i8] zeroinitializer
define void @print_post_flight_statistics(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
store double %6, double* %14
%15 = load double, double* %8
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), double %15)
%17 = load double, double* %9
%18 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %17)
%19 = load double, double* %10
%20 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), double %19)
%21 = load double, double* %11
%22 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), double %21)
%23 = load double, double* %8
%24 = load double, double* %11
%25 = fsub double %23, %24
%26 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), double %25)
%27 = load double, double* %12
%28 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), double %27)
%29 = load double, double* %13
%30 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), double %29)
%31 = load double, double* %14
%32 = fdiv double %31, 9.810000e+00
%33 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), double %32)
%34 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"Flight duration: %6.2lf s\0A\00"
@.str.1 = [28 x i8] c"Burnout time: %6.2lf s\0A\00"
@.str.2 = [28 x i8] c"Coast time: %6.2lf s\0A\00"
@.str.3 = [28 x i8] c"Time to apogee: %6.2lf s\0A\00"
@.str.4 = [28 x i8] c"Falling time: %6.2lf s\0A\00"
@.str.5 = [28 x i8] c"Max altitude: %6.2lf m\0A\00"
@.str.6 = [30 x i8] c"Max speed: %6.2lf m/s\0A\00"
@.str.7 = [28 x i8] c"Max acceleration: %6.2lf G\0A\00"
define void @print_post_flight_statistics(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), double %0)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %1)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), double %2)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), double %3)
%12 = fsub double %0, %3
%13 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), double %12)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), double %4)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), double %5)
%16 = fdiv double %6, 9.810000e+00
%17 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), double %16)
%18 = tail call i32 @putchar(i32 10)
ret void
}