; LLVM IR from simbody/simbody :: SimTKmath/Integrators/src/CPodes/sundials/src/cpodes (cpodes_ic)

; 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.CPodeMemRec = type { double, i32, ptr, ptr, ptr, i32, i32, i32, double, double, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, [14 x double], [6 x double], [13 x double], [13 x double], double, double, double, double, double, double, double, i32, i32, i32, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, i64, i64, double, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i32, i32, double, double, ptr, [13 x ptr], ptr, ptr, ptr, ptr, double, i64, i64, i32, i32, i32, i64, i64, i32, i32, double, i32, i64, i32, i32, i32, i32, double, double, double, i64, i64, i64, i64, i64, i64, i32, double, double, double, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, double, double, double, i32, double, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, [6 x [4 x double]], i32, i64, i32, ptr, i32, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr, double, i32, i32, i64, double, double, i32, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [70 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @CPodeCalcIC(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %1
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef null, i32 noundef -21, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
  store i32 -21, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %148

10:                                               ; preds = %1
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %11, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.CPodeMemRec, ptr %12, i32 0, i32 147
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %10
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %17, i32 noundef -23, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.3)
  store i32 -23, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %148

18:                                               ; preds = %10
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.CPodeMemRec, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !14
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %30

23:                                               ; preds = %18
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.CPodeMemRec, ptr %24, i32 0, i32 46
  %26 = load i32, ptr %25, align 8, !tbaa !15
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %30, label %28

28:                                               ; preds = %23
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %29, i32 noundef 99, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.4)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %148

30:                                               ; preds = %23, %18
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = call i32 @cpicInitialSetup(ptr noundef %31)
  store i32 %32, ptr %5, align 4, !tbaa !16
  %33 = load i32, ptr %5, align 4, !tbaa !16
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %30
  %36 = load i32, ptr %5, align 4, !tbaa !16
  store i32 %36, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %148

37:                                               ; preds = %30
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.CPodeMemRec, ptr %38, i32 0, i32 56
  %40 = load double, ptr %39, align 8, !tbaa !17
  %41 = fmul double 1.000000e-01, %40
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.CPodeMemRec, ptr %42, i32 0, i32 175
  store double %41, ptr %43, align 8, !tbaa !18
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.CPodeMemRec, ptr %44, i32 0, i32 0
  %46 = load double, ptr %45, align 8, !tbaa !19
  %47 = call double @RPowerR(double noundef %46, double noundef 5.000000e-01)
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.CPodeMemRec, ptr %48, i32 0, i32 176
  store double %47, ptr %49, align 8, !tbaa !20
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.CPodeMemRec, ptr %50, i32 0, i32 177
  store i32 5, ptr %51, align 8, !tbaa !21
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.CPodeMemRec, ptr %52, i32 0, i32 178
  store i32 10, ptr %53, align 4, !tbaa !22
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.CPodeMemRec, ptr %54, i32 0, i32 18
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = call ptr @N_VClone(ptr noundef %56)
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.CPodeMemRec, ptr %58, i32 0, i32 179
  store ptr %57, ptr %59, align 8, !tbaa !24
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.CPodeMemRec, ptr %60, i32 0, i32 13
  %62 = getelementptr inbounds [13 x ptr], ptr %61, i64 0, i64 0
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.CPodeMemRec, ptr %64, i32 0, i32 179
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %63, ptr noundef %66)
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.CPodeMemRec, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !14
  %70 = icmp eq i32 %69, 2
  br i1 %70, label %71, label %85

71:                                               ; preds = %37
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.CPodeMemRec, ptr %72, i32 0, i32 18
  %74 = load ptr, ptr %73, align 8, !tbaa !23
  %75 = call ptr @N_VClone(ptr noundef %74)
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.CPodeMemRec, ptr %76, i32 0, i32 180
  store ptr %75, ptr %77, align 8, !tbaa !25
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.CPodeMemRec, ptr %78, i32 0, i32 13
  %80 = getelementptr inbounds [13 x ptr], ptr %79, i64 0, i64 1
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.CPodeMemRec, ptr %82, i32 0, i32 179
  %84 = load ptr, ptr %83, align 8, !tbaa !24
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %81, ptr noundef %84)
  br label %85

85:                                               ; preds = %71, %37
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.CPodeMemRec, ptr %86, i32 0, i32 46
  %88 = load i32, ptr %87, align 8, !tbaa !15
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %93

90:                                               ; preds = %85
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = call i32 @cpicDoProjection(ptr noundef %91)
  store i32 %92, ptr %5, align 4, !tbaa !16
  br label %93

93:                                               ; preds = %90, %85
  %94 = load i32, ptr %5, align 4, !tbaa !16
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %104

96:                                               ; preds = %93
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.CPodeMemRec, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !14
  %100 = icmp eq i32 %99, 2
  br i1 %100, label %101, label %104

101:                                              ; preds = %96
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = call i32 @cpicImplComputeYp(ptr noundef %102)
  store i32 %103, ptr %5, align 4, !tbaa !16
  br label %104

104:                                              ; preds = %101, %96, %93
  %105 = load i32, ptr %5, align 4, !tbaa !16
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %128

107:                                              ; preds = %104
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.CPodeMemRec, ptr %108, i32 0, i32 179
  %110 = load ptr, ptr %109, align 8, !tbaa !24
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.CPodeMemRec, ptr %111, i32 0, i32 13
  %113 = getelementptr inbounds [13 x ptr], ptr %112, i64 0, i64 0
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %110, ptr noundef %114)
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.CPodeMemRec, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !14
  %118 = icmp eq i32 %117, 2
  br i1 %118, label %119, label %127

119:                                              ; preds = %107
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.CPodeMemRec, ptr %120, i32 0, i32 180
  %122 = load ptr, ptr %121, align 8, !tbaa !25
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.CPodeMemRec, ptr %123, i32 0, i32 13
  %125 = getelementptr inbounds [13 x ptr], ptr %124, i64 0, i64 1
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %122, ptr noundef %126)
  br label %127

127:                                              ; preds = %119, %107
  br label %128

128:                                              ; preds = %127, %104
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.CPodeMemRec, ptr %129, i32 0, i32 179
  %131 = load ptr, ptr %130, align 8, !tbaa !24
  call void @N_VDestroy(ptr noundef %131)
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.CPodeMemRec, ptr %132, i32 0, i32 1
  %134 = load i32, ptr %133, align 8, !tbaa !14
  %135 = icmp eq i32 %134, 2
  br i1 %135, label %136, label %140

136:                                              ; preds = %128
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.CPodeMemRec, ptr %137, i32 0, i32 180
  %139 = load ptr, ptr %138, align 8, !tbaa !25
  call void @N_VDestroy(ptr noundef %139)
  br label %140

140:                                              ; preds = %136, %128
  %141 = load i32, ptr %5, align 4, !tbaa !16
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %147

143:                                              ; preds = %140
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = load i32, ptr %5, align 4, !tbaa !16
  call void @cpicFailFlag(ptr noundef %144, i32 noundef %145)
  %146 = load i32, ptr %5, align 4, !tbaa !16
  store i32 %146, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %148

147:                                              ; preds = %140
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %148

148:                                              ; preds = %147, %143, %35, %28, %16, %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %149 = load i32, ptr %2, align 4
  ret i32 %149
}

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

declare void @cpProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @cpicInitialSetup(ptr noundef) #0

declare double @RPowerR(double noundef, double noundef) #2

declare ptr @N_VClone(ptr noundef) #2

declare void @N_VScale(double noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @cpicDoProjection(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @cpicImplComputeYp(ptr noundef) #0

declare void @N_VDestroy(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @cpicFailFlag(ptr noundef, i32 noundef) #0

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !12, i64 1584}
!10 = !{!"CPodeMemRec", !11, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !7, i64 96, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !7, i64 336, !7, i64 448, !7, i64 496, !7, i64 600, !11, i64 704, !11, i64 712, !11, i64 720, !11, i64 728, !11, i64 736, !11, i64 744, !11, i64 752, !12, i64 760, !12, i64 764, !12, i64 768, !12, i64 772, !13, i64 776, !13, i64 784, !12, i64 792, !12, i64 796, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !11, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !13, i64 864, !13, i64 872, !11, i64 880, !12, i64 888, !12, i64 892, !12, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !12, i64 936, !13, i64 944, !13, i64 952, !13, i64 960, !13, i64 968, !12, i64 976, !12, i64 980, !6, i64 984, !6, i64 992, !12, i64 1000, !12, i64 1004, !11, i64 1008, !11, i64 1016, !6, i64 1024, !7, i64 1032, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !11, i64 1168, !13, i64 1176, !13, i64 1184, !12, i64 1192, !12, i64 1196, !12, i64 1200, !13, i64 1208, !13, i64 1216, !12, i64 1224, !12, i64 1228, !11, i64 1232, !12, i64 1240, !13, i64 1248, !12, i64 1256, !12, i64 1260, !12, i64 1264, !12, i64 1268, !11, i64 1272, !11, i64 1280, !11, i64 1288, !13, i64 1296, !13, i64 1304, !13, i64 1312, !13, i64 1320, !13, i64 1328, !13, i64 1336, !12, i64 1344, !11, i64 1352, !11, i64 1360, !11, i64 1368, !13, i64 1376, !13, i64 1384, !13, i64 1392, !13, i64 1400, !13, i64 1408, !13, i64 1416, !6, i64 1424, !6, i64 1432, !6, i64 1440, !6, i64 1448, !6, i64 1456, !12, i64 1464, !6, i64 1472, !6, i64 1480, !6, i64 1488, !6, i64 1496, !6, i64 1504, !6, i64 1512, !12, i64 1520, !12, i64 1524, !13, i64 1528, !11, i64 1536, !11, i64 1544, !11, i64 1552, !12, i64 1560, !11, i64 1568, !12, i64 1576, !12, i64 1580, !12, i64 1584, !12, i64 1588, !12, i64 1592, !12, i64 1596, !6, i64 1600, !6, i64 1608, !6, i64 1616, !12, i64 1624, !7, i64 1632, !12, i64 1824, !13, i64 1832, !12, i64 1840, !6, i64 1848, !12, i64 1856, !6, i64 1864, !6, i64 1872, !6, i64 1880, !6, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912, !6, i64 1920, !6, i64 1928, !6, i64 1936, !11, i64 1944, !12, i64 1952, !12, i64 1956, !13, i64 1960, !11, i64 1968, !11, i64 1976, !12, i64 1984, !12, i64 1988, !6, i64 1992, !6, i64 2000}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !12, i64 8}
!15 = !{!10, !12, i64 768}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !11, i64 832}
!18 = !{!10, !11, i64 1968}
!19 = !{!10, !11, i64 0}
!20 = !{!10, !11, i64 1976}
!21 = !{!10, !12, i64 1984}
!22 = !{!10, !12, i64 1988}
!23 = !{!10, !6, i64 232}
!24 = !{!10, !6, i64 1992}
!25 = !{!10, !6, i64 2000}


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

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [70 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @CPodeCalcIC(ptr noundef %0) local_unnamed_addr #0 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %3, label %4

3:                                                ; preds = %1
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef null, i32 noundef -21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #2
  br label %73

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 1584
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %9

8:                                                ; preds = %4
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -23, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #2
  br label %73

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load i32, ptr %10, align 8, !tbaa !13
  %12 = icmp eq i32 %11, 1
  br i1 %12, label %13, label %17

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 768
  %15 = load i32, ptr %14, align 8, !tbaa !14
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %16, label %17

16:                                               ; preds = %13
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef 99, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #2
  br label %73

17:                                               ; preds = %13, %9
  %18 = tail call i32 @cpicInitialSetup(ptr noundef nonnull %0)
  %.not47 = icmp eq i32 %18, 0
  br i1 %.not47, label %19, label %73

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 832
  %21 = load double, ptr %20, align 8, !tbaa !15
  %22 = fmul double %21, 1.000000e-01
  %23 = getelementptr inbounds i8, ptr %0, i64 1968
  store double %22, ptr %23, align 8, !tbaa !16
  %24 = load double, ptr %0, align 8, !tbaa !17
  %25 = tail call double @RPowerR(double noundef %24, double noundef 5.000000e-01) #2
  %26 = getelementptr inbounds i8, ptr %0, i64 1976
  store double %25, ptr %26, align 8, !tbaa !18
  %27 = getelementptr inbounds i8, ptr %0, i64 1984
  store i32 5, ptr %27, align 8, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %0, i64 1988
  store i32 10, ptr %28, align 4, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %0, i64 232
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  %31 = tail call ptr @N_VClone(ptr noundef %30) #2
  %32 = getelementptr inbounds i8, ptr %0, i64 1992
  store ptr %31, ptr %32, align 8, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %0, i64 96
  %34 = load ptr, ptr %33, align 8, !tbaa !23
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %34, ptr noundef %31) #2
  %35 = load i32, ptr %10, align 8, !tbaa !13
  %36 = icmp eq i32 %35, 2
  br i1 %36, label %37, label %44

37:                                               ; preds = %19
  %38 = load ptr, ptr %29, align 8, !tbaa !21
  %39 = tail call ptr @N_VClone(ptr noundef %38) #2
  %40 = getelementptr inbounds i8, ptr %0, i64 2000
  store ptr %39, ptr %40, align 8, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %0, i64 104
  %42 = load ptr, ptr %41, align 8, !tbaa !23
  %43 = load ptr, ptr %32, align 8, !tbaa !22
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %42, ptr noundef %43) #2
  br label %44

44:                                               ; preds = %37, %19
  %45 = getelementptr inbounds i8, ptr %0, i64 768
  %46 = load i32, ptr %45, align 8, !tbaa !14
  %.not48 = icmp eq i32 %46, 0
  br i1 %.not48, label %.thread, label %47

47:                                               ; preds = %44
  %48 = tail call i32 @cpicDoProjection(ptr noundef nonnull %0)
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %.thread, label %.thread55

.thread:                                          ; preds = %44, %47
  %50 = load i32, ptr %10, align 8, !tbaa !13
  %51 = icmp eq i32 %50, 2
  br i1 %51, label %52, label %.thread51

52:                                               ; preds = %.thread
  %53 = tail call i32 @cpicImplComputeYp(ptr noundef nonnull %0)
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %.thread51, label %.thread55

.thread51:                                        ; preds = %.thread, %52
  %55 = load ptr, ptr %32, align 8, !tbaa !22
  %56 = load ptr, ptr %33, align 8, !tbaa !23
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %55, ptr noundef %56) #2
  %57 = load i32, ptr %10, align 8, !tbaa !13
  %58 = icmp eq i32 %57, 2
  br i1 %58, label %59, label %.thread55

59:                                               ; preds = %.thread51
  %60 = getelementptr inbounds i8, ptr %0, i64 2000
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %62 = getelementptr inbounds i8, ptr %0, i64 104
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %61, ptr noundef %63) #2
  br label %.thread55

.thread55:                                        ; preds = %47, %.thread51, %59, %52
  %64 = phi i1 [ true, %.thread51 ], [ true, %59 ], [ false, %52 ], [ false, %47 ]
  %.153 = phi i32 [ 0, %.thread51 ], [ 0, %59 ], [ %53, %52 ], [ %48, %47 ]
  %65 = load ptr, ptr %32, align 8, !tbaa !22
  tail call void @N_VDestroy(ptr noundef %65) #2
  %66 = load i32, ptr %10, align 8, !tbaa !13
  %67 = icmp eq i32 %66, 2
  br i1 %67, label %68, label %71

68:                                               ; preds = %.thread55
  %69 = getelementptr inbounds i8, ptr %0, i64 2000
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  tail call void @N_VDestroy(ptr noundef %70) #2
  br label %71

71:                                               ; preds = %68, %.thread55
  br i1 %64, label %73, label %72

72:                                               ; preds = %71
  tail call void @cpicFailFlag(ptr noundef nonnull %0, i32 noundef %.153)
  br label %73

73:                                               ; preds = %71, %17, %72, %16, %8, %3
  %.043 = phi i32 [ -21, %3 ], [ -23, %8 ], [ %.153, %72 ], [ 0, %16 ], [ %18, %17 ], [ 0, %71 ]
  ret i32 %.043
}

declare void @cpProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @cpicInitialSetup(ptr noundef) local_unnamed_addr #0

declare double @RPowerR(double noundef, double noundef) local_unnamed_addr #1

declare ptr @N_VClone(ptr noundef) local_unnamed_addr #1

declare void @N_VScale(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @cpicDoProjection(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @cpicImplComputeYp(ptr noundef) local_unnamed_addr #0

declare void @N_VDestroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @cpicFailFlag(ptr noundef, i32 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 = { "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, !10, i64 1584}
!6 = !{!"CPodeMemRec", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !8, i64 96, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !8, i64 336, !8, i64 448, !8, i64 496, !8, i64 600, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !10, i64 760, !10, i64 764, !10, i64 768, !10, i64 772, !12, i64 776, !12, i64 784, !10, i64 792, !10, i64 796, !11, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !7, i64 832, !11, i64 840, !11, i64 848, !11, i64 856, !12, i64 864, !12, i64 872, !7, i64 880, !10, i64 888, !10, i64 892, !10, i64 896, !11, i64 904, !11, i64 912, !11, i64 920, !11, i64 928, !10, i64 936, !12, i64 944, !12, i64 952, !12, i64 960, !12, i64 968, !10, i64 976, !10, i64 980, !11, i64 984, !11, i64 992, !10, i64 1000, !10, i64 1004, !7, i64 1008, !7, i64 1016, !11, i64 1024, !8, i64 1032, !11, i64 1136, !11, i64 1144, !11, i64 1152, !11, i64 1160, !7, i64 1168, !12, i64 1176, !12, i64 1184, !10, i64 1192, !10, i64 1196, !10, i64 1200, !12, i64 1208, !12, i64 1216, !10, i64 1224, !10, i64 1228, !7, i64 1232, !10, i64 1240, !12, i64 1248, !10, i64 1256, !10, i64 1260, !10, i64 1264, !10, i64 1268, !7, i64 1272, !7, i64 1280, !7, i64 1288, !12, i64 1296, !12, i64 1304, !12, i64 1312, !12, i64 1320, !12, i64 1328, !12, i64 1336, !10, i64 1344, !7, i64 1352, !7, i64 1360, !7, i64 1368, !12, i64 1376, !12, i64 1384, !12, i64 1392, !12, i64 1400, !12, i64 1408, !12, i64 1416, !11, i64 1424, !11, i64 1432, !11, i64 1440, !11, i64 1448, !11, i64 1456, !10, i64 1464, !11, i64 1472, !11, i64 1480, !11, i64 1488, !11, i64 1496, !11, i64 1504, !11, i64 1512, !10, i64 1520, !10, i64 1524, !12, i64 1528, !7, i64 1536, !7, i64 1544, !7, i64 1552, !10, i64 1560, !7, i64 1568, !10, i64 1576, !10, i64 1580, !10, i64 1584, !10, i64 1588, !10, i64 1592, !10, i64 1596, !11, i64 1600, !11, i64 1608, !11, i64 1616, !10, i64 1624, !8, i64 1632, !10, i64 1824, !12, i64 1832, !10, i64 1840, !11, i64 1848, !10, i64 1856, !11, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !7, i64 1896, !7, i64 1904, !7, i64 1912, !11, i64 1920, !11, i64 1928, !11, i64 1936, !7, i64 1944, !10, i64 1952, !10, i64 1956, !12, i64 1960, !7, i64 1968, !7, i64 1976, !10, i64 1984, !10, i64 1988, !11, i64 1992, !11, i64 2000}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !10, i64 768}
!15 = !{!6, !7, i64 832}
!16 = !{!6, !7, i64 1968}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !7, i64 1976}
!19 = !{!6, !10, i64 1984}
!20 = !{!6, !10, i64 1988}
!21 = !{!6, !11, i64 232}
!22 = !{!6, !11, i64 1992}
!23 = !{!11, !11, i64 0}
!24 = !{!6, !11, i64 2000}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass