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

; 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.anon = type { double, double, double, double, double }

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store ptr null, ptr %9, align 8, !tbaa !5
  store ptr null, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %12, align 8, !tbaa !5
  %16 = call ptr @N_VNew_Serial(i64 noundef 50)
  store ptr %16, ptr %9, align 8, !tbaa !5
  %17 = call ptr @N_VNew_Serial(i64 noundef 50)
  store ptr %17, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  store double 1.000000e-05, ptr %5, align 8, !tbaa !9
  %18 = call noalias ptr @malloc(i64 noundef 40) #6
  store ptr %18, ptr %11, align 8, !tbaa !5
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.anon, ptr %19, i32 0, i32 0
  store double 0x3FC745D1745D1746, ptr %20, align 8, !tbaa !11
  store double 0x3FC745D1745D1746, ptr %2, align 8, !tbaa !9
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.anon, ptr %21, i32 0, i32 1
  store double 0x3FC5555555555555, ptr %22, align 8, !tbaa !13
  store double 0x3FC5555555555555, ptr %3, align 8, !tbaa !9
  %23 = load double, ptr %2, align 8, !tbaa !9
  %24 = load double, ptr %2, align 8, !tbaa !9
  %25 = fmul double %23, %24
  %26 = fdiv double 1.000000e+00, %25
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.anon, ptr %27, i32 0, i32 2
  store double %26, ptr %28, align 8, !tbaa !14
  %29 = load double, ptr %2, align 8, !tbaa !9
  %30 = fmul double 2.000000e+00, %29
  %31 = fdiv double 5.000000e-01, %30
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.anon, ptr %32, i32 0, i32 3
  store double %31, ptr %33, align 8, !tbaa !15
  %34 = load double, ptr %3, align 8, !tbaa !9
  %35 = load double, ptr %3, align 8, !tbaa !9
  %36 = fmul double %34, %35
  %37 = fdiv double 1.000000e+00, %36
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.anon, ptr %38, i32 0, i32 4
  store double %37, ptr %39, align 8, !tbaa !16
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  call void @SetIC(ptr noundef %40, ptr noundef %41)
  %42 = call ptr @CPodeCreate(i32 noundef 1, i32 noundef 2, i32 noundef 2)
  store ptr %42, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load double, ptr %4, align 8, !tbaa !9
  %47 = call i32 @CPodeInit(ptr noundef %43, ptr noundef @f, ptr noundef %44, double noundef 0.000000e+00, ptr noundef %45, ptr noundef null, i32 noundef 1, double noundef %46, ptr noundef %5)
  store i32 %47, ptr %14, align 4, !tbaa !17
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = call i32 @CPBand(ptr noundef %48, i32 noundef 50, i32 noundef 5, i32 noundef 5)
  store i32 %49, ptr %14, align 4, !tbaa !17
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call i32 @CPDlsSetJacFn(ptr noundef %50, ptr noundef @Jac, ptr noundef %51)
  store i32 %52, ptr %14, align 4, !tbaa !17
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = call double @N_VMaxNorm(ptr noundef %53)
  store double %54, ptr %8, align 8, !tbaa !9
  %55 = load double, ptr %4, align 8, !tbaa !9
  %56 = load double, ptr %5, align 8, !tbaa !9
  %57 = load double, ptr %8, align 8, !tbaa !9
  call void @PrintHeader(double noundef %55, double noundef %56, double noundef %57)
  store i32 1, ptr %13, align 4, !tbaa !17
  store double 1.000000e-01, ptr %7, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %74, %0
  %59 = load i32, ptr %13, align 4, !tbaa !17
  %60 = icmp sle i32 %59, 10
  br i1 %60, label %61, label %79

61:                                               ; preds = %58
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load double, ptr %7, align 8, !tbaa !9
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = call i32 @CPode(ptr noundef %62, double noundef %63, ptr noundef %6, ptr noundef %64, ptr noundef %65, i32 noundef 1)
  store i32 %66, ptr %14, align 4, !tbaa !17
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = call double @N_VMaxNorm(ptr noundef %67)
  store double %68, ptr %8, align 8, !tbaa !9
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = call i32 @CPodeGetNumSteps(ptr noundef %69, ptr noundef %15)
  store i32 %70, ptr %14, align 4, !tbaa !17
  %71 = load double, ptr %6, align 8, !tbaa !9
  %72 = load double, ptr %8, align 8, !tbaa !9
  %73 = load i64, ptr %15, align 8, !tbaa !19
  call void @PrintOutput(double noundef %71, double noundef %72, i64 noundef %73)
  br label %74

74:                                               ; preds = %61
  %75 = load i32, ptr %13, align 4, !tbaa !17
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %13, align 4, !tbaa !17
  %77 = load double, ptr %7, align 8, !tbaa !9
  %78 = fadd double %77, 1.000000e-01
  store double %78, ptr %7, align 8, !tbaa !9
  br label %58, !llvm.loop !21

79:                                               ; preds = %58
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  call void @PrintFinalStats(ptr noundef %80)
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %81)
  call void @CPodeFree(ptr noundef %12)
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %82) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @SetIC(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

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

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

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

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

declare double @N_VMaxNorm(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @PrintHeader(double noundef, double noundef, double noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare hidden void @PrintOutput(double noundef, double noundef, i64 noundef) #0

; 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: nounwind
declare void @free(ptr noundef) #4

; 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 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 24}
!16 = !{!12, !10, i64 32}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; 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 noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %5 = tail call ptr @N_VNew_Serial(i64 noundef 50) #5
  %6 = tail call ptr @N_VNew_Serial(i64 noundef 50) #5
  store double 1.000000e-05, ptr %1, align 8, !tbaa !5
  %7 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #6
  store <2 x double> <double 0x3FC745D1745D1746, double 0x3FC5555555555555>, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  store <2 x double> <double 3.025000e+01, double 1.375000e+00>, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %7, i64 32
  store double 3.600000e+01, ptr %9, align 8, !tbaa !9
  tail call void @SetIC(ptr noundef %5, ptr noundef nonnull %7)
  %10 = tail call ptr @CPodeCreate(i32 noundef 1, i32 noundef 2, i32 noundef 2) #5
  store ptr %10, ptr %3, align 8, !tbaa !11
  %11 = call i32 @CPodeInit(ptr noundef %10, ptr noundef nonnull @f, ptr noundef nonnull %7, double noundef 0.000000e+00, ptr noundef %5, ptr noundef null, i32 noundef 1, double noundef 0.000000e+00, ptr noundef nonnull %1) #5
  %12 = call i32 @CPBand(ptr noundef %10, i32 noundef 50, i32 noundef 5, i32 noundef 5) #5
  %13 = call i32 @CPDlsSetJacFn(ptr noundef %10, ptr noundef nonnull @Jac, ptr noundef nonnull %7) #5
  %14 = call double @N_VMaxNorm(ptr noundef %5) #5
  %15 = load double, ptr %1, align 8, !tbaa !5
  call void @PrintHeader(double noundef 0.000000e+00, double noundef %15, double noundef %14)
  %16 = call i32 @CPode(ptr noundef %10, double noundef 1.000000e-01, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %17 = call double @N_VMaxNorm(ptr noundef %5) #5
  %18 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %19 = load double, ptr %2, align 8, !tbaa !5
  %20 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %19, double noundef %17, i64 noundef %20)
  %21 = call i32 @CPode(ptr noundef %10, double noundef 2.000000e-01, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %22 = call double @N_VMaxNorm(ptr noundef %5) #5
  %23 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %24 = load double, ptr %2, align 8, !tbaa !5
  %25 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %24, double noundef %22, i64 noundef %25)
  %26 = call i32 @CPode(ptr noundef %10, double noundef 0x3FD3333333333334, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %27 = call double @N_VMaxNorm(ptr noundef %5) #5
  %28 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %29 = load double, ptr %2, align 8, !tbaa !5
  %30 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %29, double noundef %27, i64 noundef %30)
  %31 = call i32 @CPode(ptr noundef %10, double noundef 4.000000e-01, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %32 = call double @N_VMaxNorm(ptr noundef %5) #5
  %33 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %34 = load double, ptr %2, align 8, !tbaa !5
  %35 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %34, double noundef %32, i64 noundef %35)
  %36 = call i32 @CPode(ptr noundef %10, double noundef 5.000000e-01, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %37 = call double @N_VMaxNorm(ptr noundef %5) #5
  %38 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %39 = load double, ptr %2, align 8, !tbaa !5
  %40 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %39, double noundef %37, i64 noundef %40)
  %41 = call i32 @CPode(ptr noundef %10, double noundef 6.000000e-01, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %42 = call double @N_VMaxNorm(ptr noundef %5) #5
  %43 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %44 = load double, ptr %2, align 8, !tbaa !5
  %45 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %44, double noundef %42, i64 noundef %45)
  %46 = call i32 @CPode(ptr noundef %10, double noundef 0x3FE6666666666666, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %47 = call double @N_VMaxNorm(ptr noundef %5) #5
  %48 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %49 = load double, ptr %2, align 8, !tbaa !5
  %50 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %49, double noundef %47, i64 noundef %50)
  %51 = call i32 @CPode(ptr noundef %10, double noundef 0x3FE9999999999999, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %52 = call double @N_VMaxNorm(ptr noundef %5) #5
  %53 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %54 = load double, ptr %2, align 8, !tbaa !5
  %55 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %54, double noundef %52, i64 noundef %55)
  %56 = call i32 @CPode(ptr noundef %10, double noundef 0x3FECCCCCCCCCCCCC, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %57 = call double @N_VMaxNorm(ptr noundef %5) #5
  %58 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %59 = load double, ptr %2, align 8, !tbaa !5
  %60 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %59, double noundef %57, i64 noundef %60)
  %61 = call i32 @CPode(ptr noundef %10, double noundef 0x3FEFFFFFFFFFFFFF, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, i32 noundef 1) #5
  %62 = call double @N_VMaxNorm(ptr noundef %5) #5
  %63 = call i32 @CPodeGetNumSteps(ptr noundef %10, ptr noundef nonnull %4) #5
  %64 = load double, ptr %2, align 8, !tbaa !5
  %65 = load i64, ptr %4, align 8, !tbaa !13
  call void @PrintOutput(double noundef %64, double noundef %62, i64 noundef %65)
  call void @PrintFinalStats(ptr noundef %10)
  call void @N_VDestroy_Serial(ptr noundef %5) #5
  call void @CPodeFree(ptr noundef nonnull %3) #5
  call void @free(ptr noundef %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @SetIC(ptr noundef, ptr noundef) local_unnamed_addr #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

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

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

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

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

declare double @N_VMaxNorm(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @PrintHeader(double noundef, double noundef, double noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare hidden void @PrintOutput(double noundef, double noundef, i64 noundef) local_unnamed_addr #0

; 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress 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 = { 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 = { 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 #4 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass