; 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.Parse = type { ptr, ptr, ptr, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, %struct.Token, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i8, i8, i8, [10 x %struct.yColCache], [8 x i32], %struct.Token, %struct.Token, i16, i8, i8, i8, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Token, ptr, ptr, ptr, ptr, ptr }
%struct.yColCache = type { i32, i16, i8, i32, i32, i32 }
%struct.Token = type { ptr, i32 }
%struct.ExprList = type { i32, ptr }
%struct.Expr = type { i8, i8, i32, %union.anon, ptr, ptr, %union.anon.0, i32, i32, i16, i16, i16, i8, ptr, ptr }
%union.anon = type { ptr }
%union.anon.0 = type { ptr }
%struct.IdList = type { ptr, i32 }
%struct.IdList_item = type { ptr, i32 }
%struct.ExprList_item = type { ptr, ptr, ptr, i8, i8, %union.anon.1 }
%union.anon.1 = type { i32 }

@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1

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

; 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 i32 @sqlite3ExprVectorSize(ptr noundef) #1

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

declare void @sqlite3ErrorMsg(ptr noundef, ptr noundef, ...) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @sqlite3ExprListAppendVector(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.Parse, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  store ptr %17, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %24

20:                                               ; preds = %4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ExprList, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !14
  br label %25

24:                                               ; preds = %4
  br label %25

25:                                               ; preds = %24, %20
  %26 = phi i32 [ %23, %20 ], [ 0, %24 ]
  store i32 %26, ptr %12, align 4, !tbaa !16
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  br label %139

30:                                               ; preds = %25
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  br label %139

34:                                               ; preds = %30
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Expr, ptr %35, i32 0, i32 0
  %37 = load i8, ptr %36, align 8, !tbaa !17
  %38 = zext i8 %37 to i32
  %39 = icmp ne i32 %38, 119
  br i1 %39, label %40, label %53

40:                                               ; preds = %34
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.IdList, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !19
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = call i32 @sqlite3ExprVectorSize(ptr noundef %44)
  store i32 %45, ptr %10, align 4, !tbaa !16
  %46 = icmp ne i32 %43, %45
  br i1 %46, label %47, label %53

47:                                               ; preds = %40
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.IdList, ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !19
  %52 = load i32, ptr %10, align 4, !tbaa !16
  call void (ptr, ptr, ...) @sqlite3ErrorMsg(ptr noundef %48, ptr noundef @.str.3, i32 noundef %51, i32 noundef %52)
  br label %139

53:                                               ; preds = %40, %34
  store i32 0, ptr %11, align 4, !tbaa !16
  br label %54

54:                                               ; preds = %98, %53
  %55 = load i32, ptr %11, align 4, !tbaa !16
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.IdList, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !19
  %59 = icmp slt i32 %55, %58
  br i1 %59, label %60, label %101

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load i32, ptr %11, align 4, !tbaa !16
  %64 = call ptr @sqlite3ExprForVectorField(ptr noundef %61, ptr noundef %62, i32 noundef %63)
  store ptr %64, ptr %13, align 8, !tbaa !5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = call ptr @sqlite3ExprListAppend(ptr noundef %65, ptr noundef %66, ptr noundef %67)
  store ptr %68, ptr %6, align 8, !tbaa !5
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %97

71:                                               ; preds = %60
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.IdList, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !21
  %75 = load i32, ptr %11, align 4, !tbaa !16
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.IdList_item, ptr %74, i64 %76
  %78 = getelementptr inbounds %struct.IdList_item, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ExprList, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !24
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ExprList, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !14
  %86 = sub nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %struct.ExprList_item, ptr %82, i64 %87
  %89 = getelementptr inbounds %struct.ExprList_item, ptr %88, i32 0, i32 1
  store ptr %79, ptr %89, align 8, !tbaa !25
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.IdList, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = load i32, ptr %11, align 4, !tbaa !16
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds %struct.IdList_item, ptr %92, i64 %94
  %96 = getelementptr inbounds %struct.IdList_item, ptr %95, i32 0, i32 0
  store ptr null, ptr %96, align 8, !tbaa !22
  br label %97

97:                                               ; preds = %71, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %11, align 4, !tbaa !16
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %11, align 4, !tbaa !16
  br label %54, !llvm.loop !27

101:                                              ; preds = %54
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.Expr, ptr %102, i32 0, i32 0
  %104 = load i8, ptr %103, align 8, !tbaa !17
  %105 = zext i8 %104 to i32
  %106 = icmp eq i32 %105, 119
  br i1 %106, label %107, label %138

107:                                              ; preds = %101
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %137

110:                                              ; preds = %107
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ExprList, ptr %111, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !24
  %114 = load i32, ptr %12, align 4, !tbaa !16
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %struct.ExprList_item, ptr %113, i64 %115
  %117 = getelementptr inbounds %struct.ExprList_item, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !29
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %137

120:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ExprList, ptr %121, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !24
  %124 = load i32, ptr %12, align 4, !tbaa !16
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %struct.ExprList_item, ptr %123, i64 %125
  %127 = getelementptr inbounds %struct.ExprList_item, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !29
  store ptr %128, ptr %14, align 8, !tbaa !5
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Expr, ptr %130, i32 0, i32 5
  store ptr %129, ptr %131, align 8, !tbaa !30
  store ptr null, ptr %8, align 8, !tbaa !5
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.IdList, ptr %132, i32 0, i32 1
  %134 = load i32, ptr %133, align 8, !tbaa !19
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Expr, ptr %135, i32 0, i32 8
  store i32 %134, ptr %136, align 4, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %137

137:                                              ; preds = %120, %110, %107
  br label %138

138:                                              ; preds = %137, %101
  br label %139

139:                                              ; preds = %138, %47, %33, %29
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  call void @sqlite3ExprDelete(ptr noundef %140, ptr noundef %141)
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sqlite3IdListDelete(ptr noundef %142, ptr noundef %143)
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret ptr %144
}

declare void @sqlite3IdListDelete(ptr noundef, ptr noundef) #2

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, !6, i64 0}
!10 = !{!"Parse", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !7, i64 36, !7, i64 37, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !6, i64 88, !6, i64 96, !12, i64 104, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !7, i64 192, !7, i64 193, !7, i64 194, !7, i64 196, !7, i64 396, !12, i64 432, !12, i64 448, !13, i64 464, !7, i64 466, !7, i64 467, !7, i64 468, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !12, i64 536, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584}
!11 = !{!"int", !7, i64 0}
!12 = !{!"Token", !6, i64 0, !11, i64 8}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"ExprList", !11, i64 0, !6, i64 8}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"Expr", !7, i64 0, !7, i64 1, !11, i64 4, !7, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !11, i64 40, !11, i64 44, !13, i64 48, !13, i64 50, !13, i64 52, !7, i64 54, !6, i64 56, !6, i64 64}
!19 = !{!20, !11, i64 8}
!20 = !{!"IdList", !6, i64 0, !11, i64 8}
!21 = !{!20, !6, i64 0}
!22 = !{!23, !6, i64 0}
!23 = !{!"IdList_item", !6, i64 0, !11, i64 8}
!24 = !{!15, !6, i64 8}
!25 = !{!26, !6, i64 8}
!26 = !{!"ExprList_item", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !11, i64 25, !11, i64 25, !11, i64 25, !7, i64 28}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!26, !6, i64 0}
!30 = !{!18, !6, i64 24}
!31 = !{!18, !11, i64 44}


; 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"

%struct.IdList_item = type { ptr, i32 }
%struct.ExprList_item = type { ptr, ptr, ptr, i8, i8, %union.anon.1 }
%union.anon.1 = type { i32 }

@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

declare void @sqlite3ErrorMsg(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @sqlite3ExprListAppendVector(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %9, label %6

6:                                                ; preds = %4
  %7 = load i32, ptr %1, align 8, !tbaa !13
  %8 = sext i32 %7 to i64
  br label %9

9:                                                ; preds = %4, %6
  %10 = phi i64 [ %8, %6 ], [ 0, %4 ]
  %11 = icmp eq ptr %2, null
  %12 = icmp eq ptr %3, null
  %or.cond = or i1 %11, %12
  br i1 %or.cond, label %53, label %13

13:                                               ; preds = %9
  %14 = load i8, ptr %3, align 8, !tbaa !15
  %.not52 = icmp eq i8 %14, 119
  br i1 %.not52, label %21, label %15

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %2, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !17
  %18 = tail call i32 @sqlite3ExprVectorSize(ptr noundef nonnull %3)
  %.not53 = icmp eq i32 %17, %18
  br i1 %.not53, label %21, label %19

19:                                               ; preds = %15
  %20 = load i32, ptr %16, align 8, !tbaa !17
  tail call void (ptr, ptr, ...) @sqlite3ErrorMsg(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef %20, i32 noundef %18) #2
  br label %53

21:                                               ; preds = %15, %13
  %22 = getelementptr inbounds i8, ptr %2, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !17
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21, %38
  %indvars.iv = phi i64 [ %indvars.iv.next, %38 ], [ 0, %21 ]
  %.057 = phi ptr [ %27, %38 ], [ %1, %21 ]
  %25 = trunc nuw nsw i64 %indvars.iv to i32
  %26 = tail call ptr @sqlite3ExprForVectorField(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef %25)
  %27 = tail call ptr @sqlite3ExprListAppend(ptr noundef nonnull %0, ptr noundef %.057, ptr noundef %26)
  %.not55 = icmp eq ptr %27, null
  br i1 %.not55, label %38, label %28

28:                                               ; preds = %.lr.ph
  %29 = load ptr, ptr %2, align 8, !tbaa !19
  %30 = getelementptr inbounds %struct.IdList_item, ptr %29, i64 %indvars.iv
  %31 = load ptr, ptr %30, align 8, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %27, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !22
  %34 = load i32, ptr %27, align 8, !tbaa !13
  %35 = sext i32 %34 to i64
  %36 = getelementptr %struct.ExprList_item, ptr %33, i64 %35
  %37 = getelementptr i8, ptr %36, i64 -24
  store ptr %31, ptr %37, align 8, !tbaa !23
  store ptr null, ptr %30, align 8, !tbaa !20
  br label %38

38:                                               ; preds = %28, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = load i32, ptr %22, align 8, !tbaa !17
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next, %40
  br i1 %41, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %38, %21
  %.0.lcssa = phi ptr [ %1, %21 ], [ %27, %38 ]
  %.lcssa = phi i32 [ %23, %21 ], [ %39, %38 ]
  %42 = load i8, ptr %3, align 8, !tbaa !15
  %43 = icmp eq i8 %42, 119
  %44 = icmp ne ptr %.0.lcssa, null
  %or.cond3 = and i1 %44, %43
  br i1 %or.cond3, label %45, label %53

45:                                               ; preds = %._crit_edge
  %46 = getelementptr inbounds i8, ptr %.0.lcssa, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  %48 = getelementptr inbounds %struct.ExprList_item, ptr %47, i64 %10
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  %.not54 = icmp eq ptr %49, null
  br i1 %.not54, label %53, label %50

50:                                               ; preds = %45
  %51 = getelementptr inbounds i8, ptr %49, i64 24
  store ptr %3, ptr %51, align 8, !tbaa !28
  %52 = getelementptr inbounds i8, ptr %49, i64 44
  store i32 %.lcssa, ptr %52, align 4, !tbaa !29
  br label %53

53:                                               ; preds = %._crit_edge, %50, %45, %9, %19
  %.044 = phi ptr [ %3, %9 ], [ %3, %19 ], [ null, %50 ], [ %3, %45 ], [ %3, %._crit_edge ]
  %.1 = phi ptr [ %1, %9 ], [ %1, %19 ], [ %.0.lcssa, %50 ], [ %.0.lcssa, %45 ], [ %.0.lcssa, %._crit_edge ]
  tail call void @sqlite3ExprDelete(ptr noundef %5, ptr noundef %.044)
  tail call void @sqlite3IdListDelete(ptr noundef %5, ptr noundef %2) #2
  ret ptr %.1
}

declare void @sqlite3IdListDelete(ptr noundef, ptr noundef) local_unnamed_addr #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!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 = !{!"Parse", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !8, i64 28, !8, i64 29, !8, i64 30, !8, i64 31, !8, i64 32, !8, i64 33, !8, i64 34, !8, i64 35, !8, i64 36, !8, i64 37, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !7, i64 88, !7, i64 96, !11, i64 104, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !8, i64 192, !8, i64 193, !8, i64 194, !8, i64 196, !8, i64 396, !11, i64 432, !11, i64 448, !12, i64 464, !8, i64 466, !8, i64 467, !8, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !11, i64 536, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"Token", !7, i64 0, !10, i64 8}
!12 = !{!"short", !8, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"ExprList", !10, i64 0, !7, i64 8}
!15 = !{!16, !8, i64 0}
!16 = !{!"Expr", !8, i64 0, !8, i64 1, !10, i64 4, !8, i64 8, !7, i64 16, !7, i64 24, !8, i64 32, !10, i64 40, !10, i64 44, !12, i64 48, !12, i64 50, !12, i64 52, !8, i64 54, !7, i64 56, !7, i64 64}
!17 = !{!18, !10, i64 8}
!18 = !{!"IdList", !7, i64 0, !10, i64 8}
!19 = !{!18, !7, i64 0}
!20 = !{!21, !7, i64 0}
!21 = !{!"IdList_item", !7, i64 0, !10, i64 8}
!22 = !{!14, !7, i64 8}
!23 = !{!24, !7, i64 8}
!24 = !{!"ExprList_item", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !10, i64 25, !10, i64 25, !10, i64 25, !8, i64 28}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!24, !7, i64 0}
!28 = !{!16, !7, i64 24}
!29 = !{!16, !10, i64 44}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass