; LLVM IR from buresjan/optim_lbm :: nomad/src/Math/ArrayOfDouble.ll (ZN9NOMAD_4_313ArrayOfDoubleaSERKS0_)

; 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.NOMAD_4_3::ArrayOfDouble" = type { ptr, i64, ptr }
%"class.NOMAD_4_3::Double" = type <{ ptr, 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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN9NOMAD_4_36DoubleC1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #5

declare noundef nonnull align 8 dereferenceable(17) ptr @_ZN9NOMAD_4_36DoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN9NOMAD_4_313ArrayOfDoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = icmp eq ptr %11, %12
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  store ptr %11, ptr %3, align 8
  br label %106

15:                                               ; preds = %2
  %16 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %18, i32 0, i32 1
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = icmp ne i64 %17, %20
  br i1 %21, label %22, label %82

22:                                               ; preds = %15
  %23 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !12
  %25 = icmp eq ptr %24, null
  br i1 %25, label %38, label %26

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %24, i64 -8
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %24, i64 %28
  %30 = icmp eq ptr %24, %29
  br i1 %30, label %35, label %31

31:                                               ; preds = %31, %26
  %32 = phi ptr [ %29, %26 ], [ %33, %31 ]
  %33 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %32, i64 -1
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %33) #7
  %34 = icmp eq ptr %33, %24
  br i1 %34, label %35, label %31

35:                                               ; preds = %31, %26
  %36 = mul i64 24, %28
  %37 = add i64 %36, 8
  call void @_ZdaPvm(ptr noundef %27, i64 noundef %37) #8
  br label %38

38:                                               ; preds = %35, %22
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %39, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  store i64 %41, ptr %42, align 8, !tbaa !9
  %43 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = icmp ugt i64 %44, 0
  br i1 %45, label %46, label %79

46:                                               ; preds = %38
  %47 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %48, i64 24)
  %50 = extractvalue { i64, i1 } %49, 1
  %51 = extractvalue { i64, i1 } %49, 0
  %52 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %51, i64 8)
  %53 = extractvalue { i64, i1 } %52, 1
  %54 = or i1 %50, %53
  %55 = extractvalue { i64, i1 } %52, 0
  %56 = select i1 %54, i64 -1, i64 %55
  %57 = call noalias noundef nonnull ptr @_Znam(i64 noundef %56) #9
  store i64 %48, ptr %57, align 16
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = icmp eq i64 %48, 0
  br i1 %59, label %67, label %60

60:                                               ; preds = %46
  %61 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %58, i64 %48
  br label %62

62:                                               ; preds = %64, %60
  %63 = phi ptr [ %58, %60 ], [ %65, %64 ]
  invoke void @_ZN9NOMAD_4_36DoubleC1Ev(ptr noundef nonnull align 8 dereferenceable(17) %63)
          to label %64 unwind label %69

64:                                               ; preds = %62
  %65 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %63, i64 1
  %66 = icmp eq ptr %65, %61
  br i1 %66, label %67, label %62

67:                                               ; preds = %64, %46
  %68 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 2
  store ptr %58, ptr %68, align 8, !tbaa !12
  br label %81

69:                                               ; preds = %62
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %6, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %7, align 4
  %73 = icmp eq ptr %58, %63
  br i1 %73, label %78, label %74

74:                                               ; preds = %74, %69
  %75 = phi ptr [ %63, %69 ], [ %76, %74 ]
  %76 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %75, i64 -1
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %76) #7
  %77 = icmp eq ptr %76, %58
  br i1 %77, label %78, label %74

78:                                               ; preds = %74, %69
  call void @_ZdaPvm(ptr noundef %57, i64 noundef %56) #8
  br label %108

79:                                               ; preds = %38
  %80 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 2
  store ptr null, ptr %80, align 8, !tbaa !12
  br label %81

81:                                               ; preds = %79, %67
  br label %82

82:                                               ; preds = %81, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %83 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !12
  store ptr %84, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !12
  store ptr %87, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %88

88:                                               ; preds = %98, %82
  %89 = load i64, ptr %10, align 8, !tbaa !13
  %90 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = icmp ult i64 %89, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %105

94:                                               ; preds = %88
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN9NOMAD_4_36DoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17) %96, ptr noundef nonnull align 8 dereferenceable(17) %95)
  br label %98

98:                                               ; preds = %94
  %99 = load i64, ptr %10, align 8, !tbaa !13
  %100 = add i64 %99, 1
  store i64 %100, ptr %10, align 8, !tbaa !13
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %101, i32 1
  store ptr %102, ptr %8, align 8, !tbaa !5
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %103, i32 1
  store ptr %104, ptr %9, align 8, !tbaa !5
  br label %88, !llvm.loop !14

105:                                              ; preds = %93
  store ptr %11, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %106

106:                                              ; preds = %105, %14
  %107 = load ptr, ptr %3, align 8
  ret ptr %107

108:                                              ; preds = %78
  %109 = load ptr, ptr %6, align 8
  %110 = load i32, ptr %7, align 4
  %111 = insertvalue { ptr, i32 } poison, ptr %109, 0
  %112 = insertvalue { ptr, i32 } %111, i32 %110, 1
  resume { ptr, i32 } %112
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 #5 = { nobuiltin nounwind "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 #6 = { mustprogress 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 #7 = { nounwind }
attributes #8 = { builtin nounwind }
attributes #9 = { builtin allocsize(0) }

!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 = !{!"_ZTSN9NOMAD_4_313ArrayOfDoubleE", !11, i64 8, !6, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 16}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"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"

%"class.NOMAD_4_3::Double" = type <{ ptr, double, i8, [7 x i8] }>

declare i32 @__gxx_personality_v0(...)

declare void @_ZN9NOMAD_4_36DoubleC1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(17) ptr @_ZN9NOMAD_4_36DoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN9NOMAD_4_313ArrayOfDoubleaSERKS0_(ptr noundef nonnull returned align 8 dereferenceable(24) %0, ptr noundef nonnull readonly align 8 dereferenceable(24) %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = icmp eq ptr %0, %1
  br i1 %3, label %.loopexit, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i64 %6, %8
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 16
  %.pre39 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !11
  br i1 %.not, label %._crit_edge, label %9

9:                                                ; preds = %4
  %10 = icmp eq ptr %.pre39, null
  br i1 %10, label %21, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %.pre39, i64 -8
  %13 = load i64, ptr %12, align 8
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %.loopexit32, label %.preheader31.preheader

.preheader31.preheader:                           ; preds = %11
  %15 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %.pre39, i64 %13
  br label %.preheader31

.preheader31:                                     ; preds = %.preheader31.preheader, %.preheader31
  %16 = phi ptr [ %17, %.preheader31 ], [ %15, %.preheader31.preheader ]
  %17 = getelementptr inbounds i8, ptr %16, i64 -24
  tail call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %17) #6
  %18 = icmp eq ptr %17, %.pre39
  br i1 %18, label %.loopexit32, label %.preheader31

.loopexit32:                                      ; preds = %.preheader31, %11
  %19 = mul i64 %13, 24
  %20 = add i64 %19, 8
  tail call void @_ZdaPvm(ptr noundef nonnull %12, i64 noundef %20) #7
  %.pre = load i64, ptr %7, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %.loopexit32, %9
  %22 = phi i64 [ %.pre, %.loopexit32 ], [ %8, %9 ]
  store i64 %22, ptr %5, align 8, !tbaa !5
  %.not23 = icmp eq i64 %22, 0
  br i1 %.not23, label %.thread, label %23

23:                                               ; preds = %21
  %24 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %22, i64 24)
  %25 = extractvalue { i64, i1 } %24, 1
  %26 = extractvalue { i64, i1 } %24, 0
  %27 = tail call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %26, i64 8)
  %28 = extractvalue { i64, i1 } %27, 1
  %29 = or i1 %25, %28
  %30 = extractvalue { i64, i1 } %27, 0
  %31 = select i1 %29, i64 -1, i64 %30
  %32 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #8
  store i64 %22, ptr %32, align 16
  %.ptr25 = getelementptr inbounds i8, ptr %32, i64 8
  %33 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %.ptr25, i64 %22
  br label %34

34:                                               ; preds = %35, %23
  %.idx = phi i64 [ 8, %23 ], [ %.add, %35 ]
  %.ptr.ptr = getelementptr inbounds i8, ptr %32, i64 %.idx
  invoke void @_ZN9NOMAD_4_36DoubleC1Ev(ptr noundef nonnull align 8 dereferenceable(17) %.ptr.ptr)
          to label %35 unwind label %38

35:                                               ; preds = %34
  %.add = add nuw nsw i64 %.idx, 24
  %.ptr24 = getelementptr inbounds i8, ptr %32, i64 %.add
  %36 = icmp eq ptr %.ptr24, %33
  br i1 %36, label %37, label %34

37:                                               ; preds = %35
  store ptr %.ptr25, ptr %.phi.trans.insert, align 8, !tbaa !11
  %.pre40 = load i64, ptr %5, align 8, !tbaa !5
  br label %._crit_edge

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = icmp eq i64 %.idx, 8
  br i1 %40, label %.loopexit30, label %.preheader

.preheader:                                       ; preds = %38, %.preheader
  %.idx26 = phi i64 [ %.add27, %.preheader ], [ %.idx, %38 ]
  %.add27 = add nsw i64 %.idx26, -24
  %.ptr29 = getelementptr inbounds i8, ptr %32, i64 %.add27
  tail call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %.ptr29) #6
  %41 = icmp eq i64 %.add27, 8
  br i1 %41, label %.loopexit30, label %.preheader

.loopexit30:                                      ; preds = %.preheader, %38
  tail call void @_ZdaPvm(ptr noundef nonnull %32, i64 noundef %31) #7
  resume { ptr, i32 } %39

.thread:                                          ; preds = %21
  store ptr null, ptr %.phi.trans.insert, align 8, !tbaa !11
  br label %.loopexit

._crit_edge:                                      ; preds = %4, %37
  %42 = phi i64 [ %.pre40, %37 ], [ %6, %4 ]
  %43 = phi ptr [ %.ptr25, %37 ], [ %.pre39, %4 ]
  %.not37 = icmp eq i64 %42, 0
  br i1 %.not37, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %._crit_edge
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.036 = phi i64 [ %47, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.01335 = phi ptr [ %49, %.lr.ph ], [ %45, %.lr.ph.preheader ]
  %.01434 = phi ptr [ %48, %.lr.ph ], [ %43, %.lr.ph.preheader ]
  %46 = tail call noundef nonnull align 8 dereferenceable(17) ptr @_ZN9NOMAD_4_36DoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17) %.01434, ptr noundef nonnull align 8 dereferenceable(17) %.01335)
  %47 = add nuw i64 %.036, 1
  %48 = getelementptr inbounds i8, ptr %.01434, i64 24
  %49 = getelementptr inbounds i8, ptr %.01335, i64 24
  %50 = load i64, ptr %5, align 8, !tbaa !5
  %51 = icmp ult i64 %47, %50
  br i1 %51, label %.lr.ph, label %.loopexit, !llvm.loop !12

.loopexit:                                        ; preds = %.lr.ph, %.thread, %._crit_edge, %2
  ret ptr %0
}

attributes #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 = { nounwind "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(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 #4 = { nobuiltin nounwind "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 #5 = { mustprogress 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 #6 = { nounwind }
attributes #7 = { builtin nounwind }
attributes #8 = { builtin allocsize(0) }

!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 = !{!"_ZTSN9NOMAD_4_313ArrayOfDoubleE", !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass