; LLVM IR from rodrigo-lc/simulation-program-using-graphs :: include/graph (graph)

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

@stderr = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 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

declare void @perror(ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

declare ptr @createLinkedList() #1

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

declare ptr @createVertex(i32 noundef) #1

declare ptr @createNode(ptr noundef) #1

declare void @addTail(ptr noundef, ptr noundef) #1

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

declare ptr @createEdge(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @buildGraph(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [100 x i8], align 16
  %7 = alloca [100 x i8], align 16
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %21 = call ptr @createLinkedList()
  store ptr %21, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 100, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 100, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store float 0.000000e+00, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noalias ptr @fopen(ptr noundef %22, ptr noundef @.str.14)
  store ptr %23, ptr %15, align 8, !tbaa !5
  %24 = load ptr, ptr %15, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %2
  call void @perror(ptr noundef @.str.15)
  call void @exit(i32 noundef 1) #6
  unreachable

27:                                               ; preds = %2
  %28 = call ptr @createLinkedList()
  store ptr %28, ptr %14, align 8, !tbaa !5
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.graphs, ptr %30, i32 0, i32 1
  store ptr %29, ptr %31, align 8, !tbaa !13
  %32 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = call ptr @fgets(ptr noundef %32, i32 noundef 100, ptr noundef %33)
  br label %35

35:                                               ; preds = %81, %27
  %36 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %37 = load ptr, ptr %15, align 8, !tbaa !5
  %38 = call ptr @fgets(ptr noundef %36, i32 noundef 100, ptr noundef %37)
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %108

40:                                               ; preds = %35
  %41 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %42 = load i8, ptr %41, align 16, !tbaa !15
  %43 = sext i8 %42 to i32
  %44 = icmp eq i32 %43, 125
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  br label %108

46:                                               ; preds = %40
  %47 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %48 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
  %49 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %47, ptr noundef @.str.16, ptr noundef %10, ptr noundef %11, ptr noundef %48, ptr noundef %8) #5
  store i32 %49, ptr %9, align 4, !tbaa !11
  %50 = load i32, ptr %9, align 4, !tbaa !11
  %51 = icmp ne i32 %50, 4
  br i1 %51, label %52, label %55

52:                                               ; preds = %46
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.17) #5
  call void @exit(i32 noundef 1) #6
  unreachable

55:                                               ; preds = %46
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = load i32, ptr %10, align 4, !tbaa !11
  %58 = call ptr @searchVertex(ptr noundef %56, i32 noundef %57)
  store ptr %58, ptr %12, align 8, !tbaa !5
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %68

61:                                               ; preds = %55
  %62 = load i32, ptr %10, align 4, !tbaa !11
  %63 = call ptr @createVertex(i32 noundef %62)
  store ptr %63, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = call ptr @createNode(ptr noundef %64)
  store ptr %65, ptr %16, align 8, !tbaa !5
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = load ptr, ptr %16, align 8, !tbaa !5
  call void @addTail(ptr noundef %66, ptr noundef %67)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %68

68:                                               ; preds = %61, %55
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = call ptr @searchVertex(ptr noundef %69, i32 noundef %70)
  store ptr %71, ptr %13, align 8, !tbaa !5
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %81

74:                                               ; preds = %68
  %75 = load i32, ptr %11, align 4, !tbaa !11
  %76 = call ptr @createVertex(i32 noundef %75)
  store ptr %76, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = call ptr @createNode(ptr noundef %77)
  store ptr %78, ptr %17, align 8, !tbaa !5
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  call void @addTail(ptr noundef %79, ptr noundef %80)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %81

81:                                               ; preds = %74, %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %82 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
  %83 = load float, ptr %8, align 4, !tbaa !9
  %84 = load i32, ptr %10, align 4, !tbaa !11
  %85 = load i32, ptr %11, align 4, !tbaa !11
  %86 = call ptr @createComponent(ptr noundef %82, float noundef %83, i32 noundef %84, i32 noundef %85)
  store ptr %86, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = call ptr @createEdge(ptr noundef %87, ptr noundef %88, ptr noundef %89)
  store ptr %90, ptr %19, align 8, !tbaa !5
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load ptr, ptr %19, align 8, !tbaa !5
  call void @addEdge(ptr noundef %91, ptr noundef %92)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = call ptr @createNode(ptr noundef %93)
  store ptr %94, ptr %20, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  call void @addTail(ptr noundef %95, ptr noundef %96)
  %97 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
  %98 = load float, ptr %8, align 4, !tbaa !9
  %99 = load i32, ptr %11, align 4, !tbaa !11
  %100 = load i32, ptr %10, align 4, !tbaa !11
  %101 = call ptr @createComponent(ptr noundef %97, float noundef %98, i32 noundef %99, i32 noundef %100)
  store ptr %101, ptr %18, align 8, !tbaa !5
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = call ptr @createEdge(ptr noundef %102, ptr noundef %103, ptr noundef %104)
  store ptr %105, ptr %19, align 8, !tbaa !5
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  call void @addEdge(ptr noundef %106, ptr noundef %107)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %35, !llvm.loop !16

108:                                              ; preds = %45, %35
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = call i32 @fclose(ptr noundef %109)
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 100, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 100, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %111
}

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #3

declare ptr @createComponent(ptr noundef, float noundef, i32 noundef, i32 noundef) #1

declare void @addEdge(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noreturn 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 #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 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 = { nounwind }
attributes #6 = { noreturn 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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"graphs", !12, i64 0, !6, i64 8}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1

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

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

declare ptr @createLinkedList() local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @searchVertex(ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @createVertex(i32 noundef) local_unnamed_addr #3

declare ptr @createNode(ptr noundef) local_unnamed_addr #3

declare void @addTail(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

declare ptr @createEdge(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local ptr @buildGraph(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #4 {
  %3 = alloca [100 x i8], align 16
  %4 = alloca [100 x i8], align 16
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = tail call ptr @createLinkedList() #5
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %9 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.14)
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %2
  tail call void @perror(ptr noundef nonnull @.str.15) #6
  tail call void @exit(i32 noundef 1) #7
  unreachable

12:                                               ; preds = %2
  %13 = tail call ptr @createLinkedList() #5
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %13, ptr %14, align 8, !tbaa !9
  %15 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 100, ptr noundef nonnull %9)
  %16 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 100, ptr noundef nonnull %9)
  %17 = icmp eq ptr %16, null
  %18 = load i8, ptr %3, align 16
  %19 = icmp eq i8 %18, 125
  %or.cond38 = select i1 %17, i1 true, i1 %19
  br i1 %or.cond38, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %12, %40
  %20 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.16, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %4, ptr noundef nonnull %5) #5
  %.not = icmp eq i32 %20, 4
  br i1 %.not, label %24, label %21

21:                                               ; preds = %.lr.ph
  %22 = load ptr, ptr @stderr, align 8, !tbaa !13
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.17) #8
  call void @exit(i32 noundef 1) #7
  unreachable

24:                                               ; preds = %.lr.ph
  %25 = load i32, ptr %6, align 4, !tbaa !14
  %26 = call ptr @searchVertex(ptr noundef %0, i32 noundef %25)
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %32

28:                                               ; preds = %24
  %29 = load i32, ptr %6, align 4, !tbaa !14
  %30 = call ptr @createVertex(i32 noundef %29) #5
  %31 = call ptr @createNode(ptr noundef %30) #5
  call void @addTail(ptr noundef %13, ptr noundef %31) #5
  br label %32

32:                                               ; preds = %28, %24
  %.0 = phi ptr [ %30, %28 ], [ %26, %24 ]
  %33 = load i32, ptr %7, align 4, !tbaa !14
  %34 = call ptr @searchVertex(ptr noundef %0, i32 noundef %33)
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %40

36:                                               ; preds = %32
  %37 = load i32, ptr %7, align 4, !tbaa !14
  %38 = call ptr @createVertex(i32 noundef %37) #5
  %39 = call ptr @createNode(ptr noundef %38) #5
  call void @addTail(ptr noundef %13, ptr noundef %39) #5
  br label %40

40:                                               ; preds = %36, %32
  %.034 = phi ptr [ %38, %36 ], [ %34, %32 ]
  %41 = load float, ptr %5, align 4, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !14
  %43 = load i32, ptr %7, align 4, !tbaa !14
  %44 = call ptr @createComponent(ptr noundef nonnull %4, float noundef %41, i32 noundef %42, i32 noundef %43) #5
  %45 = call ptr @createEdge(ptr noundef %.0, ptr noundef %.034, ptr noundef %44) #5
  call void @addEdge(ptr noundef %.0, ptr noundef %45) #5
  %46 = call ptr @createNode(ptr noundef %44) #5
  call void @addTail(ptr noundef %8, ptr noundef %46) #5
  %47 = load float, ptr %5, align 4, !tbaa !5
  %48 = load i32, ptr %7, align 4, !tbaa !14
  %49 = load i32, ptr %6, align 4, !tbaa !14
  %50 = call ptr @createComponent(ptr noundef nonnull %4, float noundef %47, i32 noundef %48, i32 noundef %49) #5
  %51 = call ptr @createEdge(ptr noundef %.034, ptr noundef %.0, ptr noundef %50) #5
  call void @addEdge(ptr noundef %.034, ptr noundef %51) #5
  %52 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 100, ptr noundef nonnull %9)
  %53 = icmp eq ptr %52, null
  %54 = load i8, ptr %3, align 16
  %55 = icmp eq i8 %54, 125
  %or.cond = select i1 %53, i1 true, i1 %55
  br i1 %or.cond, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %40, %12
  %56 = call i32 @fclose(ptr noundef nonnull %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #5
  ret ptr %8
}

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #1

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

declare ptr @createComponent(ptr noundef, float noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @addEdge(ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { noreturn 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 #3 = { "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 = { nounwind }
attributes #6 = { cold }
attributes #7 = { noreturn nounwind }
attributes #8 = { cold 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"graphs", !11, i64 0, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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