; 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
@c__1 = external hidden global i64, align 8
@itcom3_ = external hidden global %struct.anon.0, align 8
@c_b21 = external hidden global double, align 8
@itcom2_ = external hidden global %struct.anon.1, align 8
@c__3 = external hidden global i64, align 8
@c__5 = external hidden global i64, align 8
@itsrsi_.c1 = external hidden global double, align 8
@itsrsi_.c2 = external hidden global double, align 8
@itsrsi_.c3 = external hidden global double, align 8
@itsrsi_.q1 = external hidden global i64, align 8
@itsrsi_.con = external hidden global double, align 8
@itsrsi_.dnrm = external hidden global double, align 8
@itsrsi_.betnew = external hidden global double, align 8

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @itsrsi_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %16, align 8, !tbaa !5
  %25 = load ptr, ptr %22, align 8, !tbaa !5
  %26 = call i32 @itpackdcopy_(ptr noundef %23, ptr noundef %24, ptr noundef @c__1, ptr noundef %25, ptr noundef @c__1)
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = load ptr, ptr %17, align 8, !tbaa !5
  %29 = load ptr, ptr %21, align 8, !tbaa !5
  %30 = call i32 @itpackdcopy_(ptr noundef %27, ptr noundef %28, ptr noundef @c__1, ptr noundef %29, ptr noundef @c__1)
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = load ptr, ptr %21, align 8, !tbaa !5
  %36 = load ptr, ptr %22, align 8, !tbaa !5
  %37 = load ptr, ptr %19, align 8, !tbaa !5
  %38 = load ptr, ptr %20, align 8, !tbaa !5
  %39 = call i32 @pssor1_(ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38)
  %40 = call i32 @parsi_(ptr noundef @itsrsi_.c1, ptr noundef @itsrsi_.c2, ptr noundef @itsrsi_.c3, ptr noundef @c__3)
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr %20, align 8, !tbaa !5
  %43 = load ptr, ptr %17, align 8, !tbaa !5
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  %45 = call i32 @sum3_(ptr noundef %41, ptr noundef @itsrsi_.c1, ptr noundef %42, ptr noundef @itsrsi_.c2, ptr noundef %43, ptr noundef @itsrsi_.c3, ptr noundef %44)
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = load ptr, ptr %20, align 8, !tbaa !5
  %48 = load ptr, ptr %20, align 8, !tbaa !5
  %49 = call double @itpackddot_(ptr noundef %46, ptr noundef %47, ptr noundef @c__1, ptr noundef %48, ptr noundef @c__1)
  store double %49, ptr @itcom3_, align 8, !tbaa !9
  %50 = load double, ptr @itcom3_, align 8, !tbaa !9
  store double %50, ptr @itsrsi_.dnrm, align 8, !tbaa !12
  %51 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 14), align 8, !tbaa !13
  store double %51, ptr @itsrsi_.con, align 8, !tbaa !12
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = load ptr, ptr %17, align 8, !tbaa !5
  %54 = call i32 @pstop_(ptr noundef %52, ptr noundef %53, ptr noundef @itsrsi_.dnrm, ptr noundef @itsrsi_.con, ptr noundef @c__1, ptr noundef @itsrsi_.q1)
  %55 = load i64, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 3), align 8, !tbaa !14
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %63, label %57

57:                                               ; preds = %11
  %58 = load i64, ptr @itcom2_, align 8, !tbaa !17
  %59 = icmp ne i64 %58, 0
  br i1 %59, label %64, label %60

60:                                               ; preds = %57
  %61 = load i64, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 4), align 8, !tbaa !18
  %62 = icmp ne i64 %61, 0
  br i1 %62, label %64, label %63

63:                                               ; preds = %60, %11
  br label %178

64:                                               ; preds = %60, %57
  %65 = call i64 @omgstr_(ptr noundef @c__1)
  %66 = icmp ne i64 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %64
  br label %178

68:                                               ; preds = %64
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load ptr, ptr %19, align 8, !tbaa !5
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = call double @itpackddot_(ptr noundef %69, ptr noundef %70, ptr noundef @c__1, ptr noundef %71, ptr noundef @c__1)
  store double %72, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 3), align 8, !tbaa !19
  %73 = load i64, ptr @itcom1_, align 8, !tbaa !20
  %74 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @itcom1_, i32 0, i32 1), align 8, !tbaa !22
  %75 = icmp eq i64 %73, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %68
  %77 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 3), align 8, !tbaa !19
  store double %77, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 4), align 8, !tbaa !23
  br label %78

78:                                               ; preds = %76, %68
  %79 = load i64, ptr @itcom1_, align 8, !tbaa !20
  %80 = icmp eq i64 %79, 0
  br i1 %80, label %84, label %81

81:                                               ; preds = %78
  %82 = call i64 @tstchg_(ptr noundef @c__1)
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %85, label %84

84:                                               ; preds = %81, %78
  br label %178

85:                                               ; preds = %81
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = load ptr, ptr %21, align 8, !tbaa !5
  %89 = call i32 @itpackdcopy_(ptr noundef %86, ptr noundef %87, ptr noundef @c__1, ptr noundef %88, ptr noundef @c__1)
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = load ptr, ptr %22, align 8, !tbaa !5
  %92 = call i32 @vfill_(ptr noundef %90, ptr noundef %91, ptr noundef @c_b21)
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load ptr, ptr %21, align 8, !tbaa !5
  %98 = load ptr, ptr %22, align 8, !tbaa !5
  %99 = call i32 @pfsor_(ptr noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef %98)
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = call i32 @vevpw_(ptr noundef %100, ptr noundef %101, ptr noundef %102)
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = call i32 @vevmw_(ptr noundef %104, ptr noundef %105, ptr noundef %106)
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = load ptr, ptr %19, align 8, !tbaa !5
  %110 = load ptr, ptr %21, align 8, !tbaa !5
  %111 = call double @itpackddot_(ptr noundef %108, ptr noundef %109, ptr noundef @c__1, ptr noundef %110, ptr noundef @c__1)
  store double %111, ptr @itsrsi_.dnrm, align 8, !tbaa !12
  %112 = call i32 @chgsi_(ptr noundef @itsrsi_.dnrm, ptr noundef @c__3)
  %113 = load i64, ptr @itcom2_, align 8, !tbaa !17
  %114 = icmp ne i64 %113, 0
  br i1 %114, label %116, label %115

115:                                              ; preds = %85
  br label %178

116:                                              ; preds = %85
  %117 = load i64, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 1), align 8, !tbaa !24
  %118 = icmp ne i64 %117, 0
  br i1 %118, label %119, label %151

119:                                              ; preds = %116
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = load ptr, ptr %20, align 8, !tbaa !5
  %125 = load ptr, ptr %22, align 8, !tbaa !5
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  %127 = call double @pbeta_(ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126)
  %128 = load double, ptr @itcom3_, align 8, !tbaa !9
  %129 = fdiv double %127, %128
  store double %129, ptr @itsrsi_.betnew, align 8, !tbaa !12
  %130 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !25
  %131 = fcmp oge double %130, 2.500000e-01
  br i1 %131, label %132, label %134

132:                                              ; preds = %119
  %133 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !25
  br label %135

134:                                              ; preds = %119
  br label %135

135:                                              ; preds = %134, %132
  %136 = phi double [ %133, %132 ], [ 2.500000e-01, %134 ]
  %137 = load double, ptr @itsrsi_.betnew, align 8, !tbaa !12
  %138 = fcmp oge double %136, %137
  br i1 %138, label %139, label %147

139:                                              ; preds = %135
  %140 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !25
  %141 = fcmp oge double %140, 2.500000e-01
  br i1 %141, label %142, label %144

142:                                              ; preds = %139
  %143 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !25
  br label %145

144:                                              ; preds = %139
  br label %145

145:                                              ; preds = %144, %142
  %146 = phi double [ %143, %142 ], [ 2.500000e-01, %144 ]
  br label %149

147:                                              ; preds = %135
  %148 = load double, ptr @itsrsi_.betnew, align 8, !tbaa !12
  br label %149

149:                                              ; preds = %147, %145
  %150 = phi double [ %146, %145 ], [ %148, %147 ]
  store double %150, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !25
  br label %151

151:                                              ; preds = %149, %116
  %152 = load i64, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 2), align 8, !tbaa !26
  %153 = icmp ne i64 %152, 0
  br i1 %153, label %161, label %154

154:                                              ; preds = %151
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  %160 = call double @pvtbv_(ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef %159)
  store double %160, ptr @itsrsi_.dnrm, align 8, !tbaa !12
  br label %176

161:                                              ; preds = %151
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = load ptr, ptr %22, align 8, !tbaa !5
  %164 = call i32 @vfill_(ptr noundef %162, ptr noundef %163, ptr noundef @c_b21)
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = load ptr, ptr %20, align 8, !tbaa !5
  %170 = load ptr, ptr %22, align 8, !tbaa !5
  %171 = call i32 @pjac_(ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %169, ptr noundef %170)
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = load ptr, ptr %22, align 8, !tbaa !5
  %174 = load ptr, ptr %22, align 8, !tbaa !5
  %175 = call double @itpackddot_(ptr noundef %172, ptr noundef %173, ptr noundef @c__1, ptr noundef %174, ptr noundef @c__1)
  store double %175, ptr @itsrsi_.dnrm, align 8, !tbaa !12
  br label %176

176:                                              ; preds = %161, %154
  %177 = call i32 @omeg_(ptr noundef @itsrsi_.dnrm, ptr noundef @c__3)
  br label %178

178:                                              ; preds = %176, %115, %84, %67, %63
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = load ptr, ptr %15, align 8, !tbaa !5
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = load ptr, ptr %22, align 8, !tbaa !5
  %183 = call i32 @iterm_(ptr noundef %179, ptr noundef %180, ptr noundef %181, ptr noundef %182, ptr noundef @c__5)
  ret i32 0
}

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @tstchg_(ptr noundef) #0

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @omgstr_(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @pssor1_(ptr noundef, ptr noundef, ptr noundef, 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" }

!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, !11, i64 0}
!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 = !{!10, !11, i64 112}
!14 = !{!15, !16, i64 24}
!15 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!15, !16, i64 0}
!18 = !{!15, !16, i64 32}
!19 = !{!10, !11, i64 24}
!20 = !{!21, !16, i64 0}
!21 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40}
!22 = !{!21, !16, i64 8}
!23 = !{!10, !11, i64 32}
!24 = !{!15, !16, i64 8}
!25 = !{!10, !11, i64 8}
!26 = !{!15, !16, i64 16}


; 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
@c__1 = external hidden global i64, align 8
@itcom3_ = external hidden local_unnamed_addr global %struct.anon.0, align 8
@c_b21 = external hidden global double, align 8
@itcom2_ = external hidden local_unnamed_addr global %struct.anon.1, align 8
@c__3 = external hidden global i64, align 8
@c__5 = external hidden global i64, align 8
@itsrsi_.c1 = external hidden global double, align 8
@itsrsi_.c2 = external hidden global double, align 8
@itsrsi_.c3 = external hidden global double, align 8
@itsrsi_.q1 = external hidden global i64, align 8
@itsrsi_.con = external hidden global double, align 8
@itsrsi_.dnrm = external hidden global double, align 8
@itsrsi_.betnew = external hidden local_unnamed_addr global double, align 8

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @itsrsi_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = tail call i32 @itpackdcopy_(ptr noundef %0, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %10, ptr noundef nonnull @c__1)
  %13 = tail call i32 @itpackdcopy_(ptr noundef %0, ptr noundef %5, ptr noundef nonnull @c__1, ptr noundef %9, ptr noundef nonnull @c__1)
  %14 = tail call i32 @pssor1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %9, ptr noundef %10, ptr noundef %7, ptr noundef %8)
  %15 = tail call i32 @parsi_(ptr noundef nonnull @itsrsi_.c1, ptr noundef nonnull @itsrsi_.c2, ptr noundef nonnull @itsrsi_.c3, ptr noundef nonnull @c__3)
  %16 = tail call i32 @sum3_(ptr noundef %0, ptr noundef nonnull @itsrsi_.c1, ptr noundef %8, ptr noundef nonnull @itsrsi_.c2, ptr noundef %5, ptr noundef nonnull @itsrsi_.c3, ptr noundef %6)
  %17 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %8, ptr noundef nonnull @c__1, ptr noundef %8, ptr noundef nonnull @c__1)
  store double %17, ptr @itcom3_, align 8, !tbaa !5
  store double %17, ptr @itsrsi_.dnrm, align 8, !tbaa !10
  %18 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 112), align 8, !tbaa !11
  store double %18, ptr @itsrsi_.con, align 8, !tbaa !10
  %19 = tail call i32 @pstop_(ptr noundef %0, ptr noundef %5, ptr noundef nonnull @itsrsi_.dnrm, ptr noundef nonnull @itsrsi_.con, ptr noundef nonnull @c__1, ptr noundef nonnull @itsrsi_.q1)
  %20 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 24), align 8, !tbaa !12
  %.not = icmp eq i64 %20, 0
  br i1 %.not, label %21, label %66

21:                                               ; preds = %11
  %22 = load i64, ptr @itcom2_, align 8, !tbaa !15
  %23 = icmp ne i64 %22, 0
  %24 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 32), align 8
  %25 = icmp ne i64 %24, 0
  %or.cond = select i1 %23, i1 true, i1 %25
  br i1 %or.cond, label %26, label %66

26:                                               ; preds = %21
  %27 = tail call i64 @omgstr_(ptr noundef nonnull @c__1)
  %.not75 = icmp eq i64 %27, 0
  br i1 %.not75, label %28, label %66

28:                                               ; preds = %26
  %29 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %7, ptr noundef nonnull @c__1, ptr noundef %7, ptr noundef nonnull @c__1)
  store double %29, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 24), align 8, !tbaa !16
  %30 = load i64, ptr @itcom1_, align 8, !tbaa !17
  %31 = load i64, ptr getelementptr inbounds (i8, ptr @itcom1_, i64 8), align 8, !tbaa !19
  %32 = icmp eq i64 %30, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  store double %29, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 32), align 8, !tbaa !20
  br label %34

34:                                               ; preds = %33, %28
  %35 = icmp eq i64 %30, 0
  br i1 %35, label %66, label %36

36:                                               ; preds = %34
  %37 = tail call i64 @tstchg_(ptr noundef nonnull @c__1)
  %.not76 = icmp eq i64 %37, 0
  br i1 %.not76, label %66, label %38

38:                                               ; preds = %36
  %39 = tail call i32 @itpackdcopy_(ptr noundef %0, ptr noundef %8, ptr noundef nonnull @c__1, ptr noundef %9, ptr noundef nonnull @c__1)
  %40 = tail call i32 @vfill_(ptr noundef %0, ptr noundef %10, ptr noundef nonnull @c_b21)
  %41 = tail call i32 @pfsor_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %9, ptr noundef %10)
  %42 = tail call i32 @vevpw_(ptr noundef %0, ptr noundef %9, ptr noundef %7)
  %43 = tail call i32 @vevmw_(ptr noundef %0, ptr noundef %9, ptr noundef %8)
  %44 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %7, ptr noundef nonnull @c__1, ptr noundef %9, ptr noundef nonnull @c__1)
  store double %44, ptr @itsrsi_.dnrm, align 8, !tbaa !10
  %45 = tail call i32 @chgsi_(ptr noundef nonnull @itsrsi_.dnrm, ptr noundef nonnull @c__3)
  %46 = load i64, ptr @itcom2_, align 8, !tbaa !15
  %.not77 = icmp eq i64 %46, 0
  br i1 %.not77, label %66, label %47

47:                                               ; preds = %38
  %48 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 8), align 8, !tbaa !21
  %.not78 = icmp eq i64 %48, 0
  br i1 %.not78, label %56, label %49

49:                                               ; preds = %47
  %50 = tail call double @pbeta_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %8, ptr noundef %10, ptr noundef %9)
  %51 = load double, ptr @itcom3_, align 8, !tbaa !5
  %52 = fdiv double %50, %51
  store double %52, ptr @itsrsi_.betnew, align 8, !tbaa !10
  %53 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 8), align 8
  %54 = fcmp oge double %53, 2.500000e-01
  %55 = select i1 %54, double %53, double 2.500000e-01
  %.inv = fcmp oge double %55, %52
  %. = select i1 %.inv, double %55, double %52
  store double %., ptr getelementptr inbounds (i8, ptr @itcom3_, i64 8), align 8, !tbaa !22
  br label %56

56:                                               ; preds = %49, %47
  %57 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 16), align 8, !tbaa !23
  %.not79 = icmp eq i64 %57, 0
  br i1 %.not79, label %58, label %60

58:                                               ; preds = %56
  %59 = tail call double @pvtbv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %8)
  br label %64

60:                                               ; preds = %56
  %61 = tail call i32 @vfill_(ptr noundef %0, ptr noundef %10, ptr noundef nonnull @c_b21)
  %62 = tail call i32 @pjac_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %8, ptr noundef %10)
  %63 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %10, ptr noundef nonnull @c__1, ptr noundef %10, ptr noundef nonnull @c__1)
  br label %64

64:                                               ; preds = %60, %58
  %storemerge = phi double [ %59, %58 ], [ %63, %60 ]
  store double %storemerge, ptr @itsrsi_.dnrm, align 8, !tbaa !10
  %65 = tail call i32 @omeg_(ptr noundef nonnull @itsrsi_.dnrm, ptr noundef nonnull @c__3)
  br label %66

66:                                               ; preds = %38, %34, %36, %26, %11, %21, %64
  %67 = tail call i32 @iterm_(ptr noundef %0, ptr noundef %3, ptr noundef %5, ptr noundef %10, ptr noundef nonnull @c__5)
  ret i32 0
}

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @tstchg_(ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @omgstr_(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @pssor1_(ptr noundef, ptr noundef, ptr noundef, 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" }

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass