#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*/ campo(float **, float *, float);
int /*<<< orphan*/ fuerza(float **, float *, float *, float);
void aceleracion(float *a[3], float pos[3], float vel[3], float m, float gamma,
                 float q, float rt) {
  float *b[3];
  float cste;
  float *fue[3];
  campo(b, pos, rt);
  cste = 1.0 / (m * gamma);
  fuerza(fue, vel, *b, q);
  *a[0] = *fue[0] * cste;
  *a[1] = *fue[1] * cste;
  *a[2] = *fue[2] * cste;
}


x86 assembly (clang, -O0):
<aceleracion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movss  %xmm0,-0x1c(%rbp)
movss  %xmm1,-0x20(%rbp)
movss  %xmm2,-0x24(%rbp)
movss  %xmm3,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movss  -0x28(%rbp),%xmm0
call   1030 <campo@plt>
movss  -0x1c(%rbp),%xmm0
mulss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe90(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
lea    -0x60(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x40(%rbp),%rdx
movss  -0x24(%rbp),%xmm0
call   1040 <fuerza@plt>
mov    -0x60(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0x44(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movss  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0x44(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
movss  %xmm0,(%rax)
mov    -0x50(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0x44(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rax
movss  %xmm0,(%rax)
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aceleracion>:
push   %r14
push   %rbx
sub    $0x48,%rsp
movss  %xmm2,0xc(%rsp)
movss  %xmm1,0x4(%rsp)
movss  %xmm0,0x8(%rsp)
mov    %rdx,%r14
mov    %rdi,%rbx
lea    0x30(%rsp),%rdi
movaps %xmm3,%xmm0
call   1030 <campo@plt>
movss  0x8(%rsp),%xmm0
mulss  0x4(%rsp),%xmm0
movss  0xea0(%rip),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
mov    0x30(%rsp),%rdx
lea    0x10(%rsp),%rdi
mov    %r14,%rsi
movss  0xc(%rsp),%xmm0
call   1040 <fuerza@plt>
mov    0x10(%rsp),%rax
movss  (%rax),%xmm0
movss  0x4(%rsp),%xmm1
mulss  %xmm1,%xmm0
mov    (%rbx),%rax
movss  %xmm0,(%rax)
mov    0x18(%rsp),%rax
movss  (%rax),%xmm0
mulss  %xmm1,%xmm0
mov    0x8(%rbx),%rax
movss  %xmm0,(%rax)
mov    0x20(%rsp),%rax
mulss  (%rax),%xmm1
mov    0x10(%rbx),%rax
movss  %xmm1,(%rax)
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @aceleracion(float** %0, float* %1, float* %2, float %3, float %4, float %5, float %6) {
%8 = alloca float**
%9 = alloca float*
%10 = alloca float*
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca [3 x float*]
%16 = alloca float
%17 = alloca [3 x float*]
store float** %0, float*** %8
store float* %1, float** %9
store float* %2, float** %10
store float %3, float* %11
store float %4, float* %12
store float %5, float* %13
store float %6, float* %14
%18 = getelementptr inbounds [3 x float*], [3 x float*]* %15, i64 0, i64 0
%19 = load float*, float** %9
%20 = load float, float* %14
%21 = call i32 @campo(float** %18, float* %19, float %20)
%22 = load float, float* %11
%23 = load float, float* %12
%24 = fmul float %22, %23
%25 = fpext float %24 to double
%26 = fdiv double 1.000000e+00, %25
%27 = fptrunc double %26 to float
store float %27, float* %16
%28 = getelementptr inbounds [3 x float*], [3 x float*]* %17, i64 0, i64 0
%29 = load float*, float** %10
%30 = getelementptr inbounds [3 x float*], [3 x float*]* %15, i64 0, i64 0
%31 = load float*, float** %30
%32 = load float, float* %13
%33 = call i32 @fuerza(float** %28, float* %29, float* %31, float %32)
%34 = getelementptr inbounds [3 x float*], [3 x float*]* %17, i64 0, i64 0
%35 = load float*, float** %34
%36 = load float, float* %35
%37 = load float, float* %16
%38 = fmul float %36, %37
%39 = load float**, float*** %8
%40 = getelementptr inbounds float*, float** %39, i64 0
%41 = load float*, float** %40
store float %38, float* %41
%42 = getelementptr inbounds [3 x float*], [3 x float*]* %17, i64 0, i64 1
%43 = load float*, float** %42
%44 = load float, float* %43
%45 = load float, float* %16
%46 = fmul float %44, %45
%47 = load float**, float*** %8
%48 = getelementptr inbounds float*, float** %47, i64 1
%49 = load float*, float** %48
store float %46, float* %49
%50 = getelementptr inbounds [3 x float*], [3 x float*]* %17, i64 0, i64 2
%51 = load float*, float** %50
%52 = load float, float* %51
%53 = load float, float* %16
%54 = fmul float %52, %53
%55 = load float**, float*** %8
%56 = getelementptr inbounds float*, float** %55, i64 2
%57 = load float*, float** %56
store float %54, float* %57
ret void
}

LLVM IR (-O2):
define void @aceleracion(float** nocapture %0, float* %1, float* %2, float %3, float %4, float %5, float %6) {
%8 = alloca [3 x float*]
%9 = alloca [3 x float*]
%10 = bitcast [3 x float*]* %8 to i8*
%11 = bitcast [3 x float*]* %9 to i8*
%12 = getelementptr inbounds [3 x float*], [3 x float*]* %8, i64 0, i64 0
%13 = call i32 @campo(float** %12, float* %1, float %6)
%14 = fmul float %3, %4
%15 = fdiv float 1.000000e+00, %14
%16 = getelementptr inbounds [3 x float*], [3 x float*]* %9, i64 0, i64 0
%17 = load float*, float** %12
%18 = call i32 @fuerza(float** %16, float* %2, float* %17, float %5)
%19 = load float*, float** %16
%20 = load float, float* %19
%21 = fmul float %15, %20
%22 = load float*, float** %0
store float %21, float* %22
%23 = getelementptr inbounds [3 x float*], [3 x float*]* %9, i64 0, i64 1
%24 = load float*, float** %23
%25 = load float, float* %24
%26 = fmul float %15, %25
%27 = getelementptr inbounds float*, float** %0, i64 1
%28 = load float*, float** %27
store float %26, float* %28
%29 = getelementptr inbounds [3 x float*], [3 x float*]* %9, i64 0, i64 2
%30 = load float*, float** %29
%31 = load float, float* %30
%32 = fmul float %15, %31
%33 = getelementptr inbounds float*, float** %0, i64 2
%34 = load float*, float** %33
store float %32, float* %34
ret void
}