; LLVM IR from stan-dev/math :: lib/sundials_6.1.1/src/idas (idas_ls)

; 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.IDAMemRec = type { ptr, double, ptr, ptr, i32, double, double, ptr, i32, i32, ptr, ptr, i32, i32, i32, ptr, ptr, i32, i32, double, double, ptr, i32, i32, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, double, i32, i32, double, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, double, ptr, ptr, ptr, [6 x ptr], [6 x double], [6 x double], [6 x double], [6 x double], [6 x double], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, double, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i64, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, double, double, double, ptr, ptr, ptr, double, double, i32, i32, i64, ptr, i32, ptr, [5 x double], ptr, ptr, i32, ptr, i32 }
%struct.IDALsMemRec = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [99 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 @IDAProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) #1

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

18:                                               ; preds = %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %19, i32 noundef -2, ptr noundef @.str, ptr noundef @.str.67, ptr noundef @.str.54)
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %134

20:                                               ; preds = %2
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.IDAMemRec, ptr %21, i32 0, i32 206
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  store ptr %23, ptr %6, align 8, !tbaa !5
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %49

26:                                               ; preds = %20
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.IDAMemRec, ptr %27, i32 0, i32 145
  %29 = load i64, ptr %28, align 8, !tbaa !15
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.IDALsMemRec, ptr %30, i32 0, i32 25
  store i64 %29, ptr %31, align 8, !tbaa !16
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.IDAMemRec, ptr %32, i32 0, i32 159
  %34 = load i64, ptr %33, align 8, !tbaa !18
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.IDALsMemRec, ptr %35, i32 0, i32 26
  store i64 %34, ptr %36, align 8, !tbaa !19
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.IDAMemRec, ptr %37, i32 0, i32 152
  %39 = load i64, ptr %38, align 8, !tbaa !20
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.IDALsMemRec, ptr %40, i32 0, i32 27
  store i64 %39, ptr %41, align 8, !tbaa !21
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.IDALsMemRec, ptr %42, i32 0, i32 21
  %44 = load i64, ptr %43, align 8, !tbaa !22
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.IDALsMemRec, ptr %45, i32 0, i32 28
  store i64 %44, ptr %46, align 8, !tbaa !23
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.IDALsMemRec, ptr %47, i32 0, i32 29
  store i64 0, ptr %48, align 8, !tbaa !24
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %134

49:                                               ; preds = %20
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.IDAMemRec, ptr %50, i32 0, i32 145
  %52 = load i64, ptr %51, align 8, !tbaa !15
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.IDALsMemRec, ptr %53, i32 0, i32 25
  %55 = load i64, ptr %54, align 8, !tbaa !16
  %56 = sub nsw i64 %52, %55
  store i64 %56, ptr %9, align 8, !tbaa !25
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.IDAMemRec, ptr %57, i32 0, i32 159
  %59 = load i64, ptr %58, align 8, !tbaa !18
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.IDALsMemRec, ptr %60, i32 0, i32 26
  %62 = load i64, ptr %61, align 8, !tbaa !19
  %63 = sub nsw i64 %59, %62
  store i64 %63, ptr %10, align 8, !tbaa !25
  %64 = load i64, ptr %9, align 8, !tbaa !25
  %65 = icmp eq i64 %64, 0
  br i1 %65, label %69, label %66

66:                                               ; preds = %49
  %67 = load i64, ptr %10, align 8, !tbaa !25
  %68 = icmp eq i64 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %66, %49
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %134

70:                                               ; preds = %66
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.IDAMemRec, ptr %71, i32 0, i32 152
  %73 = load i64, ptr %72, align 8, !tbaa !20
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.IDALsMemRec, ptr %74, i32 0, i32 27
  %76 = load i64, ptr %75, align 8, !tbaa !21
  %77 = sub nsw i64 %73, %76
  %78 = sitofp i64 %77 to double
  %79 = load i64, ptr %9, align 8, !tbaa !25
  %80 = sitofp i64 %79 to double
  %81 = fdiv double %78, %80
  store double %81, ptr %7, align 8, !tbaa !26
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.IDALsMemRec, ptr %82, i32 0, i32 21
  %84 = load i64, ptr %83, align 8, !tbaa !22
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.IDALsMemRec, ptr %85, i32 0, i32 28
  %87 = load i64, ptr %86, align 8, !tbaa !23
  %88 = sub nsw i64 %84, %87
  %89 = sitofp i64 %88 to double
  %90 = load i64, ptr %10, align 8, !tbaa !25
  %91 = sitofp i64 %90 to double
  %92 = fdiv double %89, %91
  store double %92, ptr %8, align 8, !tbaa !26
  %93 = load double, ptr %7, align 8, !tbaa !26
  %94 = fcmp ogt double %93, 9.000000e-01
  %95 = zext i1 %94 to i32
  store i32 %95, ptr %11, align 4, !tbaa !9
  %96 = load double, ptr %8, align 8, !tbaa !26
  %97 = fcmp ogt double %96, 9.000000e-01
  %98 = zext i1 %97 to i32
  store i32 %98, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %105, label %101

101:                                              ; preds = %70
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %134

105:                                              ; preds = %101, %70
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.IDALsMemRec, ptr %106, i32 0, i32 29
  %108 = load i64, ptr %107, align 8, !tbaa !24
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr %107, align 8, !tbaa !24
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.IDALsMemRec, ptr %110, i32 0, i32 29
  %112 = load i64, ptr %111, align 8, !tbaa !24
  %113 = icmp sgt i64 %112, 10
  br i1 %113, label %114, label %115

114:                                              ; preds = %105
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %134

115:                                              ; preds = %105
  %116 = load i32, ptr %11, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %124

118:                                              ; preds = %115
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.IDAMemRec, ptr %120, i32 0, i32 127
  %122 = load double, ptr %121, align 8, !tbaa !27
  %123 = load double, ptr %7, align 8, !tbaa !26
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %119, i32 noundef 99, ptr noundef @.str, ptr noundef @.str.67, ptr noundef @.str.68, double noundef %122, double noundef %123)
  br label %124

124:                                              ; preds = %118, %115
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %133

127:                                              ; preds = %124
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.IDAMemRec, ptr %129, i32 0, i32 127
  %131 = load double, ptr %130, align 8, !tbaa !27
  %132 = load double, ptr %8, align 8, !tbaa !26
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %128, i32 noundef 99, ptr noundef @.str, ptr noundef @.str.67, ptr noundef @.str.69, double noundef %131, double noundef %132)
  br label %133

133:                                              ; preds = %127, %124
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %134

134:                                              ; preds = %133, %114, %104, %69, %26, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %135 = load i32, ptr %3, align 4
  ret i32 %135
}

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

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, !6, i64 1832}
!12 = !{!"IDAMemRec", !6, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !13, i64 40, !13, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !10, i64 124, !13, i64 128, !13, i64 136, !6, i64 144, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !6, i64 168, !6, i64 176, !10, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !10, i64 216, !13, i64 224, !10, i64 232, !10, i64 236, !13, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !6, i64 288, !10, i64 296, !10, i64 300, !10, i64 304, !13, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !7, i64 344, !7, i64 392, !7, i64 440, !7, i64 488, !7, i64 536, !7, i64 584, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !6, i64 760, !7, i64 768, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !7, i64 848, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !7, i64 1024, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !6, i64 1104, !13, i64 1112, !6, i64 1120, !6, i64 1128, !10, i64 1136, !10, i64 1140, !10, i64 1144, !10, i64 1148, !10, i64 1152, !10, i64 1156, !10, i64 1160, !10, i64 1164, !13, i64 1168, !13, i64 1176, !13, i64 1184, !10, i64 1192, !13, i64 1200, !10, i64 1208, !10, i64 1212, !10, i64 1216, !10, i64 1220, !10, i64 1224, !13, i64 1232, !13, i64 1240, !13, i64 1248, !13, i64 1256, !13, i64 1264, !13, i64 1272, !13, i64 1280, !13, i64 1288, !13, i64 1296, !13, i64 1304, !13, i64 1312, !13, i64 1320, !13, i64 1328, !13, i64 1336, !13, i64 1344, !13, i64 1352, !13, i64 1360, !10, i64 1368, !10, i64 1372, !10, i64 1376, !10, i64 1380, !14, i64 1384, !13, i64 1392, !14, i64 1400, !14, i64 1408, !14, i64 1416, !14, i64 1424, !14, i64 1432, !14, i64 1440, !14, i64 1448, !14, i64 1456, !14, i64 1464, !14, i64 1472, !14, i64 1480, !14, i64 1488, !14, i64 1496, !14, i64 1504, !14, i64 1512, !14, i64 1520, !14, i64 1528, !14, i64 1536, !14, i64 1544, !14, i64 1552, !14, i64 1560, !14, i64 1568, !14, i64 1576, !14, i64 1584, !13, i64 1592, !6, i64 1600, !6, i64 1608, !6, i64 1616, !10, i64 1624, !10, i64 1628, !10, i64 1632, !10, i64 1636, !10, i64 1640, !10, i64 1644, !10, i64 1648, !10, i64 1652, !10, i64 1656, !10, i64 1660, !10, i64 1664, !10, i64 1668, !10, i64 1672, !6, i64 1680, !10, i64 1688, !6, i64 1696, !10, i64 1704, !6, i64 1712, !10, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !6, i64 1760, !6, i64 1768, !10, i64 1776, !10, i64 1780, !6, i64 1784, !6, i64 1792, !6, i64 1800, !6, i64 1808, !6, i64 1816, !6, i64 1824, !6, i64 1832, !10, i64 1840, !10, i64 1844, !6, i64 1848, !10, i64 1856, !6, i64 1864, !6, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !6, i64 1904, !6, i64 1912, !6, i64 1920, !13, i64 1928, !13, i64 1936, !10, i64 1944, !10, i64 1948, !14, i64 1952, !6, i64 1960, !10, i64 1968, !6, i64 1976, !7, i64 1984, !6, i64 2024, !6, i64 2032, !10, i64 2040, !6, i64 2048, !10, i64 2056}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !14, i64 1400}
!16 = !{!17, !14, i64 192}
!17 = !{!"IDALsMemRec", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !10, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304}
!18 = !{!12, !14, i64 1512}
!19 = !{!17, !14, i64 200}
!20 = !{!12, !14, i64 1456}
!21 = !{!17, !14, i64 208}
!22 = !{!17, !14, i64 160}
!23 = !{!17, !14, i64 216}
!24 = !{!17, !14, i64 224}
!25 = !{!14, !14, i64 0}
!26 = !{!13, !13, i64 0}
!27 = !{!12, !13, i64 1272}


; 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.54 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [99 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2, 2) i32 @idaLsPerf(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 1832
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %7

6:                                                ; preds = %2
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -2, ptr noundef nonnull @.str, ptr noundef nonnull @.str.67, ptr noundef nonnull @.str.54) #2
  br label %63

7:                                                ; preds = %2
  %8 = icmp eq i32 %1, 0
  %9 = getelementptr inbounds i8, ptr %0, i64 1400
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %4, i64 192
  %12 = getelementptr inbounds i8, ptr %0, i64 1512
  %13 = getelementptr inbounds i8, ptr %4, i64 200
  br i1 %8, label %14, label %23

14:                                               ; preds = %7
  store i64 %10, ptr %11, align 8, !tbaa !14
  %15 = load i64, ptr %12, align 8, !tbaa !16
  store i64 %15, ptr %13, align 8, !tbaa !17
  %16 = getelementptr inbounds i8, ptr %0, i64 1456
  %17 = load i64, ptr %16, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %4, i64 208
  store i64 %17, ptr %18, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %4, i64 160
  %20 = load i64, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %4, i64 216
  store i64 %20, ptr %21, align 8, !tbaa !21
  %22 = getelementptr inbounds i8, ptr %4, i64 224
  store i64 0, ptr %22, align 8, !tbaa !22
  br label %63

23:                                               ; preds = %7
  %24 = load i64, ptr %11, align 8, !tbaa !14
  %25 = load i64, ptr %12, align 8, !tbaa !16
  %26 = load i64, ptr %13, align 8, !tbaa !17
  %27 = icmp eq i64 %10, %24
  %28 = icmp eq i64 %25, %26
  %or.cond = select i1 %27, i1 true, i1 %28
  br i1 %or.cond, label %63, label %29

29:                                               ; preds = %23
  %30 = sub nsw i64 %25, %26
  %31 = sub nsw i64 %10, %24
  %32 = getelementptr inbounds i8, ptr %0, i64 1456
  %33 = load i64, ptr %32, align 8, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %4, i64 208
  %35 = load i64, ptr %34, align 8, !tbaa !19
  %36 = sub nsw i64 %33, %35
  %37 = sitofp i64 %36 to double
  %38 = sitofp i64 %31 to double
  %39 = fdiv double %37, %38
  %40 = getelementptr inbounds i8, ptr %4, i64 160
  %41 = load i64, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds i8, ptr %4, i64 216
  %43 = load i64, ptr %42, align 8, !tbaa !21
  %44 = sub nsw i64 %41, %43
  %45 = sitofp i64 %44 to double
  %46 = sitofp i64 %30 to double
  %47 = fdiv double %45, %46
  %48 = fcmp ogt double %39, 9.000000e-01
  %49 = fcmp ogt double %47, 9.000000e-01
  %or.cond3 = select i1 %48, i1 true, i1 %49
  br i1 %or.cond3, label %50, label %63

50:                                               ; preds = %29
  %51 = getelementptr inbounds i8, ptr %4, i64 224
  %52 = load i64, ptr %51, align 8, !tbaa !22
  %53 = add nsw i64 %52, 1
  store i64 %53, ptr %51, align 8, !tbaa !22
  %54 = icmp sgt i64 %52, 9
  br i1 %54, label %63, label %55

55:                                               ; preds = %50
  br i1 %48, label %56, label %59

56:                                               ; preds = %55
  %57 = getelementptr inbounds i8, ptr %0, i64 1272
  %58 = load double, ptr %57, align 8, !tbaa !23
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef 99, ptr noundef nonnull @.str, ptr noundef nonnull @.str.67, ptr noundef nonnull @.str.68, double noundef %58, double noundef %39) #2
  br label %59

59:                                               ; preds = %56, %55
  br i1 %49, label %60, label %63

60:                                               ; preds = %59
  %61 = getelementptr inbounds i8, ptr %0, i64 1272
  %62 = load double, ptr %61, align 8, !tbaa !23
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef 99, ptr noundef nonnull @.str, ptr noundef nonnull @.str.67, ptr noundef nonnull @.str.69, double noundef %62, double noundef %47) #2
  br label %63

63:                                               ; preds = %59, %60, %50, %29, %23, %14, %6
  %.0 = phi i32 [ -2, %6 ], [ 0, %14 ], [ 0, %23 ], [ 0, %29 ], [ 1, %50 ], [ 0, %60 ], [ 0, %59 ]
  ret i32 %.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, !7, i64 1832}
!6 = !{!"IDAMemRec", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !11, i64 64, !11, i64 68, !7, i64 72, !7, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 124, !10, i64 128, !10, i64 136, !7, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !7, i64 168, !7, i64 176, !11, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !11, i64 216, !10, i64 224, !11, i64 232, !11, i64 236, !10, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !11, i64 272, !7, i64 280, !7, i64 288, !11, i64 296, !11, i64 300, !11, i64 304, !10, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !8, i64 344, !8, i64 392, !8, i64 440, !8, i64 488, !8, i64 536, !8, i64 584, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !7, i64 672, !7, i64 680, !7, i64 688, !7, i64 696, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !7, i64 760, !8, i64 768, !7, i64 816, !7, i64 824, !7, i64 832, !7, i64 840, !8, i64 848, !7, i64 896, !7, i64 904, !7, i64 912, !7, i64 920, !7, i64 928, !7, i64 936, !7, i64 944, !7, i64 952, !7, i64 960, !7, i64 968, !7, i64 976, !7, i64 984, !7, i64 992, !7, i64 1000, !7, i64 1008, !7, i64 1016, !8, i64 1024, !7, i64 1072, !7, i64 1080, !7, i64 1088, !7, i64 1096, !7, i64 1104, !10, i64 1112, !7, i64 1120, !7, i64 1128, !11, i64 1136, !11, i64 1140, !11, i64 1144, !11, i64 1148, !11, i64 1152, !11, i64 1156, !11, i64 1160, !11, i64 1164, !10, i64 1168, !10, i64 1176, !10, i64 1184, !11, i64 1192, !10, i64 1200, !11, i64 1208, !11, i64 1212, !11, i64 1216, !11, i64 1220, !11, i64 1224, !10, i64 1232, !10, i64 1240, !10, i64 1248, !10, i64 1256, !10, i64 1264, !10, i64 1272, !10, i64 1280, !10, i64 1288, !10, i64 1296, !10, i64 1304, !10, i64 1312, !10, i64 1320, !10, i64 1328, !10, i64 1336, !10, i64 1344, !10, i64 1352, !10, i64 1360, !11, i64 1368, !11, i64 1372, !11, i64 1376, !11, i64 1380, !12, i64 1384, !10, i64 1392, !12, i64 1400, !12, i64 1408, !12, i64 1416, !12, i64 1424, !12, i64 1432, !12, i64 1440, !12, i64 1448, !12, i64 1456, !12, i64 1464, !12, i64 1472, !12, i64 1480, !12, i64 1488, !12, i64 1496, !12, i64 1504, !12, i64 1512, !12, i64 1520, !12, i64 1528, !12, i64 1536, !12, i64 1544, !12, i64 1552, !12, i64 1560, !12, i64 1568, !12, i64 1576, !12, i64 1584, !10, i64 1592, !7, i64 1600, !7, i64 1608, !7, i64 1616, !11, i64 1624, !11, i64 1628, !11, i64 1632, !11, i64 1636, !11, i64 1640, !11, i64 1644, !11, i64 1648, !11, i64 1652, !11, i64 1656, !11, i64 1660, !11, i64 1664, !11, i64 1668, !11, i64 1672, !7, i64 1680, !11, i64 1688, !7, i64 1696, !11, i64 1704, !7, i64 1712, !11, i64 1720, !7, i64 1728, !7, i64 1736, !7, i64 1744, !7, i64 1752, !7, i64 1760, !7, i64 1768, !11, i64 1776, !11, i64 1780, !7, i64 1784, !7, i64 1792, !7, i64 1800, !7, i64 1808, !7, i64 1816, !7, i64 1824, !7, i64 1832, !11, i64 1840, !11, i64 1844, !7, i64 1848, !11, i64 1856, !7, i64 1864, !7, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 1920, !10, i64 1928, !10, i64 1936, !11, i64 1944, !11, i64 1948, !12, i64 1952, !7, i64 1960, !11, i64 1968, !7, i64 1976, !8, i64 1984, !7, i64 2024, !7, i64 2032, !11, i64 2040, !7, i64 2048, !11, i64 2056}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !12, i64 1400}
!14 = !{!15, !12, i64 192}
!15 = !{!"IDALsMemRec", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !11, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !11, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !11, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304}
!16 = !{!6, !12, i64 1512}
!17 = !{!15, !12, i64 200}
!18 = !{!6, !12, i64 1456}
!19 = !{!15, !12, i64 208}
!20 = !{!15, !12, i64 160}
!21 = !{!15, !12, i64 216}
!22 = !{!15, !12, i64 224}
!23 = !{!6, !10, i64 1272}


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