; LLVM IR from ibr-ds/STANlite :: Enclave/sqlite (expr)

; 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.Select = type { ptr, i8, i16, i32, i32, i32, [2 x i32], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

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

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

declare ptr @sqlite3DbMallocRawNN(ptr noundef, i64 noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @sqlite3SelectDup(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr %7, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %13, ptr %10, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %134, %3
  %15 = load ptr, ptr %10, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %138

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call ptr @sqlite3DbMallocRawNN(ptr noundef %18, i64 noundef 112)
  store ptr %19, ptr %11, align 8, !tbaa !5
  %20 = load ptr, ptr %11, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  store i32 2, ptr %12, align 4
  br label %131

23:                                               ; preds = %17
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Select, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = call ptr @sqlite3ExprListDup(ptr noundef %24, ptr noundef %27, i32 noundef %28)
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.Select, ptr %30, i32 0, i32 0
  store ptr %29, ptr %31, align 8, !tbaa !11
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.Select, ptr %33, i32 0, i32 7
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = call ptr @sqlite3SrcListDup(ptr noundef %32, ptr noundef %35, i32 noundef %36)
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.Select, ptr %38, i32 0, i32 7
  store ptr %37, ptr %39, align 8, !tbaa !14
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.Select, ptr %41, i32 0, i32 8
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = call ptr @sqlite3ExprDup(ptr noundef %40, ptr noundef %43, i32 noundef %44)
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Select, ptr %46, i32 0, i32 8
  store ptr %45, ptr %47, align 8, !tbaa !15
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Select, ptr %49, i32 0, i32 9
  %51 = load ptr, ptr %50, align 8, !tbaa !16
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = call ptr @sqlite3ExprListDup(ptr noundef %48, ptr noundef %51, i32 noundef %52)
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Select, ptr %54, i32 0, i32 9
  store ptr %53, ptr %55, align 8, !tbaa !16
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.Select, ptr %57, i32 0, i32 10
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = call ptr @sqlite3ExprDup(ptr noundef %56, ptr noundef %59, i32 noundef %60)
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Select, ptr %62, i32 0, i32 10
  store ptr %61, ptr %63, align 8, !tbaa !17
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.Select, ptr %65, i32 0, i32 11
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = call ptr @sqlite3ExprListDup(ptr noundef %64, ptr noundef %67, i32 noundef %68)
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Select, ptr %70, i32 0, i32 11
  store ptr %69, ptr %71, align 8, !tbaa !18
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Select, ptr %72, i32 0, i32 1
  %74 = load i8, ptr %73, align 8, !tbaa !19
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.Select, ptr %75, i32 0, i32 1
  store i8 %74, ptr %76, align 8, !tbaa !19
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.Select, ptr %78, i32 0, i32 13
  store ptr %77, ptr %79, align 8, !tbaa !20
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Select, ptr %80, i32 0, i32 12
  store ptr null, ptr %81, align 8, !tbaa !21
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Select, ptr %83, i32 0, i32 14
  %85 = load ptr, ptr %84, align 8, !tbaa !22
  %86 = load i32, ptr %6, align 4, !tbaa !9
  %87 = call ptr @sqlite3ExprDup(ptr noundef %82, ptr noundef %85, i32 noundef %86)
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Select, ptr %88, i32 0, i32 14
  store ptr %87, ptr %89, align 8, !tbaa !22
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.Select, ptr %91, i32 0, i32 15
  %93 = load ptr, ptr %92, align 8, !tbaa !23
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = call ptr @sqlite3ExprDup(ptr noundef %90, ptr noundef %93, i32 noundef %94)
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Select, ptr %96, i32 0, i32 15
  store ptr %95, ptr %97, align 8, !tbaa !23
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Select, ptr %98, i32 0, i32 4
  store i32 0, ptr %99, align 8, !tbaa !24
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Select, ptr %100, i32 0, i32 5
  store i32 0, ptr %101, align 4, !tbaa !25
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.Select, ptr %102, i32 0, i32 3
  %104 = load i32, ptr %103, align 4, !tbaa !26
  %105 = and i32 %104, -33
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Select, ptr %106, i32 0, i32 3
  store i32 %105, ptr %107, align 4, !tbaa !26
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.Select, ptr %108, i32 0, i32 6
  %110 = getelementptr inbounds [2 x i32], ptr %109, i64 0, i64 0
  store i32 -1, ptr %110, align 8, !tbaa !9
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.Select, ptr %111, i32 0, i32 6
  %113 = getelementptr inbounds [2 x i32], ptr %112, i64 0, i64 1
  store i32 -1, ptr %113, align 4, !tbaa !9
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Select, ptr %114, i32 0, i32 2
  %116 = load i16, ptr %115, align 2, !tbaa !27
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.Select, ptr %117, i32 0, i32 2
  store i16 %116, ptr %118, align 2, !tbaa !27
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Select, ptr %120, i32 0, i32 16
  %122 = load ptr, ptr %121, align 8, !tbaa !28
  %123 = call ptr @withDup(ptr noundef %119, ptr noundef %122)
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Select, ptr %124, i32 0, i32 16
  store ptr %123, ptr %125, align 8, !tbaa !28
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %126, ptr %127, align 8, !tbaa !5
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Select, ptr %128, i32 0, i32 12
  store ptr %129, ptr %9, align 8, !tbaa !5
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %130, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %12, align 4
  br label %131

131:                                              ; preds = %23, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %132 = load i32, ptr %12, align 4
  switch i32 %132, label %140 [
    i32 0, label %133
    i32 2, label %138
  ]

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Select, ptr %135, i32 0, i32 12
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  store ptr %137, ptr %10, align 8, !tbaa !5
  br label %14, !llvm.loop !29

138:                                              ; preds = %131, %14
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %12, align 4
  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
  ret ptr %139

140:                                              ; preds = %131
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden ptr @withDup(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"Select", !6, i64 0, !7, i64 8, !13, i64 10, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !6, i64 32}
!15 = !{!12, !6, i64 40}
!16 = !{!12, !6, i64 48}
!17 = !{!12, !6, i64 56}
!18 = !{!12, !6, i64 64}
!19 = !{!12, !7, i64 8}
!20 = !{!12, !6, i64 80}
!21 = !{!12, !6, i64 72}
!22 = !{!12, !6, i64 88}
!23 = !{!12, !6, i64 96}
!24 = !{!12, !10, i64 16}
!25 = !{!12, !10, i64 20}
!26 = !{!12, !10, i64 12}
!27 = !{!12, !13, i64 10}
!28 = !{!12, !6, i64 104}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3ExprDup(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @sqlite3DbMallocRawNN(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3ExprListDup(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3SrcListDup(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @sqlite3SelectDup(ptr noundef %0, ptr noundef readonly %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4)
  store ptr null, ptr %4, align 8, !tbaa !5
  %.not68 = icmp eq ptr %1, null
  br i1 %.not68, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3, %7
  %.05771 = phi ptr [ %5, %7 ], [ null, %3 ]
  %.05870 = phi ptr [ %56, %7 ], [ %1, %3 ]
  %.05969 = phi ptr [ %34, %7 ], [ %4, %3 ]
  %5 = tail call ptr @sqlite3DbMallocRawNN(ptr noundef %0, i64 noundef 112) #3
  %6 = icmp eq ptr %5, null
  br i1 %6, label %._crit_edge.loopexit, label %7

7:                                                ; preds = %.lr.ph
  %8 = load ptr, ptr %.05870, align 8, !tbaa !9
  %9 = tail call ptr @sqlite3ExprListDup(ptr noundef %0, ptr noundef %8, i32 noundef %2)
  store ptr %9, ptr %5, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %.05870, i64 32
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = tail call ptr @sqlite3SrcListDup(ptr noundef %0, ptr noundef %11, i32 noundef %2)
  %13 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr %12, ptr %13, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %.05870, i64 40
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = tail call ptr @sqlite3ExprDup(ptr noundef %0, ptr noundef %15, i32 noundef %2)
  %17 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %16, ptr %17, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %.05870, i64 48
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = tail call ptr @sqlite3ExprListDup(ptr noundef %0, ptr noundef %19, i32 noundef %2)
  %21 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr %20, ptr %21, align 8, !tbaa !15
  %22 = getelementptr inbounds i8, ptr %.05870, i64 56
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %24 = tail call ptr @sqlite3ExprDup(ptr noundef %0, ptr noundef %23, i32 noundef %2)
  %25 = getelementptr inbounds i8, ptr %5, i64 56
  store ptr %24, ptr %25, align 8, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %.05870, i64 64
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = tail call ptr @sqlite3ExprListDup(ptr noundef %0, ptr noundef %27, i32 noundef %2)
  %29 = getelementptr inbounds i8, ptr %5, i64 64
  store ptr %28, ptr %29, align 8, !tbaa !17
  %30 = getelementptr inbounds i8, ptr %.05870, i64 8
  %31 = load i8, ptr %30, align 8, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %5, i64 8
  store i8 %31, ptr %32, align 8, !tbaa !18
  %33 = getelementptr inbounds i8, ptr %5, i64 80
  store ptr %.05771, ptr %33, align 8, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %5, i64 72
  store ptr null, ptr %34, align 8, !tbaa !20
  %35 = getelementptr inbounds i8, ptr %.05870, i64 88
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %37 = tail call ptr @sqlite3ExprDup(ptr noundef %0, ptr noundef %36, i32 noundef %2)
  %38 = getelementptr inbounds i8, ptr %5, i64 88
  store ptr %37, ptr %38, align 8, !tbaa !21
  %39 = getelementptr inbounds i8, ptr %.05870, i64 96
  %40 = load ptr, ptr %39, align 8, !tbaa !22
  %41 = tail call ptr @sqlite3ExprDup(ptr noundef %0, ptr noundef %40, i32 noundef %2)
  %42 = getelementptr inbounds i8, ptr %5, i64 96
  store ptr %41, ptr %42, align 8, !tbaa !22
  %43 = getelementptr inbounds i8, ptr %5, i64 16
  %44 = getelementptr inbounds i8, ptr %.05870, i64 12
  %45 = load i32, ptr %44, align 4, !tbaa !23
  %46 = and i32 %45, -33
  %47 = getelementptr inbounds i8, ptr %5, i64 12
  store i32 %46, ptr %47, align 4, !tbaa !23
  store <4 x i32> <i32 0, i32 0, i32 -1, i32 -1>, ptr %43, align 8, !tbaa !24
  %48 = getelementptr inbounds i8, ptr %.05870, i64 10
  %49 = load i16, ptr %48, align 2, !tbaa !25
  %50 = getelementptr inbounds i8, ptr %5, i64 10
  store i16 %49, ptr %50, align 2, !tbaa !25
  %51 = getelementptr inbounds i8, ptr %.05870, i64 104
  %52 = load ptr, ptr %51, align 8, !tbaa !26
  %53 = tail call ptr @withDup(ptr noundef %0, ptr noundef %52)
  %54 = getelementptr inbounds i8, ptr %5, i64 104
  store ptr %53, ptr %54, align 8, !tbaa !26
  store ptr %5, ptr %.05969, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %.05870, i64 72
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  %.not = icmp eq ptr %56, null
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !27

._crit_edge.loopexit:                             ; preds = %.lr.ph, %7
  %.0..0..0..0..pre = load ptr, ptr %4, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %3
  %.0..0..0. = phi ptr [ %.0..0..0..0..pre, %._crit_edge.loopexit ], [ null, %3 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4)
  ret ptr %.0..0..0.
}

; Function Attrs: nounwind uwtable
declare hidden ptr @withDup(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"Select", !6, i64 0, !7, i64 8, !11, i64 10, !12, i64 12, !12, i64 16, !12, i64 20, !7, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!11 = !{!"short", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !6, i64 32}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !6, i64 48}
!16 = !{!10, !6, i64 56}
!17 = !{!10, !6, i64 64}
!18 = !{!10, !7, i64 8}
!19 = !{!10, !6, i64 80}
!20 = !{!10, !6, i64 72}
!21 = !{!10, !6, i64 88}
!22 = !{!10, !6, i64 96}
!23 = !{!10, !12, i64 12}
!24 = !{!12, !12, i64 0}
!25 = !{!10, !11, i64 10}
!26 = !{!10, !6, i64 104}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass