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

; 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.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 }
%struct.cmp_ext_s = type { i8, i32 }

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [29 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca %struct.cmp_ctx_s, align 8
  %4 = alloca i16, align 2
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca float, align 4
  %10 = alloca double, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca [12 x i8], align 1
  %20 = alloca %struct.cmp_object_s, align 8
  %21 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr %4) #7
  store i16 1983, ptr %4, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  store i8 5, ptr %5, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  store i8 28, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store float 0.000000e+00, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store double 0.000000e+00, ptr %10, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  store i8 0, ptr %11, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  store i8 0, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  store i8 0, ptr %17, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  call void @llvm.memset.p0.i64(ptr align 1 %19, i8 0, i64 12, i1 false)
  %22 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %22, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %0
  call void @error_and_exit(ptr noundef @.str.3)
  br label %26

26:                                               ; preds = %25, %0
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  call void @cmp_init(ptr noundef %3, ptr noundef %27, ptr noundef @file_reader, ptr noundef @file_writer)
  %28 = call zeroext i1 @cmp_write_array(ptr noundef %3, i32 noundef 9)
  br i1 %28, label %31, label %29

29:                                               ; preds = %26
  %30 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %30)
  br label %31

31:                                               ; preds = %29, %26
  %32 = call zeroext i1 @cmp_write_sint(ptr noundef %3, i64 noundef -14)
  br i1 %32, label %35, label %33

33:                                               ; preds = %31
  %34 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %34)
  br label %35

35:                                               ; preds = %33, %31
  %36 = call zeroext i1 @cmp_write_uint(ptr noundef %3, i64 noundef 38)
  br i1 %36, label %39, label %37

37:                                               ; preds = %35
  %38 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %38)
  br label %39

39:                                               ; preds = %37, %35
  %40 = call zeroext i1 @cmp_write_float(ptr noundef %3, float noundef 0x3FFCCCCCC0000000)
  br i1 %40, label %43, label %41

41:                                               ; preds = %39
  %42 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %42)
  br label %43

43:                                               ; preds = %41, %39
  %44 = call zeroext i1 @cmp_write_double(ptr noundef %3, double noundef 3.004000e+02)
  br i1 %44, label %47, label %45

45:                                               ; preds = %43
  %46 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %46)
  br label %47

47:                                               ; preds = %45, %43
  %48 = call zeroext i1 @cmp_write_nil(ptr noundef %3)
  br i1 %48, label %51, label %49

49:                                               ; preds = %47
  %50 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %50)
  br label %51

51:                                               ; preds = %49, %47
  %52 = call zeroext i1 @cmp_write_true(ptr noundef %3)
  br i1 %52, label %55, label %53

53:                                               ; preds = %51
  %54 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %54)
  br label %55

55:                                               ; preds = %53, %51
  %56 = call zeroext i1 @cmp_write_false(ptr noundef %3)
  br i1 %56, label %59, label %57

57:                                               ; preds = %55
  %58 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %58)
  br label %59

59:                                               ; preds = %57, %55
  %60 = call zeroext i1 @cmp_write_bool(ptr noundef %3, i1 noundef zeroext false)
  br i1 %60, label %63, label %61

61:                                               ; preds = %59
  %62 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %62)
  br label %63

63:                                               ; preds = %61, %59
  %64 = call zeroext i1 @cmp_write_u8_as_bool(ptr noundef %3, i8 noundef zeroext 1)
  br i1 %64, label %67, label %65

65:                                               ; preds = %63
  %66 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %66)
  br label %67

67:                                               ; preds = %65, %63
  %68 = call zeroext i1 @cmp_write_map(ptr noundef %3, i32 noundef 2)
  br i1 %68, label %71, label %69

69:                                               ; preds = %67
  %70 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %70)
  br label %71

71:                                               ; preds = %69, %67
  %72 = call zeroext i1 @cmp_write_str(ptr noundef %3, ptr noundef @.str.4, i32 noundef 8)
  br i1 %72, label %75, label %73

73:                                               ; preds = %71
  %74 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %74)
  br label %75

75:                                               ; preds = %73, %71
  %76 = call zeroext i1 @cmp_write_str(ptr noundef %3, ptr noundef @.str.5, i32 noundef 5)
  br i1 %76, label %79, label %77

77:                                               ; preds = %75
  %78 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %78)
  br label %79

79:                                               ; preds = %77, %75
  %80 = call zeroext i1 @cmp_write_str(ptr noundef %3, ptr noundef @.str.6, i32 noundef 4)
  br i1 %80, label %83, label %81

81:                                               ; preds = %79
  %82 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %82)
  br label %83

83:                                               ; preds = %81, %79
  %84 = call zeroext i1 @cmp_write_str_marker(ptr noundef %3, i32 noundef 5)
  br i1 %84, label %87, label %85

85:                                               ; preds = %83
  %86 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %86)
  br label %87

87:                                               ; preds = %85, %83
  %88 = call i64 @file_writer(ptr noundef %3, ptr noundef @.str.7, i64 noundef 2)
  %89 = icmp ne i64 %88, 2
  br i1 %89, label %90, label %94

90:                                               ; preds = %87
  %91 = call ptr @__errno_location() #8
  %92 = load i32, ptr %91, align 4, !tbaa !20
  %93 = call ptr @strerror(i32 noundef %92) #7
  call void @error_and_exit(ptr noundef %93)
  br label %94

94:                                               ; preds = %90, %87
  %95 = call i64 @file_writer(ptr noundef %3, ptr noundef @.str.8, i64 noundef 3)
  %96 = icmp ne i64 %95, 3
  br i1 %96, label %97, label %101

97:                                               ; preds = %94
  %98 = call ptr @__errno_location() #8
  %99 = load i32, ptr %98, align 4, !tbaa !20
  %100 = call ptr @strerror(i32 noundef %99) #7
  call void @error_and_exit(ptr noundef %100)
  br label %101

101:                                              ; preds = %97, %94
  %102 = call zeroext i1 @cmp_write_bin(ptr noundef %3, ptr noundef @.str.9, i32 noundef 11)
  br i1 %102, label %105, label %103

103:                                              ; preds = %101
  %104 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %104)
  br label %105

105:                                              ; preds = %103, %101
  %106 = call zeroext i1 @cmp_write_bin_marker(ptr noundef %3, i32 noundef 8)
  br i1 %106, label %109, label %107

107:                                              ; preds = %105
  %108 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %108)
  br label %109

109:                                              ; preds = %107, %105
  %110 = call i64 @file_writer(ptr noundef %3, ptr noundef @.str.10, i64 noundef 3)
  %111 = icmp ne i64 %110, 3
  br i1 %111, label %112, label %116

112:                                              ; preds = %109
  %113 = call ptr @__errno_location() #8
  %114 = load i32, ptr %113, align 4, !tbaa !20
  %115 = call ptr @strerror(i32 noundef %114) #7
  call void @error_and_exit(ptr noundef %115)
  br label %116

116:                                              ; preds = %112, %109
  %117 = call i64 @file_writer(ptr noundef %3, ptr noundef @.str.11, i64 noundef 5)
  %118 = icmp ne i64 %117, 5
  br i1 %118, label %119, label %123

119:                                              ; preds = %116
  %120 = call ptr @__errno_location() #8
  %121 = load i32, ptr %120, align 4, !tbaa !20
  %122 = call ptr @strerror(i32 noundef %121) #7
  call void @error_and_exit(ptr noundef %122)
  br label %123

123:                                              ; preds = %119, %116
  %124 = call zeroext i1 @cmp_write_ext_marker(ptr noundef %3, i8 noundef signext 1, i32 noundef 4)
  br i1 %124, label %127, label %125

125:                                              ; preds = %123
  %126 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %126)
  br label %127

127:                                              ; preds = %125, %123
  %128 = call i64 @file_writer(ptr noundef %3, ptr noundef %4, i64 noundef 2)
  %129 = call i64 @file_writer(ptr noundef %3, ptr noundef %5, i64 noundef 1)
  %130 = call i64 @file_writer(ptr noundef %3, ptr noundef %6, i64 noundef 1)
  %131 = load ptr, ptr %2, align 8, !tbaa !5
  call void @rewind(ptr noundef %131)
  %132 = call zeroext i1 @cmp_read_array(ptr noundef %3, ptr noundef %14)
  br i1 %132, label %135, label %133

133:                                              ; preds = %127
  %134 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %134)
  br label %135

135:                                              ; preds = %133, %127
  %136 = load i32, ptr %14, align 4, !tbaa !20
  %137 = icmp ne i32 %136, 9
  br i1 %137, label %138, label %139

138:                                              ; preds = %135
  call void @error_and_exit(ptr noundef @.str.12)
  br label %139

139:                                              ; preds = %138, %135
  %140 = call zeroext i1 @cmp_read_sinteger(ptr noundef %3, ptr noundef %7)
  br i1 %140, label %143, label %141

