; LLVM IR from cvra/robot-software :: lib/cmp/test (test)

; 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.buf_s = type { i64, i64, i64, ptr }
%struct.cmp_ctx_s = type { i8, ptr, ptr, ptr }
%struct.cmp_object_s = type { i8, %union.cmp_object_data_u }
%union.cmp_object_data_u = type { i64 }

@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__.run_boolean_tests = external hidden unnamed_addr constant [18 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [37 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: nounwind uwtable
declare hidden void @setup_cmp_and_buf(ptr noundef, ptr noundef) #1

declare zeroext i1 @M_BufferSeek(ptr noundef, i64 noundef) #2

declare i64 @M_BufferGetSize(ptr noundef) #2

declare zeroext i1 @cmp_read_object(ptr noundef, ptr noundef) #2

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

declare ptr @cmp_strerror(ptr noundef) #2

declare zeroext i1 @M_BufferEqualsData(ptr noundef, ptr noundef, i64 noundef) #2

declare ptr @M_BufferGetData(ptr noundef) #2

; 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 hidden void @error_clear() #1

declare void @M_BufferClear(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @error_print_object(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @run_boolean_tests() #1 {
  %1 = alloca i1, align 1
  %2 = alloca %struct.buf_s, align 8
  %3 = alloca %struct.cmp_ctx_s, align 8
  %4 = alloca %struct.cmp_object_s, align 8
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #3
  call void @setup_cmp_and_buf(ptr noundef %3, ptr noundef %2)
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %10 = call zeroext i1 @cmp_write_false(ptr noundef %3)
  br i1 %10, label %13, label %11

11:                                               ; preds = %0
  %12 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.264, ptr noundef @.str.270, ptr noundef %12)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

13:                                               ; preds = %0
  %14 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %15 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.271, i64 noundef 1)
  br i1 %15, label %19, label %16

16:                                               ; preds = %13
  call void (ptr, ...) @error_printf(ptr noundef @.str.267, ptr noundef @.str.270)
  call void @error_printbin(ptr noundef @.str.271, i64 noundef 1)
  %17 = call ptr @M_BufferGetData(ptr noundef %2)
  %18 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %17, i64 noundef %18)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

19:                                               ; preds = %13
  %20 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %21 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %21, label %24, label %22

22:                                               ; preds = %19
  %23 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.268, ptr noundef @.str.270, ptr noundef %23)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

24:                                               ; preds = %19
  %25 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %26 = load i8, ptr %25, align 8, !tbaa !5, !range !8, !noundef !9
  %27 = trunc i8 %26 to i1
  %28 = zext i1 %27 to i32
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %24
  call void (ptr, ...) @error_printf(ptr noundef @.str.269, ptr noundef @.str.270, ptr noundef @.str.272)
  call void @error_print_object(ptr noundef %4)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

31:                                               ; preds = %24
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %32 = call zeroext i1 @cmp_write_true(ptr noundef %3)
  br i1 %32, label %35, label %33

33:                                               ; preds = %31
  %34 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.264, ptr noundef @.str.273, ptr noundef %34)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

35:                                               ; preds = %31
  %36 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %37 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.274, i64 noundef 1)
  br i1 %37, label %41, label %38

38:                                               ; preds = %35
  call void (ptr, ...) @error_printf(ptr noundef @.str.267, ptr noundef @.str.273)
  call void @error_printbin(ptr noundef @.str.274, i64 noundef 1)
  %39 = call ptr @M_BufferGetData(ptr noundef %2)
  %40 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %39, i64 noundef %40)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

41:                                               ; preds = %35
  %42 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %43 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %43, label %46, label %44

44:                                               ; preds = %41
  %45 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.268, ptr noundef @.str.273, ptr noundef %45)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

46:                                               ; preds = %41
  %47 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %48 = load i8, ptr %47, align 8, !tbaa !5, !range !8, !noundef !9
  %49 = trunc i8 %48 to i1
  %50 = zext i1 %49 to i32
  %51 = icmp ne i32 %50, 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  call void (ptr, ...) @error_printf(ptr noundef @.str.269, ptr noundef @.str.273, ptr noundef @.str.275)
  call void @error_print_object(ptr noundef %4)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

53:                                               ; preds = %46
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %54 = call zeroext i1 @cmp_write_bool(ptr noundef %3, i1 noundef zeroext false)
  br i1 %54, label %57, label %55

55:                                               ; preds = %53
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2137)
  %56 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.276, ptr noundef @.str.272, ptr noundef %56)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

57:                                               ; preds = %53
  %58 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %59 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.271, i64 noundef 1)
  br i1 %59, label %63, label %60

60:                                               ; preds = %57
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2137)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.276, ptr noundef @.str.272)
  call void @error_printbin(ptr noundef @.str.271, i64 noundef 1)
  %61 = call ptr @M_BufferGetData(ptr noundef %2)
  %62 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %61, i64 noundef %62)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

63:                                               ; preds = %57
  %64 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %65 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %65, label %68, label %66

66:                                               ; preds = %63
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2137)
  %67 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.276, ptr noundef @.str.272, ptr noundef %67)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

68:                                               ; preds = %63
  %69 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %70 = load i8, ptr %69, align 8, !tbaa !5, !range !8, !noundef !9
  %71 = trunc i8 %70 to i1
  %72 = zext i1 %71 to i32
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %68
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2137)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.276, ptr noundef @.str.272)
  call void @error_print_object(ptr noundef %4)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

75:                                               ; preds = %68
  %76 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %77

77:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  %78 = call zeroext i1 @cmp_read_bool(ptr noundef %3, ptr noundef %6)
  br i1 %78, label %81, label %79

79:                                               ; preds = %77
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2137)
  %80 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.276, ptr noundef @.str.272, ptr noundef %80)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %91

81:                                               ; preds = %77
  %82 = load i8, ptr %6, align 1, !tbaa !10, !range !8, !noundef !9
  %83 = trunc i8 %82 to i1
  %84 = zext i1 %83 to i32
  %85 = icmp ne i32 0, %84
  br i1 %85, label %86, label %90

86:                                               ; preds = %81
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2137)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.276, ptr noundef @.str.272)
  %87 = load i8, ptr %6, align 1, !tbaa !10, !range !8, !noundef !9
  %88 = trunc i8 %87 to i1
  %89 = zext i1 %88 to i32
  call void (ptr, ...) @error_printf(ptr noundef @.str.277, i32 noundef %89)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %91

90:                                               ; preds = %81
  store i32 0, ptr %5, align 4
  br label %91

91:                                               ; preds = %90, %86, %79
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  %92 = load i32, ptr %5, align 4
  switch i32 %92, label %214 [
    i32 0, label %93
  ]

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %96 = call zeroext i1 @cmp_write_bool(ptr noundef %3, i1 noundef zeroext true)
  br i1 %96, label %99, label %97

97:                                               ; preds = %95
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2138)
  %98 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.276, ptr noundef @.str.275, ptr noundef %98)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

99:                                               ; preds = %95
  %100 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %101 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.274, i64 noundef 1)
  br i1 %101, label %105, label %102

102:                                              ; preds = %99
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2138)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.276, ptr noundef @.str.275)
  call void @error_printbin(ptr noundef @.str.274, i64 noundef 1)
  %103 = call ptr @M_BufferGetData(ptr noundef %2)
  %104 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %103, i64 noundef %104)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

105:                                              ; preds = %99
  %106 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %107 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %107, label %110, label %108

108:                                              ; preds = %105
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2138)
  %109 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.276, ptr noundef @.str.275, ptr noundef %109)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

110:                                              ; preds = %105
  %111 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %112 = load i8, ptr %111, align 8, !tbaa !5, !range !8, !noundef !9
  %113 = trunc i8 %112 to i1
  %114 = zext i1 %113 to i32
  %115 = icmp ne i32 %114, 1
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2138)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.276, ptr noundef @.str.275)
  call void @error_print_object(ptr noundef %4)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

117:                                              ; preds = %110
  %118 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %119

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  %120 = call zeroext i1 @cmp_read_bool(ptr noundef %3, ptr noundef %7)
  br i1 %120, label %123, label %121

121:                                              ; preds = %119
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2138)
  %122 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.276, ptr noundef @.str.275, ptr noundef %122)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %133

123:                                              ; preds = %119
  %124 = load i8, ptr %7, align 1, !tbaa !10, !range !8, !noundef !9
  %125 = trunc i8 %124 to i1
  %126 = zext i1 %125 to i32
  %127 = icmp ne i32 1, %126
  br i1 %127, label %128, label %132

128:                                              ; preds = %123
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2138)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.276, ptr noundef @.str.275)
  %129 = load i8, ptr %7, align 1, !tbaa !10, !range !8, !noundef !9
  %130 = trunc i8 %129 to i1
  %131 = zext i1 %130 to i32
  call void (ptr, ...) @error_printf(ptr noundef @.str.277, i32 noundef %131)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %133

132:                                              ; preds = %123
  store i32 0, ptr %5, align 4
  br label %133

133:                                              ; preds = %132, %128, %121
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  %134 = load i32, ptr %5, align 4
  switch i32 %134, label %214 [
    i32 0, label %135
  ]

135:                                              ; preds = %133
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %138 = call zeroext i1 @cmp_write_u8_as_bool(ptr noundef %3, i8 noundef zeroext 0)
  br i1 %138, label %141, label %139

139:                                              ; preds = %137
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2140)
  %140 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.278, ptr noundef @.str.19, ptr noundef %140)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

141:                                              ; preds = %137
  %142 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %143 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.271, i64 noundef 1)
  br i1 %143, label %147, label %144

144:                                              ; preds = %141
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2140)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.278, ptr noundef @.str.19)
  call void @error_printbin(ptr noundef @.str.271, i64 noundef 1)
  %145 = call ptr @M_BufferGetData(ptr noundef %2)
  %146 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %145, i64 noundef %146)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

147:                                              ; preds = %141
  %148 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %149 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %149, label %152, label %150

150:                                              ; preds = %147
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2140)
  %151 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.278, ptr noundef @.str.19, ptr noundef %151)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

152:                                              ; preds = %147
  %153 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %154 = load i8, ptr %153, align 8, !tbaa !5, !range !8, !noundef !9
  %155 = trunc i8 %154 to i1
  %156 = zext i1 %155 to i32
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %159

158:                                              ; preds = %152
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2140)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.278, ptr noundef @.str.19)
  call void @error_print_object(ptr noundef %4)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

159:                                              ; preds = %152
  %160 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %161

161:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  %162 = call zeroext i1 @cmp_read_bool_as_u8(ptr noundef %3, ptr noundef %8)
  br i1 %162, label %165, label %163

163:                                              ; preds = %161
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2140)
  %164 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.278, ptr noundef @.str.19, ptr noundef %164)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %171

165:                                              ; preds = %161
  %166 = load i8, ptr %8, align 1, !tbaa !5
  %167 = zext i8 %166 to i32
  %168 = icmp ne i32 0, %167
  br i1 %168, label %169, label %170

169:                                              ; preds = %165
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2140)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.278, ptr noundef @.str.19)
  call void @error_and_exit(ptr noundef @.str.279)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %171

170:                                              ; preds = %165
  store i32 0, ptr %5, align 4
  br label %171

171:                                              ; preds = %170, %169, %163
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  %172 = load i32, ptr %5, align 4
  switch i32 %172, label %214 [
    i32 0, label %173
  ]

173:                                              ; preds = %171
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %176 = call zeroext i1 @cmp_write_u8_as_bool(ptr noundef %3, i8 noundef zeroext 1)
  br i1 %176, label %179, label %177

177:                                              ; preds = %175
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2142)
  %178 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.278, ptr noundef @.str.34, ptr noundef %178)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

179:                                              ; preds = %175
  %180 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %181 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.274, i64 noundef 1)
  br i1 %181, label %185, label %182

182:                                              ; preds = %179
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2142)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.278, ptr noundef @.str.34)
  call void @error_printbin(ptr noundef @.str.274, i64 noundef 1)
  %183 = call ptr @M_BufferGetData(ptr noundef %2)
  %184 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %183, i64 noundef %184)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

185:                                              ; preds = %179
  %186 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %187 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %187, label %190, label %188

188:                                              ; preds = %185
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2142)
  %189 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.278, ptr noundef @.str.34, ptr noundef %189)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

190:                                              ; preds = %185
  %191 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %192 = load i8, ptr %191, align 8, !tbaa !5, !range !8, !noundef !9
  %193 = trunc i8 %192 to i1
  %194 = zext i1 %193 to i32
  %195 = icmp ne i32 %194, 1
  br i1 %195, label %196, label %197

196:                                              ; preds = %190
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2142)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.278, ptr noundef @.str.34)
  call void @error_print_object(ptr noundef %4)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

197:                                              ; preds = %190
  %198 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %199

199:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  %200 = call zeroext i1 @cmp_read_bool_as_u8(ptr noundef %3, ptr noundef %9)
  br i1 %200, label %203, label %201

201:                                              ; preds = %199
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2142)
  %202 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.278, ptr noundef @.str.34, ptr noundef %202)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %209

203:                                              ; preds = %199
  %204 = load i8, ptr %9, align 1, !tbaa !5
  %205 = zext i8 %204 to i32
  %206 = icmp ne i32 1, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %203
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_boolean_tests, i32 noundef 2142)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.278, ptr noundef @.str.34)
  call void @error_and_exit(ptr noundef @.str.279)
  call void (ptr, ...) @error_printf(ptr noundef @.str.24)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %209

208:                                              ; preds = %203
  store i32 0, ptr %5, align 4
  br label %209

209:                                              ; preds = %208, %207, %201
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  %210 = load i32, ptr %5, align 4
  switch i32 %210, label %214 [
    i32 0, label %211
  ]

211:                                              ; preds = %209
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  store i1 true, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %214

214:                                              ; preds = %213, %209, %196, %188, %182, %177, %171, %158, %150, %144, %139, %133, %116, %108, %102, %97, %91, %74, %66, %60, %55, %52, %44, %38, %33, %30, %22, %16, %11
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #3
  %215 = load i1, ptr %1, align 1
  ret i1 %215
}

declare zeroext i1 @cmp_write_false(ptr noundef) #2

declare zeroext i1 @cmp_write_true(ptr noundef) #2

declare zeroext i1 @cmp_write_bool(ptr noundef, i1 noundef zeroext) #2

declare zeroext i1 @cmp_read_bool(ptr noundef, ptr noundef) #2

declare zeroext i1 @cmp_write_u8_as_bool(ptr noundef, i8 noundef zeroext) #2

declare zeroext i1 @cmp_read_bool_as_u8(ptr noundef, ptr noundef) #2

declare void @error_and_exit(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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{i8 0, i8 2}
!9 = !{}
!10 = !{!11, !11, i64 0}
!11 = !{!"_Bool", !6, 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"

%struct.buf_s = type { i64, i64, i64, ptr }
%struct.cmp_ctx_s = type { i8, ptr, ptr, ptr }
%struct.cmp_object_s = type { i8, %union.cmp_object_data_u }
%union.cmp_object_data_u = type { i64 }

@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__.run_boolean_tests = external hidden unnamed_addr constant [18 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

declare zeroext i1 @M_BufferSeek(ptr noundef, i64 noundef) local_unnamed_addr #2

declare i64 @M_BufferGetSize(ptr noundef) local_unnamed_addr #2

declare zeroext i1 @cmp_read_object(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare ptr @cmp_strerror(ptr noundef) local_unnamed_addr #2

declare zeroext i1 @M_BufferEqualsData(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare ptr @M_BufferGetData(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden void @error_clear() local_unnamed_addr #1

declare void @M_BufferClear(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @run_boolean_tests() local_unnamed_addr #1 {
  %1 = alloca %struct.buf_s, align 8
  %2 = alloca %struct.cmp_ctx_s, align 8
  %3 = alloca %struct.cmp_object_s, align 8
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  call void @setup_cmp_and_buf(ptr noundef nonnull %2, ptr noundef nonnull %1)
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %8 = call zeroext i1 @cmp_write_false(ptr noundef nonnull %2) #3
  br i1 %8, label %11, label %9

9:                                                ; preds = %0
  %10 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.264, ptr noundef nonnull @.str.270, ptr noundef %10)
  br label %157

11:                                               ; preds = %0
  %12 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %13 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.271, i64 noundef 1) #3
  br i1 %13, label %17, label %14

14:                                               ; preds = %11
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.267, ptr noundef nonnull @.str.270)
  call void @error_printbin(ptr noundef nonnull @.str.271, i64 noundef 1)
  %15 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %16 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %15, i64 noundef %16)
  br label %157

17:                                               ; preds = %11
  %18 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %19 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %19, label %22, label %20

20:                                               ; preds = %17
  %21 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.268, ptr noundef nonnull @.str.270, ptr noundef %21)
  br label %157

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  %24 = load i8, ptr %23, align 8, !tbaa !5, !range !8, !noundef !9
  %25 = trunc nuw i8 %24 to i1
  br i1 %25, label %26, label %27

26:                                               ; preds = %22
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.269, ptr noundef nonnull @.str.270, ptr noundef nonnull @.str.272)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %157

27:                                               ; preds = %22
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %28 = call zeroext i1 @cmp_write_true(ptr noundef nonnull %2) #3
  br i1 %28, label %31, label %29

29:                                               ; preds = %27
  %30 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.264, ptr noundef nonnull @.str.273, ptr noundef %30)
  br label %157

31:                                               ; preds = %27
  %32 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %33 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.274, i64 noundef 1) #3
  br i1 %33, label %37, label %34

34:                                               ; preds = %31
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.267, ptr noundef nonnull @.str.273)
  call void @error_printbin(ptr noundef nonnull @.str.274, i64 noundef 1)
  %35 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %36 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %35, i64 noundef %36)
  br label %157

37:                                               ; preds = %31
  %38 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %39 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %39, label %42, label %40

40:                                               ; preds = %37
  %41 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.268, ptr noundef nonnull @.str.273, ptr noundef %41)
  br label %157

42:                                               ; preds = %37
  %43 = load i8, ptr %23, align 8, !tbaa !5, !range !8, !noundef !9
  %.not.not = icmp eq i8 %43, 0
  br i1 %.not.not, label %44, label %45

44:                                               ; preds = %42
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.269, ptr noundef nonnull @.str.273, ptr noundef nonnull @.str.275)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %157

45:                                               ; preds = %42
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %46 = call zeroext i1 @cmp_write_bool(ptr noundef nonnull %2, i1 noundef zeroext false) #3
  br i1 %46, label %49, label %47

47:                                               ; preds = %45
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2137)
  %48 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.272, ptr noundef %48)
  br label %157

49:                                               ; preds = %45
  %50 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %51 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.271, i64 noundef 1) #3
  br i1 %51, label %55, label %52

52:                                               ; preds = %49
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2137)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.272)
  call void @error_printbin(ptr noundef nonnull @.str.271, i64 noundef 1)
  %53 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %54 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %53, i64 noundef %54)
  br label %157

55:                                               ; preds = %49
  %56 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %57 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %57, label %60, label %58

58:                                               ; preds = %55
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2137)
  %59 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.272, ptr noundef %59)
  br label %157

60:                                               ; preds = %55
  %61 = load i8, ptr %23, align 8, !tbaa !5, !range !8, !noundef !9
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %63, label %64

63:                                               ; preds = %60
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2137)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.272)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %157

64:                                               ; preds = %60
  %65 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  %66 = call zeroext i1 @cmp_read_bool(ptr noundef nonnull %2, ptr noundef nonnull %4) #3
  br i1 %66, label %69, label %67

67:                                               ; preds = %64
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2137)
  %68 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.272, ptr noundef %68)
  br label %.critedge

69:                                               ; preds = %64
  %70 = load i8, ptr %4, align 1, !tbaa !10, !range !8, !noundef !9
  %71 = trunc nuw i8 %70 to i1
  br i1 %71, label %72, label %75

72:                                               ; preds = %69
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2137)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.272)
  %73 = load i8, ptr %4, align 1, !tbaa !10, !range !8, !noundef !9
  %74 = zext nneg i8 %73 to i32
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.277, i32 noundef %74)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %.critedge

75:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %76 = call zeroext i1 @cmp_write_bool(ptr noundef nonnull %2, i1 noundef zeroext true) #3
  br i1 %76, label %79, label %77

77:                                               ; preds = %75
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2138)
  %78 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.275, ptr noundef %78)
  br label %157

79:                                               ; preds = %75
  %80 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %81 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.274, i64 noundef 1) #3
  br i1 %81, label %85, label %82

82:                                               ; preds = %79
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2138)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.275)
  call void @error_printbin(ptr noundef nonnull @.str.274, i64 noundef 1)
  %83 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %84 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %83, i64 noundef %84)
  br label %157

85:                                               ; preds = %79
  %86 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %87 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %87, label %90, label %88

88:                                               ; preds = %85
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2138)
  %89 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.275, ptr noundef %89)
  br label %157

90:                                               ; preds = %85
  %91 = load i8, ptr %23, align 8, !tbaa !5, !range !8, !noundef !9
  %.not.not11 = icmp eq i8 %91, 0
  br i1 %.not.not11, label %92, label %93

92:                                               ; preds = %90
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2138)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.275)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %157

93:                                               ; preds = %90
  %94 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  %95 = call zeroext i1 @cmp_read_bool(ptr noundef nonnull %2, ptr noundef nonnull %5) #3
  br i1 %95, label %98, label %96

96:                                               ; preds = %93
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2138)
  %97 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.275, ptr noundef %97)
  br label %.critedge16

98:                                               ; preds = %93
  %99 = load i8, ptr %5, align 1, !tbaa !10, !range !8, !noundef !9
  %.not.not12 = icmp eq i8 %99, 0
  br i1 %.not.not12, label %100, label %103

100:                                              ; preds = %98
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2138)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.275)
  %101 = load i8, ptr %5, align 1, !tbaa !10, !range !8, !noundef !9
  %102 = zext nneg i8 %101 to i32
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.277, i32 noundef %102)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %.critedge16

103:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %104 = call zeroext i1 @cmp_write_u8_as_bool(ptr noundef nonnull %2, i8 noundef zeroext 0) #3
  br i1 %104, label %107, label %105

105:                                              ; preds = %103
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2140)
  %106 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.19, ptr noundef %106)
  br label %157

107:                                              ; preds = %103
  %108 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %109 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.271, i64 noundef 1) #3
  br i1 %109, label %113, label %110

110:                                              ; preds = %107
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2140)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.19)
  call void @error_printbin(ptr noundef nonnull @.str.271, i64 noundef 1)
  %111 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %112 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %111, i64 noundef %112)
  br label %157

113:                                              ; preds = %107
  %114 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %115 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %115, label %118, label %116

116:                                              ; preds = %113
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2140)
  %117 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.19, ptr noundef %117)
  br label %157

118:                                              ; preds = %113
  %119 = load i8, ptr %23, align 8, !tbaa !5, !range !8, !noundef !9
  %120 = trunc nuw i8 %119 to i1
  br i1 %120, label %121, label %122

121:                                              ; preds = %118
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2140)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.19)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %157

122:                                              ; preds = %118
  %123 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  %124 = call zeroext i1 @cmp_read_bool_as_u8(ptr noundef nonnull %2, ptr noundef nonnull %6) #3
  br i1 %124, label %127, label %125

125:                                              ; preds = %122
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2140)
  %126 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.19, ptr noundef %126)
  br label %.critedge18

127:                                              ; preds = %122
  %128 = load i8, ptr %6, align 1, !tbaa !5
  %.not = icmp eq i8 %128, 0
  br i1 %.not, label %130, label %129

129:                                              ; preds = %127
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2140)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.19)
  call void @error_and_exit(ptr noundef nonnull @.str.279) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %.critedge18

130:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %131 = call zeroext i1 @cmp_write_u8_as_bool(ptr noundef nonnull %2, i8 noundef zeroext 1) #3
  br i1 %131, label %134, label %132

132:                                              ; preds = %130
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2142)
  %133 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.34, ptr noundef %133)
  br label %157

134:                                              ; preds = %130
  %135 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %136 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.274, i64 noundef 1) #3
  br i1 %136, label %140, label %137

137:                                              ; preds = %134
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2142)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.34)
  call void @error_printbin(ptr noundef nonnull @.str.274, i64 noundef 1)
  %138 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %139 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %138, i64 noundef %139)
  br label %157

140:                                              ; preds = %134
  %141 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %142 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %142, label %145, label %143

143:                                              ; preds = %140
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2142)
  %144 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.34, ptr noundef %144)
  br label %157

145:                                              ; preds = %140
  %146 = load i8, ptr %23, align 8, !tbaa !5, !range !8, !noundef !9
  %.not13.not = icmp eq i8 %146, 0
  br i1 %.not13.not, label %147, label %148

147:                                              ; preds = %145
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2142)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.34)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %157

148:                                              ; preds = %145
  %149 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #3
  %150 = call zeroext i1 @cmp_read_bool_as_u8(ptr noundef nonnull %2, ptr noundef nonnull %7) #3
  br i1 %150, label %153, label %151

151:                                              ; preds = %148
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2142)
  %152 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.34, ptr noundef %152)
  br label %156

153:                                              ; preds = %148
  %154 = load i8, ptr %7, align 1, !tbaa !5
  %.not14 = icmp eq i8 %154, 1
  br i1 %.not14, label %156, label %155

155:                                              ; preds = %153
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_boolean_tests, i32 noundef 2142)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.34)
  call void @error_and_exit(ptr noundef nonnull @.str.279) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %156

156:                                              ; preds = %153, %155, %151
  %cond3 = phi i1 [ false, %155 ], [ false, %151 ], [ true, %153 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #3
  br label %157

.critedge:                                        ; preds = %67, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  br label %157

.critedge16:                                      ; preds = %96, %100
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  br label %157

.critedge18:                                      ; preds = %125, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  br label %157

157:                                              ; preds = %156, %.critedge18, %.critedge16, %.critedge, %147, %143, %137, %132, %121, %116, %110, %105, %92, %88, %82, %77, %63, %58, %52, %47, %44, %40, %34, %29, %26, %20, %14, %9
  %.4 = phi i1 [ false, %26 ], [ false, %44 ], [ false, %63 ], [ false, %92 ], [ false, %121 ], [ false, %147 ], [ false, %143 ], [ false, %137 ], [ false, %132 ], [ false, %116 ], [ false, %110 ], [ false, %105 ], [ false, %88 ], [ false, %82 ], [ false, %77 ], [ false, %58 ], [ false, %52 ], [ false, %47 ], [ false, %40 ], [ false, %34 ], [ false, %29 ], [ false, %20 ], [ false, %14 ], [ false, %9 ], [ false, %.critedge ], [ false, %.critedge16 ], [ false, %.critedge18 ], [ %cond3, %156 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #3
  ret i1 %.4
}

declare zeroext i1 @cmp_write_false(ptr noundef) local_unnamed_addr #2

declare zeroext i1 @cmp_write_true(ptr noundef) local_unnamed_addr #2

declare zeroext i1 @cmp_write_bool(ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare zeroext i1 @cmp_read_bool(ptr noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i1 @cmp_write_u8_as_bool(ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

declare zeroext i1 @cmp_read_bool_as_u8(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @error_and_exit(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{i8 0, i8 2}
!9 = !{}
!10 = !{!11, !11, i64 0}
!11 = !{!"_Bool", !6, i64 0}


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