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

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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1

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

13:                                               ; preds = %3
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef null, i32 noundef -20, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
  store i32 -20, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %105

14:                                               ; preds = %3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %15, ptr %9, align 8, !tbaa !5
  %16 = load i64, ptr %6, align 8, !tbaa !9
  %17 = icmp sle i64 %16, 0
  br i1 %17, label %18, label %20

18:                                               ; preds = %14
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %19, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.3)
  store i32 -22, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %105

20:                                               ; preds = %14
  %21 = load i32, ptr %7, align 4, !tbaa !11
  %22 = icmp ne i32 %21, 1
  br i1 %22, label %23, label %28

23:                                               ; preds = %20
  %24 = load i32, ptr %7, align 4, !tbaa !11
  %25 = icmp ne i32 %24, 2
  br i1 %25, label %26, label %28

26:                                               ; preds = %23
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %27, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.4)
  store i32 -22, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %105

28:                                               ; preds = %23, %20
  %29 = call noalias ptr @malloc(i64 noundef 376) #6
  store ptr %29, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %34

32:                                               ; preds = %28
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %33, i32 noundef -21, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -21, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %105

34:                                               ; preds = %28
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.IDAMemRec, ptr %36, i32 0, i32 231
  store ptr %35, ptr %37, align 8, !tbaa !13
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.IDAadjMemRec, ptr %38, i32 0, i32 11
  store ptr null, ptr %39, align 8, !tbaa !16
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.IDAadjMemRec, ptr %40, i32 0, i32 13
  store i32 0, ptr %41, align 8, !tbaa !18
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.IDAadjMemRec, ptr %42, i32 0, i32 12
  store ptr null, ptr %43, align 8, !tbaa !19
  %44 = load i32, ptr %7, align 4, !tbaa !11
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.IDAadjMemRec, ptr %45, i32 0, i32 18
  store i32 %44, ptr %46, align 8, !tbaa !20
  %47 = load i64, ptr %6, align 8, !tbaa !9
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.IDAadjMemRec, ptr %48, i32 0, i32 14
  store i64 %47, ptr %49, align 8, !tbaa !21
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.IDAadjMemRec, ptr %50, i32 0, i32 15
  store i64 -1, ptr %51, align 8, !tbaa !22
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = call i32 @IDAAdataMalloc(ptr noundef %52)
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %34
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %56) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %57, i32 noundef -21, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -21, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %105

58:                                               ; preds = %34
  %59 = load i32, ptr %7, align 4, !tbaa !11
  switch i32 %59, label %78 [
    i32 1, label %60
    i32 2, label %69
  ]

60:                                               ; preds = %58
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.IDAadjMemRec, ptr %61, i32 0, i32 21
  store ptr @IDAAhermiteMalloc, ptr %62, align 8, !tbaa !23
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.IDAadjMemRec, ptr %63, i32 0, i32 22
  store ptr @IDAAhermiteFree, ptr %64, align 8, !tbaa !24
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.IDAadjMemRec, ptr %65, i32 0, i32 20
  store ptr @IDAAhermiteGetY, ptr %66, align 8, !tbaa !25
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.IDAadjMemRec, ptr %67, i32 0, i32 19
  store ptr @IDAAhermiteStorePnt, ptr %68, align 8, !tbaa !26
  br label %78

69:                                               ; preds = %58
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.IDAadjMemRec, ptr %70, i32 0, i32 21
  store ptr @IDAApolynomialMalloc, ptr %71, align 8, !tbaa !23
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.IDAadjMemRec, ptr %72, i32 0, i32 22
  store ptr @IDAApolynomialFree, ptr %73, align 8, !tbaa !24
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.IDAadjMemRec, ptr %74, i32 0, i32 20
  store ptr @IDAApolynomialGetY, ptr %75, align 8, !tbaa !25
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.IDAadjMemRec, ptr %76, i32 0, i32 19
  store ptr @IDAApolynomialStorePnt, ptr %77, align 8, !tbaa !26
  br label %78

78:                                               ; preds = %69, %60, %58
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.IDAadjMemRec, ptr %79, i32 0, i32 23
  store i32 0, ptr %80, align 8, !tbaa !27
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.IDAadjMemRec, ptr %81, i32 0, i32 25
  store i32 1, ptr %82, align 8, !tbaa !28
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.IDAadjMemRec, ptr %83, i32 0, i32 26
  store i32 0, ptr %84, align 4, !tbaa !29
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.IDAadjMemRec, ptr %85, i32 0, i32 27
  store i32 0, ptr %86, align 8, !tbaa !30
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.IDAadjMemRec, ptr %87, i32 0, i32 7
  store ptr null, ptr %88, align 8, !tbaa !31
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.IDAadjMemRec, ptr %89, i32 0, i32 9
  store ptr null, ptr %90, align 8, !tbaa !32
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.IDAadjMemRec, ptr %91, i32 0, i32 8
  store i32 0, ptr %92, align 8, !tbaa !33
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.IDAadjMemRec, ptr %93, i32 0, i32 2
  store i32 1, ptr %94, align 8, !tbaa !34
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.IDAadjMemRec, ptr %95, i32 0, i32 3
  store i32 0, ptr %96, align 4, !tbaa !35
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.IDAadjMemRec, ptr %97, i32 0, i32 10
  store i32 1, ptr %98, align 8, !tbaa !36
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.IDAadjMemRec, ptr %99, i32 0, i32 5
  store i32 0, ptr %100, align 8, !tbaa !37
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.IDAMemRec, ptr %101, i32 0, i32 230
  store i32 1, ptr %102, align 8, !tbaa !38
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.IDAMemRec, ptr %103, i32 0, i32 232
  store i32 1, ptr %104, align 8, !tbaa !39
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %105

105:                                              ; preds = %78, %55, %32, %26, %18, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %106 = load i32, ptr %4, align 4
  ret i32 %106
}

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @IDAApolynomialStorePnt(ptr noundef, ptr 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 allocsize(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 #4 = { nounwind "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 2048}
!14 = !{!"IDAMemRec", !6, i64 0, !15, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !15, i64 40, !15, i64 48, !6, i64 56, !12, i64 64, !12, i64 68, !6, i64 72, !6, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !12, i64 124, !15, i64 128, !15, i64 136, !6, i64 144, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !6, i64 168, !6, i64 176, !12, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !12, i64 216, !15, i64 224, !12, i64 232, !12, i64 236, !15, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !12, i64 272, !6, i64 280, !6, i64 288, !12, i64 296, !12, i64 300, !12, i64 304, !15, 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, !15, i64 1112, !6, i64 1120, !6, i64 1128, !12, i64 1136, !12, i64 1140, !12, i64 1144, !12, i64 1148, !12, i64 1152, !12, i64 1156, !12, i64 1160, !12, i64 1164, !15, i64 1168, !15, i64 1176, !15, i64 1184, !12, i64 1192, !15, i64 1200, !12, i64 1208, !12, i64 1212, !12, i64 1216, !12, i64 1220, !12, i64 1224, !15, i64 1232, !15, i64 1240, !15, i64 1248, !15, i64 1256, !15, i64 1264, !15, i64 1272, !15, i64 1280, !15, i64 1288, !15, i64 1296, !15, i64 1304, !15, i64 1312, !15, i64 1320, !15, i64 1328, !15, i64 1336, !15, i64 1344, !15, i64 1352, !15, i64 1360, !12, i64 1368, !12, i64 1372, !12, i64 1376, !12, i64 1380, !10, i64 1384, !15, i64 1392, !10, i64 1400, !10, i64 1408, !10, i64 1416, !10, i64 1424, !10, i64 1432, !10, i64 1440, !10, i64 1448, !10, i64 1456, !10, i64 1464, !10, i64 1472, !10, i64 1480, !10, i64 1488, !10, i64 1496, !10, i64 1504, !10, i64 1512, !10, i64 1520, !10, i64 1528, !10, i64 1536, !10, i64 1544, !10, i64 1552, !10, i64 1560, !10, i64 1568, !10, i64 1576, !10, i64 1584, !15, i64 1592, !6, i64 1600, !6, i64 1608, !6, i64 1616, !12, i64 1624, !12, i64 1628, !12, i64 1632, !12, i64 1636, !12, i64 1640, !12, i64 1644, !12, i64 1648, !12, i64 1652, !12, i64 1656, !12, i64 1660, !12, i64 1664, !12, i64 1668, !12, i64 1672, !6, i64 1680, !12, i64 1688, !6, i64 1696, !12, i64 1704, !6, i64 1712, !12, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !6, i64 1760, !6, i64 1768, !12, i64 1776, !12, i64 1780, !6, i64 1784, !6, i64 1792, !6, i64 1800, !6, i64 1808, !6, i64 1816, !6, i64 1824, !6, i64 1832, !12, i64 1840, !12, i64 1844, !6, i64 1848, !12, i64 1856, !6, i64 1864, !6, i64 1872, !15, i64 1880, !15, i64 1888, !15, i64 1896, !6, i64 1904, !6, i64 1912, !6, i64 1920, !15, i64 1928, !15, i64 1936, !12, i64 1944, !12, i64 1948, !10, i64 1952, !6, i64 1960, !12, i64 1968, !6, i64 1976, !7, i64 1984, !6, i64 2024, !6, i64 2032, !12, i64 2040, !6, i64 2048, !12, i64 2056}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !6, i64 80}
!17 = !{!"IDAadjMemRec", !15, i64 0, !15, i64 8, !12, i64 16, !12, i64 20, !15, i64 24, !12, i64 32, !15, i64 40, !6, i64 48, !12, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !12, i64 96, !10, i64 104, !10, i64 112, !6, i64 120, !10, i64 128, !12, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !7, i64 200, !7, i64 248, !7, i64 296, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!18 = !{!17, !12, i64 96}
!19 = !{!17, !6, i64 88}
!20 = !{!17, !12, i64 136}
!21 = !{!17, !10, i64 104}
!22 = !{!17, !10, i64 112}
!23 = !{!17, !6, i64 160}
!24 = !{!17, !6, i64 168}
!25 = !{!17, !6, i64 152}
!26 = !{!17, !6, i64 144}
!27 = !{!17, !12, i64 176}
!28 = !{!17, !12, i64 184}
!29 = !{!17, !12, i64 188}
!30 = !{!17, !12, i64 192}
!31 = !{!17, !6, i64 48}
!32 = !{!17, !6, i64 64}
!33 = !{!17, !12, i64 56}
!34 = !{!17, !12, i64 16}
!35 = !{!17, !12, i64 20}
!36 = !{!17, !12, i64 72}
!37 = !{!17, !12, i64 32}
!38 = !{!14, !12, i64 2040}
!39 = !{!14, !12, i64 2056}


; 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 [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -22, 1) i32 @IDAAdjInit(ptr noundef %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %5, label %6

5:                                                ; preds = %3
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef null, i32 noundef -20, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #5
  br label %45

6:                                                ; preds = %3
  %7 = icmp slt i64 %1, 1
  br i1 %7, label %8, label %9

8:                                                ; preds = %6
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #5
  br label %45

9:                                                ; preds = %6
  %10 = add i32 %2, -3
  %or.cond = icmp ult i32 %10, -2
  br i1 %or.cond, label %11, label %12

11:                                               ; preds = %9
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #5
  br label %45

12:                                               ; preds = %9
  %13 = tail call noalias dereferenceable_or_null(376) ptr @malloc(i64 noundef 376) #6
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %12
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #5
  br label %45

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 2048
  store ptr %13, ptr %17, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %13, i64 80
  %19 = getelementptr inbounds i8, ptr %13, i64 136
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %18, i8 0, i64 20, i1 false)
  store i32 %2, ptr %19, align 8, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %13, i64 104
  store i64 %1, ptr %20, align 8, !tbaa !15
  %21 = getelementptr inbounds i8, ptr %13, i64 112
  store i64 -1, ptr %21, align 8, !tbaa !16
  %22 = tail call i32 @IDAAdataMalloc(ptr noundef nonnull %0)
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %16
  tail call void @free(ptr noundef nonnull %13) #5
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #5
  br label %45

25:                                               ; preds = %16
  %switch = icmp eq i32 %2, 1
  br i1 %switch, label %27, label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %25, %26
  %IDAApolynomialMalloc.sink = phi ptr [ @IDAApolynomialMalloc, %26 ], [ @IDAAhermiteMalloc, %25 ]
  %IDAApolynomialFree.sink = phi ptr [ @IDAApolynomialFree, %26 ], [ @IDAAhermiteFree, %25 ]
  %IDAApolynomialGetY.sink = phi ptr [ @IDAApolynomialGetY, %26 ], [ @IDAAhermiteGetY, %25 ]
  %IDAApolynomialStorePnt.sink = phi ptr [ @IDAApolynomialStorePnt, %26 ], [ @IDAAhermiteStorePnt, %25 ]
  %28 = getelementptr inbounds i8, ptr %13, i64 160
  store ptr %IDAApolynomialMalloc.sink, ptr %28, align 8
  %29 = getelementptr inbounds i8, ptr %13, i64 168
  store ptr %IDAApolynomialFree.sink, ptr %29, align 8
  %30 = getelementptr inbounds i8, ptr %13, i64 152
  store ptr %IDAApolynomialGetY.sink, ptr %30, align 8
  %31 = getelementptr inbounds i8, ptr %13, i64 144
  store ptr %IDAApolynomialStorePnt.sink, ptr %31, align 8
  %32 = getelementptr inbounds i8, ptr %13, i64 176
  store i32 0, ptr %32, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %13, i64 184
  store i32 1, ptr %33, align 8, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %13, i64 188
  store i32 0, ptr %34, align 4, !tbaa !19
  %35 = getelementptr inbounds i8, ptr %13, i64 192
  store i32 0, ptr %35, align 8, !tbaa !20
  %36 = getelementptr inbounds i8, ptr %13, i64 48
  store ptr null, ptr %36, align 8, !tbaa !21
  %37 = getelementptr inbounds i8, ptr %13, i64 64
  store ptr null, ptr %37, align 8, !tbaa !22
  %38 = getelementptr inbounds i8, ptr %13, i64 56
  store i32 0, ptr %38, align 8, !tbaa !23
  %39 = getelementptr inbounds i8, ptr %13, i64 16
  store i32 1, ptr %39, align 8, !tbaa !24
  %40 = getelementptr inbounds i8, ptr %13, i64 20
  store i32 0, ptr %40, align 4, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %13, i64 72
  store i32 1, ptr %41, align 8, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %13, i64 32
  store i32 0, ptr %42, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %0, i64 2040
  store i32 1, ptr %43, align 8, !tbaa !28
  %44 = getelementptr inbounds i8, ptr %0, i64 2056
  store i32 1, ptr %44, align 8, !tbaa !29
  br label %45

45:                                               ; preds = %27, %24, %15, %11, %8, %5
  %.0 = phi i32 [ -20, %5 ], [ -22, %8 ], [ -22, %11 ], [ -21, %15 ], [ -21, %24 ], [ 0, %27 ]
  ret i32 %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 2048}
!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 = !{!14, !11, i64 136}
!14 = !{!"IDAadjMemRec", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !10, i64 24, !11, i64 32, !10, i64 40, !7, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !7, i64 80, !7, i64 88, !11, i64 96, !12, i64 104, !12, i64 112, !7, i64 120, !12, i64 128, !11, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !8, i64 200, !8, i64 248, !8, i64 296, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368}
!15 = !{!14, !12, i64 104}
!16 = !{!14, !12, i64 112}
!17 = !{!14, !11, i64 176}
!18 = !{!14, !11, i64 184}
!19 = !{!14, !11, i64 188}
!20 = !{!14, !11, i64 192}
!21 = !{!14, !7, i64 48}
!22 = !{!14, !7, i64 64}
!23 = !{!14, !11, i64 56}
!24 = !{!14, !11, i64 16}
!25 = !{!14, !11, i64 20}
!26 = !{!14, !11, i64 72}
!27 = !{!14, !11, i64 32}
!28 = !{!6, !11, i64 2040}
!29 = !{!6, !11, i64 2056}


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