; 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.279 = external hidden unnamed_addr constant [37 x i8], align 1
@__func__.run_array_tests = external hidden unnamed_addr constant [16 x i8], align 1
@.str.318 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.319 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.321 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.328 = external hidden unnamed_addr constant [16 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

declare void @error_and_exit(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @run_array_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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  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()
  %14 = call zeroext i1 @cmp_write_fixarray(ptr noundef %3, i8 noundef zeroext 0)
  br i1 %14, label %17, label %15

15:                                               ; preds = %0
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2282)
  %16 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.318, ptr noundef @.str.19, ptr noundef %16)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

17:                                               ; preds = %0
  %18 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %19 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.319, i64 noundef 1)
  br i1 %19, label %23, label %20

20:                                               ; preds = %17
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2282)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.318, ptr noundef @.str.19)
  call void @error_printbin(ptr noundef @.str.319, i64 noundef 1)
  %21 = call ptr @M_BufferGetData(ptr noundef %2)
  %22 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %21, i64 noundef %22)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

23:                                               ; preds = %17
  %24 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %25 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %25, label %28, label %26

26:                                               ; preds = %23
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2282)
  %27 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.318, ptr noundef @.str.19, ptr noundef %27)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

28:                                               ; preds = %23
  %29 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !5
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %28
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2282)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.318, 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 %294

33:                                               ; preds = %28
  %34 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %35

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %36 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %6)
  br i1 %36, label %39, label %37

37:                                               ; preds = %35
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2282)
  %38 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.318, ptr noundef @.str.19, ptr noundef %38)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %44

39:                                               ; preds = %35
  %40 = load i32, ptr %6, align 4, !tbaa !8
  %41 = icmp ne i32 0, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2282)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.318, 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 %44

43:                                               ; preds = %39
  store i32 0, ptr %5, align 4
  br label %44

44:                                               ; preds = %43, %42, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %45 = load i32, ptr %5, align 4
  switch i32 %45, label %294 [
    i32 0, label %46
  ]

46:                                               ; preds = %44
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %49 = call zeroext i1 @cmp_write_fixarray(ptr noundef %3, i8 noundef zeroext 10)
  br i1 %49, label %52, label %50

50:                                               ; preds = %48
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2284)
  %51 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.318, ptr noundef @.str.320, ptr noundef %51)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

52:                                               ; preds = %48
  %53 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %54 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.321, i64 noundef 1)
  br i1 %54, label %58, label %55

55:                                               ; preds = %52
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2284)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.318, ptr noundef @.str.320)
  call void @error_printbin(ptr noundef @.str.321, i64 noundef 1)
  %56 = call ptr @M_BufferGetData(ptr noundef %2)
  %57 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %56, i64 noundef %57)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

58:                                               ; preds = %52
  %59 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %60 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %60, label %63, label %61

61:                                               ; preds = %58
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2284)
  %62 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.318, ptr noundef @.str.320, ptr noundef %62)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

63:                                               ; preds = %58
  %64 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !5
  %66 = icmp ne i32 %65, 10
  br i1 %66, label %67, label %68

67:                                               ; preds = %63
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2284)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.318, ptr noundef @.str.320)
  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 %294

68:                                               ; preds = %63
  %69 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %70

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %71 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %7)
  br i1 %71, label %74, label %72

72:                                               ; preds = %70
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2284)
  %73 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.318, ptr noundef @.str.320, ptr noundef %73)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %79

74:                                               ; preds = %70
  %75 = load i32, ptr %7, align 4, !tbaa !8
  %76 = icmp ne i32 10, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %74
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2284)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.318, ptr noundef @.str.320)
  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 %79

78:                                               ; preds = %74
  store i32 0, ptr %5, align 4
  br label %79

79:                                               ; preds = %78, %77, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  %80 = load i32, ptr %5, align 4
  switch i32 %80, label %294 [
    i32 0, label %81
  ]

81:                                               ; preds = %79
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %84 = call zeroext i1 @cmp_write_array16(ptr noundef %3, i16 noundef zeroext 0)
  br i1 %84, label %87, label %85

85:                                               ; preds = %83
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2292)
  %86 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.322, ptr noundef @.str.19, ptr noundef %86)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

87:                                               ; preds = %83
  %88 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %89 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.323, i64 noundef 3)
  br i1 %89, label %93, label %90

90:                                               ; preds = %87
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2292)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.322, ptr noundef @.str.19)
  call void @error_printbin(ptr noundef @.str.323, i64 noundef 3)
  %91 = call ptr @M_BufferGetData(ptr noundef %2)
  %92 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %91, i64 noundef %92)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

93:                                               ; preds = %87
  %94 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %95 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %95, label %98, label %96

96:                                               ; preds = %93
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2292)
  %97 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.322, ptr noundef @.str.19, ptr noundef %97)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

98:                                               ; preds = %93
  %99 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !5
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %98
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2292)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.322, 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 %294

103:                                              ; preds = %98
  %104 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %105

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %106 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %8)
  br i1 %106, label %109, label %107

107:                                              ; preds = %105
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2292)
  %108 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.322, ptr noundef @.str.19, ptr noundef %108)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %114

109:                                              ; preds = %105
  %110 = load i32, ptr %8, align 4, !tbaa !8
  %111 = icmp ne i32 0, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2292)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.322, 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 %114

113:                                              ; preds = %109
  store i32 0, ptr %5, align 4
  br label %114

114:                                              ; preds = %113, %112, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %115 = load i32, ptr %5, align 4
  switch i32 %115, label %294 [
    i32 0, label %116
  ]

116:                                              ; preds = %114
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %119 = call zeroext i1 @cmp_write_array16(ptr noundef %3, i16 noundef zeroext 10)
  br i1 %119, label %122, label %120

120:                                              ; preds = %118
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2300)
  %121 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.322, ptr noundef @.str.320, ptr noundef %121)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

122:                                              ; preds = %118
  %123 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %124 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.324, i64 noundef 3)
  br i1 %124, label %128, label %125

125:                                              ; preds = %122
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2300)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.322, ptr noundef @.str.320)
  call void @error_printbin(ptr noundef @.str.324, i64 noundef 3)
  %126 = call ptr @M_BufferGetData(ptr noundef %2)
  %127 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %126, i64 noundef %127)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

128:                                              ; preds = %122
  %129 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %130 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %130, label %133, label %131

131:                                              ; preds = %128
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2300)
  %132 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.322, ptr noundef @.str.320, ptr noundef %132)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

133:                                              ; preds = %128
  %134 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %135 = load i32, ptr %134, align 8, !tbaa !5
  %136 = icmp ne i32 %135, 10
  br i1 %136, label %137, label %138

137:                                              ; preds = %133
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2300)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.322, ptr noundef @.str.320)
  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 %294

138:                                              ; preds = %133
  %139 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %140

140:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %141 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %9)
  br i1 %141, label %144, label %142

142:                                              ; preds = %140
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2300)
  %143 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.322, ptr noundef @.str.320, ptr noundef %143)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %149

144:                                              ; preds = %140
  %145 = load i32, ptr %9, align 4, !tbaa !8
  %146 = icmp ne i32 10, %145
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2300)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.322, ptr noundef @.str.320)
  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 %149

148:                                              ; preds = %144
  store i32 0, ptr %5, align 4
  br label %149

149:                                              ; preds = %148, %147, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %150 = load i32, ptr %5, align 4
  switch i32 %150, label %294 [
    i32 0, label %151
  ]

151:                                              ; preds = %149
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %154 = call zeroext i1 @cmp_write_array32(ptr noundef %3, i32 noundef 0)
  br i1 %154, label %157, label %155

155:                                              ; preds = %153
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2308)
  %156 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.325, ptr noundef @.str.19, ptr noundef %156)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

157:                                              ; preds = %153
  %158 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %159 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.326, i64 noundef 5)
  br i1 %159, label %163, label %160

160:                                              ; preds = %157
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2308)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.325, ptr noundef @.str.19)
  call void @error_printbin(ptr noundef @.str.326, i64 noundef 5)
  %161 = call ptr @M_BufferGetData(ptr noundef %2)
  %162 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %161, i64 noundef %162)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

163:                                              ; preds = %157
  %164 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %165 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %165, label %168, label %166

166:                                              ; preds = %163
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2308)
  %167 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.325, ptr noundef @.str.19, ptr noundef %167)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

168:                                              ; preds = %163
  %169 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %170 = load i32, ptr %169, align 8, !tbaa !5
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %168
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2308)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.325, 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 %294

173:                                              ; preds = %168
  %174 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %175

175:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %176 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %10)
  br i1 %176, label %179, label %177

177:                                              ; preds = %175
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2308)
  %178 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.325, ptr noundef @.str.19, ptr noundef %178)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %184

179:                                              ; preds = %175
  %180 = load i32, ptr %10, align 4, !tbaa !8
  %181 = icmp ne i32 0, %180
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2308)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.325, 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 %184

183:                                              ; preds = %179
  store i32 0, ptr %5, align 4
  br label %184

184:                                              ; preds = %183, %182, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %185 = load i32, ptr %5, align 4
  switch i32 %185, label %294 [
    i32 0, label %186
  ]

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186
  br label %188

188:                                              ; preds = %187
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %189 = call zeroext i1 @cmp_write_array32(ptr noundef %3, i32 noundef 10)
  br i1 %189, label %192, label %190

190:                                              ; preds = %188
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2316)
  %191 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.325, ptr noundef @.str.320, ptr noundef %191)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

192:                                              ; preds = %188
  %193 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %194 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.327, i64 noundef 5)
  br i1 %194, label %198, label %195

195:                                              ; preds = %192
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2316)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.325, ptr noundef @.str.320)
  call void @error_printbin(ptr noundef @.str.327, i64 noundef 5)
  %196 = call ptr @M_BufferGetData(ptr noundef %2)
  %197 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %196, i64 noundef %197)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

198:                                              ; preds = %192
  %199 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %200 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %200, label %203, label %201

201:                                              ; preds = %198
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2316)
  %202 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.325, ptr noundef @.str.320, ptr noundef %202)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

203:                                              ; preds = %198
  %204 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %205 = load i32, ptr %204, align 8, !tbaa !5
  %206 = icmp ne i32 %205, 10
  br i1 %206, label %207, label %208

207:                                              ; preds = %203
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2316)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.325, ptr noundef @.str.320)
  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 %294

208:                                              ; preds = %203
  %209 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %210

210:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %211 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %11)
  br i1 %211, label %214, label %212

212:                                              ; preds = %210
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2316)
  %213 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.325, ptr noundef @.str.320, ptr noundef %213)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %219

214:                                              ; preds = %210
  %215 = load i32, ptr %11, align 4, !tbaa !8
  %216 = icmp ne i32 10, %215
  br i1 %216, label %217, label %218

217:                                              ; preds = %214
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2316)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.325, ptr noundef @.str.320)
  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 %219

218:                                              ; preds = %214
  store i32 0, ptr %5, align 4
  br label %219

219:                                              ; preds = %218, %217, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %220 = load i32, ptr %5, align 4
  switch i32 %220, label %294 [
    i32 0, label %221
  ]

221:                                              ; preds = %219
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %224 = call zeroext i1 @cmp_write_array(ptr noundef %3, i32 noundef 0)
  br i1 %224, label %227, label %225

225:                                              ; preds = %223
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2318)
  %226 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.328, ptr noundef @.str.19, ptr noundef %226)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

227:                                              ; preds = %223
  %228 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %229 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.319, i64 noundef 1)
  br i1 %229, label %233, label %230

230:                                              ; preds = %227
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2318)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.328, ptr noundef @.str.19)
  call void @error_printbin(ptr noundef @.str.319, i64 noundef 1)
  %231 = call ptr @M_BufferGetData(ptr noundef %2)
  %232 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %231, i64 noundef %232)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

233:                                              ; preds = %227
  %234 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %235 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %235, label %238, label %236

236:                                              ; preds = %233
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2318)
  %237 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.328, ptr noundef @.str.19, ptr noundef %237)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

238:                                              ; preds = %233
  %239 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %240 = load i32, ptr %239, align 8, !tbaa !5
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %243

242:                                              ; preds = %238
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2318)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.328, 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 %294

243:                                              ; preds = %238
  %244 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %245

245:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %246 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %12)
  br i1 %246, label %249, label %247

247:                                              ; preds = %245
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2318)
  %248 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.328, ptr noundef @.str.19, ptr noundef %248)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %254

249:                                              ; preds = %245
  %250 = load i32, ptr %12, align 4, !tbaa !8
  %251 = icmp ne i32 0, %250
  br i1 %251, label %252, label %253

252:                                              ; preds = %249
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2318)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.328, 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 %254

253:                                              ; preds = %249
  store i32 0, ptr %5, align 4
  br label %254

254:                                              ; preds = %253, %252, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  %255 = load i32, ptr %5, align 4
  switch i32 %255, label %294 [
    i32 0, label %256
  ]

256:                                              ; preds = %254
  br label %257

257:                                              ; preds = %256
  br label %258

258:                                              ; preds = %257
  call void @M_BufferClear(ptr noundef %2)
  call void @error_clear()
  %259 = call zeroext i1 @cmp_write_array(ptr noundef %3, i32 noundef 10)
  br i1 %259, label %262, label %260

260:                                              ; preds = %258
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2320)
  %261 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.17, ptr noundef @.str.328, ptr noundef @.str.320, ptr noundef %261)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

262:                                              ; preds = %258
  %263 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %264 = call zeroext i1 @M_BufferEqualsData(ptr noundef %2, ptr noundef @.str.321, i64 noundef 1)
  br i1 %264, label %268, label %265

265:                                              ; preds = %262
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2320)
  call void (ptr, ...) @error_printf(ptr noundef @.str.21, ptr noundef @.str.328, ptr noundef @.str.320)
  call void @error_printbin(ptr noundef @.str.321, i64 noundef 1)
  %266 = call ptr @M_BufferGetData(ptr noundef %2)
  %267 = call i64 @M_BufferGetSize(ptr noundef %2)
  call void @error_printbin(ptr noundef %266, i64 noundef %267)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

268:                                              ; preds = %262
  %269 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  %270 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %4)
  br i1 %270, label %273, label %271

271:                                              ; preds = %268
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2320)
  %272 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.328, ptr noundef @.str.320, ptr noundef %272)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

273:                                              ; preds = %268
  %274 = getelementptr inbounds %struct.cmp_object_s, ptr %4, i32 0, i32 1
  %275 = load i32, ptr %274, align 8, !tbaa !5
  %276 = icmp ne i32 %275, 10
  br i1 %276, label %277, label %278

277:                                              ; preds = %273
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2320)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.328, ptr noundef @.str.320)
  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 %294

278:                                              ; preds = %273
  %279 = call zeroext i1 @M_BufferSeek(ptr noundef %2, i64 noundef 0)
  br label %280

280:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %281 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %13)
  br i1 %281, label %284, label %282

282:                                              ; preds = %280
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2320)
  %283 = call ptr @cmp_strerror(ptr noundef %3)
  call void (ptr, ...) @error_printf(ptr noundef @.str.22, ptr noundef @.str.328, ptr noundef @.str.320, ptr noundef %283)
  store i1 false, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %289

284:                                              ; preds = %280
  %285 = load i32, ptr %13, align 4, !tbaa !8
  %286 = icmp ne i32 10, %285
  br i1 %286, label %287, label %288

287:                                              ; preds = %284
  call void (ptr, ...) @error_printf(ptr noundef @.str.16, ptr noundef @__func__.run_array_tests, i32 noundef 2320)
  call void (ptr, ...) @error_printf(ptr noundef @.str.23, ptr noundef @.str.328, ptr noundef @.str.320)
  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 %289

288:                                              ; preds = %284
  store i32 0, ptr %5, align 4
  br label %289

289:                                              ; preds = %288, %287, %282
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  %290 = load i32, ptr %5, align 4
  switch i32 %290, label %294 [
    i32 0, label %291
  ]

291:                                              ; preds = %289
  br label %292

292:                                              ; preds = %291
  br label %293

293:                                              ; preds = %292
  store i1 true, ptr %1, align 1
  store i32 1, ptr %5, align 4
  br label %294

294:                                              ; preds = %293, %289, %277, %271, %265, %260, %254, %242, %236, %230, %225, %219, %207, %201, %195, %190, %184, %172, %166, %160, %155, %149, %137, %131, %125, %120, %114, %102, %96, %90, %85, %79, %67, %61, %55, %50, %44, %32, %26, %20, %15
  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
  %295 = load i1, ptr %1, align 1
  ret i1 %295
}

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

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

declare zeroext i1 @cmp_write_array16(ptr noundef, i16 noundef zeroext) #2

declare zeroext i1 @cmp_write_array32(ptr noundef, i32 noundef) #2

declare zeroext i1 @cmp_write_array(ptr noundef, i32 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 = !{!9, !9, i64 0}
!9 = !{!"int", !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.279 = external hidden unnamed_addr constant [37 x i8], align 1
@__func__.run_array_tests = external hidden unnamed_addr constant [16 x i8], align 1
@.str.318 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.319 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.321 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.328 = external hidden unnamed_addr constant [16 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

declare void @error_and_exit(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @run_array_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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  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()
  %12 = call zeroext i1 @cmp_write_fixarray(ptr noundef nonnull %2, i8 noundef zeroext 0) #3
  br i1 %12, label %15, label %13

13:                                               ; preds = %0
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2282)
  %14 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.19, ptr noundef %14)
  br label %221

15:                                               ; preds = %0
  %16 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %17 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.319, i64 noundef 1) #3
  br i1 %17, label %21, label %18

18:                                               ; preds = %15
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2282)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.19)
  call void @error_printbin(ptr noundef nonnull @.str.319, i64 noundef 1)
  %19 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %20 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %19, i64 noundef %20)
  br label %221

21:                                               ; preds = %15
  %22 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %23 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %23, label %26, label %24

24:                                               ; preds = %21
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2282)
  %25 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.19, ptr noundef %25)
  br label %221

26:                                               ; preds = %21
  %27 = getelementptr inbounds i8, ptr %3, i64 8
  %28 = load i32, ptr %27, align 8, !tbaa !5
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %30, label %29

29:                                               ; preds = %26
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2282)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.318, 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 %221

30:                                               ; preds = %26
  %31 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %32 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %2, ptr noundef nonnull %4) #3
  br i1 %32, label %35, label %33

33:                                               ; preds = %30
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2282)
  %34 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.19, ptr noundef %34)
  br label %.critedge

35:                                               ; preds = %30
  %36 = load i32, ptr %4, align 4, !tbaa !8
  %.not23 = icmp eq i32 %36, 0
  br i1 %.not23, label %38, label %37

37:                                               ; preds = %35
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2282)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.318, 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 %.critedge

38:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %39 = call zeroext i1 @cmp_write_fixarray(ptr noundef nonnull %2, i8 noundef zeroext 10) #3
  br i1 %39, label %42, label %40

40:                                               ; preds = %38
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2284)
  %41 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.320, ptr noundef %41)
  br label %221

42:                                               ; preds = %38
  %43 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %44 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.321, i64 noundef 1) #3
  br i1 %44, label %48, label %45

45:                                               ; preds = %42
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2284)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.320)
  call void @error_printbin(ptr noundef nonnull @.str.321, i64 noundef 1)
  %46 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %47 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %46, i64 noundef %47)
  br label %221

48:                                               ; preds = %42
  %49 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %50 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %50, label %53, label %51

51:                                               ; preds = %48
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2284)
  %52 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.320, ptr noundef %52)
  br label %221

53:                                               ; preds = %48
  %54 = load i32, ptr %27, align 8, !tbaa !5
  %.not24 = icmp eq i32 %54, 10
  br i1 %.not24, label %56, label %55

55:                                               ; preds = %53
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2284)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.320)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %221

56:                                               ; preds = %53
  %57 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %58 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %2, ptr noundef nonnull %5) #3
  br i1 %58, label %61, label %59

59:                                               ; preds = %56
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2284)
  %60 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.320, ptr noundef %60)
  br label %.critedge39

61:                                               ; preds = %56
  %62 = load i32, ptr %5, align 4, !tbaa !8
  %.not25 = icmp eq i32 %62, 10
  br i1 %.not25, label %64, label %63

63:                                               ; preds = %61
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2284)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.318, ptr noundef nonnull @.str.320)
  call void @error_and_exit(ptr noundef nonnull @.str.279) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %.critedge39

64:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %65 = call zeroext i1 @cmp_write_array16(ptr noundef nonnull %2, i16 noundef zeroext 0) #3
  br i1 %65, label %68, label %66

66:                                               ; preds = %64
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2292)
  %67 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.19, ptr noundef %67)
  br label %221

68:                                               ; preds = %64
  %69 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %70 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.323, i64 noundef 3) #3
  br i1 %70, label %74, label %71

71:                                               ; preds = %68
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2292)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.19)
  call void @error_printbin(ptr noundef nonnull @.str.323, i64 noundef 3)
  %72 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %73 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %72, i64 noundef %73)
  br label %221

74:                                               ; preds = %68
  %75 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %76 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %76, label %79, label %77

77:                                               ; preds = %74
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2292)
  %78 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.19, ptr noundef %78)
  br label %221

79:                                               ; preds = %74
  %80 = load i32, ptr %27, align 8, !tbaa !5
  %.not26 = icmp eq i32 %80, 0
  br i1 %.not26, label %82, label %81

81:                                               ; preds = %79
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2292)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.322, 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 %221

82:                                               ; preds = %79
  %83 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %84 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %2, ptr noundef nonnull %6) #3
  br i1 %84, label %87, label %85

85:                                               ; preds = %82
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2292)
  %86 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.19, ptr noundef %86)
  br label %.critedge41

87:                                               ; preds = %82
  %88 = load i32, ptr %6, align 4, !tbaa !8
  %.not27 = icmp eq i32 %88, 0
  br i1 %.not27, label %90, label %89

89:                                               ; preds = %87
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2292)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.322, 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 %.critedge41

90:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %91 = call zeroext i1 @cmp_write_array16(ptr noundef nonnull %2, i16 noundef zeroext 10) #3
  br i1 %91, label %94, label %92

92:                                               ; preds = %90
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2300)
  %93 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.320, ptr noundef %93)
  br label %221

94:                                               ; preds = %90
  %95 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %96 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.324, i64 noundef 3) #3
  br i1 %96, label %100, label %97

97:                                               ; preds = %94
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2300)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.320)
  call void @error_printbin(ptr noundef nonnull @.str.324, i64 noundef 3)
  %98 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %99 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %98, i64 noundef %99)
  br label %221

100:                                              ; preds = %94
  %101 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %102 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %102, label %105, label %103

103:                                              ; preds = %100
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2300)
  %104 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.320, ptr noundef %104)
  br label %221

105:                                              ; preds = %100
  %106 = load i32, ptr %27, align 8, !tbaa !5
  %.not28 = icmp eq i32 %106, 10
  br i1 %.not28, label %108, label %107

107:                                              ; preds = %105
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2300)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.320)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %221

108:                                              ; preds = %105
  %109 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %110 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %2, ptr noundef nonnull %7) #3
  br i1 %110, label %113, label %111

111:                                              ; preds = %108
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2300)
  %112 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.320, ptr noundef %112)
  br label %.critedge43

113:                                              ; preds = %108
  %114 = load i32, ptr %7, align 4, !tbaa !8
  %.not29 = icmp eq i32 %114, 10
  br i1 %.not29, label %116, label %115

115:                                              ; preds = %113
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2300)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.322, ptr noundef nonnull @.str.320)
  call void @error_and_exit(ptr noundef nonnull @.str.279) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %.critedge43

116:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %117 = call zeroext i1 @cmp_write_array32(ptr noundef nonnull %2, i32 noundef 0) #3
  br i1 %117, label %120, label %118

118:                                              ; preds = %116
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2308)
  %119 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.19, ptr noundef %119)
  br label %221

120:                                              ; preds = %116
  %121 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %122 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.326, i64 noundef 5) #3
  br i1 %122, label %126, label %123

123:                                              ; preds = %120
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2308)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.19)
  call void @error_printbin(ptr noundef nonnull @.str.326, i64 noundef 5)
  %124 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %125 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %124, i64 noundef %125)
  br label %221

126:                                              ; preds = %120
  %127 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %128 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %128, label %131, label %129

129:                                              ; preds = %126
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2308)
  %130 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.19, ptr noundef %130)
  br label %221

131:                                              ; preds = %126
  %132 = load i32, ptr %27, align 8, !tbaa !5
  %.not30 = icmp eq i32 %132, 0
  br i1 %.not30, label %134, label %133

133:                                              ; preds = %131
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2308)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.325, 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 %221

134:                                              ; preds = %131
  %135 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  %136 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %2, ptr noundef nonnull %8) #3
  br i1 %136, label %139, label %137

137:                                              ; preds = %134
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2308)
  %138 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.19, ptr noundef %138)
  br label %.critedge45

139:                                              ; preds = %134
  %140 = load i32, ptr %8, align 4, !tbaa !8
  %.not31 = icmp eq i32 %140, 0
  br i1 %.not31, label %142, label %141

141:                                              ; preds = %139
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2308)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.325, 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 %.critedge45

142:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %143 = call zeroext i1 @cmp_write_array32(ptr noundef nonnull %2, i32 noundef 10) #3
  br i1 %143, label %146, label %144

144:                                              ; preds = %142
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2316)
  %145 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.320, ptr noundef %145)
  br label %221

146:                                              ; preds = %142
  %147 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %148 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.327, i64 noundef 5) #3
  br i1 %148, label %152, label %149

149:                                              ; preds = %146
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2316)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.320)
  call void @error_printbin(ptr noundef nonnull @.str.327, i64 noundef 5)
  %150 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %151 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %150, i64 noundef %151)
  br label %221

152:                                              ; preds = %146
  %153 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %154 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %154, label %157, label %155

155:                                              ; preds = %152
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2316)
  %156 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.320, ptr noundef %156)
  br label %221

157:                                              ; preds = %152
  %158 = load i32, ptr %27, align 8, !tbaa !5
  %.not32 = icmp eq i32 %158, 10
  br i1 %.not32, label %160, label %159

159:                                              ; preds = %157
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2316)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.320)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %221

160:                                              ; preds = %157
  %161 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  %162 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %2, ptr noundef nonnull %9) #3
  br i1 %162, label %165, label %163

163:                                              ; preds = %160
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2316)
  %164 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.320, ptr noundef %164)
  br label %.critedge47

165:                                              ; preds = %160
  %166 = load i32, ptr %9, align 4, !tbaa !8
  %.not33 = icmp eq i32 %166, 10
  br i1 %.not33, label %168, label %167

167:                                              ; preds = %165
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2316)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.325, ptr noundef nonnull @.str.320)
  call void @error_and_exit(ptr noundef nonnull @.str.279) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %.critedge47

168:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %169 = call zeroext i1 @cmp_write_array(ptr noundef nonnull %2, i32 noundef 0) #3
  br i1 %169, label %172, label %170

170:                                              ; preds = %168
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2318)
  %171 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.19, ptr noundef %171)
  br label %221

172:                                              ; preds = %168
  %173 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %174 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.319, i64 noundef 1) #3
  br i1 %174, label %178, label %175

175:                                              ; preds = %172
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2318)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.19)
  call void @error_printbin(ptr noundef nonnull @.str.319, i64 noundef 1)
  %176 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %177 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %176, i64 noundef %177)
  br label %221

178:                                              ; preds = %172
  %179 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %180 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %180, label %183, label %181

181:                                              ; preds = %178
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2318)
  %182 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.19, ptr noundef %182)
  br label %221

183:                                              ; preds = %178
  %184 = load i32, ptr %27, align 8, !tbaa !5
  %.not34 = icmp eq i32 %184, 0
  br i1 %.not34, label %186, label %185

185:                                              ; preds = %183
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2318)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.328, 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 %221

186:                                              ; preds = %183
  %187 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  %188 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %2, ptr noundef nonnull %10) #3
  br i1 %188, label %191, label %189

189:                                              ; preds = %186
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2318)
  %190 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.19, ptr noundef %190)
  br label %.critedge49

191:                                              ; preds = %186
  %192 = load i32, ptr %10, align 4, !tbaa !8
  %.not35 = icmp eq i32 %192, 0
  br i1 %.not35, label %194, label %193

193:                                              ; preds = %191
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2318)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.328, 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 %.critedge49

194:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @M_BufferClear(ptr noundef nonnull %1) #3
  call void @error_clear()
  %195 = call zeroext i1 @cmp_write_array(ptr noundef nonnull %2, i32 noundef 10) #3
  br i1 %195, label %198, label %196

196:                                              ; preds = %194
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2320)
  %197 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.320, ptr noundef %197)
  br label %221

198:                                              ; preds = %194
  %199 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %200 = call zeroext i1 @M_BufferEqualsData(ptr noundef nonnull %1, ptr noundef nonnull @.str.321, i64 noundef 1) #3
  br i1 %200, label %204, label %201

201:                                              ; preds = %198
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2320)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.320)
  call void @error_printbin(ptr noundef nonnull @.str.321, i64 noundef 1)
  %202 = call ptr @M_BufferGetData(ptr noundef nonnull %1) #3
  %203 = call i64 @M_BufferGetSize(ptr noundef nonnull %1) #3
  call void @error_printbin(ptr noundef %202, i64 noundef %203)
  br label %221

204:                                              ; preds = %198
  %205 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  %206 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  br i1 %206, label %209, label %207

207:                                              ; preds = %204
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2320)
  %208 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.320, ptr noundef %208)
  br label %221

209:                                              ; preds = %204
  %210 = load i32, ptr %27, align 8, !tbaa !5
  %.not36 = icmp eq i32 %210, 10
  br i1 %.not36, label %212, label %211

211:                                              ; preds = %209
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2320)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.320)
  call void @error_print_object(ptr noundef nonnull %3)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %221

212:                                              ; preds = %209
  %213 = call zeroext i1 @M_BufferSeek(ptr noundef nonnull %1, i64 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  %214 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %2, ptr noundef nonnull %11) #3
  br i1 %214, label %217, label %215

215:                                              ; preds = %212
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2320)
  %216 = call ptr @cmp_strerror(ptr noundef nonnull %2) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.320, ptr noundef %216)
  br label %220

217:                                              ; preds = %212
  %218 = load i32, ptr %11, align 4, !tbaa !8
  %.not37 = icmp eq i32 %218, 10
  br i1 %.not37, label %220, label %219

219:                                              ; preds = %217
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__.run_array_tests, i32 noundef 2320)
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.328, ptr noundef nonnull @.str.320)
  call void @error_and_exit(ptr noundef nonnull @.str.279) #3
  call void (ptr, ...) @error_printf(ptr noundef nonnull @.str.24)
  br label %220

220:                                              ; preds = %217, %219, %215
  %cond7 = phi i1 [ false, %219 ], [ false, %215 ], [ true, %217 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  br label %221

.critedge:                                        ; preds = %33, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  br label %221

.critedge39:                                      ; preds = %59, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %221

.critedge41:                                      ; preds = %85, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  br label %221

.critedge43:                                      ; preds = %111, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  br label %221

.critedge45:                                      ; preds = %137, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  br label %221

.critedge47:                                      ; preds = %163, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  br label %221

.critedge49:                                      ; preds = %189, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  br label %221

221:                                              ; preds = %220, %.critedge49, %.critedge47, %.critedge45, %.critedge43, %.critedge41, %.critedge39, %.critedge, %211, %207, %201, %196, %185, %181, %175, %170, %159, %155, %149, %144, %133, %129, %123, %118, %107, %103, %97, %92, %81, %77, %71, %66, %55, %51, %45, %40, %29, %24, %18, %13
  %.8 = phi i1 [ false, %29 ], [ false, %55 ], [ false, %81 ], [ false, %107 ], [ false, %133 ], [ false, %159 ], [ false, %185 ], [ false, %211 ], [ false, %207 ], [ false, %201 ], [ false, %196 ], [ false, %181 ], [ false, %175 ], [ false, %170 ], [ false, %155 ], [ false, %149 ], [ false, %144 ], [ false, %129 ], [ false, %123 ], [ false, %118 ], [ false, %103 ], [ false, %97 ], [ false, %92 ], [ false, %77 ], [ false, %71 ], [ false, %66 ], [ false, %51 ], [ false, %45 ], [ false, %40 ], [ false, %24 ], [ false, %18 ], [ false, %13 ], [ false, %.critedge ], [ false, %.critedge39 ], [ false, %.critedge41 ], [ false, %.critedge43 ], [ false, %.critedge45 ], [ false, %.critedge47 ], [ false, %.critedge49 ], [ %cond7, %220 ]
  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 %.8
}

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

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

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

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

declare zeroext i1 @cmp_write_array(ptr noundef, i32 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 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}


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