141:                                              ; preds = %139
  %142 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %142)
  br label %143

143:                                              ; preds = %141, %139
  %144 = load i64, ptr %7, align 8, !tbaa !12
  %145 = icmp ne i64 %144, -14
  br i1 %145, label %146, label %147

146:                                              ; preds = %143
  call void @error_and_exit(ptr noundef @.str.13)
  br label %147

147:                                              ; preds = %146, %143
  %148 = call zeroext i1 @cmp_read_uinteger(ptr noundef %3, ptr noundef %8)
  br i1 %148, label %151, label %149

149:                                              ; preds = %147
  %150 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %150)
  br label %151

151:                                              ; preds = %149, %147
  %152 = load i64, ptr %8, align 8, !tbaa !12
  %153 = icmp ne i64 %152, 38
  br i1 %153, label %154, label %155

154:                                              ; preds = %151
  call void @error_and_exit(ptr noundef @.str.14)
  br label %155

155:                                              ; preds = %154, %151
  %156 = call zeroext i1 @cmp_read_float(ptr noundef %3, ptr noundef %9)
  br i1 %156, label %159, label %157

157:                                              ; preds = %155
  %158 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %158)
  br label %159

159:                                              ; preds = %157, %155
  %160 = load float, ptr %9, align 4, !tbaa !14
  %161 = fcmp une float %160, 0x3FFCCCCCC0000000
  br i1 %161, label %162, label %163

162:                                              ; preds = %159
  call void @error_and_exit(ptr noundef @.str.15)
  br label %163

163:                                              ; preds = %162, %159
  %164 = call zeroext i1 @cmp_read_double(ptr noundef %3, ptr noundef %10)
  br i1 %164, label %167, label %165

165:                                              ; preds = %163
  %166 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %166)
  br label %167

167:                                              ; preds = %165, %163
  %168 = load double, ptr %10, align 8, !tbaa !16
  %169 = fcmp une double %168, 3.004000e+02
  br i1 %169, label %170, label %171

170:                                              ; preds = %167
  call void @error_and_exit(ptr noundef @.str.16)
  br label %171

171:                                              ; preds = %170, %167
  %172 = call zeroext i1 @cmp_read_nil(ptr noundef %3)
  br i1 %172, label %175, label %173

173:                                              ; preds = %171
  %174 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %174)
  br label %175

175:                                              ; preds = %173, %171
  %176 = call zeroext i1 @cmp_read_bool(ptr noundef %3, ptr noundef %11)
  br i1 %176, label %179, label %177

177:                                              ; preds = %175
  %178 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %178)
  br label %179

179:                                              ; preds = %177, %175
  %180 = load i8, ptr %11, align 1, !tbaa !18, !range !22, !noundef !23
  %181 = trunc i8 %180 to i1
  %182 = zext i1 %181 to i32
  %183 = icmp ne i32 %182, 1
  br i1 %183, label %184, label %185

184:                                              ; preds = %179
  call void @error_and_exit(ptr noundef @.str.17)
  br label %185

185:                                              ; preds = %184, %179
  %186 = call zeroext i1 @cmp_read_bool(ptr noundef %3, ptr noundef %11)
  br i1 %186, label %189, label %187

187:                                              ; preds = %185
  %188 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %188)
  br label %189

189:                                              ; preds = %187, %185
  %190 = load i8, ptr %11, align 1, !tbaa !18, !range !22, !noundef !23
  %191 = trunc i8 %190 to i1
  %192 = zext i1 %191 to i32
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %189
  call void @error_and_exit(ptr noundef @.str.18)
  br label %195

195:                                              ; preds = %194, %189
  %196 = call zeroext i1 @cmp_read_bool(ptr noundef %3, ptr noundef %11)
  br i1 %196, label %199, label %197

197:                                              ; preds = %195
  %198 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %198)
  br label %199

199:                                              ; preds = %197, %195
  %200 = load i8, ptr %11, align 1, !tbaa !18, !range !22, !noundef !23
  %201 = trunc i8 %200 to i1
  %202 = zext i1 %201 to i32
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %205

204:                                              ; preds = %199
  call void @error_and_exit(ptr noundef @.str.19)
  br label %205

205:                                              ; preds = %204, %199
  %206 = call zeroext i1 @cmp_read_bool_as_u8(ptr noundef %3, ptr noundef %12)
  br i1 %206, label %209, label %207

207:                                              ; preds = %205
  %208 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %208)
  br label %209

209:                                              ; preds = %207, %205
  %210 = load i8, ptr %12, align 1, !tbaa !11
  %211 = zext i8 %210 to i32
  %212 = icmp ne i32 %211, 1
  br i1 %212, label %213, label %218

213:                                              ; preds = %209
  %214 = load ptr, ptr @stderr, align 8, !tbaa !5
  %215 = load i8, ptr %12, align 1, !tbaa !11
  %216 = zext i8 %215 to i32
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.20, i32 noundef %216) #7
  call void @error_and_exit(ptr noundef @.str.21)
  br label %218

218:                                              ; preds = %213, %209
  %219 = call zeroext i1 @cmp_read_map(ptr noundef %3, ptr noundef %16)
  br i1 %219, label %222, label %220

220:                                              ; preds = %218
  %221 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %221)
  br label %222

222:                                              ; preds = %220, %218
  %223 = load i32, ptr %16, align 4, !tbaa !20
  %224 = icmp ne i32 %223, 2
  br i1 %224, label %225, label %226

225:                                              ; preds = %222
  call void @error_and_exit(ptr noundef @.str.22)
  br label %226

226:                                              ; preds = %225, %222
  %227 = call zeroext i1 @cmp_read_str_size(ptr noundef %3, ptr noundef %13)
  br i1 %227, label %230, label %228

228:                                              ; preds = %226
  %229 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %229)
  br label %230

230:                                              ; preds = %228, %226
  %231 = load i32, ptr %13, align 4, !tbaa !20
  %232 = icmp ne i32 %231, 8
  br i1 %232, label %233, label %234

233:                                              ; preds = %230
  call void @error_and_exit(ptr noundef @.str.23)
  br label %234

234:                                              ; preds = %233, %230
  %235 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %236 = load ptr, ptr %2, align 8, !tbaa !5
  %237 = call zeroext i1 @read_bytes(ptr noundef %235, i64 noundef 8, ptr noundef %236)
  br i1 %237, label %242, label %238

238:                                              ; preds = %234
  %239 = call ptr @__errno_location() #8
  %240 = load i32, ptr %239, align 4, !tbaa !20
  %241 = call ptr @strerror(i32 noundef %240) #7
  call void @error_and_exit(ptr noundef %241)
  br label %242

242:                                              ; preds = %238, %234
  %243 = load i32, ptr %13, align 4, !tbaa !20
  %244 = zext i32 %243 to i64
  %245 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 %244
  store i8 0, ptr %245, align 1, !tbaa !11
  %246 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %247 = call i32 @strncmp(ptr noundef %246, ptr noundef @.str.4, i64 noundef 8) #9
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %250

249:                                              ; preds = %242
  call void @error_and_exit(ptr noundef @.str.24)
  br label %250

250:                                              ; preds = %249, %242
  store i32 12, ptr %13, align 4, !tbaa !20
  %251 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %252 = call zeroext i1 @cmp_read_str(ptr noundef %3, ptr noundef %251, ptr noundef %13)
  br i1 %252, label %255, label %253

253:                                              ; preds = %250
  %254 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %254)
  br label %255

255:                                              ; preds = %253, %250
  %256 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %257 = call i32 @strncmp(ptr noundef %256, ptr noundef @.str.5, i64 noundef 5) #9
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %260

259:                                              ; preds = %255
  call void @error_and_exit(ptr noundef @.str.25)
  br label %260

260:                                              ; preds = %259, %255
  store i32 12, ptr %13, align 4, !tbaa !20
  %261 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %262 = call zeroext i1 @cmp_read_str(ptr noundef %3, ptr noundef %261, ptr noundef %13)
  br i1 %262, label %265, label %263

263:                                              ; preds = %260
  %264 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %264)
  br label %265

265:                                              ; preds = %263, %260
  %266 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %267 = call i32 @strncmp(ptr noundef %266, ptr noundef @.str.6, i64 noundef 4) #9
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %270

269:                                              ; preds = %265
  call void @error_and_exit(ptr noundef @.str.26)
  br label %270

270:                                              ; preds = %269, %265
  store i32 12, ptr %13, align 4, !tbaa !20
  %271 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %272 = call zeroext i1 @cmp_read_str(ptr noundef %3, ptr noundef %271, ptr noundef %13)
  br i1 %272, label %275, label %273

273:                                              ; preds = %270
  %274 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %274)
  br label %275

275:                                              ; preds = %273, %270
  %276 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %277 = call i32 @strncmp(ptr noundef %276, ptr noundef @.str.27, i64 noundef 5) #9
  %278 = icmp ne i32 %277, 0
  br i1 %278, label %279, label %280

279:                                              ; preds = %275
  call void @error_and_exit(ptr noundef @.str.28)
  br label %280

280:                                              ; preds = %279, %275
  %281 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %281, i8 0, i64 12, i1 false)
  store i32 12, ptr %15, align 4, !tbaa !20
  %282 = call zeroext i1 @cmp_read_bin(ptr noundef %3, ptr noundef %19, ptr noundef %15)
  br i1 %282, label %285, label %283

283:                                              ; preds = %280
  %284 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %284)
  br label %285

285:                                              ; preds = %283, %280
  %286 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %287 = call i32 @memcmp(ptr noundef %286, ptr noundef @.str.9, i64 noundef 11) #9
  %288 = icmp ne i32 %287, 0
  br i1 %288, label %289, label %290

289:                                              ; preds = %285
  call void @error_and_exit(ptr noundef @.str.29)
  br label %290

290:                                              ; preds = %289, %285
  %291 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %291, i8 0, i64 12, i1 false)
  store i32 12, ptr %15, align 4, !tbaa !20
  %292 = call zeroext i1 @cmp_read_bin(ptr noundef %3, ptr noundef %19, ptr noundef %15)
  br i1 %292, label %295, label %293

293:                                              ; preds = %290
  %294 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %294)
  br label %295

295:                                              ; preds = %293, %290
  %296 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %297 = call i32 @memcmp(ptr noundef %296, ptr noundef @.str.30, i64 noundef 8) #9
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %300

299:                                              ; preds = %295
  call void @error_and_exit(ptr noundef @.str.31)
  br label %300

300:                                              ; preds = %299, %295
  %301 = call zeroext i1 @cmp_read_ext_marker(ptr noundef %3, ptr noundef %17, ptr noundef %18)
  br i1 %301, label %304, label %302

302:                                              ; preds = %300
  %303 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %303)
  br label %304

304:                                              ; preds = %302, %300
  %305 = load ptr, ptr %2, align 8, !tbaa !5
  %306 = call zeroext i1 @read_bytes(ptr noundef %4, i64 noundef 2, ptr noundef %305)
  br i1 %306, label %311, label %307

307:                                              ; preds = %304
  %308 = call ptr @__errno_location() #8
  %309 = load i32, ptr %308, align 4, !tbaa !20
  %310 = call ptr @strerror(i32 noundef %309) #7
  call void @error_and_exit(ptr noundef %310)
  br label %311

311:                                              ; preds = %307, %304
  %312 = load ptr, ptr %2, align 8, !tbaa !5
  %313 = call zeroext i1 @read_bytes(ptr noundef %5, i64 noundef 1, ptr noundef %312)
  br i1 %313, label %318, label %314

314:                                              ; preds = %311
  %315 = call ptr @__errno_location() #8
  %316 = load i32, ptr %315, align 4, !tbaa !20
  %317 = call ptr @strerror(i32 noundef %316) #7
  call void @error_and_exit(ptr noundef %317)
  br label %318

318:                                              ; preds = %314, %311
  %319 = load ptr, ptr %2, align 8, !tbaa !5
  %320 = call zeroext i1 @read_bytes(ptr noundef %6, i64 noundef 1, ptr noundef %319)
  br i1 %320, label %325, label %321

321:                                              ; preds = %318
  %322 = call ptr @__errno_location() #8
  %323 = load i32, ptr %322, align 4, !tbaa !20
  %324 = call ptr @strerror(i32 noundef %323) #7
  call void @error_and_exit(ptr noundef %324)
  br label %325

325:                                              ; preds = %321, %318
  %326 = load i16, ptr %4, align 2, !tbaa !9
  %327 = zext i16 %326 to i32
  %328 = icmp ne i32 %327, 1983
  br i1 %328, label %329, label %330

329:                                              ; preds = %325
  call void @error_and_exit(ptr noundef @.str.32)
  br label %330

330:                                              ; preds = %329, %325
  %331 = load i8, ptr %5, align 1, !tbaa !11
  %332 = zext i8 %331 to i32
  %333 = icmp ne i32 %332, 5
  br i1 %333, label %334, label %335

334:                                              ; preds = %330
  call void @error_and_exit(ptr noundef @.str.33)
  br label %335

335:                                              ; preds = %334, %330
  %336 = load i8, ptr %6, align 1, !tbaa !11
  %337 = zext i8 %336 to i32
  %338 = icmp ne i32 %337, 28
  br i1 %338, label %339, label %340

339:                                              ; preds = %335
  call void @error_and_exit(ptr noundef @.str.34)
  br label %340

340:                                              ; preds = %339, %335
  %341 = load ptr, ptr %2, align 8, !tbaa !5
  call void @rewind(ptr noundef %341)
  br label %342

342:                                              ; preds = %522, %340
  br label %343

343:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %344 = call zeroext i1 @cmp_read_object(ptr noundef %3, ptr noundef %20)
  br i1 %344, label %352, label %345

345:                                              ; preds = %343
  %346 = load ptr, ptr %2, align 8, !tbaa !5
  %347 = call i32 @feof(ptr noundef %346) #7
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %349, label %350

349:                                              ; preds = %345
  store i32 3, ptr %21, align 4
  br label %520

350:                                              ; preds = %345
  %351 = call ptr @cmp_strerror(ptr noundef %3)
  call void @error_and_exit(ptr noundef %351)
  br label %352

352:                                              ; preds = %350, %343
  %353 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 0
  %354 = load i8, ptr %353, align 8, !tbaa !24
  %355 = zext i8 %354 to i32
  switch i32 %355, label %514 [
    i32 0, label %356
    i32 14, label %356
    i32 1, label %361
    i32 32, label %361
    i32 33, label %361
    i32 2, label %365
    i32 30, label %365
    i32 31, label %365
    i32 3, label %369
    i32 27, label %369
    i32 28, label %369
    i32 29, label %369
    i32 6, label %387
    i32 7, label %387
    i32 8, label %387
    i32 4, label %402
    i32 5, label %404
    i32 9, label %413
    i32 10, label %413
    i32 11, label %413
    i32 22, label %413
    i32 23, label %413
    i32 24, label %413
    i32 25, label %413
    i32 26, label %413
    i32 12, label %474
    i32 13, label %479
    i32 15, label %483
    i32 16, label %488
    i32 17, label %492
    i32 34, label %496
    i32 18, label %496
    i32 19, label %501
    i32 20, label %506
    i32 21, label %510
  ]

356:                                              ; preds = %352, %352
  %357 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %358 = load i8, ptr %357, align 8, !tbaa !11
  %359 = zext i8 %358 to i32
  %360 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i32 noundef %359)
  br label %519

361:                                              ; preds = %352, %352, %352
  %362 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %363 = load i32, ptr %362, align 8, !tbaa !11
  %364 = call i32 (ptr, ...) @printf(ptr noundef @.str.36, i32 noundef %363)
  br label %519

365:                                              ; preds = %352, %352, %352
  %366 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %367 = load i32, ptr %366, align 8, !tbaa !11
  %368 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, i32 noundef %367)
  br label %519

369:                                              ; preds = %352, %352, %352, %352
  %370 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %371 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %372 = load i32, ptr %371, align 8, !tbaa !11
  %373 = zext i32 %372 to i64
  %374 = load ptr, ptr %2, align 8, !tbaa !5
  %375 = call zeroext i1 @read_bytes(ptr noundef %370, i64 noundef %373, ptr noundef %374)
  br i1 %375, label %380, label %376

376:                                              ; preds = %369
  %377 = call ptr @__errno_location() #8
  %378 = load i32, ptr %377, align 4, !tbaa !20
  %379 = call ptr @strerror(i32 noundef %378) #7
  call void @error_and_exit(ptr noundef %379)
  br label %380

380:                                              ; preds = %376, %369
  %381 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %382 = load i32, ptr %381, align 8, !tbaa !11
  %383 = zext i32 %382 to i64
  %384 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 %383
  store i8 0, ptr %384, align 1, !tbaa !11
  %385 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %386 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, ptr noundef %385)
  br label %519

387:                                              ; preds = %352, %352, %352
  %388 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %388, i8 0, i64 12, i1 false)
  %389 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %390 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %391 = load i32, ptr %390, align 8, !tbaa !11
  %392 = zext i32 %391 to i64
  %393 = load ptr, ptr %2, align 8, !tbaa !5
  %394 = call zeroext i1 @read_bytes(ptr noundef %389, i64 noundef %392, ptr noundef %393)
  br i1 %394, label %399, label %395

395:                                              ; preds = %387
  %396 = call ptr @__errno_location() #8
  %397 = load i32, ptr %396, align 4, !tbaa !20
  %398 = call ptr @strerror(i32 noundef %397) #7
  call void @error_and_exit(ptr noundef %398)
  br label %399

399:                                              ; preds = %395, %387
  %400 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %401 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, ptr noundef %400)
  br label %519

402:                                              ; preds = %352
  %403 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
  br label %519

404:                                              ; preds = %352
  %405 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %406 = load i8, ptr %405, align 8, !tbaa !11, !range !22, !noundef !23
  %407 = trunc i8 %406 to i1
  br i1 %407, label %408, label %410

408:                                              ; preds = %404
  %409 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
  br label %412

410:                                              ; preds = %404
  %411 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  br label %412

412:                                              ; preds = %410, %408
  br label %519

413:                                              ; preds = %352, %352, %352, %352, %352, %352, %352, %352
  %414 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %415 = getelementptr inbounds %struct.cmp_ext_s, ptr %414, i32 0, i32 0
  %416 = load i8, ptr %415, align 8, !tbaa !11
  %417 = sext i8 %416 to i32
  %418 = icmp eq i32 %417, 1
  br i1 %418, label %419, label %448

419:                                              ; preds = %413
  %420 = load ptr, ptr %2, align 8, !tbaa !5
  %421 = call zeroext i1 @read_bytes(ptr noundef %4, i64 noundef 2, ptr noundef %420)
  br i1 %421, label %426, label %422

422:                                              ; preds = %419
  %423 = call ptr @__errno_location() #8
  %424 = load i32, ptr %423, align 4, !tbaa !20
  %425 = call ptr @strerror(i32 noundef %424) #7
  call void @error_and_exit(ptr noundef %425)
  br label %426

426:                                              ; preds = %422, %419
  %427 = load ptr, ptr %2, align 8, !tbaa !5
  %428 = call zeroext i1 @read_bytes(ptr noundef %5, i64 noundef 1, ptr noundef %427)
  br i1 %428, label %433, label %429

429:                                              ; preds = %426
  %430 = call ptr @__errno_location() #8
  %431 = load i32, ptr %430, align 4, !tbaa !20
  %432 = call ptr @strerror(i32 noundef %431) #7
  call void @error_and_exit(ptr noundef %432)
  br label %433

433:                                              ; preds = %429, %426
  %434 = load ptr, ptr %2, align 8, !tbaa !5
  %435 = call zeroext i1 @read_bytes(ptr noundef %6, i64 noundef 1, ptr noundef %434)
  br i1 %435, label %440, label %436

436:                                              ; preds = %433
  %437 = call ptr @__errno_location() #8
  %438 = load i32, ptr %437, align 4, !tbaa !20
  %439 = call ptr @strerror(i32 noundef %438) #7
  call void @error_and_exit(ptr noundef %439)
  br label %440

440:                                              ; preds = %436, %433
  %441 = load i16, ptr %4, align 2, !tbaa !9
  %442 = zext i16 %441 to i32
  %443 = load i8, ptr %5, align 1, !tbaa !11
  %444 = zext i8 %443 to i32
  %445 = load i8, ptr %6, align 1, !tbaa !11
  %446 = zext i8 %445 to i32
  %447 = call i32 (ptr, ...) @printf(ptr noundef @.str.43, i32 noundef %442, i32 noundef %444, i32 noundef %446)
  br label %473

448:                                              ; preds = %413
  %449 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %450 = getelementptr inbounds %struct.cmp_ext_s, ptr %449, i32 0, i32 0
  %451 = load i8, ptr %450, align 8, !tbaa !11
  %452 = sext i8 %451 to i32
  %453 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %454 = getelementptr inbounds %struct.cmp_ext_s, ptr %453, i32 0, i32 1
  %455 = load i32, ptr %454, align 4, !tbaa !11
  %456 = call i32 (ptr, ...) @printf(ptr noundef @.str.44, i32 noundef %452, i32 noundef %455)
  br label %457

457:                                              ; preds = %463, %448
  %458 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %459 = getelementptr inbounds %struct.cmp_ext_s, ptr %458, i32 0, i32 1
  %460 = load i32, ptr %459, align 4, !tbaa !11
  %461 = add i32 %460, -1
  store i32 %461, ptr %459, align 4, !tbaa !11
  %462 = icmp ne i32 %460, 0
  br i1 %462, label %463, label %471

463:                                              ; preds = %457
  %464 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %465 = load ptr, ptr %2, align 8, !tbaa !5
  %466 = call zeroext i1 @read_bytes(ptr noundef %464, i64 noundef 1, ptr noundef %465)
  %467 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %468 = load i8, ptr %467, align 1, !tbaa !11
  %469 = sext i8 %468 to i32
  %470 = call i32 (ptr, ...) @printf(ptr noundef @.str.45, i32 noundef %469)
  br label %457, !llvm.loop !26

471:                                              ; preds = %457
  %472 = call i32 (ptr, ...) @printf(ptr noundef @.str.46)
  br label %473

473:                                              ; preds = %471, %440
  br label %519

474:                                              ; preds = %352
  %475 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %476 = load float, ptr %475, align 8, !tbaa !11
  %477 = fpext float %476 to double
  %478 = call i32 (ptr, ...) @printf(ptr noundef @.str.47, double noundef %477)
  br label %519

479:                                              ; preds = %352
  %480 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %481 = load double, ptr %480, align 8, !tbaa !11
  %482 = call i32 (ptr, ...) @printf(ptr noundef @.str.48, double noundef %481)
  br label %519

483:                                              ; preds = %352
  %484 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %485 = load i16, ptr %484, align 8, !tbaa !11
  %486 = zext i16 %485 to i32
  %487 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i32 noundef %486)
  br label %519

488:                                              ; preds = %352
  %489 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %490 = load i32, ptr %489, align 8, !tbaa !11
  %491 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i32 noundef %490)
  br label %519

492:                                              ; preds = %352
  %493 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %494 = load i64, ptr %493, align 8, !tbaa !11
  %495 = call i32 (ptr, ...) @printf(ptr noundef @.str.49, i64 noundef %494)
  br label %519

496:                                              ; preds = %352, %352
  %497 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %498 = load i8, ptr %497, align 8, !tbaa !11
  %499 = sext i8 %498 to i32
  %500 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, i32 noundef %499)
  br label %519

501:                                              ; preds = %352
  %502 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %503 = load i16, ptr %502, align 8, !tbaa !11
  %504 = sext i16 %503 to i32
  %505 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, i32 noundef %504)
  br label %519

506:                                              ; preds = %352
  %507 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %508 = load i32, ptr %507, align 8, !tbaa !11
  %509 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, i32 noundef %508)
  br label %519

510:                                              ; preds = %352
  %511 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 1
  %512 = load i64, ptr %511, align 8, !tbaa !11
  %513 = call i32 (ptr, ...) @printf(ptr noundef @.str.51, i64 noundef %512)
  br label %519

514:                                              ; preds = %352
  %515 = getelementptr inbounds %struct.cmp_object_s, ptr %20, i32 0, i32 0
  %516 = load i8, ptr %515, align 8, !tbaa !24
  %517 = zext i8 %516 to i32
  %518 = call i32 (ptr, ...) @printf(ptr noundef @.str.52, i32 noundef %517)
  br label %519

519:                                              ; preds = %514, %510, %506, %501, %496, %492, %488, %483, %479, %474, %473, %412, %402, %399, %380, %365, %361, %356
  store i32 0, ptr %21, align 4
  br label %520

520:                                              ; preds = %519, %349
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  %521 = load i32, ptr %21, align 4
  switch i32 %521, label %527 [
    i32 0, label %522
    i32 3, label %523
  ]

522:                                              ; preds = %520
  br label %342

523:                                              ; preds = %520
  %524 = load ptr, ptr %2, align 8, !tbaa !5
  %525 = call i32 @fclose(ptr noundef %524)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %526 = load i32, ptr %1, align 4
  ret i32 %526

527:                                              ; preds = %520
  unreachable
}

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

declare void @cmp_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @file_reader(ptr noundef, ptr noundef, i64 noundef) #0

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

declare zeroext i1 @cmp_write_array(ptr noundef, i32 noundef) #4

declare ptr @cmp_strerror(ptr noundef) #4

declare zeroext i1 @cmp_write_sint(ptr noundef, i64 noundef) #4

declare zeroext i1 @cmp_write_uint(ptr noundef, i64 noundef) #4

declare zeroext i1 @cmp_write_float(ptr noundef, float noundef) #4

declare zeroext i1 @cmp_write_double(ptr noundef, double noundef) #4

declare zeroext i1 @cmp_write_nil(ptr noundef) #4

declare zeroext i1 @cmp_write_true(ptr noundef) #4

declare zeroext i1 @cmp_write_false(ptr noundef) #4

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

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

declare zeroext i1 @cmp_write_map(ptr noundef, i32 noundef) #4

declare zeroext i1 @cmp_write_str(ptr noundef, ptr noundef, i32 noundef) #4

declare zeroext i1 @cmp_write_str_marker(ptr noundef, i32 noundef) #4

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

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

declare zeroext i1 @cmp_write_bin(ptr noundef, ptr noundef, i32 noundef) #4

declare zeroext i1 @cmp_write_bin_marker(ptr noundef, i32 noundef) #4

declare zeroext i1 @cmp_write_ext_marker(ptr noundef, i8 noundef signext, i32 noundef) #4

declare void @rewind(ptr noundef) #4

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

declare zeroext i1 @cmp_read_sinteger(ptr noundef, ptr noundef) #4

declare zeroext i1 @cmp_read_uinteger(ptr noundef, ptr noundef) #4

declare zeroext i1 @cmp_read_float(ptr noundef, ptr noundef) #4

declare zeroext i1 @cmp_read_double(ptr noundef, ptr noundef) #4

declare zeroext i1 @cmp_read_nil(ptr noundef) #4

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

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

declare zeroext i1 @cmp_read_map(ptr noundef, ptr noundef) #4

declare zeroext i1 @cmp_read_str_size(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @read_bytes(ptr noundef, i64 noundef, ptr noundef) #0

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #6

declare zeroext i1 @cmp_read_str(ptr noundef, ptr noundef, ptr noundef) #4

declare zeroext i1 @cmp_read_bin(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #6

declare zeroext i1 @cmp_read_ext_marker(ptr noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #1

declare i32 @printf(ptr noundef, ...) #4

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

declare i32 @fclose(ptr noundef) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind willreturn memory(read) "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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_Bool", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !7, i64 0}
!25 = !{!"cmp_object_s", !7, i64 0, !7, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; 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.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 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [29 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.cmp_ctx_s, align 8
  %2 = alloca i16, align 2
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca float, align 4
  %8 = alloca double, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca [12 x i8], align 1
  %18 = alloca %struct.cmp_object_s, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %2) #9
  store i16 1983, ptr %2, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #9
  store i8 5, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #9
  store i8 28, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store i64 0, ptr %5, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  store i64 0, ptr %6, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store float 0.000000e+00, ptr %7, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  store double 0.000000e+00, ptr %8, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #9
  store i8 0, ptr %9, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #9
  store i8 0, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 0, ptr %11, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  store i32 0, ptr %12, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  store i32 0, ptr %13, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  store i32 0, ptr %14, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #9
  store i8 0, ptr %15, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  store i32 0, ptr %16, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %17, i8 0, i64 12, i1 false)
  %19 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %0
  tail call void @error_and_exit(ptr noundef nonnull @.str.3)
  br label %22

22:                                               ; preds = %21, %0
  call void @cmp_init(ptr noundef nonnull %1, ptr noundef %19, ptr noundef nonnull @file_reader, ptr noundef nonnull @file_writer) #9
  %23 = call zeroext i1 @cmp_write_array(ptr noundef nonnull %1, i32 noundef 9) #9
  br i1 %23, label %26, label %24

24:                                               ; preds = %22
  %25 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %25)
  br label %26

26:                                               ; preds = %24, %22
  %27 = call zeroext i1 @cmp_write_sint(ptr noundef nonnull %1, i64 noundef -14) #9
  br i1 %27, label %30, label %28

28:                                               ; preds = %26
  %29 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %29)
  br label %30

30:                                               ; preds = %28, %26
  %31 = call zeroext i1 @cmp_write_uint(ptr noundef nonnull %1, i64 noundef 38) #9
  br i1 %31, label %34, label %32

32:                                               ; preds = %30
  %33 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %33)
  br label %34

34:                                               ; preds = %32, %30
  %35 = call zeroext i1 @cmp_write_float(ptr noundef nonnull %1, float noundef 0x3FFCCCCCC0000000) #9
  br i1 %35, label %38, label %36

36:                                               ; preds = %34
  %37 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %37)
  br label %38

38:                                               ; preds = %36, %34
  %39 = call zeroext i1 @cmp_write_double(ptr noundef nonnull %1, double noundef 3.004000e+02) #9
  br i1 %39, label %42, label %40

40:                                               ; preds = %38
  %41 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %41)
  br label %42

42:                                               ; preds = %40, %38
  %43 = call zeroext i1 @cmp_write_nil(ptr noundef nonnull %1) #9
  br i1 %43, label %46, label %44

44:                                               ; preds = %42
  %45 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %45)
  br label %46

46:                                               ; preds = %44, %42
  %47 = call zeroext i1 @cmp_write_true(ptr noundef nonnull %1) #9
  br i1 %47, label %50, label %48

48:                                               ; preds = %46
  %49 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %49)
  br label %50

50:                                               ; preds = %48, %46
  %51 = call zeroext i1 @cmp_write_false(ptr noundef nonnull %1) #9
  br i1 %51, label %54, label %52

52:                                               ; preds = %50
  %53 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %53)
  br label %54

54:                                               ; preds = %52, %50
  %55 = call zeroext i1 @cmp_write_bool(ptr noundef nonnull %1, i1 noundef zeroext false) #9
  br i1 %55, label %58, label %56

56:                                               ; preds = %54
  %57 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %57)
  br label %58

58:                                               ; preds = %56, %54
  %59 = call zeroext i1 @cmp_write_u8_as_bool(ptr noundef nonnull %1, i8 noundef zeroext 1) #9
  br i1 %59, label %62, label %60

60:                                               ; preds = %58
  %61 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %61)
  br label %62

62:                                               ; preds = %60, %58
  %63 = call zeroext i1 @cmp_write_map(ptr noundef nonnull %1, i32 noundef 2) #9
  br i1 %63, label %66, label %64

64:                                               ; preds = %62
  %65 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %65)
  br label %66

66:                                               ; preds = %64, %62
  %67 = call zeroext i1 @cmp_write_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.4, i32 noundef 8) #9
  br i1 %67, label %70, label %68

68:                                               ; preds = %66
  %69 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %69)
  br label %70

70:                                               ; preds = %68, %66
  %71 = call zeroext i1 @cmp_write_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.5, i32 noundef 5) #9
  br i1 %71, label %74, label %72

72:                                               ; preds = %70
  %73 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %73)
  br label %74

74:                                               ; preds = %72, %70
  %75 = call zeroext i1 @cmp_write_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.6, i32 noundef 4) #9
  br i1 %75, label %78, label %76

76:                                               ; preds = %74
  %77 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %77)
  br label %78

78:                                               ; preds = %76, %74
  %79 = call zeroext i1 @cmp_write_str_marker(ptr noundef nonnull %1, i32 noundef 5) #9
  br i1 %79, label %82, label %80

80:                                               ; preds = %78
  %81 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %81)
  br label %82

82:                                               ; preds = %80, %78
  %83 = call i64 @file_writer(ptr noundef nonnull %1, ptr noundef nonnull @.str.7, i64 noundef 2)
  %.not = icmp eq i64 %83, 2
  br i1 %.not, label %88, label %84

84:                                               ; preds = %82
  %85 = tail call ptr @__errno_location() #10
  %86 = load i32, ptr %85, align 4, !tbaa !18
  %87 = call ptr @strerror(i32 noundef %86) #9
  call void @error_and_exit(ptr noundef %87)
  br label %88

88:                                               ; preds = %84, %82
  %89 = call i64 @file_writer(ptr noundef nonnull %1, ptr noundef nonnull @.str.8, i64 noundef 3)
  %.not19 = icmp eq i64 %89, 3
  br i1 %.not19, label %94, label %90

90:                                               ; preds = %88
  %91 = tail call ptr @__errno_location() #10
  %92 = load i32, ptr %91, align 4, !tbaa !18
  %93 = call ptr @strerror(i32 noundef %92) #9
  call void @error_and_exit(ptr noundef %93)
  br label %94

94:                                               ; preds = %90, %88
  %95 = call zeroext i1 @cmp_write_bin(ptr noundef nonnull %1, ptr noundef nonnull @.str.9, i32 noundef 11) #9
  br i1 %95, label %98, label %96

96:                                               ; preds = %94
  %97 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %97)
  br label %98

98:                                               ; preds = %96, %94
  %99 = call zeroext i1 @cmp_write_bin_marker(ptr noundef nonnull %1, i32 noundef 8) #9
  br i1 %99, label %102, label %100

100:                                              ; preds = %98
  %101 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %101)
  br label %102

102:                                              ; preds = %100, %98
  %103 = call i64 @file_writer(ptr noundef nonnull %1, ptr noundef nonnull @.str.10, i64 noundef 3)
  %.not20 = icmp eq i64 %103, 3
  br i1 %.not20, label %108, label %104

104:                                              ; preds = %102
  %105 = tail call ptr @__errno_location() #10
  %106 = load i32, ptr %105, align 4, !tbaa !18
  %107 = call ptr @strerror(i32 noundef %106) #9
  call void @error_and_exit(ptr noundef %107)
  br label %108

108:                                              ; preds = %104, %102
  %109 = call i64 @file_writer(ptr noundef nonnull %1, ptr noundef nonnull @.str.11, i64 noundef 5)
  %.not21 = icmp eq i64 %109, 5
  br i1 %.not21, label %114, label %110

110:                                              ; preds = %108
  %111 = tail call ptr @__errno_location() #10
  %112 = load i32, ptr %111, align 4, !tbaa !18
  %113 = call ptr @strerror(i32 noundef %112) #9
  call void @error_and_exit(ptr noundef %113)
  br label %114

114:                                              ; preds = %110, %108
  %115 = call zeroext i1 @cmp_write_ext_marker(ptr noundef nonnull %1, i8 noundef signext 1, i32 noundef 4) #9
  br i1 %115, label %118, label %116

116:                                              ; preds = %114
  %117 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %117)
  br label %118

118:                                              ; preds = %116, %114
  %119 = call i64 @file_writer(ptr noundef nonnull %1, ptr noundef nonnull %2, i64 noundef 2)
  %120 = call i64 @file_writer(ptr noundef nonnull %1, ptr noundef nonnull %3, i64 noundef 1)
  %121 = call i64 @file_writer(ptr noundef nonnull %1, ptr noundef nonnull %4, i64 noundef 1)
  call void @rewind(ptr noundef %19)
  %122 = call zeroext i1 @cmp_read_array(ptr noundef nonnull %1, ptr noundef nonnull %12) #9
  br i1 %122, label %125, label %123

123:                                              ; preds = %118
  %124 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %124)
  br label %125

125:                                              ; preds = %123, %118
  %126 = load i32, ptr %12, align 4, !tbaa !18
  %.not22 = icmp eq i32 %126, 9
  br i1 %.not22, label %128, label %127

127:                                              ; preds = %125
  call void @error_and_exit(ptr noundef nonnull @.str.12)
  br label %128

128:                                              ; preds = %127, %125
  %129 = call zeroext i1 @cmp_read_sinteger(ptr noundef nonnull %1, ptr noundef nonnull %5) #9
  br i1 %129, label %132, label %130

130:                                              ; preds = %128
  %131 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %131)
  br label %132

132:                                              ; preds = %130, %128
  %133 = load i64, ptr %5, align 8, !tbaa !10
  %.not23 = icmp eq i64 %133, -14
  br i1 %.not23, label %135, label %134

134:                                              ; preds = %132
  call void @error_and_exit(ptr noundef nonnull @.str.13)
  br label %135

135:                                              ; preds = %134, %132
  %136 = call zeroext i1 @cmp_read_uinteger(ptr noundef nonnull %1, ptr noundef nonnull %6) #9
  br i1 %136, label %139, label %137

137:                                              ; preds = %135
  %138 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %138)
  br label %139

139:                                              ; preds = %137, %135
  %140 = load i64, ptr %6, align 8, !tbaa !10
  %.not24 = icmp eq i64 %140, 38
  br i1 %.not24, label %142, label %141

141:                                              ; preds = %139
  call void @error_and_exit(ptr noundef nonnull @.str.14)
  br label %142

142:                                              ; preds = %141, %139
  %143 = call zeroext i1 @cmp_read_float(ptr noundef nonnull %1, ptr noundef nonnull %7) #9
  br i1 %143, label %146, label %144

144:                                              ; preds = %142
  %145 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %145)
  br label %146

146:                                              ; preds = %144, %142
  %147 = load float, ptr %7, align 4, !tbaa !12
  %148 = fcmp une float %147, 0x3FFCCCCCC0000000
  br i1 %148, label %149, label %150

149:                                              ; preds = %146
  call void @error_and_exit(ptr noundef nonnull @.str.15)
  br label %150

150:                                              ; preds = %149, %146
  %151 = call zeroext i1 @cmp_read_double(ptr noundef nonnull %1, ptr noundef nonnull %8) #9
  br i1 %151, label %154, label %152

152:                                              ; preds = %150
  %153 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %153)
  br label %154

154:                                              ; preds = %152, %150
  %155 = load double, ptr %8, align 8, !tbaa !14
  %156 = fcmp une double %155, 3.004000e+02
  br i1 %156, label %157, label %158

157:                                              ; preds = %154
  call void @error_and_exit(ptr noundef nonnull @.str.16)
  br label %158

158:                                              ; preds = %157, %154
  %159 = call zeroext i1 @cmp_read_nil(ptr noundef nonnull %1) #9
  br i1 %159, label %162, label %160

160:                                              ; preds = %158
  %161 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %161)
  br label %162

162:                                              ; preds = %160, %158
  %163 = call zeroext i1 @cmp_read_bool(ptr noundef nonnull %1, ptr noundef nonnull %9) #9
  br i1 %163, label %166, label %164

164:                                              ; preds = %162
  %165 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %165)
  br label %166

166:                                              ; preds = %164, %162
  %167 = load i8, ptr %9, align 1, !tbaa !16, !range !20, !noundef !21
  %.not25.not = icmp eq i8 %167, 0
  br i1 %.not25.not, label %168, label %169

168:                                              ; preds = %166
  call void @error_and_exit(ptr noundef nonnull @.str.17)
  br label %169

169:                                              ; preds = %168, %166
  %170 = call zeroext i1 @cmp_read_bool(ptr noundef nonnull %1, ptr noundef nonnull %9) #9
  br i1 %170, label %173, label %171

171:                                              ; preds = %169
  %172 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %172)
  br label %173

173:                                              ; preds = %171, %169
  %174 = load i8, ptr %9, align 1, !tbaa !16, !range !20, !noundef !21
  %175 = trunc nuw i8 %174 to i1
  br i1 %175, label %176, label %177

176:                                              ; preds = %173
  call void @error_and_exit(ptr noundef nonnull @.str.18)
  br label %177

177:                                              ; preds = %176, %173
  %178 = call zeroext i1 @cmp_read_bool(ptr noundef nonnull %1, ptr noundef nonnull %9) #9
  br i1 %178, label %181, label %179

179:                                              ; preds = %177
  %180 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %180)
  br label %181

181:                                              ; preds = %179, %177
  %182 = load i8, ptr %9, align 1, !tbaa !16, !range !20, !noundef !21
  %183 = trunc nuw i8 %182 to i1
  br i1 %183, label %184, label %185

184:                                              ; preds = %181
  call void @error_and_exit(ptr noundef nonnull @.str.19)
  br label %185

185:                                              ; preds = %184, %181
  %186 = call zeroext i1 @cmp_read_bool_as_u8(ptr noundef nonnull %1, ptr noundef nonnull %10) #9
  br i1 %186, label %189, label %187

187:                                              ; preds = %185
  %188 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %188)
  br label %189

189:                                              ; preds = %187, %185
  %190 = load i8, ptr %10, align 1, !tbaa !9
  %.not26 = icmp eq i8 %190, 1
  br i1 %.not26, label %195, label %191

191:                                              ; preds = %189
  %192 = zext i8 %190 to i32
  %193 = load ptr, ptr @stderr, align 8, !tbaa !22
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef nonnull @.str.20, i32 noundef %192) #11
  call void @error_and_exit(ptr noundef nonnull @.str.21)
  br label %195

195:                                              ; preds = %191, %189
  %196 = call zeroext i1 @cmp_read_map(ptr noundef nonnull %1, ptr noundef nonnull %14) #9
  br i1 %196, label %199, label %197

197:                                              ; preds = %195
  %198 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %198)
  br label %199

199:                                              ; preds = %197, %195
  %200 = load i32, ptr %14, align 4, !tbaa !18
  %.not27 = icmp eq i32 %200, 2
  br i1 %.not27, label %202, label %201

201:                                              ; preds = %199
  call void @error_and_exit(ptr noundef nonnull @.str.22)
  br label %202

202:                                              ; preds = %201, %199
  %203 = call zeroext i1 @cmp_read_str_size(ptr noundef nonnull %1, ptr noundef nonnull %11) #9
  br i1 %203, label %206, label %204

204:                                              ; preds = %202
  %205 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %205)
  br label %206

206:                                              ; preds = %204, %202
  %207 = load i32, ptr %11, align 4, !tbaa !18
  %.not28 = icmp eq i32 %207, 8
  br i1 %.not28, label %209, label %208

208:                                              ; preds = %206
  call void @error_and_exit(ptr noundef nonnull @.str.23)
  br label %209

209:                                              ; preds = %208, %206
  %210 = call zeroext i1 @read_bytes(ptr noundef nonnull %17, i64 noundef 8, ptr noundef %19)
  br i1 %210, label %215, label %211

211:                                              ; preds = %209
  %212 = tail call ptr @__errno_location() #10
  %213 = load i32, ptr %212, align 4, !tbaa !18
  %214 = call ptr @strerror(i32 noundef %213) #9
  call void @error_and_exit(ptr noundef %214)
  br label %215

215:                                              ; preds = %211, %209
  %216 = load i32, ptr %11, align 4, !tbaa !18
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds [12 x i8], ptr %17, i64 0, i64 %217
  store i8 0, ptr %218, align 1, !tbaa !9
  %219 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef 8) #12
  %.not29 = icmp eq i32 %219, 0
  br i1 %.not29, label %221, label %220

220:                                              ; preds = %215
  call void @error_and_exit(ptr noundef nonnull @.str.24)
  br label %221

221:                                              ; preds = %220, %215
  store i32 12, ptr %11, align 4, !tbaa !18
  %222 = call zeroext i1 @cmp_read_str(ptr noundef nonnull %1, ptr noundef nonnull %17, ptr noundef nonnull %11) #9
  br i1 %222, label %225, label %223

223:                                              ; preds = %221
  %224 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %224)
  br label %225

225:                                              ; preds = %223, %221
  %226 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef 5) #12
  %.not30 = icmp eq i32 %226, 0
  br i1 %.not30, label %228, label %227

227:                                              ; preds = %225
  call void @error_and_exit(ptr noundef nonnull @.str.25)
  br label %228

228:                                              ; preds = %227, %225
  store i32 12, ptr %11, align 4, !tbaa !18
  %229 = call zeroext i1 @cmp_read_str(ptr noundef nonnull %1, ptr noundef nonnull %17, ptr noundef nonnull %11) #9
  br i1 %229, label %232, label %230

230:                                              ; preds = %228
  %231 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %231)
  br label %232

232:                                              ; preds = %230, %228
  %233 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef 4) #12
  %.not31 = icmp eq i32 %233, 0
  br i1 %.not31, label %235, label %234

234:                                              ; preds = %232
  call void @error_and_exit(ptr noundef nonnull @.str.26)
  br label %235

235:                                              ; preds = %234, %232
  store i32 12, ptr %11, align 4, !tbaa !18
  %236 = call zeroext i1 @cmp_read_str(ptr noundef nonnull %1, ptr noundef nonnull %17, ptr noundef nonnull %11) #9
  br i1 %236, label %239, label %237

237:                                              ; preds = %235
  %238 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %238)
  br label %239

239:                                              ; preds = %237, %235
  %240 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.27, i64 noundef 5) #12
  %.not32 = icmp eq i32 %240, 0
  br i1 %.not32, label %242, label %241

241:                                              ; preds = %239
  call void @error_and_exit(ptr noundef nonnull @.str.28)
  br label %242

242:                                              ; preds = %241, %239
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %17, i8 0, i64 12, i1 false)
  store i32 12, ptr %13, align 4, !tbaa !18
  %243 = call zeroext i1 @cmp_read_bin(ptr noundef nonnull %1, ptr noundef nonnull %17, ptr noundef nonnull %13) #9
  br i1 %243, label %246, label %244

244:                                              ; preds = %242
  %245 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %245)
  br label %246

246:                                              ; preds = %244, %242
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(11) %17, ptr noundef nonnull dereferenceable(11) @.str.9, i64 11)
  %.not33 = icmp eq i32 %bcmp, 0
  br i1 %.not33, label %248, label %247

247:                                              ; preds = %246
  call void @error_and_exit(ptr noundef nonnull @.str.29)
  br label %248

248:                                              ; preds = %247, %246
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %17, i8 0, i64 12, i1 false)
  store i32 12, ptr %13, align 4, !tbaa !18
  %249 = call zeroext i1 @cmp_read_bin(ptr noundef nonnull %1, ptr noundef nonnull %17, ptr noundef nonnull %13) #9
  br i1 %249, label %252, label %250

250:                                              ; preds = %248
  %251 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %251)
  br label %252

252:                                              ; preds = %250, %248
  %bcmp34 = call i32 @bcmp(ptr noundef nonnull dereferenceable(8) %17, ptr noundef nonnull dereferenceable(8) @.str.30, i64 8)
  %.not35 = icmp eq i32 %bcmp34, 0
  br i1 %.not35, label %254, label %253

253:                                              ; preds = %252
  call void @error_and_exit(ptr noundef nonnull @.str.31)
  br label %254

254:                                              ; preds = %253, %252
  %255 = call zeroext i1 @cmp_read_ext_marker(ptr noundef nonnull %1, ptr noundef nonnull %15, ptr noundef nonnull %16) #9
  br i1 %255, label %258, label %256

256:                                              ; preds = %254
  %257 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %257)
  br label %258

258:                                              ; preds = %256, %254
  %259 = call zeroext i1 @read_bytes(ptr noundef nonnull %2, i64 noundef 2, ptr noundef %19)
  br i1 %259, label %264, label %260

260:                                              ; preds = %258
  %261 = tail call ptr @__errno_location() #10
  %262 = load i32, ptr %261, align 4, !tbaa !18
  %263 = call ptr @strerror(i32 noundef %262) #9
  call void @error_and_exit(ptr noundef %263)
  br label %264

264:                                              ; preds = %260, %258
  %265 = call zeroext i1 @read_bytes(ptr noundef nonnull %3, i64 noundef 1, ptr noundef %19)
  br i1 %265, label %270, label %266

266:                                              ; preds = %264
  %267 = tail call ptr @__errno_location() #10
  %268 = load i32, ptr %267, align 4, !tbaa !18
  %269 = call ptr @strerror(i32 noundef %268) #9
  call void @error_and_exit(ptr noundef %269)
  br label %270

270:                                              ; preds = %266, %264
  %271 = call zeroext i1 @read_bytes(ptr noundef nonnull %4, i64 noundef 1, ptr noundef %19)
  br i1 %271, label %276, label %272

272:                                              ; preds = %270
  %273 = tail call ptr @__errno_location() #10
  %274 = load i32, ptr %273, align 4, !tbaa !18
  %275 = call ptr @strerror(i32 noundef %274) #9
  call void @error_and_exit(ptr noundef %275)
  br label %276

276:                                              ; preds = %272, %270
  %277 = load i16, ptr %2, align 2, !tbaa !5
  %.not36 = icmp eq i16 %277, 1983
  br i1 %.not36, label %279, label %278

278:                                              ; preds = %276
  call void @error_and_exit(ptr noundef nonnull @.str.32)
  br label %279

279:                                              ; preds = %278, %276
  %280 = load i8, ptr %3, align 1, !tbaa !9
  %.not37 = icmp eq i8 %280, 5
  br i1 %.not37, label %282, label %281

281:                                              ; preds = %279
  call void @error_and_exit(ptr noundef nonnull @.str.33)
  br label %282

282:                                              ; preds = %281, %279
  %283 = load i8, ptr %4, align 1, !tbaa !9
  %.not38 = icmp eq i8 %283, 28
  br i1 %.not38, label %285, label %284

284:                                              ; preds = %282
  call void @error_and_exit(ptr noundef nonnull @.str.34)
  br label %285

285:                                              ; preds = %284, %282
  call void @rewind(ptr noundef %19)
  %286 = getelementptr inbounds i8, ptr %18, i64 8
  %287 = getelementptr inbounds i8, ptr %18, i64 12
  br label %288

288:                                              ; preds = %414, %285
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  %289 = call zeroext i1 @cmp_read_object(ptr noundef nonnull %1, ptr noundef nonnull %18) #9
  br i1 %289, label %294, label %290

290:                                              ; preds = %288
  %291 = call i32 @feof(ptr noundef %19) #9
  %.not39 = icmp eq i32 %291, 0
  br i1 %.not39, label %292, label %415

292:                                              ; preds = %290
  %293 = call ptr @cmp_strerror(ptr noundef nonnull %1) #9
  call void @error_and_exit(ptr noundef %293)
  br label %294

294:                                              ; preds = %292, %288
  %295 = load i8, ptr %18, align 8, !tbaa !24
  switch i8 %295, label %411 [
    i8 0, label %296
    i8 14, label %296
    i8 1, label %300
    i8 32, label %300
    i8 33, label %300
    i8 2, label %303
    i8 30, label %303
    i8 31, label %303
    i8 3, label %306
    i8 27, label %306
    i8 28, label %306
    i8 29, label %306
    i8 6, label %319
    i8 7, label %319
    i8 8, label %319
    i8 4, label %329
    i8 5, label %331
    i8 9, label %338
    i8 10, label %338
    i8 11, label %338
    i8 22, label %338
    i8 23, label %338
    i8 24, label %338
    i8 25, label %338
    i8 26, label %338
    i8 12, label %380
    i8 13, label %384
    i8 15, label %387
    i8 16, label %391
    i8 17, label %394
    i8 34, label %397
    i8 18, label %397
    i8 19, label %401
    i8 20, label %405
    i8 21, label %408
  ]

296:                                              ; preds = %294, %294
  %297 = load i8, ptr %286, align 8, !tbaa !9
  %298 = zext i8 %297 to i32
  %299 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, i32 noundef %298)
  br label %414

300:                                              ; preds = %294, %294, %294
  %301 = load i32, ptr %286, align 8, !tbaa !9
  %302 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36, i32 noundef %301)
  br label %414

303:                                              ; preds = %294, %294, %294
  %304 = load i32, ptr %286, align 8, !tbaa !9
  %305 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, i32 noundef %304)
  br label %414

306:                                              ; preds = %294, %294, %294, %294
  %307 = load i32, ptr %286, align 8, !tbaa !9
  %308 = zext i32 %307 to i64
  %309 = call zeroext i1 @read_bytes(ptr noundef nonnull %17, i64 noundef %308, ptr noundef %19)
  br i1 %309, label %314, label %310

310:                                              ; preds = %306
  %311 = tail call ptr @__errno_location() #10
  %312 = load i32, ptr %311, align 4, !tbaa !18
  %313 = call ptr @strerror(i32 noundef %312) #9
  call void @error_and_exit(ptr noundef %313)
  br label %314

314:                                              ; preds = %310, %306
  %315 = load i32, ptr %286, align 8, !tbaa !9
  %316 = zext i32 %315 to i64
  %317 = getelementptr inbounds [12 x i8], ptr %17, i64 0, i64 %316
  store i8 0, ptr %317, align 1, !tbaa !9
  %318 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %17)
  br label %414

319:                                              ; preds = %294, %294, %294
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %17, i8 0, i64 12, i1 false)
  %320 = load i32, ptr %286, align 8, !tbaa !9
  %321 = zext i32 %320 to i64
  %322 = call zeroext i1 @read_bytes(ptr noundef nonnull %17, i64 noundef %321, ptr noundef %19)
  br i1 %322, label %327, label %323

323:                                              ; preds = %319
  %324 = tail call ptr @__errno_location() #10
  %325 = load i32, ptr %324, align 4, !tbaa !18
  %326 = call ptr @strerror(i32 noundef %325) #9
  call void @error_and_exit(ptr noundef %326)
  br label %327

327:                                              ; preds = %323, %319
  %328 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, ptr noundef nonnull %17)
  br label %414

329:                                              ; preds = %294
  %330 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40)
  br label %414

331:                                              ; preds = %294
  %332 = load i8, ptr %286, align 8, !tbaa !9, !range !20, !noundef !21
  %333 = trunc nuw i8 %332 to i1
  br i1 %333, label %334, label %336

334:                                              ; preds = %331
  %335 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41)
  br label %414

336:                                              ; preds = %331
  %337 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  br label %414

338:                                              ; preds = %294, %294, %294, %294, %294, %294, %294, %294
  %339 = load i8, ptr %286, align 8, !tbaa !9
  %340 = icmp eq i8 %339, 1
  br i1 %340, label %341, label %367

341:                                              ; preds = %338
  %342 = call zeroext i1 @read_bytes(ptr noundef nonnull %2, i64 noundef 2, ptr noundef %19)
  br i1 %342, label %347, label %343

343:                                              ; preds = %341
  %344 = tail call ptr @__errno_location() #10
  %345 = load i32, ptr %344, align 4, !tbaa !18
  %346 = call ptr @strerror(i32 noundef %345) #9
  call void @error_and_exit(ptr noundef %346)
  br label %347

347:                                              ; preds = %343, %341
  %348 = call zeroext i1 @read_bytes(ptr noundef nonnull %3, i64 noundef 1, ptr noundef %19)
  br i1 %348, label %353, label %349

349:                                              ; preds = %347
  %350 = tail call ptr @__errno_location() #10
  %351 = load i32, ptr %350, align 4, !tbaa !18
  %352 = call ptr @strerror(i32 noundef %351) #9
  call void @error_and_exit(ptr noundef %352)
  br label %353

353:                                              ; preds = %349, %347
  %354 = call zeroext i1 @read_bytes(ptr noundef nonnull %4, i64 noundef 1, ptr noundef %19)
  br i1 %354, label %359, label %355

355:                                              ; preds = %353
  %356 = tail call ptr @__errno_location() #10
  %357 = load i32, ptr %356, align 4, !tbaa !18
  %358 = call ptr @strerror(i32 noundef %357) #9
  call void @error_and_exit(ptr noundef %358)
  br label %359

359:                                              ; preds = %355, %353
  %360 = load i16, ptr %2, align 2, !tbaa !5
  %361 = zext i16 %360 to i32
  %362 = load i8, ptr %3, align 1, !tbaa !9
  %363 = zext i8 %362 to i32
  %364 = load i8, ptr %4, align 1, !tbaa !9
  %365 = zext i8 %364 to i32
  %366 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43, i32 noundef %361, i32 noundef %363, i32 noundef %365)
  br label %414

367:                                              ; preds = %338
  %368 = sext i8 %339 to i32
  %369 = load i32, ptr %287, align 4, !tbaa !9
  %370 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44, i32 noundef %368, i32 noundef %369)
  %371 = load i32, ptr %287, align 4, !tbaa !9
  %372 = add i32 %371, -1
  store i32 %372, ptr %287, align 4, !tbaa !9
  %.not4043 = icmp eq i32 %371, 0
  br i1 %.not4043, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %367, %.lr.ph
  %373 = call zeroext i1 @read_bytes(ptr noundef nonnull %17, i64 noundef 1, ptr noundef %19)
  %374 = load i8, ptr %17, align 1, !tbaa !9
  %375 = sext i8 %374 to i32
  %376 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45, i32 noundef %375)
  %377 = load i32, ptr %287, align 4, !tbaa !9
  %378 = add i32 %377, -1
  store i32 %378, ptr %287, align 4, !tbaa !9
  %.not40 = icmp eq i32 %377, 0
  br i1 %.not40, label %._crit_edge, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph, %367
  %379 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46)
  br label %414

380:                                              ; preds = %294
  %381 = load float, ptr %286, align 8, !tbaa !9
  %382 = fpext float %381 to double
  %383 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47, double noundef %382)
  br label %414

384:                                              ; preds = %294
  %385 = load double, ptr %286, align 8, !tbaa !9
  %386 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48, double noundef %385)
  br label %414

387:                                              ; preds = %294
  %388 = load i16, ptr %286, align 8, !tbaa !9
  %389 = zext i16 %388 to i32
  %390 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, i32 noundef %389)
  br label %414

391:                                              ; preds = %294
  %392 = load i32, ptr %286, align 8, !tbaa !9
  %393 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, i32 noundef %392)
  br label %414

394:                                              ; preds = %294
  %395 = load i64, ptr %286, align 8, !tbaa !9
  %396 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49, i64 noundef %395)
  br label %414

397:                                              ; preds = %294, %294
  %398 = load i8, ptr %286, align 8, !tbaa !9
  %399 = sext i8 %398 to i32
  %400 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, i32 noundef %399)
  br label %414

401:                                              ; preds = %294
  %402 = load i16, ptr %286, align 8, !tbaa !9
  %403 = sext i16 %402 to i32
  %404 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, i32 noundef %403)
  br label %414

405:                                              ; preds = %294
  %406 = load i32, ptr %286, align 8, !tbaa !9
  %407 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, i32 noundef %406)
  br label %414

408:                                              ; preds = %294
  %409 = load i64, ptr %286, align 8, !tbaa !9
  %410 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i64 noundef %409)
  br label %414

411:                                              ; preds = %294
  %412 = zext i8 %295 to i32
  %413 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52, i32 noundef %412)
  br label %414

414:                                              ; preds = %296, %300, %303, %314, %327, %329, %380, %384, %387, %391, %394, %397, %401, %405, %408, %411, %336, %334, %._crit_edge, %359
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  br label %288

415:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  %416 = call i32 @fclose(ptr noundef %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #9
  ret i32 0
}

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @file_reader(ptr noundef, ptr noundef, i64 noundef) #0

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

declare zeroext i1 @cmp_write_array(ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @cmp_strerror(ptr noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_sint(ptr noundef, i64 noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_uint(ptr noundef, i64 noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_float(ptr noundef, float noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_double(ptr noundef, double noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_nil(ptr noundef) local_unnamed_addr #4

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

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

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

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

declare zeroext i1 @cmp_write_map(ptr noundef, i32 noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_str(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_str_marker(ptr noundef, i32 noundef) local_unnamed_addr #4

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

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

declare zeroext i1 @cmp_write_bin(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_bin_marker(ptr noundef, i32 noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_write_ext_marker(ptr noundef, i8 noundef signext, i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare void @rewind(ptr nocapture noundef) local_unnamed_addr #1

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

declare zeroext i1 @cmp_read_sinteger(ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_read_uinteger(ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_read_float(ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_read_double(ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_read_nil(ptr noundef) local_unnamed_addr #4

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

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

declare zeroext i1 @cmp_read_map(ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_read_str_size(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @read_bytes(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #7

declare zeroext i1 @cmp_read_str(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_read_bin(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @cmp_read_ext_marker(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @feof(ptr nocapture noundef) local_unnamed_addr #1

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #8

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #8 = { nofree nounwind willreturn memory(argmem: read) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { cold nounwind }
attributes #12 = { nounwind willreturn memory(read) }

!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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !23, i64 0}
!23 = !{!"any pointer", !7, i64 0}
!24 = !{!25, !7, i64 0}
!25 = !{!"cmp_object_s", !7, i64 0, !7, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass