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

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

@.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.7 = 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

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

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

declare i32 @arrayListGetLength(ptr noundef) #2

declare ptr @arrayListGet(ptr noundef, i32 noundef) #2

declare void @destroyArrayList(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @testUndirectedGraphGetShortestPath(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %6 = call ptr @undirectedGraphInitialization(ptr noundef @free, ptr noundef @undirectedGraphTestStrcmp, ptr noundef @charArrHashFunUDGT)
  store ptr %6, ptr %3, align 8, !tbaa !5
  %7 = call ptr @udGraphGetShortestPath(ptr noundef null, ptr noundef null, ptr noundef null)
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.ErrorTestStruct, ptr %9, i32 0, i32 0
  %11 = load i32, ptr %10, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %8, ptr noundef @.str, i32 noundef 684, ptr noundef null, i32 noundef -83386157, i32 noundef %11)
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call ptr @udGraphGetShortestPath(ptr noundef %12, ptr noundef null, 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 687, ptr noundef null, i32 noundef -83384987, i32 noundef %17)
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  store i8 65, ptr %4, align 1, !tbaa !12
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call ptr @udGraphGetShortestPath(ptr noundef %18, ptr noundef %4, ptr noundef null)
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ErrorTestStruct, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %20, ptr noundef @.str, i32 noundef 691, ptr noundef null, i32 noundef -83384987, i32 noundef %23)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = call ptr @generateCharPointerUDGT(ptr noundef @.str.2)
  call void @udGraphAddNode(ptr noundef %24, ptr noundef %25)
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = call ptr @generateCharPointerUDGT(ptr noundef @.str.3)
  call void @udGraphAddNode(ptr noundef %26, ptr noundef %27)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call ptr @generateCharPointerUDGT(ptr noundef @.str.4)
  call void @udGraphAddNode(ptr noundef %28, ptr noundef %29)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call ptr @generateCharPointerUDGT(ptr noundef @.str.5)
  call void @udGraphAddNode(ptr noundef %30, ptr noundef %31)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = call ptr @generateCharPointerUDGT(ptr noundef @.str.7)
  call void @udGraphAddNode(ptr noundef %32, ptr noundef %33)
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  call void @udGraphAddEdge(ptr noundef %34, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 3)
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  call void @udGraphAddEdge(ptr noundef %35, ptr noundef @.str.2, ptr noundef @.str.5, i32 noundef 2)
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  call void @udGraphAddEdge(ptr noundef %36, ptr noundef @.str.2, ptr noundef @.str.4, i32 noundef 4)
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  call void @udGraphAddEdge(ptr noundef %37, ptr noundef @.str.3, ptr noundef @.str.5, i32 noundef 6)
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  call void @udGraphAddEdge(ptr noundef %38, ptr noundef @.str.3, ptr noundef @.str.7, i32 noundef 1)
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @udGraphAddEdge(ptr noundef %39, ptr noundef @.str.5, ptr noundef @.str.7, i32 noundef 5)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  call void @udGraphAddEdge(ptr noundef %40, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call ptr @udGraphGetShortestPath(ptr noundef %41, ptr noundef @.str.2, ptr noundef @.str.7)
  store ptr %42, ptr %5, align 8, !tbaa !5
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = call i32 @arrayListGetLength(ptr noundef %44)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %43, ptr noundef @.str, i32 noundef 719, ptr noundef null, i32 noundef 3, i32 noundef %45)
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call ptr @arrayListGet(ptr noundef %47, i32 noundef 0)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %46, ptr noundef @.str, i32 noundef 720, ptr noundef null, ptr noundef @.str.2, ptr noundef %48)
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = call ptr @arrayListGet(ptr noundef %50, i32 noundef 1)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %49, ptr noundef @.str, i32 noundef 721, ptr noundef null, ptr noundef @.str.3, ptr noundef %51)
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = call ptr @arrayListGet(ptr noundef %53, i32 noundef 2)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %52, ptr noundef @.str, i32 noundef 722, ptr noundef null, ptr noundef @.str.7, ptr noundef %54)
  br label %55

55:                                               ; preds = %60, %1
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = call i32 @arrayListIsEmpty(ptr noundef %56)
  %58 = icmp ne i32 %57, 0
  %59 = xor i1 %58, true
  br i1 %59, label %60, label %63

60:                                               ; preds = %55
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = call ptr @arrayListRemoveWtFr(ptr noundef %61)
  br label %55, !llvm.loop !13

63:                                               ; preds = %55
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  call void @destroyArrayList(ptr noundef %64)
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = call ptr @udGraphGetShortestPath(ptr noundef %65, ptr noundef @.str.2, ptr noundef @.str.4)
  store ptr %66, ptr %5, align 8, !tbaa !5
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call i32 @arrayListGetLength(ptr noundef %68)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %67, ptr noundef @.str, i32 noundef 728, ptr noundef null, i32 noundef 3, i32 noundef %69)
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call ptr @arrayListGet(ptr noundef %71, i32 noundef 0)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %70, ptr noundef @.str, i32 noundef 729, ptr noundef null, ptr noundef @.str.2, ptr noundef %72)
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = call ptr @arrayListGet(ptr noundef %74, i32 noundef 1)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %73, ptr noundef @.str, i32 noundef 730, ptr noundef null, ptr noundef @.str.5, ptr noundef %75)
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = call ptr @arrayListGet(ptr noundef %77, i32 noundef 2)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %76, ptr noundef @.str, i32 noundef 731, ptr noundef null, ptr noundef @.str.4, ptr noundef %78)
  br label %79

79:                                               ; preds = %84, %63
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = call i32 @arrayListIsEmpty(ptr noundef %80)
  %82 = icmp ne i32 %81, 0
  %83 = xor i1 %82, true
  br i1 %83, label %84, label %87

84:                                               ; preds = %79
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = call ptr @arrayListRemoveWtFr(ptr noundef %85)
  br label %79, !llvm.loop !15

87:                                               ; preds = %79
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  call void @destroyArrayList(ptr noundef %88)
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = call ptr @udGraphGetShortestPath(ptr noundef %89, ptr noundef @.str.4, ptr noundef @.str.3)
  store ptr %90, ptr %5, align 8, !tbaa !5
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = call i32 @arrayListGetLength(ptr noundef %92)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %91, ptr noundef @.str, i32 noundef 737, ptr noundef null, i32 noundef 4, i32 noundef %93)
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = call ptr @arrayListGet(ptr noundef %95, i32 noundef 0)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %94, ptr noundef @.str, i32 noundef 738, ptr noundef null, ptr noundef @.str.4, ptr noundef %96)
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = call ptr @arrayListGet(ptr noundef %98, i32 noundef 1)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %97, ptr noundef @.str, i32 noundef 739, ptr noundef null, ptr noundef @.str.5, ptr noundef %99)
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = call ptr @arrayListGet(ptr noundef %101, i32 noundef 2)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %100, ptr noundef @.str, i32 noundef 740, ptr noundef null, ptr noundef @.str.2, ptr noundef %102)
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = call ptr @arrayListGet(ptr noundef %104, i32 noundef 3)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %103, ptr noundef @.str, i32 noundef 741, ptr noundef null, ptr noundef @.str.3, ptr noundef %105)
  br label %106

106:                                              ; preds = %111, %87
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call i32 @arrayListIsEmpty(ptr noundef %107)
  %109 = icmp ne i32 %108, 0
  %110 = xor i1 %109, true
  br i1 %110, label %111, label %114

111:                                              ; preds = %106
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = call ptr @arrayListRemoveWtFr(ptr noundef %112)
  br label %106, !llvm.loop !16

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

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

declare i32 @arrayListIsEmpty(ptr noundef) #2

declare ptr @arrayListRemoveWtFr(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 = { 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 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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.7 = 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

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

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

declare i32 @arrayListGetLength(ptr noundef) local_unnamed_addr #2

declare ptr @arrayListGet(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @destroyArrayList(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @testUndirectedGraphGetShortestPath(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i8, align 1
  %3 = tail call ptr @undirectedGraphInitialization(ptr noundef nonnull @free, ptr noundef nonnull @undirectedGraphTestStrcmp, ptr noundef nonnull @charArrHashFunUDGT) #4
  %4 = tail call ptr @udGraphGetShortestPath(ptr noundef null, ptr noundef null, ptr noundef null) #4
  %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 684, ptr noundef null, i32 noundef -83386157, i32 noundef %6) #4
  %7 = tail call ptr @udGraphGetShortestPath(ptr noundef %3, ptr noundef null, ptr noundef null) #4
  %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 687, ptr noundef null, i32 noundef -83384987, i32 noundef %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #4
  store i8 65, ptr %2, align 1, !tbaa !12
  %10 = call ptr @udGraphGetShortestPath(ptr noundef %3, ptr noundef nonnull %2, ptr noundef null) #4
  %11 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %12 = load i32, ptr %11, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 691, ptr noundef null, i32 noundef -83384987, i32 noundef %12) #4
  %13 = call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.2)
  call void @udGraphAddNode(ptr noundef %3, ptr noundef %13) #4
  %14 = call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.3)
  call void @udGraphAddNode(ptr noundef %3, ptr noundef %14) #4
  %15 = call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.4)
  call void @udGraphAddNode(ptr noundef %3, ptr noundef %15) #4
  %16 = call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.5)
  call void @udGraphAddNode(ptr noundef %3, ptr noundef %16) #4
  %17 = call ptr @generateCharPointerUDGT(ptr noundef nonnull @.str.7)
  call void @udGraphAddNode(ptr noundef %3, ptr noundef %17) #4
  call void @udGraphAddEdge(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 3) #4
  call void @udGraphAddEdge(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.5, i32 noundef 2) #4
  call void @udGraphAddEdge(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.4, i32 noundef 4) #4
  call void @udGraphAddEdge(ptr noundef %3, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.5, i32 noundef 6) #4
  call void @udGraphAddEdge(ptr noundef %3, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.7, i32 noundef 1) #4
  call void @udGraphAddEdge(ptr noundef %3, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.7, i32 noundef 5) #4
  call void @udGraphAddEdge(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 1) #4
  %18 = call ptr @udGraphGetShortestPath(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.7) #4
  %19 = call i32 @arrayListGetLength(ptr noundef %18) #4
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 719, ptr noundef null, i32 noundef 3, i32 noundef %19) #4
  %20 = call ptr @arrayListGet(ptr noundef %18, i32 noundef 0) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 720, ptr noundef null, ptr noundef nonnull @.str.2, ptr noundef %20) #4
  %21 = call ptr @arrayListGet(ptr noundef %18, i32 noundef 1) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 721, ptr noundef null, ptr noundef nonnull @.str.3, ptr noundef %21) #4
  %22 = call ptr @arrayListGet(ptr noundef %18, i32 noundef 2) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 722, ptr noundef null, ptr noundef nonnull @.str.7, ptr noundef %22) #4
  %23 = call i32 @arrayListIsEmpty(ptr noundef %18) #4
  %.not58 = icmp eq i32 %23, 0
  br i1 %.not58, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1, %.lr.ph
  %24 = call ptr @arrayListRemoveWtFr(ptr noundef %18) #4
  %25 = call i32 @arrayListIsEmpty(ptr noundef %18) #4
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %1
  call void @destroyArrayList(ptr noundef %18) #4
  %26 = call ptr @udGraphGetShortestPath(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.4) #4
  %27 = call i32 @arrayListGetLength(ptr noundef %26) #4
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 728, ptr noundef null, i32 noundef 3, i32 noundef %27) #4
  %28 = call ptr @arrayListGet(ptr noundef %26, i32 noundef 0) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 729, ptr noundef null, ptr noundef nonnull @.str.2, ptr noundef %28) #4
  %29 = call ptr @arrayListGet(ptr noundef %26, i32 noundef 1) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 730, ptr noundef null, ptr noundef nonnull @.str.5, ptr noundef %29) #4
  %30 = call ptr @arrayListGet(ptr noundef %26, i32 noundef 2) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 731, ptr noundef null, ptr noundef nonnull @.str.4, ptr noundef %30) #4
  %31 = call i32 @arrayListIsEmpty(ptr noundef %26) #4
  %.not5659 = icmp eq i32 %31, 0
  br i1 %.not5659, label %.lr.ph61, label %._crit_edge62

.lr.ph61:                                         ; preds = %._crit_edge, %.lr.ph61
  %32 = call ptr @arrayListRemoveWtFr(ptr noundef %26) #4
  %33 = call i32 @arrayListIsEmpty(ptr noundef %26) #4
  %.not56 = icmp eq i32 %33, 0
  br i1 %.not56, label %.lr.ph61, label %._crit_edge62, !llvm.loop !15

._crit_edge62:                                    ; preds = %.lr.ph61, %._crit_edge
  call void @destroyArrayList(ptr noundef %26) #4
  %34 = call ptr @udGraphGetShortestPath(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3) #4
  %35 = call i32 @arrayListGetLength(ptr noundef %34) #4
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 737, ptr noundef null, i32 noundef 4, i32 noundef %35) #4
  %36 = call ptr @arrayListGet(ptr noundef %34, i32 noundef 0) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 738, ptr noundef null, ptr noundef nonnull @.str.4, ptr noundef %36) #4
  %37 = call ptr @arrayListGet(ptr noundef %34, i32 noundef 1) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 739, ptr noundef null, ptr noundef nonnull @.str.5, ptr noundef %37) #4
  %38 = call ptr @arrayListGet(ptr noundef %34, i32 noundef 2) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 740, ptr noundef null, ptr noundef nonnull @.str.2, ptr noundef %38) #4
  %39 = call ptr @arrayListGet(ptr noundef %34, i32 noundef 3) #4
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 741, ptr noundef null, ptr noundef nonnull @.str.3, ptr noundef %39) #4
  %40 = call i32 @arrayListIsEmpty(ptr noundef %34) #4
  %.not5763 = icmp eq i32 %40, 0
  br i1 %.not5763, label %.lr.ph65, label %._crit_edge66

.lr.ph65:                                         ; preds = %._crit_edge62, %.lr.ph65
  %41 = call ptr @arrayListRemoveWtFr(ptr noundef %34) #4
  %42 = call i32 @arrayListIsEmpty(ptr noundef %34) #4
  %.not57 = icmp eq i32 %42, 0
  br i1 %.not57, label %.lr.ph65, label %._crit_edge66, !llvm.loop !16

._crit_edge66:                                    ; preds = %.lr.ph65, %._crit_edge62
  call void @destroyArrayList(ptr noundef %34) #4
  call void @destroyUDGraph(ptr noundef %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #4
  ret void
}

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

declare i32 @arrayListIsEmpty(ptr noundef) local_unnamed_addr #2

declare ptr @arrayListRemoveWtFr(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 = { 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 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass