; LLVM IR from MostafaTwfiq/C-DataStructures-And-Algorithms :: Unit Test/Tests/DataStructuresTests/GraphsTest/DirectedGraphTest (testDirectedGraphRemoveNode)

; 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.ErrorTestStruct = type { i32 }
%struct.DirectedGraph = type { ptr, ptr, ptr }
%struct.HashMap = type { ptr, i32, i32, i32, ptr, ptr, ptr, ptr }
%struct.Entry = type { ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [163 x i8], align 1
@ERROR_TEST = external dso_local global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @directedGraphTestStrcmp(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateCharPointerDGT(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @charArrHashFunDGT(ptr noundef) #0

declare ptr @directedGraphInitialization(ptr noundef, ptr noundef, ptr noundef) #2

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

declare void @destroyDirGraph(ptr noundef) #2

declare void @dirGraphAddNode(ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
define dso_local void @testDirectedGraphRemoveNode(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [4 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %8 = call ptr @directedGraphInitialization(ptr noundef @free, ptr noundef @directedGraphTestStrcmp, ptr noundef @charArrHashFunDGT)
  store ptr %8, ptr %3, align 8, !tbaa !5
  call void @dirGraphRemoveNode(ptr noundef null, ptr noundef null)
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ErrorTestStruct, ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %9, ptr noundef @.str, i32 noundef 116, ptr noundef null, i32 noundef -83386157, i32 noundef %12)
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  call void @dirGraphRemoveNode(ptr noundef %13, ptr noundef null)
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.ErrorTestStruct, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %14, ptr noundef @.str, i32 noundef 119, ptr noundef null, i32 noundef -83384987, i32 noundef %17)
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call ptr @generateCharPointerDGT(ptr noundef @.str.2)
  call void @dirGraphAddNode(ptr noundef %18, ptr noundef %19)
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = call ptr @generateCharPointerDGT(ptr noundef @.str.3)
  call void @dirGraphAddNode(ptr noundef %20, ptr noundef %21)
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call ptr @generateCharPointerDGT(ptr noundef @.str.4)
  call void @dirGraphAddNode(ptr noundef %22, ptr noundef %23)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = call ptr @generateCharPointerDGT(ptr noundef @.str.5)
  call void @dirGraphAddNode(ptr noundef %24, ptr noundef %25)
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @dirGraphRemoveNode(ptr noundef %26, ptr noundef @.str.5)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  call void @dirGraphRemoveNode(ptr noundef %27, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %28

28:                                               ; preds = %68, %1
  %29 = load i32, ptr %5, align 4, !tbaa !12
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.DirectedGraph, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds %struct.HashMap, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !15
  %35 = icmp slt i32 %29, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %71

37:                                               ; preds = %28
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.DirectedGraph, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = getelementptr inbounds %struct.HashMap, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = load i32, ptr %5, align 4, !tbaa !12
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %42, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %67

48:                                               ; preds = %37
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.DirectedGraph, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = getelementptr inbounds %struct.HashMap, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = load i32, ptr %5, align 4, !tbaa !12
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.Entry, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %60 = load i8, ptr %59, align 1, !tbaa !20
  %61 = sext i8 %60 to i32
  %62 = sub nsw i32 %61, 65
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !12
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !12
  br label %67

67:                                               ; preds = %48, %37
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %5, align 4, !tbaa !12
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %5, align 4, !tbaa !12
  br label %28, !llvm.loop !21

71:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !12
  br label %72

72:                                               ; preds = %82, %71
  %73 = load i32, ptr %6, align 4, !tbaa !12
  %74 = icmp slt i32 %73, 2
  br i1 %74, label %76, label %75

75:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %85

76:                                               ; preds = %72
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = load i32, ptr %6, align 4, !tbaa !12
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %77, ptr noundef @.str, i32 noundef 139, ptr noundef null, i32 noundef 1, i32 noundef %81)
  br label %82

82:                                               ; preds = %76
  %83 = load i32, ptr %6, align 4, !tbaa !12
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %6, align 4, !tbaa !12
  br label %72, !llvm.loop !23

85:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 2, ptr %7, align 4, !tbaa !12
  br label %86

86:                                               ; preds = %96, %85
  %87 = load i32, ptr %7, align 4, !tbaa !12
  %88 = icmp slt i32 %87, 4
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %99

90:                                               ; preds = %86
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !12
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %91, ptr noundef @.str, i32 noundef 142, ptr noundef null, i32 noundef 0, i32 noundef %95)
  br label %96

96:                                               ; preds = %90
  %97 = load i32, ptr %7, align 4, !tbaa !12
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %7, align 4, !tbaa !12
  br label %86, !llvm.loop !24

99:                                               ; preds = %89
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyDirGraph(ptr noundef %100)
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

declare void @dirGraphRemoveNode(ptr noundef, ptr noundef) #2

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"ErrorTestStruct", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"DirectedGraph", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!16, !11, i64 8}
!16 = !{!"HashMap", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!17 = !{!16, !6, i64 0}
!18 = !{!19, !6, i64 0}
!19 = !{!"Entry", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}


; 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 = external hidden unnamed_addr constant [163 x i8], align 1
@ERROR_TEST = external dso_local local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @directedGraphTestStrcmp(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateCharPointerDGT(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @charArrHashFunDGT(ptr noundef) #0

declare ptr @directedGraphInitialization(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) #3

declare void @destroyDirGraph(ptr noundef) local_unnamed_addr #2

declare void @dirGraphAddNode(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
define dso_local void @testDirectedGraphRemoveNode(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [4 x i32], align 16
  %3 = tail call ptr @directedGraphInitialization(ptr noundef nonnull @free, ptr noundef nonnull @directedGraphTestStrcmp, ptr noundef nonnull @charArrHashFunDGT) #5
  tail call void @dirGraphRemoveNode(ptr noundef null, ptr noundef null) #5
  %4 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %5 = load i32, ptr %4, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 116, ptr noundef null, i32 noundef -83386157, i32 noundef %5) #5
  tail call void @dirGraphRemoveNode(ptr noundef %3, ptr noundef null) #5
  %6 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %7 = load i32, ptr %6, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 119, ptr noundef null, i32 noundef -83384987, i32 noundef %7) #5
  %8 = tail call ptr @generateCharPointerDGT(ptr noundef nonnull @.str.2)
  tail call void @dirGraphAddNode(ptr noundef %3, ptr noundef %8) #5
  %9 = tail call ptr @generateCharPointerDGT(ptr noundef nonnull @.str.3)
  tail call void @dirGraphAddNode(ptr noundef %3, ptr noundef %9) #5
  %10 = tail call ptr @generateCharPointerDGT(ptr noundef nonnull @.str.4)
  tail call void @dirGraphAddNode(ptr noundef %3, ptr noundef %10) #5
  %11 = tail call ptr @generateCharPointerDGT(ptr noundef nonnull @.str.5)
  tail call void @dirGraphAddNode(ptr noundef %3, ptr noundef %11) #5
  tail call void @dirGraphRemoveNode(ptr noundef %3, ptr noundef nonnull @.str.5) #5
  tail call void @dirGraphRemoveNode(ptr noundef %3, ptr noundef nonnull @.str.4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, i8 0, i64 16, i1 false)
  %12 = load ptr, ptr %3, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !14
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %.preheader27

.lr.ph:                                           ; preds = %1
  %16 = load ptr, ptr %12, align 8, !tbaa !16
  %wide.trip.count = zext nneg i32 %14 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %17 = icmp eq i32 %14, 1
  br i1 %17, label %.preheader27.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %32

.preheader27.loopexit.unr-lcssa:                  ; preds = %54, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %54 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader27.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader27.loopexit.unr-lcssa
  %18 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.unr
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %.not.epil = icmp eq ptr %19, null
  br i1 %.not.epil, label %.preheader27.loopexit, label %20

20:                                               ; preds = %.epil.preheader
  %21 = load ptr, ptr %19, align 8, !tbaa !17
  %22 = load i8, ptr %21, align 1, !tbaa !19
  %23 = sext i8 %22 to i64
  %24 = add nsw i64 %23, -65
  %25 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !20
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %25, align 4, !tbaa !20
  br label %.preheader27.loopexit

.preheader27.loopexit:                            ; preds = %.epil.preheader, %20, %.preheader27.loopexit.unr-lcssa
  %.pre = load i32, ptr %2, align 16, !tbaa !20
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 4
  %.pre39 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !20
  %.phi.trans.insert40 = getelementptr inbounds i8, ptr %2, i64 8
  %.pre41 = load i32, ptr %.phi.trans.insert40, align 8, !tbaa !20
  %.phi.trans.insert42 = getelementptr inbounds i8, ptr %2, i64 12
  %.pre43 = load i32, ptr %.phi.trans.insert42, align 4, !tbaa !20
  br label %.preheader27

.preheader27:                                     ; preds = %.preheader27.loopexit, %1
  %28 = phi i32 [ %.pre43, %.preheader27.loopexit ], [ 0, %1 ]
  %29 = phi i32 [ %.pre41, %.preheader27.loopexit ], [ 0, %1 ]
  %30 = phi i32 [ %.pre39, %.preheader27.loopexit ], [ 0, %1 ]
  %31 = phi i32 [ %.pre, %.preheader27.loopexit ], [ 0, %1 ]
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 139, ptr noundef null, i32 noundef 1, i32 noundef %31) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 139, ptr noundef null, i32 noundef 1, i32 noundef %30) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 142, ptr noundef null, i32 noundef 0, i32 noundef %29) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 142, ptr noundef null, i32 noundef 0, i32 noundef %28) #5
  tail call void @destroyDirGraph(ptr noundef nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  ret void

32:                                               ; preds = %54, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %54 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %54 ]
  %33 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %.not = icmp eq ptr %34, null
  br i1 %.not, label %43, label %35

35:                                               ; preds = %32
  %36 = load ptr, ptr %34, align 8, !tbaa !17
  %37 = load i8, ptr %36, align 1, !tbaa !19
  %38 = sext i8 %37 to i64
  %39 = add nsw i64 %38, -65
  %40 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !20
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %40, align 4, !tbaa !20
  br label %43

43:                                               ; preds = %32, %35
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %44 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %.not.1 = icmp eq ptr %45, null
  br i1 %.not.1, label %54, label %46

46:                                               ; preds = %43
  %47 = load ptr, ptr %45, align 8, !tbaa !17
  %48 = load i8, ptr %47, align 1, !tbaa !19
  %49 = sext i8 %48 to i64
  %50 = add nsw i64 %49, -65
  %51 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !20
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !20
  br label %54

54:                                               ; preds = %46, %43
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader27.loopexit.unr-lcssa, label %32, !llvm.loop !21
}

declare void @dirGraphRemoveNode(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"ErrorTestStruct", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"DirectedGraph", !6, i64 0, !6, i64 8, !6, i64 16}
!14 = !{!15, !11, i64 8}
!15 = !{!"HashMap", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!16 = !{!15, !6, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"Entry", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!7, !7, i64 0}
!20 = !{!11, !11, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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