#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 dtoi(float);
double *g2_floatp2doublep(float *, int);
int /*<<< orphan*/ g2_free(double *);
int /*<<< orphan*/ g2_para_3(int, int, double *);
void g2_para_3_(float *dev, float *N_pt, float *points) {
  double *d;
  d = g2_floatp2doublep(points, dtoi(*N_pt) * 2);
  g2_para_3(dtoi(*dev), dtoi(*N_pt), d);
  g2_free(d);
}


x86 assembly (clang, -O0):
<g2_para_3_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1030 <dtoi@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%esi
shl    $0x1,%esi
call   1060 <g2_floatp2doublep@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
call   1030 <dtoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
call   1030 <dtoi@plt>
mov    -0x24(%rbp),%edi
mov    %eax,%esi
mov    -0x20(%rbp),%rdx
call   1040 <g2_para_3@plt>
mov    -0x20(%rbp),%rdi
call   1050 <g2_free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g2_para_3_>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r12
mov    %rdi,%r15
movss  (%rsi),%xmm0
call   1030 <dtoi@plt>
lea    (%rax,%rax,1),%esi
mov    %r14,%rdi
call   1060 <g2_floatp2doublep@plt>
mov    %rax,%rbx
movss  (%r15),%xmm0
call   1030 <dtoi@plt>
mov    %eax,%ebp
movss  (%r12),%xmm0
call   1030 <dtoi@plt>
mov    %ebp,%edi
mov    %eax,%esi
mov    %rbx,%rdx
call   1040 <g2_para_3@plt>
mov    %rbx,%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <g2_free@plt>

LLVM IR (-O0):
define void @g2_para_3_(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca double*
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
%8 = load float*, float** %6
%9 = load float*, float** %5
%10 = load float, float* %9
%11 = call i32 @dtoi(float %10)
%12 = mul nsw i32 %11, 2
%13 = call double* @g2_floatp2doublep(float* %8, i32 %12)
store double* %13, double** %7
%14 = load float*, float** %4
%15 = load float, float* %14
%16 = call i32 @dtoi(float %15)
%17 = load float*, float** %5
%18 = load float, float* %17
%19 = call i32 @dtoi(float %18)
%20 = load double*, double** %7
%21 = call i32 @g2_para_3(i32 %16, i32 %19, double* %20)
%22 = load double*, double** %7
%23 = call i32 @g2_free(double* %22)
ret void
}

LLVM IR (-O2):
define void @g2_para_3_(float* nocapture %0, float* nocapture %1, float* %2) {
%4 = load float, float* %1
%5 = tail call i32 @dtoi(float %4)
%6 = shl nsw i32 %5, 1
%7 = tail call double* @g2_floatp2doublep(float* %2, i32 %6)
%8 = load float, float* %0
%9 = tail call i32 @dtoi(float %8)
%10 = load float, float* %1
%11 = tail call i32 @dtoi(float %10)
%12 = tail call i32 @g2_para_3(i32 %9, i32 %11, double* %7)
%13 = tail call i32 @g2_free(double* %7)
ret void
}