; LLVM IR from ange-yaghi/simple-2d-constraint-solver :: src/euler_ode_solver.ll (ZN7atg_scs14EulerOdeSolver5solveEPNS_11SystemStateE)

; 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"

%"class.atg_scs::OdeSolver" = type { ptr, double }
%"class.atg_scs::SystemState" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, double }

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7atg_scs14EulerOdeSolver5solveEPNS_11SystemStateE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  %7 = getelementptr inbounds %"class.atg_scs::OdeSolver", ptr %6, i32 0, i32 1
  %8 = load double, ptr %7, align 8, !tbaa !9
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %9, i32 0, i32 19
  store double %8, ptr %10, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !15
  br label %11

11:                                               ; preds = %121, %2
  %12 = load i32, ptr %5, align 4, !tbaa !15
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %13, i32 0, i32 17
  %15 = load i32, ptr %14, align 8, !tbaa !16
  %16 = icmp slt i32 %12, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %124

18:                                               ; preds = %11
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %19, i32 0, i32 6
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = load i32, ptr %5, align 4, !tbaa !15
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds double, ptr %21, i64 %23
  %25 = load double, ptr %24, align 8, !tbaa !18
  %26 = getelementptr inbounds %"class.atg_scs::OdeSolver", ptr %6, i32 0, i32 1
  %27 = load double, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %28, i32 0, i32 8
  %30 = load ptr, ptr %29, align 8, !tbaa !19
  %31 = load i32, ptr %5, align 4, !tbaa !15
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds double, ptr %30, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !18
  %35 = call double @llvm.fmuladd.f64(double %25, double %27, double %34)
  store double %35, ptr %33, align 8, !tbaa !18
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %36, i32 0, i32 7
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = load i32, ptr %5, align 4, !tbaa !15
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds double, ptr %38, i64 %40
  %42 = load double, ptr %41, align 8, !tbaa !18
  %43 = getelementptr inbounds %"class.atg_scs::OdeSolver", ptr %6, i32 0, i32 1
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %45, i32 0, i32 9
  %47 = load ptr, ptr %46, align 8, !tbaa !21
  %48 = load i32, ptr %5, align 4, !tbaa !15
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %47, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !18
  %52 = call double @llvm.fmuladd.f64(double %42, double %44, double %51)
  store double %52, ptr %50, align 8, !tbaa !18
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = load i32, ptr %5, align 4, !tbaa !15
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %55, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !18
  %60 = getelementptr inbounds %"class.atg_scs::OdeSolver", ptr %6, i32 0, i32 1
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %62, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !23
  %65 = load i32, ptr %5, align 4, !tbaa !15
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %64, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !18
  %69 = call double @llvm.fmuladd.f64(double %59, double %61, double %68)
  store double %69, ptr %67, align 8, !tbaa !18
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !24
  %73 = load i32, ptr %5, align 4, !tbaa !15
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !18
  %77 = getelementptr inbounds %"class.atg_scs::OdeSolver", ptr %6, i32 0, i32 1
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %79, i32 0, i32 6
  %81 = load ptr, ptr %80, align 8, !tbaa !17
  %82 = load i32, ptr %5, align 4, !tbaa !15
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %81, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !18
  %86 = call double @llvm.fmuladd.f64(double %76, double %78, double %85)
  store double %86, ptr %84, align 8, !tbaa !18
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %87, i32 0, i32 5
  %89 = load ptr, ptr %88, align 8, !tbaa !25
  %90 = load i32, ptr %5, align 4, !tbaa !15
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !18
  %94 = getelementptr inbounds %"class.atg_scs::OdeSolver", ptr %6, i32 0, i32 1
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %97, align 8, !tbaa !20
  %99 = load i32, ptr %5, align 4, !tbaa !15
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %98, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !18
  %103 = call double @llvm.fmuladd.f64(double %93, double %95, double %102)
  store double %103, ptr %101, align 8, !tbaa !18
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !26
  %107 = load i32, ptr %5, align 4, !tbaa !15
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !18
  %111 = getelementptr inbounds %"class.atg_scs::OdeSolver", ptr %6, i32 0, i32 1
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.atg_scs::SystemState", ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !22
  %116 = load i32, ptr %5, align 4, !tbaa !15
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !18
  %120 = call double @llvm.fmuladd.f64(double %110, double %112, double %119)
  store double %120, ptr %118, align 8, !tbaa !18
  br label %121

121:                                              ; preds = %18
  %122 = load i32, ptr %5, align 4, !tbaa !15
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %5, align 4, !tbaa !15
  br label %11, !llvm.loop !27

124:                                              ; preds = %17
  ret void
}

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

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

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

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN7atg_scs9OdeSolverE", !11, i64 8}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !11, i64 144}
!13 = !{!"_ZTSN7atg_scs11SystemStateE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !14, i64 136, !14, i64 140, !11, i64 144}
!14 = !{!"int", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!13, !14, i64 136}
!17 = !{!13, !6, i64 48}
!18 = !{!11, !11, i64 0}
!19 = !{!13, !6, i64 64}
!20 = !{!13, !6, i64 56}
!21 = !{!13, !6, i64 72}
!22 = !{!13, !6, i64 16}
!23 = !{!13, !6, i64 24}
!24 = !{!13, !6, i64 32}
!25 = !{!13, !6, i64 40}
!26 = !{!13, !6, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; 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"

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @_ZN7atg_scs14EulerOdeSolver5solveEPNS_11SystemStateE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0, ptr nocapture noundef %1) unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load double, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 144
  store double %4, ptr %5, align 8, !tbaa !10
  %6 = getelementptr inbounds i8, ptr %1, i64 136
  %7 = load i32, ptr %6, align 8, !tbaa !14
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %9 = getelementptr inbounds i8, ptr %1, i64 48
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %1, i64 64
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %1, i64 56
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %1, i64 72
  %16 = load ptr, ptr %15, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load <2 x ptr>, ptr %17, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %1, i64 32
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %1, i64 40
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  %wide.trip.count = zext nneg i32 %7 to i64
  %min.iters.check = icmp ult i32 %7, 32
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %25 = extractelement <2 x ptr> %18, i64 0
  %26 = extractelement <2 x ptr> %18, i64 1
  br label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %27 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %12, i64 %27
  %scevgep30 = getelementptr i8, ptr %16, i64 %27
  %28 = extractelement <2 x ptr> %18, i64 1
  %scevgep31 = getelementptr i8, ptr %28, i64 %27
  %scevgep32 = getelementptr i8, ptr %10, i64 %27
  %scevgep33 = getelementptr i8, ptr %14, i64 %27
  %29 = extractelement <2 x ptr> %18, i64 0
  %scevgep34 = getelementptr i8, ptr %29, i64 %27
  %scevgep35 = getelementptr inbounds i8, ptr %0, i64 16
  %scevgep36 = getelementptr i8, ptr %20, i64 %27
  %scevgep37 = getelementptr i8, ptr %22, i64 %27
  %scevgep38 = getelementptr i8, ptr %24, i64 %27
  %bound0 = icmp ult ptr %12, %scevgep30
  %bound1 = icmp ult ptr %16, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound039 = icmp ult ptr %12, %scevgep31
  %bound140 = icmp ult ptr %28, %scevgep
  %found.conflict41 = and i1 %bound039, %bound140
  %bound042 = icmp ult ptr %12, %scevgep32
  %bound143 = icmp ult ptr %10, %scevgep
  %found.conflict44 = and i1 %bound042, %bound143
  %bound046 = icmp ult ptr %12, %scevgep33
  %bound147 = icmp ult ptr %14, %scevgep
  %found.conflict48 = and i1 %bound046, %bound147
  %30 = insertelement <4 x ptr> poison, ptr %12, i64 0
  %31 = shufflevector <4 x ptr> %30, <4 x ptr> poison, <4 x i32> zeroinitializer
  %32 = insertelement <4 x ptr> poison, ptr %scevgep34, i64 0
  %33 = insertelement <4 x ptr> %32, ptr %scevgep35, i64 1
  %34 = insertelement <4 x ptr> %33, ptr %scevgep36, i64 2
  %35 = insertelement <4 x ptr> %34, ptr %scevgep37, i64 3
  %36 = icmp ult <4 x ptr> %31, %35
  %37 = shufflevector <2 x ptr> %18, <2 x ptr> poison, <4 x i32> <i32 0, i32 poison, i32 poison, i32 poison>
  %38 = insertelement <4 x ptr> %37, ptr %3, i64 1
  %39 = insertelement <4 x ptr> %38, ptr %20, i64 2
  %40 = insertelement <4 x ptr> %39, ptr %22, i64 3
  %41 = insertelement <4 x ptr> poison, ptr %scevgep, i64 0
  %42 = shufflevector <4 x ptr> %41, <4 x ptr> poison, <4 x i32> zeroinitializer
  %43 = icmp ult <4 x ptr> %40, %42
  %44 = and <4 x i1> %36, %43
  %bound066 = icmp ult ptr %12, %scevgep38
  %bound167 = icmp ult ptr %24, %scevgep
  %found.conflict68 = and i1 %bound066, %bound167
  %bound070 = icmp ult ptr %16, %scevgep31
  %bound171 = icmp ult ptr %28, %scevgep30
  %found.conflict72 = and i1 %bound070, %bound171
  %bound074 = icmp ult ptr %16, %scevgep32
  %bound175 = icmp ult ptr %10, %scevgep30
  %found.conflict76 = and i1 %bound074, %bound175
  %bound078 = icmp ult ptr %16, %scevgep33
  %bound179 = icmp ult ptr %14, %scevgep30
  %found.conflict80 = and i1 %bound078, %bound179
  %45 = insertelement <4 x ptr> poison, ptr %16, i64 0
  %46 = shufflevector <4 x ptr> %45, <4 x ptr> poison, <4 x i32> zeroinitializer
  %47 = icmp ult <4 x ptr> %46, %35
  %48 = insertelement <4 x ptr> poison, ptr %scevgep30, i64 0
  %49 = shufflevector <4 x ptr> %48, <4 x ptr> poison, <4 x i32> zeroinitializer
  %50 = icmp ult <4 x ptr> %40, %49
  %51 = and <4 x i1> %47, %50
  %bound098 = icmp ult ptr %16, %scevgep38
  %bound199 = icmp ult ptr %24, %scevgep30
  %found.conflict100 = and i1 %bound098, %bound199
  %bound0102 = icmp ult ptr %28, %scevgep32
  %bound1103 = icmp ult ptr %10, %scevgep31
  %found.conflict104 = and i1 %bound0102, %bound1103
  %bound0106 = icmp ult ptr %28, %scevgep33
  %bound1107 = icmp ult ptr %14, %scevgep31
  %found.conflict108 = and i1 %bound0106, %bound1107
  %bound0126 = icmp ult ptr %28, %scevgep38
  %bound1127 = icmp ult ptr %24, %scevgep31
  %found.conflict128 = and i1 %bound0126, %bound1127
  %bound0130 = icmp ult ptr %10, %scevgep33
  %bound1131 = icmp ult ptr %14, %scevgep32
  %found.conflict132 = and i1 %bound0130, %bound1131
  %bound0134 = icmp ult ptr %10, %scevgep34
  %bound1135 = icmp ult ptr %29, %scevgep32
  %found.conflict136 = and i1 %bound0134, %bound1135
  %bound0138 = icmp ult ptr %10, %scevgep35
  %bound1139 = icmp ult ptr %3, %scevgep32
  %found.conflict140 = and i1 %bound0138, %bound1139
  %bound0142 = icmp ult ptr %10, %scevgep36
  %bound1143 = icmp ult ptr %20, %scevgep32
  %found.conflict144 = and i1 %bound0142, %bound1143
  %bound0146 = icmp ult ptr %10, %scevgep37
  %bound1147 = icmp ult ptr %22, %scevgep32
  %found.conflict148 = and i1 %bound0146, %bound1147
  %bound0150 = icmp ult ptr %10, %scevgep38
  %bound1151 = icmp ult ptr %24, %scevgep32
  %found.conflict152 = and i1 %bound0150, %bound1151
  %52 = insertelement <4 x ptr> poison, ptr %14, i64 0
  %53 = shufflevector <4 x ptr> %52, <4 x ptr> poison, <4 x i32> zeroinitializer
  %54 = icmp ult <4 x ptr> %53, %35
  %55 = insertelement <4 x ptr> poison, ptr %scevgep33, i64 0
  %56 = shufflevector <4 x ptr> %55, <4 x ptr> poison, <4 x i32> zeroinitializer
  %57 = icmp ult <4 x ptr> %40, %56
  %58 = and <4 x i1> %54, %57
  %bound0170 = icmp ult ptr %14, %scevgep38
  %bound1171 = icmp ult ptr %24, %scevgep33
  %found.conflict172 = and i1 %bound0170, %bound1171
  %bound0174 = icmp ult ptr %29, %scevgep35
  %bound1175 = icmp ult ptr %3, %scevgep34
  %found.conflict176 = and i1 %bound0174, %bound1175
  %bound0178 = icmp ult ptr %29, %scevgep36
  %bound1179 = icmp ult ptr %20, %scevgep34
  %found.conflict180 = and i1 %bound0178, %bound1179
  %bound0182 = icmp ult ptr %29, %scevgep37
  %bound1183 = icmp ult ptr %22, %scevgep34
  %found.conflict184 = and i1 %bound0182, %bound1183
  %bound0186 = icmp ult ptr %29, %scevgep38
  %bound1187 = icmp ult ptr %24, %scevgep34
  %found.conflict188 = and i1 %bound0186, %bound1187
  %59 = or <4 x i1> %44, %51
  %60 = or <4 x i1> %59, %58
  %61 = bitcast <4 x i1> %60 to i4
  %op.rdx211 = icmp ne i4 %61, 0
  %op.rdx212 = or i1 %op.rdx211, %found.conflict
  %op.rdx213 = or i1 %found.conflict41, %found.conflict44
  %op.rdx214 = or i1 %found.conflict48, %found.conflict68
  %op.rdx215 = or i1 %found.conflict72, %found.conflict76
  %op.rdx216 = or i1 %found.conflict80, %found.conflict100
  %op.rdx217 = or i1 %found.conflict104, %found.conflict108
  %62 = insertelement <2 x ptr> poison, ptr %scevgep31, i64 0
  %63 = insertelement <2 x ptr> %62, ptr %scevgep36, i64 1
  %64 = icmp ult <2 x ptr> %18, %63
  %65 = shufflevector <2 x ptr> %18, <2 x ptr> poison, <2 x i32> <i32 1, i32 1>
  %66 = insertelement <2 x ptr> %65, ptr %20, i64 1
  %67 = insertelement <2 x ptr> poison, ptr %scevgep34, i64 0
  %68 = insertelement <2 x ptr> %67, ptr %scevgep31, i64 1
  %69 = icmp ult <2 x ptr> %66, %68
  %70 = and <2 x i1> %64, %69
  %71 = insertelement <2 x ptr> poison, ptr %scevgep35, i64 0
  %72 = insertelement <2 x ptr> %71, ptr %scevgep37, i64 1
  %73 = icmp ult <2 x ptr> %65, %72
  %74 = insertelement <2 x ptr> poison, ptr %3, i64 0
  %75 = insertelement <2 x ptr> %74, ptr %22, i64 1
  %76 = shufflevector <2 x ptr> %62, <2 x ptr> poison, <2 x i32> zeroinitializer
  %77 = icmp ult <2 x ptr> %75, %76
  %78 = and <2 x i1> %73, %77
  %79 = or <2 x i1> %70, %78
  %op.rdx220 = or i1 %found.conflict128, %found.conflict132
  %op.rdx221 = or i1 %found.conflict136, %found.conflict140
  %op.rdx222 = or i1 %found.conflict144, %found.conflict148
  %op.rdx223 = or i1 %found.conflict152, %found.conflict172
  %op.rdx224 = or i1 %found.conflict176, %found.conflict180
  %op.rdx225 = or i1 %found.conflict184, %found.conflict188
  %op.rdx226 = or i1 %op.rdx212, %op.rdx213
  %op.rdx227 = or i1 %op.rdx214, %op.rdx215
  %op.rdx228 = or i1 %op.rdx216, %op.rdx217
  %shift = shufflevector <2 x i1> %79, <2 x i1> poison, <2 x i32> <i32 1, i32 poison>
  %80 = or <2 x i1> %79, %shift
  %op.rdx229 = extractelement <2 x i1> %80, i64 0
  %op.rdx230 = or i1 %op.rdx220, %op.rdx221
  %op.rdx231 = or i1 %op.rdx222, %op.rdx223
  %op.rdx232 = or i1 %op.rdx224, %op.rdx225
  %op.rdx233 = or i1 %op.rdx226, %op.rdx227
  %op.rdx234 = or i1 %op.rdx228, %op.rdx229
  %op.rdx235 = or i1 %op.rdx230, %op.rdx231
  %op.rdx236 = or i1 %op.rdx233, %op.rdx234
  %op.rdx237 = or i1 %op.rdx235, %op.rdx232
  %op.rdx238 = or i1 %op.rdx236, %op.rdx237
  br i1 %op.rdx238, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483646
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %81 = getelementptr inbounds double, ptr %10, i64 %index
  %wide.load = load <2 x double>, ptr %81, align 8, !tbaa !23, !alias.scope !24, !noalias !27
  %82 = load <2 x double>, ptr %0, align 8
  %broadcast.splat = shufflevector <2 x double> %82, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %83 = getelementptr inbounds double, ptr %12, i64 %index
  %wide.load190 = load <2 x double>, ptr %83, align 8, !tbaa !23, !alias.scope !34, !noalias !36
  %84 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> %broadcast.splat, <2 x double> %wide.load190)
  store <2 x double> %84, ptr %83, align 8, !tbaa !23, !alias.scope !34, !noalias !36
  %85 = getelementptr inbounds double, ptr %14, i64 %index
  %wide.load191 = load <2 x double>, ptr %85, align 8, !tbaa !23, !alias.scope !39, !noalias !40
  %86 = load <2 x double>, ptr %0, align 8
  %broadcast.splat194 = shufflevector <2 x double> %86, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %87 = getelementptr inbounds double, ptr %16, i64 %index
  %wide.load192 = load <2 x double>, ptr %87, align 8, !tbaa !23, !alias.scope !41, !noalias !42
  %88 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load191, <2 x double> %broadcast.splat194, <2 x double> %wide.load192)
  store <2 x double> %88, ptr %87, align 8, !tbaa !23, !alias.scope !41, !noalias !42
  %89 = getelementptr inbounds double, ptr %29, i64 %index
  %wide.load195 = load <2 x double>, ptr %89, align 8, !tbaa !23, !alias.scope !43, !noalias !44
  %90 = load <2 x double>, ptr %0, align 8
  %broadcast.splat198 = shufflevector <2 x double> %90, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %91 = getelementptr inbounds double, ptr %28, i64 %index
  %wide.load196 = load <2 x double>, ptr %91, align 8, !tbaa !23, !alias.scope !45, !noalias !46
  %92 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load195, <2 x double> %broadcast.splat198, <2 x double> %wide.load196)
  store <2 x double> %92, ptr %91, align 8, !tbaa !23, !alias.scope !45, !noalias !46
  %93 = getelementptr inbounds double, ptr %20, i64 %index
  %wide.load199 = load <2 x double>, ptr %93, align 8, !tbaa !23, !alias.scope !47
  %94 = load <2 x double>, ptr %0, align 8
  %broadcast.splat202 = shufflevector <2 x double> %94, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %wide.load200 = load <2 x double>, ptr %81, align 8, !tbaa !23, !alias.scope !24, !noalias !27
  %95 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load199, <2 x double> %broadcast.splat202, <2 x double> %wide.load200)
  store <2 x double> %95, ptr %81, align 8, !tbaa !23, !alias.scope !24, !noalias !27
  %96 = getelementptr inbounds double, ptr %22, i64 %index
  %wide.load203 = load <2 x double>, ptr %96, align 8, !tbaa !23, !alias.scope !48
  %97 = load <2 x double>, ptr %0, align 8
  %broadcast.splat206 = shufflevector <2 x double> %97, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %wide.load204 = load <2 x double>, ptr %85, align 8, !tbaa !23, !alias.scope !39, !noalias !40
  %98 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load203, <2 x double> %broadcast.splat206, <2 x double> %wide.load204)
  store <2 x double> %98, ptr %85, align 8, !tbaa !23, !alias.scope !39, !noalias !40
  %99 = getelementptr inbounds double, ptr %24, i64 %index
  %wide.load207 = load <2 x double>, ptr %99, align 8, !tbaa !23, !alias.scope !49
  %100 = load <2 x double>, ptr %0, align 8
  %broadcast.splat210 = shufflevector <2 x double> %100, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %wide.load208 = load <2 x double>, ptr %89, align 8, !tbaa !23, !alias.scope !43, !noalias !44
  %101 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load207, <2 x double> %broadcast.splat210, <2 x double> %wide.load208)
  store <2 x double> %101, ptr %89, align 8, !tbaa !23, !alias.scope !43, !noalias !44
  %index.next = add nuw i64 %index, 2
  %102 = icmp eq i64 %index.next, %n.vec
  br i1 %102, label %middle.block, label %vector.body, !llvm.loop !50

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %2
  ret void

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %103 = getelementptr inbounds double, ptr %10, i64 %indvars.iv
  %104 = load double, ptr %103, align 8, !tbaa !23
  %105 = load double, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %12, i64 %indvars.iv
  %107 = load double, ptr %106, align 8, !tbaa !23
  %108 = tail call double @llvm.fmuladd.f64(double %104, double %105, double %107)
  store double %108, ptr %106, align 8, !tbaa !23
  %109 = getelementptr inbounds double, ptr %14, i64 %indvars.iv
  %110 = load double, ptr %109, align 8, !tbaa !23
  %111 = load double, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %16, i64 %indvars.iv
  %113 = load double, ptr %112, align 8, !tbaa !23
  %114 = tail call double @llvm.fmuladd.f64(double %110, double %111, double %113)
  store double %114, ptr %112, align 8, !tbaa !23
  %115 = getelementptr inbounds double, ptr %25, i64 %indvars.iv
  %116 = load double, ptr %115, align 8, !tbaa !23
  %117 = load double, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds double, ptr %26, i64 %indvars.iv
  %119 = load double, ptr %118, align 8, !tbaa !23
  %120 = tail call double @llvm.fmuladd.f64(double %116, double %117, double %119)
  store double %120, ptr %118, align 8, !tbaa !23
  %121 = getelementptr inbounds double, ptr %20, i64 %indvars.iv
  %122 = load double, ptr %121, align 8, !tbaa !23
  %123 = load double, ptr %3, align 8, !tbaa !5
  %124 = load double, ptr %103, align 8, !tbaa !23
  %125 = tail call double @llvm.fmuladd.f64(double %122, double %123, double %124)
  store double %125, ptr %103, align 8, !tbaa !23
  %126 = getelementptr inbounds double, ptr %22, i64 %indvars.iv
  %127 = load double, ptr %126, align 8, !tbaa !23
  %128 = load double, ptr %3, align 8, !tbaa !5
  %129 = load double, ptr %109, align 8, !tbaa !23
  %130 = tail call double @llvm.fmuladd.f64(double %127, double %128, double %129)
  store double %130, ptr %109, align 8, !tbaa !23
  %131 = getelementptr inbounds double, ptr %24, i64 %indvars.iv
  %132 = load double, ptr %131, align 8, !tbaa !23
  %133 = load double, ptr %3, align 8, !tbaa !5
  %134 = load double, ptr %115, align 8, !tbaa !23
  %135 = tail call double @llvm.fmuladd.f64(double %132, double %133, double %134)
  store double %135, ptr %115, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !54
}

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

; 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 nofree norecurse nosync nounwind memory(readwrite, 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 8}
!6 = !{!"_ZTSN7atg_scs9OdeSolverE", !7, i64 8}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 144}
!11 = !{!"_ZTSN7atg_scs11SystemStateE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !13, i64 136, !13, i64 140, !7, i64 144}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !13, i64 136}
!15 = !{!11, !12, i64 48}
!16 = !{!11, !12, i64 64}
!17 = !{!11, !12, i64 56}
!18 = !{!11, !12, i64 72}
!19 = !{!12, !12, i64 0}
!20 = !{!11, !12, i64 32}
!21 = !{!11, !12, i64 40}
!22 = !{!11, !12, i64 8}
!23 = !{!7, !7, i64 0}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28, !29, !30, !31, !32, !33}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}
!34 = !{!35}
!35 = distinct !{!35, !26}
!36 = !{!37, !38, !25, !28, !29, !30, !31, !32, !33}
!37 = distinct !{!37, !26}
!38 = distinct !{!38, !26}
!39 = !{!28}
!40 = !{!29, !30, !31, !32, !33}
!41 = !{!37}
!42 = !{!38, !25, !28, !29, !30, !31, !32, !33}
!43 = !{!29}
!44 = !{!30, !31, !32, !33}
!45 = !{!38}
!46 = !{!25, !28, !29, !30, !31, !32, !33}
!47 = !{!31}
!48 = !{!32}
!49 = !{!33}
!50 = distinct !{!50, !51, !52, !53}
!51 = !{!"llvm.loop.mustprogress"}
!52 = !{!"llvm.loop.isvectorized", i32 1}
!53 = !{!"llvm.loop.unroll.runtime.disable"}
!54 = distinct !{!54, !51, !52}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass