; LLVM IR from lionsoul2014/friso :: src (friso_lexicon)

; 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.string_buffer_entry = type { ptr, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [57 x i8], align 1

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @file_get_line(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @friso_dic_load(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

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

declare i32 @fclose(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @friso_dic_load_from_ifile(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca [1024 x i8], align 16
  %11 = alloca [30 x i8], align 16
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 30, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %18 = call ptr @new_string_buffer_with_opacity(i32 noundef 8)
  store ptr %18, ptr %17, align 8, !tbaa !5
  %19 = load ptr, ptr %17, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  call void @string_buffer_append(ptr noundef %19, ptr noundef %20)
  %21 = load ptr, ptr %17, align 8, !tbaa !5
  call void @string_buffer_append(ptr noundef %21, ptr noundef @.str.7)
  %22 = load ptr, ptr %17, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.string_buffer_entry, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = call noalias ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
  store ptr %25, ptr %9, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %268

27:                                               ; preds = %4
  br label %28

28:                                               ; preds = %264, %140, %46, %39, %27
  %29 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call ptr @file_get_line(ptr noundef %29, ptr noundef %30)
  store ptr %31, ptr %12, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %265

33:                                               ; preds = %28
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 0
  %36 = load i8, ptr %35, align 1, !tbaa !13
  %37 = sext i8 %36 to i32
  %38 = icmp eq i32 %37, 35
  br i1 %38, label %39, label %40

39:                                               ; preds = %33
  br label %28, !llvm.loop !14

40:                                               ; preds = %33
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 0
  %43 = load i8, ptr %42, align 1, !tbaa !13
  %44 = sext i8 %43 to i32
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %40
  br label %28, !llvm.loop !14

47:                                               ; preds = %40
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = call i64 @strlen(ptr noundef %48) #7
  %50 = trunc i64 %49 to i32
  store i32 %50, ptr %13, align 4, !tbaa !9
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = sub i32 %52, 1
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds i8, ptr %51, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !13
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 91
  br i1 %58, label %59, label %264

59:                                               ; preds = %47
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %85, %59
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = icmp ult i32 %61, %62
  br i1 %63, label %64, label %82

64:                                               ; preds = %60
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds i8, ptr %65, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !13
  %70 = sext i8 %69 to i32
  %71 = icmp eq i32 %70, 32
  br i1 %71, label %80, label %72

72:                                               ; preds = %64
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds i8, ptr %73, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !13
  %78 = sext i8 %77 to i32
  %79 = icmp eq i32 %78, 9
  br label %80

80:                                               ; preds = %72, %64
  %81 = phi i1 [ true, %64 ], [ %79, %72 ]
  br label %82

82:                                               ; preds = %80, %60
  %83 = phi i1 [ false, %60 ], [ %81, %80 ]
  br i1 %83, label %84, label %88

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = add i32 %86, 1
  store i32 %87, ptr %14, align 4, !tbaa !9
  br label %60, !llvm.loop !16

88:                                               ; preds = %82
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %127, %88
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = icmp ult i32 %90, %91
  br i1 %92, label %93, label %132

93:                                               ; preds = %89
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %94, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !13
  %99 = sext i8 %98 to i32
  %100 = icmp eq i32 %99, 32
  br i1 %100, label %117, label %101

101:                                              ; preds = %93
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %102, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !13
  %107 = sext i8 %106 to i32
  %108 = icmp eq i32 %107, 9
  br i1 %108, label %117, label %109

109:                                              ; preds = %101
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds i8, ptr %110, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !13
  %115 = sext i8 %114 to i32
  %116 = icmp eq i32 %115, 58
  br i1 %116, label %117, label %118

117:                                              ; preds = %109, %101, %93
  br label %132

118:                                              ; preds = %109
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %119, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !13
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds [30 x i8], ptr %11, i64 0, i64 %125
  store i8 %123, ptr %126, align 1, !tbaa !13
  br label %127

127:                                              ; preds = %118
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = add i32 %128, 1
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = add i32 %130, 1
  store i32 %131, ptr %15, align 4, !tbaa !9
  br label %89, !llvm.loop !17

132:                                              ; preds = %117, %89
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds [30 x i8], ptr %11, i64 0, i64 %134
  store i8 0, ptr %135, align 1, !tbaa !13
  %136 = getelementptr inbounds [30 x i8], ptr %11, i64 0, i64 0
  %137 = call i32 @get_lexicon_type_with_constant(ptr noundef %136)
  store i32 %137, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %16, align 4, !tbaa !9
  %139 = icmp eq i32 %138, -1
  br i1 %139, label %140, label %141

140:                                              ; preds = %132
  br label %28, !llvm.loop !14

141:                                              ; preds = %132
  br label %142

142:                                              ; preds = %247, %160, %153, %141
  %143 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = call ptr @file_get_line(ptr noundef %143, ptr noundef %144)
  store ptr %145, ptr %12, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %263

147:                                              ; preds = %142
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = getelementptr inbounds i8, ptr %148, i64 0
  %150 = load i8, ptr %149, align 1, !tbaa !13
  %151 = sext i8 %150 to i32
  %152 = icmp eq i32 %151, 35
  br i1 %152, label %153, label %154

153:                                              ; preds = %147
  br label %142, !llvm.loop !18

154:                                              ; preds = %147
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %155, i64 0
  %157 = load i8, ptr %156, align 1, !tbaa !13
  %158 = sext i8 %157 to i32
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %154
  br label %142, !llvm.loop !18

161:                                              ; preds = %154
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = call i64 @strlen(ptr noundef %162) #7
  %164 = trunc i64 %163 to i32
  store i32 %164, ptr %13, align 4, !tbaa !9
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = sub i32 %166, 1
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds i8, ptr %165, i64 %168
  %170 = load i8, ptr %169, align 1, !tbaa !13
  %171 = sext i8 %170 to i32
  %172 = icmp eq i32 %171, 93
  br i1 %172, label %173, label %174

173:                                              ; preds = %161
  br label %263

174:                                              ; preds = %161
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %200, %174
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = icmp ult i32 %176, %177
  br i1 %178, label %179, label %197

179:                                              ; preds = %175
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds i8, ptr %180, i64 %182
  %184 = load i8, ptr %183, align 1, !tbaa !13
  %185 = sext i8 %184 to i32
  %186 = icmp eq i32 %185, 32
  br i1 %186, label %195, label %187

187:                                              ; preds = %179
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds i8, ptr %188, i64 %190
  %192 = load i8, ptr %191, align 1, !tbaa !13
  %193 = sext i8 %192 to i32
  %194 = icmp eq i32 %193, 9
  br label %195

195:                                              ; preds = %187, %179
  %196 = phi i1 [ true, %179 ], [ %194, %187 ]
  br label %197

197:                                              ; preds = %195, %175
  %198 = phi i1 [ false, %175 ], [ %196, %195 ]
  br i1 %198, label %199, label %203

199:                                              ; preds = %197
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = add i32 %201, 1
  store i32 %202, ptr %14, align 4, !tbaa !9
  br label %175, !llvm.loop !19

203:                                              ; preds = %197
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %242, %203
  %205 = load i32, ptr %14, align 4, !tbaa !9
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = icmp ult i32 %205, %206
  br i1 %207, label %208, label %247

208:                                              ; preds = %204
  %209 = load ptr, ptr %12, align 8, !tbaa !5
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds i8, ptr %209, i64 %211
  %213 = load i8, ptr %212, align 1, !tbaa !13
  %214 = sext i8 %213 to i32
  %215 = icmp eq i32 %214, 32
  br i1 %215, label %232, label %216

216:                                              ; preds = %208
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds i8, ptr %217, i64 %219
  %221 = load i8, ptr %220, align 1, !tbaa !13
  %222 = sext i8 %221 to i32
  %223 = icmp eq i32 %222, 9
  br i1 %223, label %232, label %224

224:                                              ; preds = %216
  %225 = load ptr, ptr %12, align 8, !tbaa !5
  %226 = load i32, ptr %14, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = getelementptr inbounds i8, ptr %225, i64 %227
  %229 = load i8, ptr %228, align 1, !tbaa !13
  %230 = sext i8 %229 to i32
  %231 = icmp eq i32 %230, 59
  br i1 %231, label %232, label %233

232:                                              ; preds = %224, %216, %208
  br label %247

233:                                              ; preds = %224
  %234 = load ptr, ptr %12, align 8, !tbaa !5
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = getelementptr inbounds i8, ptr %234, i64 %236
  %238 = load i8, ptr %237, align 1, !tbaa !13
  %239 = load i32, ptr %15, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds [30 x i8], ptr %11, i64 0, i64 %240
  store i8 %238, ptr %241, align 1, !tbaa !13
  br label %242

242:                                              ; preds = %233
  %243 = load i32, ptr %14, align 4, !tbaa !9
  %244 = add i32 %243, 1
  store i32 %244, ptr %14, align 4, !tbaa !9
  %245 = load i32, ptr %15, align 4, !tbaa !9
  %246 = add i32 %245, 1
  store i32 %246, ptr %15, align 4, !tbaa !9
  br label %204, !llvm.loop !20

247:                                              ; preds = %232, %204
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds [30 x i8], ptr %11, i64 0, i64 %249
  store i8 0, ptr %250, align 1, !tbaa !13
  %251 = load ptr, ptr %17, align 8, !tbaa !5
  call void @string_buffer_clear(ptr noundef %251)
  %252 = load ptr, ptr %17, align 8, !tbaa !5
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  call void @string_buffer_append(ptr noundef %252, ptr noundef %253)
  %254 = load ptr, ptr %17, align 8, !tbaa !5
  %255 = getelementptr inbounds [30 x i8], ptr %11, i64 0, i64 0
  call void @string_buffer_append(ptr noundef %254, ptr noundef %255)
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = load i32, ptr %16, align 4, !tbaa !9
  %259 = load ptr, ptr %17, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.string_buffer_entry, ptr %259, i32 0, i32 0
  %261 = load ptr, ptr %260, align 8, !tbaa !11
  %262 = load i32, ptr %8, align 4, !tbaa !9
  call void @friso_dic_load(ptr noundef %256, ptr noundef %257, i32 noundef %258, ptr noundef %261, i32 noundef %262)
  br label %142, !llvm.loop !18

263:                                              ; preds = %173, %142
  br label %264

264:                                              ; preds = %263, %47
  br label %28, !llvm.loop !14

265:                                              ; preds = %28
  %266 = load ptr, ptr %9, align 8, !tbaa !5
  %267 = call i32 @fclose(ptr noundef %266)
  br label %276

268:                                              ; preds = %4
  %269 = load ptr, ptr @stderr, align 8, !tbaa !5
  %270 = load ptr, ptr %17, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.string_buffer_entry, ptr %270, i32 0, i32 0
  %272 = load ptr, ptr %271, align 8, !tbaa !11
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %269, ptr noundef @.str.8, ptr noundef %272) #6
  %274 = load ptr, ptr @stderr, align 8, !tbaa !5
  %275 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.6) #6
  br label %276

276:                                              ; preds = %268, %265
  %277 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free_string_buffer(ptr noundef %277)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 30, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void
}

declare ptr @new_string_buffer_with_opacity(i32 noundef) #3

declare void @string_buffer_append(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_lexicon_type_with_constant(ptr noundef) #5

declare void @string_buffer_clear(ptr noundef) #3

declare void @free_string_buffer(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


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

@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [57 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @file_get_line(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @friso_dic_load(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @friso_dic_load_from_ifile(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca [1024 x i8], align 16
  %6 = alloca [30 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 30, ptr nonnull %6) #6
  %7 = tail call ptr @new_string_buffer_with_opacity(i32 noundef 8) #6
  tail call void @string_buffer_append(ptr noundef %7, ptr noundef %2) #6
  tail call void @string_buffer_append(ptr noundef %7, ptr noundef nonnull @.str.7) #6
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = tail call noalias ptr @fopen(ptr noundef %8, ptr noundef nonnull @.str.1)
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %64, label %.preheader90

.preheader90:                                     ; preds = %4
  %10 = call ptr @file_get_line(ptr noundef nonnull %5, ptr noundef nonnull %9)
  %.not86124 = icmp eq ptr %10, null
  br i1 %.not86124, label %._crit_edge126, label %.lr.ph125

.lr.ph125:                                        ; preds = %.preheader90, %.backedge91
  %11 = phi ptr [ %62, %.backedge91 ], [ %10, %.preheader90 ]
  %12 = load i8, ptr %11, align 1, !tbaa !11
  switch i8 %12, label %13 [
    i8 35, label %.backedge91
    i8 0, label %.backedge91
  ]

13:                                               ; preds = %.lr.ph125
  %14 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %11) #7
  %15 = trunc i64 %14 to i32
  %16 = add i64 %14, 4294967295
  %17 = and i64 %16, 4294967295
  %18 = getelementptr inbounds i8, ptr %11, i64 %17
  %19 = load i8, ptr %18, align 1, !tbaa !11
  %20 = icmp eq i8 %19, 91
  br i1 %20, label %.preheader89, label %.backedge91

.preheader89:                                     ; preds = %13
  %.not127 = icmp eq i32 %15, 0
  br i1 %.not127, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader89
  %wide.trip.count = and i64 %14, 4294967295
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.critedge2
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.critedge2 ]
  %21 = getelementptr inbounds i8, ptr %11, i64 %indvars.iv
  %22 = load i8, ptr %21, align 1, !tbaa !11
  switch i8 %22, label %.critedge.loopexit [
    i8 32, label %.critedge2
    i8 9, label %.critedge2
  ]

.critedge2:                                       ; preds = %.lr.ph, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

.critedge.loopexit:                               ; preds = %.lr.ph
  %23 = trunc nuw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader89
  %.076.lcssa = phi i32 [ 0, %.preheader89 ], [ %23, %.critedge.loopexit ]
  %24 = icmp ult i32 %.076.lcssa, %15
  br i1 %24, label %.lr.ph97.preheader, label %._crit_edge

.lr.ph97.preheader:                               ; preds = %.critedge
  %25 = zext i32 %.076.lcssa to i64
  %26 = sub i32 %15, %.076.lcssa
  br label %.lr.ph97

.lr.ph97:                                         ; preds = %.lr.ph97.preheader, %29
  %indvars.iv132 = phi i64 [ %25, %.lr.ph97.preheader ], [ %indvars.iv.next133, %29 ]
  %indvars.iv130 = phi i64 [ 0, %.lr.ph97.preheader ], [ %indvars.iv.next131, %29 ]
  %27 = getelementptr inbounds i8, ptr %11, i64 %indvars.iv132
  %28 = load i8, ptr %27, align 1, !tbaa !11
  switch i8 %28, label %29 [
    i8 32, label %._crit_edge.loopexit.split.loop.exit
    i8 9, label %._crit_edge.loopexit.split.loop.exit
    i8 58, label %._crit_edge.loopexit.split.loop.exit
  ]

29:                                               ; preds = %.lr.ph97
  %30 = getelementptr inbounds [30 x i8], ptr %6, i64 0, i64 %indvars.iv130
  store i8 %28, ptr %30, align 1, !tbaa !11
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next131 to i32
  %exitcond137.not = icmp eq i32 %26, %lftr.wideiv
  br i1 %exitcond137.not, label %._crit_edge, label %.lr.ph97, !llvm.loop !14

._crit_edge.loopexit.split.loop.exit:             ; preds = %.lr.ph97, %.lr.ph97, %.lr.ph97
  %31 = trunc nuw i64 %indvars.iv130 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %.critedge2, %29, %._crit_edge.loopexit.split.loop.exit, %.critedge
  %.0.lcssa = phi i32 [ 0, %.critedge ], [ %31, %._crit_edge.loopexit.split.loop.exit ], [ %26, %29 ], [ 0, %.critedge2 ]
  %32 = zext i32 %.0.lcssa to i64
  %33 = getelementptr inbounds [30 x i8], ptr %6, i64 0, i64 %32
  store i8 0, ptr %33, align 1, !tbaa !11
  %34 = call i32 @get_lexicon_type_with_constant(ptr noundef nonnull %6)
  %35 = icmp eq i32 %34, -1
  br i1 %35, label %.backedge91, label %.preheader88

.preheader88:                                     ; preds = %._crit_edge
  %36 = call ptr @file_get_line(ptr noundef nonnull %5, ptr noundef nonnull %9)
  %.not87121 = icmp eq ptr %36, null
  br i1 %.not87121, label %.backedge91, label %.lr.ph122

.lr.ph122:                                        ; preds = %.preheader88, %.backedge
  %37 = phi ptr [ %61, %.backedge ], [ %36, %.preheader88 ]
  %38 = load i8, ptr %37, align 1, !tbaa !11
  switch i8 %38, label %39 [
    i8 35, label %.backedge
    i8 0, label %.backedge
  ]

39:                                               ; preds = %.lr.ph122
  %40 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %37) #7
  %41 = trunc i64 %40 to i32
  %42 = add i64 %40, 4294967295
  %43 = and i64 %42, 4294967295
  %44 = getelementptr inbounds i8, ptr %37, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = icmp eq i8 %45, 93
  br i1 %46, label %.backedge91, label %.preheader

.preheader:                                       ; preds = %39
  %.not128 = icmp eq i32 %41, 0
  br i1 %.not128, label %.critedge4, label %.lr.ph106.preheader

.lr.ph106.preheader:                              ; preds = %.preheader
  %wide.trip.count141 = and i64 %40, 4294967295
  br label %.lr.ph106

.lr.ph106:                                        ; preds = %.lr.ph106.preheader, %.critedge6
  %indvars.iv138 = phi i64 [ 0, %.lr.ph106.preheader ], [ %indvars.iv.next139, %.critedge6 ]
  %47 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv138
  %48 = load i8, ptr %47, align 1, !tbaa !11
  switch i8 %48, label %.critedge4.loopexit [
    i8 32, label %.critedge6
    i8 9, label %.critedge6
  ]

.critedge6:                                       ; preds = %.lr.ph106, %.lr.ph106
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %._crit_edge113, label %.lr.ph106, !llvm.loop !15

.critedge4.loopexit:                              ; preds = %.lr.ph106
  %49 = trunc nuw i64 %indvars.iv138 to i32
  br label %.critedge4

.critedge4:                                       ; preds = %.critedge4.loopexit, %.preheader
  %.2.lcssa = phi i32 [ 0, %.preheader ], [ %49, %.critedge4.loopexit ]
  %50 = icmp ult i32 %.2.lcssa, %41
  br i1 %50, label %.lr.ph112.preheader, label %._crit_edge113

.lr.ph112.preheader:                              ; preds = %.critedge4
  %51 = zext i32 %.2.lcssa to i64
  %52 = sub i32 %41, %.2.lcssa
  br label %.lr.ph112

.lr.ph112:                                        ; preds = %.lr.ph112.preheader, %55
  %indvars.iv145 = phi i64 [ %51, %.lr.ph112.preheader ], [ %indvars.iv.next146, %55 ]
  %indvars.iv143 = phi i64 [ 0, %.lr.ph112.preheader ], [ %indvars.iv.next144, %55 ]
  %53 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv145
  %54 = load i8, ptr %53, align 1, !tbaa !11
  switch i8 %54, label %55 [
    i8 32, label %._crit_edge113.loopexit.split.loop.exit
    i8 9, label %._crit_edge113.loopexit.split.loop.exit
    i8 59, label %._crit_edge113.loopexit.split.loop.exit
  ]

55:                                               ; preds = %.lr.ph112
  %56 = getelementptr inbounds [30 x i8], ptr %6, i64 0, i64 %indvars.iv143
  store i8 %54, ptr %56, align 1, !tbaa !11
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %lftr.wideiv150 = trunc i64 %indvars.iv.next144 to i32
  %exitcond151.not = icmp eq i32 %52, %lftr.wideiv150
  br i1 %exitcond151.not, label %._crit_edge113, label %.lr.ph112, !llvm.loop !16

._crit_edge113.loopexit.split.loop.exit:          ; preds = %.lr.ph112, %.lr.ph112, %.lr.ph112
  %57 = trunc nuw i64 %indvars.iv143 to i32
  br label %._crit_edge113

._crit_edge113:                                   ; preds = %.critedge6, %55, %._crit_edge113.loopexit.split.loop.exit, %.critedge4
  %.1.lcssa = phi i32 [ 0, %.critedge4 ], [ %57, %._crit_edge113.loopexit.split.loop.exit ], [ %52, %55 ], [ 0, %.critedge6 ]
  %58 = zext i32 %.1.lcssa to i64
  %59 = getelementptr inbounds [30 x i8], ptr %6, i64 0, i64 %58
  store i8 0, ptr %59, align 1, !tbaa !11
  call void @string_buffer_clear(ptr noundef nonnull %7) #6
  call void @string_buffer_append(ptr noundef nonnull %7, ptr noundef %2) #6
  call void @string_buffer_append(ptr noundef nonnull %7, ptr noundef nonnull %6) #6
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  call void @friso_dic_load(ptr noundef %0, ptr noundef %1, i32 noundef %34, ptr noundef %60, i32 noundef %3)
  br label %.backedge

.backedge:                                        ; preds = %._crit_edge113, %.lr.ph122, %.lr.ph122
  %61 = call ptr @file_get_line(ptr noundef nonnull %5, ptr noundef nonnull %9)
  %.not87 = icmp eq ptr %61, null
  br i1 %.not87, label %.backedge91, label %.lr.ph122, !llvm.loop !17

.backedge91:                                      ; preds = %.backedge, %39, %13, %.preheader88, %._crit_edge, %.lr.ph125, %.lr.ph125
  %62 = call ptr @file_get_line(ptr noundef nonnull %5, ptr noundef nonnull %9)
  %.not86 = icmp eq ptr %62, null
  br i1 %.not86, label %._crit_edge126, label %.lr.ph125, !llvm.loop !18

._crit_edge126:                                   ; preds = %.backedge91, %.preheader90
  %63 = call i32 @fclose(ptr noundef nonnull %9)
  br label %70

64:                                               ; preds = %4
  %65 = load ptr, ptr @stderr, align 8, !tbaa !19
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.8, ptr noundef %66) #8
  %68 = load ptr, ptr @stderr, align 8, !tbaa !19
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull @.str.6) #8
  br label %70

70:                                               ; preds = %64, %._crit_edge126
  call void @free_string_buffer(ptr noundef nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 30, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #6
  ret void
}

declare ptr @new_string_buffer_with_opacity(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_lexicon_type_with_constant(ptr noundef) local_unnamed_addr #5

declare void @string_buffer_clear(ptr noundef) local_unnamed_addr #4

declare void @free_string_buffer(ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { "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 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = !{!7, !7, i64 0}


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