; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (parser)

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

@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__.parser_read_list_of_strings = external hidden unnamed_addr constant [28 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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

; 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 ptr @strcpy(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

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

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @parser_read_list_of_strings(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #5 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca [1024 x i8], align 16
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca [2048 x i8], align 16
  %23 = alloca [2048 x i8], align 16
  %24 = alloca [2048 x i8], align 16
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  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 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %45, %6
  %27 = load i32, ptr %14, align 4, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.file_content, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %31 = icmp slt i32 %27, %30
  br i1 %31, label %32, label %43

32:                                               ; preds = %26
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.file_content, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [1024 x i8], ptr %35, i64 %37
  %39 = getelementptr inbounds [1024 x i8], ptr %38, i64 0, i64 0
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = call i32 @strcmp(ptr noundef %39, ptr noundef %40) #7
  %42 = icmp ne i32 %41, 0
  br label %43

43:                                               ; preds = %32, %26
  %44 = phi i1 [ false, %26 ], [ %42, %32 ]
  br i1 %44, label %45, label %48

45:                                               ; preds = %43
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %14, align 4, !tbaa !9
  br label %26, !llvm.loop !14

48:                                               ; preds = %43
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.file_content, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = icmp eq i32 %49, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %48
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %191

55:                                               ; preds = %48
  store i32 0, ptr %15, align 4, !tbaa !9
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.file_content, ptr %56, i32 0, i32 3
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [1024 x i8], ptr %58, i64 %60
  %62 = getelementptr inbounds [1024 x i8], ptr %61, i64 0, i64 0
  store ptr %62, ptr %16, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %70, %55
  %64 = load i32, ptr %15, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %15, align 4, !tbaa !9
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  %67 = call ptr @strchr(ptr noundef %66, i32 noundef 44) #7
  store ptr %67, ptr %17, align 8, !tbaa !5
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 1
  store ptr %69, ptr %16, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %63
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %63, label %73, !llvm.loop !17

73:                                               ; preds = %70
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %74, ptr %75, align 4, !tbaa !9
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = mul i64 %78, 1024
  %80 = call noalias ptr @malloc(i64 noundef %79) #8
  store ptr %80, ptr %19, align 8, !tbaa !5
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = icmp eq ptr %81, null
  br i1 %82, label %83, label %93

83:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = mul i64 %86, 1024
  %88 = trunc i64 %87 to i32
  store i32 %88, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #6
  %89 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %90 = load i32, ptr %21, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %89, ptr noundef @.str.11, ptr noundef @.str.28, i32 noundef %90)
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %91, ptr noundef @.str.4, ptr noundef @__func__.parser_read_list_of_strings, i32 noundef 604, ptr noundef %92)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #6
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %191

93:                                               ; preds = %73
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %94, ptr %95, align 8, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !9
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.file_content, ptr %96, i32 0, i32 3
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [1024 x i8], ptr %98, i64 %100
  %102 = getelementptr inbounds [1024 x i8], ptr %101, i64 0, i64 0
  store ptr %102, ptr %16, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %146, %93
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %15, align 4, !tbaa !9
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = call ptr @strchr(ptr noundef %106, i32 noundef 44) #7
  store ptr %107, ptr %17, align 8, !tbaa !5
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %114

110:                                              ; preds = %103
  %111 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = call ptr @strcpy(ptr noundef %111, ptr noundef %112) #6
  br label %129

114:                                              ; preds = %103
  %115 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = ptrtoint ptr %117 to i64
  %120 = ptrtoint ptr %118 to i64
  %121 = sub i64 %119, %120
  %122 = call ptr @strncpy(ptr noundef %115, ptr noundef %116, i64 noundef %121) #6
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = load ptr, ptr %16, align 8, !tbaa !5
  %125 = ptrtoint ptr %123 to i64
  %126 = ptrtoint ptr %124 to i64
  %127 = sub i64 %125, %126
  %128 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 %127
  store i8 0, ptr %128, align 1, !tbaa !18
  br label %129

129:                                              ; preds = %114, %110
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = load i32, ptr %15, align 4, !tbaa !9
  %132 = sub nsw i32 %131, 1
  %133 = mul nsw i32 %132, 1024
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %130, i64 %134
  %136 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %137 = call ptr @strcpy(ptr noundef %135, ptr noundef %136) #6
  %138 = load ptr, ptr %19, align 8, !tbaa !5
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = mul nsw i32 %139, 1024
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %138, i64 %141
  %143 = getelementptr inbounds i8, ptr %142, i64 -1
  store i8 10, ptr %143, align 1, !tbaa !18
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 1
  store ptr %145, ptr %16, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %129
  %147 = load ptr, ptr %17, align 8, !tbaa !5
  %148 = icmp ne ptr %147, null
  br i1 %148, label %103, label %149, !llvm.loop !19

149:                                              ; preds = %146
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 1, ptr %150, align 4, !tbaa !9
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.file_content, ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !20
  %154 = load i32, ptr %14, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i16, ptr %153, i64 %155
  store i16 1, ptr %156, align 2, !tbaa !21
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %15, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %187, %149
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.file_content, ptr %161, i32 0, i32 1
  %163 = load i32, ptr %162, align 8, !tbaa !11
  %164 = icmp slt i32 %160, %163
  br i1 %164, label %165, label %190

165:                                              ; preds = %159
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.file_content, ptr %166, i32 0, i32 2
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [1024 x i8], ptr %168, i64 %170
  %172 = getelementptr inbounds [1024 x i8], ptr %171, i64 0, i64 0
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = call i32 @strcmp(ptr noundef %172, ptr noundef %173) #7
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %186

176:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #6
  %177 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.file_content, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !23
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %177, ptr noundef @.str.24, ptr noundef %178, ptr noundef %181)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #6
  %182 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %183 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %182, ptr noundef @.str.8, ptr noundef @.str.25, ptr noundef %183)
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %184, ptr noundef @.str.4, ptr noundef @__func__.parser_read_list_of_strings, i32 noundef 635, ptr noundef %185)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #6
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %191

186:                                              ; preds = %165
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %15, align 4, !tbaa !9
  br label %159, !llvm.loop !24

190:                                              ; preds = %159
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %191

191:                                              ; preds = %190, %176, %83, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  %192 = load i32, ptr %7, align 4
  ret i32 %192
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { nounwind allocsize(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 #4 = { 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 #5 = { 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 = { nounwind allocsize(0) }

!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, !10, i64 8}
!12 = !{!"file_content", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = !{!12, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !6, i64 24}
!17 = distinct !{!17, !15}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !15}
!20 = !{!12, !6, i64 32}
!21 = !{!22, !22, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = !{!12, !6, i64 0}
!24 = distinct !{!24, !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.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__.parser_read_list_of_strings = external hidden unnamed_addr constant [28 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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @parser_read_list_of_strings(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr noundef %5) local_unnamed_addr #5 {
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %6
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  %wide.trip.count = zext nneg i32 %12 to i64
  br label %16

16:                                               ; preds = %.lr.ph, %19
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %19 ]
  %17 = getelementptr inbounds [1024 x i8], ptr %15, i64 %indvars.iv
  %18 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) %1) #7
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %.critedge.loopexit, label %19

19:                                               ; preds = %16
  %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 %.loopexit, label %16, !llvm.loop !13

.critedge.loopexit:                               ; preds = %16
  %20 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %6
  %.054.lcssa = phi i32 [ 0, %6 ], [ %20, %.critedge.loopexit ]
  %21 = icmp eq i32 %.054.lcssa, %12
  br i1 %21, label %.loopexit, label %22

22:                                               ; preds = %.critedge
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = zext i32 %.054.lcssa to i64
  %26 = getelementptr inbounds [1024 x i8], ptr %24, i64 %25
  br label %27

27:                                               ; preds = %27, %22
  %.056 = phi i32 [ 0, %22 ], [ %28, %27 ]
  %.055 = phi ptr [ %26, %22 ], [ %30, %27 ]
  %28 = add nuw nsw i32 %.056, 1
  %29 = tail call ptr @strchr(ptr noundef nonnull dereferenceable(1) %.055, i32 noundef 44) #7
  %30 = getelementptr inbounds i8, ptr %29, i64 1
  %.not60 = icmp eq ptr %29, null
  br i1 %.not60, label %31, label %27, !llvm.loop !16

31:                                               ; preds = %27
  store i32 %28, ptr %2, align 4, !tbaa !5
  %32 = zext nneg i32 %28 to i64
  %33 = shl nuw nsw i64 %32, 10
  %34 = tail call noalias ptr @malloc(i64 noundef %33) #8
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %38

36:                                               ; preds = %31
  %37 = shl i32 %28, 10
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.28, i32 noundef %37) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %5, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_read_list_of_strings, i32 noundef 604, ptr noundef nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #6
  br label %.loopexit

38:                                               ; preds = %31
  store ptr %34, ptr %3, align 8, !tbaa !17
  %39 = load ptr, ptr %23, align 8, !tbaa !15
  %40 = getelementptr inbounds [1024 x i8], ptr %39, i64 %25
  %invariant.gep = getelementptr i8, ptr %34, i64 -1
  br label %41

41:                                               ; preds = %52, %38
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %52 ], [ 0, %38 ]
  %.1 = phi ptr [ %57, %52 ], [ %40, %38 ]
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %42 = call ptr @strchr(ptr noundef nonnull dereferenceable(1) %.1, i32 noundef 44) #7
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %41
  %45 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %.1) #6
  br label %52

46:                                               ; preds = %41
  %47 = ptrtoint ptr %42 to i64
  %48 = ptrtoint ptr %.1 to i64
  %49 = sub i64 %47, %48
  %50 = call ptr @strncpy(ptr noundef nonnull %7, ptr noundef %.1, i64 noundef %49) #6
  %51 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %49
  store i8 0, ptr %51, align 1, !tbaa !18
  br label %52

52:                                               ; preds = %46, %44
  %53 = shl nsw i64 %indvars.iv70, 10
  %54 = getelementptr inbounds i8, ptr %34, i64 %53
  %55 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %54, ptr noundef nonnull dereferenceable(1) %7) #6
  %56 = shl nsw i64 %indvars.iv.next71, 10
  %gep = getelementptr i8, ptr %invariant.gep, i64 %56
  store i8 10, ptr %gep, align 1, !tbaa !18
  %57 = getelementptr inbounds i8, ptr %42, i64 1
  br i1 %43, label %58, label %41, !llvm.loop !19

58:                                               ; preds = %52
  store i32 1, ptr %4, align 4, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %0, i64 32
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %61 = getelementptr inbounds i16, ptr %60, i64 %25
  store i16 1, ptr %61, align 2, !tbaa !21
  %62 = load i32, ptr %11, align 8, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %0, i64 16
  br label %64

64:                                               ; preds = %67, %58
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %67 ], [ %25, %58 ]
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %65 = trunc nuw i64 %indvars.iv.next74 to i32
  %66 = icmp sgt i32 %62, %65
  br i1 %66, label %67, label %.loopexit

67:                                               ; preds = %64
  %68 = load ptr, ptr %63, align 8, !tbaa !12
  %69 = getelementptr inbounds [1024 x i8], ptr %68, i64 %indvars.iv.next74
  %70 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %69, ptr noundef nonnull dereferenceable(1) %1) #7
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %64, !llvm.loop !23

72:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #6
  %73 = load ptr, ptr %0, align 8, !tbaa !24
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.24, ptr noundef %1, ptr noundef %73) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.25, ptr noundef nonnull %9) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %5, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_read_list_of_strings, i32 noundef 635, ptr noundef nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #6
  br label %.loopexit

.loopexit:                                        ; preds = %19, %64, %.critedge, %72, %36
  %.0 = phi i32 [ 1, %36 ], [ 1, %72 ], [ 0, %.critedge ], [ 0, %64 ], [ 0, %19 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #6
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: readwrite) "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 allockind("alloc,uninitialized") allocsize(0) memory(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 #4 = { 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 #5 = { 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 = { nounwind allocsize(0) }

!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, !6, i64 8}
!10 = !{!"file_content", !11, i64 0, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !11, i64 24}
!16 = distinct !{!16, !14}
!17 = !{!11, !11, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !14}
!20 = !{!10, !11, i64 32}
!21 = !{!22, !22, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = distinct !{!23, !14}
!24 = !{!10, !11, i64 0}


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