#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*/ GetGust86OsculatingCoor(float, float, int, double *);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int body;
  double jd2k;
  double start = -20000.0;
  double end = +20000.0;
  double step = 225.0;
  double xyz[5 * 6];
  printf("{\n");
  for (body = 0; body < 5; body++) {
    printf("\t\"%d\": [\n", body);
    for (jd2k = start; jd2k <= end; jd2k += step) {
      float jd = jd2k + 2451545;
      GetGust86OsculatingCoor(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    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xed6(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xec1(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xeac(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    1252 <main+0x132>
mov    -0x8(%rbp),%esi
lea    0xea1(%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     1236 <main+0x116>
movsd  0xe69(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x124(%rbp)
ff
movss  -0x124(%rbp),%xmm0
ff
movss  -0x124(%rbp),%xmm1
ff
mov    -0x8(%rbp),%edi
lea    -0x120(%rbp),%rsi
call   1040 <GetGust86OsculatingCoor@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x120(%rbp),%xmm1
ff
movsd  -0x118(%rbp),%xmm2
ff
movsd  -0x110(%rbp),%xmm3
ff
movsd  -0x108(%rbp),%xmm4
ff
movsd  -0x100(%rbp),%xmm5
ff
movsd  -0xf8(%rbp),%xmm6
ff
lea    0xe12(%rip),%rdi
mov    $0x7,%al
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1193 <main+0x73>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116e <main+0x4e>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x100,%rsp
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xeca(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xea1(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xeb2(%rip),%rbx
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xe84(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,%xmm1
xor    %edi,%edi
mov    %r14,%rsi
call   1050 <GetGust86OsculatingCoor@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    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x7,%al
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xe39(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d40,%ebp
jl     1170 <main+0x40>
lea    0xe70(%rip),%rdi
call   1030 <puts@plt>
lea    0xe20(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xdf4(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xe05(%rip),%rbx
nopl   (%rax)
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xdd4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,%xmm1
mov    $0x1,%edi
mov    %r14,%rsi
call   1050 <GetGust86OsculatingCoor@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    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x7,%al
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xd86(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d40,%ebp
jl     1220 <main+0xf0>
lea    0xdbd(%rip),%rdi
call   1030 <puts@plt>
lea    0xd6d(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xd41(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xd52(%rip),%rbx
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xd24(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,%xmm1
mov    $0x2,%edi
mov    %r14,%rsi
call   1050 <GetGust86OsculatingCoor@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    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x7,%al
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xcd6(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d40,%ebp
jl     12d0 <main+0x1a0>
lea    0xd0d(%rip),%rdi
call   1030 <puts@plt>
lea    0xcbd(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xc91(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xca2(%rip),%rbx
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xc74(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,%xmm1
mov    $0x3,%edi
mov    %r14,%rsi
call   1050 <GetGust86OsculatingCoor@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    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x7,%al
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xc26(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d40,%ebp
jl     1380 <main+0x250>
lea    0xc5d(%rip),%rdi
call   1030 <puts@plt>
lea    0xc0d(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xbe1(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xbf2(%rip),%rbx
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xbc4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,%xmm1
mov    $0x4,%edi
mov    %r14,%rsi
call   1050 <GetGust86OsculatingCoor@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    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x7,%al
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xb76(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d40,%ebp
jl     1430 <main+0x300>
lea    0xbad(%rip),%rdi
call   1030 <puts@plt>
lea    0xb9f(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbx
pop    %r14
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 [30 x double]
%8 = alloca float
store i32 0, i32* %1
store double -2.000000e+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, 5
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 [30 x double], [30 x double]* %7, i64 0, i64 0
%29 = call i32 @GetGust86OsculatingCoor(float %25, float %26, i32 %27, double* %28)
%30 = load double, double* %3
%31 = getelementptr inbounds [30 x double], [30 x double]* %7, i64 0, i64 0
%32 = load double, double* %31
%33 = getelementptr inbounds [30 x double], [30 x double]* %7, i64 0, i64 1
%34 = load double, double* %33
%35 = getelementptr inbounds [30 x double], [30 x double]* %7, i64 0, i64 2
%36 = load double, double* %35
%37 = getelementptr inbounds [30 x double], [30 x double]* %7, i64 0, i64 3
%38 = load double, double* %37
%39 = getelementptr inbounds [30 x double], [30 x double]* %7, i64 0, i64 4
%40 = load double, double* %39
%41 = getelementptr inbounds [30 x double], [30 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 [30 x double]
%2 = bitcast [30 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 [30 x double], [30 x double]* %1, i64 0, i64 0
%5 = getelementptr inbounds [30 x double], [30 x double]* %1, i64 0, i64 1
%6 = getelementptr inbounds [30 x double], [30 x double]* %1, i64 0, i64 2
%7 = getelementptr inbounds [30 x double], [30 x double]* %1, i64 0, i64 3
%8 = getelementptr inbounds [30 x double], [30 x double]* %1, i64 0, i64 4
%9 = getelementptr inbounds [30 x double], [30 x double]* %1, i64 0, i64 5
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 0)
br label %11
11: ; preds = %0, %11
%12 = phi i32 [ -20000, %0 ], [ %24, %11 ]
%13 = sitofp i32 %12 to double
%14 = fadd double %13, 0x4142B42C80000000
%15 = fptrunc double %14 to float
%16 = call i32 @GetGust86OsculatingCoor(float %15, float %15, i32 0, double* %4)
%17 = load double, double* %4
%18 = load double, double* %5
%19 = load double, double* %6
%20 = load double, double* %7
%21 = load double, double* %8
%22 = load double, double* %9
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %13, double %17, double %18, double %19, double %20, double %21, double %22)
%24 = add nsw i32 %12, 225
%25 = icmp sgt i32 %12, 19775
br i1 %25, label %26, label %11
26: ; preds = %11
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %29
29: ; preds = %29, %26
%30 = phi i32 [ -20000, %26 ], [ %42, %29 ]
%31 = sitofp i32 %30 to double
%32 = fadd double %31, 0x4142B42C80000000
%33 = fptrunc double %32 to float
%34 = call i32 @GetGust86OsculatingCoor(float %33, float %33, i32 1, double* %4)
%35 = load double, double* %4
%36 = load double, double* %5
%37 = load double, double* %6
%38 = load double, double* %7
%39 = load double, double* %8
%40 = load double, double* %9
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %31, double %35, double %36, double %37, double %38, double %39, double %40)
%42 = add nsw i32 %30, 225
%43 = icmp sgt i32 %30, 19775
br i1 %43, label %44, label %29
44: ; preds = %29
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %47
47: ; preds = %47, %44
%48 = phi i32 [ -20000, %44 ], [ %60, %47 ]
%49 = sitofp i32 %48 to double
%50 = fadd double %49, 0x4142B42C80000000
%51 = fptrunc double %50 to float
%52 = call i32 @GetGust86OsculatingCoor(float %51, float %51, i32 2, double* %4)
%53 = load double, double* %4
%54 = load double, double* %5
%55 = load double, double* %6
%56 = load double, double* %7
%57 = load double, double* %8
%58 = load double, double* %9
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %49, double %53, double %54, double %55, double %56, double %57, double %58)
%60 = add nsw i32 %48, 225
%61 = icmp sgt i32 %48, 19775
br i1 %61, label %62, label %47
62: ; preds = %47
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 3)
br label %65
65: ; preds = %65, %62
%66 = phi i32 [ -20000, %62 ], [ %78, %65 ]
%67 = sitofp i32 %66 to double
%68 = fadd double %67, 0x4142B42C80000000
%69 = fptrunc double %68 to float
%70 = call i32 @GetGust86OsculatingCoor(float %69, float %69, i32 3, double* %4)
%71 = load double, double* %4
%72 = load double, double* %5
%73 = load double, double* %6
%74 = load double, double* %7
%75 = load double, double* %8
%76 = load double, double* %9
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %67, double %71, double %72, double %73, double %74, double %75, double %76)
%78 = add nsw i32 %66, 225
%79 = icmp sgt i32 %66, 19775
br i1 %79, label %80, label %65
80: ; preds = %65
%81 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 4)
br label %83
83: ; preds = %83, %80
%84 = phi i32 [ -20000, %80 ], [ %96, %83 ]
%85 = sitofp i32 %84 to double
%86 = fadd double %85, 0x4142B42C80000000
%87 = fptrunc double %86 to float
%88 = call i32 @GetGust86OsculatingCoor(float %87, float %87, i32 4, double* %4)
%89 = load double, double* %4
%90 = load double, double* %5
%91 = load double, double* %6
%92 = load double, double* %7
%93 = load double, double* %8
%94 = load double, double* %9
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %85, double %89, double %90, double %91, double %92, double %93, double %94)
%96 = add nsw i32 %84, 225
%97 = icmp sgt i32 %84, 19775
br i1 %97, label %98, label %83
98: ; preds = %83
%99 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%100 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.5, i64 0, i64 0))
ret i32 0
}