#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 */
void vector_intrp_yout_operation_inner(const void *restrict ctx,
                                       const size_t _offset,
                                       double *const restrict _v0,
                                       double *const restrict _v1,
                                       double *const restrict _v2,
                                       const size_t _num_elems) {
  size_t _i;
  (void)ctx;
  for (_i = 0; _i < _num_elems; ++_i) {
    size_t index = _offset + _i;
    double *const phii = _v0 + _i;
    double *const yout = _v1 + _i;
    double *const ypout = _v2 + _i;
    (void)index;
    {
      {
        const double gi = ((const double *)ctx)[0];
        const double rhoi = ((const double *)ctx)[1];
        *yout += gi * *phii;
        *ypout += rhoi * *phii;
      }
    }
  }
}


x86 assembly (clang, -O0):
<vector_intrp_yout_operation_inner>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x30(%rbp),%rax
jae    11e5 <vector_intrp_yout_operation_inner+0xe5>
mov    -0x10(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1124 <vector_intrp_yout_operation_inner+0x24>
pop    %rbp
ret

x86 assembly (clang, -O2):
<vector_intrp_yout_operation_inner>:
test   %r9,%r9
je     1240 <vector_intrp_yout_operation_inner+0x140>
movsd  (%rdi),%xmm0
movsd  0x8(%rdi),%xmm1
cmp    $0x1,%r9
jne    111f <vector_intrp_yout_operation_inner+0x1f>
xor    %eax,%eax
jmp    1210 <vector_intrp_yout_operation_inner+0x110>
mov    %r9,%rax
and    $0xfffffffffffffffe,%rax
movapd %xmm0,%xmm3
unpcklpd %xmm0,%xmm3
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
lea    -0x2(%rax),%rsi
mov    %rsi,%r10
shr    %r10
add    $0x1,%r10
test   %rsi,%rsi
je     1241 <vector_intrp_yout_operation_inner+0x141>
mov    %r10,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
movupd (%rdx,%rsi,8),%xmm4
movupd (%rcx,%rsi,8),%xmm5
movapd %xmm3,%xmm6
mulpd  %xmm4,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm6,(%rcx,%rsi,8)
movupd (%r8,%rsi,8),%xmm5
mulpd  %xmm2,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,(%r8,%rsi,8)
movupd 0x10(%rdx,%rsi,8),%xmm4
movupd 0x10(%rcx,%rsi,8),%xmm5
movapd %xmm3,%xmm6
mulpd  %xmm4,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm6,0x10(%rcx,%rsi,8)
movupd 0x10(%r8,%rsi,8),%xmm5
mulpd  %xmm2,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,0x10(%r8,%rsi,8)
add    $0x4,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1160 <vector_intrp_yout_operation_inner+0x60>
test   $0x1,%r10b
je     11fe <vector_intrp_yout_operation_inner+0xfe>
movupd (%rdx,%rsi,8),%xmm4
movupd (%rcx,%rsi,8),%xmm5
mulpd  %xmm4,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm3,(%rcx,%rsi,8)
movupd (%r8,%rsi,8),%xmm3
mulpd  %xmm4,%xmm2
addpd  %xmm3,%xmm2
movupd %xmm2,(%r8,%rsi,8)
cmp    %r9,%rax
je     1240 <vector_intrp_yout_operation_inner+0x140>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rdx,%rax,8),%xmm2
movapd %xmm0,%xmm3
mulsd  %xmm2,%xmm3
addsd  (%rcx,%rax,8),%xmm3
mulsd  %xmm1,%xmm2
addsd  (%r8,%rax,8),%xmm2
movsd  %xmm3,(%rcx,%rax,8)
movsd  %xmm2,(%r8,%rax,8)
add    $0x1,%rax
cmp    %rax,%r9
jne    1210 <vector_intrp_yout_operation_inner+0x110>
ret
xor    %esi,%esi
test   $0x1,%r10b
jne    11d3 <vector_intrp_yout_operation_inner+0xd3>
jmp    11fe <vector_intrp_yout_operation_inner+0xfe>

LLVM IR (-O0):
define void @vector_intrp_yout_operation_inner(i8* noalias %0, i64 %1, double* noalias %2, double* noalias %3, double* noalias %4, i64 %5) {
%7 = alloca i8*
%8 = alloca i64
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double
%19 = alloca double
store i8* %0, i8** %7
store i64 %1, i64* %8
store double* %2, double** %9
store double* %3, double** %10
store double* %4, double** %11
store i64 %5, i64* %12
%20 = load i8*, i8** %7
store i64 0, i64* %13
br label %21
21: ; preds = %59, %6
%22 = load i64, i64* %13
%23 = load i64, i64* %12
%24 = icmp ult i64 %22, %23
br i1 %24, label %25, label %62
25: ; preds = %21
%26 = load i64, i64* %8
%27 = load i64, i64* %13
%28 = add i64 %26, %27
store i64 %28, i64* %14
%29 = load double*, double** %9
%30 = load i64, i64* %13
%31 = getelementptr inbounds double, double* %29, i64 %30
store double* %31, double** %15
%32 = load double*, double** %10
%33 = load i64, i64* %13
%34 = getelementptr inbounds double, double* %32, i64 %33
store double* %34, double** %16
%35 = load double*, double** %11
%36 = load i64, i64* %13
%37 = getelementptr inbounds double, double* %35, i64 %36
store double* %37, double** %17
%38 = load i64, i64* %14
%39 = load i8*, i8** %7
%40 = bitcast i8* %39 to double*
%41 = getelementptr inbounds double, double* %40, i64 0
%42 = load double, double* %41
store double %42, double* %18
%43 = load i8*, i8** %7
%44 = bitcast i8* %43 to double*
%45 = getelementptr inbounds double, double* %44, i64 1
%46 = load double, double* %45
store double %46, double* %19
%47 = load double, double* %18
%48 = load double*, double** %15
%49 = load double, double* %48
%50 = load double*, double** %16
%51 = load double, double* %50
%52 = call double @llvm.fmuladd.f64(double %47, double %49, double %51)
store double %52, double* %50
%53 = load double, double* %19
%54 = load double*, double** %15
%55 = load double, double* %54
%56 = load double*, double** %17
%57 = load double, double* %56
%58 = call double @llvm.fmuladd.f64(double %53, double %55, double %57)
store double %58, double* %56
br label %59
59: ; preds = %25
%60 = load i64, i64* %13
%61 = add i64 %60, 1
store i64 %61, i64* %13
br label %21
62: ; preds = %21
ret void
}

LLVM IR (-O2):
define void @vector_intrp_yout_operation_inner(i8* noalias nocapture %0, i64 %1, double* noalias nocapture %2, double* noalias nocapture %3, double* noalias nocapture %4, i64 %5) {
%7 = icmp eq i64 %5, 0
br i1 %7, label %94, label %8
8: ; preds = %6
%9 = bitcast i8* %0 to double*
%10 = load double, double* %9
%11 = getelementptr inbounds i8, i8* %0, i64 8
%12 = bitcast i8* %11 to double*
%13 = load double, double* %12
%14 = icmp eq i64 %5, 1
br i1 %14, label %80, label %15
15: ; preds = %8
%16 = and i64 %5, -2
%17 = insertelement <2 x double> poison, double %10, i64 0
%18 = shufflevector <2 x double> %17, <2 x double> poison, <2 x i32> zeroinitializer
%19 = insertelement <2 x double> poison, double %13, i64 0
%20 = shufflevector <2 x double> %19, <2 x double> poison, <2 x i32> zeroinitializer
%21 = add i64 %16, -2
%22 = lshr exact i64 %21, 1
%23 = add nuw i64 %22, 1
%24 = and i64 %23, 1
%25 = icmp eq i64 %21, 0
br i1 %25, label %61, label %26
26: ; preds = %15
%27 = and i64 %23, -2
br label %28
28: ; preds = %28, %26
%29 = phi i64 [ 0, %26 ], [ %58, %28 ]
%30 = phi i64 [ 0, %26 ], [ %59, %28 ]
%31 = getelementptr inbounds double, double* %2, i64 %29
%32 = getelementptr inbounds double, double* %3, i64 %29
%33 = getelementptr inbounds double, double* %4, i64 %29
%34 = bitcast double* %31 to <2 x double>*
%35 = load <2 x double>, <2 x double>* %34
%36 = bitcast double* %32 to <2 x double>*
%37 = load <2 x double>, <2 x double>* %36
%38 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %18, <2 x double> %35, <2 x double> %37)
%39 = bitcast double* %32 to <2 x double>*
store <2 x double> %38, <2 x double>* %39
%40 = bitcast double* %33 to <2 x double>*
%41 = load <2 x double>, <2 x double>* %40
%42 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %20, <2 x double> %35, <2 x double> %41)
%43 = bitcast double* %33 to <2 x double>*
store <2 x double> %42, <2 x double>* %43
%44 = or i64 %29, 2
%45 = getelementptr inbounds double, double* %2, i64 %44
%46 = getelementptr inbounds double, double* %3, i64 %44
%47 = getelementptr inbounds double, double* %4, i64 %44
%48 = bitcast double* %45 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = bitcast double* %46 to <2 x double>*
%51 = load <2 x double>, <2 x double>* %50
%52 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %18, <2 x double> %49, <2 x double> %51)
%53 = bitcast double* %46 to <2 x double>*
store <2 x double> %52, <2 x double>* %53
%54 = bitcast double* %47 to <2 x double>*
%55 = load <2 x double>, <2 x double>* %54
%56 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %20, <2 x double> %49, <2 x double> %55)
%57 = bitcast double* %47 to <2 x double>*
store <2 x double> %56, <2 x double>* %57
%58 = add nuw i64 %29, 4
%59 = add nuw i64 %30, 2
%60 = icmp eq i64 %59, %27
br i1 %60, label %61, label %28
61: ; preds = %28, %15
%62 = phi i64 [ 0, %15 ], [ %58, %28 ]
%63 = icmp eq i64 %24, 0
br i1 %63, label %78, label %64
64: ; preds = %61
%65 = getelementptr inbounds double, double* %2, i64 %62
%66 = getelementptr inbounds double, double* %3, i64 %62
%67 = getelementptr inbounds double, double* %4, i64 %62
%68 = bitcast double* %65 to <2 x double>*
%69 = load <2 x double>, <2 x double>* %68
%70 = bitcast double* %66 to <2 x double>*
%71 = load <2 x double>, <2 x double>* %70
%72 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %18, <2 x double> %69, <2 x double> %71)
%73 = bitcast double* %66 to <2 x double>*
store <2 x double> %72, <2 x double>* %73
%74 = bitcast double* %67 to <2 x double>*
%75 = load <2 x double>, <2 x double>* %74
%76 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %20, <2 x double> %69, <2 x double> %75)
%77 = bitcast double* %67 to <2 x double>*
store <2 x double> %76, <2 x double>* %77
br label %78
78: ; preds = %61, %64
%79 = icmp eq i64 %16, %5
br i1 %79, label %94, label %80
80: ; preds = %8, %78
%81 = phi i64 [ 0, %8 ], [ %16, %78 ]
br label %82
82: ; preds = %80, %82
%83 = phi i64 [ %92, %82 ], [ %81, %80 ]
%84 = getelementptr inbounds double, double* %2, i64 %83
%85 = getelementptr inbounds double, double* %3, i64 %83
%86 = getelementptr inbounds double, double* %4, i64 %83
%87 = load double, double* %84
%88 = load double, double* %85
%89 = tail call double @llvm.fmuladd.f64(double %10, double %87, double %88)
store double %89, double* %85
%90 = load double, double* %86
%91 = tail call double @llvm.fmuladd.f64(double %13, double %87, double %90)
store double %91, double* %86
%92 = add nuw i64 %83, 1
%93 = icmp eq i64 %92, %5
br i1 %93, label %94, label %82
94: ; preds = %82, %78, %6
ret void
}