; LLVM IR from simbody/simbody :: SimTKmath/Integrators/src/CPodes/sundials/tests (cpsPend_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.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [48 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 ptr @N_VNew_Serial(i64 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @GetSol(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, i32 noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !11
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %29 = load i32, ptr %11, align 4, !tbaa !11
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %6
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call i32 @CPodeSetProjFrequency(ptr noundef %33, i64 noundef 1)
  br label %39

35:                                               ; preds = %6
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = call i32 @CPodeSetProjFrequency(ptr noundef %36, i64 noundef 0)
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %39

39:                                               ; preds = %35, %31
  %40 = call ptr @N_VNew_Serial(i64 noundef 4)
  store ptr %40, ptr %13, align 8, !tbaa !5
  %41 = call ptr @N_VNew_Serial(i64 noundef 4)
  store ptr %41, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load double, ptr %9, align 8, !tbaa !9
  %45 = call i32 @CPodeReInit(ptr noundef %42, ptr noundef @f, ptr noundef null, double noundef 0.000000e+00, ptr noundef %43, ptr noundef null, i32 noundef 1, double noundef %44, ptr noundef %9)
  store i32 %45, ptr %21, align 4, !tbaa !11
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load double, ptr %10, align 8, !tbaa !9
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = call i32 @CPode(ptr noundef %46, double noundef %47, ptr noundef %15, ptr noundef %48, ptr noundef %49, i32 noundef 3)
  store i32 %50, ptr %21, align 4, !tbaa !11
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._generic_N_Vector, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = getelementptr inbounds double, ptr %55, i64 0
  %57 = load double, ptr %56, align 8, !tbaa !9
  store double %57, ptr %16, align 8, !tbaa !9
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._generic_N_Vector, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = getelementptr inbounds double, ptr %62, i64 1
  %64 = load double, ptr %63, align 8, !tbaa !9
  store double %64, ptr %17, align 8, !tbaa !9
  %65 = load double, ptr %16, align 8, !tbaa !9
  %66 = load double, ptr %16, align 8, !tbaa !9
  %67 = load double, ptr %17, align 8, !tbaa !9
  %68 = load double, ptr %17, align 8, !tbaa !9
  %69 = fmul double %67, %68
  %70 = call double @llvm.fmuladd.f64(double %65, double %66, double %69)
  %71 = fsub double %70, 1.000000e+00
  %72 = call double @RAbs(double noundef %71)
  store double %72, ptr %20, align 8, !tbaa !9
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %73, double noundef -1.000000e+00, ptr noundef %74, ptr noundef %75)
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  call void @N_VAbs(ptr noundef %76, ptr noundef %77)
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._generic_N_Vector, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  %83 = getelementptr inbounds double, ptr %82, i64 0
  %84 = load double, ptr %83, align 8, !tbaa !9
  store double %84, ptr %16, align 8, !tbaa !9
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._generic_N_Vector, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = getelementptr inbounds double, ptr %89, i64 1
  %91 = load double, ptr %90, align 8, !tbaa !9
  store double %91, ptr %17, align 8, !tbaa !9
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._generic_N_Vector, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  %97 = getelementptr inbounds double, ptr %96, i64 2
  %98 = load double, ptr %97, align 8, !tbaa !9
  store double %98, ptr %18, align 8, !tbaa !9
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._generic_N_Vector, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !13
  %102 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %101, i32 0, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !15
  %104 = getelementptr inbounds double, ptr %103, i64 3
  %105 = load double, ptr %104, align 8, !tbaa !9
  store double %105, ptr %19, align 8, !tbaa !9
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._generic_N_Vector, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = getelementptr inbounds double, ptr %110, i64 0
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._generic_N_Vector, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !13
  %116 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !15
  %118 = getelementptr inbounds double, ptr %117, i64 1
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._generic_N_Vector, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !13
  %123 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %122, i32 0, i32 2
  %124 = load ptr, ptr %123, align 8, !tbaa !15
  %125 = getelementptr inbounds double, ptr %124, i64 2
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._generic_N_Vector, ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !13
  %130 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = getelementptr inbounds double, ptr %131, i64 3
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = load double, ptr %20, align 8, !tbaa !9
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %112, double noundef %119, double noundef %126, double noundef %133, double noundef %134)
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = call i32 @CPodeGetNumSteps(ptr noundef %136, ptr noundef %22)
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = call i32 @CPodeGetNumFctEvals(ptr noundef %138, ptr noundef %23)
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = call i32 @CPodeGetNumLinSolvSetups(ptr noundef %140, ptr noundef %24)
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = call i32 @CPodeGetNumErrTestFails(ptr noundef %142, ptr noundef %28)
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = call i32 @CPodeGetNumNonlinSolvConvFails(ptr noundef %144, ptr noundef %27)
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = call i32 @CPDlsGetNumJacEvals(ptr noundef %146, ptr noundef %25)
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = call i32 @CPDlsGetNumFctEvals(ptr noundef %148, ptr noundef %26)
  %150 = load i64, ptr %22, align 8, !tbaa !18
  %151 = load i64, ptr %23, align 8, !tbaa !18
  %152 = load i64, ptr %26, align 8, !tbaa !18
  %153 = load i64, ptr %24, align 8, !tbaa !18
  %154 = load i64, ptr %25, align 8, !tbaa !18
  %155 = load i64, ptr %27, align 8, !tbaa !18
  %156 = load i64, ptr %28, align 8, !tbaa !18
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %150, i64 noundef %151, i64 noundef %152, i64 noundef %153, i64 noundef %154, i64 noundef %155, i64 noundef %156)
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %158)
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %159)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret void
}

declare void @N_VDestroy_Serial(ptr noundef) #1

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

declare i32 @CPodeSetProjFrequency(ptr noundef, i64 noundef) #1

declare i32 @CPodeReInit(ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef) #1

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

declare double @RAbs(double noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare void @N_VLinearSum(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #1

declare void @N_VAbs(ptr noundef, ptr noundef) #1

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

declare i32 @CPodeGetNumFctEvals(ptr noundef, ptr noundef) #1

declare i32 @CPodeGetNumLinSolvSetups(ptr noundef, ptr noundef) #1

declare i32 @CPodeGetNumErrTestFails(ptr noundef, ptr noundef) #1

declare i32 @CPodeGetNumNonlinSolvConvFails(ptr noundef, ptr noundef) #1

declare i32 @CPDlsGetNumJacEvals(ptr noundef, ptr noundef) #1

declare i32 @CPDlsGetNumFctEvals(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_generic_N_Vector", !6, i64 0, !6, i64 8}
!15 = !{!16, !6, i64 16}
!16 = !{!"_N_VectorContent_Serial", !17, i64 0, !12, i64 8, !6, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!17, !17, 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.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [48 x i8], align 1

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

declare ptr @N_VNew_Serial(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @GetSol(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store double %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %19, label %16

16:                                               ; preds = %6
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %18 = tail call i32 @CPodeSetProjFrequency(ptr noundef %0, i64 noundef 1) #5
  br label %22

19:                                               ; preds = %6
  %20 = tail call i32 @CPodeSetProjFrequency(ptr noundef %0, i64 noundef 0) #5
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %22

22:                                               ; preds = %19, %16
  %23 = tail call ptr @N_VNew_Serial(i64 noundef 4) #5
  %24 = tail call ptr @N_VNew_Serial(i64 noundef 4) #5
  %25 = call i32 @CPodeReInit(ptr noundef %0, ptr noundef nonnull @f, ptr noundef null, double noundef 0.000000e+00, ptr noundef %1, ptr noundef null, i32 noundef 1, double noundef %2, ptr noundef nonnull %7) #5
  %26 = call i32 @CPode(ptr noundef %0, double noundef %3, ptr noundef nonnull %8, ptr noundef %23, ptr noundef %24, i32 noundef 3) #5
  %27 = load ptr, ptr %23, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %29, i64 8
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = fmul double %32, %32
  %34 = call double @llvm.fmuladd.f64(double %30, double %30, double %33)
  %35 = fadd double %34, -1.000000e+00
  %36 = call double @RAbs(double noundef %35) #5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef nonnull %23, double noundef -1.000000e+00, ptr noundef %5, ptr noundef nonnull %23) #5
  call void @N_VAbs(ptr noundef nonnull %23, ptr noundef nonnull %23) #5
  %37 = load ptr, ptr %23, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %39 = load ptr, ptr %38, align 8, !tbaa !12
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = getelementptr inbounds i8, ptr %39, i64 16
  %42 = getelementptr inbounds i8, ptr %39, i64 24
  %43 = load double, ptr %39, align 8, !tbaa !5
  %44 = load double, ptr %40, align 8, !tbaa !5
  %45 = load double, ptr %41, align 8, !tbaa !5
  %46 = load double, ptr %42, align 8, !tbaa !5
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %43, double noundef %44, double noundef %45, double noundef %46, double noundef %36)
  %48 = call i32 @CPodeGetNumSteps(ptr noundef %0, ptr noundef nonnull %9) #5
  %49 = call i32 @CPodeGetNumFctEvals(ptr noundef %0, ptr noundef nonnull %10) #5
  %50 = call i32 @CPodeGetNumLinSolvSetups(ptr noundef %0, ptr noundef nonnull %11) #5
  %51 = call i32 @CPodeGetNumErrTestFails(ptr noundef %0, ptr noundef nonnull %15) #5
  %52 = call i32 @CPodeGetNumNonlinSolvConvFails(ptr noundef %0, ptr noundef nonnull %14) #5
  %53 = call i32 @CPDlsGetNumJacEvals(ptr noundef %0, ptr noundef nonnull %12) #5
  %54 = call i32 @CPDlsGetNumFctEvals(ptr noundef %0, ptr noundef nonnull %13) #5
  %55 = load i64, ptr %9, align 8, !tbaa !16
  %56 = load i64, ptr %10, align 8, !tbaa !16
  %57 = load i64, ptr %13, align 8, !tbaa !16
  %58 = load i64, ptr %11, align 8, !tbaa !16
  %59 = load i64, ptr %12, align 8, !tbaa !16
  %60 = load i64, ptr %14, align 8, !tbaa !16
  %61 = load i64, ptr %15, align 8, !tbaa !16
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %55, i64 noundef %56, i64 noundef %57, i64 noundef %58, i64 noundef %59, i64 noundef %60, i64 noundef %61)
  call void @N_VDestroy_Serial(ptr noundef nonnull %23) #5
  call void @N_VDestroy_Serial(ptr noundef %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  ret void
}

declare void @N_VDestroy_Serial(ptr noundef) local_unnamed_addr #1

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

declare i32 @CPodeSetProjFrequency(ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @CPodeReInit(ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

declare double @RAbs(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

declare void @N_VAbs(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @CPodeGetNumFctEvals(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @CPodeGetNumLinSolvSetups(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @CPodeGetNumErrTestFails(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @CPodeGetNumNonlinSolvConvFails(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @CPDlsGetNumJacEvals(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @CPDlsGetNumFctEvals(ptr noundef, ptr noundef) local_unnamed_addr #1

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass