; LLVM IR from stan-dev/math :: lib/sundials_6.1.1/src/sundials (sundials_nvector_senswrapper)

; 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, ptr }
%struct._generic_N_Vector_Ops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._N_VectorContent_SensWrapper = type { ptr, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local ptr @N_VNewEmpty_SensWrapper(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, 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
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = icmp slt i32 %10, 1
  br i1 %11, label %12, label %13

12:                                               ; preds = %2
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %154

13:                                               ; preds = %2
  store ptr null, ptr %7, align 8, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !9
  %15 = call ptr @N_VNewEmpty(ptr noundef %14)
  store ptr %15, ptr %7, align 8, !tbaa !9
  %16 = load ptr, ptr %7, align 8, !tbaa !9
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %13
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %154

19:                                               ; preds = %13
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct._generic_N_Vector, ptr %20, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %22, i32 0, i32 1
  store ptr @N_VClone_SensWrapper, ptr %23, align 8, !tbaa !13
  %24 = load ptr, ptr %7, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct._generic_N_Vector, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %26, i32 0, i32 2
  store ptr @N_VCloneEmpty_SensWrapper, ptr %27, align 8, !tbaa !15
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct._generic_N_Vector, ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %30, i32 0, i32 3
  store ptr @N_VDestroy_SensWrapper, ptr %31, align 8, !tbaa !16
  %32 = load ptr, ptr %7, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct._generic_N_Vector, ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %34, i32 0, i32 10
  store ptr @N_VLinearSum_SensWrapper, ptr %35, align 8, !tbaa !17
  %36 = load ptr, ptr %7, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct._generic_N_Vector, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %38, i32 0, i32 11
  store ptr @N_VConst_SensWrapper, ptr %39, align 8, !tbaa !18
  %40 = load ptr, ptr %7, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct._generic_N_Vector, ptr %40, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %42, i32 0, i32 12
  store ptr @N_VProd_SensWrapper, ptr %43, align 8, !tbaa !19
  %44 = load ptr, ptr %7, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct._generic_N_Vector, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %46, i32 0, i32 13
  store ptr @N_VDiv_SensWrapper, ptr %47, align 8, !tbaa !20
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct._generic_N_Vector, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %50, i32 0, i32 14
  store ptr @N_VScale_SensWrapper, ptr %51, align 8, !tbaa !21
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct._generic_N_Vector, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %54, i32 0, i32 15
  store ptr @N_VAbs_SensWrapper, ptr %55, align 8, !tbaa !22
  %56 = load ptr, ptr %7, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct._generic_N_Vector, ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %58, i32 0, i32 16
  store ptr @N_VInv_SensWrapper, ptr %59, align 8, !tbaa !23
  %60 = load ptr, ptr %7, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct._generic_N_Vector, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %62, i32 0, i32 17
  store ptr @N_VAddConst_SensWrapper, ptr %63, align 8, !tbaa !24
  %64 = load ptr, ptr %7, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct._generic_N_Vector, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %66, i32 0, i32 18
  store ptr @N_VDotProd_SensWrapper, ptr %67, align 8, !tbaa !25
  %68 = load ptr, ptr %7, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct._generic_N_Vector, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %70, i32 0, i32 19
  store ptr @N_VMaxNorm_SensWrapper, ptr %71, align 8, !tbaa !26
  %72 = load ptr, ptr %7, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct._generic_N_Vector, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %74, i32 0, i32 21
  store ptr @N_VWrmsNormMask_SensWrapper, ptr %75, align 8, !tbaa !27
  %76 = load ptr, ptr %7, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct._generic_N_Vector, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %78, i32 0, i32 20
  store ptr @N_VWrmsNorm_SensWrapper, ptr %79, align 8, !tbaa !28
  %80 = load ptr, ptr %7, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct._generic_N_Vector, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %82, i32 0, i32 22
  store ptr @N_VMin_SensWrapper, ptr %83, align 8, !tbaa !29
  %84 = load ptr, ptr %7, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct._generic_N_Vector, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %86, i32 0, i32 23
  store ptr @N_VWL2Norm_SensWrapper, ptr %87, align 8, !tbaa !30
  %88 = load ptr, ptr %7, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct._generic_N_Vector, ptr %88, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %90, i32 0, i32 24
  store ptr @N_VL1Norm_SensWrapper, ptr %91, align 8, !tbaa !31
  %92 = load ptr, ptr %7, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct._generic_N_Vector, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %94, i32 0, i32 25
  store ptr @N_VCompare_SensWrapper, ptr %95, align 8, !tbaa !32
  %96 = load ptr, ptr %7, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct._generic_N_Vector, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %99 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %98, i32 0, i32 26
  store ptr @N_VInvTest_SensWrapper, ptr %99, align 8, !tbaa !33
  %100 = load ptr, ptr %7, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct._generic_N_Vector, ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !11
  %103 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %102, i32 0, i32 27
  store ptr @N_VConstrMask_SensWrapper, ptr %103, align 8, !tbaa !34
  %104 = load ptr, ptr %7, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct._generic_N_Vector, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !11
  %107 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %106, i32 0, i32 28
  store ptr @N_VMinQuotient_SensWrapper, ptr %107, align 8, !tbaa !35
  store ptr null, ptr %8, align 8, !tbaa !9
  %108 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %108, ptr %8, align 8, !tbaa !9
  %109 = load ptr, ptr %8, align 8, !tbaa !9
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %113

111:                                              ; preds = %19
  %112 = load ptr, ptr %7, align 8, !tbaa !9
  call void @N_VFreeEmpty(ptr noundef %112)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %154

113:                                              ; preds = %19
  %114 = load i32, ptr %4, align 4, !tbaa !5
  %115 = load ptr, ptr %8, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %115, i32 0, i32 1
  store i32 %114, ptr %116, align 8, !tbaa !36
  %117 = load ptr, ptr %8, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %117, i32 0, i32 2
  store i32 0, ptr %118, align 4, !tbaa !38
  %119 = load ptr, ptr %8, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %119, i32 0, i32 0
  store ptr null, ptr %120, align 8, !tbaa !39
  %121 = load i32, ptr %4, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = mul i64 %122, 8
  %124 = call noalias ptr @malloc(i64 noundef %123) #6
  %125 = load ptr, ptr %8, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %125, i32 0, i32 0
  store ptr %124, ptr %126, align 8, !tbaa !39
  %127 = load ptr, ptr %8, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !39
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %134

131:                                              ; preds = %113
  %132 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %132) #5
  %133 = load ptr, ptr %7, align 8, !tbaa !9
  call void @N_VFreeEmpty(ptr noundef %133)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %154

134:                                              ; preds = %113
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %146, %134
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %139, label %149

139:                                              ; preds = %135
  %140 = load ptr, ptr %8, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !39
  %143 = load i32, ptr %6, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds ptr, ptr %142, i64 %144
  store ptr null, ptr %145, align 8, !tbaa !9
  br label %146

146:                                              ; preds = %139
  %147 = load i32, ptr %6, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %6, align 4, !tbaa !5
  br label %135, !llvm.loop !40

149:                                              ; preds = %135
  %150 = load ptr, ptr %8, align 8, !tbaa !9
  %151 = load ptr, ptr %7, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct._generic_N_Vector, ptr %151, i32 0, i32 0
  store ptr %150, ptr %152, align 8, !tbaa !42
  %153 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %153, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %154

154:                                              ; preds = %149, %131, %111, %18, %12
  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 4, ptr %6) #5
  %155 = load ptr, ptr %3, align 8
  ret ptr %155
}

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

declare ptr @N_VNewEmpty(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @N_VClone_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @N_VCloneEmpty_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VDestroy_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VLinearSum_SensWrapper(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VConst_SensWrapper(double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VProd_SensWrapper(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VDiv_SensWrapper(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VScale_SensWrapper(double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VAbs_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VInv_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VAddConst_SensWrapper(ptr noundef, double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VDotProd_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMaxNorm_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWrmsNormMask_SensWrapper(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWrmsNorm_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMin_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWL2Norm_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VL1Norm_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VCompare_SensWrapper(double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @N_VInvTest_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @N_VConstrMask_SensWrapper(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMinQuotient_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

declare void @N_VFreeEmpty(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 = !{!"int", !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 8}
!12 = !{!"_generic_N_Vector", !10, i64 0, !10, i64 8, !10, i64 16}
!13 = !{!14, !10, i64 8}
!14 = !{!"_generic_N_Vector_Ops", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432}
!15 = !{!14, !10, i64 16}
!16 = !{!14, !10, i64 24}
!17 = !{!14, !10, i64 80}
!18 = !{!14, !10, i64 88}
!19 = !{!14, !10, i64 96}
!20 = !{!14, !10, i64 104}
!21 = !{!14, !10, i64 112}
!22 = !{!14, !10, i64 120}
!23 = !{!14, !10, i64 128}
!24 = !{!14, !10, i64 136}
!25 = !{!14, !10, i64 144}
!26 = !{!14, !10, i64 152}
!27 = !{!14, !10, i64 168}
!28 = !{!14, !10, i64 160}
!29 = !{!14, !10, i64 176}
!30 = !{!14, !10, i64 184}
!31 = !{!14, !10, i64 192}
!32 = !{!14, !10, i64 200}
!33 = !{!14, !10, i64 208}
!34 = !{!14, !10, i64 216}
!35 = !{!14, !10, i64 224}
!36 = !{!37, !6, i64 8}
!37 = !{!"_N_VectorContent_SensWrapper", !10, i64 0, !6, i64 8, !6, i64 12}
!38 = !{!37, !6, i64 12}
!39 = !{!37, !10, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!12, !10, 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"

; Function Attrs: nounwind uwtable
define dso_local ptr @N_VNewEmpty_SensWrapper(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = icmp slt i32 %0, 1
  br i1 %3, label %47, label %4

4:                                                ; preds = %2
  %5 = tail call ptr @N_VNewEmpty(ptr noundef %1) #4
  %6 = icmp eq ptr %5, null
  br i1 %6, label %47, label %7

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %5, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr @N_VClone_SensWrapper, ptr %10, align 8, !tbaa !10
  %11 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr @N_VCloneEmpty_SensWrapper, ptr %11, align 8, !tbaa !12
  %12 = getelementptr inbounds i8, ptr %9, i64 24
  store ptr @N_VDestroy_SensWrapper, ptr %12, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %9, i64 80
  store ptr @N_VLinearSum_SensWrapper, ptr %13, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %9, i64 88
  store ptr @N_VConst_SensWrapper, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %9, i64 96
  store ptr @N_VProd_SensWrapper, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %9, i64 104
  store ptr @N_VDiv_SensWrapper, ptr %16, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %9, i64 112
  store ptr @N_VScale_SensWrapper, ptr %17, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %9, i64 120
  store ptr @N_VAbs_SensWrapper, ptr %18, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %9, i64 128
  store ptr @N_VInv_SensWrapper, ptr %19, align 8, !tbaa !20
  %20 = getelementptr inbounds i8, ptr %9, i64 136
  store ptr @N_VAddConst_SensWrapper, ptr %20, align 8, !tbaa !21
  %21 = getelementptr inbounds i8, ptr %9, i64 144
  store ptr @N_VDotProd_SensWrapper, ptr %21, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %9, i64 152
  store ptr @N_VMaxNorm_SensWrapper, ptr %22, align 8, !tbaa !23
  %23 = getelementptr inbounds i8, ptr %9, i64 168
  store ptr @N_VWrmsNormMask_SensWrapper, ptr %23, align 8, !tbaa !24
  %24 = getelementptr inbounds i8, ptr %9, i64 160
  store ptr @N_VWrmsNorm_SensWrapper, ptr %24, align 8, !tbaa !25
  %25 = getelementptr inbounds i8, ptr %9, i64 176
  store ptr @N_VMin_SensWrapper, ptr %25, align 8, !tbaa !26
  %26 = getelementptr inbounds i8, ptr %9, i64 184
  store ptr @N_VWL2Norm_SensWrapper, ptr %26, align 8, !tbaa !27
  %27 = getelementptr inbounds i8, ptr %9, i64 192
  store ptr @N_VL1Norm_SensWrapper, ptr %27, align 8, !tbaa !28
  %28 = getelementptr inbounds i8, ptr %9, i64 200
  store ptr @N_VCompare_SensWrapper, ptr %28, align 8, !tbaa !29
  %29 = getelementptr inbounds i8, ptr %9, i64 208
  store ptr @N_VInvTest_SensWrapper, ptr %29, align 8, !tbaa !30
  %30 = getelementptr inbounds i8, ptr %9, i64 216
  store ptr @N_VConstrMask_SensWrapper, ptr %30, align 8, !tbaa !31
  %31 = getelementptr inbounds i8, ptr %9, i64 224
  store ptr @N_VMinQuotient_SensWrapper, ptr %31, align 8, !tbaa !32
  %32 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %7
  tail call void @N_VFreeEmpty(ptr noundef nonnull %5) #4
  br label %47

35:                                               ; preds = %7
  %36 = getelementptr inbounds i8, ptr %32, i64 8
  store i32 %0, ptr %36, align 8, !tbaa !33
  %37 = getelementptr inbounds i8, ptr %32, i64 12
  store i32 0, ptr %37, align 4, !tbaa !36
  %38 = zext nneg i32 %0 to i64
  %39 = shl nuw nsw i64 %38, 3
  %40 = tail call noalias ptr @malloc(i64 noundef %39) #5
  store ptr %40, ptr %32, align 8, !tbaa !37
  %41 = icmp eq ptr %40, null
  br i1 %41, label %45, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %35
  %min.iters.check = icmp ult i32 %0, 4
  br i1 %min.iters.check, label %.lr.ph.preheader50, label %vector.ph

.lr.ph.preheader50:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %38, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %42 = getelementptr inbounds ptr, ptr %40, i64 %index
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  store <2 x ptr> zeroinitializer, ptr %42, align 8, !tbaa !38
  store <2 x ptr> zeroinitializer, ptr %43, align 8, !tbaa !38
  %index.next = add nuw i64 %index, 4
  %44 = icmp eq i64 %index.next, %n.vec
  br i1 %44, label %middle.block, label %vector.body, !llvm.loop !39

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %38
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader50

45:                                               ; preds = %35
  tail call void @free(ptr noundef nonnull %32) #4
  tail call void @N_VFreeEmpty(ptr noundef nonnull %5) #4
  br label %47

.lr.ph:                                           ; preds = %.lr.ph.preheader50, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader50 ]
  %46 = getelementptr inbounds ptr, ptr %40, i64 %indvars.iv
  store ptr null, ptr %46, align 8, !tbaa !38
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %38
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !43

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  store ptr %32, ptr %5, align 8, !tbaa !44
  br label %47

47:                                               ; preds = %4, %2, %._crit_edge, %45, %34
  %.044 = phi ptr [ null, %34 ], [ null, %45 ], [ %5, %._crit_edge ], [ null, %2 ], [ null, %4 ]
  ret ptr %.044
}

declare ptr @N_VNewEmpty(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @N_VClone_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @N_VCloneEmpty_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VDestroy_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VLinearSum_SensWrapper(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VConst_SensWrapper(double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VProd_SensWrapper(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VDiv_SensWrapper(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VScale_SensWrapper(double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VAbs_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VInv_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VAddConst_SensWrapper(ptr noundef, double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VDotProd_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMaxNorm_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWrmsNormMask_SensWrapper(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWrmsNorm_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMin_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWL2Norm_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VL1Norm_SensWrapper(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VCompare_SensWrapper(double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @N_VInvTest_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @N_VConstrMask_SensWrapper(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMinQuotient_SensWrapper(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

declare void @N_VFreeEmpty(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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 = { "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 = { 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { 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, !7, i64 8}
!6 = !{!"_generic_N_Vector", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"_generic_N_Vector_Ops", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432}
!12 = !{!11, !7, i64 16}
!13 = !{!11, !7, i64 24}
!14 = !{!11, !7, i64 80}
!15 = !{!11, !7, i64 88}
!16 = !{!11, !7, i64 96}
!17 = !{!11, !7, i64 104}
!18 = !{!11, !7, i64 112}
!19 = !{!11, !7, i64 120}
!20 = !{!11, !7, i64 128}
!21 = !{!11, !7, i64 136}
!22 = !{!11, !7, i64 144}
!23 = !{!11, !7, i64 152}
!24 = !{!11, !7, i64 168}
!25 = !{!11, !7, i64 160}
!26 = !{!11, !7, i64 176}
!27 = !{!11, !7, i64 184}
!28 = !{!11, !7, i64 192}
!29 = !{!11, !7, i64 200}
!30 = !{!11, !7, i64 208}
!31 = !{!11, !7, i64 216}
!32 = !{!11, !7, i64 224}
!33 = !{!34, !35, i64 8}
!34 = !{!"_N_VectorContent_SensWrapper", !7, i64 0, !35, i64 8, !35, i64 12}
!35 = !{!"int", !8, i64 0}
!36 = !{!34, !35, i64 12}
!37 = !{!34, !7, i64 0}
!38 = !{!7, !7, i64 0}
!39 = distinct !{!39, !40, !41, !42}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!"llvm.loop.isvectorized", i32 1}
!42 = !{!"llvm.loop.unroll.runtime.disable"}
!43 = distinct !{!43, !40, !42, !41}
!44 = !{!6, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass