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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @cpNls(ptr noundef %0, i32 noundef %1, double noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !11
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  %12 = load ptr, ptr %6, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.CPodeMemRec, ptr %12, i32 0, i32 6
  %14 = load i32, ptr %13, align 4, !tbaa !13
  switch i32 %14, label %39 [
    i32 1, label %15
    i32 2, label %26
  ]

15:                                               ; preds = %4
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.CPodeMemRec, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !16
  switch i32 %18, label %25 [
    i32 1, label %19
    i32 2, label %22
  ]

19:                                               ; preds = %15
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = call i32 @cpNlsFunctionalExpl(ptr noundef %20)
  store i32 %21, ptr %10, align 4, !tbaa !9
  br label %25

22:                                               ; preds = %15
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call i32 @cpNlsFunctionalImpl(ptr noundef %23)
  store i32 %24, ptr %10, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %22, %19, %15
  br label %39

26:                                               ; preds = %4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.CPodeMemRec, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !16
  switch i32 %29, label %38 [
    i32 1, label %30
    i32 2, label %34
  ]

30:                                               ; preds = %26
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = call i32 @cpNlsNewtonExpl(ptr noundef %31, i32 noundef %32)
  store i32 %33, ptr %10, align 4, !tbaa !9
  br label %38

34:                                               ; preds = %26
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = call i32 @cpNlsNewtonImpl(ptr noundef %35, i32 noundef %36)
  store i32 %37, ptr %10, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %34, %30, %26
  br label %39

39:                                               ; preds = %38, %25, %4
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  store i32 0, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %117

43:                                               ; preds = %39
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.CPodeMemRec, ptr %44, i32 0, i32 111
  %46 = load i64, ptr %45, align 8, !tbaa !17
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr %45, align 8, !tbaa !17
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load double, ptr %8, align 8, !tbaa !11
  call void @cpRestore(ptr noundef %48, double noundef %49)
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = icmp eq i32 %50, -6
  br i1 %51, label %52, label %53

52:                                               ; preds = %43
  store i32 -6, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %117

53:                                               ; preds = %43
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = icmp eq i32 %54, -7
  br i1 %55, label %56, label %57

56:                                               ; preds = %53
  store i32 -7, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %117

57:                                               ; preds = %53
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = icmp eq i32 %58, -8
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  store i32 -8, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %117

61:                                               ; preds = %57
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %62, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CPodeMemRec, ptr %65, i32 0, i32 108
  store double 1.000000e+00, ptr %66, align 8, !tbaa !18
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.CPodeMemRec, ptr %67, i32 0, i32 26
  %69 = load double, ptr %68, align 8, !tbaa !19
  %70 = call double @RAbs(double noundef %69)
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.CPodeMemRec, ptr %71, i32 0, i32 106
  %73 = load double, ptr %72, align 8, !tbaa !20
  %74 = fmul double %73, 0x3FF000010C6F7A0B
  %75 = fcmp ole double %70, %74
  br i1 %75, label %83, label %76

76:                                               ; preds = %61
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.CPodeMemRec, ptr %79, i32 0, i32 105
  %81 = load i32, ptr %80, align 4, !tbaa !21
  %82 = icmp eq i32 %78, %81
  br i1 %82, label %83, label %92

83:                                               ; preds = %76, %61
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = icmp eq i32 %84, 110
  br i1 %85, label %86, label %87

86:                                               ; preds = %83
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %117

87:                                               ; preds = %83
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 111
  br i1 %89, label %90, label %91

90:                                               ; preds = %87
  store i32 -10, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %117

91:                                               ; preds = %87
  br label %92

92:                                               ; preds = %91, %76
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.CPodeMemRec, ptr %93, i32 0, i32 106
  %95 = load double, ptr %94, align 8, !tbaa !20
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.CPodeMemRec, ptr %96, i32 0, i32 26
  %98 = load double, ptr %97, align 8, !tbaa !19
  %99 = call double @RAbs(double noundef %98)
  %100 = fdiv double %95, %99
  %101 = fcmp ogt double 2.500000e-01, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %92
  br label %112

103:                                              ; preds = %92
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.CPodeMemRec, ptr %104, i32 0, i32 106
  %106 = load double, ptr %105, align 8, !tbaa !20
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.CPodeMemRec, ptr %107, i32 0, i32 26
  %109 = load double, ptr %108, align 8, !tbaa !19
  %110 = call double @RAbs(double noundef %109)
  %111 = fdiv double %106, %110
  br label %112

112:                                              ; preds = %103, %102
  %113 = phi double [ 2.500000e-01, %102 ], [ %111, %103 ]
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.CPodeMemRec, ptr %114, i32 0, i32 29
  store double %113, ptr %115, align 8, !tbaa !22
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  call void @cpRescale(ptr noundef %116)
  store i32 3, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %117

117:                                              ; preds = %112, %90, %86, %60, %56, %52, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %118 = load i32, ptr %5, align 4
  ret i32 %118
}

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

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

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

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

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

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

declare double @RAbs(double noundef) #2

declare void @cpRescale(ptr noundef) #2

; 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 44}
!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 8}
!17 = !{!14, !15, i64 1312}
!18 = !{!14, !12, i64 1288}
!19 = !{!14, !12, i64 280}
!20 = !{!14, !12, i64 1272}
!21 = !{!14, !10, i64 1268}
!22 = !{!14, !12, i64 304}


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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -10, 4) i32 @cpNls(ptr noundef %0, i32 noundef %1, double noundef %2, ptr nocapture noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 44
  %6 = load i32, ptr %5, align 4, !tbaa !5
  switch i32 %6, label %.thread [
    i32 1, label %7
    i32 2, label %14
  ]

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !13
  switch i32 %9, label %.thread [
    i32 1, label %10
    i32 2, label %12
  ]

10:                                               ; preds = %7
  %11 = tail call i32 @cpNlsFunctionalExpl(ptr noundef nonnull %0)
  br label %21

12:                                               ; preds = %7
  %13 = tail call i32 @cpNlsFunctionalImpl(ptr noundef nonnull %0)
  br label %21

14:                                               ; preds = %4
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !13
  switch i32 %16, label %.thread [
    i32 1, label %17
    i32 2, label %19
  ]

17:                                               ; preds = %14
  %18 = tail call i32 @cpNlsNewtonExpl(ptr noundef nonnull %0, i32 noundef %1)
  br label %21

19:                                               ; preds = %14
  %20 = tail call i32 @cpNlsNewtonImpl(ptr noundef nonnull %0, i32 noundef %1)
  br label %21

21:                                               ; preds = %17, %19, %10, %12
  %.0 = phi i32 [ %20, %19 ], [ %18, %17 ], [ %13, %12 ], [ %11, %10 ]
  %22 = icmp eq i32 %.0, 0
  br i1 %22, label %.thread, label %23

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 1312
  %25 = load i64, ptr %24, align 8, !tbaa !14
  %26 = add nsw i64 %25, 1
  store i64 %26, ptr %24, align 8, !tbaa !14
  tail call void @cpRestore(ptr noundef nonnull %0, double noundef %2) #2
  %switch.tableidx = add i32 %.0, 8
  %27 = icmp ult i32 %switch.tableidx, 3
  br i1 %27, label %.thread, label %28

28:                                               ; preds = %23
  %29 = load i32, ptr %3, align 4, !tbaa !15
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %3, align 4, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %0, i64 1288
  store double 1.000000e+00, ptr %31, align 8, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %0, i64 280
  %33 = load double, ptr %32, align 8, !tbaa !17
  %34 = tail call double @RAbs(double noundef %33) #2
  %35 = getelementptr inbounds i8, ptr %0, i64 1272
  %36 = load double, ptr %35, align 8, !tbaa !18
  %37 = fmul double %36, 0x3FF000010C6F7A0B
  %38 = fcmp ugt double %34, %37
  br i1 %38, label %39, label %44

39:                                               ; preds = %28
  %40 = load i32, ptr %3, align 4, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %0, i64 1268
  %42 = load i32, ptr %41, align 4, !tbaa !19
  %43 = icmp eq i32 %40, %42
  br i1 %43, label %44, label %46

44:                                               ; preds = %39, %28
  switch i32 %.0, label %46 [
    i32 110, label %.thread
    i32 111, label %45
  ]

45:                                               ; preds = %44
  br label %.thread

46:                                               ; preds = %44, %39
  %47 = load double, ptr %32, align 8, !tbaa !17
  %48 = tail call double @RAbs(double noundef %47) #2
  %49 = fdiv double %36, %48
  %50 = fcmp olt double %49, 2.500000e-01
  br i1 %50, label %56, label %51

51:                                               ; preds = %46
  %52 = load double, ptr %35, align 8, !tbaa !18
  %53 = load double, ptr %32, align 8, !tbaa !17
  %54 = tail call double @RAbs(double noundef %53) #2
  %55 = fdiv double %52, %54
  br label %56

56:                                               ; preds = %46, %51
  %57 = phi double [ %55, %51 ], [ 2.500000e-01, %46 ]
  %58 = getelementptr inbounds i8, ptr %0, i64 304
  store double %57, ptr %58, align 8, !tbaa !20
  tail call void @cpRescale(ptr noundef nonnull %0) #2
  br label %.thread

.thread:                                          ; preds = %23, %7, %14, %4, %44, %21, %56, %45
  %.030 = phi i32 [ -10, %45 ], [ 3, %56 ], [ 0, %21 ], [ -4, %44 ], [ 0, %4 ], [ 0, %14 ], [ 0, %7 ], [ %.0, %23 ]
  ret i32 %.030
}

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

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

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

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

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

declare double @RAbs(double noundef) local_unnamed_addr #1

declare void @cpRescale(ptr noundef) local_unnamed_addr #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 = { "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 44}
!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, !12, i64 1312}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !7, i64 1288}
!17 = !{!6, !7, i64 280}
!18 = !{!6, !7, i64 1272}
!19 = !{!6, !10, i64 1268}
!20 = !{!6, !7, i64 304}


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