#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 */
scalar_t__ my_isnan(double);
int /*<<< orphan*/ printf(char *, double, double, double, double, double, ...);
void print_result_sv(double date, double ddot, double idot, double hdot,
                     double xdot, double ydot, double zdot, double fdot) {
  if (my_isnan(ddot)) {
    if (my_isnan(xdot))
      printf("  %4.2f        NaN   %7.1f     %8.1f      NaN      NaN %8.1f "
             "%8.1f\n",
             date, idot, hdot, zdot, fdot);
    else
      printf("  %4.2f        NaN   %7.1f     %8.1f %8.1f %8.1f %8.1f %8.1f\n",
             date, idot, hdot, xdot, ydot, zdot, fdot);
  } else
    printf("  %4.2f   %7.1f    %7.1f     %8.1f %8.1f %8.1f %8.1f %8.1f\n", date,
           ddot, idot, hdot, xdot, ydot, zdot, fdot);
  return;
}


x86 assembly (clang, -O0):
<print_result_sv>:
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  %xmm7,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1040 <my_isnan@plt>
cmp    $0x0,%rax
je     11da <print_result_sv+0xba>
movsd  -0x28(%rbp),%xmm0
call   1040 <my_isnan@plt>
cmp    $0x0,%rax
je     11a4 <print_result_sv+0x84>
movsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
lea    0xe68(%rip),%rdi
mov    $0x5,%al
call   1030 <printf@plt>
jmp    11d5 <print_result_sv+0xb5>
movsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x38(%rbp),%xmm5
movsd  -0x40(%rbp),%xmm6
lea    0xe76(%rip),%rdi
mov    $0x7,%al
call   1030 <printf@plt>
jmp    1210 <print_result_sv+0xf0>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
movsd  -0x38(%rbp),%xmm6
movsd  -0x40(%rbp),%xmm7
lea    0xe79(%rip),%rdi
mov    $0x8,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_result_sv>:
sub    $0x48,%rsp
movsd  %xmm7,0x28(%rsp)
movsd  %xmm6,0x20(%rsp)
movsd  %xmm5,0x38(%rsp)
movsd  %xmm4,0x30(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
movsd  %xmm1,0x40(%rsp)
movaps %xmm1,%xmm0
call   1040 <my_isnan@plt>
test   %rax,%rax
je     11a1 <print_result_sv+0x81>
movsd  0x30(%rsp),%xmm0
call   1040 <my_isnan@plt>
test   %rax,%rax
je     11e3 <print_result_sv+0xc3>
lea    0xe88(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
mov    $0x5,%al
add    $0x48,%rsp
jmp    1030 <printf@plt>
lea    0xeda(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x40(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x30(%rsp),%xmm4
movsd  0x38(%rsp),%xmm5
movsd  0x20(%rsp),%xmm6
movsd  0x28(%rsp),%xmm7
mov    $0x8,%al
add    $0x48,%rsp
jmp    1030 <printf@plt>
lea    0xe5a(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x30(%rsp),%xmm3
movsd  0x38(%rsp),%xmm4
movsd  0x20(%rsp),%xmm5
movsd  0x28(%rsp),%xmm6
mov    $0x7,%al
add    $0x48,%rsp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [68 x i8] c" %4.2f NaN %7.1f %8.1f NaN NaN %8.1f %8.1f\0A\00"
@.str.1 = [62 x i8] c" %4.2f NaN %7.1f %8.1f %8.1f %8.1f %8.1f %8.1f\0A\00"
@.str.2 = [60 x i8] c" %4.2f %7.1f %7.1f %8.1f %8.1f %8.1f %8.1f %8.1f\0A\00"
define void @print_result_sv(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
store double %7, double* %16
%17 = load double, double* %10
%18 = call i64 @my_isnan(double %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %41
20: ; preds = %8
%21 = load double, double* %13
%22 = call i64 @my_isnan(double %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = load double, double* %9
%26 = load double, double* %11
%27 = load double, double* %12
%28 = load double, double* %15
%29 = load double, double* %16
%30 = call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0), double %25, double %26, double %27, double %28, double %29)
br label %40
31: ; preds = %20
%32 = load double, double* %9
%33 = load double, double* %11
%34 = load double, double* %12
%35 = load double, double* %13
%36 = load double, double* %14
%37 = load double, double* %15
%38 = load double, double* %16
%39 = call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0), double %32, double %33, double %34, double %35, double %36, double %37, double %38)
br label %40
40: ; preds = %31, %24
br label %51
41: ; preds = %8
%42 = load double, double* %9
%43 = load double, double* %10
%44 = load double, double* %11
%45 = load double, double* %12
%46 = load double, double* %13
%47 = load double, double* %14
%48 = load double, double* %15
%49 = load double, double* %16
%50 = call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0), double %42, double %43, double %44, double %45, double %46, double %47, double %48, double %49)
br label %51
51: ; preds = %41, %40
ret void
}

LLVM IR (-O2):
@.str = [68 x i8] c" %4.2f NaN %7.1f %8.1f NaN NaN %8.1f %8.1f\0A\00"
@.str.1 = [62 x i8] c" %4.2f NaN %7.1f %8.1f %8.1f %8.1f %8.1f %8.1f\0A\00"
@.str.2 = [60 x i8] c" %4.2f %7.1f %7.1f %8.1f %8.1f %8.1f %8.1f %8.1f\0A\00"
define void @print_result_sv(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = tail call i64 @my_isnan(double %1)
%10 = icmp eq i64 %9, 0
br i1 %10, label %18, label %11
11: ; preds = %8
%12 = tail call i64 @my_isnan(double %4)
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0), double %0, double %2, double %3, double %6, double %7)
br label %20
16: ; preds = %11
%17 = tail call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0), double %0, double %2, double %3, double %4, double %5, double %6, double %7)
br label %20
18: ; preds = %8
%19 = tail call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0), double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7)
br label %20
20: ; preds = %14, %16, %18
ret void
}