; LLVM IR from humz2k/sugaryc :: ext/bdwgc/cord/tests (de)

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

@dis_line = external dso_local global i32, align 4
@need_redisplay = external dso_local global i32, align 4
@line = external dso_local global i32, align 4
@col = external dso_local global i32, align 4
@file_pos = external dso_local global i64, align 8
@stderr = external global ptr, align 8
@repeat_count = external dso_local global i32, align 4
@locate_mode = external dso_local global i32, align 4
@locate_string = external dso_local global ptr, align 8
@current = external dso_local global ptr, align 8
@LINES = external global i32, align 4
@dis_granularity = external dso_local global i32, align 4
@current_len = external dso_local global i64, align 8
@arg_file_name = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @beep() #0

; Function Attrs: nounwind uwtable
define dso_local void @do_command(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = icmp eq i32 %11, 13
  br i1 %12, label %13, label %14

13:                                               ; preds = %1
  store i32 10, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %13, %1
  %15 = load i32, ptr @locate_mode, align 4, !tbaa !5
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %68

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 12
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  store i32 0, ptr @locate_mode, align 4, !tbaa !5
  store ptr null, ptr @locate_string, align 8, !tbaa !9
  store i32 1, ptr %7, align 4
  br label %67

21:                                               ; preds = %17
  %22 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = trunc i32 %23 to i8
  %25 = call ptr @CORD_cat_char(ptr noundef %22, i8 noundef signext %24)
  store ptr %25, ptr @locate_string, align 8, !tbaa !9
  %26 = load ptr, ptr @current, align 8, !tbaa !9
  %27 = load i64, ptr @file_pos, align 8, !tbaa !11
  %28 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %29 = call i64 @CORD_len(ptr noundef %28)
  %30 = sub i64 %27, %29
  %31 = add i64 %30, 1
  %32 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %33 = call i64 @CORD_str(ptr noundef %26, i64 noundef %31, ptr noundef %32)
  store i64 %33, ptr %6, align 8, !tbaa !11
  %34 = load i64, ptr %6, align 8, !tbaa !11
  %35 = icmp ne i64 %34, -1
  br i1 %35, label %36, label %59

36:                                               ; preds = %21
  store i32 -1, ptr @need_redisplay, align 4, !tbaa !5
  %37 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %38 = call i64 @CORD_len(ptr noundef %37)
  %39 = load i64, ptr %6, align 8, !tbaa !11
  %40 = add i64 %39, %38
  store i64 %40, ptr %6, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %49, %36
  %42 = load i32, ptr @line, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  %44 = call i64 @line_pos(i32 noundef %43, ptr noundef null)
  store i64 %44, ptr @file_pos, align 8, !tbaa !11
  %45 = load i64, ptr @file_pos, align 8, !tbaa !11
  %46 = load i64, ptr %6, align 8, !tbaa !11
  %47 = icmp ugt i64 %45, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %41
  br label %52

49:                                               ; preds = %41
  %50 = load i32, ptr @line, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr @line, align 4, !tbaa !5
  br label %41

52:                                               ; preds = %48
  %53 = load i64, ptr %6, align 8, !tbaa !11
  %54 = load i32, ptr @line, align 4, !tbaa !5
  %55 = call i64 @line_pos(i32 noundef %54, ptr noundef null)
  %56 = sub i64 %53, %55
  %57 = trunc i64 %56 to i32
  store i32 %57, ptr @col, align 4, !tbaa !5
  %58 = load i64, ptr %6, align 8, !tbaa !11
  store i64 %58, ptr @file_pos, align 8, !tbaa !11
  call void @fix_cursor()
  br label %66

59:                                               ; preds = %21
  %60 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %61 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %62 = call i64 @CORD_len(ptr noundef %61)
  %63 = sub i64 %62, 1
  %64 = call ptr @CORD_substr(ptr noundef %60, i64 noundef 0, i64 noundef %63)
  store ptr %64, ptr @locate_string, align 8, !tbaa !9
  %65 = call i32 @beep()
  br label %66

66:                                               ; preds = %59, %52
  store i32 1, ptr %7, align 4
  br label %67

67:                                               ; preds = %66, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %264

68:                                               ; preds = %14
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = icmp eq i32 %69, 18
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  store i32 -2, ptr @repeat_count, align 4, !tbaa !5
  store i32 1, ptr %7, align 4
  br label %264

72:                                               ; preds = %68
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = icmp slt i32 %73, 256
  br i1 %74, label %75, label %102

75:                                               ; preds = %72
  %76 = call ptr @__ctype_b_loc() #6
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i16, ptr %77, i64 %79
  %81 = load i16, ptr %80, align 2, !tbaa !13
  %82 = zext i16 %81 to i32
  %83 = and i32 %82, 2048
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %102

85:                                               ; preds = %75
  %86 = load i32, ptr @repeat_count, align 4, !tbaa !5
  %87 = icmp eq i32 %86, -2
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = sub nsw i32 %89, 48
  store i32 %90, ptr @repeat_count, align 4, !tbaa !5
  store i32 1, ptr %7, align 4
  br label %264

91:                                               ; preds = %85
  %92 = load i32, ptr @repeat_count, align 4, !tbaa !5
  %93 = icmp ne i32 %92, -1
  br i1 %93, label %94, label %100

94:                                               ; preds = %91
  %95 = load i32, ptr @repeat_count, align 4, !tbaa !5
  %96 = mul nsw i32 10, %95
  %97 = load i32, ptr %2, align 4, !tbaa !5
  %98 = add nsw i32 %96, %97
  %99 = sub nsw i32 %98, 48
  store i32 %99, ptr @repeat_count, align 4, !tbaa !5
  store i32 1, ptr %7, align 4
  br label %264

100:                                              ; preds = %91
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101, %75, %72
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr @repeat_count, align 4, !tbaa !5
  %105 = icmp eq i32 %104, -1
  br i1 %105, label %106, label %107

106:                                              ; preds = %103
  store i32 1, ptr @repeat_count, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %106, %103
  %108 = load i32, ptr @repeat_count, align 4, !tbaa !5
  %109 = icmp eq i32 %108, -2
  br i1 %109, label %110, label %120

110:                                              ; preds = %107
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = icmp eq i32 %111, 16
  br i1 %112, label %116, label %113

113:                                              ; preds = %110
  %114 = load i32, ptr %2, align 4, !tbaa !5
  %115 = icmp eq i32 %114, 14
  br i1 %115, label %116, label %120

116:                                              ; preds = %113, %110
  %117 = load i32, ptr @LINES, align 4, !tbaa !5
  %118 = load i32, ptr @dis_granularity, align 4, !tbaa !5
  %119 = sub nsw i32 %117, %118
  store i32 %119, ptr @repeat_count, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %116, %113, %107
  %121 = load i32, ptr @repeat_count, align 4, !tbaa !5
  %122 = icmp eq i32 %121, -2
  br i1 %122, label %123, label %124

123:                                              ; preds = %120
  store i32 8, ptr @repeat_count, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %123, %120
  store i32 0, ptr %4, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %256, %124
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = load i32, ptr @repeat_count, align 4, !tbaa !5
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %129, label %259

129:                                              ; preds = %125
  %130 = load i32, ptr %2, align 4, !tbaa !5
  switch i32 %130, label %224 [
    i32 12, label %131
    i32 20, label %132
    i32 16, label %133
    i32 14, label %140
    i32 2, label %143
    i32 6, label %152
    i32 21, label %164
    i32 8, label %165
    i32 127, label %175
    i32 23, label %203
  ]

131:                                              ; preds = %129
  store i32 1, ptr @locate_mode, align 4, !tbaa !5
  br label %255

132:                                              ; preds = %129
  store i32 0, ptr @col, align 4, !tbaa !5
  store i32 0, ptr @line, align 4, !tbaa !5
  store i64 0, ptr @file_pos, align 8, !tbaa !11
  br label %255

133:                                              ; preds = %129
  %134 = load i32, ptr @line, align 4, !tbaa !5
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %139

136:                                              ; preds = %133
  %137 = load i32, ptr @line, align 4, !tbaa !5
  %138 = add nsw i32 %137, -1
  store i32 %138, ptr @line, align 4, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %136, %133
  br label %255

140:                                              ; preds = %129
  %141 = load i32, ptr @line, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr @line, align 4, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %255

143:                                              ; preds = %129
  %144 = load i32, ptr @col, align 4, !tbaa !5
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %151

146:                                              ; preds = %143
  %147 = load i32, ptr @col, align 4, !tbaa !5
  %148 = add nsw i32 %147, -1
  store i32 %148, ptr @col, align 4, !tbaa !5
  %149 = load i64, ptr @file_pos, align 8, !tbaa !11
  %150 = add i64 %149, -1
  store i64 %150, ptr @file_pos, align 8, !tbaa !11
  br label %151

151:                                              ; preds = %146, %143
  br label %255

152:                                              ; preds = %129
  %153 = load ptr, ptr @current, align 8, !tbaa !9
  %154 = load i64, ptr @file_pos, align 8, !tbaa !11
  %155 = call signext i8 @CORD_fetch(ptr noundef %153, i64 noundef %154)
  %156 = sext i8 %155 to i32
  %157 = icmp eq i32 %156, 10
  br i1 %157, label %158, label %159

158:                                              ; preds = %152
  br label %255

159:                                              ; preds = %152
  %160 = load i32, ptr @col, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr @col, align 4, !tbaa !5
  %162 = load i64, ptr @file_pos, align 8, !tbaa !11
  %163 = add i64 %162, 1
  store i64 %163, ptr @file_pos, align 8, !tbaa !11
  br label %255

164:                                              ; preds = %129
  call void @del_hist()
  store i32 -1, ptr @need_redisplay, align 4, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %255

165:                                              ; preds = %129
  %166 = load i32, ptr @col, align 4, !tbaa !5
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %168, label %170

168:                                              ; preds = %165
  %169 = call i32 @beep()
  br label %255

170:                                              ; preds = %165
  %171 = load i32, ptr @col, align 4, !tbaa !5
  %172 = add nsw i32 %171, -1
  store i32 %172, ptr @col, align 4, !tbaa !5
  %173 = load i64, ptr @file_pos, align 8, !tbaa !11
  %174 = add i64 %173, -1
  store i64 %174, ptr @file_pos, align 8, !tbaa !11
  br label %175

175:                                              ; preds = %170, %129
  %176 = load i64, ptr @file_pos, align 8, !tbaa !11
  %177 = load i64, ptr @current_len, align 8, !tbaa !11
  %178 = sub i64 %177, 1
  %179 = icmp eq i64 %176, %178
  br i1 %179, label %180, label %181

180:                                              ; preds = %175
  br label %255

181:                                              ; preds = %175
  %182 = load ptr, ptr @current, align 8, !tbaa !9
  %183 = load i64, ptr @file_pos, align 8, !tbaa !11
  %184 = call signext i8 @CORD_fetch(ptr noundef %182, i64 noundef %183)
  %185 = sext i8 %184 to i32
  %186 = icmp eq i32 %185, 10
  br i1 %186, label %187, label %188

187:                                              ; preds = %181
  store i32 -1, ptr @need_redisplay, align 4, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %192

188:                                              ; preds = %181
  %189 = load i32, ptr @line, align 4, !tbaa !5
  %190 = load i32, ptr @dis_line, align 4, !tbaa !5
  %191 = sub nsw i32 %189, %190
  store i32 %191, ptr @need_redisplay, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %188, %187
  %193 = load ptr, ptr @current, align 8, !tbaa !9
  %194 = load i64, ptr @file_pos, align 8, !tbaa !11
  %195 = call ptr @CORD_substr(ptr noundef %193, i64 noundef 0, i64 noundef %194)
  %196 = load ptr, ptr @current, align 8, !tbaa !9
  %197 = load i64, ptr @file_pos, align 8, !tbaa !11
  %198 = add i64 %197, 1
  %199 = load i64, ptr @current_len, align 8, !tbaa !11
  %200 = call ptr @CORD_substr(ptr noundef %196, i64 noundef %198, i64 noundef %199)
  %201 = call ptr @CORD_cat(ptr noundef %195, ptr noundef %200)
  call void @add_hist(ptr noundef %201)
  %202 = load i32, ptr @line, align 4, !tbaa !5
  call void @invalidate_map(i32 noundef %202)
  br label %255

203:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %204 = load ptr, ptr @arg_file_name, align 8, !tbaa !9
  %205 = call ptr @CORD_from_char_star(ptr noundef %204)
  %206 = call ptr @CORD_cat(ptr noundef %205, ptr noundef @.str)
  store ptr %206, ptr %8, align 8, !tbaa !9
  %207 = load ptr, ptr %8, align 8, !tbaa !9
  %208 = call ptr @CORD_to_const_char_star(ptr noundef %207)
  %209 = call noalias ptr @fopen(ptr noundef %208, ptr noundef @.str.1)
  store ptr %209, ptr %5, align 8, !tbaa !9
  %210 = icmp eq ptr %209, null
  br i1 %210, label %216, label %211

211:                                              ; preds = %203
  %212 = load ptr, ptr @current, align 8, !tbaa !9
  %213 = load ptr, ptr %5, align 8, !tbaa !9
  %214 = call i32 @CORD_put(ptr noundef %212, ptr noundef %213)
  %215 = icmp eq i32 %214, -1
  br i1 %215, label %216, label %220

216:                                              ; preds = %211, %203
  %217 = load ptr, ptr @stderr, align 8, !tbaa !9
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.2) #5
  %219 = call i32 @sleep(i32 noundef 2)
  store i32 -1, ptr @need_redisplay, align 4, !tbaa !5
  br label %223

220:                                              ; preds = %211
  %221 = load ptr, ptr %5, align 8, !tbaa !9
  %222 = call i32 @fclose(ptr noundef %221)
  br label %223

223:                                              ; preds = %220, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %255

224:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %225 = load ptr, ptr @current, align 8, !tbaa !9
  %226 = load i64, ptr @file_pos, align 8, !tbaa !11
  %227 = call ptr @CORD_substr(ptr noundef %225, i64 noundef 0, i64 noundef %226)
  store ptr %227, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %228 = load ptr, ptr @current, align 8, !tbaa !9
  %229 = load i64, ptr @file_pos, align 8, !tbaa !11
  %230 = load i64, ptr @current_len, align 8, !tbaa !11
  %231 = call ptr @CORD_substr(ptr noundef %228, i64 noundef %229, i64 noundef %230)
  store ptr %231, ptr %10, align 8, !tbaa !9
  %232 = load ptr, ptr %9, align 8, !tbaa !9
  %233 = load i32, ptr %2, align 4, !tbaa !5
  %234 = trunc i32 %233 to i8
  %235 = call ptr @CORD_cat_char(ptr noundef %232, i8 noundef signext %234)
  %236 = load ptr, ptr %10, align 8, !tbaa !9
  %237 = call ptr @CORD_cat(ptr noundef %235, ptr noundef %236)
  call void @add_hist(ptr noundef %237)
  %238 = load i32, ptr @line, align 4, !tbaa !5
  call void @invalidate_map(i32 noundef %238)
  %239 = load i32, ptr %2, align 4, !tbaa !5
  %240 = icmp eq i32 %239, 10
  br i1 %240, label %241, label %246

241:                                              ; preds = %224
  store i32 0, ptr @col, align 4, !tbaa !5
  %242 = load i32, ptr @line, align 4, !tbaa !5
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr @line, align 4, !tbaa !5
  %244 = load i64, ptr @file_pos, align 8, !tbaa !11
  %245 = add i64 %244, 1
  store i64 %245, ptr @file_pos, align 8, !tbaa !11
  store i32 -1, ptr @need_redisplay, align 4, !tbaa !5
  br label %254

246:                                              ; preds = %224
  %247 = load i32, ptr @col, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr @col, align 4, !tbaa !5
  %249 = load i64, ptr @file_pos, align 8, !tbaa !11
  %250 = add i64 %249, 1
  store i64 %250, ptr @file_pos, align 8, !tbaa !11
  %251 = load i32, ptr @line, align 4, !tbaa !5
  %252 = load i32, ptr @dis_line, align 4, !tbaa !5
  %253 = sub nsw i32 %251, %252
  store i32 %253, ptr @need_redisplay, align 4, !tbaa !5
  br label %254

254:                                              ; preds = %246, %241
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %255

255:                                              ; preds = %254, %223, %192, %180, %168, %164, %159, %158, %151, %140, %139, %132, %131
  br label %256

256:                                              ; preds = %255
  %257 = load i32, ptr %3, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %3, align 4, !tbaa !5
  br label %125, !llvm.loop !15

259:                                              ; preds = %125
  %260 = load i32, ptr %4, align 4, !tbaa !5
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %263

262:                                              ; preds = %259
  call void @fix_pos()
  br label %263

263:                                              ; preds = %262, %259
  call void @fix_cursor()
  store i32 -1, ptr @repeat_count, align 4, !tbaa !5
  store i32 0, ptr %7, align 4
  br label %264

264:                                              ; preds = %263, %94, %88, %71, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %265 = load i32, ptr %7, align 4
  switch i32 %265, label %267 [
    i32 0, label %266
    i32 1, label %266
  ]

266:                                              ; preds = %264, %264
  ret void

267:                                              ; preds = %264
  unreachable
}

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

declare ptr @CORD_cat_char(ptr noundef, i8 noundef signext) #2

declare i64 @CORD_str(ptr noundef, i64 noundef, ptr noundef) #2

declare i64 @CORD_len(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @fix_cursor() #0

declare ptr @CORD_substr(ptr noundef, i64 noundef, i64 noundef) #2

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #3

declare signext i8 @CORD_fetch(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @del_hist() #0

; Function Attrs: nounwind uwtable
declare hidden void @add_hist(ptr noundef) #0

declare ptr @CORD_cat(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @invalidate_map(i32 noundef) #0

declare ptr @CORD_from_char_star(ptr noundef) #2

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

declare ptr @CORD_to_const_char_star(ptr noundef) #2

declare i32 @CORD_put(ptr noundef, ptr noundef) #2

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

declare i32 @sleep(i32 noundef) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @fix_pos() #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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"

@dis_line = external dso_local local_unnamed_addr global i32, align 4
@need_redisplay = external dso_local local_unnamed_addr global i32, align 4
@line = external dso_local local_unnamed_addr global i32, align 4
@col = external dso_local local_unnamed_addr global i32, align 4
@file_pos = external dso_local local_unnamed_addr global i64, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@repeat_count = external dso_local local_unnamed_addr global i32, align 4
@locate_mode = external dso_local local_unnamed_addr global i32, align 4
@locate_string = external dso_local local_unnamed_addr global ptr, align 8
@current = external dso_local local_unnamed_addr global ptr, align 8
@LINES = external local_unnamed_addr global i32, align 4
@dis_granularity = external dso_local local_unnamed_addr global i32, align 4
@current_len = external dso_local local_unnamed_addr global i64, align 8
@arg_file_name = external dso_local local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @beep() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @do_command(i32 noundef %0) local_unnamed_addr #0 {
  %2 = icmp eq i32 %0, 13
  %spec.store.select = select i1 %2, i32 10, i32 %0
  %3 = load i32, ptr @locate_mode, align 4, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %41, label %4

4:                                                ; preds = %1
  %5 = icmp eq i32 %spec.store.select, 12
  br i1 %5, label %6, label %7

6:                                                ; preds = %4
  store i32 0, ptr @locate_mode, align 4, !tbaa !5
  store ptr null, ptr @locate_string, align 8, !tbaa !9
  br label %173

7:                                                ; preds = %4
  %8 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %9 = trunc i32 %spec.store.select to i8
  %10 = tail call ptr @CORD_cat_char(ptr noundef %8, i8 noundef signext %9) #4
  store ptr %10, ptr @locate_string, align 8, !tbaa !9
  %11 = load ptr, ptr @current, align 8, !tbaa !9
  %12 = load i64, ptr @file_pos, align 8, !tbaa !11
  %13 = tail call i64 @CORD_len(ptr noundef %10) #4
  %14 = add i64 %12, 1
  %15 = sub i64 %14, %13
  %16 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %17 = tail call i64 @CORD_str(ptr noundef %11, i64 noundef %15, ptr noundef %16) #4
  %.not41 = icmp eq i64 %17, -1
  br i1 %.not41, label %35, label %18

18:                                               ; preds = %7
  store i32 -1, ptr @need_redisplay, align 4, !tbaa !5
  %19 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %20 = tail call i64 @CORD_len(ptr noundef %19) #4
  %21 = add i64 %20, %17
  %22 = load i32, ptr @line, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  %24 = tail call i64 @line_pos(i32 noundef %23, ptr noundef null)
  store i64 %24, ptr @file_pos, align 8, !tbaa !11
  %25 = icmp ugt i64 %24, %21
  br i1 %25, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %18, %.lr.ph
  %26 = load i32, ptr @line, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr @line, align 4, !tbaa !5
  %28 = add nsw i32 %26, 2
  %29 = tail call i64 @line_pos(i32 noundef %28, ptr noundef null)
  store i64 %29, ptr @file_pos, align 8, !tbaa !11
  %30 = icmp ugt i64 %29, %21
  br i1 %30, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %18
  %31 = load i32, ptr @line, align 4, !tbaa !5
  %32 = tail call i64 @line_pos(i32 noundef %31, ptr noundef null)
  %33 = sub i64 %21, %32
  %34 = trunc i64 %33 to i32
  store i32 %34, ptr @col, align 4, !tbaa !5
  store i64 %21, ptr @file_pos, align 8, !tbaa !11
  tail call void @fix_cursor()
  br label %173

35:                                               ; preds = %7
  %36 = load ptr, ptr @locate_string, align 8, !tbaa !9
  %37 = tail call i64 @CORD_len(ptr noundef %36) #4
  %38 = add i64 %37, -1
  %39 = tail call ptr @CORD_substr(ptr noundef %36, i64 noundef 0, i64 noundef %38) #4
  store ptr %39, ptr @locate_string, align 8, !tbaa !9
  %40 = tail call i32 @beep()
  br label %173

41:                                               ; preds = %1
  %42 = icmp eq i32 %spec.store.select, 18
  br i1 %42, label %43, label %44

43:                                               ; preds = %41
  store i32 -2, ptr @repeat_count, align 4, !tbaa !5
  br label %173

44:                                               ; preds = %41
  %45 = icmp slt i32 %spec.store.select, 256
  br i1 %45, label %46, label %61

46:                                               ; preds = %44
  %47 = tail call ptr @__ctype_b_loc() #5
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = sext i32 %spec.store.select to i64
  %50 = getelementptr inbounds i16, ptr %48, i64 %49
  %51 = load i16, ptr %50, align 2, !tbaa !13
  %52 = and i16 %51, 2048
  %.not35 = icmp eq i16 %52, 0
  br i1 %.not35, label %61, label %53

53:                                               ; preds = %46
  %54 = load i32, ptr @repeat_count, align 4, !tbaa !5
  switch i32 %54, label %57 [
    i32 -2, label %55
    i32 -1, label %.lr.ph49.sink.split
  ]

55:                                               ; preds = %53
  %56 = add nsw i32 %spec.store.select, -48
  store i32 %56, ptr @repeat_count, align 4, !tbaa !5
  br label %173

57:                                               ; preds = %53
  %58 = mul nsw i32 %54, 10
  %59 = add i32 %spec.store.select, -48
  %60 = add i32 %59, %58
  store i32 %60, ptr @repeat_count, align 4, !tbaa !5
  br label %173

61:                                               ; preds = %44, %46
  %.pr = load i32, ptr @repeat_count, align 4, !tbaa !5
  switch i32 %.pr, label %thread-pre-split43.thread53 [
    i32 -1, label %.lr.ph49.sink.split
    i32 -2, label %62
  ]

62:                                               ; preds = %61
  switch i32 %0, label %.lr.ph49.sink.split [
    i32 16, label %thread-pre-split43
    i32 14, label %thread-pre-split43
  ]

thread-pre-split43:                               ; preds = %62, %62
  %63 = load i32, ptr @LINES, align 4, !tbaa !5
  %64 = load i32, ptr @dis_granularity, align 4, !tbaa !5
  %65 = sub nsw i32 %63, %64
  store i32 %65, ptr @repeat_count, align 4, !tbaa !5
  %66 = icmp eq i32 %65, -2
  br i1 %66, label %.lr.ph49.sink.split, label %thread-pre-split43.thread53

thread-pre-split43.thread53:                      ; preds = %61, %thread-pre-split43
  %67 = phi i32 [ %65, %thread-pre-split43 ], [ %.pr, %61 ]
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph49, label %._crit_edge50.thread

.lr.ph49.sink.split:                              ; preds = %thread-pre-split43, %62, %53, %61
  %.sink55 = phi i32 [ 1, %61 ], [ 1, %53 ], [ 8, %62 ], [ 8, %thread-pre-split43 ]
  store i32 %.sink55, ptr @repeat_count, align 4, !tbaa !5
  br label %.lr.ph49

.lr.ph49:                                         ; preds = %.lr.ph49.sink.split, %thread-pre-split43.thread53
  %69 = trunc i32 %spec.store.select to i8
  %70 = icmp eq i32 %spec.store.select, 10
  br label %71

71:                                               ; preds = %.lr.ph49, %167
  %.047 = phi i32 [ 0, %.lr.ph49 ], [ %168, %167 ]
  %.02646 = phi i32 [ 0, %.lr.ph49 ], [ %.2, %167 ]
  switch i32 %0, label %146 [
    i32 12, label %72
    i32 20, label %73
    i32 16, label %74
    i32 14, label %78
    i32 2, label %81
    i32 6, label %87
    i32 21, label %97
    i32 8, label %98
    i32 127, label %._crit_edge52
    i32 23, label %129
  ]

._crit_edge52:                                    ; preds = %71
  %.pre = load i64, ptr @file_pos, align 8, !tbaa !11
  br label %107

72:                                               ; preds = %71
  store i32 1, ptr @locate_mode, align 4, !tbaa !5
  br label %167

73:                                               ; preds = %71
  store i32 0, ptr @col, align 4, !tbaa !5
  store i32 0, ptr @line, align 4, !tbaa !5
  store i64 0, ptr @file_pos, align 8, !tbaa !11
  br label %167

74:                                               ; preds = %71
  %75 = load i32, ptr @line, align 4, !tbaa !5
  %.not39 = icmp eq i32 %75, 0
  br i1 %.not39, label %167, label %76

76:                                               ; preds = %74
  %77 = add nsw i32 %75, -1
  store i32 %77, ptr @line, align 4, !tbaa !5
  br label %167

78:                                               ; preds = %71
  %79 = load i32, ptr @line, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr @line, align 4, !tbaa !5
  br label %167

81:                                               ; preds = %71
  %82 = load i32, ptr @col, align 4, !tbaa !5
  %.not38 = icmp eq i32 %82, 0
  br i1 %.not38, label %167, label %83

83:                                               ; preds = %81
  %84 = add nsw i32 %82, -1
  store i32 %84, ptr @col, align 4, !tbaa !5
  %85 = load i64, ptr @file_pos, align 8, !tbaa !11
  %86 = add i64 %85, -1
  store i64 %86, ptr @file_pos, align 8, !tbaa !11
  br label %167

87:                                               ; preds = %71
  %88 = load ptr, ptr @current, align 8, !tbaa !9
  %89 = load i64, ptr @file_pos, align 8, !tbaa !11
  %90 = tail call signext i8 @CORD_fetch(ptr noundef %88, i64 noundef %89) #4
  %91 = icmp eq i8 %90, 10
  br i1 %91, label %167, label %92

92:                                               ; preds = %87
  %93 = load i32, ptr @col, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr @col, align 4, !tbaa !5
  %95 = load i64, ptr @file_pos, align 8, !tbaa !11
  %96 = add i64 %95, 1
  store i64 %96, ptr @file_pos, align 8, !tbaa !11
  br label %167

97:                                               ; preds = %71
  tail call void @del_hist()
  store i32 -1, ptr @need_redisplay, align 4, !tbaa !5
  br label %167

98:                                               ; preds = %71
  %99 = load i32, ptr @col, align 4, !tbaa !5
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %98
  %102 = tail call i32 @beep()
  br label %167

103:                                              ; preds = %98
  %104 = add nsw i32 %99, -1
  store i32 %104, ptr @col, align 4, !tbaa !5
  %105 = load i64, ptr @file_pos, align 8, !tbaa !11
  %106 = add i64 %105, -1
  store i64 %106, ptr @file_pos, align 8, !tbaa !11
  br label %107

107:                                              ; preds = %._crit_edge52, %103
  %108 = phi i64 [ %.pre, %._crit_edge52 ], [ %106, %103 ]
  %109 = load i64, ptr @current_len, align 8, !tbaa !11
  %110 = add i64 %109, -1
  %111 = icmp eq i64 %108, %110
  br i1 %111, label %167, label %112

112:                                              ; preds = %107
  %113 = load ptr, ptr @current, align 8, !tbaa !9
  %114 = tail call signext i8 @CORD_fetch(ptr noundef %113, i64 noundef %108) #4
  %115 = icmp eq i8 %114, 10
  %116 = load i32, ptr @line, align 4
  %117 = load i32, ptr @dis_line, align 4
  %118 = sub nsw i32 %116, %117
  %storemerge = select i1 %115, i32 -1, i32 %118
  %.1 = select i1 %115, i32 1, i32 %.02646
  store i32 %storemerge, ptr @need_redisplay, align 4, !tbaa !5
  %119 = load ptr, ptr @current, align 8, !tbaa !9
  %120 = load i64, ptr @file_pos, align 8, !tbaa !11
  %121 = tail call ptr @CORD_substr(ptr noundef %119, i64 noundef 0, i64 noundef %120) #4
  %122 = load ptr, ptr @current, align 8, !tbaa !9
  %123 = load i64, ptr @file_pos, align 8, !tbaa !11
  %124 = add i64 %123, 1
  %125 = load i64, ptr @current_len, align 8, !tbaa !11
  %126 = tail call ptr @CORD_substr(ptr noundef %122, i64 noundef %124, i64 noundef %125) #4
  %127 = tail call ptr @CORD_cat(ptr noundef %121, ptr noundef %126) #4
  tail call void @add_hist(ptr noundef %127)
  %128 = load i32, ptr @line, align 4, !tbaa !5
  tail call void @invalidate_map(i32 noundef %128)
  br label %167

129:                                              ; preds = %71
  %130 = load ptr, ptr @arg_file_name, align 8, !tbaa !9
  %131 = tail call ptr @CORD_from_char_star(ptr noundef %130) #4
  %132 = tail call ptr @CORD_cat(ptr noundef %131, ptr noundef nonnull @.str) #4
  %133 = tail call ptr @CORD_to_const_char_star(ptr noundef %132) #4
  %134 = tail call noalias ptr @fopen(ptr noundef %133, ptr noundef nonnull @.str.1)
  %135 = icmp eq ptr %134, null
  br i1 %135, label %140, label %136

136:                                              ; preds = %129
  %137 = load ptr, ptr @current, align 8, !tbaa !9
  %138 = tail call i32 @CORD_put(ptr noundef %137, ptr noundef nonnull %134) #4
  %139 = icmp eq i32 %138, -1
  br i1 %139, label %140, label %144

140:                                              ; preds = %136, %129
  %141 = load ptr, ptr @stderr, align 8, !tbaa !9
  %142 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull @.str.2) #6
  %143 = tail call i32 @sleep(i32 noundef 2) #4
  store i32 -1, ptr @need_redisplay, align 4, !tbaa !5
  br label %167

144:                                              ; preds = %136
  %145 = tail call i32 @fclose(ptr noundef nonnull %134)
  br label %167

146:                                              ; preds = %71
  %147 = load ptr, ptr @current, align 8, !tbaa !9
  %148 = load i64, ptr @file_pos, align 8, !tbaa !11
  %149 = tail call ptr @CORD_substr(ptr noundef %147, i64 noundef 0, i64 noundef %148) #4
  %150 = load ptr, ptr @current, align 8, !tbaa !9
  %151 = load i64, ptr @file_pos, align 8, !tbaa !11
  %152 = load i64, ptr @current_len, align 8, !tbaa !11
  %153 = tail call ptr @CORD_substr(ptr noundef %150, i64 noundef %151, i64 noundef %152) #4
  %154 = tail call ptr @CORD_cat_char(ptr noundef %149, i8 noundef signext %69) #4
  %155 = tail call ptr @CORD_cat(ptr noundef %154, ptr noundef %153) #4
  tail call void @add_hist(ptr noundef %155)
  %156 = load i32, ptr @line, align 4, !tbaa !5
  tail call void @invalidate_map(i32 noundef %156)
  br i1 %70, label %157, label %160

157:                                              ; preds = %146
  %158 = load i32, ptr @line, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr @line, align 4, !tbaa !5
  br label %166

160:                                              ; preds = %146
  %161 = load i32, ptr @col, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  %163 = load i32, ptr @line, align 4, !tbaa !5
  %164 = load i32, ptr @dis_line, align 4, !tbaa !5
  %165 = sub nsw i32 %163, %164
  br label %166

166:                                              ; preds = %160, %157
  %.sink51 = phi i32 [ 0, %157 ], [ %162, %160 ]
  %storemerge40 = phi i32 [ -1, %157 ], [ %165, %160 ]
  %.sink.in = load i64, ptr @file_pos, align 8, !tbaa !11
  %.sink = add i64 %.sink.in, 1
  store i32 %.sink51, ptr @col, align 4
  store i64 %.sink, ptr @file_pos, align 8
  store i32 %storemerge40, ptr @need_redisplay, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %140, %144, %72, %73, %78, %92, %97, %101, %112, %166, %76, %74, %83, %81, %87, %107
  %.2 = phi i32 [ %.02646, %166 ], [ %.02646, %107 ], [ %.1, %112 ], [ %.02646, %101 ], [ 1, %97 ], [ %.02646, %87 ], [ %.02646, %92 ], [ %.02646, %83 ], [ %.02646, %81 ], [ 1, %78 ], [ 1, %76 ], [ %.02646, %74 ], [ %.02646, %73 ], [ %.02646, %72 ], [ %.02646, %144 ], [ %.02646, %140 ]
  %168 = add nuw nsw i32 %.047, 1
  %169 = load i32, ptr @repeat_count, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %71, label %._crit_edge50, !llvm.loop !15

._crit_edge50:                                    ; preds = %167
  %171 = icmp eq i32 %.2, 0
  br i1 %171, label %._crit_edge50.thread, label %172

172:                                              ; preds = %._crit_edge50
  tail call void @fix_pos()
  br label %._crit_edge50.thread

._crit_edge50.thread:                             ; preds = %thread-pre-split43.thread53, %172, %._crit_edge50
  tail call void @fix_cursor()
  store i32 -1, ptr @repeat_count, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %6, %35, %._crit_edge, %._crit_edge50.thread, %57, %55, %43
  ret void
}

declare ptr @CORD_cat_char(ptr noundef, i8 noundef signext) local_unnamed_addr #1

declare i64 @CORD_str(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare i64 @CORD_len(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden void @fix_cursor() local_unnamed_addr #0

declare ptr @CORD_substr(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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

declare signext i8 @CORD_fetch(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @del_hist() local_unnamed_addr #0

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

declare ptr @CORD_cat(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @invalidate_map(i32 noundef) local_unnamed_addr #0

declare ptr @CORD_from_char_star(ptr noundef) local_unnamed_addr #1

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

declare ptr @CORD_to_const_char_star(ptr noundef) local_unnamed_addr #1

declare i32 @CORD_put(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @sleep(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden void @fix_pos() local_unnamed_addr #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass