; 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.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [44 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

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

15:                                               ; preds = %4
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef null, i32 noundef -21, ptr noundef @.str, ptr noundef @.str.23, ptr noundef @.str.2)
  store i32 -21, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %108

16:                                               ; preds = %4
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %17, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.CPodeMemRec, ptr %18, i32 0, i32 147
  %20 = load i32, ptr %19, align 8, !tbaa !13
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %16
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %23, i32 noundef -23, ptr noundef @.str, ptr noundef @.str.23, ptr noundef @.str.24)
  store i32 -23, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %108

24:                                               ; preds = %16
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = icmp ne i32 %25, 1
  br i1 %26, label %27, label %32

27:                                               ; preds = %24
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 2
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %31, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.23, ptr noundef @.str.25)
  store i32 -22, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %108

32:                                               ; preds = %27, %24
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %37

35:                                               ; preds = %32
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %36, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.23, ptr noundef @.str.26)
  store i32 -22, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %108

37:                                               ; preds = %32
  %38 = load double, ptr %8, align 8, !tbaa !11
  %39 = fcmp olt double %38, 0.000000e+00
  br i1 %39, label %40, label %42

40:                                               ; preds = %37
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %41, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.23, ptr noundef @.str.27)
  store i32 -22, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %108

42:                                               ; preds = %37
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %50

45:                                               ; preds = %42
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load double, ptr %46, align 8, !tbaa !11
  %48 = fcmp olt double %47, 0.000000e+00
  %49 = zext i1 %48 to i32
  store i32 %49, ptr %11, align 4, !tbaa !9
  br label %55

50:                                               ; preds = %42
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = call double @N_VMin(ptr noundef %51)
  %53 = fcmp olt double %52, 0.000000e+00
  %54 = zext i1 %53 to i32
  store i32 %54, ptr %11, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %50, %45
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %59, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.23, ptr noundef @.str.28)
  store i32 -22, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %108

60:                                               ; preds = %55
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.CPodeMemRec, ptr %62, i32 0, i32 7
  store i32 %61, ptr %63, align 8, !tbaa !16
  %64 = load double, ptr %8, align 8, !tbaa !11
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CPodeMemRec, ptr %65, i32 0, i32 8
  store double %64, ptr %66, align 8, !tbaa !17
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %74

69:                                               ; preds = %60
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.CPodeMemRec, ptr %72, i32 0, i32 9
  store double %71, ptr %73, align 8, !tbaa !18
  br label %107

74:                                               ; preds = %60
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.CPodeMemRec, ptr %75, i32 0, i32 148
  %77 = load i32, ptr %76, align 4, !tbaa !19
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %102, label %79

79:                                               ; preds = %74
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.CPodeMemRec, ptr %80, i32 0, i32 14
  %82 = load ptr, ptr %81, align 8, !tbaa !20
  %83 = call ptr @N_VClone(ptr noundef %82)
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.CPodeMemRec, ptr %84, i32 0, i32 10
  store ptr %83, ptr %85, align 8, !tbaa !21
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.CPodeMemRec, ptr %86, i32 0, i32 119
  %88 = load i64, ptr %87, align 8, !tbaa !22
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.CPodeMemRec, ptr %89, i32 0, i32 123
  %91 = load i64, ptr %90, align 8, !tbaa !23
  %92 = add nsw i64 %91, %88
  store i64 %92, ptr %90, align 8, !tbaa !23
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.CPodeMemRec, ptr %93, i32 0, i32 120
  %95 = load i64, ptr %94, align 8, !tbaa !24
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.CPodeMemRec, ptr %96, i32 0, i32 124
  %98 = load i64, ptr %97, align 8, !tbaa !25
  %99 = add nsw i64 %98, %95
  store i64 %99, ptr %97, align 8, !tbaa !25
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.CPodeMemRec, ptr %100, i32 0, i32 148
  store i32 1, ptr %101, align 4, !tbaa !19
  br label %102

102:                                              ; preds = %79, %74
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.CPodeMemRec, ptr %104, i32 0, i32 10
  %106 = load ptr, ptr %105, align 8, !tbaa !21
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %103, ptr noundef %106)
  br label %107

107:                                              ; preds = %102, %69
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %108

108:                                              ; preds = %107, %58, %40, %35, %30, %22, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %109 = load i32, ptr %5, align 4
  ret i32 %109
}

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

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 1584}
!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 48}
!17 = !{!14, !12, i64 56}
!18 = !{!14, !12, i64 64}
!19 = !{!14, !10, i64 1588}
!20 = !{!14, !6, i64 200}
!21 = !{!14, !6, i64 72}
!22 = !{!14, !15, i64 1376}
!23 = !{!14, !15, i64 1408}
!24 = !{!14, !15, i64 1384}
!25 = !{!14, !15, i64 1416}


; 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.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

6:                                                ; preds = %4
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef null, i32 noundef -21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2) #2
  br label %49

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

11:                                               ; preds = %7
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -23, ptr noundef nonnull @.str, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.24) #2
  br label %49

12:                                               ; preds = %7
  %13 = add i32 %1, -3
  %or.cond = icmp ult i32 %13, -2
  br i1 %or.cond, label %14, label %15

14:                                               ; preds = %12
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.25) #2
  br label %49

15:                                               ; preds = %12
  %16 = icmp eq ptr %3, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %15
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.26) #2
  br label %49

18:                                               ; preds = %15
  %19 = fcmp olt double %2, 0.000000e+00
  br i1 %19, label %20, label %21

20:                                               ; preds = %18
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.27) #2
  br label %49

21:                                               ; preds = %18
  %22 = icmp eq i32 %1, 1
  br i1 %22, label %23, label %.thread

23:                                               ; preds = %21
  %24 = load double, ptr %3, align 8, !tbaa !13
  %.0.in = fcmp olt double %24, 0.000000e+00
  br i1 %.0.in, label %26, label %27

.thread:                                          ; preds = %21
  %25 = tail call double @N_VMin(ptr noundef nonnull %3) #2
  %.0.in39 = fcmp olt double %25, 0.000000e+00
  br i1 %.0.in39, label %26, label %32

26:                                               ; preds = %.thread, %23
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.28) #2
  br label %49

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 1, ptr %28, align 8, !tbaa !14
  %29 = getelementptr inbounds i8, ptr %0, i64 56
  store double %2, ptr %29, align 8, !tbaa !15
  %30 = load double, ptr %3, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %0, i64 64
  store double %30, ptr %31, align 8, !tbaa !16
  br label %49

32:                                               ; preds = %.thread
  %33 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %1, ptr %33, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %0, i64 56
  store double %2, ptr %34, align 8, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %0, i64 1588
  %36 = load i32, ptr %35, align 4, !tbaa !17
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %37, label %._crit_edge

._crit_edge:                                      ; preds = %32
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 72
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !18
  br label %47

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %0, i64 200
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = tail call ptr @N_VClone(ptr noundef %39) #2
  %41 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %40, ptr %41, align 8, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %0, i64 1376
  %43 = getelementptr inbounds i8, ptr %0, i64 1408
  %44 = load <2 x i64>, ptr %42, align 8, !tbaa !20
  %45 = load <2 x i64>, ptr %43, align 8, !tbaa !20
  %46 = add nsw <2 x i64> %45, %44
  store <2 x i64> %46, ptr %43, align 8, !tbaa !20
  store i32 1, ptr %35, align 4, !tbaa !17
  br label %47

47:                                               ; preds = %._crit_edge, %37
  %48 = phi ptr [ %.pre, %._crit_edge ], [ %40, %37 ]
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef nonnull %3, ptr noundef %48) #2
  br label %49

49:                                               ; preds = %27, %47, %26, %20, %17, %14, %11, %6
  %.034 = phi i32 [ -21, %6 ], [ -23, %11 ], [ -22, %14 ], [ -22, %17 ], [ -22, %20 ], [ -22, %26 ], [ 0, %47 ], [ 0, %27 ]
  ret i32 %.034
}

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

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


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