#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*/ GetL1Coor(double, int, double *);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int body;
  double jd;
  double start = -20000.0;
  double end = +20000.0;
  double step = 225.0;
  double xyz[6];
  printf("{\n");
  for (body = 0; body < 4; body++) {
    printf("\t\"%d\": [\n", body);
    for (jd = start; jd < end; jd += step) {
      GetL1Coor(jd + 2451545.0, body, xyz);
      printf("\t\t[%.13f, %.13f, %.13f, %.13f, %.13f, %.13f, %.13f],\n", jd,
             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    $0x60,%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   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    121e <main+0xfe>
mov    -0x8(%rbp),%esi
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1202 <main+0xe2>
movsd  0xe6c(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%edi
lea    -0x60(%rbp),%rsi
call   1030 <GetL1Coor@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    0xe46(%rip),%rdi
mov    $0x7,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1190 <main+0x70>
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116b <main+0x4b>
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xecd(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0xea4(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xeb5(%rip),%rbx
nopl   (%rax)
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xe84(%rip),%xmm0
xor    %edi,%edi
mov    %r14,%rsi
call   1040 <GetL1Coor@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   1050 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xe40(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d3f,%ebp
jl     1170 <main+0x40>
lea    0xe77(%rip),%rdi
call   1030 <puts@plt>
lea    0xe27(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0xdfb(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xe0c(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xdd4(%rip),%xmm0
mov    $0x1,%edi
mov    %r14,%rsi
call   1040 <GetL1Coor@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   1050 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xd8d(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d3f,%ebp
jl     1220 <main+0xf0>
lea    0xdc4(%rip),%rdi
call   1030 <puts@plt>
lea    0xd74(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0xd48(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xd59(%rip),%rbx
nopl   0x0(%rax)
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xd24(%rip),%xmm0
mov    $0x2,%edi
mov    %r14,%rsi
call   1040 <GetL1Coor@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   1050 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xcdd(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d3f,%ebp
jl     12d0 <main+0x1a0>
lea    0xd14(%rip),%rdi
call   1030 <puts@plt>
lea    0xcc4(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0xc98(%rip),%xmm0
mov    $0xffffb0ff,%ebp
lea    0x10(%rsp),%r14
lea    0xca9(%rip),%rbx
nopl   0x0(%rax)
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xc74(%rip),%xmm0
mov    $0x3,%edi
mov    %r14,%rsi
call   1040 <GetL1Coor@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   1050 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xc2d(%rip),%xmm0
add    $0xe1,%ebp
cmp    $0x4d3f,%ebp
jl     1380 <main+0x250>
lea    0xc64(%rip),%rdi
call   1030 <puts@plt>
lea    0xc56(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x40,%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 [6 x double]
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
%8 = 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 %9
9: ; preds = %46, %0
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %49
12: ; preds = %9
%13 = load i32, i32* %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = load double, double* %4
store double %15, double* %3
br label %16
16: ; preds = %40, %12
%17 = load double, double* %3
%18 = load double, double* %5
%19 = fcmp olt double %17, %18
br i1 %19, label %20, label %44
20: ; preds = %16
%21 = load double, double* %3
%22 = fadd double %21, 0x4142B42C80000000
%23 = load i32, i32* %2
%24 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 0
%25 = call i32 @GetL1Coor(double %22, i32 %23, double* %24)
%26 = load double, double* %3
%27 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 0
%28 = load double, double* %27
%29 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 1
%30 = load double, double* %29
%31 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 2
%32 = load double, double* %31
%33 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 3
%34 = load double, double* %33
%35 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 4
%36 = load double, double* %35
%37 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 5
%38 = load double, double* %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %26, double %28, double %30, double %32, double %34, double %36, double %38)
br label %40
40: ; preds = %20
%41 = load double, double* %6
%42 = load double, double* %3
%43 = fadd double %42, %41
store double %43, double* %3
br label %16
44: ; preds = %16
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %46
46: ; preds = %44
%47 = load i32, i32* %2
%48 = add nsw i32 %47, 1
store i32 %48, i32* %2
br label %9
49: ; preds = %9
%50 = 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 [6 x double]
%2 = bitcast [6 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 [6 x double], [6 x double]* %1, i64 0, i64 0
%5 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 1
%6 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 2
%7 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 3
%8 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 4
%9 = getelementptr inbounds [6 x double], [6 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 ], [ %23, %11 ]
%13 = sitofp i32 %12 to double
%14 = fadd double %13, 0x4142B42C80000000
%15 = call i32 @GetL1Coor(double %14, i32 0, double* %4)
%16 = load double, double* %4
%17 = load double, double* %5
%18 = load double, double* %6
%19 = load double, double* %7
%20 = load double, double* %8
%21 = load double, double* %9
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %13, double %16, double %17, double %18, double %19, double %20, double %21)
%23 = add nsw i32 %12, 225
%24 = icmp slt i32 %12, 19775
br i1 %24, label %11, label %25
25: ; preds = %11
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%27 = 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 %28
28: ; preds = %28, %25
%29 = phi i32 [ -20000, %25 ], [ %40, %28 ]
%30 = sitofp i32 %29 to double
%31 = fadd double %30, 0x4142B42C80000000
%32 = call i32 @GetL1Coor(double %31, i32 1, double* %4)
%33 = load double, double* %4
%34 = load double, double* %5
%35 = load double, double* %6
%36 = load double, double* %7
%37 = load double, double* %8
%38 = load double, double* %9
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %30, double %33, double %34, double %35, double %36, double %37, double %38)
%40 = add nsw i32 %29, 225
%41 = icmp slt i32 %29, 19775
br i1 %41, label %28, label %42
42: ; preds = %28
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%44 = 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 %45
45: ; preds = %45, %42
%46 = phi i32 [ -20000, %42 ], [ %57, %45 ]
%47 = sitofp i32 %46 to double
%48 = fadd double %47, 0x4142B42C80000000
%49 = call i32 @GetL1Coor(double %48, i32 2, double* %4)
%50 = load double, double* %4
%51 = load double, double* %5
%52 = load double, double* %6
%53 = load double, double* %7
%54 = load double, double* %8
%55 = load double, double* %9
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %47, double %50, double %51, double %52, double %53, double %54, double %55)
%57 = add nsw i32 %46, 225
%58 = icmp slt i32 %46, 19775
br i1 %58, label %45, label %59
59: ; preds = %45
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%61 = 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 %62
62: ; preds = %62, %59
%63 = phi i32 [ -20000, %59 ], [ %74, %62 ]
%64 = sitofp i32 %63 to double
%65 = fadd double %64, 0x4142B42C80000000
%66 = call i32 @GetL1Coor(double %65, i32 3, double* %4)
%67 = load double, double* %4
%68 = load double, double* %5
%69 = load double, double* %6
%70 = load double, double* %7
%71 = load double, double* %8
%72 = load double, double* %9
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %64, double %67, double %68, double %69, double %70, double %71, double %72)
%74 = add nsw i32 %63, 225
%75 = icmp slt i32 %63, 19775
br i1 %75, label %62, label %76
76: ; preds = %62
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.6, i64 0, i64 0))
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.5, i64 0, i64 0))
ret i32 0
}