; LLVM IR from JessonYue/LeetCodeLearning :: Array/wuchao/other/9-5 dns解析 (DnsParser)

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

@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @parseType(i16 noundef zeroext) #4

; Function Attrs: nounwind uwtable
declare dso_local ptr @parseClass(i16 noundef zeroext) #4

; Function Attrs: nounwind uwtable
define dso_local i64 @parseQuestions(i32 noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %struct.Question, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store ptr %5, ptr %6, align 8, !tbaa !9
  %13 = load ptr, ptr %6, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 16, i1 false)
  %14 = call noalias ptr @malloc(i64 noundef 1) #7
  %15 = load ptr, ptr %6, align 8, !tbaa !9
  %16 = getelementptr inbounds %struct.Question, ptr %15, i32 0, i32 0
  store ptr %14, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %17 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %17, ptr %8, align 8, !tbaa !9
  br label %18

18:                                               ; preds = %74, %2
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %7, align 4, !tbaa !5
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = icmp slt i32 %19, %21
  br i1 %22, label %23, label %105

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %24 = load ptr, ptr %8, align 8, !tbaa !9
  %25 = load i8, ptr %24, align 1, !tbaa !14
  %26 = zext i8 %25 to i32
  store i32 %26, ptr %9, align 4, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %27, i32 1
  store ptr %28, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %73, %23
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  %31 = load i8, ptr %30, align 1, !tbaa !14
  %32 = zext i8 %31 to i32
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %74

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %40, %34
  %36 = load i32, ptr %11, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %11, align 4, !tbaa !5
  %38 = load i32, ptr %9, align 4, !tbaa !5
  %39 = icmp slt i32 %36, %38
  br i1 %39, label %40, label %52

40:                                               ; preds = %35
  %41 = load ptr, ptr %8, align 8, !tbaa !9
  %42 = load i8, ptr %41, align 1, !tbaa !14
  %43 = load ptr, ptr %6, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.Question, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = load i32, ptr %10, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %10, align 4, !tbaa !5
  %48 = sext i32 %46 to i64
  %49 = getelementptr inbounds i8, ptr %45, i64 %48
  store i8 %42, ptr %49, align 1, !tbaa !14
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %50, i32 1
  store ptr %51, ptr %8, align 8, !tbaa !9
  br label %35, !llvm.loop !15

52:                                               ; preds = %35
  %53 = load ptr, ptr %8, align 8, !tbaa !9
  %54 = load i8, ptr %53, align 1, !tbaa !14
  %55 = zext i8 %54 to i32
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %52
  store i32 5, ptr %12, align 4
  br label %71

58:                                               ; preds = %52
  %59 = load ptr, ptr %8, align 8, !tbaa !9
  %60 = load i8, ptr %59, align 1, !tbaa !14
  %61 = zext i8 %60 to i32
  store i32 %61, ptr %9, align 4, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %62, i32 1
  store ptr %63, ptr %8, align 8, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.Question, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = load i32, ptr %10, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %10, align 4, !tbaa !5
  %69 = sext i32 %67 to i64
  %70 = getelementptr inbounds i8, ptr %66, i64 %69
  store i8 46, ptr %70, align 1, !tbaa !14
  store i32 0, ptr %12, align 4
  br label %71

71:                                               ; preds = %58, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %72 = load i32, ptr %12, align 4
  switch i32 %72, label %111 [
    i32 0, label %73
    i32 5, label %74
  ]

73:                                               ; preds = %71
  br label %29, !llvm.loop !17

74:                                               ; preds = %71, %29
  %75 = load ptr, ptr %6, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.Question, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %77)
  %79 = load ptr, ptr %8, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %79, i32 1
  store ptr %80, ptr %8, align 8, !tbaa !9
  %81 = load ptr, ptr %8, align 8, !tbaa !9
  %82 = load i16, ptr %81, align 2, !tbaa !18
  %83 = call zeroext i16 @__bswap_16(i16 noundef zeroext %82)
  %84 = load ptr, ptr %6, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.Question, ptr %84, i32 0, i32 1
  store i16 %83, ptr %85, align 8, !tbaa !19
  %86 = load ptr, ptr %6, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.Question, ptr %86, i32 0, i32 1
  %88 = load i16, ptr %87, align 8, !tbaa !19
  %89 = call ptr @parseType(i16 noundef zeroext %88)
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %89)
  %91 = load ptr, ptr %8, align 8, !tbaa !9
  %92 = getelementptr inbounds i8, ptr %91, i64 2
  store ptr %92, ptr %8, align 8, !tbaa !9
  %93 = load ptr, ptr %8, align 8, !tbaa !9
  %94 = load i16, ptr %93, align 2, !tbaa !18
  %95 = call zeroext i16 @__bswap_16(i16 noundef zeroext %94)
  %96 = load ptr, ptr %6, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.Question, ptr %96, i32 0, i32 2
  store i16 %95, ptr %97, align 2, !tbaa !20
  %98 = load ptr, ptr %6, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.Question, ptr %98, i32 0, i32 2
  %100 = load i16, ptr %99, align 2, !tbaa !20
  %101 = call ptr @parseClass(i16 noundef zeroext %100)
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %101)
  %103 = load ptr, ptr %8, align 8, !tbaa !9
  %104 = getelementptr inbounds i8, ptr %103, i64 2
  store ptr %104, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %18, !llvm.loop !21

105:                                              ; preds = %18
  %106 = load ptr, ptr %8, align 8, !tbaa !9
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  %108 = ptrtoint ptr %106 to i64
  %109 = ptrtoint ptr %107 to i64
  %110 = sub i64 %108, %109
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  ret i64 %110

111:                                              ; preds = %71
  unreachable
}

declare i32 @printf(ptr noundef, ...) #5

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


; 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.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @parseType(i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @parseClass(i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i64 @parseQuestions(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = tail call noalias dereferenceable_or_null(1) ptr @malloc(i64 noundef 1) #4
  %4 = ptrtoint ptr %3 to i64
  %5 = icmp sgt i32 %0, 0
  br i1 %5, label %.lr.ph62.preheader, label %._crit_edge63

.lr.ph62.preheader:                               ; preds = %2
  %6 = getelementptr i8, ptr %3, i64 32
  %7 = getelementptr i8, ptr %3, i64 64
  %8 = getelementptr i8, ptr %3, i64 96
  %9 = getelementptr i8, ptr %3, i64 128
  %10 = getelementptr i8, ptr %3, i64 160
  %11 = getelementptr i8, ptr %3, i64 192
  %invariant.gep = getelementptr i8, ptr %3, i64 1
  %invariant.gep91 = getelementptr i8, ptr %3, i64 2
  %invariant.gep93 = getelementptr i8, ptr %3, i64 3
  br label %.lr.ph62

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %.thread
  %12 = phi i32 [ %83, %.thread ], [ 1, %.lr.ph62.preheader ]
  %.03560 = phi ptr [ %82, %.thread ], [ %1, %.lr.ph62.preheader ]
  %.13652 = getelementptr inbounds i8, ptr %.03560, i64 1
  %13 = load i8, ptr %.13652, align 1, !tbaa !5
  %.not53 = icmp eq i8 %13, 0
  br i1 %.not53, label %.thread, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.lr.ph62
  %14 = load i8, ptr %.03560, align 1, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge.thread
  %15 = phi i8 [ %70, %._crit_edge.thread ], [ %13, %.preheader.preheader ]
  %.13656 = phi ptr [ %.136, %._crit_edge.thread ], [ %.13652, %.preheader.preheader ]
  %.03355.in = phi i8 [ %66, %._crit_edge.thread ], [ %14, %.preheader.preheader ]
  %.03254 = phi i32 [ %67, %._crit_edge.thread ], [ 0, %.preheader.preheader ]
  %.1365676 = ptrtoint ptr %.13656 to i64
  %.03355 = zext i8 %.03355.in to i32
  %.not65 = icmp eq i8 %.03355.in, 0
  br i1 %.not65, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %16 = sext i32 %.03254 to i64
  %17 = zext i8 %.03355.in to i64
  %min.iters.check = icmp ult i8 %.03355.in, 32
  br i1 %min.iters.check, label %.lr.ph.preheader83, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %18 = add i64 %4, %16
  %19 = sub i64 %18, %.1365676
  %diff.check = icmp ult i64 %19, 32
  br i1 %diff.check, label %.lr.ph.preheader83, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %17, 224
  %ind.end = add nsw i64 %n.vec, %16
  %ind.end77 = trunc nuw nsw i64 %n.vec to i32
  %ind.end79 = getelementptr i8, ptr %.13656, i64 %n.vec
  %20 = getelementptr i8, ptr %.13656, i64 16
  %wide.load = load <16 x i8>, ptr %.13656, align 1, !tbaa !5
  %wide.load82 = load <16 x i8>, ptr %20, align 1, !tbaa !5
  %21 = getelementptr i8, ptr %3, i64 %16
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  store <16 x i8> %wide.load, ptr %21, align 1, !tbaa !5
  store <16 x i8> %wide.load82, ptr %22, align 1, !tbaa !5
  %23 = icmp eq i64 %n.vec, 32
  br i1 %23, label %middle.block, label %vector.body.1, !llvm.loop !8

vector.body.1:                                    ; preds = %vector.ph
  %next.gep.1 = getelementptr i8, ptr %.13656, i64 32
  %24 = getelementptr i8, ptr %.13656, i64 48
  %wide.load.1 = load <16 x i8>, ptr %next.gep.1, align 1, !tbaa !5
  %wide.load82.1 = load <16 x i8>, ptr %24, align 1, !tbaa !5
  %25 = getelementptr i8, ptr %6, i64 %16
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <16 x i8> %wide.load.1, ptr %25, align 1, !tbaa !5
  store <16 x i8> %wide.load82.1, ptr %26, align 1, !tbaa !5
  %27 = icmp eq i64 %n.vec, 64
  br i1 %27, label %middle.block, label %vector.body.2, !llvm.loop !8

vector.body.2:                                    ; preds = %vector.body.1
  %next.gep.2 = getelementptr i8, ptr %.13656, i64 64
  %28 = getelementptr i8, ptr %.13656, i64 80
  %wide.load.2 = load <16 x i8>, ptr %next.gep.2, align 1, !tbaa !5
  %wide.load82.2 = load <16 x i8>, ptr %28, align 1, !tbaa !5
  %29 = getelementptr i8, ptr %7, i64 %16
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  store <16 x i8> %wide.load.2, ptr %29, align 1, !tbaa !5
  store <16 x i8> %wide.load82.2, ptr %30, align 1, !tbaa !5
  %31 = icmp eq i64 %n.vec, 96
  br i1 %31, label %middle.block, label %vector.body.3, !llvm.loop !8

vector.body.3:                                    ; preds = %vector.body.2
  %next.gep.3 = getelementptr i8, ptr %.13656, i64 96
  %32 = getelementptr i8, ptr %.13656, i64 112
  %wide.load.3 = load <16 x i8>, ptr %next.gep.3, align 1, !tbaa !5
  %wide.load82.3 = load <16 x i8>, ptr %32, align 1, !tbaa !5
  %33 = getelementptr i8, ptr %8, i64 %16
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  store <16 x i8> %wide.load.3, ptr %33, align 1, !tbaa !5
  store <16 x i8> %wide.load82.3, ptr %34, align 1, !tbaa !5
  %35 = icmp eq i64 %n.vec, 128
  br i1 %35, label %middle.block, label %vector.body.4, !llvm.loop !8

vector.body.4:                                    ; preds = %vector.body.3
  %next.gep.4 = getelementptr i8, ptr %.13656, i64 128
  %36 = getelementptr i8, ptr %.13656, i64 144
  %wide.load.4 = load <16 x i8>, ptr %next.gep.4, align 1, !tbaa !5
  %wide.load82.4 = load <16 x i8>, ptr %36, align 1, !tbaa !5
  %37 = getelementptr i8, ptr %9, i64 %16
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store <16 x i8> %wide.load.4, ptr %37, align 1, !tbaa !5
  store <16 x i8> %wide.load82.4, ptr %38, align 1, !tbaa !5
  %39 = icmp eq i64 %n.vec, 160
  br i1 %39, label %middle.block, label %vector.body.5, !llvm.loop !8

vector.body.5:                                    ; preds = %vector.body.4
  %next.gep.5 = getelementptr i8, ptr %.13656, i64 160
  %40 = getelementptr i8, ptr %.13656, i64 176
  %wide.load.5 = load <16 x i8>, ptr %next.gep.5, align 1, !tbaa !5
  %wide.load82.5 = load <16 x i8>, ptr %40, align 1, !tbaa !5
  %41 = getelementptr i8, ptr %10, i64 %16
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  store <16 x i8> %wide.load.5, ptr %41, align 1, !tbaa !5
  store <16 x i8> %wide.load82.5, ptr %42, align 1, !tbaa !5
  %43 = icmp eq i64 %n.vec, 192
  br i1 %43, label %middle.block, label %vector.body.6, !llvm.loop !8

vector.body.6:                                    ; preds = %vector.body.5
  %next.gep.6 = getelementptr i8, ptr %.13656, i64 192
  %44 = getelementptr i8, ptr %.13656, i64 208
  %wide.load.6 = load <16 x i8>, ptr %next.gep.6, align 1, !tbaa !5
  %wide.load82.6 = load <16 x i8>, ptr %44, align 1, !tbaa !5
  %45 = getelementptr i8, ptr %11, i64 %16
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  store <16 x i8> %wide.load.6, ptr %45, align 1, !tbaa !5
  store <16 x i8> %wide.load82.6, ptr %46, align 1, !tbaa !5
  br label %middle.block

middle.block:                                     ; preds = %vector.body.6, %vector.body.5, %vector.body.4, %vector.body.3, %vector.body.2, %vector.body.1, %vector.ph
  %cmp.n = icmp eq i64 %n.vec, %17
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader83

.lr.ph.preheader83:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ %16, %vector.memcheck ], [ %16, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.03149.ph = phi i32 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %ind.end77, %middle.block ]
  %.23747.ph = phi ptr [ %.13656, %vector.memcheck ], [ %.13656, %.lr.ph.preheader ], [ %ind.end79, %middle.block ]
  %47 = sub nsw i32 %.03355, %.03149.ph
  %xtraiter = and i32 %47, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader83, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader83 ]
  %.03149.prol = phi i32 [ %48, %.lr.ph.prol ], [ %.03149.ph, %.lr.ph.preheader83 ]
  %.23747.prol = phi ptr [ %51, %.lr.ph.prol ], [ %.23747.ph, %.lr.ph.preheader83 ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader83 ]
  %48 = add nuw nsw i32 %.03149.prol, 1
  %49 = load i8, ptr %.23747.prol, align 1, !tbaa !5
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %50 = getelementptr inbounds i8, ptr %3, i64 %indvars.iv.prol
  store i8 %49, ptr %50, align 1, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %.23747.prol, i64 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !12

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader83
  %indvars.iv.next.lcssa85.unr = phi i64 [ poison, %.lr.ph.preheader83 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %.lcssa84.unr = phi ptr [ poison, %.lr.ph.preheader83 ], [ %51, %.lr.ph.prol ]
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader83 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %.03149.unr = phi i32 [ %.03149.ph, %.lr.ph.preheader83 ], [ %48, %.lr.ph.prol ]
  %.23747.unr = phi ptr [ %.23747.ph, %.lr.ph.preheader83 ], [ %51, %.lr.ph.prol ]
  %52 = sub nsw i32 %.03149.ph, %.03355
  %53 = icmp ugt i32 %52, -4
  br i1 %53, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %.03149 = phi i32 [ %61, %.lr.ph ], [ %.03149.unr, %.lr.ph.prol.loopexit ]
  %.23747 = phi ptr [ %63, %.lr.ph ], [ %.23747.unr, %.lr.ph.prol.loopexit ]
  %54 = load i8, ptr %.23747, align 1, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %3, i64 %indvars.iv
  store i8 %54, ptr %55, align 1, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %.23747, i64 1
  %57 = load i8, ptr %56, align 1, !tbaa !5
  %gep = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv
  store i8 %57, ptr %gep, align 1, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %.23747, i64 2
  %59 = load i8, ptr %58, align 1, !tbaa !5
  %gep92 = getelementptr i8, ptr %invariant.gep91, i64 %indvars.iv
  store i8 %59, ptr %gep92, align 1, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %.23747, i64 3
  %61 = add nuw nsw i32 %.03149, 4
  %62 = load i8, ptr %60, align 1, !tbaa !5
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %gep94 = getelementptr i8, ptr %invariant.gep93, i64 %indvars.iv
  store i8 %62, ptr %gep94, align 1, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %.23747, i64 4
  %exitcond.not.3 = icmp eq i32 %61, %.03355
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  %indvars.iv.next.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next.lcssa85.unr, %.lr.ph.prol.loopexit ], [ %indvars.iv.next.3, %.lr.ph ]
  %.lcssa = phi ptr [ %ind.end79, %middle.block ], [ %.lcssa84.unr, %.lr.ph.prol.loopexit ], [ %63, %.lr.ph ]
  %64 = trunc nsw i64 %indvars.iv.next.lcssa to i32
  %.pre = load i8, ptr %.lcssa, align 1, !tbaa !5
  %65 = icmp eq i8 %.pre, 0
  br i1 %65, label %.thread, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader, %._crit_edge
  %.1.lcssa73 = phi i32 [ %64, %._crit_edge ], [ %.03254, %.preheader ]
  %.237.lcssa72 = phi ptr [ %.lcssa, %._crit_edge ], [ %.13656, %.preheader ]
  %66 = phi i8 [ %.pre, %._crit_edge ], [ %15, %.preheader ]
  %67 = add nsw i32 %.1.lcssa73, 1
  %68 = sext i32 %.1.lcssa73 to i64
  %69 = getelementptr inbounds i8, ptr %3, i64 %68
  store i8 46, ptr %69, align 1, !tbaa !5
  %.136 = getelementptr inbounds i8, ptr %.237.lcssa72, i64 1
  %70 = load i8, ptr %.136, align 1, !tbaa !5
  %.not = icmp eq i8 %70, 0
  br i1 %.not, label %.thread, label %.preheader

.thread:                                          ; preds = %._crit_edge.thread, %._crit_edge, %.lr.ph62
  %.4 = phi ptr [ %.13652, %.lr.ph62 ], [ %.lcssa, %._crit_edge ], [ %.136, %._crit_edge.thread ]
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %3)
  %72 = getelementptr inbounds i8, ptr %.4, i64 1
  %73 = load i16, ptr %72, align 2, !tbaa !15
  %74 = tail call zeroext i16 @__bswap_16(i16 noundef zeroext %73)
  %75 = tail call ptr @parseType(i16 noundef zeroext %74)
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %75)
  %77 = getelementptr inbounds i8, ptr %.4, i64 3
  %78 = load i16, ptr %77, align 2, !tbaa !15
  %79 = tail call zeroext i16 @__bswap_16(i16 noundef zeroext %78)
  %80 = tail call ptr @parseClass(i16 noundef zeroext %79)
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef %80)
  %82 = getelementptr inbounds i8, ptr %.4, i64 5
  %83 = add nuw i32 %12, 1
  %exitcond69.not = icmp eq i32 %12, %0
  br i1 %exitcond69.not, label %._crit_edge63, label %.lr.ph62, !llvm.loop !17

._crit_edge63:                                    ; preds = %.thread, %2
  %.035.lcssa = phi ptr [ %1, %2 ], [ %82, %.thread ]
  %84 = ptrtoint ptr %.035.lcssa to i64
  %85 = ptrtoint ptr %1 to i64
  %86 = sub i64 %84, %85
  ret i64 %86
}

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

attributes #0 = { 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 #1 = { 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 #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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9, !10, !11}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !9, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !6, i64 0}
!17 = distinct !{!17, !9}


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