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

; 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 [73 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 double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  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 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %19 = call ptr @N_VNew_Serial(i64 noundef 4)
  store ptr %19, ptr %3, align 8, !tbaa !5
  %20 = call ptr @N_VNew_Serial(i64 noundef 4)
  store ptr %20, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._generic_N_Vector, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds double, ptr %25, i64 0
  store double 1.000000e+00, ptr %26, align 8, !tbaa !15
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._generic_N_Vector, ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds double, ptr %31, i64 1
  store double 0.000000e+00, ptr %32, align 8, !tbaa !15
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._generic_N_Vector, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds double, ptr %37, i64 2
  store double 0.000000e+00, ptr %38, align 8, !tbaa !15
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._generic_N_Vector, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %41, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds double, ptr %43, i64 3
  store double 0.000000e+00, ptr %44, align 8, !tbaa !15
  store double 1.000000e-08, ptr %6, align 8, !tbaa !15
  store double 1.000000e-08, ptr %7, align 8, !tbaa !15
  store i32 30, ptr %17, align 4, !tbaa !17
  %45 = load i32, ptr %17, align 4, !tbaa !17
  %46 = sitofp i32 %45 to double
  %47 = fmul double %46, 1.000000e+00
  store double %47, ptr %10, align 8, !tbaa !15
  %48 = call ptr @CPodeCreate(i32 noundef 1, i32 noundef 2, i32 noundef 2)
  store ptr %48, ptr %2, align 8, !tbaa !5
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load double, ptr %6, align 8, !tbaa !15
  %53 = call i32 @CPodeInit(ptr noundef %49, ptr noundef @f, ptr noundef null, double noundef 0.000000e+00, ptr noundef %50, ptr noundef %51, i32 noundef 1, double noundef %52, ptr noundef %7)
  store i32 %53, ptr %18, align 4, !tbaa !17
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = call i32 @CPodeSetMaxNumSteps(ptr noundef %54, i64 noundef 50000)
  store i32 %55, ptr %18, align 4, !tbaa !17
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = load double, ptr %10, align 8, !tbaa !15
  %58 = call i32 @CPodeSetStopTime(ptr noundef %56, double noundef %57)
  store i32 %58, ptr %18, align 4, !tbaa !17
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = call i32 @CPLapackDense(ptr noundef %59, i32 noundef 4)
  store i32 %60, ptr %18, align 4, !tbaa !17
  %61 = call ptr @N_VNew_Serial(i64 noundef 3)
  store ptr %61, ptr %5, align 8, !tbaa !5
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._generic_N_Vector, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds double, ptr %66, i64 0
  store double 1.000000e-08, ptr %67, align 8, !tbaa !15
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._generic_N_Vector, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %70, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = getelementptr inbounds double, ptr %72, i64 1
  store double 1.000000e-08, ptr %73, align 8, !tbaa !15
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._generic_N_Vector, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %76, i32 0, i32 2
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds double, ptr %78, i64 2
  store double 1.000000e-08, ptr %79, align 8, !tbaa !15
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = call i32 @CPodeProjInit(ptr noundef %80, i32 noundef 1, i32 noundef 2, ptr noundef @cfun, ptr noundef null, ptr noundef %81)
  store i32 %82, ptr %18, align 4, !tbaa !17
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = call i32 @CPodeSetProjTestCnstr(ptr noundef %83, i32 noundef 1)
  store i32 %84, ptr %18, align 4, !tbaa !17
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = call i32 @CPLapackDenseProj(ptr noundef %85, i32 noundef 3, i32 noundef 4, i32 noundef 4)
  store i32 %86, ptr %18, align 4, !tbaa !17
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = call i32 @CPodeCalcIC(ptr noundef %87)
  store i32 %88, ptr %18, align 4, !tbaa !17
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = call i32 @CPodeGetConsistentIC(ptr noundef %89, ptr noundef %90, ptr noundef null)
  store i32 %91, ptr %18, align 4, !tbaa !17
  store double 0.000000e+00, ptr %8, align 8, !tbaa !15
  store i32 1, ptr %16, align 4, !tbaa !17
  br label %92

92:                                               ; preds = %151, %0
  %93 = load i32, ptr %16, align 4, !tbaa !17
  %94 = load i32, ptr %17, align 4, !tbaa !17
  %95 = icmp sle i32 %93, %94
  br i1 %95, label %96, label %154

96:                                               ; preds = %92
  %97 = load i32, ptr %16, align 4, !tbaa !17
  %98 = sitofp i32 %97 to double
  %99 = fmul double %98, 1.000000e+00
  store double %99, ptr %9, align 8, !tbaa !15
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = load double, ptr %9, align 8, !tbaa !15
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = call i32 @CPode(ptr noundef %100, double noundef %101, ptr noundef %8, ptr noundef %102, ptr noundef %103, i32 noundef 3)
  store i32 %104, ptr %18, align 4, !tbaa !17
  %105 = load i32, ptr %18, align 4, !tbaa !17
  %106 = icmp slt i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %96
  br label %154

108:                                              ; preds = %96
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._generic_N_Vector, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = getelementptr inbounds double, ptr %113, i64 0
  %115 = load double, ptr %114, align 8, !tbaa !15
  store double %115, ptr %11, align 8, !tbaa !15
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._generic_N_Vector, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %118, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = getelementptr inbounds double, ptr %120, i64 1
  %122 = load double, ptr %121, align 8, !tbaa !15
  store double %122, ptr %12, align 8, !tbaa !15
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._generic_N_Vector, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %125, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = getelementptr inbounds double, ptr %127, i64 2
  %129 = load double, ptr %128, align 8, !tbaa !15
  store double %129, ptr %13, align 8, !tbaa !15
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct._generic_N_Vector, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %132, i32 0, i32 2
  %134 = load ptr, ptr %133, align 8, !tbaa !11
  %135 = getelementptr inbounds double, ptr %134, i64 3
  %136 = load double, ptr %135, align 8, !tbaa !15
  store double %136, ptr %14, align 8, !tbaa !15
  %137 = load double, ptr %11, align 8, !tbaa !15
  %138 = load double, ptr %11, align 8, !tbaa !15
  %139 = load double, ptr %12, align 8, !tbaa !15
  %140 = load double, ptr %12, align 8, !tbaa !15
  %141 = fmul double %139, %140
  %142 = call double @llvm.fmuladd.f64(double %137, double %138, double %141)
  %143 = fsub double %142, 1.000000e+00
  store double %143, ptr %15, align 8, !tbaa !15
  %144 = load double, ptr %8, align 8, !tbaa !15
  %145 = load double, ptr %11, align 8, !tbaa !15
  %146 = load double, ptr %12, align 8, !tbaa !15
  %147 = load double, ptr %13, align 8, !tbaa !15
  %148 = load double, ptr %14, align 8, !tbaa !15
  %149 = load double, ptr %15, align 8, !tbaa !15
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %144, double noundef %145, double noundef %146, double noundef %147, double noundef %148, double noundef %149)
  br label %151

151:                                              ; preds = %108
  %152 = load i32, ptr %16, align 4, !tbaa !17
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %16, align 4, !tbaa !17
  br label %92, !llvm.loop !18

154:                                              ; preds = %107, %92
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  call void @PrintFinalStats(ptr noundef %155)
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %156)
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %157)
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  call void @N_VDestroy_Serial(ptr noundef %158)
  call void @CPodeFree(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  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

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 @CPodeSetMaxNumSteps(ptr noundef, i64 noundef) #2

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

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

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

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

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

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

declare i32 @CPodeCalcIC(ptr noundef) #2

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

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

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

declare i32 @printf(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 = { 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, !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}
!18 = distinct !{!18, !19}
!19 = !{!"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"

@.str = external hidden unnamed_addr constant [73 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 double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %4 = tail call ptr @N_VNew_Serial(i64 noundef 4) #6
  %5 = tail call ptr @N_VNew_Serial(i64 noundef 4) #6
  %6 = load ptr, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !10
  store double 1.000000e+00, ptr %8, align 8, !tbaa !14
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, i8 0, i64 24, i1 false)
  store double 1.000000e-08, ptr %2, align 8, !tbaa !14
  %10 = tail call ptr @CPodeCreate(i32 noundef 1, i32 noundef 2, i32 noundef 2) #6
  store ptr %10, ptr %1, align 8, !tbaa !16
  %11 = call i32 @CPodeInit(ptr noundef %10, ptr noundef nonnull @f, ptr noundef null, double noundef 0.000000e+00, ptr noundef nonnull %4, ptr noundef %5, i32 noundef 1, double noundef 1.000000e-08, ptr noundef nonnull %2) #6
  %12 = call i32 @CPodeSetMaxNumSteps(ptr noundef %10, i64 noundef 50000) #6
  %13 = call i32 @CPodeSetStopTime(ptr noundef %10, double noundef 3.000000e+01) #6
  %14 = call i32 @CPLapackDense(ptr noundef %10, i32 noundef 4) #6
  %15 = call ptr @N_VNew_Serial(i64 noundef 3) #6
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !10
  store <2 x double> <double 1.000000e-08, double 1.000000e-08>, ptr %18, align 8, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store double 1.000000e-08, ptr %19, align 8, !tbaa !14
  %20 = call i32 @CPodeProjInit(ptr noundef %10, i32 noundef 1, i32 noundef 2, ptr noundef nonnull @cfun, ptr noundef null, ptr noundef nonnull %15) #6
  %21 = call i32 @CPodeSetProjTestCnstr(ptr noundef %10, i32 noundef 1) #6
  %22 = call i32 @CPLapackDenseProj(ptr noundef %10, i32 noundef 3, i32 noundef 4, i32 noundef 4) #6
  %23 = call i32 @CPodeCalcIC(ptr noundef %10) #6
  %24 = call i32 @CPodeGetConsistentIC(ptr noundef %10, ptr noundef nonnull %4, ptr noundef null) #6
  store double 0.000000e+00, ptr %3, align 8, !tbaa !14
  br label %25

25:                                               ; preds = %0, %29
  %.037 = phi i32 [ 1, %0 ], [ %45, %29 ]
  %26 = uitofp nneg i32 %.037 to double
  %27 = call i32 @CPode(ptr noundef %10, double noundef %26, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %5, i32 noundef 3) #6
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %46, label %29

29:                                               ; preds = %25
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !10
  %33 = load double, ptr %32, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %32, i64 8
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %32, i64 16
  %37 = load double, ptr %36, align 8, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %32, i64 24
  %39 = load double, ptr %38, align 8, !tbaa !14
  %40 = fmul double %35, %35
  %41 = call double @llvm.fmuladd.f64(double %33, double %33, double %40)
  %42 = fadd double %41, -1.000000e+00
  %43 = load double, ptr %3, align 8, !tbaa !14
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %43, double noundef %33, double noundef %35, double noundef %37, double noundef %39, double noundef %42)
  %45 = add nuw nsw i32 %.037, 1
  %exitcond.not = icmp eq i32 %45, 31
  br i1 %exitcond.not, label %46, label %25, !llvm.loop !17

46:                                               ; preds = %25, %29
  call void @PrintFinalStats(ptr noundef %10)
  call void @N_VDestroy_Serial(ptr noundef nonnull %4) #6
  call void @N_VDestroy_Serial(ptr noundef %5) #6
  call void @N_VDestroy_Serial(ptr noundef nonnull %15) #6
  call void @CPodeFree(ptr noundef nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  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

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 @CPodeSetMaxNumSteps(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

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

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

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

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

declare i32 @CPodeCalcIC(ptr noundef) local_unnamed_addr #2

declare i32 @CPodeGetConsistentIC(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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

; 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) #5

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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