#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_taup_operation_inner(const void *restrict ctx, const size_t _offset,
                                 double *const restrict _v0,
                                 double *const restrict _v1,
                                 double *const restrict _v2,
                                 double *const restrict _v3,
                                 const size_t _num_elems) {
  size_t _i;
  (void)ctx;
  for (_i = 0; _i < _num_elems; ++_i) {
    size_t index = _offset + _i;
    double *const y = _v0 + _i;
    double *const phi14 = _v1 + _i;
    double *const phi15 = _v2 + _i;
    double *const p = _v3 + _i;
    (void)index;
    {
      {
        const double h = *(const double *)ctx;
        const double tau = h * *p - *phi14;
        *p = *y + tau;
        *phi15 = (*p - *y) - tau;
      }
    }
  }
}


x86 assembly (clang, -O0):
<vector_taup_operation_inner>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
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    0x10(%rbp),%rax
jae    1217 <vector_taup_operation_inner+0x117>
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    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x70(%rbp),%xmm0
mov    -0x60(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x48(%rbp),%rax
subsd  (%rax),%xmm0
subsd  -0x70(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1128 <vector_taup_operation_inner+0x28>
pop    %rbp
ret

x86 assembly (clang, -O2):
<vector_taup_operation_inner>:
mov    0x8(%rsp),%r11
test   %r11,%r11
je     1249 <vector_taup_operation_inner+0x149>
movsd  (%rdi),%xmm0
cmp    $0x1,%r11
jne    111f <vector_taup_operation_inner+0x1f>
xor    %esi,%esi
jmp    1210 <vector_taup_operation_inner+0x110>
mov    %r11,%rsi
and    $0xfffffffffffffffe,%rsi
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x2(%rsi),%rax
mov    %rax,%r10
shr    %r10
add    $0x1,%r10
test   %rax,%rax
je     124a <vector_taup_operation_inner+0x14a>
mov    %r10,%rax
and    $0xfffffffffffffffe,%rax
xor    %edi,%edi
xchg   %ax,%ax
movupd (%r9,%rdi,8),%xmm2
movupd (%rcx,%rdi,8),%xmm3
mulpd  %xmm1,%xmm2
subpd  %xmm3,%xmm2
movupd (%rdx,%rdi,8),%xmm3
movapd %xmm3,%xmm4
addpd  %xmm2,%xmm4
movupd %xmm4,(%r9,%rdi,8)
subpd  %xmm3,%xmm4
subpd  %xmm2,%xmm4
movupd %xmm4,(%r8,%rdi,8)
movupd 0x10(%r9,%rdi,8),%xmm2
movupd 0x10(%rcx,%rdi,8),%xmm3
mulpd  %xmm1,%xmm2
subpd  %xmm3,%xmm2
movupd 0x10(%rdx,%rdi,8),%xmm3
movapd %xmm3,%xmm4
addpd  %xmm2,%xmm4
movupd %xmm4,0x10(%r9,%rdi,8)
subpd  %xmm3,%xmm4
subpd  %xmm2,%xmm4
movupd %xmm4,0x10(%r8,%rdi,8)
add    $0x4,%rdi
add    $0xfffffffffffffffe,%rax
jne    1150 <vector_taup_operation_inner+0x50>
test   $0x1,%r10b
je     1201 <vector_taup_operation_inner+0x101>
movupd (%r9,%rdi,8),%xmm2
movupd (%rcx,%rdi,8),%xmm3
mulpd  %xmm2,%xmm1
subpd  %xmm3,%xmm1
movupd (%rdx,%rdi,8),%xmm2
movapd %xmm2,%xmm3
addpd  %xmm1,%xmm3
movupd %xmm3,(%r9,%rdi,8)
subpd  %xmm2,%xmm3
subpd  %xmm1,%xmm3
movupd %xmm3,(%r8,%rdi,8)
cmp    %r11,%rsi
je     1249 <vector_taup_operation_inner+0x149>
cs nopw 0x0(%rax,%rax,1)
movsd  (%r9,%rsi,8),%xmm1
mulsd  %xmm0,%xmm1
subsd  (%rcx,%rsi,8),%xmm1
movsd  (%rdx,%rsi,8),%xmm2
movapd %xmm2,%xmm3
addsd  %xmm1,%xmm3
movsd  %xmm3,(%r9,%rsi,8)
subsd  %xmm2,%xmm3
subsd  %xmm1,%xmm3
movsd  %xmm3,(%r8,%rsi,8)
add    $0x1,%rsi
cmp    %rsi,%r11
jne    1210 <vector_taup_operation_inner+0x110>
ret
xor    %edi,%edi
test   $0x1,%r10b
jne    11cd <vector_taup_operation_inner+0xcd>
jmp    1201 <vector_taup_operation_inner+0x101>

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

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