; LLVM IR from jermp/2i_bench :: external/CRoaring/tests/vendor/cmocka/cmocka.ll (test_free)

; 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.MallocBlockInfo = type { ptr, i64, i64, %struct.SourceLocation, %struct.ListNode }
%struct.SourceLocation = type { ptr, i32 }
%struct.ListNode = type { ptr, i32, ptr, ptr }

@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [87 x i8], align 1

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define dso_local void @_test_free(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca [2 x ptr], align 16
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  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 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = ptrtoint ptr %15 to i64
  %17 = inttoptr i64 %16 to ptr
  store ptr %17, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  store i32 1, ptr %10, align 4
  br label %102

21:                                               ; preds = %3
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = ptrtoint ptr %22 to i64
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !9
  call void @_assert_true(i64 noundef %23, ptr noundef @.str.15, ptr noundef %24, i32 noundef %25)
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 -88
  store ptr %27, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 -16
  store ptr %29, ptr %11, align 8, !tbaa !5
  %30 = getelementptr inbounds ptr, ptr %11, i64 1
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.MallocBlockInfo, ptr %32, i32 0, i32 2
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %31, i64 %34
  store ptr %35, ptr %30, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %85, %21
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %38, 2
  br i1 %39, label %40, label %88

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds [2 x ptr], ptr %11, i64 0, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %44, ptr %13, align 8, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %81, %40
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = icmp ult i32 %46, 16
  br i1 %47, label %48, label %84

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %49, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !16
  %54 = sext i8 %53 to i32
  %55 = sub nsw i32 %54, 239
  %56 = trunc i32 %55 to i8
  store i8 %56, ptr %14, align 1, !tbaa !16
  %57 = load i8, ptr %14, align 1, !tbaa !16
  %58 = icmp ne i8 %57, 0
  br i1 %58, label %59, label %80

59:                                               ; preds = %48
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.MallocBlockInfo, ptr %63, i32 0, i32 2
  %65 = load i64, ptr %64, align 8, !tbaa !11
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MallocBlockInfo, ptr %66, i32 0, i32 3
  %68 = getelementptr inbounds %struct.SourceLocation, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !17
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.MallocBlockInfo, ptr %70, i32 0, i32 3
  %72 = getelementptr inbounds %struct.SourceLocation, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 8, !tbaa !18
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds i8, ptr %74, i64 %76
  call void (ptr, ...) @cm_print_error(ptr noundef @.str.16, ptr noundef %60, i32 noundef %61, ptr noundef %62, i64 noundef %65, ptr noundef %69, i32 noundef %73, ptr noundef %77)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i32, ptr %6, align 4, !tbaa !9
  call void @_fail(ptr noundef %78, i32 noundef %79)
  br label %80

80:                                               ; preds = %59, %48
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = add i32 %82, 1
  store i32 %83, ptr %12, align 4, !tbaa !9
  br label %45, !llvm.loop !19

84:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = add i32 %86, 1
  store i32 %87, ptr %7, align 4, !tbaa !9
  br label %36, !llvm.loop !21

88:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.MallocBlockInfo, ptr %89, i32 0, i32 4
  %91 = call ptr @list_remove(ptr noundef %90, ptr noundef null, ptr noundef null)
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.MallocBlockInfo, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !22
  %95 = ptrtoint ptr %94 to i64
  %96 = inttoptr i64 %95 to ptr
  store ptr %96, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.MallocBlockInfo, ptr %98, i32 0, i32 1
  %100 = load i64, ptr %99, align 8, !tbaa !23
  call void @llvm.memset.p0.i64(ptr align 1 %97, i8 -51, i64 %100, i1 false)
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %101) #4
  store i32 0, ptr %10, align 4
  br label %102

102:                                              ; preds = %88, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %103 = load i32, ptr %10, align 4
  switch i32 %103, label %105 [
    i32 0, label %104
    i32 1, label %104
  ]

104:                                              ; preds = %102, %102
  ret void

105:                                              ; preds = %102
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden ptr @list_remove(ptr noundef, ptr noundef, ptr noundef) #0

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !13, i64 16}
!12 = !{!"MallocBlockInfo", !6, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !15, i64 40}
!13 = !{!"long", !7, i64 0}
!14 = !{!"SourceLocation", !6, i64 0, !10, i64 8}
!15 = !{!"ListNode", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !6, i64 24}
!18 = !{!12, !10, i64 32}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!12, !6, i64 0}
!23 = !{!12, !13, i64 8}


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

@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [87 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @_test_free(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %131, label %5

5:                                                ; preds = %3
  %6 = ptrtoint ptr %0 to i64
  tail call void @_assert_true(i64 noundef %6, ptr noundef nonnull @.str.15, ptr noundef %1, i32 noundef %2)
  %7 = getelementptr inbounds i8, ptr %0, i64 -16
  %8 = getelementptr inbounds i8, ptr %0, i64 -72
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 %9
  %11 = getelementptr inbounds i8, ptr %0, i64 -64
  %12 = getelementptr inbounds i8, ptr %0, i64 -56
  br label %13

13:                                               ; preds = %5, %125
  %14 = phi i1 [ true, %5 ], [ false, %125 ]
  %indvars.iv.sroa.phi.sroa.speculated = phi ptr [ %7, %5 ], [ %10, %125 ]
  %15 = load i8, ptr %indvars.iv.sroa.phi.sroa.speculated, align 1, !tbaa !14
  %.not = icmp eq i8 %15, -17
  br i1 %.not, label %20, label %16

16:                                               ; preds = %13
  %17 = load i64, ptr %8, align 8, !tbaa !5
  %18 = load ptr, ptr %11, align 8, !tbaa !15
  %19 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %17, ptr noundef %18, i32 noundef %19, ptr noundef nonnull %indvars.iv.sroa.phi.sroa.speculated)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %20

20:                                               ; preds = %16, %13
  %21 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 1
  %22 = load i8, ptr %21, align 1, !tbaa !14
  %.not.1 = icmp eq i8 %22, -17
  br i1 %.not.1, label %27, label %23

23:                                               ; preds = %20
  %24 = load i64, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !15
  %26 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %24, ptr noundef %25, i32 noundef %26, ptr noundef nonnull %21)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %27

27:                                               ; preds = %23, %20
  %28 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 2
  %29 = load i8, ptr %28, align 1, !tbaa !14
  %.not.2 = icmp eq i8 %29, -17
  br i1 %.not.2, label %34, label %30

30:                                               ; preds = %27
  %31 = load i64, ptr %8, align 8, !tbaa !5
  %32 = load ptr, ptr %11, align 8, !tbaa !15
  %33 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %31, ptr noundef %32, i32 noundef %33, ptr noundef nonnull %28)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %34

34:                                               ; preds = %30, %27
  %35 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 3
  %36 = load i8, ptr %35, align 1, !tbaa !14
  %.not.3 = icmp eq i8 %36, -17
  br i1 %.not.3, label %41, label %37

37:                                               ; preds = %34
  %38 = load i64, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %11, align 8, !tbaa !15
  %40 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %38, ptr noundef %39, i32 noundef %40, ptr noundef nonnull %35)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %41

41:                                               ; preds = %37, %34
  %42 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 4
  %43 = load i8, ptr %42, align 1, !tbaa !14
  %.not.4 = icmp eq i8 %43, -17
  br i1 %.not.4, label %48, label %44

44:                                               ; preds = %41
  %45 = load i64, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %11, align 8, !tbaa !15
  %47 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %45, ptr noundef %46, i32 noundef %47, ptr noundef nonnull %42)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %48

48:                                               ; preds = %44, %41
  %49 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 5
  %50 = load i8, ptr %49, align 1, !tbaa !14
  %.not.5 = icmp eq i8 %50, -17
  br i1 %.not.5, label %55, label %51

51:                                               ; preds = %48
  %52 = load i64, ptr %8, align 8, !tbaa !5
  %53 = load ptr, ptr %11, align 8, !tbaa !15
  %54 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %52, ptr noundef %53, i32 noundef %54, ptr noundef nonnull %49)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %55

55:                                               ; preds = %51, %48
  %56 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 6
  %57 = load i8, ptr %56, align 1, !tbaa !14
  %.not.6 = icmp eq i8 %57, -17
  br i1 %.not.6, label %62, label %58

58:                                               ; preds = %55
  %59 = load i64, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !15
  %61 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %59, ptr noundef %60, i32 noundef %61, ptr noundef nonnull %56)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %62

62:                                               ; preds = %58, %55
  %63 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 7
  %64 = load i8, ptr %63, align 1, !tbaa !14
  %.not.7 = icmp eq i8 %64, -17
  br i1 %.not.7, label %69, label %65

65:                                               ; preds = %62
  %66 = load i64, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !15
  %68 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %66, ptr noundef %67, i32 noundef %68, ptr noundef nonnull %63)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %69

69:                                               ; preds = %65, %62
  %70 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 8
  %71 = load i8, ptr %70, align 1, !tbaa !14
  %.not.8 = icmp eq i8 %71, -17
  br i1 %.not.8, label %76, label %72

72:                                               ; preds = %69
  %73 = load i64, ptr %8, align 8, !tbaa !5
  %74 = load ptr, ptr %11, align 8, !tbaa !15
  %75 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %73, ptr noundef %74, i32 noundef %75, ptr noundef nonnull %70)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %76

76:                                               ; preds = %72, %69
  %77 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 9
  %78 = load i8, ptr %77, align 1, !tbaa !14
  %.not.9 = icmp eq i8 %78, -17
  br i1 %.not.9, label %83, label %79

79:                                               ; preds = %76
  %80 = load i64, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %11, align 8, !tbaa !15
  %82 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %80, ptr noundef %81, i32 noundef %82, ptr noundef nonnull %77)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %83

83:                                               ; preds = %79, %76
  %84 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 10
  %85 = load i8, ptr %84, align 1, !tbaa !14
  %.not.10 = icmp eq i8 %85, -17
  br i1 %.not.10, label %90, label %86

86:                                               ; preds = %83
  %87 = load i64, ptr %8, align 8, !tbaa !5
  %88 = load ptr, ptr %11, align 8, !tbaa !15
  %89 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %87, ptr noundef %88, i32 noundef %89, ptr noundef nonnull %84)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %90

90:                                               ; preds = %86, %83
  %91 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 11
  %92 = load i8, ptr %91, align 1, !tbaa !14
  %.not.11 = icmp eq i8 %92, -17
  br i1 %.not.11, label %97, label %93

93:                                               ; preds = %90
  %94 = load i64, ptr %8, align 8, !tbaa !5
  %95 = load ptr, ptr %11, align 8, !tbaa !15
  %96 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %94, ptr noundef %95, i32 noundef %96, ptr noundef nonnull %91)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %97

97:                                               ; preds = %93, %90
  %98 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 12
  %99 = load i8, ptr %98, align 1, !tbaa !14
  %.not.12 = icmp eq i8 %99, -17
  br i1 %.not.12, label %104, label %100

100:                                              ; preds = %97
  %101 = load i64, ptr %8, align 8, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !15
  %103 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %101, ptr noundef %102, i32 noundef %103, ptr noundef nonnull %98)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %104

104:                                              ; preds = %100, %97
  %105 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 13
  %106 = load i8, ptr %105, align 1, !tbaa !14
  %.not.13 = icmp eq i8 %106, -17
  br i1 %.not.13, label %111, label %107

107:                                              ; preds = %104
  %108 = load i64, ptr %8, align 8, !tbaa !5
  %109 = load ptr, ptr %11, align 8, !tbaa !15
  %110 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %108, ptr noundef %109, i32 noundef %110, ptr noundef nonnull %105)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %111

111:                                              ; preds = %107, %104
  %112 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 14
  %113 = load i8, ptr %112, align 1, !tbaa !14
  %.not.14 = icmp eq i8 %113, -17
  br i1 %.not.14, label %118, label %114

114:                                              ; preds = %111
  %115 = load i64, ptr %8, align 8, !tbaa !5
  %116 = load ptr, ptr %11, align 8, !tbaa !15
  %117 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %115, ptr noundef %116, i32 noundef %117, ptr noundef nonnull %112)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %118

118:                                              ; preds = %114, %111
  %119 = getelementptr inbounds i8, ptr %indvars.iv.sroa.phi.sroa.speculated, i64 15
  %120 = load i8, ptr %119, align 1, !tbaa !14
  %.not.15 = icmp eq i8 %120, -17
  br i1 %.not.15, label %125, label %121

121:                                              ; preds = %118
  %122 = load i64, ptr %8, align 8, !tbaa !5
  %123 = load ptr, ptr %11, align 8, !tbaa !15
  %124 = load i32, ptr %12, align 8, !tbaa !16
  tail call void (ptr, ...) @cm_print_error(ptr noundef nonnull @.str.16, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %0, i64 noundef %122, ptr noundef %123, i32 noundef %124, ptr noundef nonnull %119)
  tail call void @_fail(ptr noundef %1, i32 noundef %2)
  br label %125

125:                                              ; preds = %121, %118
  br i1 %14, label %13, label %126, !llvm.loop !17

126:                                              ; preds = %125
  %127 = getelementptr inbounds i8, ptr %0, i64 -88
  %128 = getelementptr inbounds i8, ptr %0, i64 -48
  %129 = tail call ptr @list_remove(ptr noundef nonnull %128, ptr noundef null, ptr noundef null)
  %130 = load ptr, ptr %127, align 8, !tbaa !19
  tail call void @free(ptr noundef %130) #2
  br label %131

131:                                              ; preds = %3, %126
  ret void
}

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #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, !10, i64 16}
!6 = !{!"MallocBlockInfo", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !13, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"SourceLocation", !7, i64 0, !12, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"ListNode", !7, i64 0, !12, i64 8, !7, i64 16, !7, i64 24}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !12, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !7, i64 0}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass