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

; 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.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [45 x i8], align 1

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

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

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

declare double @N_VMin(ptr noundef) #1

declare ptr @N_VClone(ptr noundef) #1

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

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

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

18:                                               ; preds = %5
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %19, ptr %12, align 8, !tbaa !5
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.CPodeMemRec, ptr %21, i32 0, i32 80
  store i32 %20, ptr %22, align 4, !tbaa !13
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.CPodeMemRec, ptr %23, i32 0, i32 94
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %18
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %28, i32 noundef -30, ptr noundef @.str, ptr noundef @.str.39, ptr noundef @.str.40)
  store i32 -30, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %173

29:                                               ; preds = %18
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %58

32:                                               ; preds = %29
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.CPodeMemRec, ptr %33, i32 0, i32 93
  %35 = load i32, ptr %34, align 4, !tbaa !17
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %57

37:                                               ; preds = %32
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.CPodeMemRec, ptr %38, i32 0, i32 83
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  call void @N_VDestroy(ptr noundef %40)
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.CPodeMemRec, ptr %41, i32 0, i32 90
  %43 = load i64, ptr %42, align 8, !tbaa !19
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.CPodeMemRec, ptr %44, i32 0, i32 123
  %46 = load i64, ptr %45, align 8, !tbaa !20
  %47 = sub nsw i64 %46, %43
  store i64 %47, ptr %45, align 8, !tbaa !20
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.CPodeMemRec, ptr %48, i32 0, i32 91
  %50 = load i64, ptr %49, align 8, !tbaa !21
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.CPodeMemRec, ptr %51, i32 0, i32 124
  %53 = load i64, ptr %52, align 8, !tbaa !22
  %54 = sub nsw i64 %53, %50
  store i64 %54, ptr %52, align 8, !tbaa !22
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.CPodeMemRec, ptr %55, i32 0, i32 93
  store i32 0, ptr %56, align 4, !tbaa !17
  br label %57

57:                                               ; preds = %37, %32
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %173

58:                                               ; preds = %29
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 1
  br i1 %60, label %61, label %66

61:                                               ; preds = %58
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 2
  br i1 %63, label %64, label %66

64:                                               ; preds = %61
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %65, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.39, ptr noundef @.str.41)
  store i32 -22, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %173

66:                                               ; preds = %61, %58
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %71

69:                                               ; preds = %66
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %70, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.39, ptr noundef @.str.42)
  store i32 -22, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %173

71:                                               ; preds = %66
  %72 = load double, ptr %10, align 8, !tbaa !11
  %73 = fcmp olt double %72, 0.000000e+00
  br i1 %73, label %74, label %76

74:                                               ; preds = %71
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %75, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.39, ptr noundef @.str.43)
  store i32 -22, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %173

76:                                               ; preds = %71
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %79, label %84

79:                                               ; preds = %76
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fcmp olt double %81, 0.000000e+00
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %13, align 4, !tbaa !9
  br label %89

84:                                               ; preds = %76
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = call double @N_VMin(ptr noundef %85)
  %87 = fcmp olt double %86, 0.000000e+00
  %88 = zext i1 %87 to i32
  store i32 %88, ptr %13, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %84, %79
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %89
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %93, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.39, ptr noundef @.str.44)
  store i32 -22, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %173

94:                                               ; preds = %89
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 2
  br i1 %96, label %97, label %122

97:                                               ; preds = %94
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.CPodeMemRec, ptr %98, i32 0, i32 93
  %100 = load i32, ptr %99, align 4, !tbaa !17
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %122

102:                                              ; preds = %97
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.CPodeMemRec, ptr %103, i32 0, i32 83
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  call void @N_VDestroy(ptr noundef %105)
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.CPodeMemRec, ptr %106, i32 0, i32 90
  %108 = load i64, ptr %107, align 8, !tbaa !19
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.CPodeMemRec, ptr %109, i32 0, i32 123
  %111 = load i64, ptr %110, align 8, !tbaa !20
  %112 = sub nsw i64 %111, %108
  store i64 %112, ptr %110, align 8, !tbaa !20
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.CPodeMemRec, ptr %113, i32 0, i32 91
  %115 = load i64, ptr %114, align 8, !tbaa !21
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.CPodeMemRec, ptr %116, i32 0, i32 124
  %118 = load i64, ptr %117, align 8, !tbaa !22
  %119 = sub nsw i64 %118, %115
  store i64 %119, ptr %117, align 8, !tbaa !22
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.CPodeMemRec, ptr %120, i32 0, i32 93
  store i32 0, ptr %121, align 4, !tbaa !17
  br label %122

122:                                              ; preds = %102, %97, %94
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = icmp eq i32 %123, 2
  br i1 %124, label %125, label %153

125:                                              ; preds = %122
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.CPodeMemRec, ptr %126, i32 0, i32 93
  %128 = load i32, ptr %127, align 4, !tbaa !17
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %153, label %130

130:                                              ; preds = %125
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.CPodeMemRec, ptr %131, i32 0, i32 88
  %133 = load ptr, ptr %132, align 8, !tbaa !23
  %134 = call ptr @N_VClone(ptr noundef %133)
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.CPodeMemRec, ptr %135, i32 0, i32 83
  store ptr %134, ptr %136, align 8, !tbaa !18
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.CPodeMemRec, ptr %137, i32 0, i32 90
  %139 = load i64, ptr %138, align 8, !tbaa !19
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.CPodeMemRec, ptr %140, i32 0, i32 123
  %142 = load i64, ptr %141, align 8, !tbaa !20
  %143 = add nsw i64 %142, %139
  store i64 %143, ptr %141, align 8, !tbaa !20
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.CPodeMemRec, ptr %144, i32 0, i32 91
  %146 = load i64, ptr %145, align 8, !tbaa !21
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.CPodeMemRec, ptr %147, i32 0, i32 124
  %149 = load i64, ptr %148, align 8, !tbaa !22
  %150 = add nsw i64 %149, %146
  store i64 %150, ptr %148, align 8, !tbaa !22
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.CPodeMemRec, ptr %151, i32 0, i32 93
  store i32 1, ptr %152, align 4, !tbaa !17
  br label %153

153:                                              ; preds = %130, %125, %122
  %154 = load i32, ptr %9, align 4, !tbaa !9
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.CPodeMemRec, ptr %155, i32 0, i32 79
  store i32 %154, ptr %156, align 8, !tbaa !24
  %157 = load double, ptr %10, align 8, !tbaa !11
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.CPodeMemRec, ptr %158, i32 0, i32 81
  store double %157, ptr %159, align 8, !tbaa !25
  %160 = load i32, ptr %9, align 4, !tbaa !9
  %161 = icmp eq i32 %160, 1
  br i1 %161, label %162, label %167

162:                                              ; preds = %153
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.CPodeMemRec, ptr %165, i32 0, i32 82
  store double %164, ptr %166, align 8, !tbaa !26
  br label %172

167:                                              ; preds = %153
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.CPodeMemRec, ptr %169, i32 0, i32 83
  %171 = load ptr, ptr %170, align 8, !tbaa !18
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %168, ptr noundef %171)
  br label %172

172:                                              ; preds = %167, %162
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %173

173:                                              ; preds = %172, %92, %74, %69, %64, %57, %27, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %174 = load i32, ptr %6, align 4
  ret i32 %174
}

declare void @N_VDestroy(ptr noundef) #1

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


; 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.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare double @N_VMin(ptr noundef) local_unnamed_addr #0

declare ptr @N_VClone(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -30, 1) i32 @CPodeSetQuadErrCon(ptr noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = icmp eq ptr %0, null
  br i1 %6, label %7, label %8

7:                                                ; preds = %5
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef null, i32 noundef -21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.2) #2
  br label %74

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

13:                                               ; preds = %8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -30, ptr noundef nonnull @.str, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.40) #2
  br label %74

14:                                               ; preds = %8
  %15 = icmp eq i32 %1, 0
  br i1 %15, label %16, label %27

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 1196
  %18 = load i32, ptr %17, align 4, !tbaa !14
  %.not59 = icmp eq i32 %18, 0
  br i1 %.not59, label %74, label %19

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 1024
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  tail call void @N_VDestroy(ptr noundef %21) #2
  %22 = getelementptr inbounds i8, ptr %0, i64 1176
  %23 = getelementptr inbounds i8, ptr %0, i64 1408
  %24 = load <2 x i64>, ptr %22, align 8, !tbaa !16
  %25 = load <2 x i64>, ptr %23, align 8, !tbaa !16
  %26 = sub nsw <2 x i64> %25, %24
  store <2 x i64> %26, ptr %23, align 8, !tbaa !16
  store i32 0, ptr %17, align 4, !tbaa !14
  br label %74

27:                                               ; preds = %14
  %28 = add i32 %2, -3
  %or.cond = icmp ult i32 %28, -2
  br i1 %or.cond, label %29, label %30

29:                                               ; preds = %27
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.41) #2
  br label %74

30:                                               ; preds = %27
  %31 = icmp eq ptr %4, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %30
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.42) #2
  br label %74

33:                                               ; preds = %30
  %34 = fcmp olt double %3, 0.000000e+00
  br i1 %34, label %35, label %36

35:                                               ; preds = %33
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.43) #2
  br label %74

36:                                               ; preds = %33
  %37 = icmp eq i32 %2, 1
  br i1 %37, label %.thread, label %38

38:                                               ; preds = %36
  %39 = tail call double @N_VMin(ptr noundef nonnull %4) #2
  %.0.in = fcmp olt double %39, 0.000000e+00
  br i1 %.0.in, label %41, label %52

.thread:                                          ; preds = %36
  %40 = load double, ptr %4, align 8, !tbaa !17
  %.0.in61 = fcmp olt double %40, 0.000000e+00
  br i1 %.0.in61, label %41, label %.thread62

41:                                               ; preds = %.thread, %38
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.44) #2
  br label %74

.thread62:                                        ; preds = %.thread
  %42 = getelementptr inbounds i8, ptr %0, i64 1196
  %43 = load i32, ptr %42, align 4, !tbaa !14
  %.not57 = icmp eq i32 %43, 0
  br i1 %.not57, label %65, label %44

44:                                               ; preds = %.thread62
  %45 = getelementptr inbounds i8, ptr %0, i64 1024
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  tail call void @N_VDestroy(ptr noundef %46) #2
  %47 = getelementptr inbounds i8, ptr %0, i64 1176
  %48 = getelementptr inbounds i8, ptr %0, i64 1408
  %49 = load <2 x i64>, ptr %47, align 8, !tbaa !16
  %50 = load <2 x i64>, ptr %48, align 8, !tbaa !16
  %51 = sub nsw <2 x i64> %50, %49
  store <2 x i64> %51, ptr %48, align 8, !tbaa !16
  store i32 0, ptr %42, align 4, !tbaa !14
  br label %65

52:                                               ; preds = %38
  %53 = getelementptr inbounds i8, ptr %0, i64 1196
  %54 = load i32, ptr %53, align 4, !tbaa !14
  %.not58 = icmp eq i32 %54, 0
  br i1 %.not58, label %55, label %._crit_edge

._crit_edge:                                      ; preds = %52
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 1024
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  br label %70

55:                                               ; preds = %52
  %56 = getelementptr inbounds i8, ptr %0, i64 1160
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %58 = tail call ptr @N_VClone(ptr noundef %57) #2
  %59 = getelementptr inbounds i8, ptr %0, i64 1024
  store ptr %58, ptr %59, align 8, !tbaa !15
  %60 = getelementptr inbounds i8, ptr %0, i64 1176
  %61 = getelementptr inbounds i8, ptr %0, i64 1408
  %62 = load <2 x i64>, ptr %60, align 8, !tbaa !16
  %63 = load <2 x i64>, ptr %61, align 8, !tbaa !16
  %64 = add nsw <2 x i64> %63, %62
  store <2 x i64> %64, ptr %61, align 8, !tbaa !16
  store i32 1, ptr %53, align 4, !tbaa !14
  br label %70

65:                                               ; preds = %.thread62, %44
  %66 = getelementptr inbounds i8, ptr %0, i64 1000
  store i32 1, ptr %66, align 8, !tbaa !19
  %67 = getelementptr inbounds i8, ptr %0, i64 1008
  store double %3, ptr %67, align 8, !tbaa !20
  %68 = load double, ptr %4, align 8, !tbaa !17
  %69 = getelementptr inbounds i8, ptr %0, i64 1016
  store double %68, ptr %69, align 8, !tbaa !21
  br label %74

70:                                               ; preds = %._crit_edge, %55
  %71 = phi ptr [ %.pre, %._crit_edge ], [ %58, %55 ]
  %72 = getelementptr inbounds i8, ptr %0, i64 1000
  store i32 %2, ptr %72, align 8, !tbaa !19
  %73 = getelementptr inbounds i8, ptr %0, i64 1008
  store double %3, ptr %73, align 8, !tbaa !20
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef nonnull %4, ptr noundef %71) #2
  br label %74

74:                                               ; preds = %65, %70, %16, %19, %41, %35, %32, %29, %13, %7
  %.053 = phi i32 [ -21, %7 ], [ -30, %13 ], [ -22, %29 ], [ -22, %32 ], [ -22, %35 ], [ -22, %41 ], [ 0, %19 ], [ 0, %16 ], [ 0, %70 ], [ 0, %65 ]
  ret i32 %.053
}

declare void @N_VDestroy(ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind 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 #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 1004}
!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 1200}
!14 = !{!6, !10, i64 1196}
!15 = !{!6, !11, i64 1024}
!16 = !{!12, !12, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !11, i64 1160}
!19 = !{!6, !10, i64 1000}
!20 = !{!6, !7, i64 1008}
!21 = !{!6, !7, i64 1016}


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