#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*/ GetTass17OsculatingCoor(float, float, int, double *);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int body;
  double jd2k;
  double start = -20025.0;
  double end = +20000.0;
  double step = 225.0;
  double xyz[7];
  printf("{\n");
  for (body = 0; body < 8; body++) {
    printf("\t\"%d\": [\n", body);
    for (jd2k = start; jd2k <= end; jd2k += step) {
      float jd = jd2k + 2451545.0;
      GetTass17OsculatingCoor(jd, jd, body, xyz);
      printf("\t\t[%.13f, %.13f, %.13f, %.13f, %.13f, %.13f, %.13f],\n", jd2k,
             xyz[0], xyz[1], xyz[2], xyz[3], xyz[4], xyz[5]);
    }
    printf("\t],\n");
  }
  printf("}\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xed9(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xec4(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xeaf(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jge    1231 <main+0x111>
mov    -0x8(%rbp),%esi
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1215 <main+0xf5>
movsd  0xe6c(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x64(%rbp),%xmm0
movss  -0x64(%rbp),%xmm1
mov    -0x8(%rbp),%edi
lea    -0x60(%rbp),%rsi
call   1040 <GetTass17OsculatingCoor@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm4
movsd  -0x40(%rbp),%xmm5
movsd  -0x38(%rbp),%xmm6
lea    0xe33(%rip),%rdi
mov    $0x7,%al
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1190 <main+0x70>
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116b <main+0x4b>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xec7(%rip),%r14
lea    0x10(%rsp),%r15
lea    0xec5(%rip),%r13
lea    0xef8(%rip),%r12
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffb0e6,%ebx
movsd  0xe77(%rip),%xmm1
nopl   0x0(%rax)
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
addsd  0xe66(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,%xmm1
mov    %ebp,%edi
mov    %r15,%rsi
call   1050 <GetTass17OsculatingCoor@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
movsd  0x38(%rsp),%xmm6
mov    %r13,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x7,%al
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm1
addsd  0xe1b(%rip),%xmm1
add    $0xe1,%ebx
cmp    $0x4d40,%ebx
jl     1190 <main+0x60>
mov    %r12,%rdi
call   1030 <puts@plt>
add    $0x1,%ebp
cmp    $0x8,%ebp
jne    1170 <main+0x40>
lea    0xe3c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"{\0A\00"
@.str.1 = [10 x i8] c"\09\22%d\22: [\0A\00"
@.str.2 = [54 x i8] c"\09\09[%.13f, %.13f, %.13f, %.13f, %.13f, %.13f, %.13f],\0A\00"
@.str.3 = [5 x i8] c"\09],\0A\00"
@.str.4 = [3 x i8] c"}\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca [7 x double]
%8 = alloca float
store i32 0, i32* %1
store double -2.002500e+04, double* %4
store double 2.000000e+04, double* %5
store double 2.250000e+02, double* %6
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %10
10: ; preds = %50, %0
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %53
13: ; preds = %10
%14 = load i32, i32* %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = load double, double* %4
store double %16, double* %3
br label %17
17: ; preds = %44, %13
%18 = load double, double* %3
%19 = load double, double* %5
%20 = fcmp ole double %18, %19
br i1 %20, label %21, label %48
21: ; preds = %17
%22 = load double, double* %3
%23 = fadd double %22, 0x4142B42C80000000
%24 = fptrunc double %23 to float
store float %24, float* %8
%25 = load float, float* %8
%26 = load float, float* %8
%27 = load i32, i32* %2
%28 = getelementptr inbounds [7 x double], [7 x double]* %7, i64 0, i64 0
%29 = call i32 @GetTass17OsculatingCoor(float %25, float %26, i32 %27, double* %28)
%30 = load double, double* %3
%31 = getelementptr inbounds [7 x double], [7 x double]* %7, i64 0, i64 0
%32 = load double, double* %31
%33 = getelementptr inbounds [7 x double], [7 x double]* %7, i64 0, i64 1
%34 = load double, double* %33
%35 = getelementptr inbounds [7 x double], [7 x double]* %7, i64 0, i64 2
%36 = load double, double* %35
%37 = getelementptr inbounds [7 x double], [7 x double]* %7, i64 0, i64 3
%38 = load double, double* %37
%39 = getelementptr inbounds [7 x double], [7 x double]* %7, i64 0, i64 4
%40 = load double, double* %39
%41 = getelementptr inbounds [7 x double], [7 x double]* %7, i64 0, i64 5
%42 = load double, double* %41
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %30, double %32, double %34, double %36, double %38, double %40, double %42)
br label %44
44: ; preds = %21
%45 = load double, double* %6
%46 = load double, double* %3
%47 = fadd double %46, %45
store double %47, double* %3
br label %17
48: ; preds = %17
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %50
50: ; preds = %48
%51 = load i32, i32* %2
%52 = add nsw i32 %51, 1
store i32 %52, i32* %2
br label %10
53: ; preds = %10
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [10 x i8] c"\09\22%d\22: [\0A\00"
@.str.2 = [54 x i8] c"\09\09[%.13f, %.13f, %.13f, %.13f, %.13f, %.13f, %.13f],\0A\00"
@str = [2 x i8] c"{\00"
@str.5 = [2 x i8] c"}\00"
@str.6 = [4 x i8] c"\09],\00"
define i32 @main() {
%1 = alloca [7 x double]
%2 = bitcast [7 x double]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%4 = getelementptr inbounds [7 x double], [7 x double]* %1, i64 0, i64 0
%5 = getelementptr inbounds [7 x double], [7 x double]* %1, i64 0, i64 1
%6 = getelementptr inbounds [7 x double], [7 x double]* %1, i64 0, i64 2
%7 = getelementptr inbounds [7 x double], [7 x double]* %1, i64 0, i64 3
%8 = getelementptr inbounds [7 x double], [7 x double]* %1, i64 0, i64 4
%9 = getelementptr inbounds [7 x double], [7 x double]* %1, i64 0, i64 5
br label %10
10: ; preds = %0, %28
%11 = phi i32 [ 0, %0 ], [ %30, %28 ]
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %11)
br label %13
13: ; preds = %10, %13
%14 = phi i32 [ -20025, %10 ], [ %26, %13 ]
%15 = sitofp i32 %14 to double
%16 = fadd double %15, 0x4142B42C80000000
%17 = fptrunc double %16 to float
%18 = call i32 @GetTass17OsculatingCoor(float %17, float %17, i32 %11, double* %4)
%19 = load double, double* %4
%20 = load double, double* %5
%21 = load double, double* %6
%22 = load double, double* %7
%23 = load double, double* %8
%24 = load double, double* %9
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %15, double %19, double %20, double %21, double %22, double %23, double %24)
%26 = add nsw i32 %14, 225
%27 = icmp sgt i32 %14, 19775
br i1 %27, label %28, label %13
28: ; preds = %13
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%30 = add nuw nsw i32 %11, 1
%31 = icmp eq i32 %30, 8
br i1 %31, label %32, label %10
32: ; preds = %28
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.5, i64 0, i64 0))
ret i32 0
}