; 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__4 = external hidden global i64, align 8
@itsrcg_.q1 = external hidden global i64, align 8
@itsrcg_.t1 = external hidden global double, align 8
@itsrcg_.t2 = external hidden global double, align 8
@itsrcg_.t3 = external hidden global double, align 8
@itsrcg_.t4 = external hidden global double, align 8
@itsrcg_.con = external hidden global double, align 8
@itsrcg_.dnrm = external hidden global double, align 8
@itsrcg_.gamold = external hidden global double, align 8
@itsrcg_.betnew = external hidden global double, align 8
@itsrcg_.rhoold = 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 @itsrcg_(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, ptr noundef %11, ptr noundef %12) #0 {
  %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
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca double, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #2
  %28 = load i64, ptr @itcom2_, align 8, !tbaa !9
  %29 = icmp ne i64 %28, 0
  br i1 %29, label %33, label %30

30:                                               ; preds = %13
  %31 = load i64, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 4), align 8, !tbaa !12
  %32 = icmp ne i64 %31, 0
  br i1 %32, label %33, label %36

33:                                               ; preds = %30, %13
  %34 = load ptr, ptr %26, align 8, !tbaa !5
  %35 = call i32 @chgcon_(ptr noundef %34, ptr noundef @itsrcg_.gamold, ptr noundef @itsrcg_.rhoold, ptr noundef @c__3)
  br label %36

36:                                               ; preds = %33, %30
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  %39 = load ptr, ptr %25, align 8, !tbaa !5
  %40 = call i32 @itpackdcopy_(ptr noundef %37, ptr noundef %38, ptr noundef @c__1, ptr noundef %39, ptr noundef @c__1)
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %21, align 8, !tbaa !5
  %43 = load ptr, ptr %23, align 8, !tbaa !5
  %44 = call i32 @itpackdcopy_(ptr noundef %41, ptr noundef %42, ptr noundef @c__1, ptr noundef %43, ptr noundef @c__1)
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %23, align 8, !tbaa !5
  %47 = load ptr, ptr %19, align 8, !tbaa !5
  %48 = call i32 @vevpw_(ptr noundef %45, ptr noundef %46, ptr noundef %47)
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = load ptr, ptr %15, align 8, !tbaa !5
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  %52 = load ptr, ptr %17, align 8, !tbaa !5
  %53 = load ptr, ptr %23, align 8, !tbaa !5
  %54 = load ptr, ptr %25, align 8, !tbaa !5
  %55 = call i32 @pbsor_(ptr noundef %49, ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54)
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = load ptr, ptr %23, align 8, !tbaa !5
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = call i32 @vevmw_(ptr noundef %56, ptr noundef %57, ptr noundef %58)
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = load ptr, ptr %23, align 8, !tbaa !5
  %62 = load ptr, ptr %24, align 8, !tbaa !5
  %63 = call i32 @itpackdcopy_(ptr noundef %60, ptr noundef %61, ptr noundef @c__1, ptr noundef %62, ptr noundef @c__1)
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = load ptr, ptr %25, align 8, !tbaa !5
  %66 = call i32 @vfill_(ptr noundef %64, ptr noundef %65, ptr noundef @c_b21)
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = load ptr, ptr %24, align 8, !tbaa !5
  %72 = load ptr, ptr %25, align 8, !tbaa !5
  %73 = call i32 @pfsor_(ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72)
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = load ptr, ptr %23, align 8, !tbaa !5
  %76 = load ptr, ptr %24, align 8, !tbaa !5
  %77 = call i32 @wevmw_(ptr noundef %74, ptr noundef %75, ptr noundef %76)
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = load ptr, ptr %21, align 8, !tbaa !5
  %80 = load ptr, ptr %21, align 8, !tbaa !5
  %81 = call double @itpackddot_(ptr noundef %78, ptr noundef %79, ptr noundef @c__1, ptr noundef %80, ptr noundef @c__1)
  store double %81, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 3), align 8, !tbaa !13
  %82 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 3), align 8, !tbaa !13
  %83 = fcmp une double %82, 0.000000e+00
  br i1 %83, label %84, label %112

84:                                               ; preds = %36
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = load ptr, ptr %21, align 8, !tbaa !5
  %87 = load ptr, ptr %24, align 8, !tbaa !5
  %88 = call double @itpackddot_(ptr noundef %85, ptr noundef %86, ptr noundef @c__1, ptr noundef %87, ptr noundef @c__1)
  store double %88, ptr @itsrcg_.dnrm, align 8, !tbaa !16
  %89 = load double, ptr @itsrcg_.dnrm, align 8, !tbaa !16
  %90 = fcmp une double %89, 0.000000e+00
  br i1 %90, label %91, label %111

91:                                               ; preds = %84
  %92 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @itcom1_, i32 0, i32 2), align 8, !tbaa !17
  %93 = icmp ne i64 %92, 0
  br i1 %93, label %94, label %104

94:                                               ; preds = %91
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = load ptr, ptr %22, align 8, !tbaa !5
  %98 = call double @itpackddot_(ptr noundef %95, ptr noundef %96, ptr noundef @c__1, ptr noundef %97, ptr noundef @c__1)
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  %101 = load ptr, ptr %22, align 8, !tbaa !5
  %102 = call double @itpackddot_(ptr noundef %99, ptr noundef %100, ptr noundef @c__1, ptr noundef %101, ptr noundef @c__1)
  %103 = fsub double %98, %102
  store double %103, ptr @itsrcg_.rhoold, align 8, !tbaa !16
  br label %104

104:                                              ; preds = %94, %91
  %105 = call i32 @parcon_(ptr noundef @itsrcg_.dnrm, ptr noundef @itsrcg_.t1, ptr noundef @itsrcg_.t2, ptr noundef @itsrcg_.t3, ptr noundef @itsrcg_.t4, ptr noundef @itsrcg_.gamold, ptr noundef @itsrcg_.rhoold, ptr noundef @c__3)
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = load ptr, ptr %23, align 8, !tbaa !5
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = load ptr, ptr %20, align 8, !tbaa !5
  %110 = call i32 @sum3_(ptr noundef %106, ptr noundef @itsrcg_.t1, ptr noundef %107, ptr noundef @itsrcg_.t2, ptr noundef %108, ptr noundef @itsrcg_.t3, ptr noundef %109)
  br label %111

111:                                              ; preds = %104, %84
  br label %112

112:                                              ; preds = %111, %36
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load ptr, ptr %23, align 8, !tbaa !5
  %115 = load ptr, ptr %23, align 8, !tbaa !5
  %116 = call double @itpackddot_(ptr noundef %113, ptr noundef %114, ptr noundef @c__1, ptr noundef %115, ptr noundef @c__1)
  store double %116, ptr @itcom3_, align 8, !tbaa !19
  %117 = load double, ptr @itcom3_, align 8, !tbaa !19
  store double %117, ptr @itsrcg_.dnrm, align 8, !tbaa !16
  %118 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 14), align 8, !tbaa !20
  store double %118, ptr @itsrcg_.con, align 8, !tbaa !16
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load ptr, ptr %19, align 8, !tbaa !5
  %121 = call i32 @pstop_(ptr noundef %119, ptr noundef %120, ptr noundef @itsrcg_.dnrm, ptr noundef @itsrcg_.con, ptr noundef @c__1, ptr noundef @itsrcg_.q1)
  %122 = load i64, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 3), align 8, !tbaa !21
  %123 = icmp ne i64 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %112
  br label %233

125:                                              ; preds = %112
  %126 = load i64, ptr @itcom2_, align 8, !tbaa !9
  %127 = icmp ne i64 %126, 0
  br i1 %127, label %136, label %128

128:                                              ; preds = %125
  %129 = load double, ptr @itsrcg_.t1, align 8, !tbaa !16
  %130 = fneg double %129
  store double %130, ptr %27, align 8, !tbaa !16
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load ptr, ptr %24, align 8, !tbaa !5
  %133 = load ptr, ptr %21, align 8, !tbaa !5
  %134 = load ptr, ptr %22, align 8, !tbaa !5
  %135 = call i32 @sum3_(ptr noundef %131, ptr noundef %27, ptr noundef %132, ptr noundef @itsrcg_.t2, ptr noundef %133, ptr noundef @itsrcg_.t3, ptr noundef %134)
  br label %233

136:                                              ; preds = %125
  %137 = call i64 @omgstr_(ptr noundef @c__1)
  %138 = icmp ne i64 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %136
  br label %213

140:                                              ; preds = %136
  %141 = call i64 @omgchg_(ptr noundef @c__1)
  %142 = icmp ne i64 %141, 0
  br i1 %142, label %151, label %143

143:                                              ; preds = %140
  %144 = load double, ptr @itsrcg_.t1, align 8, !tbaa !16
  %145 = fneg double %144
  store double %145, ptr %27, align 8, !tbaa !16
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = load ptr, ptr %24, align 8, !tbaa !5
  %148 = load ptr, ptr %21, align 8, !tbaa !5
  %149 = load ptr, ptr %22, align 8, !tbaa !5
  %150 = call i32 @sum3_(ptr noundef %146, ptr noundef %27, ptr noundef %147, ptr noundef @itsrcg_.t2, ptr noundef %148, ptr noundef @itsrcg_.t3, ptr noundef %149)
  br label %233

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

154:                                              ; preds = %151
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = load ptr, ptr %23, align 8, !tbaa !5
  %160 = load ptr, ptr %25, align 8, !tbaa !5
  %161 = load ptr, ptr %22, align 8, !tbaa !5
  %162 = call double @pbeta_(ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef %159, ptr noundef %160, ptr noundef %161)
  %163 = load double, ptr @itcom3_, align 8, !tbaa !19
  %164 = fdiv double %162, %163
  store double %164, ptr @itsrcg_.betnew, align 8, !tbaa !16
  %165 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !23
  %166 = fcmp oge double %165, 2.500000e-01
  br i1 %166, label %167, label %169

167:                                              ; preds = %154
  %168 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !23
  br label %170

169:                                              ; preds = %154
  br label %170

170:                                              ; preds = %169, %167
  %171 = phi double [ %168, %167 ], [ 2.500000e-01, %169 ]
  %172 = load double, ptr @itsrcg_.betnew, align 8, !tbaa !16
  %173 = fcmp oge double %171, %172
  br i1 %173, label %174, label %182

174:                                              ; preds = %170
  %175 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !23
  %176 = fcmp oge double %175, 2.500000e-01
  br i1 %176, label %177, label %179

177:                                              ; preds = %174
  %178 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !23
  br label %180

179:                                              ; preds = %174
  br label %180

180:                                              ; preds = %179, %177
  %181 = phi double [ %178, %177 ], [ 2.500000e-01, %179 ]
  br label %184

182:                                              ; preds = %170
  %183 = load double, ptr @itsrcg_.betnew, align 8, !tbaa !16
  br label %184

184:                                              ; preds = %182, %180
  %185 = phi double [ %181, %180 ], [ %183, %182 ]
  store double %185, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 1), align 8, !tbaa !23
  br label %186

186:                                              ; preds = %184, %151
  %187 = load i64, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 2), align 8, !tbaa !24
  %188 = icmp ne i64 %187, 0
  br i1 %188, label %196, label %189

189:                                              ; preds = %186
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = load ptr, ptr %15, align 8, !tbaa !5
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = load ptr, ptr %23, align 8, !tbaa !5
  %195 = call double @pvtbv_(ptr noundef %190, ptr noundef %191, ptr noundef %192, ptr noundef %193, ptr noundef %194)
  store double %195, ptr @itsrcg_.dnrm, align 8, !tbaa !16
  br label %211

196:                                              ; preds = %186
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = load ptr, ptr %25, align 8, !tbaa !5
  %199 = call i32 @vfill_(ptr noundef %197, ptr noundef %198, ptr noundef @c_b21)
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = load ptr, ptr %15, align 8, !tbaa !5
  %202 = load ptr, ptr %16, align 8, !tbaa !5
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = load ptr, ptr %23, align 8, !tbaa !5
  %205 = load ptr, ptr %25, align 8, !tbaa !5
  %206 = call i32 @pjac_(ptr noundef %200, ptr noundef %201, ptr noundef %202, ptr noundef %203, ptr noundef %204, ptr noundef %205)
  %207 = load ptr, ptr %14, align 8, !tbaa !5
  %208 = load ptr, ptr %25, align 8, !tbaa !5
  %209 = load ptr, ptr %25, align 8, !tbaa !5
  %210 = call double @itpackddot_(ptr noundef %207, ptr noundef %208, ptr noundef @c__1, ptr noundef %209, ptr noundef @c__1)
  store double %210, ptr @itsrcg_.dnrm, align 8, !tbaa !16
  br label %211

211:                                              ; preds = %196, %189
  %212 = call i32 @omeg_(ptr noundef @itsrcg_.dnrm, ptr noundef @c__3)
  br label %213

213:                                              ; preds = %211, %139
  %214 = load ptr, ptr %14, align 8, !tbaa !5
  %215 = load ptr, ptr %18, align 8, !tbaa !5
  %216 = load ptr, ptr %25, align 8, !tbaa !5
  %217 = call i32 @itpackdcopy_(ptr noundef %214, ptr noundef %215, ptr noundef @c__1, ptr noundef %216, ptr noundef @c__1)
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = load ptr, ptr %20, align 8, !tbaa !5
  %220 = load ptr, ptr %22, align 8, !tbaa !5
  %221 = call i32 @itpackdcopy_(ptr noundef %218, ptr noundef %219, ptr noundef @c__1, ptr noundef %220, ptr noundef @c__1)
  %222 = load ptr, ptr %14, align 8, !tbaa !5
  %223 = load ptr, ptr %15, align 8, !tbaa !5
  %224 = load ptr, ptr %16, align 8, !tbaa !5
  %225 = load ptr, ptr %17, align 8, !tbaa !5
  %226 = load ptr, ptr %22, align 8, !tbaa !5
  %227 = load ptr, ptr %25, align 8, !tbaa !5
  %228 = call i32 @pfsor_(ptr noundef %222, ptr noundef %223, ptr noundef %224, ptr noundef %225, ptr noundef %226, ptr noundef %227)
  %229 = load ptr, ptr %14, align 8, !tbaa !5
  %230 = load ptr, ptr %22, align 8, !tbaa !5
  %231 = load ptr, ptr %20, align 8, !tbaa !5
  %232 = call i32 @vevmw_(ptr noundef %229, ptr noundef %230, ptr noundef %231)
  br label %233

233:                                              ; preds = %213, %143, %128, %124
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = load ptr, ptr %17, align 8, !tbaa !5
  %236 = load ptr, ptr %19, align 8, !tbaa !5
  %237 = load ptr, ptr %25, align 8, !tbaa !5
  %238 = call i32 @iterm_(ptr noundef %234, ptr noundef %235, ptr noundef %236, ptr noundef %237, ptr noundef @c__4)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #2
  ret i32 0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @chgcon_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #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 @parcon_(ptr noundef, ptr noundef, 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 double @pvtbv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @wevmw_(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 i64 @omgchg_(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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 32}
!13 = !{!14, !15, i64 24}
!14 = !{!"", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152}
!15 = !{!"double", !7, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!18, !11, i64 16}
!18 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!19 = !{!14, !15, i64 0}
!20 = !{!14, !15, i64 112}
!21 = !{!10, !11, i64 24}
!22 = !{!10, !11, i64 8}
!23 = !{!14, !15, i64 8}
!24 = !{!10, !11, 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__4 = external hidden global i64, align 8
@itsrcg_.q1 = external hidden global i64, align 8
@itsrcg_.t1 = external hidden global double, align 8
@itsrcg_.t2 = external hidden global double, align 8
@itsrcg_.t3 = external hidden global double, align 8
@itsrcg_.t4 = external hidden global double, align 8
@itsrcg_.con = external hidden global double, align 8
@itsrcg_.dnrm = external hidden global double, align 8
@itsrcg_.gamold = external hidden global double, align 8
@itsrcg_.betnew = external hidden local_unnamed_addr global double, align 8
@itsrcg_.rhoold = external hidden 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 @itsrcg_(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, ptr noundef %11, ptr noundef %12) local_unnamed_addr #0 {
  %14 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #2
  %15 = load i64, ptr @itcom2_, align 8, !tbaa !5
  %16 = icmp ne i64 %15, 0
  %17 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 32), align 8
  %18 = icmp ne i64 %17, 0
  %or.cond = select i1 %16, i1 true, i1 %18
  br i1 %or.cond, label %19, label %21

19:                                               ; preds = %13
  %20 = tail call i32 @chgcon_(ptr noundef %12, ptr noundef nonnull @itsrcg_.gamold, ptr noundef nonnull @itsrcg_.rhoold, ptr noundef nonnull @c__3)
  br label %21

21:                                               ; preds = %13, %19
  %22 = tail call i32 @itpackdcopy_(ptr noundef %0, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %11, ptr noundef nonnull @c__1)
  %23 = tail call i32 @itpackdcopy_(ptr noundef %0, ptr noundef %7, ptr noundef nonnull @c__1, ptr noundef %9, ptr noundef nonnull @c__1)
  %24 = tail call i32 @vevpw_(ptr noundef %0, ptr noundef %9, ptr noundef %5)
  %25 = tail call i32 @pbsor_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %9, ptr noundef %11)
  %26 = tail call i32 @vevmw_(ptr noundef %0, ptr noundef %9, ptr noundef %5)
  %27 = tail call i32 @itpackdcopy_(ptr noundef %0, ptr noundef %9, ptr noundef nonnull @c__1, ptr noundef %10, ptr noundef nonnull @c__1)
  %28 = tail call i32 @vfill_(ptr noundef %0, ptr noundef %11, ptr noundef nonnull @c_b21)
  %29 = tail call i32 @pfsor_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %10, ptr noundef %11)
  %30 = tail call i32 @wevmw_(ptr noundef %0, ptr noundef %9, ptr noundef %10)
  %31 = 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 %31, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 24), align 8, !tbaa !10
  %32 = fcmp une double %31, 0.000000e+00
  br i1 %32, label %33, label %45

33:                                               ; preds = %21
  %34 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %7, ptr noundef nonnull @c__1, ptr noundef %10, ptr noundef nonnull @c__1)
  store double %34, ptr @itsrcg_.dnrm, align 8, !tbaa !13
  %35 = fcmp une double %34, 0.000000e+00
  br i1 %35, label %36, label %45

36:                                               ; preds = %33
  %37 = load i64, ptr getelementptr inbounds (i8, ptr @itcom1_, i64 16), align 8, !tbaa !14
  %.not = icmp eq i64 %37, 0
  br i1 %.not, label %42, label %38

38:                                               ; preds = %36
  %39 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %7, ptr noundef nonnull @c__1, ptr noundef %8, ptr noundef nonnull @c__1)
  %40 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %10, ptr noundef nonnull @c__1, ptr noundef %8, ptr noundef nonnull @c__1)
  %41 = fsub double %39, %40
  store double %41, ptr @itsrcg_.rhoold, align 8, !tbaa !13
  br label %42

42:                                               ; preds = %38, %36
  %43 = tail call i32 @parcon_(ptr noundef nonnull @itsrcg_.dnrm, ptr noundef nonnull @itsrcg_.t1, ptr noundef nonnull @itsrcg_.t2, ptr noundef nonnull @itsrcg_.t3, ptr noundef nonnull @itsrcg_.t4, ptr noundef nonnull @itsrcg_.gamold, ptr noundef nonnull @itsrcg_.rhoold, ptr noundef nonnull @c__3)
  %44 = tail call i32 @sum3_(ptr noundef %0, ptr noundef nonnull @itsrcg_.t1, ptr noundef %9, ptr noundef nonnull @itsrcg_.t2, ptr noundef %5, ptr noundef nonnull @itsrcg_.t3, ptr noundef %6)
  br label %45

45:                                               ; preds = %33, %42, %21
  %46 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %9, ptr noundef nonnull @c__1, ptr noundef %9, ptr noundef nonnull @c__1)
  store double %46, ptr @itcom3_, align 8, !tbaa !16
  store double %46, ptr @itsrcg_.dnrm, align 8, !tbaa !13
  %47 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 112), align 8, !tbaa !17
  store double %47, ptr @itsrcg_.con, align 8, !tbaa !13
  %48 = tail call i32 @pstop_(ptr noundef %0, ptr noundef %5, ptr noundef nonnull @itsrcg_.dnrm, ptr noundef nonnull @itsrcg_.con, ptr noundef nonnull @c__1, ptr noundef nonnull @itsrcg_.q1)
  %49 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 24), align 8, !tbaa !18
  %.not106 = icmp eq i64 %49, 0
  br i1 %.not106, label %50, label %88

50:                                               ; preds = %45
  %51 = load i64, ptr @itcom2_, align 8, !tbaa !5
  %.not107 = icmp eq i64 %51, 0
  br i1 %.not107, label %52, label %56

52:                                               ; preds = %50
  %53 = load double, ptr @itsrcg_.t1, align 8, !tbaa !13
  %54 = fneg double %53
  store double %54, ptr %14, align 8, !tbaa !13
  %55 = call i32 @sum3_(ptr noundef %0, ptr noundef nonnull %14, ptr noundef %10, ptr noundef nonnull @itsrcg_.t2, ptr noundef %7, ptr noundef nonnull @itsrcg_.t3, ptr noundef %8)
  br label %88

56:                                               ; preds = %50
  %57 = tail call i64 @omgstr_(ptr noundef nonnull @c__1)
  %.not108 = icmp eq i64 %57, 0
  br i1 %.not108, label %58, label %83

58:                                               ; preds = %56
  %59 = tail call i64 @omgchg_(ptr noundef nonnull @c__1)
  %.not109 = icmp eq i64 %59, 0
  br i1 %.not109, label %60, label %64

60:                                               ; preds = %58
  %61 = load double, ptr @itsrcg_.t1, align 8, !tbaa !13
  %62 = fneg double %61
  store double %62, ptr %14, align 8, !tbaa !13
  %63 = call i32 @sum3_(ptr noundef %0, ptr noundef nonnull %14, ptr noundef %10, ptr noundef nonnull @itsrcg_.t2, ptr noundef %7, ptr noundef nonnull @itsrcg_.t3, ptr noundef %8)
  br label %88

64:                                               ; preds = %58
  %65 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 8), align 8, !tbaa !19
  %.not110 = icmp eq i64 %65, 0
  br i1 %.not110, label %73, label %66

66:                                               ; preds = %64
  %67 = tail call double @pbeta_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %9, ptr noundef %11, ptr noundef %8)
  %68 = load double, ptr @itcom3_, align 8, !tbaa !16
  %69 = fdiv double %67, %68
  store double %69, ptr @itsrcg_.betnew, align 8, !tbaa !13
  %70 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 8), align 8
  %71 = fcmp oge double %70, 2.500000e-01
  %72 = select i1 %71, double %70, double 2.500000e-01
  %.inv = fcmp oge double %72, %69
  %. = select i1 %.inv, double %72, double %69
  store double %., ptr getelementptr inbounds (i8, ptr @itcom3_, i64 8), align 8, !tbaa !20
  br label %73

73:                                               ; preds = %66, %64
  %74 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 16), align 8, !tbaa !21
  %.not111 = icmp eq i64 %74, 0
  br i1 %.not111, label %75, label %77

75:                                               ; preds = %73
  %76 = tail call double @pvtbv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %9)
  br label %81

77:                                               ; preds = %73
  %78 = tail call i32 @vfill_(ptr noundef %0, ptr noundef %11, ptr noundef nonnull @c_b21)
  %79 = tail call i32 @pjac_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %9, ptr noundef %11)
  %80 = tail call double @itpackddot_(ptr noundef %0, ptr noundef %11, ptr noundef nonnull @c__1, ptr noundef %11, ptr noundef nonnull @c__1)
  br label %81

81:                                               ; preds = %77, %75
  %storemerge = phi double [ %76, %75 ], [ %80, %77 ]
  store double %storemerge, ptr @itsrcg_.dnrm, align 8, !tbaa !13
  %82 = tail call i32 @omeg_(ptr noundef nonnull @itsrcg_.dnrm, ptr noundef nonnull @c__3)
  br label %83

83:                                               ; preds = %56, %81
  %84 = tail call i32 @itpackdcopy_(ptr noundef %0, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %11, ptr noundef nonnull @c__1)
  %85 = tail call i32 @itpackdcopy_(ptr noundef %0, ptr noundef %6, ptr noundef nonnull @c__1, ptr noundef %8, ptr noundef nonnull @c__1)
  %86 = tail call i32 @pfsor_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %8, ptr noundef %11)
  %87 = tail call i32 @vevmw_(ptr noundef %0, ptr noundef %8, ptr noundef %6)
  br label %88

88:                                               ; preds = %45, %83, %60, %52
  %89 = call i32 @iterm_(ptr noundef %0, ptr noundef %3, ptr noundef %5, ptr noundef %11, ptr noundef nonnull @c__4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #2
  ret i32 0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @chgcon_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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 @parcon_(ptr noundef, 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 @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 double @pvtbv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; 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 i32 @pbsor_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @wevmw_(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 i64 @omgchg_(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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 24}
!11 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152}
!12 = !{!"double", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !7, i64 16}
!15 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!16 = !{!11, !12, i64 0}
!17 = !{!11, !12, i64 112}
!18 = !{!6, !7, i64 24}
!19 = !{!6, !7, i64 8}
!20 = !{!11, !12, i64 8}
!21 = !{!6, !7, i64 16}


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