; LLVM IR from txus/libtreadmill :: tests (gc_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"

%struct.object_s = type { %struct.tm_object_header_s, i32, ptr }
%struct.tm_object_header_s = type { ptr }
%struct.tm_heap_s = type { ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, ptr, ptr, ptr, ptr }
%struct.tm_cell_s = type { ptr, ptr, ptr, i8 }

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 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 ptr @State_new() #1

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

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

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

declare double @TmHeap_size(ptr noundef) #2

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

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

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

declare double @TmHeap_white_size(ptr noundef) #2

declare double @TmHeap_ecru_size(ptr noundef) #2

declare double @TmHeap_grey_size(ptr noundef) #2

declare double @TmHeap_black_size(ptr noundef) #2

declare void @TmHeap_destroy(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @test_TmHeap_allocate() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %7 = call ptr @State_new()
  store ptr %7, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = call ptr @new_heap(ptr noundef %8, i32 noundef 10, i32 noundef 10)
  store ptr %9, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = call ptr @Object_new(ptr noundef %10)
  store ptr %11, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.object_s, ptr %12, i32 0, i32 0
  %14 = getelementptr inbounds %struct.tm_object_header_s, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %15, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.tm_heap_s, ptr %17, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  %20 = getelementptr inbounds %struct.tm_cell_s, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !16
  %22 = icmp eq ptr %16, %21
  br i1 %22, label %36, label %23

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

28:                                               ; preds = %23
  br label %33

29:                                               ; preds = %23
  %30 = call ptr @__errno_location() #6
  %31 = load i32, ptr %30, align 4, !tbaa !18
  %32 = call ptr @strerror(i32 noundef %31) #5
  br label %33

33:                                               ; preds = %29, %28
  %34 = phi ptr [ @.str.3, %28 ], [ %32, %29 ]
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.19, ptr noundef @.str.2, i32 noundef 163, ptr noundef %34) #5
  store ptr @.str.20, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %142

36:                                               ; preds = %0
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.tm_heap_s, ptr %37, i32 0, i32 5
  %39 = load i32, ptr %38, align 4, !tbaa !19
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %54, label %41

41:                                               ; preds = %36
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call ptr @__errno_location() #6
  %44 = load i32, ptr %43, align 4, !tbaa !18
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %41
  br label %51

47:                                               ; preds = %41
  %48 = call ptr @__errno_location() #6
  %49 = load i32, ptr %48, align 4, !tbaa !18
  %50 = call ptr @strerror(i32 noundef %49) #5
  br label %51

51:                                               ; preds = %47, %46
  %52 = phi ptr [ @.str.3, %46 ], [ %50, %47 ]
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.21, ptr noundef @.str.2, i32 noundef 164, ptr noundef %52) #5
  store ptr @.str.22, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %142

54:                                               ; preds = %36
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = call double @TmHeap_size(ptr noundef %55)
  %57 = fcmp oeq double %56, 1.100000e+01
  br i1 %57, label %71, label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call ptr @__errno_location() #6
  %61 = load i32, ptr %60, align 4, !tbaa !18
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  br label %68

64:                                               ; preds = %58
  %65 = call ptr @__errno_location() #6
  %66 = load i32, ptr %65, align 4, !tbaa !18
  %67 = call ptr @strerror(i32 noundef %66) #5
  br label %68

68:                                               ; preds = %64, %63
  %69 = phi ptr [ @.str.3, %63 ], [ %67, %64 ]
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 166, ptr noundef %69) #5
  store ptr @.str.4, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %142

71:                                               ; preds = %54
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = call double @TmHeap_white_size(ptr noundef %72)
  %74 = fcmp oeq double %73, 1.000000e+01
  br i1 %74, label %88, label %75

75:                                               ; preds = %71
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call ptr @__errno_location() #6
  %78 = load i32, ptr %77, align 4, !tbaa !18
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %75
  br label %85

81:                                               ; preds = %75
  %82 = call ptr @__errno_location() #6
  %83 = load i32, ptr %82, align 4, !tbaa !18
  %84 = call ptr @strerror(i32 noundef %83) #5
  br label %85

85:                                               ; preds = %81, %80
  %86 = phi ptr [ @.str.3, %80 ], [ %84, %81 ]
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.23, ptr noundef @.str.2, i32 noundef 168, ptr noundef %86) #5
  store ptr @.str.24, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %142

88:                                               ; preds = %71
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = call double @TmHeap_ecru_size(ptr noundef %89)
  %91 = fcmp oeq double %90, 0.000000e+00
  br i1 %91, label %105, label %92

92:                                               ; preds = %88
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = call ptr @__errno_location() #6
  %95 = load i32, ptr %94, align 4, !tbaa !18
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %92
  br label %102

98:                                               ; preds = %92
  %99 = call ptr @__errno_location() #6
  %100 = load i32, ptr %99, align 4, !tbaa !18
  %101 = call ptr @strerror(i32 noundef %100) #5
  br label %102

102:                                              ; preds = %98, %97
  %103 = phi ptr [ @.str.3, %97 ], [ %101, %98 ]
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 169, ptr noundef %103) #5
  store ptr @.str.8, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %142

105:                                              ; preds = %88
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = call double @TmHeap_grey_size(ptr noundef %106)
  %108 = fcmp oeq double %107, 0.000000e+00
  br i1 %108, label %122, label %109

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

114:                                              ; preds = %109
  br label %119

115:                                              ; preds = %109
  %116 = call ptr @__errno_location() #6
  %117 = load i32, ptr %116, align 4, !tbaa !18
  %118 = call ptr @strerror(i32 noundef %117) #5
  br label %119

119:                                              ; preds = %115, %114
  %120 = phi ptr [ @.str.3, %114 ], [ %118, %115 ]
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 170, ptr noundef %120) #5
  store ptr @.str.10, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %142

122:                                              ; preds = %105
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = call double @TmHeap_black_size(ptr noundef %123)
  %125 = fcmp oeq double %124, 1.000000e+00
  br i1 %125, label %139, label %126

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

131:                                              ; preds = %126
  br label %136

132:                                              ; preds = %126
  %133 = call ptr @__errno_location() #6
  %134 = load i32, ptr %133, align 4, !tbaa !18
  %135 = call ptr @strerror(i32 noundef %134) #5
  br label %136

136:                                              ; preds = %132, %131
  %137 = phi ptr [ @.str.3, %131 ], [ %135, %132 ]
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.25, ptr noundef @.str.2, i32 noundef 171, ptr noundef %137) #5
  store ptr @.str.26, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %142

139:                                              ; preds = %122
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  call void @TmHeap_destroy(ptr noundef %140)
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  call void @State_destroy(ptr noundef %141)
  store ptr null, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %142

142:                                              ; preds = %139, %136, %119, %102, %85, %68, %51, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %143 = load ptr, ptr %1, align 8
  ret ptr %143
}

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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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 = !{!"object_s", !11, i64 0, !12, i64 8, !6, i64 16}
!11 = !{!"tm_object_header_s", !6, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"tm_heap_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !15, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 8}
!17 = !{!"tm_cell_s", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24}
!18 = !{!12, !12, i64 0}
!19 = !{!14, !12, i64 36}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @State_new() local_unnamed_addr #0

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

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

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

declare double @TmHeap_size(ptr noundef) local_unnamed_addr #1

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

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

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

declare double @TmHeap_white_size(ptr noundef) local_unnamed_addr #1

declare double @TmHeap_ecru_size(ptr noundef) local_unnamed_addr #1

declare double @TmHeap_grey_size(ptr noundef) local_unnamed_addr #1

declare double @TmHeap_black_size(ptr noundef) local_unnamed_addr #1

declare void @TmHeap_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @test_TmHeap_allocate() local_unnamed_addr #0 {
  %1 = tail call ptr @State_new()
  %2 = tail call ptr @new_heap(ptr noundef %1, i32 noundef 10, i32 noundef 10)
  %3 = tail call ptr @Object_new(ptr noundef %2)
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !12
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !15
  %9 = icmp eq ptr %4, %8
  br i1 %9, label %20, label %10

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

15:                                               ; preds = %10
  %16 = tail call ptr @strerror(i32 noundef %13) #6
  br label %17

17:                                               ; preds = %10, %15
  %18 = phi ptr [ %16, %15 ], [ @.str.3, %10 ]
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.2, i32 noundef 163, ptr noundef %18) #7
  br label %100

20:                                               ; preds = %0
  %21 = getelementptr inbounds i8, ptr %2, i64 36
  %22 = load i32, ptr %21, align 4, !tbaa !19
  %23 = icmp eq i32 %22, 1
  br i1 %23, label %34, label %24

24:                                               ; preds = %20
  %25 = load ptr, ptr @stderr, align 8, !tbaa !17
  %26 = tail call ptr @__errno_location() #5
  %27 = load i32, ptr %26, align 4, !tbaa !18
  %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.3, %24 ]
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.2, i32 noundef 164, ptr noundef %32) #7
  br label %100

34:                                               ; preds = %20
  %35 = tail call double @TmHeap_size(ptr noundef nonnull %2) #6
  %36 = fcmp oeq double %35, 1.100000e+01
  br i1 %36, label %47, label %37

37:                                               ; preds = %34
  %38 = load ptr, ptr @stderr, align 8, !tbaa !17
  %39 = tail call ptr @__errno_location() #5
  %40 = load i32, ptr %39, align 4, !tbaa !18
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %44, label %42

42:                                               ; preds = %37
  %43 = tail call ptr @strerror(i32 noundef %40) #6
  br label %44

44:                                               ; preds = %37, %42
  %45 = phi ptr [ %43, %42 ], [ @.str.3, %37 ]
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 166, ptr noundef %45) #7
  br label %100

47:                                               ; preds = %34
  %48 = tail call double @TmHeap_white_size(ptr noundef nonnull %2) #6
  %49 = fcmp oeq double %48, 1.000000e+01
  br i1 %49, label %60, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr @stderr, align 8, !tbaa !17
  %52 = tail call ptr @__errno_location() #5
  %53 = load i32, ptr %52, align 4, !tbaa !18
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %57, label %55

55:                                               ; preds = %50
  %56 = tail call ptr @strerror(i32 noundef %53) #6
  br label %57

57:                                               ; preds = %50, %55
  %58 = phi ptr [ %56, %55 ], [ @.str.3, %50 ]
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 168, ptr noundef %58) #7
  br label %100

60:                                               ; preds = %47
  %61 = tail call double @TmHeap_ecru_size(ptr noundef nonnull %2) #6
  %62 = fcmp oeq double %61, 0.000000e+00
  br i1 %62, label %73, label %63

63:                                               ; preds = %60
  %64 = load ptr, ptr @stderr, align 8, !tbaa !17
  %65 = tail call ptr @__errno_location() #5
  %66 = load i32, ptr %65, align 4, !tbaa !18
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %70, label %68

68:                                               ; preds = %63
  %69 = tail call ptr @strerror(i32 noundef %66) #6
  br label %70

70:                                               ; preds = %63, %68
  %71 = phi ptr [ %69, %68 ], [ @.str.3, %63 ]
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 169, ptr noundef %71) #7
  br label %100

73:                                               ; preds = %60
  %74 = tail call double @TmHeap_grey_size(ptr noundef nonnull %2) #6
  %75 = fcmp oeq double %74, 0.000000e+00
  br i1 %75, label %86, label %76

76:                                               ; preds = %73
  %77 = load ptr, ptr @stderr, align 8, !tbaa !17
  %78 = tail call ptr @__errno_location() #5
  %79 = load i32, ptr %78, align 4, !tbaa !18
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %83, label %81

81:                                               ; preds = %76
  %82 = tail call ptr @strerror(i32 noundef %79) #6
  br label %83

83:                                               ; preds = %76, %81
  %84 = phi ptr [ %82, %81 ], [ @.str.3, %76 ]
  %85 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 170, ptr noundef %84) #7
  br label %100

86:                                               ; preds = %73
  %87 = tail call double @TmHeap_black_size(ptr noundef nonnull %2) #6
  %88 = fcmp oeq double %87, 1.000000e+00
  br i1 %88, label %99, label %89

89:                                               ; preds = %86
  %90 = load ptr, ptr @stderr, align 8, !tbaa !17
  %91 = tail call ptr @__errno_location() #5
  %92 = load i32, ptr %91, align 4, !tbaa !18
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %96, label %94

94:                                               ; preds = %89
  %95 = tail call ptr @strerror(i32 noundef %92) #6
  br label %96

96:                                               ; preds = %89, %94
  %97 = phi ptr [ %95, %94 ], [ @.str.3, %89 ]
  %98 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.2, i32 noundef 171, ptr noundef %97) #7
  br label %100

99:                                               ; preds = %86
  tail call void @TmHeap_destroy(ptr noundef nonnull %2) #6
  tail call void @State_destroy(ptr noundef %1)
  br label %100

100:                                              ; preds = %99, %96, %83, %70, %57, %44, %31, %17
  %.0 = phi ptr [ null, %99 ], [ @.str.26, %96 ], [ @.str.10, %83 ], [ @.str.8, %70 ], [ @.str.24, %57 ], [ @.str.4, %44 ], [ @.str.22, %31 ], [ @.str.20, %17 ]
  ret ptr %.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 = { "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 = { 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 #3 = { 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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, !8, i64 0}
!6 = !{!"object_s", !7, i64 0, !11, i64 8, !8, i64 16}
!7 = !{!"tm_object_header_s", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !8, i64 16}
!13 = !{!"tm_heap_s", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !14, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80}
!14 = !{!"long", !9, i64 0}
!15 = !{!16, !8, i64 8}
!16 = !{!"tm_cell_s", !8, i64 0, !8, i64 8, !8, i64 16, !9, i64 24}
!17 = !{!8, !8, i64 0}
!18 = !{!11, !11, i64 0}
!19 = !{!13, !11, i64 36}


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