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

; 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.UndirectedGraph = 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 [167 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
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateCharPointerUDGT(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 @charArrHashFunUDGT(ptr noundef) #0

declare ptr @undirectedGraphInitialization(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 @destroyUDGraph(ptr noundef) #2

declare void @udGraphAddNode(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 @testUndirectedGraphRemoveNodeWtoFr(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [4 x i32], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %9 = call ptr @undirectedGraphInitialization(ptr noundef @free, ptr noundef @undirectedGraphTestStrcmp, ptr noundef @charArrHashFunUDGT)
  store ptr %9, ptr %3, align 8, !tbaa !5
  %10 = call ptr @udGraphRemoveNodeWtoFr(ptr noundef null, ptr noundef null)
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ErrorTestStruct, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %11, ptr noundef @.str, i32 noundef 158, ptr noundef null, i32 noundef -83386157, i32 noundef %14)
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = call ptr @udGraphRemoveNodeWtoFr(ptr noundef %15, ptr noundef null)
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.ErrorTestStruct, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %17, ptr noundef @.str, i32 noundef 161, ptr noundef null, i32 noundef -83384987, i32 noundef %20)
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = call ptr @generateCharPointerUDGT(ptr noundef @.str.2)
  call void @udGraphAddNode(ptr noundef %21, ptr noundef %22)
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = call ptr @generateCharPointerUDGT(ptr noundef @.str.3)
  call void @udGraphAddNode(ptr noundef %23, ptr noundef %24)
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = call ptr @generateCharPointerUDGT(ptr noundef @.str.4)
  call void @udGraphAddNode(ptr noundef %25, ptr noundef %26)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = call ptr @generateCharPointerUDGT(ptr noundef @.str.5)
  call void @udGraphAddNode(ptr noundef %27, ptr noundef %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call ptr @udGraphRemoveNodeWtoFr(ptr noundef %29, ptr noundef @.str.5)
  store ptr %30, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @CuAssertStrEquals_LineMsg(ptr noundef %31, ptr noundef @.str, i32 noundef 169, ptr noundef null, ptr noundef @.str.5, ptr noundef %32)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %33) #5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call ptr @udGraphRemoveNodeWtoFr(ptr noundef %34, ptr noundef @.str.4)
  store ptr %35, ptr %4, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  call void @CuAssertStrEquals_LineMsg(ptr noundef %36, ptr noundef @.str, i32 noundef 173, ptr noundef null, ptr noundef @.str.4, ptr noundef %37)
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %38) #5
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = call ptr @udGraphRemoveNodeWtoFr(ptr noundef %40, ptr noundef @.str.6)
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %39, ptr noundef @.str, i32 noundef 176, ptr noundef null, ptr noundef null, ptr noundef %41)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !12
  br label %42

42:                                               ; preds = %82, %1
  %43 = load i32, ptr %6, align 4, !tbaa !12
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.UndirectedGraph, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds %struct.HashMap, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !15
  %49 = icmp slt i32 %43, %48
  br i1 %49, label %51, label %50

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

51:                                               ; preds = %42
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.UndirectedGraph, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  %55 = getelementptr inbounds %struct.HashMap, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = load i32, ptr %6, align 4, !tbaa !12
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %81

62:                                               ; preds = %51
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.UndirectedGraph, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = getelementptr inbounds %struct.HashMap, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !17
  %68 = load i32, ptr %6, align 4, !tbaa !12
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.Entry, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !18
  %74 = load i8, ptr %73, align 1, !tbaa !20
  %75 = sext i8 %74 to i32
  %76 = sub nsw i32 %75, 65
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !12
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %78, align 4, !tbaa !12
  br label %81

81:                                               ; preds = %62, %51
  br label %82

82:                                               ; preds = %81
  %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 %42, !llvm.loop !21

85:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, 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, 2
  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 %5, 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 188, ptr noundef null, i32 noundef 1, 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 !23

99:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 2, ptr %8, align 4, !tbaa !12
  br label %100

100:                                              ; preds = %110, %99
  %101 = load i32, ptr %8, align 4, !tbaa !12
  %102 = icmp slt i32 %101, 4
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %113

104:                                              ; preds = %100
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = load i32, ptr %8, align 4, !tbaa !12
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %105, ptr noundef @.str, i32 noundef 191, ptr noundef null, i32 noundef 0, i32 noundef %109)
  br label %110

110:                                              ; preds = %104
  %111 = load i32, ptr %8, align 4, !tbaa !12
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %8, align 4, !tbaa !12
  br label %100, !llvm.loop !24

113:                                              ; preds = %103
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyUDGraph(ptr noundef %114)
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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

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

declare void @CuAssertPtrEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, 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 = !{!"UndirectedGraph", !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 [167 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
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateCharPointerUDGT(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 @charArrHashFunUDGT(ptr noundef) #0

declare ptr @undirectedGraphInitialization(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 @destroyUDGraph(ptr noundef) local_unnamed_addr #2

declare void @udGraphAddNode(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 @testUndirectedGraphRemoveNodeWtoFr(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [4 x i32], align 16
  %3 = tail call ptr @undirectedGraphInitialization(ptr noundef nonnull @free, ptr noundef nonnull @undirectedGraphTestStrcmp, ptr noundef nonnull @charArrHashFunUDGT) #5
  %4 = tail call ptr @udGraphRemoveNodeWtoFr(ptr noundef null, ptr noundef null) #5
  %5 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %6 = load i32, ptr %5, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 158, ptr noundef null, i32 noundef -83386157, i32 noundef %6) #5
  %7 = tail call ptr @udGraphRemoveNodeWtoFr(ptr noundef %3, ptr noundef null) #5
  %8 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %9 = load i32, ptr %8, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 161, ptr noundef null, i32 noundef -83384987, i32 noundef %9) #5
  %10 = tail call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.2)
  tail call void @udGraphAddNode(ptr noundef %3, ptr noundef %10) #5
  %11 = tail call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.3)
  tail call void @udGraphAddNode(ptr noundef %3, ptr noundef %11) #5
  %12 = tail call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.4)
  tail call void @udGraphAddNode(ptr noundef %3, ptr noundef %12) #5
  %13 = tail call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.5)
  tail call void @udGraphAddNode(ptr noundef %3, ptr noundef %13) #5
  %14 = tail call ptr @udGraphRemoveNodeWtoFr(ptr noundef %3, ptr noundef nonnull @.str.5) #5
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 169, ptr noundef null, ptr noundef nonnull @.str.5, ptr noundef %14) #5
  tail call void @free(ptr noundef %14) #5
  %15 = tail call ptr @udGraphRemoveNodeWtoFr(ptr noundef %3, ptr noundef nonnull @.str.4) #5
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 173, ptr noundef null, ptr noundef nonnull @.str.4, ptr noundef %15) #5
  tail call void @free(ptr noundef %15) #5
  %16 = tail call ptr @udGraphRemoveNodeWtoFr(ptr noundef %3, ptr noundef nonnull @.str.6) #5
  tail call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 176, ptr noundef null, ptr noundef null, ptr noundef %16) #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)
  %17 = load ptr, ptr %3, align 8, !tbaa !12
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !14
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %.preheader35

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

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

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

.epil.preheader:                                  ; preds = %.preheader35.loopexit.unr-lcssa
  %23 = getelementptr inbounds ptr, ptr %21, i64 %indvars.iv.unr
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %.not.epil = icmp eq ptr %24, null
  br i1 %.not.epil, label %.preheader35.loopexit, label %25

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

.preheader35.loopexit:                            ; preds = %.epil.preheader, %25, %.preheader35.loopexit.unr-lcssa
  %.pre = load i32, ptr %2, align 16, !tbaa !20
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 4
  %.pre47 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !20
  %.phi.trans.insert48 = getelementptr inbounds i8, ptr %2, i64 8
  %.pre49 = load i32, ptr %.phi.trans.insert48, align 8, !tbaa !20
  %.phi.trans.insert50 = getelementptr inbounds i8, ptr %2, i64 12
  %.pre51 = load i32, ptr %.phi.trans.insert50, align 4, !tbaa !20
  br label %.preheader35

.preheader35:                                     ; preds = %.preheader35.loopexit, %1
  %33 = phi i32 [ %.pre51, %.preheader35.loopexit ], [ 0, %1 ]
  %34 = phi i32 [ %.pre49, %.preheader35.loopexit ], [ 0, %1 ]
  %35 = phi i32 [ %.pre47, %.preheader35.loopexit ], [ 0, %1 ]
  %36 = phi i32 [ %.pre, %.preheader35.loopexit ], [ 0, %1 ]
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 188, ptr noundef null, i32 noundef 1, i32 noundef %36) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 188, ptr noundef null, i32 noundef 1, i32 noundef %35) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 191, ptr noundef null, i32 noundef 0, i32 noundef %34) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 191, ptr noundef null, i32 noundef 0, i32 noundef %33) #5
  tail call void @destroyUDGraph(ptr noundef nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  ret void

37:                                               ; preds = %59, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %59 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %59 ]
  %38 = getelementptr inbounds ptr, ptr %21, i64 %indvars.iv
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %.not = icmp eq ptr %39, null
  br i1 %.not, label %48, label %40

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

48:                                               ; preds = %37, %40
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %49 = getelementptr inbounds ptr, ptr %21, i64 %indvars.iv.next
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %.not.1 = icmp eq ptr %50, null
  br i1 %.not.1, label %59, label %51

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

59:                                               ; preds = %51, %48
  %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 %.preheader35.loopexit.unr-lcssa, label %37, !llvm.loop !21
}

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

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

declare void @CuAssertPtrEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, 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 = !{!"UndirectedGraph", !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