#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 cos(double);
double sin(double);
void car_dyanmics(double *x, double *c) {
  c[0] = x[2] + (x[4] * cos(x[5])) / 60 +
         (cos(x[1] / 10 + x[5]) * (x[0] / 10 + x[4])) / 60 +
         (cos(x[1] / 20 + x[5]) * (x[0] / 20 + x[4])) / 15;
  c[1] = x[3] + (x[4] * sin(x[5])) / 60 +
         (sin(x[1] / 10 + x[5]) * (x[0] / 10 + x[4])) / 60 +
         (sin(x[1] / 20 + x[5]) * (x[0] / 20 + x[4])) / 15;
  c[2] = x[0] / 10 + x[4];
  c[3] = x[1] / 10 + x[5];
}


x86 assembly (clang, -O0):
<car_dyanmics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm0
call   1040 <cos@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
movsd  0xea5(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xe6f(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x28(%rax),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  0xe45(%rip),%xmm3
divsd  %xmm3,%xmm2
mov    -0x8(%rbp),%rax
addsd  0x20(%rax),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe44(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xe1e(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x28(%rax),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  0xdf4(%rip),%xmm3
divsd  %xmm3,%xmm2
mov    -0x8(%rbp),%rax
addsd  0x20(%rax),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xdd3(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm0
call   1030 <sin@plt>
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm2,%xmm1
movsd  0xd90(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xd5a(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x28(%rax),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  0xd30(%rip),%xmm3
divsd  %xmm3,%xmm2
mov    -0x8(%rbp),%rax
addsd  0x20(%rax),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xd2f(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xd09(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x28(%rax),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  0xcdf(%rip),%xmm3
divsd  %xmm3,%xmm2
mov    -0x8(%rbp),%rax
addsd  0x20(%rax),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xcbe(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xc95(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x20(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xc6e(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x18(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<car_dyanmics>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  0x10(%rdi),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rdi),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x28(%rdi),%xmm0
call   1040 <cos@plt>
mulsd  0x10(%rsp),%xmm0
divsd  0xea5(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rbx),%xmm0
divsd  0xe94(%rip),%xmm0
addsd  0x28(%rbx),%xmm0
call   1040 <cos@plt>
movsd  (%rbx),%xmm2
divsd  0xe7e(%rip),%xmm2
addsd  0x20(%rbx),%xmm2
movsd  0x8(%rbx),%xmm1
mulsd  %xmm0,%xmm2
divsd  0xe60(%rip),%xmm2
addsd  0x8(%rsp),%xmm2
movsd  %xmm2,0x8(%rsp)
divsd  0xe5c(%rip),%xmm1
addsd  0x28(%rbx),%xmm1
movapd %xmm1,%xmm0
call   1040 <cos@plt>
movsd  (%rbx),%xmm1
divsd  0xe42(%rip),%xmm1
addsd  0x20(%rbx),%xmm1
mulsd  %xmm0,%xmm1
divsd  0xe39(%rip),%xmm1
addsd  0x8(%rsp),%xmm1
movsd  %xmm1,(%r14)
movsd  0x18(%rbx),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rbx),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x28(%rbx),%xmm0
call   1030 <sin@plt>
mulsd  0x10(%rsp),%xmm0
divsd  0xde8(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rbx),%xmm0
divsd  0xdd7(%rip),%xmm0
addsd  0x28(%rbx),%xmm0
call   1030 <sin@plt>
movsd  (%rbx),%xmm2
movsd  0x8(%rbx),%xmm1
divsd  0xdbc(%rip),%xmm2
addsd  0x20(%rbx),%xmm2
mulsd  %xmm0,%xmm2
divsd  0xda3(%rip),%xmm2
addsd  0x8(%rsp),%xmm2
movsd  %xmm2,0x8(%rsp)
divsd  0xd9f(%rip),%xmm1
addsd  0x28(%rbx),%xmm1
movapd %xmm1,%xmm0
call   1030 <sin@plt>
movsd  (%rbx),%xmm1
divsd  0xd85(%rip),%xmm1
addsd  0x20(%rbx),%xmm1
mulsd  %xmm0,%xmm1
divsd  0xd7c(%rip),%xmm1
addsd  0x8(%rsp),%xmm1
movsd  %xmm1,0x8(%r14)
movsd  (%rbx),%xmm0
movsd  0xd54(%rip),%xmm1
divsd  %xmm1,%xmm0
addsd  0x20(%rbx),%xmm0
movsd  %xmm0,0x10(%r14)
movsd  0x8(%rbx),%xmm0
divsd  %xmm1,%xmm0
addsd  0x28(%rbx),%xmm0
movsd  %xmm0,0x18(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @car_dyanmics(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = getelementptr inbounds double, double* %5, i64 2
%7 = load double, double* %6
%8 = load double*, double** %3
%9 = getelementptr inbounds double, double* %8, i64 4
%10 = load double, double* %9
%11 = load double*, double** %3
%12 = getelementptr inbounds double, double* %11, i64 5
%13 = load double, double* %12
%14 = call double @cos(double %13)
%15 = fmul double %10, %14
%16 = fdiv double %15, 6.000000e+01
%17 = fadd double %7, %16
%18 = load double*, double** %3
%19 = getelementptr inbounds double, double* %18, i64 1
%20 = load double, double* %19
%21 = fdiv double %20, 1.000000e+01
%22 = load double*, double** %3
%23 = getelementptr inbounds double, double* %22, i64 5
%24 = load double, double* %23
%25 = fadd double %21, %24
%26 = call double @cos(double %25)
%27 = load double*, double** %3
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load double, double* %28
%30 = fdiv double %29, 1.000000e+01
%31 = load double*, double** %3
%32 = getelementptr inbounds double, double* %31, i64 4
%33 = load double, double* %32
%34 = fadd double %30, %33
%35 = fmul double %26, %34
%36 = fdiv double %35, 6.000000e+01
%37 = fadd double %17, %36
%38 = load double*, double** %3
%39 = getelementptr inbounds double, double* %38, i64 1
%40 = load double, double* %39
%41 = fdiv double %40, 2.000000e+01
%42 = load double*, double** %3
%43 = getelementptr inbounds double, double* %42, i64 5
%44 = load double, double* %43
%45 = fadd double %41, %44
%46 = call double @cos(double %45)
%47 = load double*, double** %3
%48 = getelementptr inbounds double, double* %47, i64 0
%49 = load double, double* %48
%50 = fdiv double %49, 2.000000e+01
%51 = load double*, double** %3
%52 = getelementptr inbounds double, double* %51, i64 4
%53 = load double, double* %52
%54 = fadd double %50, %53
%55 = fmul double %46, %54
%56 = fdiv double %55, 1.500000e+01
%57 = fadd double %37, %56
%58 = load double*, double** %4
%59 = getelementptr inbounds double, double* %58, i64 0
store double %57, double* %59
%60 = load double*, double** %3
%61 = getelementptr inbounds double, double* %60, i64 3
%62 = load double, double* %61
%63 = load double*, double** %3
%64 = getelementptr inbounds double, double* %63, i64 4
%65 = load double, double* %64
%66 = load double*, double** %3
%67 = getelementptr inbounds double, double* %66, i64 5
%68 = load double, double* %67
%69 = call double @sin(double %68)
%70 = fmul double %65, %69
%71 = fdiv double %70, 6.000000e+01
%72 = fadd double %62, %71
%73 = load double*, double** %3
%74 = getelementptr inbounds double, double* %73, i64 1
%75 = load double, double* %74
%76 = fdiv double %75, 1.000000e+01
%77 = load double*, double** %3
%78 = getelementptr inbounds double, double* %77, i64 5
%79 = load double, double* %78
%80 = fadd double %76, %79
%81 = call double @sin(double %80)
%82 = load double*, double** %3
%83 = getelementptr inbounds double, double* %82, i64 0
%84 = load double, double* %83
%85 = fdiv double %84, 1.000000e+01
%86 = load double*, double** %3
%87 = getelementptr inbounds double, double* %86, i64 4
%88 = load double, double* %87
%89 = fadd double %85, %88
%90 = fmul double %81, %89
%91 = fdiv double %90, 6.000000e+01
%92 = fadd double %72, %91
%93 = load double*, double** %3
%94 = getelementptr inbounds double, double* %93, i64 1
%95 = load double, double* %94
%96 = fdiv double %95, 2.000000e+01
%97 = load double*, double** %3
%98 = getelementptr inbounds double, double* %97, i64 5
%99 = load double, double* %98
%100 = fadd double %96, %99
%101 = call double @sin(double %100)
%102 = load double*, double** %3
%103 = getelementptr inbounds double, double* %102, i64 0
%104 = load double, double* %103
%105 = fdiv double %104, 2.000000e+01
%106 = load double*, double** %3
%107 = getelementptr inbounds double, double* %106, i64 4
%108 = load double, double* %107
%109 = fadd double %105, %108
%110 = fmul double %101, %109
%111 = fdiv double %110, 1.500000e+01
%112 = fadd double %92, %111
%113 = load double*, double** %4
%114 = getelementptr inbounds double, double* %113, i64 1
store double %112, double* %114
%115 = load double*, double** %3
%116 = getelementptr inbounds double, double* %115, i64 0
%117 = load double, double* %116
%118 = fdiv double %117, 1.000000e+01
%119 = load double*, double** %3
%120 = getelementptr inbounds double, double* %119, i64 4
%121 = load double, double* %120
%122 = fadd double %118, %121
%123 = load double*, double** %4
%124 = getelementptr inbounds double, double* %123, i64 2
store double %122, double* %124
%125 = load double*, double** %3
%126 = getelementptr inbounds double, double* %125, i64 1
%127 = load double, double* %126
%128 = fdiv double %127, 1.000000e+01
%129 = load double*, double** %3
%130 = getelementptr inbounds double, double* %129, i64 5
%131 = load double, double* %130
%132 = fadd double %128, %131
%133 = load double*, double** %4
%134 = getelementptr inbounds double, double* %133, i64 3
store double %132, double* %134
ret void
}

LLVM IR (-O2):
define void @car_dyanmics(double* nocapture %0, double* nocapture writeonly %1) {
%3 = getelementptr inbounds double, double* %0, i64 2
%4 = load double, double* %3
%5 = getelementptr inbounds double, double* %0, i64 4
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %0, i64 5
%8 = load double, double* %7
%9 = tail call double @cos(double %8)
%10 = fmul double %6, %9
%11 = fdiv double %10, 6.000000e+01
%12 = fadd double %4, %11
%13 = getelementptr inbounds double, double* %0, i64 1
%14 = load double, double* %13
%15 = fdiv double %14, 1.000000e+01
%16 = load double, double* %7
%17 = fadd double %15, %16
%18 = tail call double @cos(double %17)
%19 = load double, double* %0
%20 = fdiv double %19, 1.000000e+01
%21 = load double, double* %5
%22 = fadd double %20, %21
%23 = fmul double %18, %22
%24 = fdiv double %23, 6.000000e+01
%25 = fadd double %12, %24
%26 = load double, double* %13
%27 = fdiv double %26, 2.000000e+01
%28 = load double, double* %7
%29 = fadd double %27, %28
%30 = tail call double @cos(double %29)
%31 = load double, double* %0
%32 = fdiv double %31, 2.000000e+01
%33 = load double, double* %5
%34 = fadd double %32, %33
%35 = fmul double %30, %34
%36 = fdiv double %35, 1.500000e+01
%37 = fadd double %25, %36
store double %37, double* %1
%38 = getelementptr inbounds double, double* %0, i64 3
%39 = load double, double* %38
%40 = load double, double* %5
%41 = load double, double* %7
%42 = tail call double @sin(double %41)
%43 = fmul double %40, %42
%44 = fdiv double %43, 6.000000e+01
%45 = fadd double %39, %44
%46 = load double, double* %13
%47 = fdiv double %46, 1.000000e+01
%48 = load double, double* %7
%49 = fadd double %47, %48
%50 = tail call double @sin(double %49)
%51 = load double, double* %0
%52 = fdiv double %51, 1.000000e+01
%53 = load double, double* %5
%54 = fadd double %52, %53
%55 = fmul double %50, %54
%56 = fdiv double %55, 6.000000e+01
%57 = fadd double %45, %56
%58 = load double, double* %13
%59 = fdiv double %58, 2.000000e+01
%60 = load double, double* %7
%61 = fadd double %59, %60
%62 = tail call double @sin(double %61)
%63 = load double, double* %0
%64 = fdiv double %63, 2.000000e+01
%65 = load double, double* %5
%66 = fadd double %64, %65
%67 = fmul double %62, %66
%68 = fdiv double %67, 1.500000e+01
%69 = fadd double %57, %68
%70 = getelementptr inbounds double, double* %1, i64 1
store double %69, double* %70
%71 = load double, double* %0
%72 = fdiv double %71, 1.000000e+01
%73 = load double, double* %5
%74 = fadd double %72, %73
%75 = getelementptr inbounds double, double* %1, i64 2
store double %74, double* %75
%76 = load double, double* %13
%77 = fdiv double %76, 1.000000e+01
%78 = load double, double* %7
%79 = fadd double %77, %78
%80 = getelementptr inbounds double, double* %1, i64 3
store double %79, double* %80
ret void
}