; LLVM IR from chromia/lichtenberg :: src/model (dbmmodel)

; 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.lichtenberg::model::DielectricBreakModel" = type { %"class.lichtenberg::model::BreakModel", i32, i32, i8, double, double, %"class.std::vector", double }
%"class.lichtenberg::model::BreakModel" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<lichtenberg::model::DBMCell>, std::allocator<std::vector<lichtenberg::model::DBMCell>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<lichtenberg::model::DBMCell>, std::allocator<std::vector<lichtenberg::model::DBMCell>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<lichtenberg::model::DBMCell>, std::allocator<std::vector<lichtenberg::model::DBMCell>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<lichtenberg::model::DBMCell>, std::allocator<std::vector<lichtenberg::model::DBMCell>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.lichtenberg::model::DBMCell" = type <{ double, i8, [7 x i8] }>

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; 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) #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN11lichtenberg5model20DielectricBreakModel13solve_laplaceERKNS_10CellList2DE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 10000, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store double 1.000000e-03, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %24 = getelementptr inbounds %"class.lichtenberg::model::DielectricBreakModel", ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 8, !tbaa !13
  store i32 %25, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %26 = getelementptr inbounds %"class.lichtenberg::model::DielectricBreakModel", ptr %23, i32 0, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !21
  store i32 %27, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %133, %2
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = icmp slt i32 %29, 10000
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  store i32 2, ptr %11, align 4
  br label %136

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %122, %32
  %34 = load i32, ptr %13, align 4, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = icmp sle i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %125

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %39 = getelementptr inbounds %"class.lichtenberg::model::DielectricBreakModel", ptr %23, i32 0, i32 6
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #3
  store ptr %42, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %118, %38
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = icmp sle i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %121

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = load i32, ptr %15, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %51) #3
  store ptr %52, ptr %16, align 8, !tbaa !5
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.lichtenberg::model::DBMCell", ptr %53, i32 0, i32 1
  %55 = load i8, ptr %54, align 8, !tbaa !22, !range !24, !noundef !25
  %56 = trunc i8 %55 to i1
  br i1 %56, label %117, label %57

57:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %58 = load ptr, ptr %16, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.lichtenberg::model::DBMCell", ptr %58, i32 0, i32 0
  %60 = load double, ptr %59, align 8, !tbaa !26
  store double %60, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %61 = getelementptr inbounds %"class.lichtenberg::model::DielectricBreakModel", ptr %23, i32 0, i32 6
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = sub nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %64) #3
  store ptr %65, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %66 = getelementptr inbounds %"class.lichtenberg::model::DielectricBreakModel", ptr %23, i32 0, i32 6
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %68) #3
  store ptr %69, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %70 = getelementptr inbounds %"class.lichtenberg::model::DielectricBreakModel", ptr %23, i32 0, i32 6
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %73) #3
  store ptr %74, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  %76 = load i32, ptr %15, align 4, !tbaa !9
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %78) #3
  %80 = getelementptr inbounds %"struct.lichtenberg::model::DBMCell", ptr %79, i32 0, i32 0
  %81 = load double, ptr %80, align 8, !tbaa !26
  %82 = load ptr, ptr %19, align 8, !tbaa !5
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %85) #3
  %87 = getelementptr inbounds %"struct.lichtenberg::model::DBMCell", ptr %86, i32 0, i32 0
  %88 = load double, ptr %87, align 8, !tbaa !26
  %89 = fadd double %81, %88
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  %91 = load i32, ptr %15, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %92) #3
  %94 = getelementptr inbounds %"struct.lichtenberg::model::DBMCell", ptr %93, i32 0, i32 0
  %95 = load double, ptr %94, align 8, !tbaa !26
  %96 = fadd double %89, %95
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #3
  %101 = getelementptr inbounds %"struct.lichtenberg::model::DBMCell", ptr %100, i32 0, i32 0
  %102 = load double, ptr %101, align 8, !tbaa !26
  %103 = fadd double %96, %102
  %104 = fdiv double %103, 4.000000e+00
  store double %104, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %105 = load double, ptr %21, align 8, !tbaa !11
  %106 = load double, ptr %17, align 8, !tbaa !11
  %107 = fsub double %105, %106
  store double %107, ptr %22, align 8, !tbaa !11
  %108 = load double, ptr %17, align 8, !tbaa !11
  %109 = load double, ptr %22, align 8, !tbaa !11
  %110 = call double @llvm.fmuladd.f64(double 1.900000e+00, double %109, double %108)
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.lichtenberg::model::DBMCell", ptr %111, i32 0, i32 0
  store double %110, ptr %112, align 8, !tbaa !26
  %113 = load double, ptr %22, align 8, !tbaa !11
  %114 = call double @llvm.fabs.f64(double %113)
  %115 = load double, ptr %12, align 8, !tbaa !11
  %116 = fadd double %115, %114
  store double %116, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %117

117:                                              ; preds = %57, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %15, align 4, !tbaa !9
  br label %43, !llvm.loop !27

121:                                              ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %13, align 4, !tbaa !9
  br label %33, !llvm.loop !29

125:                                              ; preds = %37
  %126 = load double, ptr %12, align 8, !tbaa !11
  %127 = fcmp olt double %126, 1.000000e-03
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  store i1 true, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %130

129:                                              ; preds = %125
  store i32 0, ptr %11, align 4
  br label %130

130:                                              ; preds = %129, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %131 = load i32, ptr %11, align 4
  switch i32 %131, label %136 [
    i32 0, label %132
  ]

132:                                              ; preds = %130
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %10, align 4, !tbaa !9
  br label %28, !llvm.loop !30

136:                                              ; preds = %130, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %137 = load i32, ptr %11, align 4
  switch i32 %137, label %139 [
    i32 2, label %138
  ]

138:                                              ; preds = %136
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %139

139:                                              ; preds = %138, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %140 = load i1, ptr %3, align 1
  ret i1 %140
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN11lichtenberg5model20DielectricBreakModelE", !15, i64 0, !10, i64 8, !10, i64 12, !16, i64 16, !12, i64 24, !12, i64 32, !17, i64 40, !12, i64 64}
!15 = !{!"_ZTSN11lichtenberg5model10BreakModelE"}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseISt6vectorIN11lichtenberg5model7DBMCellESaIS3_EESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN11lichtenberg5model7DBMCellESaIS3_EESaIS5_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN11lichtenberg5model7DBMCellESaIS3_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!14, !10, i64 12}
!22 = !{!23, !16, i64 8}
!23 = !{!"_ZTSN11lichtenberg5model7DBMCellE", !12, i64 0, !16, i64 8}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!23, !12, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}


; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN11lichtenberg5model20DielectricBreakModel13solve_laplaceERKNS_10CellList2DE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(16) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %.fr = freeze i32 %4
  %5 = getelementptr inbounds i8, ptr %0, i64 12
  %6 = load i32, ptr %5, align 4, !tbaa !18
  %.not48 = icmp slt i32 %6, 1
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  br i1 %.not48, label %.critedge, label %.split

.split:                                           ; preds = %2
  %.not4445 = icmp slt i32 %.fr, 1
  br i1 %.not4445, label %.preheader.us56.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.split
  %8 = add nuw i32 %.fr, 1
  %9 = add nuw i32 %6, 1
  %wide.trip.count67 = zext i32 %9 to i64
  %wide.trip.count = zext i32 %8 to i64
  br label %.preheader

.preheader.us56.preheader:                        ; preds = %.split
  %10 = add nuw i32 %6, 1
  %wide.trip.count73 = zext i32 %10 to i64
  br label %.preheader.us56

.preheader.us56:                                  ; preds = %.preheader.us56.preheader, %.preheader.us56
  %indvars.iv70 = phi i64 [ 1, %.preheader.us56.preheader ], [ %indvars.iv.next71, %.preheader.us56 ]
  %11 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv70) #2
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond74.not = icmp eq i64 %indvars.iv.next71, %wide.trip.count73
  br i1 %exitcond74.not, label %.critedge, label %.preheader.us56, !llvm.loop !19

12:                                               ; preds = %._crit_edge52.split
  %13 = add nuw nsw i32 %.03654, 1
  %14 = icmp ult i32 %.03654, 9999
  %exitcond69.not = icmp eq i32 %13, 10000
  br i1 %exitcond69.not, label %.critedge, label %.preheader, !llvm.loop !21

.preheader:                                       ; preds = %.preheader.preheader, %12
  %15 = phi i1 [ %14, %12 ], [ true, %.preheader.preheader ]
  %.03654 = phi i32 [ %13, %12 ], [ 0, %.preheader.preheader ]
  br label %.lr.ph

._crit_edge52.split:                              ; preds = %._crit_edge
  %16 = fcmp uge double %.241, 1.000000e-03
  br i1 %16, label %12, label %.critedge

.lr.ph:                                           ; preds = %.preheader, %._crit_edge
  %indvars.iv64 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next65, %._crit_edge ]
  %.03950 = phi double [ 0.000000e+00, %.preheader ], [ %.241, %._crit_edge ]
  %17 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv64) #2
  %18 = add nsw i64 %indvars.iv64, -1
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  br label %19

._crit_edge:                                      ; preds = %47
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %wide.trip.count67
  br i1 %exitcond68.not, label %._crit_edge52.split, label %.lr.ph, !llvm.loop !19

19:                                               ; preds = %.lr.ph, %47
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next.pre-phi, %47 ]
  %.14047 = phi double [ %.03950, %.lr.ph ], [ %.241, %47 ]
  %20 = tail call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv) #2
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load i8, ptr %21, align 8, !tbaa !22, !range !24, !noundef !25
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %._crit_edge75, label %24

._crit_edge75:                                    ; preds = %19
  %.pre = add nuw nsw i64 %indvars.iv, 1
  br label %47

24:                                               ; preds = %19
  %25 = load double, ptr %20, align 8, !tbaa !26
  %26 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %18) #2
  %27 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv64) #2
  %28 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv.next65) #2
  %29 = add nsw i64 %indvars.iv, -1
  %30 = tail call noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #2
  %31 = load double, ptr %30, align 8, !tbaa !26
  %32 = add nuw nsw i64 %indvars.iv, 1
  %33 = tail call noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %32) #2
  %34 = load double, ptr %33, align 8, !tbaa !26
  %35 = fadd double %31, %34
  %36 = tail call noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv) #2
  %37 = load double, ptr %36, align 8, !tbaa !26
  %38 = fadd double %35, %37
  %39 = tail call noundef nonnull align 8 dereferenceable(9) ptr @_ZNKSt6vectorIN11lichtenberg5model7DBMCellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %indvars.iv) #2
  %40 = load double, ptr %39, align 8, !tbaa !26
  %41 = fadd double %38, %40
  %42 = fmul double %41, 2.500000e-01
  %43 = fsub double %42, %25
  %44 = tail call double @llvm.fmuladd.f64(double %43, double 1.900000e+00, double %25)
  store double %44, ptr %20, align 8, !tbaa !26
  %45 = tail call double @llvm.fabs.f64(double %43)
  %46 = fadd double %.14047, %45
  br label %47

47:                                               ; preds = %._crit_edge75, %24
  %indvars.iv.next.pre-phi = phi i64 [ %.pre, %._crit_edge75 ], [ %32, %24 ]
  %.241 = phi double [ %.14047, %._crit_edge75 ], [ %46, %24 ]
  %exitcond.not = icmp eq i64 %indvars.iv.next.pre-phi, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %19, !llvm.loop !27

.critedge:                                        ; preds = %12, %._crit_edge52.split, %.preheader.us56, %2
  %.us-phi55 = phi i1 [ true, %2 ], [ true, %.preheader.us56 ], [ %14, %12 ], [ %15, %._crit_edge52.split ]
  ret i1 %.us-phi55
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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, !8, i64 8}
!6 = !{!"_ZTSN11lichtenberg5model20DielectricBreakModelE", !7, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !12, i64 24, !12, i64 32, !13, i64 40, !12, i64 64}
!7 = !{!"_ZTSN11lichtenberg5model10BreakModelE"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!"_ZTSSt6vectorIS_IN11lichtenberg5model7DBMCellESaIS2_EESaIS4_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseISt6vectorIN11lichtenberg5model7DBMCellESaIS3_EESaIS5_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN11lichtenberg5model7DBMCellESaIS3_EESaIS5_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN11lichtenberg5model7DBMCellESaIS3_EESaIS5_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !9, i64 0}
!18 = !{!6, !8, i64 12}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !11, i64 8}
!23 = !{!"_ZTSN11lichtenberg5model7DBMCellE", !12, i64 0, !11, i64 8}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!23, !12, i64 0}
!27 = distinct !{!27, !20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass