; LLVM IR from adventure-db/adventure :: tests/struct (list_tests)

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

@test1 = external dso_local global ptr, align 8
@test2 = external dso_local global ptr, align 8
@test3 = external dso_local global ptr, align 8
@list = external hidden global ptr, align 8
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #1

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @test_push_pop() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = load ptr, ptr @list, align 8, !tbaa !5
  %5 = load ptr, ptr @test1, align 8, !tbaa !5
  call void @list_push(ptr noundef %4, ptr noundef %5)
  %6 = load ptr, ptr @list, align 8, !tbaa !5
  %7 = call ptr @list_last(ptr noundef %6)
  %8 = load ptr, ptr @test1, align 8, !tbaa !5
  %9 = icmp eq ptr %7, %8
  br i1 %9, label %23, label %10

10:                                               ; preds = %0
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = call ptr @__errno_location() #6
  %13 = load i32, ptr %12, align 4, !tbaa !9
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %10
  br label %20

16:                                               ; preds = %10
  %17 = call ptr @__errno_location() #6
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = call ptr @strerror(i32 noundef %18) #7
  br label %20

20:                                               ; preds = %16, %15
  %21 = phi ptr [ @.str.5, %15 ], [ %19, %16 ]
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 26, ptr noundef %21) #7
  store ptr @.str.8, ptr %1, align 8
  br label %139

23:                                               ; preds = %0
  %24 = load ptr, ptr @list, align 8, !tbaa !5
  %25 = load ptr, ptr @test2, align 8, !tbaa !5
  call void @list_push(ptr noundef %24, ptr noundef %25)
  %26 = load ptr, ptr @list, align 8, !tbaa !5
  %27 = call ptr @list_last(ptr noundef %26)
  %28 = load ptr, ptr @test2, align 8, !tbaa !5
  %29 = icmp eq ptr %27, %28
  br i1 %29, label %43, label %30

30:                                               ; preds = %23
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = call ptr @__errno_location() #6
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %30
  br label %40

36:                                               ; preds = %30
  %37 = call ptr @__errno_location() #6
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = call ptr @strerror(i32 noundef %38) #7
  br label %40

40:                                               ; preds = %36, %35
  %41 = phi ptr [ @.str.5, %35 ], [ %39, %36 ]
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 29, ptr noundef %41) #7
  store ptr @.str.8, ptr %1, align 8
  br label %139

43:                                               ; preds = %23
  %44 = load ptr, ptr @list, align 8, !tbaa !5
  %45 = load ptr, ptr @test3, align 8, !tbaa !5
  call void @list_push(ptr noundef %44, ptr noundef %45)
  %46 = load ptr, ptr @list, align 8, !tbaa !5
  %47 = call ptr @list_last(ptr noundef %46)
  %48 = load ptr, ptr @test3, align 8, !tbaa !5
  %49 = icmp eq ptr %47, %48
  br i1 %49, label %63, label %50

50:                                               ; preds = %43
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = call ptr @__errno_location() #6
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %50
  br label %60

56:                                               ; preds = %50
  %57 = call ptr @__errno_location() #6
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = call ptr @strerror(i32 noundef %58) #7
  br label %60

60:                                               ; preds = %56, %55
  %61 = phi ptr [ @.str.5, %55 ], [ %59, %56 ]
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 32, ptr noundef %61) #7
  store ptr @.str.8, ptr %1, align 8
  br label %139

63:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  %64 = load ptr, ptr @list, align 8, !tbaa !5
  %65 = call ptr @list_pop(ptr noundef %64)
  store ptr %65, ptr %2, align 8, !tbaa !5
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = load ptr, ptr @test3, align 8, !tbaa !5
  %68 = icmp eq ptr %66, %67
  br i1 %68, label %82, label %69

69:                                               ; preds = %63
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call ptr @__errno_location() #6
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %69
  br label %79

75:                                               ; preds = %69
  %76 = call ptr @__errno_location() #6
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = call ptr @strerror(i32 noundef %77) #7
  br label %79

79:                                               ; preds = %75, %74
  %80 = phi ptr [ @.str.5, %74 ], [ %78, %75 ]
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 35, ptr noundef %80) #7
  store ptr @.str.10, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %138

82:                                               ; preds = %63
  %83 = load ptr, ptr @list, align 8, !tbaa !5
  %84 = call ptr @list_pop(ptr noundef %83)
  store ptr %84, ptr %2, align 8, !tbaa !5
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = load ptr, ptr @test2, align 8, !tbaa !5
  %87 = icmp eq ptr %85, %86
  br i1 %87, label %101, label %88

88:                                               ; preds = %82
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call ptr @__errno_location() #6
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %88
  br label %98

94:                                               ; preds = %88
  %95 = call ptr @__errno_location() #6
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = call ptr @strerror(i32 noundef %96) #7
  br label %98

98:                                               ; preds = %94, %93
  %99 = phi ptr [ @.str.5, %93 ], [ %97, %94 ]
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 38, ptr noundef %99) #7
  store ptr @.str.10, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %138

101:                                              ; preds = %82
  %102 = load ptr, ptr @list, align 8, !tbaa !5
  %103 = call ptr @list_pop(ptr noundef %102)
  store ptr %103, ptr %2, align 8, !tbaa !5
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = load ptr, ptr @test1, align 8, !tbaa !5
  %106 = icmp eq ptr %104, %105
  br i1 %106, label %120, label %107

107:                                              ; preds = %101
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = call ptr @__errno_location() #6
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %107
  br label %117

113:                                              ; preds = %107
  %114 = call ptr @__errno_location() #6
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = call ptr @strerror(i32 noundef %115) #7
  br label %117

117:                                              ; preds = %113, %112
  %118 = phi ptr [ @.str.5, %112 ], [ %116, %113 ]
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 41, ptr noundef %118) #7
  store ptr @.str.10, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %138

120:                                              ; preds = %101
  %121 = load ptr, ptr @list, align 8, !tbaa !5
  %122 = call i64 @list_count(ptr noundef %121)
  %123 = icmp eq i64 %122, 0
  br i1 %123, label %137, label %124

124:                                              ; preds = %120
  %125 = load ptr, ptr @stderr, align 8, !tbaa !5
  %126 = call ptr @__errno_location() #6
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %124
  br label %134

130:                                              ; preds = %124
  %131 = call ptr @__errno_location() #6
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = call ptr @strerror(i32 noundef %132) #7
  br label %134

134:                                              ; preds = %130, %129
  %135 = phi ptr [ @.str.5, %129 ], [ %133, %130 ]
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.11, ptr noundef @.str.4, i32 noundef 42, ptr noundef %135) #7
  store ptr @.str.12, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %138

137:                                              ; preds = %120
  store ptr null, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %138

138:                                              ; preds = %137, %134, %117, %98, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %139

139:                                              ; preds = %138, %60, %40, %20
  %140 = load ptr, ptr %1, align 8
  ret ptr %140
}

declare void @list_push(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @list_last(ptr noundef) #4

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

declare ptr @list_pop(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @list_count(ptr noundef) #4

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

attributes #0 = { 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 #1 = { nounwind willreturn memory(none) "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 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 #3 = { "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 = { inlinehint 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind willreturn memory(none) }
attributes #7 = { 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}


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

@test1 = external dso_local local_unnamed_addr global ptr, align 8
@test2 = external dso_local local_unnamed_addr global ptr, align 8
@test3 = external dso_local local_unnamed_addr global ptr, align 8
@list = external hidden local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #1

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @test_push_pop() local_unnamed_addr #3 {
  %1 = load ptr, ptr @list, align 8, !tbaa !5
  %2 = load ptr, ptr @test1, align 8, !tbaa !5
  tail call void @list_push(ptr noundef %1, ptr noundef %2) #6
  %3 = load ptr, ptr @list, align 8, !tbaa !5
  %4 = tail call ptr @list_last(ptr noundef %3)
  %5 = load ptr, ptr @test1, align 8, !tbaa !5
  %6 = icmp eq ptr %4, %5
  br i1 %6, label %17, label %7

7:                                                ; preds = %0
  %8 = load ptr, ptr @stderr, align 8, !tbaa !5
  %9 = tail call ptr @__errno_location() #7
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %14, label %12

12:                                               ; preds = %7
  %13 = tail call ptr @strerror(i32 noundef %10) #6
  br label %14

14:                                               ; preds = %7, %12
  %15 = phi ptr [ %13, %12 ], [ @.str.5, %7 ]
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 26, ptr noundef %15) #8
  br label %110

17:                                               ; preds = %0
  %18 = load ptr, ptr @list, align 8, !tbaa !5
  %19 = load ptr, ptr @test2, align 8, !tbaa !5
  tail call void @list_push(ptr noundef %18, ptr noundef %19) #6
  %20 = load ptr, ptr @list, align 8, !tbaa !5
  %21 = tail call ptr @list_last(ptr noundef %20)
  %22 = load ptr, ptr @test2, align 8, !tbaa !5
  %23 = icmp eq ptr %21, %22
  br i1 %23, label %34, label %24

24:                                               ; preds = %17
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = tail call ptr @__errno_location() #7
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %31, label %29

29:                                               ; preds = %24
  %30 = tail call ptr @strerror(i32 noundef %27) #6
  br label %31

31:                                               ; preds = %24, %29
  %32 = phi ptr [ %30, %29 ], [ @.str.5, %24 ]
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 29, ptr noundef %32) #8
  br label %110

34:                                               ; preds = %17
  %35 = load ptr, ptr @list, align 8, !tbaa !5
  %36 = load ptr, ptr @test3, align 8, !tbaa !5
  tail call void @list_push(ptr noundef %35, ptr noundef %36) #6
  %37 = load ptr, ptr @list, align 8, !tbaa !5
  %38 = tail call ptr @list_last(ptr noundef %37)
  %39 = load ptr, ptr @test3, align 8, !tbaa !5
  %40 = icmp eq ptr %38, %39
  br i1 %40, label %51, label %41

41:                                               ; preds = %34
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = tail call ptr @__errno_location() #7
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %48, label %46

46:                                               ; preds = %41
  %47 = tail call ptr @strerror(i32 noundef %44) #6
  br label %48

48:                                               ; preds = %41, %46
  %49 = phi ptr [ %47, %46 ], [ @.str.5, %41 ]
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 32, ptr noundef %49) #8
  br label %110

51:                                               ; preds = %34
  %52 = load ptr, ptr @list, align 8, !tbaa !5
  %53 = tail call ptr @list_pop(ptr noundef %52) #6
  %54 = load ptr, ptr @test3, align 8, !tbaa !5
  %55 = icmp eq ptr %53, %54
  br i1 %55, label %66, label %56

56:                                               ; preds = %51
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = tail call ptr @__errno_location() #7
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %63, label %61

61:                                               ; preds = %56
  %62 = tail call ptr @strerror(i32 noundef %59) #6
  br label %63

63:                                               ; preds = %56, %61
  %64 = phi ptr [ %62, %61 ], [ @.str.5, %56 ]
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 35, ptr noundef %64) #8
  br label %110

66:                                               ; preds = %51
  %67 = load ptr, ptr @list, align 8, !tbaa !5
  %68 = tail call ptr @list_pop(ptr noundef %67) #6
  %69 = load ptr, ptr @test2, align 8, !tbaa !5
  %70 = icmp eq ptr %68, %69
  br i1 %70, label %81, label %71

71:                                               ; preds = %66
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = tail call ptr @__errno_location() #7
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %78, label %76

76:                                               ; preds = %71
  %77 = tail call ptr @strerror(i32 noundef %74) #6
  br label %78

78:                                               ; preds = %71, %76
  %79 = phi ptr [ %77, %76 ], [ @.str.5, %71 ]
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 38, ptr noundef %79) #8
  br label %110

81:                                               ; preds = %66
  %82 = load ptr, ptr @list, align 8, !tbaa !5
  %83 = tail call ptr @list_pop(ptr noundef %82) #6
  %84 = load ptr, ptr @test1, align 8, !tbaa !5
  %85 = icmp eq ptr %83, %84
  br i1 %85, label %96, label %86

86:                                               ; preds = %81
  %87 = load ptr, ptr @stderr, align 8, !tbaa !5
  %88 = tail call ptr @__errno_location() #7
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %93, label %91

91:                                               ; preds = %86
  %92 = tail call ptr @strerror(i32 noundef %89) #6
  br label %93

93:                                               ; preds = %86, %91
  %94 = phi ptr [ %92, %91 ], [ @.str.5, %86 ]
  %95 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 41, ptr noundef %94) #8
  br label %110

96:                                               ; preds = %81
  %97 = load ptr, ptr @list, align 8, !tbaa !5
  %98 = tail call i64 @list_count(ptr noundef %97)
  %99 = icmp eq i64 %98, 0
  br i1 %99, label %110, label %100

100:                                              ; preds = %96
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = tail call ptr @__errno_location() #7
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %107, label %105

105:                                              ; preds = %100
  %106 = tail call ptr @strerror(i32 noundef %103) #6
  br label %107

107:                                              ; preds = %100, %105
  %108 = phi ptr [ %106, %105 ], [ @.str.5, %100 ]
  %109 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.4, i32 noundef 42, ptr noundef %108) #8
  br label %110

110:                                              ; preds = %63, %78, %93, %107, %96, %48, %31, %14
  %.1 = phi ptr [ @.str.8, %48 ], [ @.str.8, %31 ], [ @.str.8, %14 ], [ @.str.12, %107 ], [ @.str.10, %93 ], [ @.str.10, %78 ], [ @.str.10, %63 ], [ null, %96 ]
  ret ptr %.1
}

declare void @list_push(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @list_last(ptr noundef) local_unnamed_addr #5

declare ptr @list_pop(ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @list_count(ptr noundef) local_unnamed_addr #5

attributes #0 = { 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 #1 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 "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 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 #4 = { "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 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }
attributes #8 = { cold 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}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass