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

; 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 [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

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

69:                                               ; preds = %118, %0
  %70 = load double, ptr %4, align 8, !tbaa !5
  %71 = load double, ptr %6, align 8, !tbaa !5
  %72 = fcmp olt double %70, %71
  br i1 %72, label %73, label %119

73:                                               ; preds = %69
  %74 = load ptr, ptr %10, align 8, !tbaa !9
  %75 = load double, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %8, align 8, !tbaa !9
  %77 = load ptr, ptr %9, align 8, !tbaa !9
  %78 = call i32 @CPode(ptr noundef %74, double noundef %75, ptr noundef %4, ptr noundef %76, ptr noundef %77, i32 noundef 4)
  store i32 %78, ptr %11, align 4, !tbaa !17
  %79 = load i32, ptr %11, align 4, !tbaa !17
  %80 = icmp slt i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %73
  br label %119

82:                                               ; preds = %73
  %83 = load double, ptr %4, align 8, !tbaa !5
  %84 = load ptr, ptr %8, align 8, !tbaa !9
  %85 = load ptr, ptr %9, align 8, !tbaa !9
  %86 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %87 = call i32 @g(double noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef null)
  %88 = load double, ptr %4, align 8, !tbaa !5
  %89 = load ptr, ptr %8, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct._generic_N_Vector, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct._N_VectorContent_Serial, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = getelementptr inbounds double, ptr %93, i64 0
  %95 = load double, ptr %94, align 8, !tbaa !5
  %96 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %97 = load double, ptr %96, align 16, !tbaa !5
  %98 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %101 = load double, ptr %100, align 16, !tbaa !5
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %88, double noundef %95, double noundef %97, double noundef %99, double noundef %101)
  %103 = load i32, ptr %11, align 4, !tbaa !17
  %104 = icmp eq i32 %103, 2
  br i1 %104, label %105, label %116

105:                                              ; preds = %82
  %106 = load ptr, ptr %10, align 8, !tbaa !9
  %107 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
  %108 = call i32 @CPodeGetRootInfo(ptr noundef %106, ptr noundef %107)
  %109 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
  %110 = load i32, ptr %109, align 4, !tbaa !17
  %111 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
  %112 = load i32, ptr %111, align 4, !tbaa !17
  %113 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
  %114 = load i32, ptr %113, align 4, !tbaa !17
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %110, i32 noundef %112, i32 noundef %114)
  br label %118

116:                                              ; preds = %82
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %118

118:                                              ; preds = %116, %105
  br label %69, !llvm.loop !18

119:                                              ; preds = %81, %69
  %120 = load ptr, ptr %8, align 8, !tbaa !9
  call void @N_VDestroy_Serial(ptr noundef %120)
  %121 = load ptr, ptr %9, align 8, !tbaa !9
  call void @N_VDestroy_Serial(ptr noundef %121)
  call void @CPodeFree(ptr noundef %10)
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 12, 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

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

declare i32 @CPodeSetStopTime(ptr noundef, double 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 @CPodeSetRootDirection(ptr noundef, ptr noundef) #2

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

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

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

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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_generic_N_Vector", !10, i64 0, !10, i64 8}
!13 = !{!14, !10, i64 16}
!14 = !{!"_N_VectorContent_Serial", !15, i64 0, !16, i64 8, !10, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!16, !16, 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 [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.lr.ph:
  %0 = alloca double, align 8
  %1 = alloca double, align 8
  %2 = alloca ptr, align 8
  %3 = alloca [3 x i32], align 4
  %4 = alloca [3 x i32], align 4
  %5 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  %6 = tail call ptr @N_VNew_Serial(i64 noundef 1) #4
  %7 = tail call ptr @N_VNew_Serial(i64 noundef 1) #4
  %8 = load ptr, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !10
  store double 0.000000e+00, ptr %10, align 8, !tbaa !14
  %11 = load ptr, ptr %7, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !10
  store double 0.000000e+00, ptr %13, align 8, !tbaa !14
  store double 1.000000e-08, ptr %0, align 8, !tbaa !14
  %14 = tail call ptr @CPodeCreate(i32 noundef 1, i32 noundef 2, i32 noundef 2) #4
  store ptr %14, ptr %2, align 8, !tbaa !16
  %15 = call i32 @CPodeInit(ptr noundef %14, ptr noundef nonnull @f, ptr noundef null, double noundef 0.000000e+00, ptr noundef nonnull %6, ptr noundef null, i32 noundef 1, double noundef 1.000000e-08, ptr noundef nonnull %0) #4
  %16 = call i32 @CPDense(ptr noundef %14, i32 noundef 1) #4
  %17 = call i32 @CPodeSetStopTime(ptr noundef %14, double noundef 1.000000e+01) #4
  %18 = call i32 @CPodeRootInit(ptr noundef %14, i32 noundef 3, ptr noundef nonnull @g, ptr noundef null) #4
  store i32 -1, ptr %3, align 4, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 0, ptr %19, align 4, !tbaa !17
  %20 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 0, ptr %20, align 4, !tbaa !17
  %21 = call i32 @CPodeSetRootDirection(ptr noundef %14, ptr noundef nonnull %3) #4
  store double 0.000000e+00, ptr %1, align 8, !tbaa !14
  %22 = call i32 @g(double noundef 0.000000e+00, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef null)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !10
  %26 = load double, ptr %25, align 8, !tbaa !14
  %27 = load double, ptr %5, align 16, !tbaa !14
  %28 = getelementptr inbounds i8, ptr %5, i64 8
  %29 = load double, ptr %28, align 8, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %5, i64 16
  %31 = load double, ptr %30, align 16, !tbaa !14
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef 0.000000e+00, double noundef %26, double noundef %27, double noundef %29, double noundef %31)
  %33 = getelementptr inbounds i8, ptr %4, i64 4
  %34 = getelementptr inbounds i8, ptr %4, i64 8
  br label %35

35:                                               ; preds = %.lr.ph, %59
  %36 = call i32 @CPode(ptr noundef %14, double noundef 1.000000e+01, ptr noundef nonnull %1, ptr noundef nonnull %6, ptr noundef nonnull %7, i32 noundef 4) #4
  %37 = icmp slt i32 %36, 0
  br i1 %37, label %._crit_edge, label %38

38:                                               ; preds = %35
  %39 = load double, ptr %1, align 8, !tbaa !14
  %40 = call i32 @g(double noundef %39, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef null)
  %41 = load double, ptr %1, align 8, !tbaa !14
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !10
  %45 = load double, ptr %44, align 8, !tbaa !14
  %46 = load double, ptr %5, align 16, !tbaa !14
  %47 = load double, ptr %28, align 8, !tbaa !14
  %48 = load double, ptr %30, align 16, !tbaa !14
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %41, double noundef %45, double noundef %46, double noundef %47, double noundef %48)
  %50 = icmp eq i32 %36, 2
  br i1 %50, label %51, label %57

51:                                               ; preds = %38
  %52 = call i32 @CPodeGetRootInfo(ptr noundef %14, ptr noundef nonnull %4) #4
  %53 = load i32, ptr %4, align 4, !tbaa !17
  %54 = load i32, ptr %33, align 4, !tbaa !17
  %55 = load i32, ptr %34, align 4, !tbaa !17
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %53, i32 noundef %54, i32 noundef %55)
  br label %59

57:                                               ; preds = %38
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %59

59:                                               ; preds = %57, %51
  %60 = load double, ptr %1, align 8, !tbaa !14
  %61 = fcmp olt double %60, 1.000000e+01
  br i1 %61, label %35, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %59, %35
  call void @N_VDestroy_Serial(ptr noundef nonnull %6) #4
  call void @N_VDestroy_Serial(ptr noundef nonnull %7) #4
  call void @CPodeFree(ptr noundef nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %0) #4
  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 @CPDense(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @CPodeSetStopTime(ptr noundef, double 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 @CPodeSetRootDirection(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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 = { 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}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass