; LLVM IR from Discngine/fpocket :: src (rpdb)

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

@__const.rpdb_extract_pdb_atom.buf = external hidden unnamed_addr constant [4 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 uwtable
define dso_local void @rpdb_extract_pdb_atom(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16) #1 {
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca i8, align 1
  %38 = alloca [4 x i8], align 1
  store ptr %0, ptr %18, align 8, !tbaa !5
  store ptr %1, ptr %19, align 8, !tbaa !5
  store ptr %2, ptr %20, align 8, !tbaa !5
  store ptr %3, ptr %21, align 8, !tbaa !5
  store ptr %4, ptr %22, align 8, !tbaa !5
  store ptr %5, ptr %23, align 8, !tbaa !5
  store ptr %6, ptr %24, align 8, !tbaa !5
  store ptr %7, ptr %25, align 8, !tbaa !5
  store ptr %8, ptr %26, align 8, !tbaa !5
  store ptr %9, ptr %27, align 8, !tbaa !5
  store ptr %10, ptr %28, align 8, !tbaa !5
  store ptr %11, ptr %29, align 8, !tbaa !5
  store ptr %12, ptr %30, align 8, !tbaa !5
  store ptr %13, ptr %31, align 8, !tbaa !5
  store ptr %14, ptr %32, align 8, !tbaa !5
  store ptr %15, ptr %33, align 8, !tbaa !5
  store ptr %16, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  %40 = call i64 @strlen(ptr noundef %39) #8
  %41 = trunc i64 %40 to i32
  store i32 %41, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #7
  %42 = load ptr, ptr %19, align 8, !tbaa !5
  %43 = load ptr, ptr %18, align 8, !tbaa !5
  %44 = call ptr @strncpy(ptr noundef %42, ptr noundef %43, i64 noundef 6) #7
  %45 = load ptr, ptr %18, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 6
  store ptr %46, ptr %36, align 8, !tbaa !5
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 11
  %49 = load i8, ptr %48, align 1, !tbaa !11
  store i8 %49, ptr %37, align 1, !tbaa !11
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 11
  store i8 0, ptr %51, align 1, !tbaa !11
  %52 = load ptr, ptr %36, align 8, !tbaa !5
  %53 = call i32 @atoi(ptr noundef %52) #8
  %54 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 %53, ptr %54, align 4, !tbaa !9
  %55 = load i8, ptr %37, align 1, !tbaa !11
  %56 = load ptr, ptr %18, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 11
  store i8 %55, ptr %57, align 1, !tbaa !11
  %58 = load ptr, ptr %21, align 8, !tbaa !5
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 12
  %61 = call ptr @strncpy(ptr noundef %58, ptr noundef %60, i64 noundef 4) #7
  %62 = load ptr, ptr %21, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 4
  store i8 0, ptr %63, align 1, !tbaa !11
  %64 = load ptr, ptr %21, align 8, !tbaa !5
  call void @str_trim(ptr noundef %64)
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %67 = load i8, ptr %66, align 1, !tbaa !11
  %68 = load ptr, ptr %22, align 8, !tbaa !5
  store i8 %67, ptr %68, align 1, !tbaa !11
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = load ptr, ptr %23, align 8, !tbaa !5
  call void @rpdb_extract_atm_resname(ptr noundef %69, ptr noundef %70)
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 21
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = load ptr, ptr %24, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 0
  store i8 %73, ptr %75, align 1, !tbaa !11
  %76 = load ptr, ptr %24, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 1
  store i8 0, ptr %77, align 1, !tbaa !11
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 22
  store ptr %79, ptr %36, align 8, !tbaa !5
  %80 = load ptr, ptr %18, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 26
  %82 = load i8, ptr %81, align 1, !tbaa !11
  store i8 %82, ptr %37, align 1, !tbaa !11
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 26
  store i8 0, ptr %84, align 1, !tbaa !11
  %85 = load ptr, ptr %36, align 8, !tbaa !5
  %86 = call i32 @atoi(ptr noundef %85) #8
  %87 = load ptr, ptr %25, align 8, !tbaa !5
  store i32 %86, ptr %87, align 4, !tbaa !9
  %88 = load i8, ptr %37, align 1, !tbaa !11
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 26
  store i8 %88, ptr %90, align 1, !tbaa !11
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 26
  %93 = load i8, ptr %92, align 1, !tbaa !11
  %94 = load ptr, ptr %26, align 8, !tbaa !5
  store i8 %93, ptr %94, align 1, !tbaa !11
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = load ptr, ptr %27, align 8, !tbaa !5
  %97 = load ptr, ptr %28, align 8, !tbaa !5
  %98 = load ptr, ptr %29, align 8, !tbaa !5
  %99 = load ptr, ptr %30, align 8, !tbaa !5
  %100 = load ptr, ptr %31, align 8, !tbaa !5
  call void @rpdb_extract_atom_values(ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef %98, ptr noundef %99, ptr noundef %100)
  %101 = load i32, ptr %35, align 4, !tbaa !9
  %102 = icmp sge i32 %101, 77
  br i1 %102, label %103, label %122

103:                                              ; preds = %17
  %104 = load ptr, ptr %32, align 8, !tbaa !5
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 76
  %107 = call ptr @strncpy(ptr noundef %104, ptr noundef %106, i64 noundef 2) #7
  %108 = load ptr, ptr %32, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 2
  store i8 0, ptr %109, align 1, !tbaa !11
  %110 = load ptr, ptr %32, align 8, !tbaa !5
  call void @str_trim(ptr noundef %110)
  %111 = load ptr, ptr %32, align 8, !tbaa !5
  %112 = call i64 @strlen(ptr noundef %111) #8
  %113 = icmp ult i64 %112, 1
  br i1 %113, label %114, label %121

114:                                              ; preds = %103
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  %116 = load ptr, ptr %32, align 8, !tbaa !5
  %117 = load ptr, ptr %23, align 8, !tbaa !5
  call void @guess_element(ptr noundef %115, ptr noundef %116, ptr noundef %117)
  %118 = load ptr, ptr %34, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %118, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %114, %103
  br label %129

122:                                              ; preds = %17
  %123 = load ptr, ptr %21, align 8, !tbaa !5
  %124 = load ptr, ptr %32, align 8, !tbaa !5
  %125 = load ptr, ptr %23, align 8, !tbaa !5
  call void @guess_element(ptr noundef %123, ptr noundef %124, ptr noundef %125)
  %126 = load ptr, ptr %34, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %126, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %122, %121
  %130 = load ptr, ptr %32, align 8, !tbaa !5
  call void @str_trim(ptr noundef %130)
  %131 = load i32, ptr %35, align 4, !tbaa !9
  %132 = icmp sge i32 %131, 79
  br i1 %132, label %133, label %167

133:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %38, ptr align 1 @__const.rpdb_extract_pdb_atom.buf, i64 4, i1 false)
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 78
  %136 = load i8, ptr %135, align 1, !tbaa !11
  %137 = sext i8 %136 to i32
  %138 = icmp eq i32 %137, 32
  br i1 %138, label %139, label %145

139:                                              ; preds = %133
  %140 = load ptr, ptr %18, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 79
  %142 = load i8, ptr %141, align 1, !tbaa !11
  %143 = sext i8 %142 to i32
  %144 = icmp eq i32 %143, 32
  br i1 %144, label %151, label %145

145:                                              ; preds = %139, %133
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %146, i64 78
  %148 = load i8, ptr %147, align 1, !tbaa !11
  %149 = sext i8 %148 to i32
  %150 = icmp eq i32 %149, 10
  br i1 %150, label %151, label %153

151:                                              ; preds = %145, %139
  %152 = load ptr, ptr %33, align 8, !tbaa !5
  store i32 0, ptr %152, align 4, !tbaa !9
  br label %166

153:                                              ; preds = %145
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %154, i64 78
  %156 = load i8, ptr %155, align 1, !tbaa !11
  %157 = getelementptr inbounds [4 x i8], ptr %38, i64 0, i64 0
  store i8 %156, ptr %157, align 1, !tbaa !11
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %158, i64 79
  %160 = load i8, ptr %159, align 1, !tbaa !11
  %161 = getelementptr inbounds [4 x i8], ptr %38, i64 0, i64 1
  store i8 %160, ptr %161, align 1, !tbaa !11
  %162 = getelementptr inbounds [4 x i8], ptr %38, i64 0, i64 2
  store i8 0, ptr %162, align 1, !tbaa !11
  %163 = getelementptr inbounds [4 x i8], ptr %38, i64 0, i64 0
  %164 = call i32 @atoi(ptr noundef %163) #8
  %165 = load ptr, ptr %33, align 8, !tbaa !5
  store i32 %164, ptr %165, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %153, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %169

167:                                              ; preds = %129
  %168 = load ptr, ptr %33, align 8, !tbaa !5
  store i32 0, ptr %168, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %167, %166
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  ret void
}

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

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

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

declare void @str_trim(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local void @rpdb_extract_atm_resname(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @rpdb_extract_atom_values(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @guess_element(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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


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

@__const.rpdb_extract_pdb_atom.buf = external hidden unnamed_addr constant [4 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: nounwind uwtable
define dso_local void @rpdb_extract_pdb_atom(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2, ptr noundef %3, ptr nocapture noundef writeonly %4, ptr noundef %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef writeonly %7, ptr nocapture noundef writeonly %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr nocapture noundef writeonly %15, ptr nocapture noundef %16) local_unnamed_addr #1 {
  %18 = alloca [4 x i8], align 4
  %19 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #6
  %20 = trunc i64 %19 to i32
  %21 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %0, i64 noundef 6) #7
  %22 = getelementptr inbounds i8, ptr %0, i64 6
  %23 = getelementptr inbounds i8, ptr %0, i64 11
  %24 = load i8, ptr %23, align 1, !tbaa !5
  store i8 0, ptr %23, align 1, !tbaa !5
  %25 = tail call i32 @atoi(ptr nocapture noundef %22) #6
  store i32 %25, ptr %2, align 4, !tbaa !8
  store i8 %24, ptr %23, align 1, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 12
  %27 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %26, i64 noundef 4) #7
  %28 = getelementptr inbounds i8, ptr %3, i64 4
  store i8 0, ptr %28, align 1, !tbaa !5
  tail call void @str_trim(ptr noundef %3) #7
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load i8, ptr %29, align 1, !tbaa !5
  store i8 %30, ptr %4, align 1, !tbaa !5
  tail call void @rpdb_extract_atm_resname(ptr noundef %0, ptr noundef %5)
  %31 = getelementptr inbounds i8, ptr %0, i64 21
  %32 = load i8, ptr %31, align 1, !tbaa !5
  store i8 %32, ptr %6, align 1, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %6, i64 1
  store i8 0, ptr %33, align 1, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %0, i64 22
  %35 = getelementptr inbounds i8, ptr %0, i64 26
  %36 = load i8, ptr %35, align 1, !tbaa !5
  store i8 0, ptr %35, align 1, !tbaa !5
  %37 = tail call i32 @atoi(ptr nocapture noundef %34) #6
  store i32 %37, ptr %7, align 4, !tbaa !8
  store i8 %36, ptr %35, align 1, !tbaa !5
  store i8 %36, ptr %8, align 1, !tbaa !5
  tail call void @rpdb_extract_atom_values(ptr noundef %0, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %38 = icmp sgt i32 %20, 76
  br i1 %38, label %39, label %.thread

39:                                               ; preds = %17
  %40 = getelementptr inbounds i8, ptr %0, i64 76
  %41 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) %40, i64 noundef 2) #7
  %42 = getelementptr inbounds i8, ptr %14, i64 2
  store i8 0, ptr %42, align 1, !tbaa !5
  tail call void @str_trim(ptr noundef %14) #7
  %char0 = load i8, ptr %14, align 1
  %43 = icmp eq i8 %char0, 0
  br i1 %43, label %44, label %49

44:                                               ; preds = %39
  tail call void @guess_element(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %5)
  %45 = load i32, ptr %16, align 4, !tbaa !8
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %16, align 4, !tbaa !8
  br label %49

.thread:                                          ; preds = %17
  tail call void @guess_element(ptr noundef nonnull %3, ptr noundef %14, ptr noundef %5)
  %47 = load i32, ptr %16, align 4, !tbaa !8
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %16, align 4, !tbaa !8
  tail call void @str_trim(ptr noundef %14) #7
  br label %64

49:                                               ; preds = %39, %44
  tail call void @str_trim(ptr noundef nonnull %14) #7
  %50 = icmp ugt i32 %20, 78
  br i1 %50, label %51, label %64

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %52 = load i32, ptr @__const.rpdb_extract_pdb_atom.buf, align 1
  store i32 %52, ptr %18, align 4
  %53 = getelementptr inbounds i8, ptr %0, i64 78
  %54 = load i8, ptr %53, align 1, !tbaa !5
  switch i8 %54, label %..thread59_crit_edge [
    i8 32, label %55
    i8 10, label %63
  ]

..thread59_crit_edge:                             ; preds = %51
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 79
  %.pre = load i8, ptr %.phi.trans.insert, align 1, !tbaa !5
  br label %.thread59

55:                                               ; preds = %51
  %56 = getelementptr inbounds i8, ptr %0, i64 79
  %57 = load i8, ptr %56, align 1, !tbaa !5
  %58 = icmp eq i8 %57, 32
  br i1 %58, label %63, label %.thread59

.thread59:                                        ; preds = %..thread59_crit_edge, %55
  %59 = phi i8 [ %.pre, %..thread59_crit_edge ], [ %57, %55 ]
  store i8 %54, ptr %18, align 4, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %18, i64 1
  store i8 %59, ptr %60, align 1, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %18, i64 2
  store i8 0, ptr %61, align 2, !tbaa !5
  %62 = call i32 @atoi(ptr nocapture noundef %18) #6
  br label %63

63:                                               ; preds = %51, %55, %.thread59
  %storemerge = phi i32 [ %62, %.thread59 ], [ 0, %55 ], [ 0, %51 ]
  store i32 %storemerge, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %65

64:                                               ; preds = %.thread, %49
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %65

65:                                               ; preds = %64, %63
  ret void
}

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

; 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 #3

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

declare void @str_trim(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare dso_local void @rpdb_extract_atm_resname(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @rpdb_extract_atom_values(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @guess_element(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass