; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/Numerics/FEM/src (dsrc2c)

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

%struct.anon = type { i64, i64, i64, i64, i64, i64 }
%struct.anon.0 = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.anon.1 = type { i64, i64, i64, i64, i64 }

@itcom1_ = external hidden global %struct.anon, align 8
@itcom3_ = external hidden global %struct.anon.0, align 8
@itcom2_ = external hidden global %struct.anon.1, align 8
@chgcon_.ip = external hidden global i64, align 8
@chgcon_.ib3 = external hidden global i64, align 8
@chgcon_.end = external hidden global double, align 8
@chgcon_.ier = external hidden global i64, align 8
@chgcon_.cmold = external hidden global double, align 8
@chgcon_.start = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @chgcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = load i64, ptr %10, align 8, !tbaa !9
  switch i64 %11, label %15 [
    i64 1, label %12
    i64 2, label %13
    i64 3, label %14
  ]

12:                                               ; preds = %4
  br label %16

13:                                               ; preds = %4
  br label %19

14:                                               ; preds = %4
  br label %24

15:                                               ; preds = %4
  br label %16

16:                                               ; preds = %15, %12
  %17 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !11
  store double %17, ptr @chgcon_.start, align 8, !tbaa !14
  %18 = load i64, ptr @itcom1_, align 8, !tbaa !15
  store i64 %18, ptr @chgcon_.ip, align 8, !tbaa !9
  br label %38

19:                                               ; preds = %13
  %20 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !11
  %21 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !11
  %22 = fmul double %20, %21
  store double %22, ptr @chgcon_.start, align 8, !tbaa !14
  %23 = load i64, ptr @itcom1_, align 8, !tbaa !15
  store i64 %23, ptr @chgcon_.ip, align 8, !tbaa !9
  br label %38

24:                                               ; preds = %14
  %25 = load i64, ptr @itcom2_, align 8, !tbaa !17
  %26 = icmp ne i64 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %24
  %28 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 15), align 8, !tbaa !19
  store double %28, ptr @chgcon_.start, align 8, !tbaa !14
  br label %29

29:                                               ; preds = %27, %24
  %30 = load i64, ptr @itcom2_, align 8, !tbaa !17
  %31 = icmp ne i64 %30, 0
  br i1 %31, label %34, label %32

32:                                               ; preds = %29
  %33 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 14), align 8, !tbaa !20
  store double %33, ptr @chgcon_.start, align 8, !tbaa !14
  br label %34

34:                                               ; preds = %32, %29
  %35 = load i64, ptr @itcom1_, align 8, !tbaa !15
  %36 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @itcom1_, i32 0, i32 1), align 8, !tbaa !21
  %37 = sub nsw i64 %35, %36
  store i64 %37, ptr @chgcon_.ip, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %34, %19, %16
  %39 = load i64, ptr @chgcon_.ip, align 8, !tbaa !9
  %40 = icmp sge i64 %39, 2
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  br label %56

42:                                               ; preds = %38
  %43 = load i64, ptr @chgcon_.ip, align 8, !tbaa !9
  %44 = icmp ne i64 %43, 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  store double 0.000000e+00, ptr @chgcon_.end, align 8, !tbaa !14
  store double 0.000000e+00, ptr @chgcon_.cmold, align 8, !tbaa !14
  br label %55

46:                                               ; preds = %42
  %47 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !22
  %48 = fdiv double 1.000000e+00, %47
  %49 = fsub double 1.000000e+00, %48
  store double %49, ptr @chgcon_.end, align 8, !tbaa !14
  %50 = load double, ptr @chgcon_.end, align 8, !tbaa !14
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds double, ptr %51, i64 0
  store double %50, ptr %52, align 8, !tbaa !14
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 1
  store double 0.000000e+00, ptr %54, align 8, !tbaa !14
  br label %55

55:                                               ; preds = %46, %45
  br label %126

56:                                               ; preds = %41
  %57 = load i64, ptr @chgcon_.ip, align 8, !tbaa !9
  %58 = icmp sgt i64 %57, 2
  br i1 %58, label %59, label %80

59:                                               ; preds = %56
  %60 = load double, ptr @chgcon_.start, align 8, !tbaa !14
  %61 = load double, ptr @chgcon_.cmold, align 8, !tbaa !14
  %62 = fsub double %60, %61
  %63 = fcmp oge double %62, 0.000000e+00
  br i1 %63, label %64, label %68

64:                                               ; preds = %59
  %65 = load double, ptr @chgcon_.start, align 8, !tbaa !14
  %66 = load double, ptr @chgcon_.cmold, align 8, !tbaa !14
  %67 = fsub double %65, %66
  br label %73

68:                                               ; preds = %59
  %69 = load double, ptr @chgcon_.start, align 8, !tbaa !14
  %70 = load double, ptr @chgcon_.cmold, align 8, !tbaa !14
  %71 = fsub double %69, %70
  %72 = fneg double %71
  br label %73

73:                                               ; preds = %68, %64
  %74 = phi double [ %67, %64 ], [ %72, %68 ]
  %75 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 19), align 8, !tbaa !23
  %76 = load double, ptr @chgcon_.start, align 8, !tbaa !14
  %77 = fmul double %75, %76
  %78 = fcmp ole double %74, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %73
  br label %166

80:                                               ; preds = %73, %56
  %81 = load double, ptr @chgcon_.start, align 8, !tbaa !14
  store double %81, ptr @chgcon_.cmold, align 8, !tbaa !14
  %82 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !22
  %83 = fdiv double 1.000000e+00, %82
  %84 = fsub double 1.000000e+00, %83
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load i64, ptr @chgcon_.ip, align 8, !tbaa !9
  %87 = shl i64 %86, 1
  %88 = sub nsw i64 %87, 2
  %89 = getelementptr inbounds double, ptr %85, i64 %88
  store double %84, ptr %89, align 8, !tbaa !14
  %90 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !24
  %91 = fsub double %90, 1.000000e+00
  %92 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !24
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load double, ptr %93, align 8, !tbaa !14
  %95 = fmul double %92, %94
  %96 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !22
  %97 = fmul double %95, %96
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load double, ptr %98, align 8, !tbaa !14
  %100 = fmul double %97, %99
  %101 = fdiv double %91, %100
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load i64, ptr @chgcon_.ip, align 8, !tbaa !9
  %104 = shl i64 %103, 1
  %105 = sub nsw i64 %104, 1
  %106 = getelementptr inbounds double, ptr %102, i64 %105
  store double %101, ptr %106, align 8, !tbaa !14
  %107 = load i64, ptr @chgcon_.ip, align 8, !tbaa !9
  %108 = load i64, ptr @chgcon_.ip, align 8, !tbaa !9
  %109 = sdiv i64 %108, 2
  %110 = add nsw i64 %107, %109
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr @chgcon_.ib3, align 8, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load i64, ptr @chgcon_.ip, align 8, !tbaa !9
  %115 = shl i64 %114, 1
  %116 = getelementptr inbounds double, ptr %113, i64 %115
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i64, ptr @chgcon_.ib3, align 8, !tbaa !9
  %119 = shl i64 %118, 1
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = call double @eigvns_(ptr noundef @chgcon_.ip, ptr noundef %112, ptr noundef %116, ptr noundef %120, ptr noundef @chgcon_.ier)
  store double %121, ptr @chgcon_.end, align 8, !tbaa !14
  %122 = load i64, ptr @chgcon_.ier, align 8, !tbaa !9
  %123 = icmp ne i64 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %80
  br label %167

125:                                              ; preds = %80
  br label %126

126:                                              ; preds = %125, %55
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load i64, ptr %127, align 8, !tbaa !9
  %129 = icmp eq i64 %128, 1
  br i1 %129, label %130, label %132

130:                                              ; preds = %126
  %131 = load double, ptr @chgcon_.end, align 8, !tbaa !14
  store double %131, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !11
  br label %132

132:                                              ; preds = %130, %126
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = icmp eq i64 %134, 2
  br i1 %135, label %136, label %147

136:                                              ; preds = %132
  %137 = load double, ptr @chgcon_.end, align 8, !tbaa !14
  %138 = fcmp oge double %137, 0.000000e+00
  br i1 %138, label %139, label %141

139:                                              ; preds = %136
  %140 = load double, ptr @chgcon_.end, align 8, !tbaa !14
  br label %144

141:                                              ; preds = %136
  %142 = load double, ptr @chgcon_.end, align 8, !tbaa !14
  %143 = fneg double %142
  br label %144

144:                                              ; preds = %141, %139
  %145 = phi double [ %140, %139 ], [ %143, %141 ]
  %146 = call double @sqrt(double noundef %145) #2
  store double %146, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !11
  br label %147

147:                                              ; preds = %144, %132
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = icmp eq i64 %149, 3
  br i1 %150, label %151, label %156

151:                                              ; preds = %147
  %152 = load i64, ptr @itcom2_, align 8, !tbaa !17
  %153 = icmp ne i64 %152, 0
  br i1 %153, label %154, label %156

154:                                              ; preds = %151
  %155 = load double, ptr @chgcon_.end, align 8, !tbaa !14
  store double %155, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 15), align 8, !tbaa !19
  br label %156

156:                                              ; preds = %154, %151, %147
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = load i64, ptr %157, align 8, !tbaa !9
  %159 = icmp eq i64 %158, 3
  br i1 %159, label %160, label %165

160:                                              ; preds = %156
  %161 = load i64, ptr @itcom2_, align 8, !tbaa !17
  %162 = icmp ne i64 %161, 0
  br i1 %162, label %165, label %163

163:                                              ; preds = %160
  %164 = load double, ptr @chgcon_.end, align 8, !tbaa !14
  store double %164, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 14), align 8, !tbaa !20
  br label %165

165:                                              ; preds = %163, %160, %156
  store i32 0, ptr %5, align 4
  br label %168

166:                                              ; preds = %79
  store i64 0, ptr @itcom2_, align 8, !tbaa !17
  store i64 0, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 4), align 8, !tbaa !25
  store i32 0, ptr %5, align 4
  br label %168

167:                                              ; preds = %124
  store i64 0, ptr @itcom2_, align 8, !tbaa !17
  store i64 0, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 4), align 8, !tbaa !25
  store i32 0, ptr %5, align 4
  br label %168

168:                                              ; preds = %167, %166, %165
  %169 = load i32, ptr %5, align 4
  ret i32 %169
}

; Function Attrs: nounwind
declare double @sqrt(double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @eigvns_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

attributes #0 = { 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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!17 = !{!18, !10, i64 0}
!18 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!19 = !{!12, !13, i64 120}
!20 = !{!12, !13, i64 112}
!21 = !{!16, !10, i64 8}
!22 = !{!12, !13, i64 48}
!23 = !{!12, !13, i64 152}
!24 = !{!12, !13, i64 80}
!25 = !{!18, !10, i64 32}


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

%struct.anon = type { i64, i64, i64, i64, i64, i64 }
%struct.anon.0 = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.anon.1 = type { i64, i64, i64, i64, i64 }

@itcom1_ = external hidden local_unnamed_addr global %struct.anon, align 8
@itcom3_ = external hidden local_unnamed_addr global %struct.anon.0, align 8
@itcom2_ = external hidden local_unnamed_addr global %struct.anon.1, align 8
@chgcon_.ip = external hidden global i64, align 8
@chgcon_.ib3 = external hidden local_unnamed_addr global i64, align 8
@chgcon_.end = external hidden local_unnamed_addr global double, align 8
@chgcon_.ier = external hidden global i64, align 8
@chgcon_.cmold = external hidden local_unnamed_addr global double, align 8
@chgcon_.start = external hidden local_unnamed_addr global double, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @chgcon_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %5 = load i64, ptr %3, align 8, !tbaa !5
  switch i64 %5, label %6 [
    i64 3, label %13
    i64 2, label %9
  ]

6:                                                ; preds = %4
  %7 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !9
  store double %7, ptr @chgcon_.start, align 8, !tbaa !12
  %8 = load i64, ptr @itcom1_, align 8, !tbaa !13
  br label %18

9:                                                ; preds = %4
  %10 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !9
  %11 = fmul double %10, %10
  store double %11, ptr @chgcon_.start, align 8, !tbaa !12
  %12 = load i64, ptr @itcom1_, align 8, !tbaa !13
  br label %18

13:                                               ; preds = %4
  %14 = load i64, ptr @itcom2_, align 8, !tbaa !15
  %.not = icmp eq i64 %14, 0
  %.val = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 112), align 8
  %.val29 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 120), align 8
  %storemerge = select i1 %.not, double %.val, double %.val29
  store double %storemerge, ptr @chgcon_.start, align 8, !tbaa !12
  %15 = load i64, ptr @itcom1_, align 8, !tbaa !13
  %16 = load i64, ptr getelementptr inbounds (i8, ptr @itcom1_, i64 8), align 8, !tbaa !17
  %17 = sub nsw i64 %15, %16
  br label %18

18:                                               ; preds = %13, %9, %6
  %.sink = phi i64 [ %17, %13 ], [ %12, %9 ], [ %8, %6 ]
  %19 = phi double [ %storemerge, %13 ], [ %11, %9 ], [ %7, %6 ]
  store i64 %.sink, ptr @chgcon_.ip, align 8, !tbaa !5
  %20 = icmp sgt i64 %.sink, 1
  br i1 %20, label %28, label %21

21:                                               ; preds = %18
  %.not20 = icmp eq i64 %.sink, 1
  br i1 %.not20, label %23, label %22

22:                                               ; preds = %21
  store double 0.000000e+00, ptr @chgcon_.end, align 8, !tbaa !12
  br label %.sink.split

23:                                               ; preds = %21
  %24 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !18
  %25 = fdiv double 1.000000e+00, %24
  %26 = fsub double 1.000000e+00, %25
  store double %26, ptr @chgcon_.end, align 8, !tbaa !12
  store double %26, ptr %0, align 8, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  br label %.sink.split

28:                                               ; preds = %18
  %.not21 = icmp eq i64 %.sink, 2
  br i1 %.not21, label %38, label %29

29:                                               ; preds = %28
  %30 = load double, ptr @chgcon_.cmold, align 8, !tbaa !12
  %31 = fsub double %19, %30
  %32 = fcmp ult double %31, 0.000000e+00
  %33 = fneg double %31
  %34 = select i1 %32, double %33, double %31
  %35 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 152), align 8, !tbaa !19
  %36 = fmul double %19, %35
  %37 = fcmp ugt double %34, %36
  br i1 %37, label %38, label %79

38:                                               ; preds = %29, %28
  store double %19, ptr @chgcon_.cmold, align 8, !tbaa !12
  %39 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !18
  %40 = fdiv double 1.000000e+00, %39
  %41 = fsub double 1.000000e+00, %40
  %.idx = shl i64 %.sink, 4
  %42 = getelementptr i8, ptr %0, i64 %.idx
  %43 = getelementptr i8, ptr %42, i64 -16
  store double %41, ptr %43, align 8, !tbaa !12
  %44 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 80), align 8, !tbaa !20
  %45 = fadd double %44, -1.000000e+00
  %46 = load double, ptr %2, align 8, !tbaa !12
  %47 = fmul double %44, %46
  %48 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !18
  %49 = fmul double %47, %48
  %50 = load double, ptr %1, align 8, !tbaa !12
  %51 = fmul double %49, %50
  %52 = fdiv double %45, %51
  %53 = getelementptr i8, ptr %42, i64 -8
  store double %52, ptr %53, align 8, !tbaa !12
  %54 = lshr i64 %.sink, 1
  %55 = add nuw nsw i64 %.sink, 1
  %56 = add nuw nsw i64 %55, %54
  store i64 %56, ptr @chgcon_.ib3, align 8, !tbaa !5
  %.idx24 = shl i64 %56, 4
  %57 = getelementptr inbounds i8, ptr %0, i64 %.idx24
  %58 = tail call double @eigvns_(ptr noundef nonnull @chgcon_.ip, ptr noundef %0, ptr noundef %42, ptr noundef %57, ptr noundef nonnull @chgcon_.ier)
  store double %58, ptr @chgcon_.end, align 8, !tbaa !12
  %59 = load i64, ptr @chgcon_.ier, align 8, !tbaa !5
  %.not25 = icmp eq i64 %59, 0
  br i1 %.not25, label %60, label %80

.sink.split:                                      ; preds = %23, %22
  %chgcon_.cmold.sink = phi ptr [ @chgcon_.cmold, %22 ], [ %27, %23 ]
  store double 0.000000e+00, ptr %chgcon_.cmold.sink, align 8, !tbaa !12
  br label %60

60:                                               ; preds = %.sink.split, %38
  %61 = load i64, ptr %3, align 8, !tbaa !5
  switch i64 %61, label %69 [
    i64 1, label %.thread31
    i64 2, label %63
  ]

.thread31:                                        ; preds = %60
  %62 = load double, ptr @chgcon_.end, align 8, !tbaa !12
  store double %62, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !9
  br label %81

63:                                               ; preds = %60
  %64 = load double, ptr @chgcon_.end, align 8
  %65 = fcmp oge double %64, 0.000000e+00
  %66 = fneg double %64
  %67 = select i1 %65, double %64, double %66
  %68 = tail call double @sqrt(double noundef %67) #2
  store double %68, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !9
  %.pre = load i64, ptr %3, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %60, %63
  %70 = phi i64 [ %61, %60 ], [ %.pre, %63 ]
  %71 = icmp eq i64 %70, 3
  %72 = load i64, ptr @itcom2_, align 8
  %73 = icmp ne i64 %72, 0
  %or.cond = select i1 %71, i1 %73, i1 false
  br i1 %or.cond, label %.thread27, label %75

.thread27:                                        ; preds = %69
  %74 = load double, ptr @chgcon_.end, align 8, !tbaa !12
  store double %74, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 120), align 8, !tbaa !21
  br label %81

75:                                               ; preds = %69
  %76 = icmp ne i64 %70, 3
  %or.cond3 = select i1 %76, i1 true, i1 %73
  br i1 %or.cond3, label %81, label %77

77:                                               ; preds = %75
  %78 = load double, ptr @chgcon_.end, align 8, !tbaa !12
  store double %78, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 112), align 8, !tbaa !22
  br label %81

79:                                               ; preds = %29
  store i64 0, ptr @itcom2_, align 8, !tbaa !15
  store i64 0, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 32), align 8, !tbaa !23
  br label %81

80:                                               ; preds = %38
  store i64 0, ptr @itcom2_, align 8, !tbaa !15
  store i64 0, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 32), align 8, !tbaa !23
  br label %81

81:                                               ; preds = %.thread31, %.thread27, %75, %77, %80, %79
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @eigvns_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 nofree nounwind willreturn memory(write) "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 }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152}
!11 = !{!"double", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!16, !6, i64 0}
!16 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!14, !6, i64 8}
!18 = !{!10, !11, i64 48}
!19 = !{!10, !11, i64 152}
!20 = !{!10, !11, i64 80}
!21 = !{!10, !11, i64 120}
!22 = !{!10, !11, i64 112}
!23 = !{!16, !6, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass