#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 */
double fmod(double, double);
void ast_args(double t, double *f) {
  static const double fc[][5] = {
      {134.96340251, 1717915923.2178, 31.8792, 0.051635, -0.00024470},
      {357.52910918, 129596581.0481, -0.5532, 0.000136, -0.00001149},
      {93.27209062, 1739527262.8478, -12.7512, -0.001037, 0.00000417},
      {297.85019547, 1602961601.2090, -6.3706, 0.006593, -0.00003169},
      {125.04455501, -6962890.2665, 7.4722, 0.007702 - 0.00005939}};
  double tt[4];
  int i, j;
  for (tt[0] = t, i = 1; i < 4; i++)
    tt[i] = tt[i - 1] * t;
  for (i = 0; i < 5; i++) {
    f[i] = fc[i][0] * 3600.0;
    for (j = 0; j < 4; j++)
      f[i] += fc[i][j + 1] * tt[j];
    f[i] = fmod(f[i] * ((3.1415926535897932 / 180.0) / 3600.0),
                2.0 * 3.1415926535897932);
  }
}


x86 assembly (clang, -O0):
<ast_args>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
cmpl   $0x4,-0x34(%rbp)
jge    1167 <ast_args+0x57>
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0x30(%rbp,%rax,8),%xmm0
mulsd  -0x8(%rbp),%xmm0
movslq -0x34(%rbp),%rax
movsd  %xmm0,-0x30(%rbp,%rax,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1132 <ast_args+0x22>
movl   $0x0,-0x34(%rbp)
cmpl   $0x5,-0x34(%rbp)
jge    1243 <ast_args+0x133>
movslq -0x34(%rbp),%rcx
lea    0xe9d(%rip),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movsd  0xe6e(%rip),%xmm0
mulsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jge    1206 <ast_args+0xf6>
movslq -0x34(%rbp),%rcx
lea    0xe61(%rip),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x38(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm2
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11aa <ast_args+0x9a>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  0xdfa(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
movsd  0xde5(%rip),%xmm1
call   1030 <fmod@plt>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    116e <ast_args+0x5e>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ast_args>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
movsd  %xmm0,(%rsp)
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm2
movapd %xmm1,%xmm5
movsd  %xmm1,0x18(%rsp)
mulsd  %xmm0,%xmm2
movapd %xmm2,%xmm1
movapd %xmm2,%xmm3
movsd  %xmm2,0x8(%rsp)
movsd  0xeb3(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xeaf(%rip),%xmm2
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm4
movsd  %xmm1,0x10(%rsp)
movsd  0xea1(%rip),%xmm1
mulsd  %xmm5,%xmm1
addsd  %xmm2,%xmm1
movsd  0xe99(%rip),%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xe91(%rip),%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm2,%xmm0
mulsd  0xe89(%rip),%xmm0
movsd  0xe89(%rip),%xmm1
call   1030 <fmod@plt>
movsd  %xmm0,(%rbx)
movsd  0xe80(%rip),%xmm0
mulsd  (%rsp),%xmm0
addsd  0xe7b(%rip),%xmm0
movsd  0xe7b(%rip),%xmm1
mulsd  0x18(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  0xe71(%rip),%xmm2
mulsd  0x8(%rsp),%xmm2
addsd  %xmm1,%xmm2
movsd  0xe67(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  %xmm2,%xmm0
mulsd  0xe25(%rip),%xmm0
movsd  0xe25(%rip),%xmm1
call   1030 <fmod@plt>
movsd  %xmm0,0x8(%rbx)
movsd  0xe43(%rip),%xmm0
mulsd  (%rsp),%xmm0
addsd  0xe3e(%rip),%xmm0
movsd  0xe3e(%rip),%xmm1
mulsd  0x18(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  0xe34(%rip),%xmm2
mulsd  0x8(%rsp),%xmm2
addsd  %xmm1,%xmm2
movsd  0xe2a(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  %xmm2,%xmm0
mulsd  0xdc0(%rip),%xmm0
movsd  0xdc0(%rip),%xmm1
call   1030 <fmod@plt>
movsd  %xmm0,0x10(%rbx)
movsd  0xe06(%rip),%xmm0
mulsd  (%rsp),%xmm0
addsd  0xe01(%rip),%xmm0
movsd  0xe01(%rip),%xmm1
mulsd  0x18(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  0xdf7(%rip),%xmm2
mulsd  0x8(%rsp),%xmm2
addsd  %xmm1,%xmm2
movsd  0xded(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  %xmm2,%xmm0
mulsd  0xd5b(%rip),%xmm0
movsd  0xd5b(%rip),%xmm1
call   1030 <fmod@plt>
movsd  %xmm0,0x18(%rbx)
movsd  (%rsp),%xmm0
mulsd  0xdc4(%rip),%xmm0
addsd  0xdc4(%rip),%xmm0
movapd %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
mulsd  0xdba(%rip),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  0xdac(%rip),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm0,%xmm1
xorpd  %xmm0,%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
mulsd  0xcee(%rip),%xmm0
movsd  0xcee(%rip),%xmm1
call   1030 <fmod@plt>
movsd  %xmm0,0x20(%rbx)
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@ast_args.fc = internal constant [5 x [5 x double]] [[5 x double] [double 0x4060DED431802AB3, double 0x41D9995444CDF06F, double 3.187920e+01, double 5.163500e-02, double -2.447000e-04], [5 x double] [double 0x407658773B3001D0, double 0x419EE5F294314120, double -5.532000e-01, double 1.360000e-04, double -1.149000e-05], [5 x double] [double 0x40575169EEC69CB2, double 0x41D9EBC517B6425B, double -1.275120e+01, double -1.037000e-03, double 4.170000e-06], [5 x double] [double 0x40729D9A6690ADB8, double 0x41D7E2D0304D6042, double 0xC0197B7E90FF9724, double 6.593000e-03, double -3.169000e-05], [5 x double] [double 0x405F42D9FD41B4AB, double 0xC15A8FB2910E5604, double 7.472200e+00, double 0x3F7F4DDB8018EA06, double 0.000000e+00]]
define void @ast_args(double %0, double* %1) {
%3 = alloca double
%4 = alloca double*
%5 = alloca [4 x double]
%6 = alloca i32
%7 = alloca i32
store double %0, double* %3
store double* %1, double** %4
%8 = load double, double* %3
%9 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 0
store double %8, double* %9
store i32 1, i32* %6
br label %10
10: ; preds = %24, %2
%11 = load i32, i32* %6
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %27
13: ; preds = %10
%14 = load i32, i32* %6
%15 = sub nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %16
%18 = load double, double* %17
%19 = load double, double* %3
%20 = fmul double %18, %19
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %22
store double %20, double* %23
br label %24
24: ; preds = %13
%25 = load i32, i32* %6
%26 = add nsw i32 %25, 1
store i32 %26, i32* %6
br label %10
27: ; preds = %10
store i32 0, i32* %6
br label %28
28: ; preds = %79, %27
%29 = load i32, i32* %6
%30 = icmp slt i32 %29, 5
br i1 %30, label %31, label %82
31: ; preds = %28
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [5 x [5 x double]], [5 x [5 x double]]* @ast_args.fc, i64 0, i64 %33
%35 = getelementptr inbounds [5 x double], [5 x double]* %34, i64 0, i64 0
%36 = load double, double* %35
%37 = fmul double %36, 3.600000e+03
%38 = load double*, double** %4
%39 = load i32, i32* %6
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, double* %38, i64 %40
store double %37, double* %41
store i32 0, i32* %7
br label %42
42: ; preds = %64, %31
%43 = load i32, i32* %7
%44 = icmp slt i32 %43, 4
br i1 %44, label %45, label %67
45: ; preds = %42
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [5 x [5 x double]], [5 x [5 x double]]* @ast_args.fc, i64 0, i64 %47
%49 = load i32, i32* %7
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [5 x double], [5 x double]* %48, i64 0, i64 %51
%53 = load double, double* %52
%54 = load i32, i32* %7
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %55
%57 = load double, double* %56
%58 = load double*, double** %4
%59 = load i32, i32* %6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %58, i64 %60
%62 = load double, double* %61
%63 = call double @llvm.fmuladd.f64(double %53, double %57, double %62)
store double %63, double* %61
br label %64
64: ; preds = %45
%65 = load i32, i32* %7
%66 = add nsw i32 %65, 1
store i32 %66, i32* %7
br label %42
67: ; preds = %42
%68 = load double*, double** %4
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %68, i64 %70
%72 = load double, double* %71
%73 = fmul double %72, 0x3ED455A5B2FF8F9D
%74 = call double @fmod(double %73, double 0x401921FB54442D18)
%75 = load double*, double** %4
%76 = load i32, i32* %6
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %75, i64 %77
store double %74, double* %78
br label %79
79: ; preds = %67
%80 = load i32, i32* %6
%81 = add nsw i32 %80, 1
store i32 %81, i32* %6
br label %28
82: ; preds = %28
ret void
}

LLVM IR (-O2):
define void @ast_args(double %0, double* nocapture %1) {
%3 = fmul double %0, %0
%4 = fmul double %3, %0
%5 = fmul double %4, %0
%6 = tail call double @llvm.fmuladd.f64(double %0, double 0x41D9995444CDF06F, double 0x411DA7B0FF034B0F)
%7 = tail call double @llvm.fmuladd.f64(double %3, double 3.187920e+01, double %6)
%8 = tail call double @llvm.fmuladd.f64(double %4, double 5.163500e-02, double %7)
%9 = tail call double @llvm.fmuladd.f64(double %5, double -2.447000e-04, double %8)
%10 = fmul double %9, 0x3ED455A5B2FF8F9D
%11 = tail call double @fmod(double %10, double 0x401921FB54442D18)
store double %11, double* %1
%12 = tail call double @llvm.fmuladd.f64(double %0, double 0x419EE5F294314120, double 0x4133A3C0CB053198)
%13 = tail call double @llvm.fmuladd.f64(double %3, double -5.532000e-01, double %12)
%14 = tail call double @llvm.fmuladd.f64(double %4, double 1.360000e-04, double %13)
%15 = tail call double @llvm.fmuladd.f64(double %5, double -1.149000e-05, double %14)
%16 = getelementptr inbounds double, double* %1, i64 1
%17 = fmul double %15, 0x3ED455A5B2FF8F9D
%18 = tail call double @fmod(double %17, double 0x401921FB54442D18)
store double %18, double* %16
%19 = tail call double @llvm.fmuladd.f64(double %0, double 0x41D9EBC517B6425B, double 0x41147E8E1ADC8FB8)
%20 = tail call double @llvm.fmuladd.f64(double %3, double -1.275120e+01, double %19)
%21 = tail call double @llvm.fmuladd.f64(double %4, double -1.037000e-03, double %20)
%22 = tail call double @llvm.fmuladd.f64(double %5, double 4.170000e-06, double %21)
%23 = getelementptr inbounds double, double* %1, i64 2
%24 = fmul double %22, 0x3ED455A5B2FF8F9D
%25 = tail call double @fmod(double %24, double 0x401921FB54442D18)
store double %25, double* %23
%26 = tail call double @llvm.fmuladd.f64(double %0, double 0x41D7E2D0304D6042, double 0x41305C84B42528AF)
%27 = tail call double @llvm.fmuladd.f64(double %3, double 0xC0197B7E90FF9724, double %26)
%28 = tail call double @llvm.fmuladd.f64(double %4, double 6.593000e-03, double %27)
%29 = tail call double @llvm.fmuladd.f64(double %5, double -3.169000e-05, double %28)
%30 = getelementptr inbounds double, double* %1, i64 3
%31 = fmul double %29, 0x3ED455A5B2FF8F9D
%32 = tail call double @fmod(double %31, double 0x401921FB54442D18)
store double %32, double* %30
%33 = tail call double @llvm.fmuladd.f64(double %0, double 0xC15A8FB2910E5604, double 0x411B79C19796BFCA)
%34 = tail call double @llvm.fmuladd.f64(double %3, double 7.472200e+00, double %33)
%35 = tail call double @llvm.fmuladd.f64(double %4, double 0x3F7F4DDB8018EA06, double %34)
%36 = tail call double @llvm.fmuladd.f64(double %5, double 0.000000e+00, double %35)
%37 = getelementptr inbounds double, double* %1, i64 4
%38 = fmul double %36, 0x3ED455A5B2FF8F9D
%39 = tail call double @fmod(double %38, double 0x401921FB54442D18)
store double %39, double* %37
ret void
}