; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/examples (wave)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@p = external dso_local global [50 x [50 x double]], align 16
@vx = external dso_local global [50 x [50 x double]], align 16
@vy = external dso_local global [50 x [50 x double]], align 16
@dt = external dso_local global double, align 8
@ax = external dso_local global [50 x [50 x double]], align 16
@ay = external dso_local global [50 x [50 x double]], align 16

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nounwind uwtable
define dso_local void @calc_grid() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %6 = load double, ptr @dt, align 8, !tbaa !5
  %7 = fmul double %6, 1.000000e+01
  store double %7, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %8

8:                                                ; preds = %44, %0
  %9 = load i32, ptr %1, align 4, !tbaa !9
  %10 = icmp slt i32 %9, 50
  br i1 %10, label %11, label %47

11:                                               ; preds = %8
  %12 = load i32, ptr %1, align 4, !tbaa !9
  %13 = add nsw i32 %12, 1
  %14 = srem i32 %13, 50
  store i32 %14, ptr %3, align 4, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %40, %11
  %16 = load i32, ptr %2, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 50
  br i1 %17, label %18, label %43

18:                                               ; preds = %15
  %19 = load i32, ptr %1, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %20
  %22 = load i32, ptr %2, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [50 x double], ptr %21, i64 0, i64 %23
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %27
  %29 = load i32, ptr %2, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [50 x double], ptr %28, i64 0, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = fsub double %25, %32
  %34 = load i32, ptr %1, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %35
  %37 = load i32, ptr %2, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [50 x double], ptr %36, i64 0, i64 %38
  store double %33, ptr %39, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %18
  %41 = load i32, ptr %2, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %2, align 4, !tbaa !9
  br label %15, !llvm.loop !11

43:                                               ; preds = %15
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %1, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %1, align 4, !tbaa !9
  br label %8, !llvm.loop !13

47:                                               ; preds = %8
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %84, %47
  %49 = load i32, ptr %2, align 4, !tbaa !9
  %50 = icmp slt i32 %49, 50
  br i1 %50, label %51, label %87

51:                                               ; preds = %48
  %52 = load i32, ptr %2, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  %54 = srem i32 %53, 50
  store i32 %54, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %80, %51
  %56 = load i32, ptr %1, align 4, !tbaa !9
  %57 = icmp slt i32 %56, 50
  br i1 %57, label %58, label %83

58:                                               ; preds = %55
  %59 = load i32, ptr %1, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %60
  %62 = load i32, ptr %2, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [50 x double], ptr %61, i64 0, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = load i32, ptr %1, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %67
  %69 = load i32, ptr %4, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [50 x double], ptr %68, i64 0, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = fsub double %65, %72
  %74 = load i32, ptr %1, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [50 x [50 x double]], ptr @ay, i64 0, i64 %75
  %77 = load i32, ptr %2, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [50 x double], ptr %76, i64 0, i64 %78
  store double %73, ptr %79, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %58
  %81 = load i32, ptr %1, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %1, align 4, !tbaa !9
  br label %55, !llvm.loop !14

83:                                               ; preds = %55
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %2, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %2, align 4, !tbaa !9
  br label %48, !llvm.loop !15

87:                                               ; preds = %48
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %144, %87
  %89 = load i32, ptr %1, align 4, !tbaa !9
  %90 = icmp slt i32 %89, 50
  br i1 %90, label %91, label %147

91:                                               ; preds = %88
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %140, %91
  %93 = load i32, ptr %2, align 4, !tbaa !9
  %94 = icmp slt i32 %93, 50
  br i1 %94, label %95, label %143

95:                                               ; preds = %92
  %96 = load i32, ptr %1, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %97
  %99 = load i32, ptr %2, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [50 x double], ptr %98, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = load i32, ptr %1, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %104
  %106 = load i32, ptr %2, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [50 x double], ptr %105, i64 0, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !5
  %110 = load double, ptr %5, align 8, !tbaa !5
  %111 = call double @llvm.fmuladd.f64(double %109, double %110, double %102)
  %112 = load i32, ptr %1, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %113
  %115 = load i32, ptr %2, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [50 x double], ptr %114, i64 0, i64 %116
  store double %111, ptr %117, align 8, !tbaa !5
  %118 = load i32, ptr %1, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [50 x [50 x double]], ptr @vy, i64 0, i64 %119
  %121 = load i32, ptr %2, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [50 x double], ptr %120, i64 0, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !5
  %125 = load i32, ptr %1, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [50 x [50 x double]], ptr @ay, i64 0, i64 %126
  %128 = load i32, ptr %2, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [50 x double], ptr %127, i64 0, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !5
  %132 = load double, ptr %5, align 8, !tbaa !5
  %133 = call double @llvm.fmuladd.f64(double %131, double %132, double %124)
  %134 = load i32, ptr %1, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [50 x [50 x double]], ptr @vy, i64 0, i64 %135
  %137 = load i32, ptr %2, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [50 x double], ptr %136, i64 0, i64 %138
  store double %133, ptr %139, align 8, !tbaa !5
  br label %140

140:                                              ; preds = %95
  %141 = load i32, ptr %2, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %2, align 4, !tbaa !9
  br label %92, !llvm.loop !16

143:                                              ; preds = %92
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %1, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %1, align 4, !tbaa !9
  br label %88, !llvm.loop !17

147:                                              ; preds = %88
  store i32 1, ptr %1, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %210, %147
  %149 = load i32, ptr %1, align 4, !tbaa !9
  %150 = icmp slt i32 %149, 50
  br i1 %150, label %151, label %213

151:                                              ; preds = %148
  %152 = load i32, ptr %1, align 4, !tbaa !9
  %153 = sub nsw i32 %152, 1
  store i32 %153, ptr %3, align 4, !tbaa !9
  store i32 1, ptr %2, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %206, %151
  %155 = load i32, ptr %2, align 4, !tbaa !9
  %156 = icmp slt i32 %155, 50
  br i1 %156, label %157, label %209

157:                                              ; preds = %154
  %158 = load i32, ptr %2, align 4, !tbaa !9
  %159 = sub nsw i32 %158, 1
  store i32 %159, ptr %4, align 4, !tbaa !9
  %160 = load i32, ptr %1, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %161
  %163 = load i32, ptr %2, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [50 x double], ptr %162, i64 0, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !5
  %167 = load i32, ptr %3, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %168
  %170 = load i32, ptr %2, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [50 x double], ptr %169, i64 0, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !5
  %174 = load i32, ptr %1, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %175
  %177 = load i32, ptr %2, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [50 x double], ptr %176, i64 0, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !5
  %181 = fsub double %173, %180
  %182 = load i32, ptr %1, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [50 x [50 x double]], ptr @vy, i64 0, i64 %183
  %185 = load i32, ptr %4, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [50 x double], ptr %184, i64 0, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !5
  %189 = fadd double %181, %188
  %190 = load i32, ptr %1, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [50 x [50 x double]], ptr @vy, i64 0, i64 %191
  %193 = load i32, ptr %2, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [50 x double], ptr %192, i64 0, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !5
  %197 = fsub double %189, %196
  %198 = load double, ptr %5, align 8, !tbaa !5
  %199 = call double @llvm.fmuladd.f64(double %197, double %198, double %166)
  %200 = load i32, ptr %1, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %201
  %203 = load i32, ptr %2, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [50 x double], ptr %202, i64 0, i64 %204
  store double %199, ptr %205, align 8, !tbaa !5
  br label %206

206:                                              ; preds = %157
  %207 = load i32, ptr %2, align 4, !tbaa !9
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %2, align 4, !tbaa !9
  br label %154, !llvm.loop !18

209:                                              ; preds = %154
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %1, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %1, align 4, !tbaa !9
  br label %148, !llvm.loop !19

213:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@p = external dso_local local_unnamed_addr global [50 x [50 x double]], align 16
@vx = external dso_local local_unnamed_addr global [50 x [50 x double]], align 16
@vy = external dso_local local_unnamed_addr global [50 x [50 x double]], align 16
@dt = external dso_local local_unnamed_addr global double, align 8
@ax = external dso_local local_unnamed_addr global [50 x [50 x double]], align 16
@ay = external dso_local local_unnamed_addr global [50 x [50 x double]], align 16

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @calc_grid() local_unnamed_addr #1 {
  %1 = load double, ptr @dt, align 8, !tbaa !5
  br label %vector.ph

vector.ph:                                        ; preds = %0, %vector.ph
  %indvars.iv75 = phi i64 [ 0, %0 ], [ %indvars.iv.next76, %vector.ph ]
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %2 = icmp eq i64 %indvars.iv.next76, 50
  %3 = and i64 %indvars.iv.next76, 4294967295
  %4 = select i1 %2, i64 0, i64 %3
  %5 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 0
  %6 = getelementptr inbounds i8, ptr %5, i64 16
  %wide.load = load <2 x double>, ptr %5, align 16, !tbaa !5
  %wide.load103 = load <2 x double>, ptr %6, align 16, !tbaa !5
  %7 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 0
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %wide.load104 = load <2 x double>, ptr %7, align 16, !tbaa !5
  %wide.load105 = load <2 x double>, ptr %8, align 16, !tbaa !5
  %9 = fsub <2 x double> %wide.load, %wide.load104
  %10 = fsub <2 x double> %wide.load103, %wide.load105
  %11 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 0
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  store <2 x double> %9, ptr %11, align 16, !tbaa !5
  store <2 x double> %10, ptr %12, align 16, !tbaa !5
  %13 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 4
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %wide.load.1 = load <2 x double>, ptr %13, align 16, !tbaa !5
  %wide.load103.1 = load <2 x double>, ptr %14, align 16, !tbaa !5
  %15 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 4
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %wide.load104.1 = load <2 x double>, ptr %15, align 16, !tbaa !5
  %wide.load105.1 = load <2 x double>, ptr %16, align 16, !tbaa !5
  %17 = fsub <2 x double> %wide.load.1, %wide.load104.1
  %18 = fsub <2 x double> %wide.load103.1, %wide.load105.1
  %19 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 4
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  store <2 x double> %17, ptr %19, align 16, !tbaa !5
  store <2 x double> %18, ptr %20, align 16, !tbaa !5
  %21 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 8
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %wide.load.2 = load <2 x double>, ptr %21, align 16, !tbaa !5
  %wide.load103.2 = load <2 x double>, ptr %22, align 16, !tbaa !5
  %23 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 8
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %wide.load104.2 = load <2 x double>, ptr %23, align 16, !tbaa !5
  %wide.load105.2 = load <2 x double>, ptr %24, align 16, !tbaa !5
  %25 = fsub <2 x double> %wide.load.2, %wide.load104.2
  %26 = fsub <2 x double> %wide.load103.2, %wide.load105.2
  %27 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 8
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  store <2 x double> %25, ptr %27, align 16, !tbaa !5
  store <2 x double> %26, ptr %28, align 16, !tbaa !5
  %29 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 12
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %wide.load.3 = load <2 x double>, ptr %29, align 16, !tbaa !5
  %wide.load103.3 = load <2 x double>, ptr %30, align 16, !tbaa !5
  %31 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 12
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load104.3 = load <2 x double>, ptr %31, align 16, !tbaa !5
  %wide.load105.3 = load <2 x double>, ptr %32, align 16, !tbaa !5
  %33 = fsub <2 x double> %wide.load.3, %wide.load104.3
  %34 = fsub <2 x double> %wide.load103.3, %wide.load105.3
  %35 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 12
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <2 x double> %33, ptr %35, align 16, !tbaa !5
  store <2 x double> %34, ptr %36, align 16, !tbaa !5
  %37 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 16
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %wide.load.4 = load <2 x double>, ptr %37, align 16, !tbaa !5
  %wide.load103.4 = load <2 x double>, ptr %38, align 16, !tbaa !5
  %39 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 16
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %wide.load104.4 = load <2 x double>, ptr %39, align 16, !tbaa !5
  %wide.load105.4 = load <2 x double>, ptr %40, align 16, !tbaa !5
  %41 = fsub <2 x double> %wide.load.4, %wide.load104.4
  %42 = fsub <2 x double> %wide.load103.4, %wide.load105.4
  %43 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 16
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  store <2 x double> %41, ptr %43, align 16, !tbaa !5
  store <2 x double> %42, ptr %44, align 16, !tbaa !5
  %45 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 20
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load.5 = load <2 x double>, ptr %45, align 16, !tbaa !5
  %wide.load103.5 = load <2 x double>, ptr %46, align 16, !tbaa !5
  %47 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 20
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %wide.load104.5 = load <2 x double>, ptr %47, align 16, !tbaa !5
  %wide.load105.5 = load <2 x double>, ptr %48, align 16, !tbaa !5
  %49 = fsub <2 x double> %wide.load.5, %wide.load104.5
  %50 = fsub <2 x double> %wide.load103.5, %wide.load105.5
  %51 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 20
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  store <2 x double> %49, ptr %51, align 16, !tbaa !5
  store <2 x double> %50, ptr %52, align 16, !tbaa !5
  %53 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 24
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  %wide.load.6 = load <2 x double>, ptr %53, align 16, !tbaa !5
  %wide.load103.6 = load <2 x double>, ptr %54, align 16, !tbaa !5
  %55 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 24
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load104.6 = load <2 x double>, ptr %55, align 16, !tbaa !5
  %wide.load105.6 = load <2 x double>, ptr %56, align 16, !tbaa !5
  %57 = fsub <2 x double> %wide.load.6, %wide.load104.6
  %58 = fsub <2 x double> %wide.load103.6, %wide.load105.6
  %59 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 24
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  store <2 x double> %57, ptr %59, align 16, !tbaa !5
  store <2 x double> %58, ptr %60, align 16, !tbaa !5
  %61 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 28
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %wide.load.7 = load <2 x double>, ptr %61, align 16, !tbaa !5
  %wide.load103.7 = load <2 x double>, ptr %62, align 16, !tbaa !5
  %63 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 28
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %wide.load104.7 = load <2 x double>, ptr %63, align 16, !tbaa !5
  %wide.load105.7 = load <2 x double>, ptr %64, align 16, !tbaa !5
  %65 = fsub <2 x double> %wide.load.7, %wide.load104.7
  %66 = fsub <2 x double> %wide.load103.7, %wide.load105.7
  %67 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 28
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  store <2 x double> %65, ptr %67, align 16, !tbaa !5
  store <2 x double> %66, ptr %68, align 16, !tbaa !5
  %69 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 32
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load.8 = load <2 x double>, ptr %69, align 16, !tbaa !5
  %wide.load103.8 = load <2 x double>, ptr %70, align 16, !tbaa !5
  %71 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 32
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %wide.load104.8 = load <2 x double>, ptr %71, align 16, !tbaa !5
  %wide.load105.8 = load <2 x double>, ptr %72, align 16, !tbaa !5
  %73 = fsub <2 x double> %wide.load.8, %wide.load104.8
  %74 = fsub <2 x double> %wide.load103.8, %wide.load105.8
  %75 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 32
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  store <2 x double> %73, ptr %75, align 16, !tbaa !5
  store <2 x double> %74, ptr %76, align 16, !tbaa !5
  %77 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 36
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %wide.load.9 = load <2 x double>, ptr %77, align 16, !tbaa !5
  %wide.load103.9 = load <2 x double>, ptr %78, align 16, !tbaa !5
  %79 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 36
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  %wide.load104.9 = load <2 x double>, ptr %79, align 16, !tbaa !5
  %wide.load105.9 = load <2 x double>, ptr %80, align 16, !tbaa !5
  %81 = fsub <2 x double> %wide.load.9, %wide.load104.9
  %82 = fsub <2 x double> %wide.load103.9, %wide.load105.9
  %83 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 36
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  store <2 x double> %81, ptr %83, align 16, !tbaa !5
  store <2 x double> %82, ptr %84, align 16, !tbaa !5
  %85 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 40
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %wide.load.10 = load <2 x double>, ptr %85, align 16, !tbaa !5
  %wide.load103.10 = load <2 x double>, ptr %86, align 16, !tbaa !5
  %87 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 40
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %wide.load104.10 = load <2 x double>, ptr %87, align 16, !tbaa !5
  %wide.load105.10 = load <2 x double>, ptr %88, align 16, !tbaa !5
  %89 = fsub <2 x double> %wide.load.10, %wide.load104.10
  %90 = fsub <2 x double> %wide.load103.10, %wide.load105.10
  %91 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 40
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  store <2 x double> %89, ptr %91, align 16, !tbaa !5
  store <2 x double> %90, ptr %92, align 16, !tbaa !5
  %93 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 44
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  %wide.load.11 = load <2 x double>, ptr %93, align 16, !tbaa !5
  %wide.load103.11 = load <2 x double>, ptr %94, align 16, !tbaa !5
  %95 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 44
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  %wide.load104.11 = load <2 x double>, ptr %95, align 16, !tbaa !5
  %wide.load105.11 = load <2 x double>, ptr %96, align 16, !tbaa !5
  %97 = fsub <2 x double> %wide.load.11, %wide.load104.11
  %98 = fsub <2 x double> %wide.load103.11, %wide.load105.11
  %99 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 44
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  store <2 x double> %97, ptr %99, align 16, !tbaa !5
  store <2 x double> %98, ptr %100, align 16, !tbaa !5
  %101 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 48
  %102 = load double, ptr %101, align 16, !tbaa !5
  %103 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 48
  %104 = load double, ptr %103, align 16, !tbaa !5
  %105 = fsub double %102, %104
  %106 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 48
  store double %105, ptr %106, align 16, !tbaa !5
  %107 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv75, i64 49
  %108 = load double, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %4, i64 49
  %110 = load double, ptr %109, align 8, !tbaa !5
  %111 = fsub double %108, %110
  %112 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv75, i64 49
  store double %111, ptr %112, align 8, !tbaa !5
  %exitcond78.not = icmp eq i64 %indvars.iv.next76, 50
  br i1 %exitcond78.not, label %.preheader64, label %vector.ph, !llvm.loop !9

.loopexit:                                        ; preds = %117
  %exitcond86.not = icmp eq i64 %indvars.iv.next84, 50
  br i1 %exitcond86.not, label %.preheader62.preheader, label %.preheader64, !llvm.loop !11

.preheader62.preheader:                           ; preds = %.loopexit
  %113 = fmul double %1, 1.000000e+01
  %broadcast.splatinsert = insertelement <2 x double> poison, double %113, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.ph108

.preheader64:                                     ; preds = %vector.ph, %.loopexit
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %.loopexit ], [ 0, %vector.ph ]
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %114 = icmp eq i64 %indvars.iv.next84, 50
  %115 = and i64 %indvars.iv.next84, 4294967295
  %116 = select i1 %114, i64 0, i64 %115
  br label %117

117:                                              ; preds = %117, %.preheader64
  %indvars.iv79 = phi i64 [ 0, %.preheader64 ], [ %indvars.iv.next80.1, %117 ]
  %118 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv79, i64 %indvars.iv83
  %119 = load double, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv79, i64 %116
  %121 = load double, ptr %120, align 8, !tbaa !5
  %122 = fsub double %119, %121
  %123 = getelementptr inbounds [50 x [50 x double]], ptr @ay, i64 0, i64 %indvars.iv79, i64 %indvars.iv83
  store double %122, ptr %123, align 8, !tbaa !5
  %indvars.iv.next80 = or disjoint i64 %indvars.iv79, 1
  %124 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv.next80, i64 %indvars.iv83
  %125 = load double, ptr %124, align 8, !tbaa !5
  %126 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv.next80, i64 %116
  %127 = load double, ptr %126, align 8, !tbaa !5
  %128 = fsub double %125, %127
  %129 = getelementptr inbounds [50 x [50 x double]], ptr @ay, i64 0, i64 %indvars.iv.next80, i64 %indvars.iv83
  store double %128, ptr %129, align 8, !tbaa !5
  %indvars.iv.next80.1 = add nuw nsw i64 %indvars.iv79, 2
  %exitcond82.not.1 = icmp eq i64 %indvars.iv.next80.1, 50
  br i1 %exitcond82.not.1, label %.loopexit, label %117, !llvm.loop !12

vector.ph108:                                     ; preds = %middle.block106, %.preheader62.preheader
  %indvars.iv91 = phi i64 [ 0, %.preheader62.preheader ], [ %indvars.iv.next92, %middle.block106 ]
  br label %vector.body110

vector.body110:                                   ; preds = %vector.body110, %vector.ph108
  %index111 = phi i64 [ 0, %vector.ph108 ], [ %index.next116, %vector.body110 ]
  %130 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %indvars.iv91, i64 %index111
  %wide.load112 = load <2 x double>, ptr %130, align 16, !tbaa !5
  %131 = getelementptr inbounds [50 x [50 x double]], ptr @ax, i64 0, i64 %indvars.iv91, i64 %index111
  %wide.load113 = load <2 x double>, ptr %131, align 16, !tbaa !5
  %132 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load113, <2 x double> %broadcast.splat, <2 x double> %wide.load112)
  store <2 x double> %132, ptr %130, align 16, !tbaa !5
  %133 = getelementptr inbounds [50 x [50 x double]], ptr @vy, i64 0, i64 %indvars.iv91, i64 %index111
  %wide.load114 = load <2 x double>, ptr %133, align 16, !tbaa !5
  %134 = getelementptr inbounds [50 x [50 x double]], ptr @ay, i64 0, i64 %indvars.iv91, i64 %index111
  %wide.load115 = load <2 x double>, ptr %134, align 16, !tbaa !5
  %135 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load115, <2 x double> %broadcast.splat, <2 x double> %wide.load114)
  store <2 x double> %135, ptr %133, align 16, !tbaa !5
  %index.next116 = add nuw i64 %index111, 2
  %136 = icmp eq i64 %index.next116, 50
  br i1 %136, label %middle.block106, label %vector.body110, !llvm.loop !13

middle.block106:                                  ; preds = %vector.body110
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next92, 50
  br i1 %exitcond94.not, label %.preheader.preheader, label %vector.ph108, !llvm.loop !16

.preheader.preheader:                             ; preds = %middle.block106
  %broadcast.splatinsert131 = insertelement <2 x double> poison, double %113, i64 0
  %broadcast.splat132 = shufflevector <2 x double> %broadcast.splatinsert131, <2 x double> poison, <2 x i32> zeroinitializer
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.loopexit134
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.loopexit134 ], [ 1, %.preheader.preheader ]
  %137 = add nsw i64 %indvars.iv99, -1
  %.phi.trans.insert = getelementptr inbounds [50 x [50 x double]], ptr @vy, i64 0, i64 %indvars.iv99, i64 0
  %.pre = load double, ptr %.phi.trans.insert, align 16, !tbaa !5
  %vector.recur.init = insertelement <2 x double> poison, double %.pre, i64 1
  br label %vector.body121

vector.body121:                                   ; preds = %vector.body121, %.preheader
  %index122 = phi i64 [ 0, %.preheader ], [ %index.next133, %vector.body121 ]
  %vector.recur = phi <2 x double> [ %vector.recur.init, %.preheader ], [ %wide.load130, %vector.body121 ]
  %offset.idx = or disjoint i64 %index122, 1
  %138 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv99, i64 %offset.idx
  %139 = getelementptr inbounds i8, ptr %138, i64 16
  %wide.load123 = load <2 x double>, ptr %138, align 8, !tbaa !5
  %wide.load124 = load <2 x double>, ptr %139, align 8, !tbaa !5
  %140 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %137, i64 %offset.idx
  %141 = getelementptr inbounds i8, ptr %140, i64 16
  %wide.load125 = load <2 x double>, ptr %140, align 8, !tbaa !5
  %wide.load126 = load <2 x double>, ptr %141, align 8, !tbaa !5
  %142 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %indvars.iv99, i64 %offset.idx
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  %wide.load127 = load <2 x double>, ptr %142, align 8, !tbaa !5
  %wide.load128 = load <2 x double>, ptr %143, align 8, !tbaa !5
  %144 = fsub <2 x double> %wide.load125, %wide.load127
  %145 = fsub <2 x double> %wide.load126, %wide.load128
  %146 = getelementptr inbounds [50 x [50 x double]], ptr @vy, i64 0, i64 %indvars.iv99, i64 %offset.idx
  %147 = getelementptr inbounds i8, ptr %146, i64 16
  %wide.load129 = load <2 x double>, ptr %146, align 8, !tbaa !5
  %wide.load130 = load <2 x double>, ptr %147, align 8, !tbaa !5
  %148 = shufflevector <2 x double> %vector.recur, <2 x double> %wide.load129, <2 x i32> <i32 1, i32 2>
  %149 = shufflevector <2 x double> %wide.load129, <2 x double> %wide.load130, <2 x i32> <i32 1, i32 2>
  %150 = fadd <2 x double> %144, %148
  %151 = fadd <2 x double> %145, %149
  %152 = fsub <2 x double> %150, %wide.load129
  %153 = fsub <2 x double> %151, %wide.load130
  %154 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %152, <2 x double> %broadcast.splat132, <2 x double> %wide.load123)
  %155 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %153, <2 x double> %broadcast.splat132, <2 x double> %wide.load124)
  store <2 x double> %154, ptr %138, align 8, !tbaa !5
  store <2 x double> %155, ptr %139, align 8, !tbaa !5
  %index.next133 = add nuw i64 %index122, 4
  %156 = icmp eq i64 %index.next133, 48
  br i1 %156, label %.loopexit134, label %vector.body121, !llvm.loop !17

.loopexit134:                                     ; preds = %vector.body121
  %vector.recur.extract = extractelement <2 x double> %wide.load130, i64 1
  %157 = getelementptr inbounds [50 x [50 x double]], ptr @p, i64 0, i64 %indvars.iv99, i64 49
  %158 = load double, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %137, i64 49
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = getelementptr inbounds [50 x [50 x double]], ptr @vx, i64 0, i64 %indvars.iv99, i64 49
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = fsub double %160, %162
  %164 = fadd double %163, %vector.recur.extract
  %165 = getelementptr inbounds [50 x [50 x double]], ptr @vy, i64 0, i64 %indvars.iv99, i64 49
  %166 = load double, ptr %165, align 8, !tbaa !5
  %167 = fsub double %164, %166
  %168 = tail call double @llvm.fmuladd.f64(double %167, double %113, double %158)
  store double %168, ptr %157, align 8, !tbaa !5
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond102.not = icmp eq i64 %indvars.iv.next100, 50
  br i1 %exitcond102.not, label %169, label %.preheader, !llvm.loop !18

169:                                              ; preds = %.loopexit134
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !14, !15}
!18 = distinct !{!18, !10}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass