; 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_split_entry = type { ptr, i32, ptr, i32, i32 }
%struct.friso_entry = type { ptr, i32 }
%struct.friso_config_struct = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, ptr, ptr, [13 x i8] }

@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [66 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
declare void @free(ptr noundef) #1

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

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

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

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

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

24:                                               ; preds = %5
  br label %25

25:                                               ; preds = %152, %99, %81, %71, %57, %56, %40, %24
  %26 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = call ptr @file_get_line(ptr noundef %26, ptr noundef %27)
  store ptr %28, ptr %14, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %160

30:                                               ; preds = %25
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 0
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = sext i8 %33 to i32
  %35 = icmp eq i32 %34, 35
  br i1 %35, label %36, label %41

36:                                               ; preds = %30
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = call i64 @strlen(ptr noundef %37) #8
  %39 = icmp ugt i64 %38, 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  br label %25, !llvm.loop !12

41:                                               ; preds = %36, %30
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 9
  br i1 %43, label %44, label %66

44:                                               ; preds = %41
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 0
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = sext i8 %47 to i32
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %50, label %57

50:                                               ; preds = %44
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = call i64 @strlen(ptr noundef %51) #8
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = icmp ugt i64 %52, %54
  br i1 %55, label %56, label %57

56:                                               ; preds = %50
  br label %25, !llvm.loop !12

57:                                               ; preds = %50, %44
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.friso_entry, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = call i64 @strlen(ptr noundef %62) #8
  %64 = trunc i64 %63 to i32
  %65 = call ptr @string_copy_heap(ptr noundef %61, i32 noundef %64)
  call void @friso_dic_add(ptr noundef %60, i32 noundef 9, ptr noundef %65, ptr noundef null)
  br label %25, !llvm.loop !12

66:                                               ; preds = %41
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  call void @string_split_reset(ptr noundef %15, ptr noundef @.str.2, ptr noundef %67)
  %68 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %69 = call ptr @string_split_next(ptr noundef %15, ptr noundef %68)
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  br label %25, !llvm.loop !12

72:                                               ; preds = %66
  %73 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %74 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %75 = call i64 @strlen(ptr noundef %74) #8
  %76 = trunc i64 %75 to i32
  %77 = call ptr @string_copy_heap(ptr noundef %73, i32 noundef %76)
  store ptr %77, ptr %16, align 8, !tbaa !5
  %78 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %79 = call ptr @string_split_next(ptr noundef %15, ptr noundef %78)
  %80 = icmp eq ptr %79, null
  br i1 %80, label %81, label %87

81:                                               ; preds = %72
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.friso_entry, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  call void @friso_dic_add(ptr noundef %84, i32 noundef %85, ptr noundef %86, ptr noundef null)
  br label %25, !llvm.loop !12

87:                                               ; preds = %72
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 2
  br i1 %89, label %101, label %90

90:                                               ; preds = %87
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 3
  br i1 %92, label %101, label %93

93:                                               ; preds = %90
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  %95 = call i64 @strlen(ptr noundef %94) #8
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = icmp ugt i64 %95, %97
  br i1 %98, label %99, label %101

99:                                               ; preds = %93
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %100) #7
  br label %25, !llvm.loop !12

101:                                              ; preds = %93, %90, %87
  store ptr null, ptr %18, align 8, !tbaa !5
  %102 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %103 = call i32 @strcmp(ptr noundef %102, ptr noundef @.str.3) #8
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %112

105:                                              ; preds = %101
  %106 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %107 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %108 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %109 = call i64 @strlen(ptr noundef %108) #8
  %110 = trunc i64 %109 to i32
  %111 = call ptr @string_copy(ptr noundef %106, ptr noundef %107, i32 noundef %110)
  store ptr %111, ptr %18, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %105, %101
  store i32 0, ptr %20, align 4, !tbaa !9
  %113 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %114 = call ptr @string_split_next(ptr noundef %15, ptr noundef %113)
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %119

116:                                              ; preds = %112
  %117 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %118 = call i32 @atoi(ptr noundef %117) #8
  store i32 %118, ptr %20, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %116, %112
  store ptr null, ptr %19, align 8, !tbaa !5
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.friso_config_struct, ptr %120, i32 0, i32 4
  %122 = load i16, ptr %121, align 8, !tbaa !16
  %123 = zext i16 %122 to i32
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %152

125:                                              ; preds = %119
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %152

128:                                              ; preds = %125
  %129 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  call void @string_split_reset(ptr noundef %15, ptr noundef @.str.4, ptr noundef %129)
  %130 = call ptr @new_array_list_with_opacity(i32 noundef 5)
  store ptr %130, ptr %19, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %142, %141, %128
  %132 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %133 = call ptr @string_split_next(ptr noundef %15, ptr noundef %132)
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %149

135:                                              ; preds = %131
  %136 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %137 = call i64 @strlen(ptr noundef %136) #8
  %138 = load i32, ptr %10, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = icmp ugt i64 %137, %139
  br i1 %140, label %141, label %142

141:                                              ; preds = %135
  br label %131, !llvm.loop !19

142:                                              ; preds = %135
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  %144 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %145 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %146 = call i64 @strlen(ptr noundef %145) #8
  %147 = trunc i64 %146 to i32
  %148 = call ptr @string_copy_heap(ptr noundef %144, i32 noundef %147)
  call void @array_list_add(ptr noundef %143, ptr noundef %148)
  br label %131, !llvm.loop !19

149:                                              ; preds = %131
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = call ptr @array_list_trim(ptr noundef %150)
  store ptr %151, ptr %19, align 8, !tbaa !5
  br label %152

152:                                              ; preds = %149, %125, %119
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.friso_entry, ptr %153, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !14
  %156 = load i32, ptr %8, align 4, !tbaa !9
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  %159 = load i32, ptr %20, align 4, !tbaa !9
  call void @friso_dic_add_with_fre(ptr noundef %155, i32 noundef %156, ptr noundef %157, ptr noundef %158, i32 noundef %159)
  br label %25, !llvm.loop !12

160:                                              ; preds = %25
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = call i32 @fclose(ptr noundef %161)
  br label %169

163:                                              ; preds = %5
  %164 = load ptr, ptr @stderr, align 8, !tbaa !5
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef @.str.5, ptr noundef %165) #7
  %167 = load ptr, ptr @stderr, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.6) #7
  br label %169

169:                                              ; preds = %163, %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void
}

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

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

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

declare ptr @string_split_next(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #6

declare ptr @new_array_list_with_opacity(i32 noundef) #4

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

declare ptr @array_list_trim(ptr noundef) #4

declare i32 @fclose(ptr noundef) #4

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

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


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

@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [66 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @friso_dic_load(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca [1024 x i8], align 16
  %7 = alloca [512 x i8], align 16
  %8 = alloca %struct.string_split_entry, align 8
  %9 = alloca [512 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %9) #8
  %10 = tail call noalias ptr @fopen(ptr noundef %3, ptr noundef nonnull @.str.1)
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %77, label %.preheader

.preheader:                                       ; preds = %5
  %11 = call ptr @file_get_line(ptr noundef nonnull %6, ptr noundef nonnull %10)
  %.not3946 = icmp eq ptr %11, null
  br i1 %.not3946, label %._crit_edge48, label %.lr.ph47

.lr.ph47:                                         ; preds = %.preheader
  %12 = icmp eq i32 %2, 9
  %13 = zext i32 %4 to i64
  %14 = and i32 %2, -2
  %or.cond = icmp eq i32 %14, 2
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  br label %16

16:                                               ; preds = %.lr.ph47, %.backedge44
  %17 = phi ptr [ %11, %.lr.ph47 ], [ %33, %.backedge44 ]
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %19 = icmp eq i8 %18, 35
  br i1 %19, label %20, label %23

20:                                               ; preds = %16
  %21 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %17) #9
  %22 = icmp ugt i64 %21, 1
  br i1 %22, label %.backedge44, label %.thread

23:                                               ; preds = %16
  br i1 %12, label %24, label %34

.thread:                                          ; preds = %20
  br i1 %12, label %.thread43, label %34

24:                                               ; preds = %23
  %25 = icmp slt i8 %18, 0
  br i1 %25, label %26, label %.thread43

26:                                               ; preds = %24
  %27 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %17) #9
  %28 = icmp ugt i64 %27, %13
  br i1 %28, label %.backedge44, label %.thread43

.thread43:                                        ; preds = %.thread, %26, %24
  %29 = load ptr, ptr %0, align 8, !tbaa !8
  %30 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %17) #9
  %31 = trunc i64 %30 to i32
  %32 = call ptr @string_copy_heap(ptr noundef nonnull %17, i32 noundef %31)
  call void @friso_dic_add(ptr noundef %29, i32 noundef 9, ptr noundef %32, ptr noundef null)
  br label %.backedge44

.backedge44:                                      ; preds = %.thread43, %43, %49, %74, %20, %26, %34
  %33 = call ptr @file_get_line(ptr noundef nonnull %6, ptr noundef nonnull %10)
  %.not39 = icmp eq ptr %33, null
  br i1 %.not39, label %._crit_edge48, label %16, !llvm.loop !12

34:                                               ; preds = %.thread, %23
  call void @string_split_reset(ptr noundef nonnull %8, ptr noundef nonnull @.str.2, ptr noundef nonnull %17) #8
  %35 = call ptr @string_split_next(ptr noundef nonnull %8, ptr noundef nonnull %7) #8
  %36 = icmp eq ptr %35, null
  br i1 %36, label %.backedge44, label %37

37:                                               ; preds = %34
  %38 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #9
  %39 = trunc i64 %38 to i32
  %40 = call ptr @string_copy_heap(ptr noundef nonnull %7, i32 noundef %39)
  %41 = call ptr @string_split_next(ptr noundef nonnull %8, ptr noundef nonnull %7) #8
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %45

43:                                               ; preds = %37
  %44 = load ptr, ptr %0, align 8, !tbaa !8
  call void @friso_dic_add(ptr noundef %44, i32 noundef %2, ptr noundef %40, ptr noundef null)
  br label %.backedge44

45:                                               ; preds = %37
  br i1 %or.cond, label %50, label %46

46:                                               ; preds = %45
  %47 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %40) #9
  %48 = icmp ugt i64 %47, %13
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  call void @free(ptr noundef %40) #8
  br label %.backedge44

50:                                               ; preds = %46, %45
  %51 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  %.not40 = icmp eq i32 %51, 0
  br i1 %.not40, label %56, label %52

52:                                               ; preds = %50
  %53 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #9
  %54 = trunc i64 %53 to i32
  %55 = call ptr @string_copy(ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef %54)
  br label %56

56:                                               ; preds = %52, %50
  %.035 = phi ptr [ %55, %52 ], [ null, %50 ]
  %57 = call ptr @string_split_next(ptr noundef nonnull %8, ptr noundef nonnull %7) #8
  %.not41 = icmp eq ptr %57, null
  br i1 %.not41, label %60, label %58

58:                                               ; preds = %56
  %59 = call i32 @atoi(ptr nocapture noundef %7) #9
  br label %60

60:                                               ; preds = %58, %56
  %.0 = phi i32 [ %59, %58 ], [ 0, %56 ]
  %61 = load i16, ptr %15, align 8, !tbaa !14
  %62 = icmp ne i16 %61, 0
  %63 = icmp ne ptr %.035, null
  %or.cond3 = select i1 %62, i1 %63, i1 false
  br i1 %or.cond3, label %64, label %74

64:                                               ; preds = %60
  call void @string_split_reset(ptr noundef nonnull %8, ptr noundef nonnull @.str.4, ptr noundef nonnull %9) #8
  %65 = call ptr @new_array_list_with_opacity(i32 noundef 5) #8
  %66 = call ptr @string_split_next(ptr noundef nonnull %8, ptr noundef nonnull %7) #8
  %.not4245 = icmp eq ptr %66, null
  br i1 %.not4245, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %64, %.backedge
  %67 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #9
  %68 = icmp ugt i64 %67, %13
  br i1 %68, label %.backedge, label %69

69:                                               ; preds = %.lr.ph
  %70 = trunc nuw i64 %67 to i32
  %71 = call ptr @string_copy_heap(ptr noundef nonnull %7, i32 noundef %70)
  call void @array_list_add(ptr noundef %65, ptr noundef %71) #8
  br label %.backedge

.backedge:                                        ; preds = %69, %.lr.ph
  %72 = call ptr @string_split_next(ptr noundef nonnull %8, ptr noundef nonnull %7) #8
  %.not42 = icmp eq ptr %72, null
  br i1 %.not42, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %.backedge, %64
  %73 = call ptr @array_list_trim(ptr noundef %65) #8
  br label %74

74:                                               ; preds = %._crit_edge, %60
  %.034 = phi ptr [ %73, %._crit_edge ], [ null, %60 ]
  %75 = load ptr, ptr %0, align 8, !tbaa !8
  call void @friso_dic_add_with_fre(ptr noundef %75, i32 noundef %2, ptr noundef %40, ptr noundef %.034, i32 noundef %.0)
  br label %.backedge44

._crit_edge48:                                    ; preds = %.backedge44, %.preheader
  %76 = call i32 @fclose(ptr noundef nonnull %10)
  br label %82

77:                                               ; preds = %5
  %78 = load ptr, ptr @stderr, align 8, !tbaa !18
  %79 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.5, ptr noundef %3) #10
  %80 = load ptr, ptr @stderr, align 8, !tbaa !18
  %81 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.6) #10
  br label %82

82:                                               ; preds = %77, %._crit_edge48
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #8
  ret void
}

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

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

declare void @string_split_reset(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare ptr @string_split_next(ptr noundef, ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #7

declare ptr @new_array_list_with_opacity(i32 noundef) local_unnamed_addr #6

declare void @array_list_add(ptr noundef, ptr noundef) local_unnamed_addr #6

declare ptr @array_list_trim(ptr noundef) local_unnamed_addr #6

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

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

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


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