; LLVM IR from simbody/simbody :: SimTKmath/Integrators/src/CPodes/sundials/tests (cpsRoberts_dns)

; 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._generic_N_Vector = type { ptr, ptr }
%struct._N_VectorContent_Serial = type { i64, i32, ptr }

@.str = external hidden unnamed_addr constant [49 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [2 x i32], align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %15 = call ptr @N_VNew_Serial(i64 noundef 3)
  store ptr %15, ptr %5, align 8, !tbaa !5
  %16 = call ptr @N_VNew_Serial(i64 noundef 3)
  store ptr %16, ptr %6, align 8, !tbaa !5
  %17 = call ptr @N_VNew_Serial(i64 noundef 3)
  store ptr %17, ptr %7, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct._generic_N_Vector, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %20, i32 0, i32 2
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = getelementptr inbounds double, ptr %22, i64 0
  store double 1.000000e+00, ptr %23, align 8, !tbaa !15
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._generic_N_Vector, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds double, ptr %28, i64 1
  store double 0.000000e+00, ptr %29, align 8, !tbaa !15
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._generic_N_Vector, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds double, ptr %34, i64 2
  store double 0.000000e+00, ptr %35, align 8, !tbaa !15
  store double 1.000000e-04, ptr %8, align 8, !tbaa !15
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._generic_N_Vector, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %38, i32 0, i32 2
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds double, ptr %40, i64 0
  store double 1.000000e-08, ptr %41, align 8, !tbaa !15
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._generic_N_Vector, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %44, i32 0, i32 2
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = getelementptr inbounds double, ptr %46, i64 1
  store double 0x3D06849B86A12B9B, ptr %47, align 8, !tbaa !15
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._generic_N_Vector, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %50, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds double, ptr %52, i64 2
  store double 0x3EB0C6F7A0B5ED8D, ptr %53, align 8, !tbaa !15
  store ptr @f, ptr %2, align 8, !tbaa !5
  store ptr @jacE, ptr %3, align 8, !tbaa !5
  %54 = call ptr @CPodeCreate(i32 noundef 1, i32 noundef 2, i32 noundef 2)
  store ptr %54, ptr %4, align 8, !tbaa !5
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load double, ptr %8, align 8, !tbaa !15
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = call i32 @CPodeInit(ptr noundef %55, ptr noundef %56, ptr noundef null, double noundef 0.000000e+00, ptr noundef %57, ptr noundef %58, i32 noundef 2, double noundef %59, ptr noundef %60)
  store i32 %61, ptr %11, align 4, !tbaa !17
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call i32 @CPodeRootInit(ptr noundef %62, i32 noundef 2, ptr noundef @g, ptr noundef null)
  store i32 %63, ptr %11, align 4, !tbaa !17
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = call i32 @CPDense(ptr noundef %64, i32 noundef 3)
  store i32 %65, ptr %11, align 4, !tbaa !17
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = call i32 @CPDlsSetJacFn(ptr noundef %66, ptr noundef %67, ptr noundef null)
  store i32 %68, ptr %11, align 4, !tbaa !17
  store i32 0, ptr %13, align 4, !tbaa !17
  store double 4.000000e-01, ptr %10, align 8, !tbaa !15
  br label %69

69:                                               ; preds = %126, %0
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load double, ptr %10, align 8, !tbaa !15
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = call i32 @CPode(ptr noundef %71, double noundef %72, ptr noundef %9, ptr noundef %73, ptr noundef %74, i32 noundef 1)
  store i32 %75, ptr %11, align 4, !tbaa !17
  %76 = load double, ptr %9, align 8, !tbaa !15
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._generic_N_Vector, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds double, ptr %81, i64 0
  %83 = load double, ptr %82, align 8, !tbaa !15
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct._generic_N_Vector, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = getelementptr inbounds double, ptr %88, i64 1
  %90 = load double, ptr %89, align 8, !tbaa !15
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._generic_N_Vector, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  %96 = getelementptr inbounds double, ptr %95, i64 2
  %97 = load double, ptr %96, align 8, !tbaa !15
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %76, double noundef %83, double noundef %90, double noundef %97)
  %99 = load i32, ptr %11, align 4, !tbaa !17
  %100 = icmp slt i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %70
  br label %127

102:                                              ; preds = %70
  %103 = load i32, ptr %11, align 4, !tbaa !17
  %104 = icmp eq i32 %103, 2
  br i1 %104, label %105, label %114

105:                                              ; preds = %102
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %108 = call i32 @CPodeGetRootInfo(ptr noundef %106, ptr noundef %107)
  store i32 %108, ptr %12, align 4, !tbaa !17
  %109 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %110 = load i32, ptr %109, align 4, !tbaa !17
  %111 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
  %112 = load i32, ptr %111, align 4, !tbaa !17
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %110, i32 noundef %112)
  br label %114

114:                                              ; preds = %105, %102
  %115 = load i32, ptr %11, align 4, !tbaa !17
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %122

117:                                              ; preds = %114
  %118 = load i32, ptr %13, align 4, !tbaa !17
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %13, align 4, !tbaa !17
  %120 = load double, ptr %10, align 8, !tbaa !15
  %121 = fmul double %120, 1.000000e+01
  store double %121, ptr %10, align 8, !tbaa !15
  br label %122

122:                                              ; preds = %117, %114
  %123 = load i32, ptr %13, align 4, !tbaa !17
  %124 = icmp eq i32 %123, 12
  br i1 %124, label %125, label %126

125:                                              ; preds = %122
  br label %127

126:                                              ; preds = %122
  br label %69

127:                                              ; preds = %125, %101
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  call void @PrintFinalStats(ptr noundef %128)
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %129)
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %130)
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %131)
  call void @CPodeFree(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  ret i32 0
}

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

declare ptr @N_VNew_Serial(i64 noundef) #2

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

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

declare ptr @CPodeCreate(i32 noundef, i32 noundef, i32 noundef) #2

declare i32 @CPodeInit(ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef) #2

declare i32 @CPodeRootInit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

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

declare i32 @CPDense(ptr noundef, i32 noundef) #2

declare i32 @CPDlsSetJacFn(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @CPode(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @printf(ptr noundef, ...) #2

declare i32 @CPodeGetRootInfo(ptr noundef, ptr noundef) #2

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

declare void @N_VDestroy_Serial(ptr noundef) #2

declare void @CPodeFree(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, !6, i64 0}
!10 = !{!"_generic_N_Vector", !6, i64 0, !6, i64 8}
!11 = !{!12, !6, i64 16}
!12 = !{!"_N_VectorContent_Serial", !13, i64 0, !14, i64 8, !6, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!14, !14, i64 0}


; 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 [49 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  %2 = alloca double, align 8
  %3 = alloca [2 x i32], align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %4 = tail call ptr @N_VNew_Serial(i64 noundef 3) #5
  %5 = tail call ptr @N_VNew_Serial(i64 noundef 3) #5
  %6 = tail call ptr @N_VNew_Serial(i64 noundef 3) #5
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !10
  store double 1.000000e+00, ptr %9, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !10
  store <2 x double> <double 1.000000e-08, double 0x3D06849B86A12B9B>, ptr %13, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  store double 0x3EB0C6F7A0B5ED8D, ptr %14, align 8, !tbaa !14
  %15 = tail call ptr @CPodeCreate(i32 noundef 1, i32 noundef 2, i32 noundef 2) #5
  store ptr %15, ptr %1, align 8, !tbaa !16
  %16 = tail call i32 @CPodeInit(ptr noundef %15, ptr noundef nonnull @f, ptr noundef null, double noundef 0.000000e+00, ptr noundef nonnull %4, ptr noundef %5, i32 noundef 2, double noundef 1.000000e-04, ptr noundef nonnull %6) #5
  %17 = tail call i32 @CPodeRootInit(ptr noundef %15, i32 noundef 2, ptr noundef nonnull @g, ptr noundef null) #5
  %18 = tail call i32 @CPDense(ptr noundef %15, i32 noundef 3) #5
  %19 = tail call i32 @CPDlsSetJacFn(ptr noundef %15, ptr noundef nonnull @jacE, ptr noundef null) #5
  %20 = getelementptr inbounds i8, ptr %3, i64 4
  br label %21

21:                                               ; preds = %43, %0
  %.026 = phi double [ 4.000000e-01, %0 ], [ %.127, %43 ]
  %.0 = phi i32 [ 0, %0 ], [ %.1, %43 ]
  %22 = call i32 @CPode(ptr noundef %15, double noundef %.026, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef %5, i32 noundef 1) #5
  %23 = load double, ptr %2, align 8, !tbaa !14
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !10
  %27 = load double, ptr %26, align 8, !tbaa !14
  %28 = getelementptr inbounds i8, ptr %26, i64 8
  %29 = load double, ptr %28, align 8, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %26, i64 16
  %31 = load double, ptr %30, align 8, !tbaa !14
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %23, double noundef %27, double noundef %29, double noundef %31)
  %33 = icmp slt i32 %22, 0
  br i1 %33, label %45, label %34

34:                                               ; preds = %21
  switch i32 %22, label %43 [
    i32 2, label %35
    i32 0, label %40
  ]

35:                                               ; preds = %34
  %36 = call i32 @CPodeGetRootInfo(ptr noundef %15, ptr noundef nonnull %3) #5
  %37 = load i32, ptr %3, align 4, !tbaa !17
  %38 = load i32, ptr %20, align 4, !tbaa !17
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %37, i32 noundef %38)
  br label %43

40:                                               ; preds = %34
  %41 = add nsw i32 %.0, 1
  %42 = fmul double %.026, 1.000000e+01
  br label %43

43:                                               ; preds = %35, %34, %40
  %.127 = phi double [ %42, %40 ], [ %.026, %35 ], [ %.026, %34 ]
  %.1 = phi i32 [ %41, %40 ], [ %.0, %35 ], [ %.0, %34 ]
  %44 = icmp eq i32 %.1, 12
  br i1 %44, label %45, label %21

45:                                               ; preds = %43, %21
  call void @PrintFinalStats(ptr noundef %15)
  call void @N_VDestroy_Serial(ptr noundef nonnull %4) #5
  call void @N_VDestroy_Serial(ptr noundef %5) #5
  call void @N_VDestroy_Serial(ptr noundef nonnull %6) #5
  call void @CPodeFree(ptr noundef nonnull %1) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0
}

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

declare ptr @N_VNew_Serial(i64 noundef) local_unnamed_addr #2

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

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

declare ptr @CPodeCreate(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @CPodeInit(ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare i32 @CPodeRootInit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @CPDense(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @CPDlsSetJacFn(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @CPode(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare i32 @CPodeGetRootInfo(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @N_VDestroy_Serial(ptr noundef) local_unnamed_addr #2

declare void @CPodeFree(ptr noundef) local_unnamed_addr #2

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

; 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 = { mustprogress 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 = { nofree 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 0}
!6 = !{!"_generic_N_Vector", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 16}
!11 = !{!"_N_VectorContent_Serial", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!13, !13, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass