original_ir
stringlengths 1.1k
9.44M
| preprocessed_ir
stringlengths 1.05k
8.74M
| o3_ir
stringlengths 911
3.46M
| o3_active_passes
stringlengths 32
570
| structural_hash
stringlengths 13
16
| repo_name
stringclasses 804
values | repo_file_path
stringlengths 1
179
| function_name
stringlengths 1
86
| repo_license
stringclasses 11
values |
---|---|---|---|---|---|---|---|---|
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.RingBuffer = type { i64, i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @ringBufferAppendMultiple(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i64 %2, ptr %6, align 8, !tbaa !9
%9 = load ptr, ptr %4, align 8, !tbaa !5
%10 = getelementptr inbounds %struct.RingBuffer, ptr %9, i32 0, i32 0
%11 = load i64, ptr %10, align 8, !tbaa !11
%12 = load i64, ptr %6, align 8, !tbaa !9
%13 = add i64 %11, %12
%14 = load ptr, ptr %4, align 8, !tbaa !5
%15 = getelementptr inbounds %struct.RingBuffer, ptr %14, i32 0, i32 2
%16 = load i64, ptr %15, align 8, !tbaa !13
%17 = icmp ugt i64 %13, %16
br i1 %17, label %18, label %54
18: ; preds = %3
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
%19 = load ptr, ptr %4, align 8, !tbaa !5
%20 = getelementptr inbounds %struct.RingBuffer, ptr %19, i32 0, i32 2
%21 = load i64, ptr %20, align 8, !tbaa !13
%22 = load ptr, ptr %4, align 8, !tbaa !5
%23 = getelementptr inbounds %struct.RingBuffer, ptr %22, i32 0, i32 0
%24 = load i64, ptr %23, align 8, !tbaa !11
%25 = sub i64 %21, %24
%26 = add i64 %25, 1
%27 = trunc i64 %26 to i32
store i32 %27, ptr %7, align 4, !tbaa !14
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
%28 = load i64, ptr %6, align 8, !tbaa !9
%29 = load i32, ptr %7, align 4, !tbaa !14
%30 = zext i32 %29 to i64
%31 = sub i64 %28, %30
%32 = trunc i64 %31 to i32
store i32 %32, ptr %8, align 4, !tbaa !14
%33 = load ptr, ptr %4, align 8, !tbaa !5
%34 = getelementptr inbounds %struct.RingBuffer, ptr %33, i32 0, i32 3
%35 = load ptr, ptr %34, align 8, !tbaa !16
%36 = load ptr, ptr %4, align 8, !tbaa !5
%37 = getelementptr inbounds %struct.RingBuffer, ptr %36, i32 0, i32 0
%38 = load i64, ptr %37, align 8, !tbaa !11
%39 = getelementptr inbounds i8, ptr %35, i64 %38
%40 = load ptr, ptr %5, align 8, !tbaa !5
%41 = load i32, ptr %7, align 4, !tbaa !14
%42 = zext i32 %41 to i64
%43 = call ptr @memcpy(ptr noundef %39, ptr noundef %40, i64 noundef %42)
%44 = load ptr, ptr %4, align 8, !tbaa !5
%45 = getelementptr inbounds %struct.RingBuffer, ptr %44, i32 0, i32 3
%46 = load ptr, ptr %45, align 8, !tbaa !16
%47 = load ptr, ptr %5, align 8, !tbaa !5
%48 = load i32, ptr %7, align 4, !tbaa !14
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i32, ptr %8, align 4, !tbaa !14
%52 = zext i32 %51 to i64
%53 = call ptr @memcpy(ptr noundef %46, ptr noundef %50, i64 noundef %52)
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
br label %65
54: ; preds = %3
%55 = load ptr, ptr %4, align 8, !tbaa !5
%56 = getelementptr inbounds %struct.RingBuffer, ptr %55, i32 0, i32 3
%57 = load ptr, ptr %56, align 8, !tbaa !16
%58 = load ptr, ptr %4, align 8, !tbaa !5
%59 = getelementptr inbounds %struct.RingBuffer, ptr %58, i32 0, i32 0
%60 = load i64, ptr %59, align 8, !tbaa !11
%61 = getelementptr inbounds i8, ptr %57, i64 %60
%62 = load ptr, ptr %5, align 8, !tbaa !5
%63 = load i64, ptr %6, align 8, !tbaa !9
%64 = call ptr @memcpy(ptr noundef %61, ptr noundef %62, i64 noundef %63)
br label %65
65: ; preds = %54, %18
%66 = load ptr, ptr %4, align 8, !tbaa !5
%67 = getelementptr inbounds %struct.RingBuffer, ptr %66, i32 0, i32 0
%68 = load i64, ptr %67, align 8, !tbaa !11
%69 = load i64, ptr %6, align 8, !tbaa !9
%70 = add i64 %68, %69
%71 = load ptr, ptr %4, align 8, !tbaa !5
%72 = getelementptr inbounds %struct.RingBuffer, ptr %71, i32 0, i32 2
%73 = load i64, ptr %72, align 8, !tbaa !13
%74 = and i64 %70, %73
%75 = load ptr, ptr %4, align 8, !tbaa !5
%76 = getelementptr inbounds %struct.RingBuffer, ptr %75, i32 0, i32 0
store i64 %74, ptr %76, align 8, !tbaa !11
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nounwind uwtable
declare hidden ptr @memcpy(ptr noundef, ptr noundef, i64 noundef) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
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 = { 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 ([email protected]: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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !6, i64 24}
| 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"
%STRUCT0 = type { i64, i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @ringBufferAppendMultiple(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
B0:
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
store i64 %2, ptr %5, align 8, !tbaa !9
%8 = load ptr, ptr %3, align 8, !tbaa !5
%9 = getelementptr inbounds %STRUCT0, ptr %8, i32 0, i32 0
%10 = load i64, ptr %9, align 8, !tbaa !11
%11 = load i64, ptr %5, align 8, !tbaa !9
%12 = add i64 %10, %11
%13 = load ptr, ptr %3, align 8, !tbaa !5
%14 = getelementptr inbounds %STRUCT0, ptr %13, i32 0, i32 2
%15 = load i64, ptr %14, align 8, !tbaa !13
%16 = icmp ugt i64 %12, %15
br i1 %16, label %B1, label %B2
B1:
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
%17 = load ptr, ptr %3, align 8, !tbaa !5
%18 = getelementptr inbounds %STRUCT0, ptr %17, i32 0, i32 2
%19 = load i64, ptr %18, align 8, !tbaa !13
%20 = load ptr, ptr %3, align 8, !tbaa !5
%21 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%22 = load i64, ptr %21, align 8, !tbaa !11
%23 = sub i64 %19, %22
%24 = add i64 %23, 1
%25 = trunc i64 %24 to i32
store i32 %25, ptr %6, align 4, !tbaa !14
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
%26 = load i64, ptr %5, align 8, !tbaa !9
%27 = load i32, ptr %6, align 4, !tbaa !14
%28 = zext i32 %27 to i64
%29 = sub i64 %26, %28
%30 = trunc i64 %29 to i32
store i32 %30, ptr %7, align 4, !tbaa !14
%31 = load ptr, ptr %3, align 8, !tbaa !5
%32 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 3
%33 = load ptr, ptr %32, align 8, !tbaa !16
%34 = load ptr, ptr %3, align 8, !tbaa !5
%35 = getelementptr inbounds %STRUCT0, ptr %34, i32 0, i32 0
%36 = load i64, ptr %35, align 8, !tbaa !11
%37 = getelementptr inbounds i8, ptr %33, i64 %36
%38 = load ptr, ptr %4, align 8, !tbaa !5
%39 = load i32, ptr %6, align 4, !tbaa !14
%40 = zext i32 %39 to i64
%41 = call ptr @memcpy(ptr noundef %37, ptr noundef %38, i64 noundef %40)
%42 = load ptr, ptr %3, align 8, !tbaa !5
%43 = getelementptr inbounds %STRUCT0, ptr %42, i32 0, i32 3
%44 = load ptr, ptr %43, align 8, !tbaa !16
%45 = load ptr, ptr %4, align 8, !tbaa !5
%46 = load i32, ptr %6, align 4, !tbaa !14
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i32, ptr %7, align 4, !tbaa !14
%50 = zext i32 %49 to i64
%51 = call ptr @memcpy(ptr noundef %44, ptr noundef %48, i64 noundef %50)
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
br label %B3
B2:
%52 = load ptr, ptr %3, align 8, !tbaa !5
%53 = getelementptr inbounds %STRUCT0, ptr %52, i32 0, i32 3
%54 = load ptr, ptr %53, align 8, !tbaa !16
%55 = load ptr, ptr %3, align 8, !tbaa !5
%56 = getelementptr inbounds %STRUCT0, ptr %55, i32 0, i32 0
%57 = load i64, ptr %56, align 8, !tbaa !11
%58 = getelementptr inbounds i8, ptr %54, i64 %57
%59 = load ptr, ptr %4, align 8, !tbaa !5
%60 = load i64, ptr %5, align 8, !tbaa !9
%61 = call ptr @memcpy(ptr noundef %58, ptr noundef %59, i64 noundef %60)
br label %B3
B3:
%62 = load ptr, ptr %3, align 8, !tbaa !5
%63 = getelementptr inbounds %STRUCT0, ptr %62, i32 0, i32 0
%64 = load i64, ptr %63, align 8, !tbaa !11
%65 = load i64, ptr %5, align 8, !tbaa !9
%66 = add i64 %64, %65
%67 = load ptr, ptr %3, align 8, !tbaa !5
%68 = getelementptr inbounds %STRUCT0, ptr %67, i32 0, i32 2
%69 = load i64, ptr %68, align 8, !tbaa !13
%70 = and i64 %66, %69
%71 = load ptr, ptr %3, align 8, !tbaa !5
%72 = getelementptr inbounds %STRUCT0, ptr %71, i32 0, i32 0
store i64 %70, ptr %72, align 8, !tbaa !11
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nounwind uwtable
declare hidden ptr @memcpy(ptr noundef, ptr noundef, i64 noundef) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
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 = { 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 ([email protected]: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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !6, i64 24} | 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"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @ringBufferAppendMultiple(ptr nocapture noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = add i64 %4, %2
%6 = getelementptr inbounds i8, ptr %0, i64 16
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = icmp ugt i64 %5, %7
br i1 %8, label %9, label %20
9: ; preds = %3
%10 = sub i64 %7, %4
%11 = add i64 %10, 1
%12 = and i64 %11, 4294967295
%13 = sub i64 %2, %11
%14 = getelementptr inbounds i8, ptr %0, i64 24
%15 = load ptr, ptr %14, align 8, !tbaa !12
%16 = getelementptr inbounds i8, ptr %15, i64 %4
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef align 1 %16, ptr noundef align 1 %1, i64 noundef %12, i1 false)
%17 = load ptr, ptr %14, align 8, !tbaa !12
%18 = getelementptr inbounds i8, ptr %1, i64 %12
%19 = and i64 %13, 4294967295
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef align 1 %17, ptr noundef align 1 %18, i64 noundef %19, i1 false)
br label %24
20: ; preds = %3
%21 = getelementptr inbounds i8, ptr %0, i64 24
%22 = load ptr, ptr %21, align 8, !tbaa !12
%23 = getelementptr inbounds i8, ptr %22, i64 %4
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef align 1 %23, ptr noundef align 1 %1, i64 noundef %2, i1 false)
br label %24
24: ; preds = %20, %9
%25 = load i64, ptr %0, align 8, !tbaa !5
%26 = add i64 %25, %2
%27 = load i64, ptr %6, align 8, !tbaa !11
%28 = and i64 %26, %27
store i64 %28, ptr %0, align 8, !tbaa !5
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none) 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 nounwind willreturn memory(argmem: readwrite) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !10, i64 24}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass | 8df68fc909152b98 | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src | ringbuffer | MIT |
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.RingBuffer = type { i64, i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @ringBufferClear(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.RingBuffer, ptr %3, i32 0, i32 0
store i64 0, ptr %4, align 8, !tbaa !9
%5 = load ptr, ptr %2, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.RingBuffer, ptr %5, i32 0, i32 1
store i64 0, ptr %6, align 8, !tbaa !12
ret void
}
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" }
!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 ([email protected]: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 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
| 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"
%STRUCT0 = type { i64, i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @ringBufferClear(ptr noundef %0) #0 {
B0:
%1 = alloca ptr, align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%2 = load ptr, ptr %1, align 8, !tbaa !5
%3 = getelementptr inbounds %STRUCT0, ptr %2, i32 0, i32 0
store i64 0, ptr %3, align 8, !tbaa !9
%4 = load ptr, ptr %1, align 8, !tbaa !5
%5 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 1
store i64 0, ptr %5, align 8, !tbaa !12
ret void
}
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" }
!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 ([email protected]: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 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8} | 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"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @ringBufferClear(ptr nocapture noundef writeonly %0) local_unnamed_addr #0 {
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, i8 0, i64 16, i1 false)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) 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 nounwind willreturn memory(argmem: write) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
| EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass | f146ecfe589fbf23 | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src | ringbuffer | MIT |
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.RingBuffer = type { i64, i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local i32 @ringBufferInit(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %5, align 8, !tbaa !5
store ptr %1, ptr %6, align 8, !tbaa !5
store i64 %2, ptr %7, align 8, !tbaa !9
%8 = load i64, ptr %7, align 8, !tbaa !9
%9 = call i32 @isMultipleTwo(i64 noundef %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %3
store i32 0, ptr %4, align 4
br label %24
12: ; preds = %3
%13 = load ptr, ptr %5, align 8, !tbaa !5
%14 = getelementptr inbounds %struct.RingBuffer, ptr %13, i32 0, i32 0
store i64 0, ptr %14, align 8, !tbaa !11
%15 = load ptr, ptr %5, align 8, !tbaa !5
%16 = getelementptr inbounds %struct.RingBuffer, ptr %15, i32 0, i32 1
store i64 0, ptr %16, align 8, !tbaa !13
%17 = load i64, ptr %7, align 8, !tbaa !9
%18 = sub i64 %17, 1
%19 = load ptr, ptr %5, align 8, !tbaa !5
%20 = getelementptr inbounds %struct.RingBuffer, ptr %19, i32 0, i32 2
store i64 %18, ptr %20, align 8, !tbaa !14
%21 = load ptr, ptr %6, align 8, !tbaa !5
%22 = load ptr, ptr %5, align 8, !tbaa !5
%23 = getelementptr inbounds %struct.RingBuffer, ptr %22, i32 0, i32 3
store ptr %21, ptr %23, align 8, !tbaa !15
store i32 1, ptr %4, align 4
br label %24
24: ; preds = %12, %11
%25 = load i32, ptr %4, align 4
ret i32 %25
}
; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @isMultipleTwo(i64 noundef) #1
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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!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 ([email protected]: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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !6, i64 24}
| 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"
%STRUCT0 = type { i64, i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local i32 @ringBufferInit(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
B0:
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i64 %2, ptr %6, align 8, !tbaa !9
%7 = load i64, ptr %6, align 8, !tbaa !9
%8 = call i32 @isMultipleTwo(i64 noundef %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %B2, label %B1
B1:
store i32 0, ptr %3, align 4
br label %B3
B2:
%10 = load ptr, ptr %4, align 8, !tbaa !5
%11 = getelementptr inbounds %STRUCT0, ptr %10, i32 0, i32 0
store i64 0, ptr %11, align 8, !tbaa !11
%12 = load ptr, ptr %4, align 8, !tbaa !5
%13 = getelementptr inbounds %STRUCT0, ptr %12, i32 0, i32 1
store i64 0, ptr %13, align 8, !tbaa !13
%14 = load i64, ptr %6, align 8, !tbaa !9
%15 = sub i64 %14, 1
%16 = load ptr, ptr %4, align 8, !tbaa !5
%17 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 2
store i64 %15, ptr %17, align 8, !tbaa !14
%18 = load ptr, ptr %5, align 8, !tbaa !5
%19 = load ptr, ptr %4, align 8, !tbaa !5
%20 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 3
store ptr %18, ptr %20, align 8, !tbaa !15
store i32 1, ptr %3, align 4
br label %B3
B3:
%21 = load i32, ptr %3, align 4
ret i32 %21
}
; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @isMultipleTwo(i64 noundef) #1
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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!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 ([email protected]: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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !6, i64 24} | 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"
; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @ringBufferInit(ptr nocapture noundef writeonly %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @isMultipleTwo(i64 noundef %2)
%.not = icmp eq i32 %4, 0
br i1 %.not, label %9, label %5
5: ; preds = %3
%6 = add i64 %2, -1
%7 = getelementptr inbounds i8, ptr %0, i64 16
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, i8 0, i64 16, i1 false)
store i64 %6, ptr %7, align 8, !tbaa !5
%8 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %1, ptr %8, align 8, !tbaa !11
br label %9
9: ; preds = %3, %5
%.0 = phi i32 [ 1, %5 ], [ 0, %3 ]
ret i32 %.0
}
; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @isMultipleTwo(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 24}
| EarlyCSEPass,GlobalOptPass,IPSCCPPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 1355967d51224c85 | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src | ringbuffer | MIT |
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.RingBuffer = type { i64, i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local i64 @ringBufferLen(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.RingBuffer, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8, !tbaa !9
%7 = load ptr, ptr %3, align 8, !tbaa !5
%8 = getelementptr inbounds %struct.RingBuffer, ptr %7, i32 0, i32 1
%9 = load i64, ptr %8, align 8, !tbaa !12
%10 = icmp uge i64 %6, %9
br i1 %10, label %11, label %19
11: ; preds = %1
%12 = load ptr, ptr %3, align 8, !tbaa !5
%13 = getelementptr inbounds %struct.RingBuffer, ptr %12, i32 0, i32 0
%14 = load i64, ptr %13, align 8, !tbaa !9
%15 = load ptr, ptr %3, align 8, !tbaa !5
%16 = getelementptr inbounds %struct.RingBuffer, ptr %15, i32 0, i32 1
%17 = load i64, ptr %16, align 8, !tbaa !12
%18 = sub i64 %14, %17
store i64 %18, ptr %2, align 8
br label %32
19: ; preds = %1
%20 = load ptr, ptr %3, align 8, !tbaa !5
%21 = getelementptr inbounds %struct.RingBuffer, ptr %20, i32 0, i32 2
%22 = load i64, ptr %21, align 8, !tbaa !13
%23 = load ptr, ptr %3, align 8, !tbaa !5
%24 = getelementptr inbounds %struct.RingBuffer, ptr %23, i32 0, i32 1
%25 = load i64, ptr %24, align 8, !tbaa !12
%26 = load ptr, ptr %3, align 8, !tbaa !5
%27 = getelementptr inbounds %struct.RingBuffer, ptr %26, i32 0, i32 0
%28 = load i64, ptr %27, align 8, !tbaa !9
%29 = sub i64 %25, %28
%30 = sub i64 %22, %29
%31 = add i64 %30, 1
store i64 %31, ptr %2, align 8
br label %32
32: ; preds = %19, %11
%33 = load i64, ptr %2, align 8
ret i64 %33
}
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" }
!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 ([email protected]: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 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 16}
| 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"
%STRUCT0 = type { i64, i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local i64 @ringBufferLen(ptr noundef %0) #0 {
B0:
%1 = alloca i64, align 8
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %STRUCT0, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8, !tbaa !9
%6 = load ptr, ptr %2, align 8, !tbaa !5
%7 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 1
%8 = load i64, ptr %7, align 8, !tbaa !12
%9 = icmp uge i64 %5, %8
br i1 %9, label %B1, label %B2
B1:
%10 = load ptr, ptr %2, align 8, !tbaa !5
%11 = getelementptr inbounds %STRUCT0, ptr %10, i32 0, i32 0
%12 = load i64, ptr %11, align 8, !tbaa !9
%13 = load ptr, ptr %2, align 8, !tbaa !5
%14 = getelementptr inbounds %STRUCT0, ptr %13, i32 0, i32 1
%15 = load i64, ptr %14, align 8, !tbaa !12
%16 = sub i64 %12, %15
store i64 %16, ptr %1, align 8
br label %B3
B2:
%17 = load ptr, ptr %2, align 8, !tbaa !5
%18 = getelementptr inbounds %STRUCT0, ptr %17, i32 0, i32 2
%19 = load i64, ptr %18, align 8, !tbaa !13
%20 = load ptr, ptr %2, align 8, !tbaa !5
%21 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 1
%22 = load i64, ptr %21, align 8, !tbaa !12
%23 = load ptr, ptr %2, align 8, !tbaa !5
%24 = getelementptr inbounds %STRUCT0, ptr %23, i32 0, i32 0
%25 = load i64, ptr %24, align 8, !tbaa !9
%26 = sub i64 %22, %25
%27 = sub i64 %19, %26
%28 = add i64 %27, 1
store i64 %28, ptr %1, align 8
br label %B3
B3:
%29 = load i64, ptr %1, align 8
ret i64 %29
}
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" }
!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 ([email protected]: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 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 16} | 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"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i64 @ringBufferLen(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load i64, ptr %3, align 8, !tbaa !11
%.not = icmp ult i64 %2, %4
br i1 %.not, label %7, label %5
5: ; preds = %1
%6 = sub i64 %2, %4
br label %12
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %0, i64 16
%9 = load i64, ptr %8, align 8, !tbaa !12
%.neg = add nuw i64 %2, 1
%10 = sub i64 %.neg, %4
%11 = add i64 %10, %9
br label %12
12: ; preds = %7, %5
%.0 = phi i64 [ %6, %5 ], [ %11, %7 ]
ret i64 %.0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) 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" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 16}
| CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass | 14aa1e783965ed4a | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src | ringbuffer | MIT |
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.RingBuffer = type { i64, i64, i64, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind uwtable
declare hidden ptr @memcpy(ptr noundef, ptr noundef, i64 noundef) #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 uwtable
define dso_local void @ringBufferPeekMultiple(ptr noundef %0, ptr noundef %1, i64 noundef %2) #1 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i64 %2, ptr %6, align 8, !tbaa !9
%9 = load ptr, ptr %4, align 8, !tbaa !5
%10 = getelementptr inbounds %struct.RingBuffer, ptr %9, i32 0, i32 1
%11 = load i64, ptr %10, align 8, !tbaa !11
%12 = load i64, ptr %6, align 8, !tbaa !9
%13 = add i64 %11, %12
%14 = load ptr, ptr %4, align 8, !tbaa !5
%15 = getelementptr inbounds %struct.RingBuffer, ptr %14, i32 0, i32 2
%16 = load i64, ptr %15, align 8, !tbaa !13
%17 = icmp ugt i64 %13, %16
br i1 %17, label %18, label %54
18: ; preds = %3
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
%19 = load ptr, ptr %4, align 8, !tbaa !5
%20 = getelementptr inbounds %struct.RingBuffer, ptr %19, i32 0, i32 2
%21 = load i64, ptr %20, align 8, !tbaa !13
%22 = load ptr, ptr %4, align 8, !tbaa !5
%23 = getelementptr inbounds %struct.RingBuffer, ptr %22, i32 0, i32 1
%24 = load i64, ptr %23, align 8, !tbaa !11
%25 = sub i64 %21, %24
%26 = add i64 %25, 1
%27 = trunc i64 %26 to i32
store i32 %27, ptr %7, align 4, !tbaa !14
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
%28 = load i64, ptr %6, align 8, !tbaa !9
%29 = load i32, ptr %7, align 4, !tbaa !14
%30 = zext i32 %29 to i64
%31 = sub i64 %28, %30
%32 = trunc i64 %31 to i32
store i32 %32, ptr %8, align 4, !tbaa !14
%33 = load ptr, ptr %5, align 8, !tbaa !5
%34 = load ptr, ptr %4, align 8, !tbaa !5
%35 = getelementptr inbounds %struct.RingBuffer, ptr %34, i32 0, i32 3
%36 = load ptr, ptr %35, align 8, !tbaa !16
%37 = load ptr, ptr %4, align 8, !tbaa !5
%38 = getelementptr inbounds %struct.RingBuffer, ptr %37, i32 0, i32 1
%39 = load i64, ptr %38, align 8, !tbaa !11
%40 = getelementptr inbounds i8, ptr %36, i64 %39
%41 = load i32, ptr %7, align 4, !tbaa !14
%42 = zext i32 %41 to i64
%43 = call ptr @memcpy(ptr noundef %33, ptr noundef %40, i64 noundef %42)
%44 = load ptr, ptr %5, align 8, !tbaa !5
%45 = load i32, ptr %7, align 4, !tbaa !14
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load ptr, ptr %4, align 8, !tbaa !5
%49 = getelementptr inbounds %struct.RingBuffer, ptr %48, i32 0, i32 3
%50 = load ptr, ptr %49, align 8, !tbaa !16
%51 = load i32, ptr %8, align 4, !tbaa !14
%52 = zext i32 %51 to i64
%53 = call ptr @memcpy(ptr noundef %47, ptr noundef %50, i64 noundef %52)
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
br label %65
54: ; preds = %3
%55 = load ptr, ptr %5, align 8, !tbaa !5
%56 = load ptr, ptr %4, align 8, !tbaa !5
%57 = getelementptr inbounds %struct.RingBuffer, ptr %56, i32 0, i32 3
%58 = load ptr, ptr %57, align 8, !tbaa !16
%59 = load ptr, ptr %4, align 8, !tbaa !5
%60 = getelementptr inbounds %struct.RingBuffer, ptr %59, i32 0, i32 1
%61 = load i64, ptr %60, align 8, !tbaa !11
%62 = getelementptr inbounds i8, ptr %58, i64 %61
%63 = load i64, ptr %6, align 8, !tbaa !9
%64 = call ptr @memcpy(ptr noundef %55, ptr noundef %62, i64 noundef %63)
br label %65
65: ; preds = %54, %18
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 ([email protected]: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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !6, i64 24}
| 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"
%STRUCT0 = type { i64, i64, i64, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind uwtable
declare hidden ptr @memcpy(ptr noundef, ptr noundef, i64 noundef) #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 uwtable
define dso_local void @ringBufferPeekMultiple(ptr noundef %0, ptr noundef %1, i64 noundef %2) #1 {
B0:
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
store i64 %2, ptr %5, align 8, !tbaa !9
%8 = load ptr, ptr %3, align 8, !tbaa !5
%9 = getelementptr inbounds %STRUCT0, ptr %8, i32 0, i32 1
%10 = load i64, ptr %9, align 8, !tbaa !11
%11 = load i64, ptr %5, align 8, !tbaa !9
%12 = add i64 %10, %11
%13 = load ptr, ptr %3, align 8, !tbaa !5
%14 = getelementptr inbounds %STRUCT0, ptr %13, i32 0, i32 2
%15 = load i64, ptr %14, align 8, !tbaa !13
%16 = icmp ugt i64 %12, %15
br i1 %16, label %B1, label %B2
B1:
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
%17 = load ptr, ptr %3, align 8, !tbaa !5
%18 = getelementptr inbounds %STRUCT0, ptr %17, i32 0, i32 2
%19 = load i64, ptr %18, align 8, !tbaa !13
%20 = load ptr, ptr %3, align 8, !tbaa !5
%21 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 1
%22 = load i64, ptr %21, align 8, !tbaa !11
%23 = sub i64 %19, %22
%24 = add i64 %23, 1
%25 = trunc i64 %24 to i32
store i32 %25, ptr %6, align 4, !tbaa !14
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
%26 = load i64, ptr %5, align 8, !tbaa !9
%27 = load i32, ptr %6, align 4, !tbaa !14
%28 = zext i32 %27 to i64
%29 = sub i64 %26, %28
%30 = trunc i64 %29 to i32
store i32 %30, ptr %7, align 4, !tbaa !14
%31 = load ptr, ptr %4, align 8, !tbaa !5
%32 = load ptr, ptr %3, align 8, !tbaa !5
%33 = getelementptr inbounds %STRUCT0, ptr %32, i32 0, i32 3
%34 = load ptr, ptr %33, align 8, !tbaa !16
%35 = load ptr, ptr %3, align 8, !tbaa !5
%36 = getelementptr inbounds %STRUCT0, ptr %35, i32 0, i32 1
%37 = load i64, ptr %36, align 8, !tbaa !11
%38 = getelementptr inbounds i8, ptr %34, i64 %37
%39 = load i32, ptr %6, align 4, !tbaa !14
%40 = zext i32 %39 to i64
%41 = call ptr @memcpy(ptr noundef %31, ptr noundef %38, i64 noundef %40)
%42 = load ptr, ptr %4, align 8, !tbaa !5
%43 = load i32, ptr %6, align 4, !tbaa !14
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load ptr, ptr %3, align 8, !tbaa !5
%47 = getelementptr inbounds %STRUCT0, ptr %46, i32 0, i32 3
%48 = load ptr, ptr %47, align 8, !tbaa !16
%49 = load i32, ptr %7, align 4, !tbaa !14
%50 = zext i32 %49 to i64
%51 = call ptr @memcpy(ptr noundef %45, ptr noundef %48, i64 noundef %50)
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
br label %B3
B2:
%52 = load ptr, ptr %4, align 8, !tbaa !5
%53 = load ptr, ptr %3, align 8, !tbaa !5
%54 = getelementptr inbounds %STRUCT0, ptr %53, i32 0, i32 3
%55 = load ptr, ptr %54, align 8, !tbaa !16
%56 = load ptr, ptr %3, align 8, !tbaa !5
%57 = getelementptr inbounds %STRUCT0, ptr %56, i32 0, i32 1
%58 = load i64, ptr %57, align 8, !tbaa !11
%59 = getelementptr inbounds i8, ptr %55, i64 %58
%60 = load i64, ptr %5, align 8, !tbaa !9
%61 = call ptr @memcpy(ptr noundef %52, ptr noundef %59, i64 noundef %60)
br label %B3
B3:
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 ([email protected]: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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !6, i64 24} | 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"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @ringBufferPeekMultiple(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !5
%6 = add i64 %5, %2
%7 = getelementptr inbounds i8, ptr %0, i64 16
%8 = load i64, ptr %7, align 8, !tbaa !11
%9 = icmp ugt i64 %6, %8
br i1 %9, label %10, label %21
10: ; preds = %3
%11 = sub i64 %8, %5
%12 = add i64 %11, 1
%13 = and i64 %12, 4294967295
%14 = sub i64 %2, %12
%15 = getelementptr inbounds i8, ptr %0, i64 24
%16 = load ptr, ptr %15, align 8, !tbaa !12
%17 = getelementptr inbounds i8, ptr %16, i64 %5
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef align 1 %1, ptr noundef align 1 %17, i64 noundef %13, i1 false)
%18 = getelementptr inbounds i8, ptr %1, i64 %13
%19 = load ptr, ptr %15, align 8, !tbaa !12
%20 = and i64 %14, 4294967295
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef align 1 %18, ptr noundef align 1 %19, i64 noundef %20, i1 false)
br label %25
21: ; preds = %3
%22 = getelementptr inbounds i8, ptr %0, i64 24
%23 = load ptr, ptr %22, align 8, !tbaa !12
%24 = getelementptr inbounds i8, ptr %23, i64 %5
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef align 1 %1, ptr noundef align 1 %24, i64 noundef %2, i1 false)
br label %25
25: ; preds = %21, %10
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none) 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 nounwind willreturn memory(argmem: readwrite) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !10, i64 24}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass | 83eb244fbc5a9f71 | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src | ringbuffer | MIT |
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"
%class.RingBufferWrapper = type <{ ptr, %struct.RingBuffer, i8, [7 x i8] }>
%struct.RingBuffer = type { i64, i64, i64, ptr }
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperC2EPhj(ptr noundef nonnull align 8 dereferenceable(41) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i32 %2, ptr %6, align 4, !tbaa !9
%7 = load ptr, ptr %4, align 8
store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV17RingBufferWrapper, i32 0, i32 0, i32 2), ptr %7, align 8, !tbaa !11
%8 = getelementptr inbounds %class.RingBufferWrapper, ptr %7, i32 0, i32 1
%9 = getelementptr inbounds %class.RingBufferWrapper, ptr %7, i32 0, i32 2
store i8 0, ptr %9, align 8, !tbaa !13
%10 = load i32, ptr %6, align 4, !tbaa !9
%11 = zext i32 %10 to i64
%12 = invoke noundef i32 @_ZL13isMultipleTwom(i64 noundef %11)
to label %13 unwind label %40
13: ; preds = %3
%14 = icmp ne i32 %12, 0
br i1 %14, label %17, label %15
15: ; preds = %13
%16 = getelementptr inbounds %class.RingBufferWrapper, ptr %7, i32 0, i32 2
store i8 0, ptr %16, align 8, !tbaa !13
br label %32
17: ; preds = %13
%18 = getelementptr inbounds %class.RingBufferWrapper, ptr %7, i32 0, i32 1
%19 = load ptr, ptr %5, align 8, !tbaa !5
%20 = load i32, ptr %6, align 4, !tbaa !9
%21 = zext i32 %20 to i64
%22 = invoke i32 @ringBufferInit(ptr noundef %18, ptr noundef %19, i64 noundef %21)
to label %23 unwind label %40
23: ; preds = %17
%24 = icmp ne i32 %22, 0
%25 = getelementptr inbounds %class.RingBufferWrapper, ptr %7, i32 0, i32 2
%26 = zext i1 %24 to i8
store i8 %26, ptr %25, align 8, !tbaa !13
%27 = getelementptr inbounds %class.RingBufferWrapper, ptr %7, i32 0, i32 2
%28 = load i8, ptr %27, align 8, !tbaa !13, !range !18, !noundef !19
%29 = trunc i8 %28 to i1
br i1 %29, label %31, label %30
30: ; preds = %23
br label %32
31: ; preds = %23
br label %39
32: ; preds = %30, %15
%33 = load ptr, ptr %5, align 8, !tbaa !5
%34 = icmp eq ptr %33, null
br i1 %34, label %36, label %35
35: ; preds = %32
call void @_ZdaPv(ptr noundef %33) #5
br label %36
36: ; preds = %35, %32
%37 = getelementptr inbounds %class.RingBufferWrapper, ptr %7, i32 0, i32 1
%38 = getelementptr inbounds %struct.RingBuffer, ptr %37, i32 0, i32 3
store ptr null, ptr %38, align 8, !tbaa !20
br label %39
39: ; preds = %36, %31
ret void
40: ; preds = %17, %3
%41 = landingpad { ptr, i32 }
catch ptr null
%42 = extractvalue { ptr, i32 } %41, 0
call void @__clang_call_terminate(ptr %42) #6
unreachable
}
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL13isMultipleTwom(i64 noundef) #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2
declare i32 @ringBufferInit(ptr noundef, ptr noundef, i64 noundef) #3
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #4
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #2 = { noinline noreturn nounwind uwtable "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 = { nobuiltin 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 #5 = { builtin 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !17, i64 40}
!14 = !{!"_ZTS17RingBufferWrapper", !15, i64 8, !17, i64 40}
!15 = !{!"_ZTS10RingBuffer", !16, i64 0, !16, i64 8, !16, i64 16, !6, i64 24}
!16 = !{!"long", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!14, !6, i64 32}
| 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"
%STRUCT0 = type <{ ptr, %STRUCT1, i8, [7 x i8] }>
%STRUCT1 = type { i64, i64, i64, ptr }
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperC2EPhj(ptr noundef nonnull align 8 dereferenceable(41) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
B0:
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
store i32 %2, ptr %5, align 4, !tbaa !9
%6 = load ptr, ptr %3, align 8
store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV17RingBufferWrapper, i32 0, i32 0, i32 2), ptr %6, align 8, !tbaa !11
%7 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 1
%8 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 2
store i8 0, ptr %8, align 8, !tbaa !13
%9 = load i32, ptr %5, align 4, !tbaa !9
%10 = zext i32 %9 to i64
%11 = invoke noundef i32 @_ZL13isMultipleTwom(i64 noundef %10)
to label %B1 unwind label %B11
B1:
%12 = icmp ne i32 %11, 0
br i1 %12, label %B3, label %B2
B2:
%13 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 2
store i8 0, ptr %13, align 8, !tbaa !13
br label %B7
B3:
%14 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 1
%15 = load ptr, ptr %4, align 8, !tbaa !5
%16 = load i32, ptr %5, align 4, !tbaa !9
%17 = zext i32 %16 to i64
%18 = invoke i32 @ringBufferInit(ptr noundef %14, ptr noundef %15, i64 noundef %17)
to label %B4 unwind label %B11
B4:
%19 = icmp ne i32 %18, 0
%20 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 2
%21 = zext i1 %19 to i8
store i8 %21, ptr %20, align 8, !tbaa !13
%22 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 2
%23 = load i8, ptr %22, align 8, !tbaa !13, !range !18, !noundef !19
%24 = trunc i8 %23 to i1
br i1 %24, label %B6, label %B5
B5:
br label %B7
B6:
br label %B10
B7:
%25 = load ptr, ptr %4, align 8, !tbaa !5
%26 = icmp eq ptr %25, null
br i1 %26, label %B9, label %B8
B8:
call void @_ZdaPv(ptr noundef %25) #5
br label %B9
B9:
%27 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 1
%28 = getelementptr inbounds %STRUCT1, ptr %27, i32 0, i32 3
store ptr null, ptr %28, align 8, !tbaa !20
br label %B10
B10:
ret void
B11:
%29 = landingpad { ptr, i32 }
catch ptr null
%30 = extractvalue { ptr, i32 } %29, 0
call void @__clang_call_terminate(ptr %30) #6
unreachable
}
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL13isMultipleTwom(i64 noundef) #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2
declare i32 @ringBufferInit(ptr noundef, ptr noundef, i64 noundef) #3
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #4
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #2 = { noinline noreturn nounwind uwtable "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 = { nobuiltin 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 #5 = { builtin 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !17, i64 40}
!14 = !{!"_ZTS17RingBufferWrapper", !15, i64 8, !17, i64 40}
!15 = !{!"_ZTS10RingBuffer", !16, i64 0, !16, i64 8, !16, i64 16, !6, i64 24}
!16 = !{!"long", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!14, !6, i64 32} | 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"
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperC2EPhj(ptr noundef nonnull align 8 dereferenceable(41) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTV17RingBufferWrapper, i64 16), ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds i8, ptr %0, i64 40
store i8 0, ptr %4, align 8, !tbaa !8
%5 = zext i32 %2 to i64
%6 = tail call noundef i32 @_ZL13isMultipleTwom(i64 noundef %5)
%.not = icmp eq i32 %6, 0
br i1 %.not, label %7, label %8
7: ; preds = %3
store i8 0, ptr %4, align 8, !tbaa !8
br label %14
8: ; preds = %3
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = invoke i32 @ringBufferInit(ptr noundef nonnull %9, ptr noundef %1, i64 noundef %5)
to label %11 unwind label %20
11: ; preds = %8
%12 = icmp ne i32 %10, 0
%13 = zext i1 %12 to i8
store i8 %13, ptr %4, align 8, !tbaa !8
br i1 %12, label %19, label %14
14: ; preds = %11, %7
%15 = icmp eq ptr %1, null
br i1 %15, label %17, label %16
16: ; preds = %14
tail call void @_ZdaPv(ptr noundef nonnull %1) #5
br label %17
17: ; preds = %16, %14
%18 = getelementptr inbounds i8, ptr %0, i64 32
store ptr null, ptr %18, align 8, !tbaa !15
br label %19
19: ; preds = %11, %17
ret void
20: ; preds = %8
%21 = landingpad { ptr, i32 }
catch ptr null
%22 = extractvalue { ptr, i32 } %21, 0
tail call void @__clang_call_terminate(ptr %22) #6
unreachable
}
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL13isMultipleTwom(i64 noundef) local_unnamed_addr #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #2
declare i32 @ringBufferInit(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #2 = { noinline noreturn nounwind uwtable "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 = { nobuiltin 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 #5 = { builtin 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 40}
!9 = !{!"_ZTS17RingBufferWrapper", !10, i64 8, !14, i64 40}
!10 = !{!"_ZTS10RingBuffer", !11, i64 0, !11, i64 8, !11, i64 16, !13, i64 24}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"any pointer", !12, i64 0}
!14 = !{!"bool", !12, i64 0}
!15 = !{!9, !13, i64 32}
| CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass | 9532890b69e8f419 | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src/ringbufferwrapper.ll | ZN17RingBufferWrapperC2EPhj | MIT |
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"
%class.RingBufferWrapper = type <{ ptr, %struct.RingBuffer, i8, [7 x i8] }>
%struct.RingBuffer = type { i64, i64, i64, ptr }
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL13isMultipleTwom(i64 noundef) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1
declare i32 @ringBufferInit(ptr noundef, ptr noundef, i64 noundef) #2
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperC2Ej(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8, !tbaa !5
store i32 %1, ptr %4, align 4, !tbaa !9
%6 = load ptr, ptr %3, align 8
store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV17RingBufferWrapper, i32 0, i32 0, i32 2), ptr %6, align 8, !tbaa !11
%7 = getelementptr inbounds %class.RingBufferWrapper, ptr %6, i32 0, i32 1
%8 = getelementptr inbounds %class.RingBufferWrapper, ptr %6, i32 0, i32 2
store i8 0, ptr %8, align 8, !tbaa !13
%9 = load i32, ptr %4, align 4, !tbaa !9
%10 = zext i32 %9 to i64
%11 = invoke noundef i32 @_ZL13isMultipleTwom(i64 noundef %10)
to label %12 unwind label %41
12: ; preds = %2
%13 = icmp ne i32 %11, 0
br i1 %13, label %15, label %14
14: ; preds = %12
br label %40
15: ; preds = %12
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
%16 = load i32, ptr %4, align 4, !tbaa !9
%17 = zext i32 %16 to i64
%18 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %17) #8
to label %19 unwind label %41
19: ; preds = %15
store ptr %18, ptr %5, align 8, !tbaa !5
%20 = getelementptr inbounds %class.RingBufferWrapper, ptr %6, i32 0, i32 1
%21 = load ptr, ptr %5, align 8, !tbaa !5
%22 = load i32, ptr %4, align 4, !tbaa !9
%23 = zext i32 %22 to i64
%24 = invoke i32 @ringBufferInit(ptr noundef %20, ptr noundef %21, i64 noundef %23)
to label %25 unwind label %41
25: ; preds = %19
%26 = icmp ne i32 %24, 0
%27 = getelementptr inbounds %class.RingBufferWrapper, ptr %6, i32 0, i32 2
%28 = zext i1 %26 to i8
store i8 %28, ptr %27, align 8, !tbaa !13
%29 = getelementptr inbounds %class.RingBufferWrapper, ptr %6, i32 0, i32 2
%30 = load i8, ptr %29, align 8, !tbaa !13, !range !18, !noundef !19
%31 = trunc i8 %30 to i1
br i1 %31, label %39, label %32
32: ; preds = %25
%33 = load ptr, ptr %5, align 8, !tbaa !5
%34 = icmp eq ptr %33, null
br i1 %34, label %36, label %35
35: ; preds = %32
call void @_ZdaPv(ptr noundef %33) #9
br label %36
36: ; preds = %35, %32
%37 = getelementptr inbounds %class.RingBufferWrapper, ptr %6, i32 0, i32 1
%38 = getelementptr inbounds %struct.RingBuffer, ptr %37, i32 0, i32 3
store ptr null, ptr %38, align 8, !tbaa !20
br label %39
39: ; preds = %36, %25
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
br label %40
40: ; preds = %39, %14
ret void
41: ; preds = %19, %15, %2
%42 = landingpad { ptr, i32 }
catch ptr null
%43 = extractvalue { ptr, i32 } %42, 0
call void @__clang_call_terminate(ptr %43) #10
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5
; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5
attributes #0 = { inlinehint mustprogress 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 = { noinline noreturn nounwind uwtable "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 = { "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 = { nobuiltin 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 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !17, i64 40}
!14 = !{!"_ZTS17RingBufferWrapper", !15, i64 8, !17, i64 40}
!15 = !{!"_ZTS10RingBuffer", !16, i64 0, !16, i64 8, !16, i64 16, !6, i64 24}
!16 = !{!"long", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!14, !6, i64 32}
| 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"
%STRUCT0 = type <{ ptr, %STRUCT1, i8, [7 x i8] }>
%STRUCT1 = type { i64, i64, i64, ptr }
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL13isMultipleTwom(i64 noundef) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1
declare i32 @ringBufferInit(ptr noundef, ptr noundef, i64 noundef) #2
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperC2Ej(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
B0:
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
store i32 %1, ptr %3, align 4, !tbaa !9
%5 = load ptr, ptr %2, align 8
store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV17RingBufferWrapper, i32 0, i32 0, i32 2), ptr %5, align 8, !tbaa !11
%6 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 1
%7 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 2
store i8 0, ptr %7, align 8, !tbaa !13
%8 = load i32, ptr %3, align 4, !tbaa !9
%9 = zext i32 %8 to i64
%10 = invoke noundef i32 @_ZL13isMultipleTwom(i64 noundef %9)
to label %B1 unwind label %B11
B1:
%11 = icmp ne i32 %10, 0
br i1 %11, label %B3, label %B2
B2:
br label %B10
B3:
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
%12 = load i32, ptr %3, align 4, !tbaa !9
%13 = zext i32 %12 to i64
%14 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %13) #8
to label %B4 unwind label %B11
B4:
store ptr %14, ptr %4, align 8, !tbaa !5
%15 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 1
%16 = load ptr, ptr %4, align 8, !tbaa !5
%17 = load i32, ptr %3, align 4, !tbaa !9
%18 = zext i32 %17 to i64
%19 = invoke i32 @ringBufferInit(ptr noundef %15, ptr noundef %16, i64 noundef %18)
to label %B5 unwind label %B11
B5:
%20 = icmp ne i32 %19, 0
%21 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 2
%22 = zext i1 %20 to i8
store i8 %22, ptr %21, align 8, !tbaa !13
%23 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 2
%24 = load i8, ptr %23, align 8, !tbaa !13, !range !18, !noundef !19
%25 = trunc i8 %24 to i1
br i1 %25, label %B9, label %B6
B6:
%26 = load ptr, ptr %4, align 8, !tbaa !5
%27 = icmp eq ptr %26, null
br i1 %27, label %B8, label %B7
B7:
call void @_ZdaPv(ptr noundef %26) #9
br label %B8
B8:
%28 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 1
%29 = getelementptr inbounds %STRUCT1, ptr %28, i32 0, i32 3
store ptr null, ptr %29, align 8, !tbaa !20
br label %B9
B9:
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
br label %B10
B10:
ret void
B11:
%30 = landingpad { ptr, i32 }
catch ptr null
%31 = extractvalue { ptr, i32 } %30, 0
call void @__clang_call_terminate(ptr %31) #10
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5
; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5
attributes #0 = { inlinehint mustprogress 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 = { noinline noreturn nounwind uwtable "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 = { "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 = { nobuiltin 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 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !17, i64 40}
!14 = !{!"_ZTS17RingBufferWrapper", !15, i64 8, !17, i64 40}
!15 = !{!"_ZTS10RingBuffer", !16, i64 0, !16, i64 8, !16, i64 16, !6, i64 24}
!16 = !{!"long", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!14, !6, i64 32} | 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"
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL13isMultipleTwom(i64 noundef) local_unnamed_addr #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1
declare i32 @ringBufferInit(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperC2Ej(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTV17RingBufferWrapper, i64 16), ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds i8, ptr %0, i64 40
store i8 0, ptr %3, align 8, !tbaa !8
%4 = zext i32 %1 to i64
%5 = tail call noundef i32 @_ZL13isMultipleTwom(i64 noundef %4)
%.not = icmp eq i32 %5, 0
br i1 %.not, label %16, label %6
6: ; preds = %2
%7 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %4) #6
to label %8 unwind label %17
8: ; preds = %6
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = invoke i32 @ringBufferInit(ptr noundef nonnull %9, ptr noundef nonnull %7, i64 noundef %4)
to label %11 unwind label %17
11: ; preds = %8
%12 = icmp ne i32 %10, 0
%13 = zext i1 %12 to i8
store i8 %13, ptr %3, align 8, !tbaa !8
br i1 %12, label %16, label %14
14: ; preds = %11
tail call void @_ZdaPv(ptr noundef nonnull %7) #7
%15 = getelementptr inbounds i8, ptr %0, i64 32
store ptr null, ptr %15, align 8, !tbaa !15
br label %16
16: ; preds = %11, %14, %2
ret void
17: ; preds = %8, %6
%18 = landingpad { ptr, i32 }
catch ptr null
%19 = extractvalue { ptr, i32 } %18, 0
tail call void @__clang_call_terminate(ptr %19) #8
unreachable
}
; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5
attributes #0 = { inlinehint mustprogress 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 = { noinline noreturn nounwind uwtable "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 = { "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 = { nobuiltin 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 = { mustprogress 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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }
attributes #8 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 40}
!9 = !{!"_ZTS17RingBufferWrapper", !10, i64 8, !14, i64 40}
!10 = !{!"_ZTS10RingBuffer", !11, i64 0, !11, i64 8, !11, i64 16, !13, i64 24}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"any pointer", !12, i64 0}
!14 = !{!"bool", !12, i64 0}
!15 = !{!9, !13, i64 32}
| CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass | 42ad0941dcf4fb32 | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src/ringbufferwrapper.ll | ZN17RingBufferWrapperC2Ej | MIT |
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"
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperD0Ev(ptr noundef nonnull align 8 dereferenceable(41) %0) unnamed_addr #0 align 2 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%3 = load ptr, ptr %2, align 8
call void @_ZN17RingBufferWrapperD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %3) #2
call void @_ZdlPvm(ptr noundef %3, i64 noundef 48) #3
ret void
}
; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1
declare void @_ZN17RingBufferWrapperD1Ev(ptr)
attributes #0 = { mustprogress 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 = { nobuiltin 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 = { nounwind }
attributes #3 = { builtin 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 ([email protected]: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++ TBAA"}
| 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"
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperD0Ev(ptr noundef nonnull align 8 dereferenceable(41) %0) unnamed_addr #0 align 2 {
B0:
%1 = alloca ptr, align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%2 = load ptr, ptr %1, align 8
call void @_ZN17RingBufferWrapperD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %2) #2
call void @_ZdlPvm(ptr noundef %2, i64 noundef 48) #3
ret void
}
; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1
declare void @_ZN17RingBufferWrapperD1Ev(ptr)
attributes #0 = { mustprogress 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 = { nobuiltin 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 = { nounwind }
attributes #3 = { builtin 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 ([email protected]: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++ TBAA"} | 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"
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperD0Ev(ptr noundef nonnull align 8 dereferenceable(41) %0) unnamed_addr #0 align 2 {
tail call void @_ZN17RingBufferWrapperD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %0) #2
tail call void @_ZdlPvm(ptr noundef nonnull %0, i64 noundef 48) #3
ret void
}
; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1
declare void @_ZN17RingBufferWrapperD1Ev(ptr) local_unnamed_addr
attributes #0 = { mustprogress 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 = { nobuiltin 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 = { nounwind }
attributes #3 = { builtin 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
| CorrelatedValuePropagationPass,GlobalOptPass,SROAPass,TailCallElimPass | 4349933aa71dc6fe | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src/ringbufferwrapper.ll | ZN17RingBufferWrapperD0Ev | MIT |
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"
%class.RingBufferWrapper = type <{ ptr, %struct.RingBuffer, i8, [7 x i8] }>
%struct.RingBuffer = type { i64, i64, i64, ptr }
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #0
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(41) %0) unnamed_addr #1 align 2 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%3 = load ptr, ptr %2, align 8
store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV17RingBufferWrapper, i32 0, i32 0, i32 2), ptr %3, align 8, !tbaa !9
%4 = getelementptr inbounds %class.RingBufferWrapper, ptr %3, i32 0, i32 1
%5 = getelementptr inbounds %struct.RingBuffer, ptr %4, i32 0, i32 3
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = getelementptr inbounds %class.RingBufferWrapper, ptr %3, i32 0, i32 1
%10 = getelementptr inbounds %struct.RingBuffer, ptr %9, i32 0, i32 3
%11 = load ptr, ptr %10, align 8, !tbaa !11
%12 = icmp eq ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %8
call void @_ZdaPv(ptr noundef %11) #2
br label %14
14: ; preds = %13, %8
br label %15
15: ; preds = %14, %1
ret void
}
attributes #0 = { nobuiltin 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 #1 = { mustprogress 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 #2 = { builtin 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"_ZTS17RingBufferWrapper", !13, i64 8, !15, i64 40}
!13 = !{!"_ZTS10RingBuffer", !14, i64 0, !14, i64 8, !14, i64 16, !6, i64 24}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
| 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"
%STRUCT0 = type <{ ptr, %STRUCT1, i8, [7 x i8] }>
%STRUCT1 = type { i64, i64, i64, ptr }
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #0
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(41) %0) unnamed_addr #1 align 2 {
B0:
%1 = alloca ptr, align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%2 = load ptr, ptr %1, align 8
store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV17RingBufferWrapper, i32 0, i32 0, i32 2), ptr %2, align 8, !tbaa !9
%3 = getelementptr inbounds %STRUCT0, ptr %2, i32 0, i32 1
%4 = getelementptr inbounds %STRUCT1, ptr %3, i32 0, i32 3
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = icmp ne ptr %5, null
br i1 %6, label %B1, label %B4
B1:
%7 = getelementptr inbounds %STRUCT0, ptr %2, i32 0, i32 1
%8 = getelementptr inbounds %STRUCT1, ptr %7, i32 0, i32 3
%9 = load ptr, ptr %8, align 8, !tbaa !11
%10 = icmp eq ptr %9, null
br i1 %10, label %B3, label %B2
B2:
call void @_ZdaPv(ptr noundef %9) #2
br label %B3
B3:
br label %B4
B4:
ret void
}
attributes #0 = { nobuiltin 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 #1 = { mustprogress 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 #2 = { builtin 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"_ZTS17RingBufferWrapper", !13, i64 8, !15, i64 40}
!13 = !{!"_ZTS10RingBuffer", !14, i64 0, !14, i64 8, !14, i64 16, !6, i64 24}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0} | 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"
@_ZTV17RingBufferWrapper = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #0
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17RingBufferWrapperD2Ev(ptr nocapture noundef nonnull align 8 dereferenceable(41) %0) unnamed_addr #1 align 2 {
store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTV17RingBufferWrapper, i64 16), ptr %0, align 8, !tbaa !5
%2 = getelementptr inbounds i8, ptr %0, i64 32
%3 = load ptr, ptr %2, align 8, !tbaa !8
%.not = icmp eq ptr %3, null
br i1 %.not, label %5, label %4
4: ; preds = %1
tail call void @_ZdaPv(ptr noundef nonnull %3) #2
br label %5
5: ; preds = %4, %1
ret void
}
attributes #0 = { nobuiltin 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 #1 = { mustprogress 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 #2 = { builtin 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 32}
!9 = !{!"_ZTS17RingBufferWrapper", !10, i64 8, !14, i64 40}
!10 = !{!"_ZTS10RingBuffer", !11, i64 0, !11, i64 8, !11, i64 16, !13, i64 24}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"any pointer", !12, i64 0}
!14 = !{!"bool", !12, i64 0}
| CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | fb08b30d6999eb69 | Ultrawipf/OpenFFBoard | Firmware/FFBoard/Src/ringbufferwrapper.ll | ZN17RingBufferWrapperD2Ev | MIT |
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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder10printSeedsEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #3 align 2 {
%2 = alloca ptr, align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%5 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
%6 = getelementptr inbounds %class.Community_Finder, ptr %5, i32 0, i32 2
%7 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
%8 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %7, ptr %8, align 8
br label %9
9: ; preds = %18, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
%10 = getelementptr inbounds %class.Community_Finder, ptr %5, i32 0, i32 2
%11 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
%12 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
store ptr %11, ptr %12, align 8
%13 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
br i1 %13, label %15, label %14
14: ; preds = %9
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
br label %20
15: ; preds = %9
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
%17 = load ptr, ptr %16, align 8, !tbaa !5
call void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152) %17)
br label %18
18: ; preds = %15
%19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
br label %9, !llvm.loop !9
20: ; preds = %14
ret void
}
declare void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152)) #4
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%STRUCT0 = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder10printSeedsEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #3 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%4 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
%5 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
%6 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
%7 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %2, i32 0, i32 0
store ptr %6, ptr %7, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
%8 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
%9 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
%10 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %9, ptr %10, align 8
%11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
br i1 %11, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
br label %B5
B3:
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
%13 = load ptr, ptr %12, align 8, !tbaa !5
call void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152) %13)
br label %B4
B4:
%14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
br label %B1, !llvm.loop !9
B5:
ret void
}
declare void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152)) #4
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder10printSeedsEv(ptr noundef nonnull align 8 dereferenceable(56) %0) local_unnamed_addr #3 align 2 {
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
%4 = getelementptr inbounds i8, ptr %0, i64 32
%5 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
store ptr %5, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
%6 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
store ptr %6, ptr %3, align 8
%7 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br i1 %7, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
ret void
.lr.ph: ; preds = %1, %.lr.ph
%8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
%9 = load ptr, ptr %8, align 8, !tbaa !5
call void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152) %9)
%10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
%11 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
store ptr %11, ptr %3, align 8
%12 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br i1 %12, label %.lr.ph, label %._crit_edge, !llvm.loop !9
}
declare void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #4
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 1c08c864c1fd6053 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Community_Finder.ll | ZN16Community_Finder10printSeedsEv | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.18 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca ptr, align 8
%3 = alloca %"class.std::vector.12", align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%10 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #5
call void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
%11 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.18)
to label %12 unwind label %22
12: ; preds = %1
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
%13 = getelementptr inbounds %class.Community_Finder, ptr %10, i32 0, i32 2
%14 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
%15 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
store ptr %14, ptr %15, align 8
br label %16
16: ; preds = %49, %12
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
%17 = getelementptr inbounds %class.Community_Finder, ptr %10, i32 0, i32 2
%18 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
%19 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
store ptr %18, ptr %19, align 8
%20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
br i1 %20, label %26, label %21
21: ; preds = %16
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
br label %51
22: ; preds = %61, %51, %1
%23 = landingpad { ptr, i32 }
cleanup
%24 = extractvalue { ptr, i32 } %23, 0
store ptr %24, ptr %4, align 8
%25 = extractvalue { ptr, i32 } %23, 1
store i32 %25, ptr %5, align 4
br label %64
26: ; preds = %16
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
%28 = load ptr, ptr %27, align 8, !tbaa !5
%29 = getelementptr inbounds %class.Seed, ptr %28, i32 0, i32 1
%30 = load i8, ptr %29, align 8, !tbaa !9, !range !29, !noundef !30
%31 = trunc i8 %30 to i1
br i1 %31, label %32, label %41
32: ; preds = %26
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
%34 = load ptr, ptr %33, align 8, !tbaa !5
%35 = icmp eq ptr %34, null
br i1 %35, label %40, label %36
36: ; preds = %32
%37 = load ptr, ptr %34, align 8, !tbaa !31
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
call void %39(ptr noundef nonnull align 8 dereferenceable(152) %34) #5
br label %40
40: ; preds = %36, %32
br label %48
41: ; preds = %26
%42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %42)
to label %43 unwind label %44
43: ; preds = %41
br label %48
44: ; preds = %41
%45 = landingpad { ptr, i32 }
cleanup
%46 = extractvalue { ptr, i32 } %45, 0
store ptr %46, ptr %4, align 8
%47 = extractvalue { ptr, i32 } %45, 1
store i32 %47, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
br label %64
48: ; preds = %43, %40
br label %49
49: ; preds = %48
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
br label %16, !llvm.loop !33
51: ; preds = %21
%52 = getelementptr inbounds %class.Community_Finder, ptr %10, i32 0, i32 2
%53 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
%54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
store ptr %53, ptr %54, align 8
%55 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
%56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
store ptr %55, ptr %56, align 8
%57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
%58 = load ptr, ptr %57, align 8
%59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
%60 = load ptr, ptr %59, align 8
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr %58, ptr %60)
to label %61 unwind label %22
61: ; preds = %51
%62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.19)
to label %63 unwind label %22
63: ; preds = %61
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
ret void
64: ; preds = %44, %22
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
br label %65
65: ; preds = %64
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %5, align 4
%68 = insertvalue { ptr, i32 } poison, ptr %66, 0
%69 = insertvalue { ptr, i32 } %68, i32 %67, 1
resume { ptr, i32 } %69
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) #4 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS4Seed", !11, i64 8, !12, i64 16, !21, i64 64, !25, i64 88, !25, i64 92, !11, i64 96, !26, i64 104}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIiE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !15, i64 0, !17, i64 8}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!32, !32, i64 0}
!32 = !{!"vtable pointer", !8, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%STRUCT0 = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%STRUCT1 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.18 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.std::vector.12", align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%9 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %2) #5
call void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
%10 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.18)
to label %B1 unwind label %B4
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
%11 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 2
%12 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
%13 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
store ptr %12, ptr %13, align 8
br label %B2
B2:
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
%14 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 2
%15 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
%16 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
store ptr %15, ptr %16, align 8
%17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
br i1 %17, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
br label %B14
B4:
%18 = landingpad { ptr, i32 }
cleanup
%19 = extractvalue { ptr, i32 } %18, 0
store ptr %19, ptr %3, align 8
%20 = extractvalue { ptr, i32 } %18, 1
store i32 %20, ptr %4, align 4
br label %B17
B5:
%21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
%22 = load ptr, ptr %21, align 8, !tbaa !5
%23 = getelementptr inbounds %STRUCT1, ptr %22, i32 0, i32 1
%24 = load i8, ptr %23, align 8, !tbaa !9, !range !29, !noundef !30
%25 = trunc i8 %24 to i1
br i1 %25, label %B6, label %B9
B6:
%26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
%27 = load ptr, ptr %26, align 8, !tbaa !5
%28 = icmp eq ptr %27, null
br i1 %28, label %B8, label %B7
B7:
%29 = load ptr, ptr %27, align 8, !tbaa !31
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
call void %31(ptr noundef nonnull align 8 dereferenceable(152) %27) #5
br label %B8
B8:
br label %B12
B9:
%32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %32)
to label %B10 unwind label %B11
B10:
br label %B12
B11:
%33 = landingpad { ptr, i32 }
cleanup
%34 = extractvalue { ptr, i32 } %33, 0
store ptr %34, ptr %3, align 8
%35 = extractvalue { ptr, i32 } %33, 1
store i32 %35, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
br label %B17
B12:
br label %B13
B13:
%36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
br label %B2, !llvm.loop !33
B14:
%37 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 2
%38 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
%39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
store ptr %38, ptr %39, align 8
%40 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
%41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
store ptr %40, ptr %41, align 8
%42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
%43 = load ptr, ptr %42, align 8
%44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
%45 = load ptr, ptr %44, align 8
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr %43, ptr %45)
to label %B15 unwind label %B4
B15:
%46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.19)
to label %B16 unwind label %B4
B16:
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
ret void
B17:
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
br label %B18
B18:
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %4, align 4
%49 = insertvalue { ptr, i32 } poison, ptr %47, 0
%50 = insertvalue { ptr, i32 } %49, i32 %48, 1
resume { ptr, i32 } %50
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) #4 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS4Seed", !11, i64 8, !12, i64 16, !21, i64 64, !25, i64 88, !25, i64 92, !11, i64 96, !26, i64 104}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIiE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !15, i64 0, !17, i64 8}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!32, !32, i64 0}
!32 = !{!"vtable pointer", !8, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.18 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca %"class.std::vector.12", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
call void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
%5 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.18)
to label %6 unwind label %13
6: ; preds = %1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
%7 = getelementptr inbounds i8, ptr %0, i64 32
%8 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
store ptr %8, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
%9 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
store ptr %9, ptr %4, align 8
%10 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
br i1 %10, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %31, %6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
%11 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
%12 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %11, ptr %12)
to label %35 unwind label %13
13: ; preds = %35, %._crit_edge, %1
%14 = landingpad { ptr, i32 }
cleanup
br label %38
.lr.ph: ; preds = %6, %31
%15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
%16 = load ptr, ptr %15, align 8, !tbaa !5
%17 = getelementptr inbounds i8, ptr %16, i64 8
%18 = load i8, ptr %17, align 8, !tbaa !9, !range !29, !noundef !30
%19 = trunc nuw i8 %18 to i1
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
br i1 %19, label %21, label %28
21: ; preds = %.lr.ph
%22 = load ptr, ptr %20, align 8, !tbaa !5
%23 = icmp eq ptr %22, null
br i1 %23, label %31, label %24
24: ; preds = %21
%25 = load ptr, ptr %22, align 8, !tbaa !31
%26 = getelementptr inbounds i8, ptr %25, i64 8
%27 = load ptr, ptr %26, align 8
call void %27(ptr noundef nonnull align 8 dereferenceable(152) %22) #5
br label %31
28: ; preds = %.lr.ph
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %20)
to label %31 unwind label %29
29: ; preds = %28
%30 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br label %38
31: ; preds = %24, %21, %28
%32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
%33 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
store ptr %33, ptr %4, align 8
%34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !33
35: ; preds = %._crit_edge
%36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.19)
to label %37 unwind label %13
37: ; preds = %35
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
ret void
38: ; preds = %29, %13
%.pn = phi { ptr, i32 } [ %30, %29 ], [ %14, %13 ]
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
resume { ptr, i32 } %.pn
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) local_unnamed_addr #4 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS4Seed", !11, i64 8, !12, i64 16, !21, i64 64, !25, i64 88, !25, i64 92, !11, i64 96, !26, i64 104}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIiE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !15, i64 0, !17, i64 8}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!32, !32, i64 0}
!32 = !{!"vtable pointer", !8, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 41d8562b1c90206c | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Community_Finder.ll | ZN16Community_Finder12sweepTheDeadEv | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.bloomGraph = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.28" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.29" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@t0 = external dso_local global i64, align 8
@numberOfCliquesProcessed = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@theGlobalGraph = external global %struct.bloomGraph, align 8
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@nodeToSeeds = external global %"class.std::vector.23", align 8
@.str.16 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [34 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder15initialiseSeedsEPKci(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
%8 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
%14 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i32 %2, ptr %6, align 4, !tbaa !9
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8, !tbaa !5
call void @_ZN13graph_loading26loadSimpleIntGraphFromFileER10bloomGraphIiEPKc(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, ptr noundef %16)
%17 = load i32, ptr %6, align 4, !tbaa !9
call void @_ZN7cliques18findCliquesJustIDsI16Community_FinderEEvRK10bloomGraphIiERT_j(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, ptr noundef nonnull align 8 dereferenceable(56) %15, i32 noundef %17)
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.14)
%19 = getelementptr inbounds %class.Community_Finder, ptr %15, i32 0, i32 1
%20 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
%21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %20)
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef @.str.15)
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds) #9
%24 = load i64, ptr getelementptr inbounds (%struct.bloomGraph, ptr @theGlobalGraph, i32 0, i32 4), align 8, !tbaa !11
call void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %24)
store i32 0, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
%25 = getelementptr inbounds %class.Community_Finder, ptr %15, i32 0, i32 1
%26 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
%27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %7, i32 0, i32 0
store ptr %26, ptr %27, align 8
br label %28
28: ; preds = %82, %3
call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
%29 = getelementptr inbounds %class.Community_Finder, ptr %15, i32 0, i32 1
%30 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
%31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %8, i32 0, i32 0
store ptr %30, ptr %31, align 8
%32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
br i1 %32, label %34, label %33
33: ; preds = %28
store i32 2, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
br label %84
34: ; preds = %28
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
%35 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 152) #10
invoke void @_ZN4SeedC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %35)
to label %36 unwind label %46
36: ; preds = %34
store ptr %35, ptr %10, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
%37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
%38 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #9
%39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %13, i32 0, i32 0
store ptr %38, ptr %39, align 8
br label %40
40: ; preds = %54, %36
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
%41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
%42 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
%43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %14, i32 0, i32 0
store ptr %42, ptr %43, align 8
%44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
br i1 %44, label %50, label %45
45: ; preds = %40
store i32 5, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
br label %56
46: ; preds = %34
%47 = landingpad { ptr, i32 }
cleanup
%48 = extractvalue { ptr, i32 } %47, 0
store ptr %48, ptr %11, align 8
%49 = extractvalue { ptr, i32 } %47, 1
store i32 %49, ptr %12, align 4
call void @_ZdlPvm(ptr noundef %35, i64 noundef 152) #11
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
br label %98
50: ; preds = %40
%51 = load ptr, ptr %10, align 8, !tbaa !5
%52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
%53 = load i32, ptr %52, align 4, !tbaa !9
call void @_ZN4Seed16addNodeNoCachingEi(ptr noundef nonnull align 8 dereferenceable(152) %51, i32 noundef %53)
br label %54
54: ; preds = %50
%55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
br label %40, !llvm.loop !22
56: ; preds = %45
%57 = getelementptr inbounds %class.Community_Finder, ptr %15, i32 0, i32 2
call void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(8) %10)
%58 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
%59 = add nsw i32 %58, 1
store i32 %59, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
%60 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
%61 = srem i32 %60, 1000
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %81
63: ; preds = %56
%64 = load ptr, ptr @stderr, align 8, !tbaa !5
%65 = call i64 @clock() #9
%66 = load i64, ptr @t0, align 8, !tbaa !24
%67 = sub nsw i64 %65, %66
%68 = sitofp i64 %67 to double
%69 = fdiv double %68, 1.000000e+06
%70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str, double noundef %69) #9
%71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
%72 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
%73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %71, i32 noundef %72)
%74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef @.str.3)
%75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.16)
%77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
%78 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
%79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %76, i64 noundef %78)
%80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %81
81: ; preds = %63, %56
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
br label %82
82: ; preds = %81
%83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
br label %28, !llvm.loop !25
84: ; preds = %33
%85 = getelementptr inbounds %class.Community_Finder, ptr %15, i32 0, i32 1
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #9
call void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56) %15)
%86 = load ptr, ptr @stderr, align 8, !tbaa !5
%87 = call i64 @clock() #9
%88 = load i64, ptr @t0, align 8, !tbaa !24
%89 = sub nsw i64 %87, %88
%90 = sitofp i64 %89 to double
%91 = fdiv double %90, 1.000000e+06
%92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str, double noundef %91) #9
%93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.17)
%94 = getelementptr inbounds %class.Community_Finder, ptr %15, i32 0, i32 2
%95 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #9
%96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %93, i64 noundef %95)
%97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
98: ; preds = %46
%99 = load ptr, ptr %11, align 8
%100 = load i32, ptr %12, align 4
%101 = insertvalue { ptr, i32 } poison, ptr %99, 0
%102 = insertvalue { ptr, i32 } %101, i32 %100, 1
resume { ptr, i32 } %102
}
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2
declare void @_ZN13graph_loading26loadSimpleIntGraphFromFileER10bloomGraphIiEPKc(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) #6
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cliques18findCliquesJustIDsI16Community_FinderEEvRK10bloomGraphIiERT_j(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #8
declare void @_ZN4SeedC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
declare void @_ZN4Seed16addNodeNoCachingEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin 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 #5 = { inlinehint mustprogress 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 #6 = { "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 #7 = { inlinehint mustprogress 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 #8 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !21, i64 96}
!12 = !{!"_ZTS10bloomGraphIiE", !13, i64 0, !17, i64 24, !17, i64 48, !13, i64 72, !21, i64 96, !21, i64 104, !17, i64 112}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIjSaIjEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!21, !21, i64 0}
!25 = distinct !{!25, !23}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.28" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.29" = type { ptr }
%STRUCT1 = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@t0 = external dso_local global i64, align 8
@numberOfCliquesProcessed = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@theGlobalGraph = external global %STRUCT0, align 8
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@nodeToSeeds = external global %"class.std::vector.23", align 8
@.str.16 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [34 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder15initialiseSeedsEPKci(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
B0:
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
%7 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
%13 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
store i32 %2, ptr %5, align 4, !tbaa !9
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %4, align 8, !tbaa !5
call void @_ZN13graph_loading26loadSimpleIntGraphFromFileER10bloomGraphIiEPKc(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, ptr noundef %15)
%16 = load i32, ptr %5, align 4, !tbaa !9
call void @_ZN7cliques18findCliquesJustIDsI16Community_FinderEEvRK10bloomGraphIiERT_j(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, ptr noundef nonnull align 8 dereferenceable(56) %14, i32 noundef %16)
%17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.14)
%18 = getelementptr inbounds %STRUCT1, ptr %14, i32 0, i32 1
%19 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %19)
%21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef @.str.15)
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds) #9
%23 = load i64, ptr getelementptr inbounds (%STRUCT0, ptr @theGlobalGraph, i32 0, i32 4), align 8, !tbaa !11
call void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %23)
store i32 0, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
%24 = getelementptr inbounds %STRUCT1, ptr %14, i32 0, i32 1
%25 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
%26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %6, i32 0, i32 0
store ptr %25, ptr %26, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
%27 = getelementptr inbounds %STRUCT1, ptr %14, i32 0, i32 1
%28 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
%29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %7, i32 0, i32 0
store ptr %28, ptr %29, align 8
%30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
br i1 %30, label %B3, label %B2
B2:
store i32 2, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
br label %B14
B3:
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
%31 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 152) #10
invoke void @_ZN4SeedC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %31)
to label %B4 unwind label %B7
B4:
store ptr %31, ptr %9, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
%32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
%33 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #9
%34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %12, i32 0, i32 0
store ptr %33, ptr %34, align 8
br label %B5
B5:
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
%35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
%36 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
%37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %13, i32 0, i32 0
store ptr %36, ptr %37, align 8
%38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
br i1 %38, label %B8, label %B6
B6:
store i32 5, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
br label %B10
B7:
%39 = landingpad { ptr, i32 }
cleanup
%40 = extractvalue { ptr, i32 } %39, 0
store ptr %40, ptr %10, align 8
%41 = extractvalue { ptr, i32 } %39, 1
store i32 %41, ptr %11, align 4
call void @_ZdlPvm(ptr noundef %31, i64 noundef 152) #11
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
br label %B15
B8:
%42 = load ptr, ptr %9, align 8, !tbaa !5
%43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
%44 = load i32, ptr %43, align 4, !tbaa !9
call void @_ZN4Seed16addNodeNoCachingEi(ptr noundef nonnull align 8 dereferenceable(152) %42, i32 noundef %44)
br label %B9
B9:
%45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
br label %B5, !llvm.loop !22
B10:
%46 = getelementptr inbounds %STRUCT1, ptr %14, i32 0, i32 2
call void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 8 dereferenceable(8) %9)
%47 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
%48 = add nsw i32 %47, 1
store i32 %48, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
%49 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
%50 = srem i32 %49, 1000
%51 = icmp eq i32 %50, 0
br i1 %51, label %B11, label %B12
B11:
%52 = load ptr, ptr @stderr, align 8, !tbaa !5
%53 = call i64 @clock() #9
%54 = load i64, ptr @t0, align 8, !tbaa !24
%55 = sub nsw i64 %53, %54
%56 = sitofp i64 %55 to double
%57 = fdiv double %56, 1.000000e+06
%58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str, double noundef %57) #9
%59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
%60 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !9
%61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %59, i32 noundef %60)
%62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.3)
%63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.16)
%65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
%66 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #9
%67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %64, i64 noundef %66)
%68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %B12
B12:
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
br label %B13
B13:
%69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
br label %B1, !llvm.loop !25
B14:
%70 = getelementptr inbounds %STRUCT1, ptr %14, i32 0, i32 1
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #9
call void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56) %14)
%71 = load ptr, ptr @stderr, align 8, !tbaa !5
%72 = call i64 @clock() #9
%73 = load i64, ptr @t0, align 8, !tbaa !24
%74 = sub nsw i64 %72, %73
%75 = sitofp i64 %74 to double
%76 = fdiv double %75, 1.000000e+06
%77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str, double noundef %76) #9
%78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.17)
%79 = getelementptr inbounds %STRUCT1, ptr %14, i32 0, i32 2
%80 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #9
%81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %78, i64 noundef %80)
%82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
B15:
%83 = load ptr, ptr %10, align 8
%84 = load i32, ptr %11, align 4
%85 = insertvalue { ptr, i32 } poison, ptr %83, 0
%86 = insertvalue { ptr, i32 } %85, i32 %84, 1
resume { ptr, i32 } %86
}
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2
declare void @_ZN13graph_loading26loadSimpleIntGraphFromFileER10bloomGraphIiEPKc(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) #6
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cliques18findCliquesJustIDsI16Community_FinderEEvRK10bloomGraphIiERT_j(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #8
declare void @_ZN4SeedC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
declare void @_ZN4Seed16addNodeNoCachingEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin 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 #5 = { inlinehint mustprogress 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 #6 = { "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 #7 = { inlinehint mustprogress 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 #8 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !21, i64 96}
!12 = !{!"_ZTS10bloomGraphIiE", !13, i64 0, !17, i64 24, !17, i64 48, !13, i64 72, !21, i64 96, !21, i64 104, !17, i64 112}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIjSaIjEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!21, !21, i64 0}
!25 = distinct !{!25, !23} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.bloomGraph = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.28" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.29" = type { ptr }
@t0 = external dso_local local_unnamed_addr global i64, align 8
@numberOfCliquesProcessed = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@theGlobalGraph = external global %struct.bloomGraph, align 8
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@nodeToSeeds = external global %"class.std::vector.23", align 8
@.str.16 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [34 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder15initialiseSeedsEPKci(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
%5 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
%6 = alloca ptr, align 8
%7 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
%8 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
tail call void @_ZN13graph_loading26loadSimpleIntGraphFromFileER10bloomGraphIiEPKc(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, ptr noundef %1)
tail call void @_ZN7cliques18findCliquesJustIDsI16Community_FinderEEvRK10bloomGraphIiERT_j(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %2)
%9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.14)
%10 = getelementptr inbounds i8, ptr %0, i64 8
%11 = tail call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
%12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %11)
%13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @.str.15)
%14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
tail call void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds) #10
%15 = load i64, ptr getelementptr inbounds (i8, ptr @theGlobalGraph, i64 96), align 8, !tbaa !5
tail call void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %15)
store i32 0, ptr @numberOfCliquesProcessed, align 4, !tbaa !19
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
%16 = tail call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
store ptr %16, ptr %4, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
%17 = tail call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
store ptr %17, ptr %5, align 8
%18 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #10
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
br i1 %18, label %.lr.ph5, label %._crit_edge6
.lr.ph5: ; preds = %3
%19 = getelementptr inbounds i8, ptr %0, i64 32
br label %32
._crit_edge6: ; preds = %71, %3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
call void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56) %0)
%20 = load ptr, ptr @stderr, align 8, !tbaa !21
%21 = call i64 @clock() #10
%22 = load i64, ptr @t0, align 8, !tbaa !22
%23 = sub nsw i64 %21, %22
%24 = sitofp i64 %23 to double
%25 = fdiv double %24, 1.000000e+06
%26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str, double noundef %25) #11
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.17)
%28 = getelementptr inbounds i8, ptr %0, i64 32
%29 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %29)
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
32: ; preds = %.lr.ph5, %71
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
%33 = call noalias noundef nonnull dereferenceable(152) ptr @_Znwm(i64 noundef 152) #12
invoke void @_ZN4SeedC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %33)
to label %34 unwind label %44
34: ; preds = %32
store ptr %33, ptr %6, align 8, !tbaa !21
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
%35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
%36 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #10
store ptr %36, ptr %7, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
%37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
%38 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
store ptr %38, ptr %8, align 8
%39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #10
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
br i1 %39, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %34
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
call void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %6)
%40 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !19
%41 = add nsw i32 %40, 1
store i32 %41, ptr @numberOfCliquesProcessed, align 4, !tbaa !19
%42 = srem i32 %41, 1000
%43 = icmp eq i32 %42, 0
br i1 %43, label %53, label %71
44: ; preds = %32
%45 = landingpad { ptr, i32 }
cleanup
call void @_ZdlPvm(ptr noundef nonnull %33, i64 noundef 152) #13
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
resume { ptr, i32 } %45
.lr.ph: ; preds = %34, %.lr.ph
%46 = load ptr, ptr %6, align 8, !tbaa !21
%47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
%48 = load i32, ptr %47, align 4, !tbaa !19
call void @_ZN4Seed16addNodeNoCachingEi(ptr noundef nonnull align 8 dereferenceable(152) %46, i32 noundef %48)
%49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
%50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
%51 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #10
store ptr %51, ptr %8, align 8
%52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #10
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
br i1 %52, label %.lr.ph, label %._crit_edge, !llvm.loop !23
53: ; preds = %._crit_edge
%54 = load ptr, ptr @stderr, align 8, !tbaa !21
%55 = call i64 @clock() #10
%56 = load i64, ptr @t0, align 8, !tbaa !22
%57 = sub nsw i64 %55, %56
%58 = sitofp i64 %57 to double
%59 = fdiv double %58, 1.000000e+06
%60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, double noundef %59) #11
%61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
%62 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !19
%63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %61, i32 noundef %62)
%64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.3)
%65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.16)
%67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
%68 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #10
%69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %66, i64 noundef %68)
%70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %71
71: ; preds = %53, %._crit_edge
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
%72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
%73 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
store ptr %73, ptr %5, align 8
%74 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #10
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
br i1 %74, label %32, label %._crit_edge6, !llvm.loop !25
}
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2
declare void @_ZN13graph_loading26loadSimpleIntGraphFromFileER10bloomGraphIiEPKc(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) local_unnamed_addr #7
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cliques18findCliquesJustIDsI16Community_FinderEEvRK10bloomGraphIiERT_j(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #8
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #9
declare void @_ZN4SeedC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #8
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
declare void @_ZN4Seed16addNodeNoCachingEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin 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 #5 = { 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 #6 = { inlinehint mustprogress 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 #7 = { "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 #8 = { inlinehint mustprogress 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 #9 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { cold nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !18, i64 96}
!6 = !{!"_ZTS10bloomGraphIiE", !7, i64 0, !14, i64 24, !14, i64 48, !7, i64 72, !18, i64 96, !18, i64 104, !14, i64 112}
!7 = !{!"_ZTSSt6vectorIiSaIiEE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorIjSaIjEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"long", !12, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !12, i64 0}
!21 = !{!11, !11, i64 0}
!22 = !{!18, !18, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 3112bf83fba46baf | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | Community_Finder | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.bloomGraph = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator.0" = type { i8 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@t0 = external dso_local global i64, align 8
@_ZN16Community_Finder34numberOfTimesRequiredToBeSpokenForE = external dso_local global float, align 4
@_ZN16Community_Finder30spokenForThresholdOfUniquenessE = external dso_local global float, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@theGlobalGraph = external global %struct.bloomGraph, align 8
@.str.11 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() #0
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z28sizeSortFunctionLargestFirstP4SeedS0_(ptr noundef, ptr noundef) #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) #5
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca ptr, align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%5 = alloca %"class.std::vector", align 8
%6 = alloca %"class.std::allocator.0", align 1
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%16 = alloca i32, align 4
%17 = alloca float, align 4
%18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds %class.Community_Finder, ptr %20, i32 0, i32 2
%22 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
%23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %22, ptr %23, align 8
%24 = getelementptr inbounds %class.Community_Finder, ptr %20, i32 0, i32 2
%25 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
%26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
store ptr %25, ptr %26, align 8
%27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
%28 = load ptr, ptr %27, align 8
%29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
%30 = load ptr, ptr %29, align 8
call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %28, ptr %30, ptr noundef @_Z28sizeSortFunctionLargestFirstP4SeedS0_)
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.11)
%32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.12)
%33 = getelementptr inbounds %class.Community_Finder, ptr %20, i32 0, i32 2
%34 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
%35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %32, i64 noundef %34)
%36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
%37 = load i64, ptr getelementptr inbounds (%struct.bloomGraph, ptr @theGlobalGraph, i32 0, i32 4), align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %38 unwind label %48
38: ; preds = %1
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
store i32 0, ptr %9, align 4, !tbaa !20
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
%39 = getelementptr inbounds %class.Community_Finder, ptr %20, i32 0, i32 2
%40 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
%41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
store ptr %40, ptr %41, align 8
br label %42
42: ; preds = %177, %38
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
%43 = getelementptr inbounds %class.Community_Finder, ptr %20, i32 0, i32 2
%44 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
%45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
store ptr %44, ptr %45, align 8
%46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
br i1 %46, label %52, label %47
47: ; preds = %42
store i32 2, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
br label %182
48: ; preds = %1
%49 = landingpad { ptr, i32 }
cleanup
%50 = extractvalue { ptr, i32 } %49, 0
store ptr %50, ptr %7, align 8
%51 = extractvalue { ptr, i32 } %49, 1
store i32 %51, ptr %8, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
br label %197
52: ; preds = %42
%53 = load i32, ptr %9, align 4, !tbaa !20
%54 = add nsw i32 %53, 1
store i32 %54, ptr %9, align 4, !tbaa !20
%55 = load i32, ptr %9, align 4, !tbaa !20
%56 = srem i32 %55, 1000
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %79
58: ; preds = %52
%59 = load ptr, ptr @stderr, align 8, !tbaa !5
%60 = call i64 @clock() #7
%61 = load i64, ptr @t0, align 8, !tbaa !22
%62 = sub nsw i64 %60, %61
%63 = sitofp i64 %62 to double
%64 = fdiv double %63, 1.000000e+06
%65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str, double noundef %64) #7
%66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
to label %67 unwind label %75
67: ; preds = %58
%68 = load i32, ptr %9, align 4, !tbaa !20
%69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %66, i32 noundef %68)
to label %70 unwind label %75
70: ; preds = %67
%71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef @.str.3)
to label %72 unwind label %75
72: ; preds = %70
%73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %74 unwind label %75
74: ; preds = %72
br label %79
75: ; preds = %72, %70, %67, %58
%76 = landingpad { ptr, i32 }
cleanup
%77 = extractvalue { ptr, i32 } %76, 0
store ptr %77, ptr %7, align 8
%78 = extractvalue { ptr, i32 } %76, 1
store i32 %78, ptr %8, align 4
br label %181
79: ; preds = %74, %52
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
store i32 0, ptr %13, align 4, !tbaa !20
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
%80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%81 = load ptr, ptr %80, align 8, !tbaa !5
%82 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %81)
to label %83 unwind label %95
83: ; preds = %79
%84 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %82) #7
%85 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
store ptr %84, ptr %85, align 8
br label %86
86: ; preds = %117, %83
call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
%87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%88 = load ptr, ptr %87, align 8, !tbaa !5
%89 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %88)
to label %90 unwind label %99
90: ; preds = %86
%91 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %89) #7
%92 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
store ptr %91, ptr %92, align 8
%93 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
br i1 %93, label %103, label %94
94: ; preds = %90
store i32 5, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
br label %120
95: ; preds = %79
%96 = landingpad { ptr, i32 }
cleanup
%97 = extractvalue { ptr, i32 } %96, 0
store ptr %97, ptr %7, align 8
%98 = extractvalue { ptr, i32 } %96, 1
store i32 %98, ptr %8, align 4
br label %119
99: ; preds = %86
%100 = landingpad { ptr, i32 }
cleanup
%101 = extractvalue { ptr, i32 } %100, 0
store ptr %101, ptr %7, align 8
%102 = extractvalue { ptr, i32 } %100, 1
store i32 %102, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
br label %119
103: ; preds = %90
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
%104 = load float, ptr @_ZN16Community_Finder34numberOfTimesRequiredToBeSpokenForE, align 4, !tbaa !23
%105 = fptosi float %104 to i32
store i32 %105, ptr %16, align 4, !tbaa !20
%106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
%107 = load i32, ptr %106, align 4, !tbaa !20
%108 = sext i32 %107 to i64
%109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %108) #7
%110 = load i32, ptr %109, align 4, !tbaa !20
%111 = load i32, ptr %16, align 4, !tbaa !20
%112 = icmp sgt i32 %110, %111
br i1 %112, label %113, label %116
113: ; preds = %103
%114 = load i32, ptr %13, align 4, !tbaa !20
%115 = add nsw i32 %114, 1
store i32 %115, ptr %13, align 4, !tbaa !20
br label %116
116: ; preds = %113, %103
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
br label %117
117: ; preds = %116
%118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
br label %86, !llvm.loop !25
119: ; preds = %99, %95
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
br label %180
120: ; preds = %94
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
%121 = load i32, ptr %13, align 4, !tbaa !20
%122 = sitofp i32 %121 to float
%123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%124 = load ptr, ptr %123, align 8, !tbaa !5
%125 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %124)
to label %126 unwind label %137
126: ; preds = %120
%127 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %125) #7
%128 = uitofp i64 %127 to float
%129 = fdiv float %122, %128
store float %129, ptr %17, align 4, !tbaa !23
%130 = load float, ptr %17, align 4, !tbaa !23
%131 = load float, ptr @_ZN16Community_Finder30spokenForThresholdOfUniquenessE, align 4, !tbaa !23
%132 = fcmp oge float %130, %131
br i1 %132, label %133, label %141
133: ; preds = %126
%134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%135 = load ptr, ptr %134, align 8, !tbaa !5
%136 = getelementptr inbounds %class.Seed, ptr %135, i32 0, i32 1
store i8 1, ptr %136, align 8, !tbaa !27
br label %176
137: ; preds = %120
%138 = landingpad { ptr, i32 }
cleanup
%139 = extractvalue { ptr, i32 } %138, 0
store ptr %139, ptr %7, align 8
%140 = extractvalue { ptr, i32 } %138, 1
store i32 %140, ptr %8, align 4
br label %179
141: ; preds = %126
call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
%142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%143 = load ptr, ptr %142, align 8, !tbaa !5
%144 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %143)
to label %145 unwind label %157
145: ; preds = %141
%146 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %144) #7
%147 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
store ptr %146, ptr %147, align 8
br label %148
148: ; preds = %172, %145
call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
%149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%150 = load ptr, ptr %149, align 8, !tbaa !5
%151 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %150)
to label %152 unwind label %161
152: ; preds = %148
%153 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %151) #7
%154 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
store ptr %153, ptr %154, align 8
%155 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
br i1 %155, label %165, label %156
156: ; preds = %152
store i32 8, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
br label %175
157: ; preds = %141
%158 = landingpad { ptr, i32 }
cleanup
%159 = extractvalue { ptr, i32 } %158, 0
store ptr %159, ptr %7, align 8
%160 = extractvalue { ptr, i32 } %158, 1
store i32 %160, ptr %8, align 4
br label %174
161: ; preds = %148
%162 = landingpad { ptr, i32 }
cleanup
%163 = extractvalue { ptr, i32 } %162, 0
store ptr %163, ptr %7, align 8
%164 = extractvalue { ptr, i32 } %162, 1
store i32 %164, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
br label %174
165: ; preds = %152
%166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
%167 = load i32, ptr %166, align 4, !tbaa !20
%168 = sext i32 %167 to i64
%169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %168) #7
%170 = load i32, ptr %169, align 4, !tbaa !20
%171 = add nsw i32 %170, 1
store i32 %171, ptr %169, align 4, !tbaa !20
br label %172
172: ; preds = %165
%173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
br label %148, !llvm.loop !41
174: ; preds = %161, %157
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
br label %179
175: ; preds = %156
br label %176
176: ; preds = %175, %133
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
br label %177
177: ; preds = %176
%178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
br label %42, !llvm.loop !42
179: ; preds = %174, %137
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
br label %180
180: ; preds = %179, %119
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
br label %181
181: ; preds = %180, %75
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
br label %196
182: ; preds = %47
invoke void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %20)
to label %183 unwind label %192
183: ; preds = %182
%184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.13)
to label %185 unwind label %192
185: ; preds = %183
%186 = getelementptr inbounds %class.Community_Finder, ptr %20, i32 0, i32 2
%187 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #7
%188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %184, i64 noundef %187)
to label %189 unwind label %192
189: ; preds = %185
%190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %191 unwind label %192
191: ; preds = %189
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
ret void
192: ; preds = %189, %185, %183, %182
%193 = landingpad { ptr, i32 }
cleanup
%194 = extractvalue { ptr, i32 } %193, 0
store ptr %194, ptr %7, align 8
%195 = extractvalue { ptr, i32 } %193, 1
store i32 %195, ptr %8, align 4
br label %196
196: ; preds = %192, %181
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
br label %197
197: ; preds = %196, %48
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
br label %198
198: ; preds = %197
%199 = load ptr, ptr %7, align 8
%200 = load i32, ptr %8, align 4
%201 = insertvalue { ptr, i32 } poison, ptr %199, 0
%202 = insertvalue { ptr, i32 } %201, i32 %200, 1
resume { ptr, i32 } %202
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { "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 #7 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !19, i64 96}
!10 = !{!"_ZTS10bloomGraphIiE", !11, i64 0, !15, i64 24, !15, i64 48, !11, i64 72, !19, i64 96, !19, i64 104, !15, i64 112}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSSt6vectorIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!19, !19, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !29, i64 8}
!28 = !{!"_ZTS4Seed", !29, i64 8, !30, i64 16, !11, i64 64, !21, i64 88, !21, i64 92, !29, i64 96, !38, i64 104}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessIiE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !19, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!38 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !33, i64 0, !35, i64 8}
!41 = distinct !{!41, !26}
!42 = distinct !{!42, !26}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator.0" = type { i8 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%STRUCT1 = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%STRUCT2 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@t0 = external dso_local global i64, align 8
@_ZN16Community_Finder34numberOfTimesRequiredToBeSpokenForE = external dso_local global float, align 4
@_ZN16Community_Finder30spokenForThresholdOfUniquenessE = external dso_local global float, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@theGlobalGraph = external global %STRUCT0, align 8
@.str.11 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() #0
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z28sizeSortFunctionLargestFirstP4SeedS0_(ptr noundef, ptr noundef) #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) #5
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator.0", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%15 = alloca i32, align 4
%16 = alloca float, align 4
%17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%19 = load ptr, ptr %1, align 8
%20 = getelementptr inbounds %STRUCT1, ptr %19, i32 0, i32 2
%21 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
%22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %2, i32 0, i32 0
store ptr %21, ptr %22, align 8
%23 = getelementptr inbounds %STRUCT1, ptr %19, i32 0, i32 2
%24 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
%25 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %24, ptr %25, align 8
%26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %2, i32 0, i32 0
%27 = load ptr, ptr %26, align 8
%28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
%29 = load ptr, ptr %28, align 8
call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %27, ptr %29, ptr noundef @_Z28sizeSortFunctionLargestFirstP4SeedS0_)
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.11)
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.12)
%32 = getelementptr inbounds %STRUCT1, ptr %19, i32 0, i32 2
%33 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef %33)
%35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
%36 = load i64, ptr getelementptr inbounds (%STRUCT0, ptr @theGlobalGraph, i32 0, i32 4), align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %36, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
store i32 0, ptr %8, align 4, !tbaa !20
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
%37 = getelementptr inbounds %STRUCT1, ptr %19, i32 0, i32 2
%38 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
%39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
store ptr %38, ptr %39, align 8
br label %B2
B2:
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
%40 = getelementptr inbounds %STRUCT1, ptr %19, i32 0, i32 2
%41 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
%42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
store ptr %41, ptr %42, align 8
%43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
br i1 %43, label %B5, label %B3
B3:
store i32 2, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
br label %B44
B4:
%44 = landingpad { ptr, i32 }
cleanup
%45 = extractvalue { ptr, i32 } %44, 0
store ptr %45, ptr %6, align 8
%46 = extractvalue { ptr, i32 } %44, 1
store i32 %46, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
br label %B51
B5:
%47 = load i32, ptr %8, align 4, !tbaa !20
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4, !tbaa !20
%49 = load i32, ptr %8, align 4, !tbaa !20
%50 = srem i32 %49, 1000
%51 = icmp eq i32 %50, 0
br i1 %51, label %B6, label %B12
B6:
%52 = load ptr, ptr @stderr, align 8, !tbaa !5
%53 = call i64 @clock() #7
%54 = load i64, ptr @t0, align 8, !tbaa !22
%55 = sub nsw i64 %53, %54
%56 = sitofp i64 %55 to double
%57 = fdiv double %56, 1.000000e+06
%58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str, double noundef %57) #7
%59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
to label %B7 unwind label %B11
B7:
%60 = load i32, ptr %8, align 4, !tbaa !20
%61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %59, i32 noundef %60)
to label %B8 unwind label %B11
B8:
%62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.3)
to label %B9 unwind label %B11
B9:
%63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B10 unwind label %B11
B10:
br label %B12
B11:
%64 = landingpad { ptr, i32 }
cleanup
%65 = extractvalue { ptr, i32 } %64, 0
store ptr %65, ptr %6, align 8
%66 = extractvalue { ptr, i32 } %64, 1
store i32 %66, ptr %7, align 4
br label %B43
B12:
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
store i32 0, ptr %12, align 4, !tbaa !20
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
%67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
%68 = load ptr, ptr %67, align 8, !tbaa !5
%69 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %68)
to label %B13 unwind label %B17
B13:
%70 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %69) #7
%71 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %13, i32 0, i32 0
store ptr %70, ptr %71, align 8
br label %B14
B14:
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
%72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
%73 = load ptr, ptr %72, align 8, !tbaa !5
%74 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %73)
to label %B15 unwind label %B18
B15:
%75 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %74) #7
%76 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
store ptr %75, ptr %76, align 8
%77 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
br i1 %77, label %B19, label %B16
B16:
store i32 5, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
br label %B24
B17:
%78 = landingpad { ptr, i32 }
cleanup
%79 = extractvalue { ptr, i32 } %78, 0
store ptr %79, ptr %6, align 8
%80 = extractvalue { ptr, i32 } %78, 1
store i32 %80, ptr %7, align 4
br label %B23
B18:
%81 = landingpad { ptr, i32 }
cleanup
%82 = extractvalue { ptr, i32 } %81, 0
store ptr %82, ptr %6, align 8
%83 = extractvalue { ptr, i32 } %81, 1
store i32 %83, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
br label %B23
B19:
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
%84 = load float, ptr @_ZN16Community_Finder34numberOfTimesRequiredToBeSpokenForE, align 4, !tbaa !23
%85 = fptosi float %84 to i32
store i32 %85, ptr %15, align 4, !tbaa !20
%86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
%87 = load i32, ptr %86, align 4, !tbaa !20
%88 = sext i32 %87 to i64
%89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %88) #7
%90 = load i32, ptr %89, align 4, !tbaa !20
%91 = load i32, ptr %15, align 4, !tbaa !20
%92 = icmp sgt i32 %90, %91
br i1 %92, label %B20, label %B21
B20:
%93 = load i32, ptr %12, align 4, !tbaa !20
%94 = add nsw i32 %93, 1
store i32 %94, ptr %12, align 4, !tbaa !20
br label %B21
B21:
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
br label %B22
B22:
%95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
br label %B14, !llvm.loop !25
B23:
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
br label %B42
B24:
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
%96 = load i32, ptr %12, align 4, !tbaa !20
%97 = sitofp i32 %96 to float
%98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
%99 = load ptr, ptr %98, align 8, !tbaa !5
%100 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %99)
to label %B25 unwind label %B27
B25:
%101 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %100) #7
%102 = uitofp i64 %101 to float
%103 = fdiv float %97, %102
store float %103, ptr %16, align 4, !tbaa !23
%104 = load float, ptr %16, align 4, !tbaa !23
%105 = load float, ptr @_ZN16Community_Finder30spokenForThresholdOfUniquenessE, align 4, !tbaa !23
%106 = fcmp oge float %104, %105
br i1 %106, label %B26, label %B28
B26:
%107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
%108 = load ptr, ptr %107, align 8, !tbaa !5
%109 = getelementptr inbounds %STRUCT2, ptr %108, i32 0, i32 1
store i8 1, ptr %109, align 8, !tbaa !27
br label %B39
B27:
%110 = landingpad { ptr, i32 }
cleanup
%111 = extractvalue { ptr, i32 } %110, 0
store ptr %111, ptr %6, align 8
%112 = extractvalue { ptr, i32 } %110, 1
store i32 %112, ptr %7, align 4
br label %B41
B28:
call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
%113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
%114 = load ptr, ptr %113, align 8, !tbaa !5
%115 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %114)
to label %B29 unwind label %B33
B29:
%116 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %115) #7
%117 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %17, i32 0, i32 0
store ptr %116, ptr %117, align 8
br label %B30
B30:
call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
%118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
%119 = load ptr, ptr %118, align 8, !tbaa !5
%120 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %119)
to label %B31 unwind label %B34
B31:
%121 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %120) #7
%122 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
store ptr %121, ptr %122, align 8
%123 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
br i1 %123, label %B35, label %B32
B32:
store i32 8, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
br label %B38
B33:
%124 = landingpad { ptr, i32 }
cleanup
%125 = extractvalue { ptr, i32 } %124, 0
store ptr %125, ptr %6, align 8
%126 = extractvalue { ptr, i32 } %124, 1
store i32 %126, ptr %7, align 4
br label %B37
B34:
%127 = landingpad { ptr, i32 }
cleanup
%128 = extractvalue { ptr, i32 } %127, 0
store ptr %128, ptr %6, align 8
%129 = extractvalue { ptr, i32 } %127, 1
store i32 %129, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
br label %B37
B35:
%130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
%131 = load i32, ptr %130, align 4, !tbaa !20
%132 = sext i32 %131 to i64
%133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %132) #7
%134 = load i32, ptr %133, align 4, !tbaa !20
%135 = add nsw i32 %134, 1
store i32 %135, ptr %133, align 4, !tbaa !20
br label %B36
B36:
%136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
br label %B30, !llvm.loop !41
B37:
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
br label %B41
B38:
br label %B39
B39:
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
br label %B40
B40:
%137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
br label %B2, !llvm.loop !42
B41:
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
br label %B42
B42:
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
br label %B43
B43:
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
br label %B50
B44:
invoke void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %19)
to label %B45 unwind label %B49
B45:
%138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.13)
to label %B46 unwind label %B49
B46:
%139 = getelementptr inbounds %STRUCT1, ptr %19, i32 0, i32 2
%140 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %139) #7
%141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %138, i64 noundef %140)
to label %B47 unwind label %B49
B47:
%142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B48 unwind label %B49
B48:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
ret void
B49:
%143 = landingpad { ptr, i32 }
cleanup
%144 = extractvalue { ptr, i32 } %143, 0
store ptr %144, ptr %6, align 8
%145 = extractvalue { ptr, i32 } %143, 1
store i32 %145, ptr %7, align 4
br label %B50
B50:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
br label %B51
B51:
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
br label %B52
B52:
%146 = load ptr, ptr %6, align 8
%147 = load i32, ptr %7, align 4
%148 = insertvalue { ptr, i32 } poison, ptr %146, 0
%149 = insertvalue { ptr, i32 } %148, i32 %147, 1
resume { ptr, i32 } %149
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { "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 #7 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !19, i64 96}
!10 = !{!"_ZTS10bloomGraphIiE", !11, i64 0, !15, i64 24, !15, i64 48, !11, i64 72, !19, i64 96, !19, i64 104, !15, i64 112}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSSt6vectorIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!19, !19, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !29, i64 8}
!28 = !{!"_ZTS4Seed", !29, i64 8, !30, i64 16, !11, i64 64, !21, i64 88, !21, i64 92, !29, i64 96, !38, i64 104}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessIiE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !19, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!38 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !33, i64 0, !35, i64 8}
!41 = distinct !{!41, !26}
!42 = distinct !{!42, !26} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.bloomGraph = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@t0 = external dso_local local_unnamed_addr global i64, align 8
@_ZN16Community_Finder34numberOfTimesRequiredToBeSpokenForE = external dso_local local_unnamed_addr global float, align 4
@_ZN16Community_Finder30spokenForThresholdOfUniquenessE = external dso_local local_unnamed_addr global float, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@theGlobalGraph = external local_unnamed_addr global %struct.bloomGraph, align 8
@.str.11 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #0
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z28sizeSortFunctionLargestFirstP4SeedS0_(ptr noundef, ptr noundef) #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #6
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder18doSpokenForPruningEv(ptr noundef nonnull align 8 dereferenceable(56) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca %"class.std::vector", align 8
%3 = alloca %"class.std::allocator.0", align 1
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%10 = getelementptr inbounds i8, ptr %0, i64 32
%11 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
%12 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
tail call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %11, ptr %12, ptr noundef nonnull @_Z28sizeSortFunctionLargestFirstP4SeedS0_)
%13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.11)
%14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.12)
%15 = tail call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
%16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef %15)
%17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
%18 = load i64, ptr getelementptr inbounds (i8, ptr @theGlobalGraph, i64 96), align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %18, ptr noundef nonnull align 1 dereferenceable(1) %3)
to label %19 unwind label %23
19: ; preds = %1
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
%20 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
store ptr %20, ptr %4, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
%21 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
store ptr %21, ptr %5, align 8
%22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
br i1 %22, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %118, %19
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
invoke void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %0)
to label %123 unwind label %131
23: ; preds = %1
%24 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
br label %134
.lr.ph: ; preds = %19, %118
%.01929 = phi i32 [ %25, %118 ], [ 0, %19 ]
%25 = add nuw nsw i32 %.01929, 1
%26 = urem i32 %25, 1000
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %45
28: ; preds = %.lr.ph
%29 = load ptr, ptr @stderr, align 8, !tbaa !19
%30 = call i64 @clock() #8
%31 = load i64, ptr @t0, align 8, !tbaa !20
%32 = sub nsw i64 %30, %31
%33 = sitofp i64 %32 to double
%34 = fdiv double %33, 1.000000e+06
%35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str, double noundef %34) #9
%36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
to label %37 unwind label %43
37: ; preds = %28
%38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %36, i32 noundef %25)
to label %39 unwind label %43
39: ; preds = %37
%40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @.str.3)
to label %41 unwind label %43
41: ; preds = %39
%42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %45 unwind label %43
43: ; preds = %41, %39, %37, %28
%44 = landingpad { ptr, i32 }
cleanup
br label %122
45: ; preds = %41, %.lr.ph
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
%46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
%47 = load ptr, ptr %46, align 8, !tbaa !19
%48 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %47)
to label %49 unwind label %62
49: ; preds = %45
%50 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %48) #8
store ptr %50, ptr %6, align 8
br label %51
51: ; preds = %66, %49
%.017 = phi i32 [ 0, %49 ], [ %spec.select, %66 ]
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
%52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
%53 = load ptr, ptr %52, align 8, !tbaa !19
%54 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %53)
to label %55 unwind label %64
55: ; preds = %51
%56 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %54) #8
store ptr %56, ptr %7, align 8
%57 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
br i1 %57, label %66, label %58
58: ; preds = %55
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
%59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
%60 = load ptr, ptr %59, align 8, !tbaa !19
%61 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %60)
to label %78 unwind label %89
62: ; preds = %45
%63 = landingpad { ptr, i32 }
cleanup
br label %77
64: ; preds = %51
%65 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
br label %77
66: ; preds = %55
%67 = load float, ptr @_ZN16Community_Finder34numberOfTimesRequiredToBeSpokenForE, align 4, !tbaa !21
%68 = fptosi float %67 to i32
%69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
%70 = load i32, ptr %69, align 4, !tbaa !23
%71 = sext i32 %70 to i64
%72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %71) #8
%73 = load i32, ptr %72, align 4, !tbaa !23
%74 = icmp sgt i32 %73, %68
%75 = zext i1 %74 to i32
%spec.select = add nuw nsw i32 %.017, %75
%76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
br label %51, !llvm.loop !25
77: ; preds = %64, %62
%.pn = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
br label %122
78: ; preds = %58
%79 = uitofp nneg i32 %.017 to float
%80 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %61) #8
%81 = uitofp i64 %80 to float
%82 = fdiv float %79, %81
%83 = load float, ptr @_ZN16Community_Finder30spokenForThresholdOfUniquenessE, align 4, !tbaa !21
%84 = fcmp ult float %82, %83
br i1 %84, label %91, label %85
85: ; preds = %78
%86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
%87 = load ptr, ptr %86, align 8, !tbaa !19
%88 = getelementptr inbounds i8, ptr %87, i64 8
store i8 1, ptr %88, align 8, !tbaa !27
br label %118
89: ; preds = %58
%90 = landingpad { ptr, i32 }
cleanup
br label %122
91: ; preds = %78
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
%92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
%93 = load ptr, ptr %92, align 8, !tbaa !19
%94 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %93)
to label %95 unwind label %105
95: ; preds = %91
%96 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %94) #8
store ptr %96, ptr %8, align 8
br label %97
97: ; preds = %109, %95
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
%98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
%99 = load ptr, ptr %98, align 8, !tbaa !19
%100 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %99)
to label %101 unwind label %107
101: ; preds = %97
%102 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %100) #8
store ptr %102, ptr %9, align 8
%103 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
br i1 %103, label %109, label %104
104: ; preds = %101
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
br label %118
105: ; preds = %91
%106 = landingpad { ptr, i32 }
cleanup
br label %117
107: ; preds = %97
%108 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
br label %117
109: ; preds = %101
%110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
%111 = load i32, ptr %110, align 4, !tbaa !23
%112 = sext i32 %111 to i64
%113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #8
%114 = load i32, ptr %113, align 4, !tbaa !23
%115 = add nsw i32 %114, 1
store i32 %115, ptr %113, align 4, !tbaa !23
%116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
br label %97, !llvm.loop !41
117: ; preds = %107, %105
%.pn21 = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
br label %122
118: ; preds = %104, %85
%119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
%120 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
store ptr %120, ptr %5, align 8
%121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
br i1 %121, label %.lr.ph, label %._crit_edge, !llvm.loop !42
122: ; preds = %77, %117, %89, %43
%.pn21.pn.pn.pn = phi { ptr, i32 } [ %44, %43 ], [ %.pn, %77 ], [ %.pn21, %117 ], [ %90, %89 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
br label %133
123: ; preds = %._crit_edge
%124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.13)
to label %125 unwind label %131
125: ; preds = %123
%126 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
%127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %124, i64 noundef %126)
to label %128 unwind label %131
128: ; preds = %125
%129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %130 unwind label %131
130: ; preds = %128
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
ret void
131: ; preds = %128, %125, %123, %._crit_edge
%132 = landingpad { ptr, i32 }
cleanup
br label %133
133: ; preds = %131, %122
%.pn21.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn21.pn.pn.pn, %122 ], [ %132, %131 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
br label %134
134: ; preds = %133, %23
%.pn21.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn21.pn.pn.pn.pn, %133 ], [ %24, %23 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
resume { ptr, i32 } %.pn21.pn.pn.pn.pn.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN4Seed8getNodesEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { 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 #6 = { inlinehint mustprogress 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 #7 = { "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 #8 = { nounwind }
attributes #9 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !18, i64 96}
!6 = !{!"_ZTS10bloomGraphIiE", !7, i64 0, !14, i64 24, !14, i64 48, !7, i64 72, !18, i64 96, !18, i64 104, !14, i64 112}
!7 = !{!"_ZTSSt6vectorIiSaIiEE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorIjSaIjEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"long", !12, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!18, !18, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"float", !12, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !12, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !29, i64 8}
!28 = !{!"_ZTS4Seed", !29, i64 8, !30, i64 16, !7, i64 64, !24, i64 88, !24, i64 92, !29, i64 96, !38, i64 104}
!29 = !{!"bool", !12, i64 0}
!30 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessIiE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !18, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !12, i64 0}
!38 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !33, i64 0, !35, i64 8}
!41 = distinct !{!41, !26}
!42 = distinct !{!42, !26}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass | 72f1104648e94489 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | Community_Finder | BSD-2-Clause |
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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
declare void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) #3
declare void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) #3
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder28refreshAllSeedInternalCachesEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #4 align 2 {
%2 = alloca ptr, align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%5 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
%6 = getelementptr inbounds %class.Community_Finder, ptr %5, i32 0, i32 2
%7 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
%8 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %7, ptr %8, align 8
br label %9
9: ; preds = %20, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
%10 = getelementptr inbounds %class.Community_Finder, ptr %5, i32 0, i32 2
%11 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
%12 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
store ptr %11, ptr %12, align 8
%13 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
br i1 %13, label %15, label %14
14: ; preds = %9
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
br label %22
15: ; preds = %9
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
%17 = load ptr, ptr %16, align 8, !tbaa !5
call void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %17)
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
%19 = load ptr, ptr %18, align 8, !tbaa !5
call void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %19)
br label %20
20: ; preds = %15
%21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
br label %9, !llvm.loop !9
22: ; preds = %14
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 }
!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 ([email protected]: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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%STRUCT0 = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
declare void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) #3
declare void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) #3
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder28refreshAllSeedInternalCachesEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #4 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%4 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
%5 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
%6 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
%7 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %2, i32 0, i32 0
store ptr %6, ptr %7, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
%8 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
%9 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
%10 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %9, ptr %10, align 8
%11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
br i1 %11, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
br label %B5
B3:
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
%13 = load ptr, ptr %12, align 8, !tbaa !5
call void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %13)
%14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
%15 = load ptr, ptr %14, align 8, !tbaa !5
call void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %15)
br label %B4
B4:
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
br label %B1, !llvm.loop !9
B5:
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 }
!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 ([email protected]: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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
declare void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3
declare void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder28refreshAllSeedInternalCachesEv(ptr noundef nonnull align 8 dereferenceable(56) %0) local_unnamed_addr #4 align 2 {
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
%4 = getelementptr inbounds i8, ptr %0, i64 32
%5 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
store ptr %5, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
%6 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
store ptr %6, ptr %3, align 8
%7 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br i1 %7, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
ret void
.lr.ph: ; preds = %1, %.lr.ph
%8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
%9 = load ptr, ptr %8, align 8, !tbaa !5
call void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %9)
%10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
%11 = load ptr, ptr %10, align 8, !tbaa !5
call void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %11)
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
%13 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
store ptr %13, ptr %3, align 8
%14 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br i1 %14, label %.lr.ph, label %._crit_edge, !llvm.loop !9
}
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 }
!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 ([email protected]: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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 5a765e64d8af1faf | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | Community_Finder | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.bloomGraph = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@t0 = external dso_local global i64, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [88 x i8], align 1
@theGlobalGraph = external global %struct.bloomGraph, align 8
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() #0
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z28sizeSortFunctionLargestFirstP4SeedS0_(ptr noundef, ptr noundef) #1
declare noundef i32 @_ZN4Seed16getNumberOfNodesEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca ptr, align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%5 = alloca %"class.std::vector.12", align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i8, align 1
%16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%18 = load ptr, ptr %2, align 8
%19 = load ptr, ptr @stderr, align 8, !tbaa !5
%20 = call i64 @clock() #7
%21 = load i64, ptr @t0, align 8, !tbaa !9
%22 = sub nsw i64 %20, %21
%23 = sitofp i64 %22 to double
%24 = fdiv double %23, 1.000000e+06
%25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str, double noundef %24) #7
%26 = load ptr, ptr @stderr, align 8, !tbaa !5
%27 = call i64 @clock() #7
%28 = load i64, ptr @t0, align 8, !tbaa !9
%29 = sub nsw i64 %27, %28
%30 = sitofp i64 %29 to double
%31 = fdiv double %30, 1.000000e+06
%32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str, double noundef %31) #7
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.4)
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
%36 = getelementptr inbounds %class.Community_Finder, ptr %18, i32 0, i32 2
%37 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
%38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %35, i64 noundef %37)
%39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%40 = getelementptr inbounds %class.Community_Finder, ptr %18, i32 0, i32 2
%41 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
%42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %41, ptr %42, align 8
%43 = getelementptr inbounds %class.Community_Finder, ptr %18, i32 0, i32 2
%44 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
%45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
store ptr %44, ptr %45, align 8
%46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
%47 = load ptr, ptr %46, align 8
%48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
%49 = load ptr, ptr %48, align 8
call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %47, ptr %49, ptr noundef @_Z28sizeSortFunctionLargestFirstP4SeedS0_)
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
call void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
store i32 0, ptr %6, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
store i32 0, ptr %7, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
store i32 0, ptr %8, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
store i32 0, ptr %9, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
store i8 0, ptr %10, align 1, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
%50 = getelementptr inbounds %class.Community_Finder, ptr %18, i32 0, i32 2
%51 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
%52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
store ptr %51, ptr %52, align 8
br label %53
53: ; preds = %173, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
%54 = getelementptr inbounds %class.Community_Finder, ptr %18, i32 0, i32 2
%55 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #7
%56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
store ptr %55, ptr %56, align 8
%57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
br i1 %57, label %59, label %58
58: ; preds = %53
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
br label %176
59: ; preds = %53
%60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%61 = load ptr, ptr %60, align 8, !tbaa !5
invoke void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152) %61)
to label %62 unwind label %88
62: ; preds = %59
%63 = load i32, ptr %9, align 4, !tbaa !11
%64 = srem i32 %63, 1000
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %93
66: ; preds = %62
%67 = load ptr, ptr @stderr, align 8, !tbaa !5
%68 = call i64 @clock() #7
%69 = load i64, ptr @t0, align 8, !tbaa !9
%70 = sub nsw i64 %68, %69
%71 = sitofp i64 %70 to double
%72 = fdiv double %71, 1.000000e+06
%73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str, double noundef %72) #7
%74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
to label %75 unwind label %88
75: ; preds = %66
%76 = load i32, ptr %9, align 4, !tbaa !11
%77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %74, i32 noundef %76)
to label %78 unwind label %88
78: ; preds = %75
%79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef @.str.6)
to label %80 unwind label %88
80: ; preds = %78
%81 = load i8, ptr %10, align 1, !tbaa !13, !range !15, !noundef !16
%82 = trunc i8 %81 to i1
br i1 %82, label %83, label %92
83: ; preds = %80
%84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.7)
to label %85 unwind label %88
85: ; preds = %83
%86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %87 unwind label %88
87: ; preds = %85
br label %92
88: ; preds = %85, %83, %78, %75, %66, %59
%89 = landingpad { ptr, i32 }
cleanup
%90 = extractvalue { ptr, i32 } %89, 0
store ptr %90, ptr %13, align 8
%91 = extractvalue { ptr, i32 } %89, 1
store i32 %91, ptr %14, align 4
br label %175
92: ; preds = %87, %80
store i8 0, ptr %10, align 1, !tbaa !13
br label %93
93: ; preds = %92, %62
%94 = load i32, ptr %9, align 4, !tbaa !11
%95 = add nsw i32 %94, 1
store i32 %95, ptr %9, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
store i8 0, ptr %15, align 1, !tbaa !13
%96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%97 = load ptr, ptr %96, align 8, !tbaa !5
%98 = invoke noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %97)
to label %99 unwind label %117
99: ; preds = %93
%100 = zext i1 %98 to i8
store i8 %100, ptr %15, align 1, !tbaa !13
%101 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
%102 = trunc i8 %101 to i1
br i1 %102, label %159, label %103
103: ; preds = %99
%104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%105 = load ptr, ptr %104, align 8, !tbaa !5
invoke void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %105)
to label %106 unwind label %117
106: ; preds = %103
%107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%108 = load ptr, ptr %107, align 8, !tbaa !5
invoke void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %108)
to label %109 unwind label %117
109: ; preds = %106
br label %110
110: ; preds = %116, %109
%111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%112 = load ptr, ptr %111, align 8, !tbaa !5
%113 = invoke noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %112)
to label %114 unwind label %117
114: ; preds = %110
%115 = fcmp ogt float %113, 0.000000e+00
br i1 %115, label %116, label %121
116: ; preds = %114
br label %110, !llvm.loop !17
117: ; preds = %165, %155, %147, %139, %135, %133, %121, %110, %106, %103, %93
%118 = landingpad { ptr, i32 }
cleanup
%119 = extractvalue { ptr, i32 } %118, 0
store ptr %119, ptr %13, align 8
%120 = extractvalue { ptr, i32 } %118, 1
store i32 %120, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
br label %175
121: ; preds = %114
%122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%123 = load ptr, ptr %122, align 8, !tbaa !5
%124 = invoke noundef i32 @_ZN4Seed16getNumberOfNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %123)
to label %125 unwind label %117
125: ; preds = %121
%126 = sext i32 %124 to i64
%127 = load i64, ptr getelementptr inbounds (%struct.bloomGraph, ptr @theGlobalGraph, i32 0, i32 4), align 8, !tbaa !19
%128 = sdiv i64 %127, 4
%129 = icmp sgt i64 %126, %128
br i1 %129, label %130, label %139
130: ; preds = %125
%131 = load i8, ptr %10, align 1, !tbaa !13, !range !15, !noundef !16
%132 = trunc i8 %131 to i1
br i1 %132, label %138, label %133
133: ; preds = %130
%134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.7)
to label %135 unwind label %117
135: ; preds = %133
%136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %137 unwind label %117
137: ; preds = %135
store i8 1, ptr %10, align 1, !tbaa !13
br label %138
138: ; preds = %137, %130
br label %139
139: ; preds = %138, %125
%140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%141 = load ptr, ptr %140, align 8, !tbaa !5
%142 = invoke noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %141)
to label %143 unwind label %117
143: ; preds = %139
%144 = zext i1 %142 to i8
store i8 %144, ptr %15, align 1, !tbaa !13
%145 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
%146 = trunc i8 %145 to i1
br i1 %146, label %152, label %147
147: ; preds = %143
%148 = load i32, ptr %8, align 4, !tbaa !11
%149 = add nsw i32 %148, 1
store i32 %149, ptr %8, align 4, !tbaa !11
%150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %150)
to label %151 unwind label %117
151: ; preds = %147
br label %155
152: ; preds = %143
%153 = load i32, ptr %7, align 4, !tbaa !11
%154 = add nsw i32 %153, 1
store i32 %154, ptr %7, align 4, !tbaa !11
br label %155
155: ; preds = %152, %151
%156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%157 = load ptr, ptr %156, align 8, !tbaa !5
invoke void @_ZN4Seed11clearCachesEv(ptr noundef nonnull align 8 dereferenceable(152) %157)
to label %158 unwind label %117
158: ; preds = %155
br label %162
159: ; preds = %99
%160 = load i32, ptr %6, align 4, !tbaa !11
%161 = add nsw i32 %160, 1
store i32 %161, ptr %6, align 4, !tbaa !11
br label %162
162: ; preds = %159, %158
%163 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
%164 = trunc i8 %163 to i1
br i1 %164, label %165, label %172
165: ; preds = %162
%166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%167 = load ptr, ptr %166, align 8, !tbaa !5
%168 = getelementptr inbounds %class.Seed, ptr %167, i32 0, i32 1
store i8 1, ptr %168, align 8, !tbaa !29
%169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
%170 = load ptr, ptr %169, align 8, !tbaa !5
invoke void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152) %170)
to label %171 unwind label %117
171: ; preds = %165
br label %172
172: ; preds = %171, %162
call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
br label %173
173: ; preds = %172
%174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
br label %53, !llvm.loop !42
175: ; preds = %117, %88
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
br label %220
176: ; preds = %58
%177 = load ptr, ptr @stderr, align 8, !tbaa !5
%178 = call i64 @clock() #7
%179 = load i64, ptr @t0, align 8, !tbaa !9
%180 = sub nsw i64 %178, %179
%181 = sitofp i64 %180 to double
%182 = fdiv double %181, 1.000000e+06
%183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str, double noundef %182) #7
%184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.8)
to label %185 unwind label %216
185: ; preds = %176
%186 = load i32, ptr %6, align 4, !tbaa !11
%187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %184, i32 noundef %186)
to label %188 unwind label %216
188: ; preds = %185
%189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef @.str.6)
to label %190 unwind label %216
190: ; preds = %188
%191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.9)
to label %192 unwind label %216
192: ; preds = %190
%193 = load i32, ptr %7, align 4, !tbaa !11
%194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %191, i32 noundef %193)
to label %195 unwind label %216
195: ; preds = %192
%196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef @.str.6)
to label %197 unwind label %216
197: ; preds = %195
%198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.10)
to label %199 unwind label %216
199: ; preds = %197
%200 = load i32, ptr %8, align 4, !tbaa !11
%201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %198, i32 noundef %200)
to label %202 unwind label %216
202: ; preds = %199
%203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef @.str.6)
to label %204 unwind label %216
204: ; preds = %202
invoke void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %18)
to label %205 unwind label %216
205: ; preds = %204
%206 = getelementptr inbounds %class.Community_Finder, ptr %18, i32 0, i32 2
%207 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
%208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
store ptr %207, ptr %208, align 8
%209 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
%210 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
store ptr %209, ptr %210, align 8
%211 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
%212 = load ptr, ptr %211, align 8
%213 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
%214 = load ptr, ptr %213, align 8
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24) %206, ptr %212, ptr %214)
to label %215 unwind label %216
215: ; preds = %205
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
ret void
216: ; preds = %205, %204, %202, %199, %197, %195, %192, %190, %188, %185, %176
%217 = landingpad { ptr, i32 }
cleanup
%218 = extractvalue { ptr, i32 } %217, 0
store ptr %218, ptr %13, align 8
%219 = extractvalue { ptr, i32 } %217, 1
store i32 %219, ptr %14, align 4
br label %220
220: ; preds = %216, %175
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
br label %221
221: ; preds = %220
%222 = load ptr, ptr %13, align 8
%223 = load i32, ptr %14, align 4
%224 = insertvalue { ptr, i32 } poison, ptr %222, 0
%225 = insertvalue { ptr, i32 } %224, i32 %223, 1
resume { ptr, i32 } %225
}
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) #6
declare void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
declare void @_ZN4Seed11clearCachesEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) #1 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #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 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !10, i64 96}
!20 = !{!"_ZTS10bloomGraphIiE", !21, i64 0, !25, i64 24, !25, i64 48, !21, i64 72, !10, i64 96, !10, i64 104, !25, i64 112}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIjSaIjEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!30, !14, i64 8}
!30 = !{!"_ZTS4Seed", !14, i64 8, !31, i64 16, !21, i64 64, !12, i64 88, !12, i64 92, !14, i64 96, !39, i64 104}
!31 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !32, i64 0}
!32 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !33, i64 0}
!33 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !34, i64 0, !36, i64 8}
!34 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !35, i64 0}
!35 = !{!"_ZTSSt4lessIiE"}
!36 = !{!"_ZTSSt15_Rb_tree_header", !37, i64 0, !10, i64 32}
!37 = !{!"_ZTSSt18_Rb_tree_node_base", !38, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!38 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!39 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !40, i64 0}
!40 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !34, i64 0, !36, i64 8}
!42 = distinct !{!42, !18}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%STRUCT1 = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%STRUCT2 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@t0 = external dso_local global i64, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [88 x i8], align 1
@theGlobalGraph = external global %STRUCT0, align 8
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() #0
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z28sizeSortFunctionLargestFirstP4SeedS0_(ptr noundef, ptr noundef) #1
declare noundef i32 @_ZN4Seed16getNumberOfNodesEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.std::vector.12", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%17 = load ptr, ptr %1, align 8
%18 = load ptr, ptr @stderr, align 8, !tbaa !5
%19 = call i64 @clock() #7
%20 = load i64, ptr @t0, align 8, !tbaa !9
%21 = sub nsw i64 %19, %20
%22 = sitofp i64 %21 to double
%23 = fdiv double %22, 1.000000e+06
%24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str, double noundef %23) #7
%25 = load ptr, ptr @stderr, align 8, !tbaa !5
%26 = call i64 @clock() #7
%27 = load i64, ptr @t0, align 8, !tbaa !9
%28 = sub nsw i64 %26, %27
%29 = sitofp i64 %28 to double
%30 = fdiv double %29, 1.000000e+06
%31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str, double noundef %30) #7
%32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.4)
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
%35 = getelementptr inbounds %STRUCT1, ptr %17, i32 0, i32 2
%36 = call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %34, i64 noundef %36)
%38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%39 = getelementptr inbounds %STRUCT1, ptr %17, i32 0, i32 2
%40 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
%41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %2, i32 0, i32 0
store ptr %40, ptr %41, align 8
%42 = getelementptr inbounds %STRUCT1, ptr %17, i32 0, i32 2
%43 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #7
%44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %43, ptr %44, align 8
%45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %2, i32 0, i32 0
%46 = load ptr, ptr %45, align 8
%47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
%48 = load ptr, ptr %47, align 8
call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %46, ptr %48, ptr noundef @_Z28sizeSortFunctionLargestFirstP4SeedS0_)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
call void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
store i32 0, ptr %5, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
store i32 0, ptr %6, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
store i32 0, ptr %7, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
store i32 0, ptr %8, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
store i8 0, ptr %9, align 1, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
%49 = getelementptr inbounds %STRUCT1, ptr %17, i32 0, i32 2
%50 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
%51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
store ptr %50, ptr %51, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
%52 = getelementptr inbounds %STRUCT1, ptr %17, i32 0, i32 2
%53 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
%54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
store ptr %53, ptr %54, align 8
%55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
br i1 %55, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
br label %B44
B3:
%56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%57 = load ptr, ptr %56, align 8, !tbaa !5
invoke void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152) %57)
to label %B4 unwind label %B12
B4:
%58 = load i32, ptr %8, align 4, !tbaa !11
%59 = srem i32 %58, 1000
%60 = icmp eq i32 %59, 0
br i1 %60, label %B5, label %B14
B5:
%61 = load ptr, ptr @stderr, align 8, !tbaa !5
%62 = call i64 @clock() #7
%63 = load i64, ptr @t0, align 8, !tbaa !9
%64 = sub nsw i64 %62, %63
%65 = sitofp i64 %64 to double
%66 = fdiv double %65, 1.000000e+06
%67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str, double noundef %66) #7
%68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
to label %B6 unwind label %B12
B6:
%69 = load i32, ptr %8, align 4, !tbaa !11
%70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %68, i32 noundef %69)
to label %B7 unwind label %B12
B7:
%71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef @.str.6)
to label %B8 unwind label %B12
B8:
%72 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
%73 = trunc i8 %72 to i1
br i1 %73, label %B9, label %B13
B9:
%74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.7)
to label %B10 unwind label %B12
B10:
%75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B11 unwind label %B12
B11:
br label %B13
B12:
%76 = landingpad { ptr, i32 }
cleanup
%77 = extractvalue { ptr, i32 } %76, 0
store ptr %77, ptr %12, align 8
%78 = extractvalue { ptr, i32 } %76, 1
store i32 %78, ptr %13, align 4
br label %B43
B13:
store i8 0, ptr %9, align 1, !tbaa !13
br label %B14
B14:
%79 = load i32, ptr %8, align 4, !tbaa !11
%80 = add nsw i32 %79, 1
store i32 %80, ptr %8, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
store i8 0, ptr %14, align 1, !tbaa !13
%81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%82 = load ptr, ptr %81, align 8, !tbaa !5
%83 = invoke noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %82)
to label %B15 unwind label %B22
B15:
%84 = zext i1 %83 to i8
store i8 %84, ptr %14, align 1, !tbaa !13
%85 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
%86 = trunc i8 %85 to i1
br i1 %86, label %B37, label %B16
B16:
%87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%88 = load ptr, ptr %87, align 8, !tbaa !5
invoke void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %88)
to label %B17 unwind label %B22
B17:
%89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%90 = load ptr, ptr %89, align 8, !tbaa !5
invoke void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %90)
to label %B18 unwind label %B22
B18:
br label %B19
B19:
%91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%92 = load ptr, ptr %91, align 8, !tbaa !5
%93 = invoke noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %92)
to label %B20 unwind label %B22
B20:
%94 = fcmp ogt float %93, 0.000000e+00
br i1 %94, label %B21, label %B23
B21:
br label %B19, !llvm.loop !17
B22:
%95 = landingpad { ptr, i32 }
cleanup
%96 = extractvalue { ptr, i32 } %95, 0
store ptr %96, ptr %12, align 8
%97 = extractvalue { ptr, i32 } %95, 1
store i32 %97, ptr %13, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
br label %B43
B23:
%98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%99 = load ptr, ptr %98, align 8, !tbaa !5
%100 = invoke noundef i32 @_ZN4Seed16getNumberOfNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %99)
to label %B24 unwind label %B22
B24:
%101 = sext i32 %100 to i64
%102 = load i64, ptr getelementptr inbounds (%STRUCT0, ptr @theGlobalGraph, i32 0, i32 4), align 8, !tbaa !19
%103 = sdiv i64 %102, 4
%104 = icmp sgt i64 %101, %103
br i1 %104, label %B25, label %B30
B25:
%105 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
%106 = trunc i8 %105 to i1
br i1 %106, label %B29, label %B26
B26:
%107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.7)
to label %B27 unwind label %B22
B27:
%108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B28 unwind label %B22
B28:
store i8 1, ptr %9, align 1, !tbaa !13
br label %B29
B29:
br label %B30
B30:
%109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%110 = load ptr, ptr %109, align 8, !tbaa !5
%111 = invoke noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %110)
to label %B31 unwind label %B22
B31:
%112 = zext i1 %111 to i8
store i8 %112, ptr %14, align 1, !tbaa !13
%113 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
%114 = trunc i8 %113 to i1
br i1 %114, label %B34, label %B32
B32:
%115 = load i32, ptr %7, align 4, !tbaa !11
%116 = add nsw i32 %115, 1
store i32 %116, ptr %7, align 4, !tbaa !11
%117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %117)
to label %B33 unwind label %B22
B33:
br label %B35
B34:
%118 = load i32, ptr %6, align 4, !tbaa !11
%119 = add nsw i32 %118, 1
store i32 %119, ptr %6, align 4, !tbaa !11
br label %B35
B35:
%120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%121 = load ptr, ptr %120, align 8, !tbaa !5
invoke void @_ZN4Seed11clearCachesEv(ptr noundef nonnull align 8 dereferenceable(152) %121)
to label %B36 unwind label %B22
B36:
br label %B38
B37:
%122 = load i32, ptr %5, align 4, !tbaa !11
%123 = add nsw i32 %122, 1
store i32 %123, ptr %5, align 4, !tbaa !11
br label %B38
B38:
%124 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
%125 = trunc i8 %124 to i1
br i1 %125, label %B39, label %B41
B39:
%126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%127 = load ptr, ptr %126, align 8, !tbaa !5
%128 = getelementptr inbounds %STRUCT2, ptr %127, i32 0, i32 1
store i8 1, ptr %128, align 8, !tbaa !29
%129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
%130 = load ptr, ptr %129, align 8, !tbaa !5
invoke void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152) %130)
to label %B40 unwind label %B22
B40:
br label %B41
B41:
call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
br label %B42
B42:
%131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
br label %B1, !llvm.loop !42
B43:
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
br label %B57
B44:
%132 = load ptr, ptr @stderr, align 8, !tbaa !5
%133 = call i64 @clock() #7
%134 = load i64, ptr @t0, align 8, !tbaa !9
%135 = sub nsw i64 %133, %134
%136 = sitofp i64 %135 to double
%137 = fdiv double %136, 1.000000e+06
%138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str, double noundef %137) #7
%139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.8)
to label %B45 unwind label %B56
B45:
%140 = load i32, ptr %5, align 4, !tbaa !11
%141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %139, i32 noundef %140)
to label %B46 unwind label %B56
B46:
%142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @.str.6)
to label %B47 unwind label %B56
B47:
%143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.9)
to label %B48 unwind label %B56
B48:
%144 = load i32, ptr %6, align 4, !tbaa !11
%145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %143, i32 noundef %144)
to label %B49 unwind label %B56
B49:
%146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef @.str.6)
to label %B50 unwind label %B56
B50:
%147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.10)
to label %B51 unwind label %B56
B51:
%148 = load i32, ptr %7, align 4, !tbaa !11
%149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %147, i32 noundef %148)
to label %B52 unwind label %B56
B52:
%150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef @.str.6)
to label %B53 unwind label %B56
B53:
invoke void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %17)
to label %B54 unwind label %B56
B54:
%151 = getelementptr inbounds %STRUCT1, ptr %17, i32 0, i32 2
%152 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
%153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
store ptr %152, ptr %153, align 8
%154 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
%155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
store ptr %154, ptr %155, align 8
%156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
%157 = load ptr, ptr %156, align 8
%158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
%159 = load ptr, ptr %158, align 8
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr %157, ptr %159)
to label %B55 unwind label %B56
B55:
call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
ret void
B56:
%160 = landingpad { ptr, i32 }
cleanup
%161 = extractvalue { ptr, i32 } %160, 0
store ptr %161, ptr %12, align 8
%162 = extractvalue { ptr, i32 } %160, 1
store i32 %162, ptr %13, align 4
br label %B57
B57:
call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
br label %B58
B58:
%163 = load ptr, ptr %12, align 8
%164 = load i32, ptr %13, align 4
%165 = insertvalue { ptr, i32 } poison, ptr %163, 0
%166 = insertvalue { ptr, i32 } %165, i32 %164, 1
resume { ptr, i32 } %166
}
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) #6
declare void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
declare void @_ZN4Seed11clearCachesEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
declare void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152)) #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) #1 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #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 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !10, i64 96}
!20 = !{!"_ZTS10bloomGraphIiE", !21, i64 0, !25, i64 24, !25, i64 48, !21, i64 72, !10, i64 96, !10, i64 104, !25, i64 112}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIjSaIjEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!30, !14, i64 8}
!30 = !{!"_ZTS4Seed", !14, i64 8, !31, i64 16, !21, i64 64, !12, i64 88, !12, i64 92, !14, i64 96, !39, i64 104}
!31 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !32, i64 0}
!32 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !33, i64 0}
!33 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !34, i64 0, !36, i64 8}
!34 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !35, i64 0}
!35 = !{!"_ZTSSt4lessIiE"}
!36 = !{!"_ZTSSt15_Rb_tree_header", !37, i64 0, !10, i64 32}
!37 = !{!"_ZTSSt18_Rb_tree_node_base", !38, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!38 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!39 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !40, i64 0}
!40 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !34, i64 0, !36, i64 8}
!42 = distinct !{!42, !18} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.bloomGraph = type { %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", i64, i64, %"class.std::vector.18" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@t0 = external dso_local local_unnamed_addr global i64, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [88 x i8], align 1
@theGlobalGraph = external local_unnamed_addr global %struct.bloomGraph, align 8
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #0
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z28sizeSortFunctionLargestFirstP4SeedS0_(ptr noundef, ptr noundef) #1
declare noundef i32 @_ZN4Seed16getNumberOfNodesEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #6
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #7
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca %"class.std::vector.12", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%5 = load ptr, ptr @stderr, align 8, !tbaa !5
%6 = tail call i64 @clock() #8
%7 = load i64, ptr @t0, align 8, !tbaa !9
%8 = sub nsw i64 %6, %7
%9 = sitofp i64 %8 to double
%10 = fdiv double %9, 1.000000e+06
%11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str, double noundef %10) #9
%12 = load ptr, ptr @stderr, align 8, !tbaa !5
%13 = tail call i64 @clock() #8
%14 = load i64, ptr @t0, align 8, !tbaa !9
%15 = sub nsw i64 %13, %14
%16 = sitofp i64 %15 to double
%17 = fdiv double %16, 1.000000e+06
%18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str, double noundef %17) #9
%19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.4)
%20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.5)
%22 = getelementptr inbounds i8, ptr %0, i64 32
%23 = tail call noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
%24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %23)
%25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%26 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
%27 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
tail call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %26, ptr %27, ptr noundef nonnull @_Z28sizeSortFunctionLargestFirstP4SeedS0_)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
call void @_ZNSt6vectorIP4SeedSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
%28 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
store ptr %28, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
%29 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
store ptr %29, ptr %4, align 8
%30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
br i1 %30, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %118, %1
%.030.lcssa = phi i32 [ 0, %1 ], [ %.23240, %118 ]
%.019.lcssa = phi i32 [ 0, %1 ], [ %.244, %118 ]
%.0.lcssa = phi i32 [ 0, %1 ], [ %.146, %118 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
%31 = load ptr, ptr @stderr, align 8, !tbaa !5
%32 = call i64 @clock() #8
%33 = load i64, ptr @t0, align 8, !tbaa !9
%34 = sub nsw i64 %32, %33
%35 = sitofp i64 %34 to double
%36 = fdiv double %35, 1.000000e+06
%37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str, double noundef %36) #9
%38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.8)
to label %123 unwind label %144
.lr.ph: ; preds = %1, %118
%.061 = phi i32 [ %.146, %118 ], [ 0, %1 ]
%.01960 = phi i32 [ %.244, %118 ], [ 0, %1 ]
%.02659 = phi i8 [ %.342, %118 ], [ 0, %1 ]
%.02958 = phi i32 [ %66, %118 ], [ 0, %1 ]
%.03057 = phi i32 [ %.23240, %118 ], [ 0, %1 ]
%39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%40 = load ptr, ptr %39, align 8, !tbaa !5
invoke void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152) %40)
to label %41 unwind label %63
41: ; preds = %.lr.ph
%42 = urem i32 %.02958, 1000
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %65
44: ; preds = %41
%45 = load ptr, ptr @stderr, align 8, !tbaa !5
%46 = call i64 @clock() #8
%47 = load i64, ptr @t0, align 8, !tbaa !9
%48 = sub nsw i64 %46, %47
%49 = sitofp i64 %48 to double
%50 = fdiv double %49, 1.000000e+06
%51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str, double noundef %50) #9
%52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
to label %53 unwind label %63
53: ; preds = %44
%54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef %.02958)
to label %55 unwind label %63
55: ; preds = %53
%56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @.str.6)
to label %57 unwind label %63
57: ; preds = %55
%58 = trunc nuw i8 %.02659 to i1
br i1 %58, label %59, label %65
59: ; preds = %57
%60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.7)
to label %61 unwind label %63
61: ; preds = %59
%62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %65 unwind label %63
63: ; preds = %61, %59, %55, %53, %44, %.lr.ph
%64 = landingpad { ptr, i32 }
cleanup
br label %122
65: ; preds = %57, %61, %41
%.127 = phi i8 [ %.02659, %41 ], [ 0, %61 ], [ 0, %57 ]
%66 = add nuw nsw i32 %.02958, 1
%67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%68 = load ptr, ptr %67, align 8, !tbaa !5
%69 = invoke noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %68)
to label %70 unwind label %.loopexit.split-lp
70: ; preds = %65
br i1 %69, label %.thread, label %71
71: ; preds = %70
%72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%73 = load ptr, ptr %72, align 8, !tbaa !5
invoke void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %73)
to label %74 unwind label %.loopexit.split-lp
74: ; preds = %71
%75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%76 = load ptr, ptr %75, align 8, !tbaa !5
invoke void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %76)
to label %.preheader unwind label %.loopexit.split-lp
.preheader: ; preds = %74, %80
%77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%78 = load ptr, ptr %77, align 8, !tbaa !5
%79 = invoke noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %78)
to label %80 unwind label %.loopexit
80: ; preds = %.preheader
%81 = fcmp ogt float %79, 0.000000e+00
br i1 %81, label %.preheader, label %82, !llvm.loop !11
.loopexit: ; preds = %.preheader
%lpad.loopexit = landingpad { ptr, i32 }
cleanup
br label %122
.loopexit.split-lp: ; preds = %65, %71, %74, %82, %93, %95, %97, %102, %107, %112
%lpad.loopexit.split-lp = landingpad { ptr, i32 }
cleanup
br label %122
82: ; preds = %80
%83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%84 = load ptr, ptr %83, align 8, !tbaa !5
%85 = invoke noundef i32 @_ZN4Seed16getNumberOfNodesEv(ptr noundef nonnull align 8 dereferenceable(152) %84)
to label %86 unwind label %.loopexit.split-lp
86: ; preds = %82
%87 = sext i32 %85 to i64
%88 = load i64, ptr getelementptr inbounds (i8, ptr @theGlobalGraph, i64 96), align 8, !tbaa !13
%89 = sdiv i64 %88, 4
%90 = icmp slt i64 %89, %87
br i1 %90, label %91, label %97
91: ; preds = %86
%92 = trunc nuw i8 %.127 to i1
br i1 %92, label %97, label %93
93: ; preds = %91
%94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.7)
to label %95 unwind label %.loopexit.split-lp
95: ; preds = %93
%96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %97 unwind label %.loopexit.split-lp
97: ; preds = %95, %91, %86
%.228 = phi i8 [ %.127, %91 ], [ %.127, %86 ], [ 1, %95 ]
%98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%99 = load ptr, ptr %98, align 8, !tbaa !5
%100 = invoke noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %99)
to label %101 unwind label %.loopexit.split-lp
101: ; preds = %97
br i1 %100, label %105, label %102
102: ; preds = %101
%103 = add nsw i32 %.03057, 1
%104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %104)
to label %107 unwind label %.loopexit.split-lp
105: ; preds = %101
%106 = add nsw i32 %.01960, 1
br label %107
107: ; preds = %102, %105
%.131 = phi i32 [ %.03057, %105 ], [ %103, %102 ]
%.120 = phi i32 [ %106, %105 ], [ %.01960, %102 ]
%108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%109 = load ptr, ptr %108, align 8, !tbaa !5
invoke void @_ZN4Seed11clearCachesEv(ptr noundef nonnull align 8 dereferenceable(152) %109)
to label %111 unwind label %.loopexit.split-lp
.thread: ; preds = %70
%110 = add nsw i32 %.061, 1
br label %112
111: ; preds = %107
br i1 %100, label %112, label %118
112: ; preds = %.thread, %111
%.147 = phi i32 [ %110, %.thread ], [ %.061, %111 ]
%.245 = phi i32 [ %.01960, %.thread ], [ %.120, %111 ]
%.343 = phi i8 [ %.127, %.thread ], [ %.228, %111 ]
%.23241 = phi i32 [ %.03057, %.thread ], [ %.131, %111 ]
%113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%114 = load ptr, ptr %113, align 8, !tbaa !5
%115 = getelementptr inbounds i8, ptr %114, i64 8
store i8 1, ptr %115, align 8, !tbaa !23
%116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
%117 = load ptr, ptr %116, align 8, !tbaa !5
invoke void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152) %117)
to label %118 unwind label %.loopexit.split-lp
118: ; preds = %112, %111
%.146 = phi i32 [ %.147, %112 ], [ %.061, %111 ]
%.244 = phi i32 [ %.245, %112 ], [ %.120, %111 ]
%.342 = phi i8 [ %.343, %112 ], [ %.228, %111 ]
%.23240 = phi i32 [ %.23241, %112 ], [ %.131, %111 ]
%119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
%120 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
store ptr %120, ptr %4, align 8
%121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
br i1 %121, label %.lr.ph, label %._crit_edge, !llvm.loop !38
122: ; preds = %.loopexit, %.loopexit.split-lp, %63
%.pn = phi { ptr, i32 } [ %64, %63 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
br label %146
123: ; preds = %._crit_edge
%124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %38, i32 noundef %.0.lcssa)
to label %125 unwind label %144
125: ; preds = %123
%126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull @.str.6)
to label %127 unwind label %144
127: ; preds = %125
%128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.9)
to label %129 unwind label %144
129: ; preds = %127
%130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %128, i32 noundef %.019.lcssa)
to label %131 unwind label %144
131: ; preds = %129
%132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.6)
to label %133 unwind label %144
133: ; preds = %131
%134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.10)
to label %135 unwind label %144
135: ; preds = %133
%136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %134, i32 noundef %.030.lcssa)
to label %137 unwind label %144
137: ; preds = %135
%138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull @.str.6)
to label %139 unwind label %144
139: ; preds = %137
invoke void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56) %0)
to label %140 unwind label %144
140: ; preds = %139
%141 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
%142 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
invoke void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr %141, ptr %142)
to label %143 unwind label %144
143: ; preds = %140
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
ret void
144: ; preds = %140, %139, %137, %135, %133, %131, %129, %127, %125, %123, %._crit_edge
%145 = landingpad { ptr, i32 }
cleanup
br label %146
146: ; preds = %144, %122
%.pn.pn = phi { ptr, i32 } [ %.pn, %122 ], [ %145, %144 ]
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
resume { ptr, i32 } %.pn.pn
}
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP4SeedSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #7
declare void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2
declare noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2
declare void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2
declare void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2
declare noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
declare void @_ZN4Seed11clearCachesEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2
declare void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16Community_Finder12sweepTheDeadEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) local_unnamed_addr #1 align 2
attributes #0 = { 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 #1 = { mustprogress 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 #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 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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 #7 = { inlinehint mustprogress 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 #8 = { nounwind }
attributes #9 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 96}
!14 = !{!"_ZTS10bloomGraphIiE", !15, i64 0, !19, i64 24, !19, i64 48, !15, i64 72, !10, i64 96, !10, i64 104, !19, i64 112}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIjSaIjEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!24, !25, i64 8}
!24 = !{!"_ZTS4Seed", !25, i64 8, !26, i64 16, !15, i64 64, !34, i64 88, !34, i64 92, !25, i64 96, !35, i64 104}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !29, i64 0, !31, i64 8}
!29 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !30, i64 0}
!30 = !{!"_ZTSSt4lessIiE"}
!31 = !{!"_ZTSSt15_Rb_tree_header", !32, i64 0, !10, i64 32}
!32 = !{!"_ZTSSt18_Rb_tree_node_base", !33, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!33 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!34 = !{!"int", !7, i64 0}
!35 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !29, i64 0, !31, i64 8}
!38 = distinct !{!38, !12}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 769ef2982404e9d8 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Community_Finder.ll | ZN16Community_Finder3runEv | BSD-2-Clause |
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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZTV16Community_Finder = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN16Community_FinderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) unnamed_addr #0 align 2 {
%2 = alloca ptr, align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%5 = load ptr, ptr %2, align 8
store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV16Community_Finder, i32 0, i32 0, i32 2), ptr %5, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
%6 = getelementptr inbounds %class.Community_Finder, ptr %5, i32 0, i32 2
%7 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
%8 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %7, ptr %8, align 8
br label %9
9: ; preds = %24, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
%10 = getelementptr inbounds %class.Community_Finder, ptr %5, i32 0, i32 2
%11 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
%12 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
store ptr %11, ptr %12, align 8
%13 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
br i1 %13, label %15, label %14
14: ; preds = %9
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
br label %26
15: ; preds = %9
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
%17 = load ptr, ptr %16, align 8, !tbaa !5
%18 = icmp eq ptr %17, null
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = load ptr, ptr %17, align 8, !tbaa !9
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
call void %22(ptr noundef nonnull align 8 dereferenceable(152) %17) #3
br label %23
23: ; preds = %19, %15
br label %24
24: ; preds = %23
%25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
br label %9, !llvm.loop !11
26: ; preds = %14
%27 = getelementptr inbounds %class.Community_Finder, ptr %5, i32 0, i32 2
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #3
%28 = getelementptr inbounds %class.Community_Finder, ptr %5, i32 0, i32 1
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #3
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%STRUCT0 = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZTV16Community_Finder = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN16Community_FinderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) unnamed_addr #0 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%4 = load ptr, ptr %1, align 8
store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV16Community_Finder, i32 0, i32 0, i32 2), ptr %4, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
%5 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
%6 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
%7 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %2, i32 0, i32 0
store ptr %6, ptr %7, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
%8 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
%9 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
%10 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %9, ptr %10, align 8
%11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
br i1 %11, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
br label %B7
B3:
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
%13 = load ptr, ptr %12, align 8, !tbaa !5
%14 = icmp eq ptr %13, null
br i1 %14, label %B5, label %B4
B4:
%15 = load ptr, ptr %13, align 8, !tbaa !9
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
call void %17(ptr noundef nonnull align 8 dereferenceable(152) %13) #3
br label %B5
B5:
br label %B6
B6:
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
br label %B1, !llvm.loop !11
B7:
%19 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
%20 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 1
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #3
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZTV16Community_Finder = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN16Community_FinderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) unnamed_addr #0 align 2 {
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTV16Community_Finder, i64 16), ptr %0, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%4 = getelementptr inbounds i8, ptr %0, i64 32
%5 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
store ptr %5, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%6 = tail call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
store ptr %6, ptr %3, align 8
%7 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
br i1 %7, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %16, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
call void @_ZNSt6vectorIP4SeedSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
%8 = getelementptr inbounds i8, ptr %0, i64 8
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
ret void
.lr.ph: ; preds = %1, %16
%9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
%10 = load ptr, ptr %9, align 8, !tbaa !8
%11 = icmp eq ptr %10, null
br i1 %11, label %16, label %12
12: ; preds = %.lr.ph
%13 = load ptr, ptr %10, align 8, !tbaa !5
%14 = getelementptr inbounds i8, ptr %13, i64 8
%15 = load ptr, ptr %14, align 8
call void %15(ptr noundef nonnull align 8 dereferenceable(152) %10) #3
br label %16
16: ; preds = %.lr.ph, %12
%17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%18 = call ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
store ptr %18, ptr %3, align 8
%19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !11
}
; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP4SeedSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP4SeedSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP4SeedSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | cdad30258ac585de | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Community_Finder.ll | ZN16Community_FinderD2Ev | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.17" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@t0 = external dso_local global i64, align 8
@numberOfCliquesProcessed = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() #0
declare i32 @__gxx_personality_v0(...)
; 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: mustprogress uwtable
define dso_local void @_ZN16Community_FinderclERKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca %"class.std::vector", align 8
%6 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
%7 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
%10 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
%11 = load ptr, ptr %4, align 8, !tbaa !5
%12 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
%13 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %6, i32 0, i32 0
store ptr %12, ptr %13, align 8
br label %14
14: ; preds = %23, %2
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
%15 = load ptr, ptr %4, align 8, !tbaa !5
%16 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
%17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %7, i32 0, i32 0
store ptr %16, ptr %17, align 8
%18 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
br i1 %18, label %20, label %19
19: ; preds = %14
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
br label %29
20: ; preds = %14
%21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %21)
to label %22 unwind label %25
22: ; preds = %20
br label %23
23: ; preds = %22
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
br label %14, !llvm.loop !9
25: ; preds = %20
%26 = landingpad { ptr, i32 }
cleanup
%27 = extractvalue { ptr, i32 } %26, 0
store ptr %27, ptr %8, align 8
%28 = extractvalue { ptr, i32 } %26, 1
store i32 %28, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
br label %59
29: ; preds = %19
%30 = getelementptr inbounds %class.Community_Finder, ptr %10, i32 0, i32 1
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %5)
to label %31 unwind label %54
31: ; preds = %29
%32 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !11
%33 = add nsw i32 %32, 1
store i32 %33, ptr @numberOfCliquesProcessed, align 4, !tbaa !11
%34 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !11
%35 = srem i32 %34, 1000
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %58
37: ; preds = %31
%38 = load ptr, ptr @stderr, align 8, !tbaa !5
%39 = call i64 @clock() #7
%40 = load i64, ptr @t0, align 8, !tbaa !13
%41 = sub nsw i64 %39, %40
%42 = sitofp i64 %41 to double
%43 = fdiv double %42, 1.000000e+06
%44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str, double noundef %43) #7
%45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
to label %46 unwind label %54
46: ; preds = %37
%47 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !11
%48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %45, i32 noundef %47)
to label %49 unwind label %54
49: ; preds = %46
%50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @.str.3)
to label %51 unwind label %54
51: ; preds = %49
%52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %53 unwind label %54
53: ; preds = %51
br label %58
54: ; preds = %51, %49, %46, %37, %29
%55 = landingpad { ptr, i32 }
cleanup
%56 = extractvalue { ptr, i32 } %55, 0
store ptr %56, ptr %8, align 8
%57 = extractvalue { ptr, i32 } %55, 1
store i32 %57, ptr %9, align 4
br label %59
58: ; preds = %53, %31
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
ret void
59: ; preds = %54, %25
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
br label %60
60: ; preds = %59
%61 = load ptr, ptr %8, align 8
%62 = load i32, ptr %9, align 4
%63 = insertvalue { ptr, i32 } poison, ptr %61, 0
%64 = insertvalue { ptr, i32 } %63, i32 %62, 1
resume { ptr, i32 } %64
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { "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 #7 = { 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 ([email protected]: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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.17" = type { ptr }
%STRUCT0 = type { ptr, %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@t0 = external dso_local global i64, align 8
@numberOfCliquesProcessed = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() #0
declare i32 @__gxx_personality_v0(...)
; 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: mustprogress uwtable
define dso_local void @_ZN16Community_FinderclERKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
B0:
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
%6 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
store ptr %1, ptr %3, align 8, !tbaa !5
%9 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
%10 = load ptr, ptr %3, align 8, !tbaa !5
%11 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
%12 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %5, i32 0, i32 0
store ptr %11, ptr %12, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
%13 = load ptr, ptr %3, align 8, !tbaa !5
%14 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
%15 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %6, i32 0, i32 0
store ptr %14, ptr %15, align 8
%16 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
br i1 %16, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
br label %B7
B3:
%17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %B4 unwind label %B6
B4:
br label %B5
B5:
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
br label %B1, !llvm.loop !9
B6:
%19 = landingpad { ptr, i32 }
cleanup
%20 = extractvalue { ptr, i32 } %19, 0
store ptr %20, ptr %7, align 8
%21 = extractvalue { ptr, i32 } %19, 1
store i32 %21, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
br label %B16
B7:
%22 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 1
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %4)
to label %B8 unwind label %B14
B8:
%23 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !11
%24 = add nsw i32 %23, 1
store i32 %24, ptr @numberOfCliquesProcessed, align 4, !tbaa !11
%25 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !11
%26 = srem i32 %25, 1000
%27 = icmp eq i32 %26, 0
br i1 %27, label %B9, label %B15
B9:
%28 = load ptr, ptr @stderr, align 8, !tbaa !5
%29 = call i64 @clock() #7
%30 = load i64, ptr @t0, align 8, !tbaa !13
%31 = sub nsw i64 %29, %30
%32 = sitofp i64 %31 to double
%33 = fdiv double %32, 1.000000e+06
%34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str, double noundef %33) #7
%35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
to label %B10 unwind label %B14
B10:
%36 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !11
%37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 noundef %36)
to label %B11 unwind label %B14
B11:
%38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @.str.3)
to label %B12 unwind label %B14
B12:
%39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B13 unwind label %B14
B13:
br label %B15
B14:
%40 = landingpad { ptr, i32 }
cleanup
%41 = extractvalue { ptr, i32 } %40, 0
store ptr %41, ptr %7, align 8
%42 = extractvalue { ptr, i32 } %40, 1
store i32 %42, ptr %8, align 4
br label %B16
B15:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
ret void
B16:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
br label %B17
B17:
%43 = load ptr, ptr %7, align 8
%44 = load i32, ptr %8, align 4
%45 = insertvalue { ptr, i32 } poison, ptr %43, 0
%46 = insertvalue { ptr, i32 } %45, i32 %44, 1
resume { ptr, i32 } %46
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { "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 #7 = { 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 ([email protected]: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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.17" = type { ptr }
@t0 = external dso_local local_unnamed_addr global i64, align 8
@numberOfCliquesProcessed = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #0
declare i32 @__gxx_personality_v0(...)
; 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: mustprogress uwtable
define dso_local void @_ZN16Community_FinderclERKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
%5 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
%6 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
store ptr %6, ptr %4, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
%7 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
store ptr %7, ptr %5, align 8
%8 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
br i1 %8, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %11, %2
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
%9 = getelementptr inbounds i8, ptr %0, i64 8
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %3)
to label %17 unwind label %38
.lr.ph: ; preds = %2, %11
%10 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %10)
to label %11 unwind label %15
11: ; preds = %.lr.ph
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
%13 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
store ptr %13, ptr %5, align 8
%14 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
br i1 %14, label %.lr.ph, label %._crit_edge, !llvm.loop !5
15: ; preds = %.lr.ph
%16 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
br label %41
17: ; preds = %._crit_edge
%18 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !7
%19 = add nsw i32 %18, 1
store i32 %19, ptr @numberOfCliquesProcessed, align 4, !tbaa !7
%20 = srem i32 %19, 1000
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %40
22: ; preds = %17
%23 = load ptr, ptr @stderr, align 8, !tbaa !11
%24 = call i64 @clock() #8
%25 = load i64, ptr @t0, align 8, !tbaa !13
%26 = sub nsw i64 %24, %25
%27 = sitofp i64 %26 to double
%28 = fdiv double %27, 1.000000e+06
%29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str, double noundef %28) #9
%30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
to label %31 unwind label %38
31: ; preds = %22
%32 = load i32, ptr @numberOfCliquesProcessed, align 4, !tbaa !7
%33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %30, i32 noundef %32)
to label %34 unwind label %38
34: ; preds = %31
%35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str.3)
to label %36 unwind label %38
36: ; preds = %34
%37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %40 unwind label %38
38: ; preds = %36, %34, %31, %22, %._crit_edge
%39 = landingpad { ptr, i32 }
cleanup
br label %41
40: ; preds = %36, %17
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
ret void
41: ; preds = %38, %15
%.pn = phi { ptr, i32 } [ %16, %15 ], [ %39, %38 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
resume { ptr, i32 } %.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { 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 #6 = { inlinehint mustprogress 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 #7 = { "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 #8 = { nounwind }
attributes #9 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !9, i64 0}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 51df8a9ef13bccc7 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | Community_Finder | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152)) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #4 align 2 {
%2 = alloca ptr, align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%5 = load ptr, ptr %2, align 8
%6 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.1)
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
%7 = getelementptr inbounds %class.Seed, ptr %5, i32 0, i32 2
%8 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
%9 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %3, i32 0, i32 0
store ptr %8, ptr %9, align 8
br label %10
10: ; preds = %21, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
%11 = getelementptr inbounds %class.Seed, ptr %5, i32 0, i32 2
%12 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
%13 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %4, i32 0, i32 0
store ptr %12, ptr %13, align 8
%14 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
br i1 %14, label %16, label %15
15: ; preds = %10
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
br label %23
16: ; preds = %10
%17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
%18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
%19 = load i32, ptr %18, align 4, !tbaa !9
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef %19)
br label %21
21: ; preds = %16
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
br label %10, !llvm.loop !11
23: ; preds = %15
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
%25 = call noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %5)
%26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %25)
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef @.str.3)
%28 = call noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %5)
%29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef %28)
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef @.str.4)
%31 = call noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152) %5)
%32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %30, float noundef %31)
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
}
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #4 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%STRUCT0 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152)) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #4 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%4 = load ptr, ptr %1, align 8
%5 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.1)
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
%6 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
%7 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
%8 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %2, i32 0, i32 0
store ptr %7, ptr %8, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
%9 = getelementptr inbounds %STRUCT0, ptr %4, i32 0, i32 2
%10 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
%11 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %3, i32 0, i32 0
store ptr %10, ptr %11, align 8
%12 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
br i1 %12, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
br label %B5
B3:
%13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
%14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
%15 = load i32, ptr %14, align 4, !tbaa !9
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %15)
br label %B4
B4:
%17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
br label %B1, !llvm.loop !11
B5:
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
%19 = call noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %4)
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef %19)
%21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef @.str.3)
%22 = call noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %4)
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef %22)
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str.4)
%25 = call noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152) %4)
%26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %24, float noundef %25)
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
}
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #4 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 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: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed11prettyPrintEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #4 align 2 {
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.1)
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
%5 = getelementptr inbounds i8, ptr %0, i64 16
%6 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
store ptr %6, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
%7 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
store ptr %7, ptr %3, align 8
%8 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
br i1 %8, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
%9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
%10 = call noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
%11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %10)
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull @.str.3)
%13 = call noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
%14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef %13)
%15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @.str.4)
%16 = call noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
%17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %15, float noundef %16)
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
.lr.ph: ; preds = %1, %.lr.ph
%19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
%20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
%21 = load i32, ptr %20, align 4, !tbaa !5
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef %21)
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
%24 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
store ptr %24, ptr %3, align 8
%25 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !9
}
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #4 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | ebbfd1d5350bdfbe | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed11prettyPrintEv | BSD-2-Clause |
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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }
%"struct.std::pair.27" = type { ptr, ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@theGlobalGraph = external global %struct.bloomGraph, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %1) #1 align 2 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %"struct.std::pair.20", align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %"struct.std::pair.27", align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca %"struct.std::pair.20", align 4
%12 = alloca %"struct.std::pair.20", align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store i32 %1, ptr %4, align 4, !tbaa !9
%13 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
%14 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 7
%15 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(4) %4)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %15, i64 8, i1 false)
%16 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 7
%17 = call noundef i64 @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5eraseERS4_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 4 dereferenceable(4) %4)
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
%18 = getelementptr inbounds %"struct.std::pair.20", ptr %5, i32 0, i32 0
%19 = load i32, ptr %18, align 4, !tbaa !11
%20 = mul nsw i32 %19, 2
%21 = call noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %13)
%22 = add nsw i32 %20, %21
store i32 %22, ptr %6, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
%23 = call noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %13)
%24 = getelementptr inbounds %"struct.std::pair.20", ptr %5, i32 0, i32 1
%25 = load i32, ptr %24, align 4, !tbaa !13
%26 = add nsw i32 %23, %25
%27 = getelementptr inbounds %"struct.std::pair.20", ptr %5, i32 0, i32 0
%28 = load i32, ptr %27, align 4, !tbaa !11
%29 = sub nsw i32 %26, %28
store i32 %29, ptr %7, align 4, !tbaa !9
%30 = load i32, ptr %6, align 4, !tbaa !9
%31 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 4
store i32 %30, ptr %31, align 8, !tbaa !14
%32 = load i32, ptr %7, align 4, !tbaa !9
%33 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 5
store i32 %32, ptr %33, align 4, !tbaa !33
%34 = load i32, ptr %4, align 4, !tbaa !9
call void @_ZN4Seed7addNodeEi(ptr noundef nonnull align 8 dereferenceable(152) %13, i32 noundef %34)
call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
%35 = load i32, ptr %4, align 4, !tbaa !9
%36 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %35)
%37 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 0
%38 = extractvalue { ptr, ptr } %36, 0
store ptr %38, ptr %37, align 8
%39 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 1
%40 = extractvalue { ptr, ptr } %36, 1
store ptr %40, ptr %39, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
%41 = getelementptr inbounds %"struct.std::pair.27", ptr %8, i32 0, i32 0
%42 = load ptr, ptr %41, align 8, !tbaa !34
store ptr %42, ptr %9, align 8, !tbaa !5
br label %43
43: ; preds = %80, %2
%44 = load ptr, ptr %9, align 8, !tbaa !5
%45 = getelementptr inbounds %"struct.std::pair.27", ptr %8, i32 0, i32 1
%46 = load ptr, ptr %45, align 8, !tbaa !36
%47 = icmp ne ptr %44, %46
br i1 %47, label %49, label %48
48: ; preds = %43
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
br label %83
49: ; preds = %43
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
%50 = load ptr, ptr %9, align 8, !tbaa !5
%51 = load i32, ptr %50, align 4, !tbaa !9
store i32 %51, ptr %10, align 4, !tbaa !9
%52 = load i32, ptr %10, align 4, !tbaa !9
%53 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %13, i32 noundef %52)
br i1 %53, label %54, label %55
54: ; preds = %49
br label %79
55: ; preds = %49
%56 = load i32, ptr %10, align 4, !tbaa !9
%57 = call noundef zeroext i1 @_ZN4Seed16frontierContainsEi(ptr noundef nonnull align 8 dereferenceable(152) %13, i32 noundef %56)
br i1 %57, label %58, label %72
58: ; preds = %55
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
%59 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 7
%60 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %59, ptr noundef nonnull align 4 dereferenceable(4) %10)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %60, i64 8, i1 false)
%61 = getelementptr inbounds %"struct.std::pair.20", ptr %11, i32 0, i32 0
%62 = load i32, ptr %61, align 4, !tbaa !11
%63 = add nsw i32 %62, 1
%64 = getelementptr inbounds %"struct.std::pair.20", ptr %11, i32 0, i32 0
store i32 %63, ptr %64, align 4, !tbaa !11
%65 = getelementptr inbounds %"struct.std::pair.20", ptr %11, i32 0, i32 1
%66 = load i32, ptr %65, align 4, !tbaa !13
%67 = sub nsw i32 %66, 1
%68 = getelementptr inbounds %"struct.std::pair.20", ptr %11, i32 0, i32 1
store i32 %67, ptr %68, align 4, !tbaa !13
%69 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 7
%70 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %69, ptr noundef nonnull align 4 dereferenceable(4) %10)
%71 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %70, ptr noundef nonnull align 4 dereferenceable(8) %11)
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
br label %78
72: ; preds = %55
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
%73 = load i32, ptr %10, align 4, !tbaa !9
%74 = call i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %13, i32 noundef %73)
store i64 %74, ptr %12, align 4
%75 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 7
%76 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %75, ptr noundef nonnull align 4 dereferenceable(4) %10)
%77 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %76, ptr noundef nonnull align 4 dereferenceable(8) %12)
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
br label %78
78: ; preds = %72, %58
br label %79
79: ; preds = %78, %54
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %80
80: ; preds = %79
%81 = load ptr, ptr %9, align 8, !tbaa !5
%82 = getelementptr inbounds i32, ptr %81, i32 1
store ptr %82, ptr %9, align 8, !tbaa !5
br label %43, !llvm.loop !37
83: ; preds = %48
call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
ret void
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Seed7addNodeEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5eraseERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) #4 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed16frontierContainsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress 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 = { mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !10, i64 88}
!15 = !{!"_ZTS4Seed", !16, i64 8, !17, i64 16, !26, i64 64, !10, i64 88, !10, i64 92, !16, i64 96, !30, i64 104}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessIiE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !25, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIiSaIiEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !20, i64 0, !22, i64 8}
!33 = !{!15, !10, i64 92}
!34 = !{!35, !6, i64 0}
!35 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!36 = !{!35, !6, i64 8}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
| 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"
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }
%"struct.std::pair.27" = type { ptr, ptr }
%STRUCT1 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@theGlobalGraph = external global %STRUCT0, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %1) #1 align 2 {
B0:
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca %"struct.std::pair.20", align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca %"struct.std::pair.27", align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca %"struct.std::pair.20", align 4
%11 = alloca %"struct.std::pair.20", align 4
store ptr %0, ptr %2, align 8, !tbaa !5
store i32 %1, ptr %3, align 4, !tbaa !9
%12 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
%13 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 7
%14 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %14, i64 8, i1 false)
%15 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 7
%16 = call noundef i64 @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5eraseERS4_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
%17 = getelementptr inbounds %"struct.std::pair.20", ptr %4, i32 0, i32 0
%18 = load i32, ptr %17, align 4, !tbaa !11
%19 = mul nsw i32 %18, 2
%20 = call noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %12)
%21 = add nsw i32 %19, %20
store i32 %21, ptr %5, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
%22 = call noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %12)
%23 = getelementptr inbounds %"struct.std::pair.20", ptr %4, i32 0, i32 1
%24 = load i32, ptr %23, align 4, !tbaa !13
%25 = add nsw i32 %22, %24
%26 = getelementptr inbounds %"struct.std::pair.20", ptr %4, i32 0, i32 0
%27 = load i32, ptr %26, align 4, !tbaa !11
%28 = sub nsw i32 %25, %27
store i32 %28, ptr %6, align 4, !tbaa !9
%29 = load i32, ptr %5, align 4, !tbaa !9
%30 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 4
store i32 %29, ptr %30, align 8, !tbaa !14
%31 = load i32, ptr %6, align 4, !tbaa !9
%32 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 5
store i32 %31, ptr %32, align 4, !tbaa !33
%33 = load i32, ptr %3, align 4, !tbaa !9
call void @_ZN4Seed7addNodeEi(ptr noundef nonnull align 8 dereferenceable(152) %12, i32 noundef %33)
call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
%34 = load i32, ptr %3, align 4, !tbaa !9
%35 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %34)
%36 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 0
%37 = extractvalue { ptr, ptr } %35, 0
store ptr %37, ptr %36, align 8
%38 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 1
%39 = extractvalue { ptr, ptr } %35, 1
store ptr %39, ptr %38, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
%40 = getelementptr inbounds %"struct.std::pair.27", ptr %7, i32 0, i32 0
%41 = load ptr, ptr %40, align 8, !tbaa !34
store ptr %41, ptr %8, align 8, !tbaa !5
br label %B1
B1:
%42 = load ptr, ptr %8, align 8, !tbaa !5
%43 = getelementptr inbounds %"struct.std::pair.27", ptr %7, i32 0, i32 1
%44 = load ptr, ptr %43, align 8, !tbaa !36
%45 = icmp ne ptr %42, %44
br i1 %45, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
br label %B11
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
%46 = load ptr, ptr %8, align 8, !tbaa !5
%47 = load i32, ptr %46, align 4, !tbaa !9
store i32 %47, ptr %9, align 4, !tbaa !9
%48 = load i32, ptr %9, align 4, !tbaa !9
%49 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %12, i32 noundef %48)
br i1 %49, label %B4, label %B5
B4:
br label %B9
B5:
%50 = load i32, ptr %9, align 4, !tbaa !9
%51 = call noundef zeroext i1 @_ZN4Seed16frontierContainsEi(ptr noundef nonnull align 8 dereferenceable(152) %12, i32 noundef %50)
br i1 %51, label %B6, label %B7
B6:
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
%52 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 7
%53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %52, ptr noundef nonnull align 4 dereferenceable(4) %9)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %53, i64 8, i1 false)
%54 = getelementptr inbounds %"struct.std::pair.20", ptr %10, i32 0, i32 0
%55 = load i32, ptr %54, align 4, !tbaa !11
%56 = add nsw i32 %55, 1
%57 = getelementptr inbounds %"struct.std::pair.20", ptr %10, i32 0, i32 0
store i32 %56, ptr %57, align 4, !tbaa !11
%58 = getelementptr inbounds %"struct.std::pair.20", ptr %10, i32 0, i32 1
%59 = load i32, ptr %58, align 4, !tbaa !13
%60 = sub nsw i32 %59, 1
%61 = getelementptr inbounds %"struct.std::pair.20", ptr %10, i32 0, i32 1
store i32 %60, ptr %61, align 4, !tbaa !13
%62 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 7
%63 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %62, ptr noundef nonnull align 4 dereferenceable(4) %9)
%64 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %63, ptr noundef nonnull align 4 dereferenceable(8) %10)
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
br label %B8
B7:
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
%65 = load i32, ptr %9, align 4, !tbaa !9
%66 = call i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %12, i32 noundef %65)
store i64 %66, ptr %11, align 4
%67 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 7
%68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %67, ptr noundef nonnull align 4 dereferenceable(4) %9)
%69 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %11)
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
br label %B8
B8:
br label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B10
B10:
%70 = load ptr, ptr %8, align 8, !tbaa !5
%71 = getelementptr inbounds i32, ptr %70, i32 1
store ptr %71, ptr %8, align 8, !tbaa !5
br label %B1, !llvm.loop !37
B11:
call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
ret void
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Seed7addNodeEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5eraseERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) #4 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed16frontierContainsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress 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 = { mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !10, i64 88}
!15 = !{!"_ZTS4Seed", !16, i64 8, !17, i64 16, !26, i64 64, !10, i64 88, !10, i64 92, !16, i64 96, !30, i64 104}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessIiE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !25, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIiSaIiEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !20, i64 0, !22, i64 8}
!33 = !{!15, !10, i64 92}
!34 = !{!35, !6, i64 0}
!35 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!36 = !{!35, !6, i64 8}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"} | 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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }
@theGlobalGraph = external global %struct.bloomGraph, align 8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %"struct.std::pair.20", align 4
%6 = alloca %"struct.std::pair.20", align 8
store i32 %1, ptr %3, align 4, !tbaa !5
%7 = getelementptr inbounds i8, ptr %0, i64 104
%8 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
%.sroa.04.0.copyload = load i32, ptr %8, align 4
%.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 4
%.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 4
%9 = call noundef i64 @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5eraseERS4_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
%10 = shl nsw i32 %.sroa.04.0.copyload, 1
%11 = call noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
%12 = add nsw i32 %11, %10
%13 = call noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
%14 = sub i32 %.sroa.5.0.copyload, %.sroa.04.0.copyload
%15 = add i32 %14, %13
%16 = getelementptr inbounds i8, ptr %0, i64 88
store i32 %12, ptr %16, align 8, !tbaa !9
%17 = getelementptr inbounds i8, ptr %0, i64 92
store i32 %15, ptr %17, align 4, !tbaa !29
%18 = load i32, ptr %3, align 4, !tbaa !5
call void @_ZN4Seed7addNodeEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %18)
%19 = load i32, ptr %3, align 4, !tbaa !5
%20 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %19)
%21 = extractvalue { ptr, ptr } %20, 0
%22 = extractvalue { ptr, ptr } %20, 1
%.not7 = icmp eq ptr %21, %22
br i1 %.not7, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %2
%23 = getelementptr inbounds i8, ptr %5, i64 4
br label %24
._crit_edge: ; preds = %45, %2
ret void
24: ; preds = %.lr.ph, %45
%.08 = phi ptr [ %21, %.lr.ph ], [ %46, %45 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
%25 = load i32, ptr %.08, align 4, !tbaa !5
store i32 %25, ptr %4, align 4, !tbaa !5
%26 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %25)
br i1 %26, label %45, label %27
27: ; preds = %24
%28 = load i32, ptr %4, align 4, !tbaa !5
%29 = call noundef zeroext i1 @_ZN4Seed16frontierContainsEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %28)
br i1 %29, label %30, label %40
30: ; preds = %27
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
%31 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
%32 = load i64, ptr %31, align 4
%33 = trunc i64 %32 to i32
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4, !tbaa !30
%35 = lshr i64 %32, 32
%36 = trunc nuw i64 %35 to i32
%37 = add nsw i32 %36, -1
store i32 %37, ptr %23, align 4, !tbaa !32
%38 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
%39 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %5)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
br label %45
40: ; preds = %27
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
%41 = load i32, ptr %4, align 4, !tbaa !5
%42 = call i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %41)
store i64 %42, ptr %6, align 8
%43 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
%44 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %43, ptr noundef nonnull align 4 dereferenceable(8) %6)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
br label %45
45: ; preds = %30, %40, %24
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
%46 = getelementptr inbounds i8, ptr %.08, i64 4
%.not = icmp eq ptr %46, %22
br i1 %.not, label %._crit_edge, label %24, !llvm.loop !33
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Seed7addNodeEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5eraseERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getInternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Seed16getExternalEdgesEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed16frontierContainsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 88}
!10 = !{!"_ZTS4Seed", !11, i64 8, !12, i64 16, !22, i64 64, !6, i64 88, !6, i64 92, !11, i64 96, !26, i64 104}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIiE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !21, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !20, i64 8, !20, i64 16, !20, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSSt6vectorIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!26 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !15, i64 0, !17, i64 8}
!29 = !{!10, !6, i64 92}
!30 = !{!31, !6, i64 0}
!31 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!32 = !{!31, !6, i64 4}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
| DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass | 242394cc2b5ed5c3 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed19addNodeFromFrontierEi | BSD-2-Clause |
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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.24" = type <{ %"struct.std::_Rb_tree_const_iterator.19", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.19" = type { ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@nodeToSeeds = external global %"class.std::vector.7", align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 {
%2 = alloca ptr, align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%5 = alloca ptr, align 8
%6 = alloca %"struct.std::pair.24", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%7 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
%8 = getelementptr inbounds %class.Seed, ptr %7, i32 0, i32 2
%9 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #3
%10 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %3, i32 0, i32 0
store ptr %9, ptr %10, align 8
br label %11
11: ; preds = %27, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
%12 = getelementptr inbounds %class.Seed, ptr %7, i32 0, i32 2
%13 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #3
%14 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %4, i32 0, i32 0
store ptr %13, ptr %14, align 8
%15 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
br i1 %15, label %17, label %16
16: ; preds = %11
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
br label %29
17: ; preds = %11
%18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
%19 = load i32, ptr %18, align 4, !tbaa !9
%20 = sext i32 %19 to i64
%21 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %20) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
store ptr %7, ptr %5, align 8, !tbaa !5
%22 = call { ptr, i8 } @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(8) %5)
%23 = getelementptr inbounds { ptr, i8 }, ptr %6, i32 0, i32 0
%24 = extractvalue { ptr, i8 } %22, 0
store ptr %24, ptr %23, align 8
%25 = getelementptr inbounds { ptr, i8 }, ptr %6, i32 0, i32 1
%26 = extractvalue { ptr, i8 } %22, 1
store i8 %26, ptr %25, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
br label %27
27: ; preds = %17
%28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
br label %11, !llvm.loop !11
29: ; preds = %16
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.24" = type <{ %"struct.std::_Rb_tree_const_iterator.19", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.19" = type { ptr }
%STRUCT0 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@nodeToSeeds = external global %"class.std::vector.7", align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca ptr, align 8
%5 = alloca %"struct.std::pair.24", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%6 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
%7 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 2
%8 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #3
%9 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %2, i32 0, i32 0
store ptr %8, ptr %9, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
%10 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 2
%11 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #3
%12 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %3, i32 0, i32 0
store ptr %11, ptr %12, align 8
%13 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
br i1 %13, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
br label %B5
B3:
%14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
%15 = load i32, ptr %14, align 4, !tbaa !9
%16 = sext i32 %15 to i64
%17 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %16) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
store ptr %6, ptr %4, align 8, !tbaa !5
%18 = call { ptr, i8 } @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(8) %4)
%19 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 0
%20 = extractvalue { ptr, i8 } %18, 0
store ptr %20, ptr %19, align 8
%21 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 1
%22 = extractvalue { ptr, i8 } %18, 1
store i8 %22, ptr %21, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
br label %B4
B4:
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
br label %B1, !llvm.loop !11
B5:
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@nodeToSeeds = external global %"class.std::vector.7", align 8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed23putIntoNodeToSeedsCacheEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #2 align 2 {
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%5 = getelementptr inbounds i8, ptr %0, i64 16
%6 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #3
store ptr %6, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%7 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #3
store ptr %7, ptr %3, align 8
%8 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
br i1 %8, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
ret void
.lr.ph: ; preds = %1, %.lr.ph
%9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
%10 = load i32, ptr %9, align 4, !tbaa !5
%11 = sext i32 %10 to i64
%12 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %11) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
store ptr %0, ptr %4, align 8, !tbaa !9
%13 = call { ptr, i8 } @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(8) %4)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
%14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%15 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #3
store ptr %15, ptr %3, align 8
%16 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !11
}
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 3e867dcce3e0c0b2 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed23putIntoNodeToSeedsCacheEv | BSD-2-Clause |
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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@theGlobalGraph = external global %struct.bloomGraph, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25rawPrintInOrderOfAdditionEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca ptr, align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%5 = alloca %"class.std::__cxx11::basic_string", align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%8 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
%9 = getelementptr inbounds %class.Seed, ptr %8, i32 0, i32 3
%10 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
%11 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %10, ptr %11, align 8
br label %12
12: ; preds = %26, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
%13 = getelementptr inbounds %class.Seed, ptr %8, i32 0, i32 3
%14 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
%15 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
store ptr %14, ptr %15, align 8
%16 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
br i1 %16, label %18, label %17
17: ; preds = %12
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
br label %32
18: ; preds = %12
call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
%19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
%20 = load i32, ptr %19, align 4, !tbaa !9
%21 = sext i32 %20 to i64
call void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i64 noundef %21)
%22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %5)
to label %23 unwind label %28
23: ; preds = %18
%24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef @.str)
to label %25 unwind label %28
25: ; preds = %23
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
br label %26
26: ; preds = %25
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
br label %12, !llvm.loop !11
28: ; preds = %23, %18
%29 = landingpad { ptr, i32 }
cleanup
%30 = extractvalue { ptr, i32 } %29, 0
store ptr %30, ptr %6, align 8
%31 = extractvalue { ptr, i32 } %29, 1
store i32 %31, ptr %7, align 4
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
br label %34
32: ; preds = %17
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
34: ; preds = %28
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %7, align 4
%37 = insertvalue { ptr, i32 } poison, ptr %35, 0
%38 = insertvalue { ptr, i32 } %37, i32 %36, 1
resume { ptr, i32 } %38
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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"
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %STRUCT1 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%STRUCT1 = type { i64, [8 x i8] }
%STRUCT2 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@theGlobalGraph = external global %STRUCT0, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25rawPrintInOrderOfAdditionEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.std::__cxx11::basic_string", align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %1, align 8, !tbaa !5
%7 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
%8 = getelementptr inbounds %STRUCT2, ptr %7, i32 0, i32 3
%9 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
%10 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %2, i32 0, i32 0
store ptr %9, ptr %10, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
%11 = getelementptr inbounds %STRUCT2, ptr %7, i32 0, i32 3
%12 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
%13 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
store ptr %12, ptr %13, align 8
%14 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
br i1 %14, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
br label %B8
B3:
call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
%15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
%16 = load i32, ptr %15, align 4, !tbaa !9
%17 = sext i32 %16 to i64
call void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i64 noundef %17)
%18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
to label %B4 unwind label %B7
B4:
%19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @.str)
to label %B5 unwind label %B7
B5:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
br label %B6
B6:
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
br label %B1, !llvm.loop !11
B7:
%21 = landingpad { ptr, i32 }
cleanup
%22 = extractvalue { ptr, i32 } %21, 0
store ptr %22, ptr %5, align 8
%23 = extractvalue { ptr, i32 } %21, 1
store i32 %23, ptr %6, align 4
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
br label %B9
B8:
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
B9:
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = insertvalue { ptr, i32 } poison, ptr %25, 0
%28 = insertvalue { ptr, i32 } %27, i32 %26, 1
resume { ptr, i32 } %28
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
@theGlobalGraph = external global %struct.bloomGraph, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25rawPrintInOrderOfAdditionEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%4 = alloca %"class.std::__cxx11::basic_string", align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
%5 = getelementptr inbounds i8, ptr %0, i64 64
%6 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
store ptr %6, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
%7 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
store ptr %7, ptr %3, align 8
%8 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br i1 %8, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %16, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
%9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
.lr.ph: ; preds = %1, %16
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
%10 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
%11 = load i32, ptr %10, align 4, !tbaa !5
%12 = sext i32 %11 to i64
call void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i64 noundef %12)
%13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
to label %14 unwind label %20
14: ; preds = %.lr.ph
%15 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str)
to label %16 unwind label %20
16: ; preds = %14
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
%17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
%18 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
store ptr %18, ptr %3, align 8
%19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !9
20: ; preds = %14, %.lr.ph
%21 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
resume { ptr, i32 } %21
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 55d3835f01651bfc | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed25rawPrintInOrderOfAdditionEv | BSD-2-Clause |
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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@nodeToSeeds = external global %"class.std::vector.7", align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #0 align 2 {
%2 = alloca ptr, align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%6 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
%7 = getelementptr inbounds %class.Seed, ptr %6, i32 0, i32 2
%8 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #3
%9 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %3, i32 0, i32 0
store ptr %8, ptr %9, align 8
br label %10
10: ; preds = %22, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
%11 = getelementptr inbounds %class.Seed, ptr %6, i32 0, i32 2
%12 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #3
%13 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %4, i32 0, i32 0
store ptr %12, ptr %13, align 8
%14 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
br i1 %14, label %16, label %15
15: ; preds = %10
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
br label %24
16: ; preds = %10
%17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
%18 = load i32, ptr %17, align 4, !tbaa !9
%19 = sext i32 %18 to i64
%20 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %19) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
store ptr %6, ptr %5, align 8, !tbaa !5
%21 = call noundef i64 @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(8) %5)
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
br label %22
22: ; preds = %16
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
br label %10, !llvm.loop !11
24: ; preds = %15
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
attributes #0 = { mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%STRUCT0 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@nodeToSeeds = external global %"class.std::vector.7", align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #0 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%5 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
%6 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 2
%7 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #3
%8 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %2, i32 0, i32 0
store ptr %7, ptr %8, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
%9 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 2
%10 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #3
%11 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %3, i32 0, i32 0
store ptr %10, ptr %11, align 8
%12 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
br i1 %12, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
br label %B5
B3:
%13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
%14 = load i32, ptr %13, align 4, !tbaa !9
%15 = sext i32 %14 to i64
%16 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %15) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
store ptr %5, ptr %4, align 8, !tbaa !5
%17 = call noundef i64 @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(8) %4)
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
br label %B4
B4:
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
br label %B1, !llvm.loop !11
B5:
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
attributes #0 = { mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@nodeToSeeds = external global %"class.std::vector.7", align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25removeFromNodeToSeedsListEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #0 align 2 {
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%5 = getelementptr inbounds i8, ptr %0, i64 16
%6 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #3
store ptr %6, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%7 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #3
store ptr %7, ptr %3, align 8
%8 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
br i1 %8, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
ret void
.lr.ph: ; preds = %1, %.lr.ph
%9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
%10 = load i32, ptr %9, align 4, !tbaa !5
%11 = sext i32 %10 to i64
%12 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %11) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
store ptr %0, ptr %4, align 8, !tbaa !9
%13 = call noundef i64 @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(8) %4)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
%14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%15 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #3
store ptr %15, ptr %3, align 8
%16 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !11
}
; 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 nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
attributes #0 = { mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | d2e4d52eccd17746 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed25removeFromNodeToSeedsListEv | BSD-2-Clause |
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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.27" = type { ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@theGlobalGraph = external global %struct.bloomGraph, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 {
%2 = alloca ptr, align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca %"struct.std::pair.27", align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca %"struct.std::pair.20", align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 7
call void @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
%15 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 2
%16 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %15) #4
%17 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %3, i32 0, i32 0
store ptr %16, ptr %17, align 8
br label %18
18: ; preds = %62, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
%19 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 2
%20 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #4
%21 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %4, i32 0, i32 0
store ptr %20, ptr %21, align 8
%22 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
br i1 %22, label %24, label %23
23: ; preds = %18
store i32 2, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
br label %64
24: ; preds = %18
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
%25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
%26 = load i32, ptr %25, align 4, !tbaa !9
store i32 %26, ptr %6, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
%27 = load i32, ptr %6, align 4, !tbaa !9
%28 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %27)
%29 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 0
%30 = extractvalue { ptr, ptr } %28, 0
store ptr %30, ptr %29, align 8
%31 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 1
%32 = extractvalue { ptr, ptr } %28, 1
store ptr %32, ptr %31, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
store i32 0, ptr %8, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
store i32 0, ptr %9, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
%33 = getelementptr inbounds %"struct.std::pair.27", ptr %7, i32 0, i32 0
%34 = load ptr, ptr %33, align 8, !tbaa !11
store ptr %34, ptr %10, align 8, !tbaa !5
br label %35
35: ; preds = %58, %24
%36 = load ptr, ptr %10, align 8, !tbaa !5
%37 = getelementptr inbounds %"struct.std::pair.27", ptr %7, i32 0, i32 1
%38 = load ptr, ptr %37, align 8, !tbaa !13
%39 = icmp ne ptr %36, %38
br i1 %39, label %41, label %40
40: ; preds = %35
store i32 5, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
br label %61
41: ; preds = %35
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
%42 = load ptr, ptr %10, align 8, !tbaa !5
%43 = load i32, ptr %42, align 4, !tbaa !9
store i32 %43, ptr %11, align 4, !tbaa !9
%44 = load i32, ptr %11, align 4, !tbaa !9
%45 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %13, i32 noundef %44)
br i1 %45, label %46, label %49
46: ; preds = %41
%47 = load i32, ptr %8, align 4, !tbaa !9
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4, !tbaa !9
br label %57
49: ; preds = %41
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
%50 = load i32, ptr %11, align 4, !tbaa !9
%51 = call i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %13, i32 noundef %50)
store i64 %51, ptr %12, align 4
%52 = getelementptr inbounds %class.Seed, ptr %13, i32 0, i32 7
%53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %52, ptr noundef nonnull align 4 dereferenceable(4) %11)
%54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %12)
%55 = load i32, ptr %9, align 4, !tbaa !9
%56 = add nsw i32 %55, 1
store i32 %56, ptr %9, align 4, !tbaa !9
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
br label %57
57: ; preds = %49, %46
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
br label %58
58: ; preds = %57
%59 = load ptr, ptr %10, align 8, !tbaa !5
%60 = getelementptr inbounds i32, ptr %59, i32 1
store ptr %60, ptr %10, align 8, !tbaa !5
br label %35, !llvm.loop !14
61: ; preds = %40
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
br label %62
62: ; preds = %61
%63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
br label %18, !llvm.loop !16
64: ; preds = %23
ret void
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
| 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"
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.27" = type { ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }
%STRUCT1 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@theGlobalGraph = external global %STRUCT0, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %"struct.std::pair.27", align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca %"struct.std::pair.20", align 4
store ptr %0, ptr %1, align 8, !tbaa !5
%12 = load ptr, ptr %1, align 8
%13 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 7
call void @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %13) #4
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
%14 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 2
%15 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
%16 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %2, i32 0, i32 0
store ptr %15, ptr %16, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
%17 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 2
%18 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %17) #4
%19 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %3, i32 0, i32 0
store ptr %18, ptr %19, align 8
%20 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
br i1 %20, label %B3, label %B2
B2:
store i32 2, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
br label %B13
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
%21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
%22 = load i32, ptr %21, align 4, !tbaa !9
store i32 %22, ptr %5, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 16, ptr %6) #4
%23 = load i32, ptr %5, align 4, !tbaa !9
%24 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %23)
%25 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
%26 = extractvalue { ptr, ptr } %24, 0
store ptr %26, ptr %25, align 8
%27 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
%28 = extractvalue { ptr, ptr } %24, 1
store ptr %28, ptr %27, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
store i32 0, ptr %7, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
store i32 0, ptr %8, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
%29 = getelementptr inbounds %"struct.std::pair.27", ptr %6, i32 0, i32 0
%30 = load ptr, ptr %29, align 8, !tbaa !11
store ptr %30, ptr %9, align 8, !tbaa !5
br label %B4
B4:
%31 = load ptr, ptr %9, align 8, !tbaa !5
%32 = getelementptr inbounds %"struct.std::pair.27", ptr %6, i32 0, i32 1
%33 = load ptr, ptr %32, align 8, !tbaa !13
%34 = icmp ne ptr %31, %33
br i1 %34, label %B6, label %B5
B5:
store i32 5, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
br label %B11
B6:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
%35 = load ptr, ptr %9, align 8, !tbaa !5
%36 = load i32, ptr %35, align 4, !tbaa !9
store i32 %36, ptr %10, align 4, !tbaa !9
%37 = load i32, ptr %10, align 4, !tbaa !9
%38 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %12, i32 noundef %37)
br i1 %38, label %B7, label %B8
B7:
%39 = load i32, ptr %7, align 4, !tbaa !9
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4, !tbaa !9
br label %B9
B8:
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
%41 = load i32, ptr %10, align 4, !tbaa !9
%42 = call i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %12, i32 noundef %41)
store i64 %42, ptr %11, align 4
%43 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 7
%44 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %43, ptr noundef nonnull align 4 dereferenceable(4) %10)
%45 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %11)
%46 = load i32, ptr %8, align 4, !tbaa !9
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4, !tbaa !9
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
br label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
br label %B10
B10:
%48 = load ptr, ptr %9, align 8, !tbaa !5
%49 = getelementptr inbounds i32, ptr %48, i32 1
store ptr %49, ptr %9, align 8, !tbaa !5
br label %B4, !llvm.loop !14
B11:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %6) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
br label %B12
B12:
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
br label %B1, !llvm.loop !16
B13:
ret void
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15} | 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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.20" = type { i32, i32 }
@theGlobalGraph = external global %struct.bloomGraph, align 8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed25updateFrontierFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #2 align 2 {
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%4 = alloca i32, align 4
%5 = alloca %"struct.std::pair.20", align 8
%6 = getelementptr inbounds i8, ptr %0, i64 104
tail call void @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%7 = getelementptr inbounds i8, ptr %0, i64 16
%8 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
store ptr %8, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%9 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
store ptr %9, ptr %3, align 8
%10 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
br i1 %10, label %.lr.ph14, label %._crit_edge15
._crit_edge15: ; preds = %._crit_edge, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret void
.lr.ph14: ; preds = %1, %._crit_edge
%11 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
%12 = load i32, ptr %11, align 4, !tbaa !5
%13 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %12)
%14 = extractvalue { ptr, ptr } %13, 0
%15 = extractvalue { ptr, ptr } %13, 1
%.not9 = icmp eq ptr %14, %15
br i1 %.not9, label %._crit_edge, label %.lr.ph
._crit_edge: ; preds = %26, %.lr.ph14
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%17 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
store ptr %17, ptr %3, align 8
%18 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
br i1 %18, label %.lr.ph14, label %._crit_edge15, !llvm.loop !9
.lr.ph: ; preds = %.lr.ph14, %26
%.012 = phi ptr [ %27, %26 ], [ %14, %.lr.ph14 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
%19 = load i32, ptr %.012, align 4, !tbaa !5
store i32 %19, ptr %4, align 4, !tbaa !5
%20 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %19)
br i1 %20, label %26, label %21
21: ; preds = %.lr.ph
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
%22 = load i32, ptr %4, align 4, !tbaa !5
%23 = call i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %22)
store i64 %23, ptr %5, align 8
%24 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %4)
%25 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %5)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
br label %26
26: ; preds = %.lr.ph, %21
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
%27 = getelementptr inbounds i8, ptr %.012, i64 4
%.not = icmp eq ptr %27, %15
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| BDCEPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 4282e8b118b3e51e | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed25updateFrontierFromScratchEv | BSD-2-Clause |
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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set.12" = type { %"class.std::_Rb_tree.13" }
%"class.std::_Rb_tree.13" = type { %"struct.std::_Rb_tree<Seed *, Seed *, std::_Identity<Seed *>, std::less<Seed *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Seed *, Seed *, std::_Identity<Seed *>, std::less<Seed *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator.19" = type { ptr }
%"class.std::insert_iterator.18" = type { ptr, %"struct.std::_Rb_tree_const_iterator.19" }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@nodeToSeeds = external global %"class.std::vector.7", align 8
@_ZN4Seed21minimumOverlapToMergeE = external dso_local global float, align 4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca i1, align 1
%3 = alloca ptr, align 8
%4 = alloca %"class.std::set.12", align 8
%5 = alloca %"class.std::set.12", align 8
%6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%8 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%9 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%10 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%11 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%12 = alloca %"class.std::insert_iterator.18", align 8
%13 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca %"class.std::insert_iterator.18", align 8
%17 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%18 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%19 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
%20 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 48, ptr %4) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
call void @llvm.lifetime.start.p0(i64 48, ptr %5) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
%21 = getelementptr inbounds %class.Seed, ptr %20, i32 0, i32 2
%22 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #4
%23 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %6, i32 0, i32 0
store ptr %22, ptr %23, align 8
br label %24
24: ; preds = %77, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
%25 = getelementptr inbounds %class.Seed, ptr %20, i32 0, i32 2
%26 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #4
%27 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %7, i32 0, i32 0
store ptr %26, ptr %27, align 8
%28 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
br i1 %28, label %30, label %29
29: ; preds = %24
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
br label %83
30: ; preds = %24
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
%31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
%32 = load i32, ptr %31, align 4, !tbaa !9
%33 = sext i32 %32 to i64
%34 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %33) #4
%35 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %34) #4
%36 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %8, i32 0, i32 0
store ptr %35, ptr %36, align 8
%37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
%38 = load i32, ptr %37, align 4, !tbaa !9
%39 = sext i32 %38 to i64
%40 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %39) #4
%41 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %40) #4
%42 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %9, i32 0, i32 0
store ptr %41, ptr %42, align 8
%43 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
%44 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %10, i32 0, i32 0
store ptr %43, ptr %44, align 8
%45 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
%46 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %11, i32 0, i32 0
store ptr %45, ptr %46, align 8
%47 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
%48 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %13, i32 0, i32 0
store ptr %47, ptr %48, align 8
%49 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %13, i32 0, i32 0
%50 = load ptr, ptr %49, align 8
%51 = invoke { ptr, ptr } @_ZSt8inserterISt3setIP4SeedSt4lessIS2_ESaIS2_EEESt15insert_iteratorIT_ERS8_NS8_8iteratorE(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr %50)
to label %52 unwind label %79
52: ; preds = %30
%53 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
%54 = extractvalue { ptr, ptr } %51, 0
store ptr %54, ptr %53, align 8
%55 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
%56 = extractvalue { ptr, ptr } %51, 1
store ptr %56, ptr %55, align 8
%57 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %8, i32 0, i32 0
%58 = load ptr, ptr %57, align 8
%59 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %9, i32 0, i32 0
%60 = load ptr, ptr %59, align 8
%61 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %10, i32 0, i32 0
%62 = load ptr, ptr %61, align 8
%63 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %11, i32 0, i32 0
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
%68 = load ptr, ptr %67, align 8
%69 = invoke { ptr, ptr } @_ZSt9set_unionISt23_Rb_tree_const_iteratorIP4SeedES3_St15insert_iteratorISt3setIS2_St4lessIS2_ESaIS2_EEEET1_T_SC_T0_SD_SB_(ptr %58, ptr %60, ptr %62, ptr %64, ptr %66, ptr %68)
to label %70 unwind label %79
70: ; preds = %52
%71 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 0
%72 = extractvalue { ptr, ptr } %69, 0
store ptr %72, ptr %71, align 8
%73 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 1
%74 = extractvalue { ptr, ptr } %69, 1
store ptr %74, ptr %73, align 8
%75 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %4)
to label %76 unwind label %79
76: ; preds = %70
br label %77
77: ; preds = %76
%78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
br label %24, !llvm.loop !11
79: ; preds = %70, %52, %30
%80 = landingpad { ptr, i32 }
cleanup
%81 = extractvalue { ptr, i32 } %80, 0
store ptr %81, ptr %14, align 8
%82 = extractvalue { ptr, i32 } %80, 1
store i32 %82, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
br label %122
83: ; preds = %29
call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
%84 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
%85 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %17, i32 0, i32 0
store ptr %84, ptr %85, align 8
br label %86
86: ; preds = %115, %83
call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
%87 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
%88 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %18, i32 0, i32 0
store ptr %87, ptr %88, align 8
%89 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP4SeedES4_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
br i1 %89, label %91, label %90
90: ; preds = %86
store i32 5, ptr %19, align 4
br label %117
91: ; preds = %86
%92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
%93 = load ptr, ptr %92, align 8, !tbaa !5
%94 = icmp ne ptr %93, %20
br i1 %94, label %95, label %114
95: ; preds = %91
%96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
%97 = load ptr, ptr %96, align 8, !tbaa !5
%98 = getelementptr inbounds %class.Seed, ptr %97, i32 0, i32 1
%99 = load i8, ptr %98, align 8, !tbaa !13, !range !32, !noundef !33
%100 = trunc i8 %99 to i1
br i1 %100, label %114, label %101
101: ; preds = %95
%102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
%103 = load ptr, ptr %102, align 8, !tbaa !5
%104 = invoke noundef float @_ZN4Seed7overlapERS_(ptr noundef nonnull align 8 dereferenceable(152) %20, ptr noundef nonnull align 8 dereferenceable(152) %103)
to label %105 unwind label %109
105: ; preds = %101
%106 = load float, ptr @_ZN4Seed21minimumOverlapToMergeE, align 4, !tbaa !34
%107 = fcmp oge float %104, %106
br i1 %107, label %108, label %113
108: ; preds = %105
store i1 true, ptr %2, align 1
store i32 1, ptr %19, align 4
br label %117
109: ; preds = %101
%110 = landingpad { ptr, i32 }
cleanup
%111 = extractvalue { ptr, i32 } %110, 0
store ptr %111, ptr %14, align 8
%112 = extractvalue { ptr, i32 } %110, 1
store i32 %112, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
br label %122
113: ; preds = %105
br label %114
114: ; preds = %113, %95, %91
br label %115
115: ; preds = %114
%116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIP4SeedEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
br label %86, !llvm.loop !36
117: ; preds = %108, %90
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
%118 = load i32, ptr %19, align 4
switch i32 %118, label %120 [
i32 5, label %119
]
119: ; preds = %117
store i1 false, ptr %2, align 1
store i32 1, ptr %19, align 4
br label %120
120: ; preds = %119, %117
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
call void @llvm.lifetime.end.p0(i64 48, ptr %5) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
call void @llvm.lifetime.end.p0(i64 48, ptr %4) #4
%121 = load i1, ptr %2, align 1
ret i1 %121
122: ; preds = %109, %79
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
call void @llvm.lifetime.end.p0(i64 48, ptr %5) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
call void @llvm.lifetime.end.p0(i64 48, ptr %4) #4
br label %123
123: ; preds = %122
%124 = load ptr, ptr %14, align 8
%125 = load i32, ptr %15, align 4
%126 = insertvalue { ptr, i32 } poison, ptr %124, 0
%127 = insertvalue { ptr, i32 } %126, i32 %125, 1
resume { ptr, i32 } %127
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZSt9set_unionISt23_Rb_tree_const_iteratorIP4SeedES3_St15insert_iteratorISt3setIS2_St4lessIS2_ESaIS2_EEEET1_T_SC_T0_SD_SB_(ptr, ptr, ptr, ptr, ptr, ptr) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZSt8inserterISt3setIP4SeedSt4lessIS2_ESaIS2_EEESt15insert_iteratorIT_ERS8_NS8_8iteratorE(ptr noundef nonnull align 8 dereferenceable(48), ptr) #3
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP4SeedES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4Seed7overlapERS_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(152)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIP4SeedEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTS4Seed", !15, i64 8, !16, i64 16, !25, i64 64, !10, i64 88, !10, i64 92, !15, i64 96, !29, i64 104}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessIiE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !24, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIiSaIiEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !19, i64 0, !21, i64 8}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!35, !35, i64 0}
!35 = !{!"float", !7, i64 0}
!36 = distinct !{!36, !12}
| 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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set.12" = type { %"class.std::_Rb_tree.13" }
%"class.std::_Rb_tree.13" = type { %"struct.std::_Rb_tree<Seed *, Seed *, std::_Identity<Seed *>, std::less<Seed *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Seed *, Seed *, std::_Identity<Seed *>, std::less<Seed *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator.19" = type { ptr }
%"class.std::insert_iterator.18" = type { ptr, %"struct.std::_Rb_tree_const_iterator.19" }
%STRUCT0 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@nodeToSeeds = external global %"class.std::vector.7", align 8
@_ZN4Seed21minimumOverlapToMergeE = external dso_local global float, align 4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
B0:
%1 = alloca i1, align 1
%2 = alloca ptr, align 8
%3 = alloca %"class.std::set.12", align 8
%4 = alloca %"class.std::set.12", align 8
%5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%7 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%8 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%9 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%10 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%11 = alloca %"class.std::insert_iterator.18", align 8
%12 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca %"class.std::insert_iterator.18", align 8
%16 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%17 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%18 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%19 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 48, ptr %3) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.start.p0(i64 48, ptr %4) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
%20 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 2
%21 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %20) #4
%22 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %5, i32 0, i32 0
store ptr %21, ptr %22, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
%23 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 2
%24 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #4
%25 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %6, i32 0, i32 0
store ptr %24, ptr %25, align 8
%26 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
br i1 %26, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
br label %B9
B3:
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
%27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
%28 = load i32, ptr %27, align 4, !tbaa !9
%29 = sext i32 %28 to i64
%30 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %29) #4
%31 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %30) #4
%32 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %7, i32 0, i32 0
store ptr %31, ptr %32, align 8
%33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
%34 = load i32, ptr %33, align 4, !tbaa !9
%35 = sext i32 %34 to i64
%36 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %35) #4
%37 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %36) #4
%38 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %8, i32 0, i32 0
store ptr %37, ptr %38, align 8
%39 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
%40 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %9, i32 0, i32 0
store ptr %39, ptr %40, align 8
%41 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
%42 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %10, i32 0, i32 0
store ptr %41, ptr %42, align 8
%43 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
%44 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %12, i32 0, i32 0
store ptr %43, ptr %44, align 8
%45 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %12, i32 0, i32 0
%46 = load ptr, ptr %45, align 8
%47 = invoke { ptr, ptr } @_ZSt8inserterISt3setIP4SeedSt4lessIS2_ESaIS2_EEESt15insert_iteratorIT_ERS8_NS8_8iteratorE(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr %46)
to label %B4 unwind label %B8
B4:
%48 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
%49 = extractvalue { ptr, ptr } %47, 0
store ptr %49, ptr %48, align 8
%50 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
%51 = extractvalue { ptr, ptr } %47, 1
store ptr %51, ptr %50, align 8
%52 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %7, i32 0, i32 0
%53 = load ptr, ptr %52, align 8
%54 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %8, i32 0, i32 0
%55 = load ptr, ptr %54, align 8
%56 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %9, i32 0, i32 0
%57 = load ptr, ptr %56, align 8
%58 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %10, i32 0, i32 0
%59 = load ptr, ptr %58, align 8
%60 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
%61 = load ptr, ptr %60, align 8
%62 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
%63 = load ptr, ptr %62, align 8
%64 = invoke { ptr, ptr } @_ZSt9set_unionISt23_Rb_tree_const_iteratorIP4SeedES3_St15insert_iteratorISt3setIS2_St4lessIS2_ESaIS2_EEEET1_T_SC_T0_SD_SB_(ptr %53, ptr %55, ptr %57, ptr %59, ptr %61, ptr %63)
to label %B5 unwind label %B8
B5:
%65 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 0
%66 = extractvalue { ptr, ptr } %64, 0
store ptr %66, ptr %65, align 8
%67 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 1
%68 = extractvalue { ptr, ptr } %64, 1
store ptr %68, ptr %67, align 8
%69 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %3)
to label %B6 unwind label %B8
B6:
br label %B7
B7:
%70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
br label %B1, !llvm.loop !11
B8:
%71 = landingpad { ptr, i32 }
cleanup
%72 = extractvalue { ptr, i32 } %71, 0
store ptr %72, ptr %13, align 8
%73 = extractvalue { ptr, i32 } %71, 1
store i32 %73, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
br label %B24
B9:
call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
%74 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
%75 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %16, i32 0, i32 0
store ptr %74, ptr %75, align 8
br label %B10
B10:
call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
%76 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
%77 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.19", ptr %17, i32 0, i32 0
store ptr %76, ptr %77, align 8
%78 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP4SeedES4_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
br i1 %78, label %B12, label %B11
B11:
store i32 5, ptr %18, align 4
br label %B21
B12:
%79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
%80 = load ptr, ptr %79, align 8, !tbaa !5
%81 = icmp ne ptr %80, %19
br i1 %81, label %B13, label %B19
B13:
%82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
%83 = load ptr, ptr %82, align 8, !tbaa !5
%84 = getelementptr inbounds %STRUCT0, ptr %83, i32 0, i32 1
%85 = load i8, ptr %84, align 8, !tbaa !13, !range !32, !noundef !33
%86 = trunc i8 %85 to i1
br i1 %86, label %B19, label %B14
B14:
%87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
%88 = load ptr, ptr %87, align 8, !tbaa !5
%89 = invoke noundef float @_ZN4Seed7overlapERS_(ptr noundef nonnull align 8 dereferenceable(152) %19, ptr noundef nonnull align 8 dereferenceable(152) %88)
to label %B15 unwind label %B17
B15:
%90 = load float, ptr @_ZN4Seed21minimumOverlapToMergeE, align 4, !tbaa !34
%91 = fcmp oge float %89, %90
br i1 %91, label %B16, label %B18
B16:
store i1 true, ptr %1, align 1
store i32 1, ptr %18, align 4
br label %B21
B17:
%92 = landingpad { ptr, i32 }
cleanup
%93 = extractvalue { ptr, i32 } %92, 0
store ptr %93, ptr %13, align 8
%94 = extractvalue { ptr, i32 } %92, 1
store i32 %94, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
br label %B24
B18:
br label %B19
B19:
br label %B20
B20:
%95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIP4SeedEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
br label %B10, !llvm.loop !36
B21:
call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
%96 = load i32, ptr %18, align 4
switch i32 %96, label %B23 [
i32 5, label %B22
]
B22:
store i1 false, ptr %1, align 1
store i32 1, ptr %18, align 4
br label %B23
B23:
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
call void @llvm.lifetime.end.p0(i64 48, ptr %4) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.end.p0(i64 48, ptr %3) #4
%97 = load i1, ptr %1, align 1
ret i1 %97
B24:
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
call void @llvm.lifetime.end.p0(i64 48, ptr %4) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.end.p0(i64 48, ptr %3) #4
br label %B25
B25:
%98 = load ptr, ptr %13, align 8
%99 = load i32, ptr %14, align 4
%100 = insertvalue { ptr, i32 } poison, ptr %98, 0
%101 = insertvalue { ptr, i32 } %100, i32 %99, 1
resume { ptr, i32 } %101
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZSt9set_unionISt23_Rb_tree_const_iteratorIP4SeedES3_St15insert_iteratorISt3setIS2_St4lessIS2_ESaIS2_EEEET1_T_SC_T0_SD_SB_(ptr, ptr, ptr, ptr, ptr, ptr) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZSt8inserterISt3setIP4SeedSt4lessIS2_ESaIS2_EEESt15insert_iteratorIT_ERS8_NS8_8iteratorE(ptr noundef nonnull align 8 dereferenceable(48), ptr) #3
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP4SeedES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4Seed7overlapERS_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(152)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIP4SeedEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTS4Seed", !15, i64 8, !16, i64 16, !25, i64 64, !10, i64 88, !10, i64 92, !15, i64 96, !29, i64 104}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessIiE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !24, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIiSaIiEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !19, i64 0, !21, i64 8}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!35, !35, i64 0}
!35 = !{!"float", !7, i64 0}
!36 = distinct !{!36, !12} | 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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<Seed *>, std::allocator<std::set<Seed *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set.12" = type { %"class.std::_Rb_tree.13" }
%"class.std::_Rb_tree.13" = type { %"struct.std::_Rb_tree<Seed *, Seed *, std::_Identity<Seed *>, std::less<Seed *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Seed *, Seed *, std::_Identity<Seed *>, std::less<Seed *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator.19" = type { ptr }
@nodeToSeeds = external global %"class.std::vector.7", align 8
@_ZN4Seed21minimumOverlapToMergeE = external dso_local local_unnamed_addr global float, align 4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Seed27overlapsAlreadyAcceptedSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca %"class.std::set.12", align 8
%3 = alloca %"class.std::set.12", align 8
%4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%6 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
%7 = alloca %"struct.std::_Rb_tree_const_iterator.19", align 8
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
%8 = getelementptr inbounds i8, ptr %0, i64 16
%9 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
store ptr %9, ptr %4, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
%10 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
store ptr %10, ptr %5, align 8
%11 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
br i1 %11, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %35, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
%12 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
store ptr %12, ptr %6, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
%13 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
store ptr %13, ptr %7, align 8
%14 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP4SeedES4_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
br i1 %14, label %.lr.ph18, label %.critedge
.lr.ph: ; preds = %1, %35
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
%15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
%16 = load i32, ptr %15, align 4, !tbaa !5
%17 = sext i32 %16 to i64
%18 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %17) #4
%19 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #4
%20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
%21 = load i32, ptr %20, align 4, !tbaa !5
%22 = sext i32 %21 to i64
%23 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIP4SeedSt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodeToSeeds, i64 noundef %22) #4
%24 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #4
%25 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
%26 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
%27 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
%28 = invoke { ptr, ptr } @_ZSt8inserterISt3setIP4SeedSt4lessIS2_ESaIS2_EEESt15insert_iteratorIT_ERS8_NS8_8iteratorE(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr %27)
to label %29 unwind label %39
29: ; preds = %.lr.ph
%30 = extractvalue { ptr, ptr } %28, 0
%31 = extractvalue { ptr, ptr } %28, 1
%32 = invoke { ptr, ptr } @_ZSt9set_unionISt23_Rb_tree_const_iteratorIP4SeedES3_St15insert_iteratorISt3setIS2_St4lessIS2_ESaIS2_EEEET1_T_SC_T0_SD_SB_(ptr %19, ptr %24, ptr %25, ptr %26, ptr %30, ptr %31)
to label %33 unwind label %39
33: ; preds = %29
%34 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %2)
to label %35 unwind label %39
35: ; preds = %33
%36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
%37 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
store ptr %37, ptr %5, align 8
%38 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !9
39: ; preds = %33, %29, %.lr.ph
%40 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
br label %65
.lr.ph18: ; preds = %._crit_edge, %58
%41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
%42 = load ptr, ptr %41, align 8, !tbaa !11
%.not = icmp eq ptr %42, %0
br i1 %.not, label %58, label %43
43: ; preds = %.lr.ph18
%44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
%45 = load ptr, ptr %44, align 8, !tbaa !11
%46 = getelementptr inbounds i8, ptr %45, i64 8
%47 = load i8, ptr %46, align 8, !tbaa !13, !range !32, !noundef !33
%48 = trunc nuw i8 %47 to i1
br i1 %48, label %58, label %49
49: ; preds = %43
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
%51 = load ptr, ptr %50, align 8, !tbaa !11
%52 = invoke noundef float @_ZN4Seed7overlapERS_(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(152) %51)
to label %53 unwind label %56
53: ; preds = %49
%54 = load float, ptr @_ZN4Seed21minimumOverlapToMergeE, align 4, !tbaa !34
%55 = fcmp ult float %52, %54
br i1 %55, label %58, label %62
56: ; preds = %49
%57 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
br label %65
58: ; preds = %.lr.ph18, %43, %53
%59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIP4SeedEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
%60 = call ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
store ptr %60, ptr %7, align 8
%61 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP4SeedES4_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
br i1 %61, label %.lr.ph18, label %.critedge, !llvm.loop !36
62: ; preds = %53
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
br label %63
.critedge: ; preds = %58, %._crit_edge
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
br label %63
63: ; preds = %62, %.critedge
%64 = phi i1 [ true, %62 ], [ false, %.critedge ]
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #4
ret i1 %64
65: ; preds = %56, %39
%.pn = phi { ptr, i32 } [ %40, %39 ], [ %57, %56 ]
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
call void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #4
resume { ptr, i32 } %.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZSt9set_unionISt23_Rb_tree_const_iteratorIP4SeedES3_St15insert_iteratorISt3setIS2_St4lessIS2_ESaIS2_EEEET1_T_SC_T0_SD_SB_(ptr, ptr, ptr, ptr, ptr, ptr) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIP4SeedSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZSt8inserterISt3setIP4SeedSt4lessIS2_ESaIS2_EEESt15insert_iteratorIT_ERS8_NS8_8iteratorE(ptr noundef nonnull align 8 dereferenceable(48), ptr) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP4SeedES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP4SeedEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4Seed7overlapERS_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIP4SeedEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIP4SeedSt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTS4Seed", !15, i64 8, !16, i64 16, !25, i64 64, !6, i64 88, !6, i64 92, !15, i64 96, !29, i64 104}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessIiE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !24, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIiSaIiEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!29 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !19, i64 0, !21, i64 8}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!35, !35, i64 0}
!35 = !{!"float", !7, i64 0}
!36 = distinct !{!36, !10}
| EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 7dac7f21f5dc2f74 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed27overlapsAlreadyAcceptedSeedEv | BSD-2-Clause |
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.std::_Rb_tree_iterator" = type { ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair" = type { i32, %"struct.std::pair.20" }
%"struct.std::pair.20" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #1 align 2 {
%2 = alloca float, align 4
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca i32, align 4
%6 = alloca %"struct.std::_Rb_tree_iterator", align 8
%7 = alloca %"struct.std::_Rb_tree_iterator", align 8
%8 = alloca float, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
%10 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
%11 = call noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
store float %11, ptr %4, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
store i32 -1, ptr %5, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
%12 = getelementptr inbounds %class.Seed, ptr %10, i32 0, i32 7
%13 = call ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
%14 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %6, i32 0, i32 0
store ptr %13, ptr %14, align 8
br label %15
15: ; preds = %41, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
%16 = getelementptr inbounds %class.Seed, ptr %10, i32 0, i32 7
%17 = call ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %16) #4
%18 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %7, i32 0, i32 0
store ptr %17, ptr %18, align 8
%19 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
br i1 %19, label %21, label %20
20: ; preds = %15
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
br label %43
21: ; preds = %15
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
%22 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
%23 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 1
%24 = getelementptr inbounds %"struct.std::pair.20", ptr %23, i32 0, i32 0
%25 = load i32, ptr %24, align 4, !tbaa !13
%26 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
%27 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 1
%28 = getelementptr inbounds %"struct.std::pair.20", ptr %27, i32 0, i32 1
%29 = load i32, ptr %28, align 4, !tbaa !16
%30 = call noundef float @_ZN4Seed36calculateFitnessIfInsertFromFrontierEii(ptr noundef nonnull align 8 dereferenceable(152) %10, i32 noundef %25, i32 noundef %29)
store float %30, ptr %8, align 4, !tbaa !9
%31 = load float, ptr %8, align 4, !tbaa !9
%32 = load float, ptr %4, align 4, !tbaa !9
%33 = fcmp ogt float %31, %32
br i1 %33, label %34, label %39
34: ; preds = %21
%35 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
%36 = getelementptr inbounds %"struct.std::pair", ptr %35, i32 0, i32 0
%37 = load i32, ptr %36, align 4, !tbaa !17
store i32 %37, ptr %5, align 4, !tbaa !11
%38 = load float, ptr %8, align 4, !tbaa !9
store float %38, ptr %4, align 4, !tbaa !9
br label %40
39: ; preds = %21
br label %40
40: ; preds = %39, %34
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
br label %41
41: ; preds = %40
%42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
br label %15, !llvm.loop !18
43: ; preds = %20
%44 = load i32, ptr %5, align 4, !tbaa !11
%45 = icmp sgt i32 %44, -1
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i32, ptr %5, align 4, !tbaa !11
call void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152) %10, i32 noundef %47)
%48 = load float, ptr %4, align 4, !tbaa !9
store float %48, ptr %2, align 4
store i32 1, ptr %9, align 4
br label %50
49: ; preds = %43
store float -1.000000e+00, ptr %2, align 4
store i32 1, ptr %9, align 4
br label %50
50: ; preds = %49, %46
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
%51 = load float, ptr %2, align 4
ret float %51
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed36calculateFitnessIfInsertFromFrontierEii(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef, i32 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"_ZTSSt4pairIKiS_IiiEE", !12, i64 0, !15, i64 4}
!15 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!16 = !{!14, !12, i64 8}
!17 = !{!14, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| 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.std::_Rb_tree_iterator" = type { ptr }
%STRUCT0 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair" = type { i32, %"struct.std::pair.20" }
%"struct.std::pair.20" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #1 align 2 {
B0:
%1 = alloca float, align 4
%2 = alloca ptr, align 8
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca %"struct.std::_Rb_tree_iterator", align 8
%6 = alloca %"struct.std::_Rb_tree_iterator", align 8
%7 = alloca float, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%9 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
%10 = call noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152) %9)
store float %10, ptr %3, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
store i32 -1, ptr %4, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
%11 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 7
%12 = call ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #4
%13 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %5, i32 0, i32 0
store ptr %12, ptr %13, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
%14 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 7
%15 = call ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
%16 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %6, i32 0, i32 0
store ptr %15, ptr %16, align 8
%17 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
br i1 %17, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
br label %B8
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
%18 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
%19 = getelementptr inbounds %"struct.std::pair", ptr %18, i32 0, i32 1
%20 = getelementptr inbounds %"struct.std::pair.20", ptr %19, i32 0, i32 0
%21 = load i32, ptr %20, align 4, !tbaa !13
%22 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
%23 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 1
%24 = getelementptr inbounds %"struct.std::pair.20", ptr %23, i32 0, i32 1
%25 = load i32, ptr %24, align 4, !tbaa !16
%26 = call noundef float @_ZN4Seed36calculateFitnessIfInsertFromFrontierEii(ptr noundef nonnull align 8 dereferenceable(152) %9, i32 noundef %21, i32 noundef %25)
store float %26, ptr %7, align 4, !tbaa !9
%27 = load float, ptr %7, align 4, !tbaa !9
%28 = load float, ptr %3, align 4, !tbaa !9
%29 = fcmp ogt float %27, %28
br i1 %29, label %B4, label %B5
B4:
%30 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
%31 = getelementptr inbounds %"struct.std::pair", ptr %30, i32 0, i32 0
%32 = load i32, ptr %31, align 4, !tbaa !17
store i32 %32, ptr %4, align 4, !tbaa !11
%33 = load float, ptr %7, align 4, !tbaa !9
store float %33, ptr %3, align 4, !tbaa !9
br label %B6
B5:
br label %B6
B6:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
br label %B7
B7:
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
br label %B1, !llvm.loop !18
B8:
%35 = load i32, ptr %4, align 4, !tbaa !11
%36 = icmp sgt i32 %35, -1
br i1 %36, label %B9, label %B10
B9:
%37 = load i32, ptr %4, align 4, !tbaa !11
call void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152) %9, i32 noundef %37)
%38 = load float, ptr %3, align 4, !tbaa !9
store float %38, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %B11
B10:
store float -1.000000e+00, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %B11
B11:
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
%39 = load float, ptr %1, align 4
ret float %39
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed36calculateFitnessIfInsertFromFrontierEii(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef, i32 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"_ZTSSt4pairIKiS_IiiEE", !12, i64 0, !15, i64 4}
!15 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!16 = !{!14, !12, i64 8}
!17 = !{!14, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"} | 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.std::_Rb_tree_iterator" = type { ptr }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN4Seed29addBestNodeFromFrontierToSeedEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #1 align 2 {
%2 = alloca %"struct.std::_Rb_tree_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_iterator", align 8
%4 = tail call noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%5 = getelementptr inbounds i8, ptr %0, i64 104
%6 = tail call ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
store ptr %6, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%7 = tail call ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
store ptr %7, ptr %3, align 8
%8 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
br i1 %8, label %.lr.ph, label %._crit_edge.thread
._crit_edge.thread: ; preds = %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
br label %26
._crit_edge: ; preds = %21
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
%9 = icmp sgt i32 %.1, -1
br i1 %9, label %25, label %26
.lr.ph: ; preds = %1, %21
%.0712 = phi i32 [ %.1, %21 ], [ -1, %1 ]
%.0811 = phi float [ %.19, %21 ], [ %4, %1 ]
%10 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
%11 = getelementptr inbounds i8, ptr %10, i64 4
%12 = load i32, ptr %11, align 4, !tbaa !5
%13 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
%14 = getelementptr inbounds i8, ptr %13, i64 8
%15 = load i32, ptr %14, align 4, !tbaa !11
%16 = call noundef float @_ZN4Seed36calculateFitnessIfInsertFromFrontierEii(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %12, i32 noundef %15)
%17 = fcmp ogt float %16, %.0811
br i1 %17, label %18, label %21
18: ; preds = %.lr.ph
%19 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
%20 = load i32, ptr %19, align 4, !tbaa !12
br label %21
21: ; preds = %.lr.ph, %18
%.19 = phi float [ %16, %18 ], [ %.0811, %.lr.ph ]
%.1 = phi i32 [ %20, %18 ], [ %.0712, %.lr.ph ]
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%23 = call ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
store ptr %23, ptr %3, align 8
%24 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !13
25: ; preds = %._crit_edge
call void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %.1)
br label %26
26: ; preds = %._crit_edge.thread, %._crit_edge, %25
%.0 = phi float [ %.19, %25 ], [ -1.000000e+00, %._crit_edge ], [ -1.000000e+00, %._crit_edge.thread ]
ret float %.0
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed16calculateFitnessEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN4Seed36calculateFitnessIfInsertFromFrontierEii(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiS0_IiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Seed19addNodeFromFrontierEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"_ZTSSt4pairIKiS_IiiEE", !7, i64 0, !10, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt4pairIiiE", !7, i64 0, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 91e26cbd0ed1ca64 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed29addBestNodeFromFrontierToSeedEv | BSD-2-Clause |
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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.27" = type { ptr, ptr }
%class.Seed = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@theGlobalGraph = external global %struct.bloomGraph, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %"struct.std::pair.27", align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%12 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
store i32 0, ptr %3, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
store i32 0, ptr %4, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
%13 = getelementptr inbounds %class.Seed, ptr %12, i32 0, i32 2
%14 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %13) #4
%15 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %5, i32 0, i32 0
store ptr %14, ptr %15, align 8
br label %16
16: ; preds = %55, %1
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
%17 = getelementptr inbounds %class.Seed, ptr %12, i32 0, i32 2
%18 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %17) #4
%19 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %6, i32 0, i32 0
store ptr %18, ptr %19, align 8
%20 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
br i1 %20, label %22, label %21
21: ; preds = %16
store i32 2, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
br label %57
22: ; preds = %16
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
%23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
%24 = load i32, ptr %23, align 4, !tbaa !9
store i32 %24, ptr %8, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
%25 = load i32, ptr %8, align 4, !tbaa !9
%26 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %25)
%27 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
%28 = extractvalue { ptr, ptr } %26, 0
store ptr %28, ptr %27, align 8
%29 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
%30 = extractvalue { ptr, ptr } %26, 1
store ptr %30, ptr %29, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
%31 = getelementptr inbounds %"struct.std::pair.27", ptr %9, i32 0, i32 0
%32 = load ptr, ptr %31, align 8, !tbaa !11
store ptr %32, ptr %10, align 8, !tbaa !5
br label %33
33: ; preds = %51, %22
%34 = load ptr, ptr %10, align 8, !tbaa !5
%35 = getelementptr inbounds %"struct.std::pair.27", ptr %9, i32 0, i32 1
%36 = load ptr, ptr %35, align 8, !tbaa !13
%37 = icmp ne ptr %34, %36
br i1 %37, label %39, label %38
38: ; preds = %33
store i32 5, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
br label %54
39: ; preds = %33
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
%40 = load ptr, ptr %10, align 8, !tbaa !5
%41 = load i32, ptr %40, align 4, !tbaa !9
store i32 %41, ptr %11, align 4, !tbaa !9
%42 = load i32, ptr %11, align 4, !tbaa !9
%43 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %12, i32 noundef %42)
br i1 %43, label %44, label %47
44: ; preds = %39
%45 = load i32, ptr %3, align 4, !tbaa !9
%46 = add nsw i32 %45, 1
store i32 %46, ptr %3, align 4, !tbaa !9
br label %50
47: ; preds = %39
%48 = load i32, ptr %4, align 4, !tbaa !9
%49 = add nsw i32 %48, 1
store i32 %49, ptr %4, align 4, !tbaa !9
br label %50
50: ; preds = %47, %44
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
br label %51
51: ; preds = %50
%52 = load ptr, ptr %10, align 8, !tbaa !5
%53 = getelementptr inbounds i32, ptr %52, i32 1
store ptr %53, ptr %10, align 8, !tbaa !5
br label %33, !llvm.loop !14
54: ; preds = %38
call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
br label %55
55: ; preds = %54
%56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
br label %16, !llvm.loop !16
57: ; preds = %21
%58 = load i32, ptr %3, align 4, !tbaa !9
store i32 %58, ptr %3, align 4, !tbaa !9
%59 = load i32, ptr %4, align 4, !tbaa !9
%60 = getelementptr inbounds %class.Seed, ptr %12, i32 0, i32 5
store i32 %59, ptr %60, align 4, !tbaa !17
%61 = load i32, ptr %3, align 4, !tbaa !9
%62 = getelementptr inbounds %class.Seed, ptr %12, i32 0, i32 4
store i32 %61, ptr %62, align 8, !tbaa !36
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !10, i64 92}
!18 = !{!"_ZTS4Seed", !19, i64 8, !20, i64 16, !29, i64 64, !10, i64 88, !10, i64 92, !19, i64 96, !33, i64 104}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessIiE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !28, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSSt6vectorIiSaIiEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !23, i64 0, !25, i64 8}
!36 = !{!18, !10, i64 88}
| 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"
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.27" = type { ptr, ptr }
%STRUCT1 = type { ptr, i8, %"class.std::set", %"class.std::vector", i32, i32, i8, %"class.std::map" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<int, int>>, std::_Select1st<std::pair<const int, std::pair<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
@theGlobalGraph = external global %STRUCT0, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %"struct.std::pair.27", align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %1, align 8, !tbaa !5
%11 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
store i32 0, ptr %2, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
store i32 0, ptr %3, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
%12 = getelementptr inbounds %STRUCT1, ptr %11, i32 0, i32 2
%13 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
%14 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %4, i32 0, i32 0
store ptr %13, ptr %14, align 8
br label %B1
B1:
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
%15 = getelementptr inbounds %STRUCT1, ptr %11, i32 0, i32 2
%16 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %15) #4
%17 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %5, i32 0, i32 0
store ptr %16, ptr %17, align 8
%18 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
br i1 %18, label %B3, label %B2
B2:
store i32 2, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
br label %B13
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
%19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
%20 = load i32, ptr %19, align 4, !tbaa !9
store i32 %20, ptr %7, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 16, ptr %8) #4
%21 = load i32, ptr %7, align 4, !tbaa !9
%22 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %21)
%23 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 0
%24 = extractvalue { ptr, ptr } %22, 0
store ptr %24, ptr %23, align 8
%25 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 1
%26 = extractvalue { ptr, ptr } %22, 1
store ptr %26, ptr %25, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
%27 = getelementptr inbounds %"struct.std::pair.27", ptr %8, i32 0, i32 0
%28 = load ptr, ptr %27, align 8, !tbaa !11
store ptr %28, ptr %9, align 8, !tbaa !5
br label %B4
B4:
%29 = load ptr, ptr %9, align 8, !tbaa !5
%30 = getelementptr inbounds %"struct.std::pair.27", ptr %8, i32 0, i32 1
%31 = load ptr, ptr %30, align 8, !tbaa !13
%32 = icmp ne ptr %29, %31
br i1 %32, label %B6, label %B5
B5:
store i32 5, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
br label %B11
B6:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
%33 = load ptr, ptr %9, align 8, !tbaa !5
%34 = load i32, ptr %33, align 4, !tbaa !9
store i32 %34, ptr %10, align 4, !tbaa !9
%35 = load i32, ptr %10, align 4, !tbaa !9
%36 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %11, i32 noundef %35)
br i1 %36, label %B7, label %B8
B7:
%37 = load i32, ptr %2, align 4, !tbaa !9
%38 = add nsw i32 %37, 1
store i32 %38, ptr %2, align 4, !tbaa !9
br label %B9
B8:
%39 = load i32, ptr %3, align 4, !tbaa !9
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4, !tbaa !9
br label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
br label %B10
B10:
%41 = load ptr, ptr %9, align 8, !tbaa !5
%42 = getelementptr inbounds i32, ptr %41, i32 1
store ptr %42, ptr %9, align 8, !tbaa !5
br label %B4, !llvm.loop !14
B11:
call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
br label %B12
B12:
%43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
br label %B1, !llvm.loop !16
B13:
%44 = load i32, ptr %2, align 4, !tbaa !9
store i32 %44, ptr %2, align 4, !tbaa !9
%45 = load i32, ptr %3, align 4, !tbaa !9
%46 = getelementptr inbounds %STRUCT1, ptr %11, i32 0, i32 5
store i32 %45, ptr %46, align 4, !tbaa !17
%47 = load i32, ptr %2, align 4, !tbaa !9
%48 = getelementptr inbounds %STRUCT1, ptr %11, i32 0, i32 4
store i32 %47, ptr %48, align 8, !tbaa !36
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !10, i64 92}
!18 = !{!"_ZTS4Seed", !19, i64 8, !20, i64 16, !29, i64 64, !10, i64 88, !10, i64 92, !19, i64 96, !33, i64 104}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessIiE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !28, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSSt6vectorIiSaIiEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !23, i64 0, !25, i64 8}
!36 = !{!18, !10, i64 88} | 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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@theGlobalGraph = external global %struct.bloomGraph, align 8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Seed33updateCachedEdgeValuesFromScratchEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #2 align 2 {
%2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%4 = getelementptr inbounds i8, ptr %0, i64 16
%5 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
store ptr %5, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%6 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
store ptr %6, ptr %3, align 8
%7 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
br i1 %7, label %.lr.ph22, label %._crit_edge23
._crit_edge23: ; preds = %._crit_edge, %1
%.011.lcssa = phi i32 [ 0, %1 ], [ %.112.lcssa, %._crit_edge ]
%.0.lcssa = phi i32 [ 0, %1 ], [ %.1.lcssa, %._crit_edge ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
%8 = getelementptr inbounds i8, ptr %0, i64 92
store i32 %.011.lcssa, ptr %8, align 4, !tbaa !5
%9 = getelementptr inbounds i8, ptr %0, i64 88
store i32 %.0.lcssa, ptr %9, align 8, !tbaa !28
ret void
.lr.ph22: ; preds = %1, %._crit_edge
%.020 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 0, %1 ]
%.01119 = phi i32 [ %.112.lcssa, %._crit_edge ], [ 0, %1 ]
%10 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
%11 = load i32, ptr %10, align 4, !tbaa !29
%12 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %11)
%13 = extractvalue { ptr, ptr } %12, 0
%14 = extractvalue { ptr, ptr } %12, 1
%.not14 = icmp eq ptr %13, %14
br i1 %.not14, label %._crit_edge, label %.lr.ph
._crit_edge: ; preds = %.lr.ph, %.lr.ph22
%.112.lcssa = phi i32 [ %.01119, %.lr.ph22 ], [ %.213, %.lr.ph ]
%.1.lcssa = phi i32 [ %.020, %.lr.ph22 ], [ %.2, %.lr.ph ]
%15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%16 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
store ptr %16, ptr %3, align 8
%17 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
br i1 %17, label %.lr.ph22, label %._crit_edge23, !llvm.loop !30
.lr.ph: ; preds = %.lr.ph22, %.lr.ph
%.117 = phi i32 [ %.2, %.lr.ph ], [ %.020, %.lr.ph22 ]
%.01016 = phi ptr [ %22, %.lr.ph ], [ %13, %.lr.ph22 ]
%.11215 = phi i32 [ %.213, %.lr.ph ], [ %.01119, %.lr.ph22 ]
%18 = load i32, ptr %.01016, align 4, !tbaa !29
%19 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %18)
%not. = xor i1 %19, true
%20 = zext i1 %not. to i32
%.213 = add nsw i32 %.11215, %20
%21 = zext i1 %19 to i32
%.2 = add nsw i32 %.117, %21
%22 = getelementptr inbounds i8, ptr %.01016, i64 4
%.not = icmp eq ptr %22, %14
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !32
}
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !24, i64 92}
!6 = !{!"_ZTS4Seed", !7, i64 8, !10, i64 16, !20, i64 64, !24, i64 88, !24, i64 92, !7, i64 96, !25, i64 104}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !11, i64 0}
!11 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !12, i64 0}
!12 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !13, i64 0, !15, i64 8}
!13 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !14, i64 0}
!14 = !{!"_ZTSSt4lessIiE"}
!15 = !{!"_ZTSSt15_Rb_tree_header", !16, i64 0, !19, i64 32}
!16 = !{!"_ZTSSt18_Rb_tree_node_base", !17, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!17 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"long", !8, i64 0}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!24 = !{!"int", !8, i64 0}
!25 = !{!"_ZTSSt3mapIiSt4pairIiiESt4lessIiESaIS0_IKiS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiS0_IiiEESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !13, i64 0, !15, i64 8}
!28 = !{!6, !24, i64 88}
!29 = !{!24, !24, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass | 803a7e5a682f1971 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/Seed.ll | ZN4Seed33updateCachedEdgeValuesFromScratchEv | BSD-2-Clause |
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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }
%"struct.std::pair.27" = type { ptr, ptr }
@theGlobalGraph = external global %struct.bloomGraph, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %1) #1 align 2 {
%3 = alloca %"struct.std::pair.20", align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"struct.std::pair.27", align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8, !tbaa !5
store i32 %1, ptr %5, align 4, !tbaa !9
%11 = load ptr, ptr %4, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr %6) #4
%12 = load i32, ptr %5, align 4, !tbaa !9
%13 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %12)
%14 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
%15 = extractvalue { ptr, ptr } %13, 0
store ptr %15, ptr %14, align 8
%16 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
%17 = extractvalue { ptr, ptr } %13, 1
store ptr %17, ptr %16, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
store i32 0, ptr %7, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
store i32 0, ptr %8, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
%18 = getelementptr inbounds %"struct.std::pair.27", ptr %6, i32 0, i32 0
%19 = load ptr, ptr %18, align 8, !tbaa !11
store ptr %19, ptr %9, align 8, !tbaa !5
br label %20
20: ; preds = %38, %2
%21 = load ptr, ptr %9, align 8, !tbaa !5
%22 = getelementptr inbounds %"struct.std::pair.27", ptr %6, i32 0, i32 1
%23 = load ptr, ptr %22, align 8, !tbaa !13
%24 = icmp ne ptr %21, %23
br i1 %24, label %26, label %25
25: ; preds = %20
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
br label %41
26: ; preds = %20
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
%27 = load ptr, ptr %9, align 8, !tbaa !5
%28 = load i32, ptr %27, align 4, !tbaa !9
store i32 %28, ptr %10, align 4, !tbaa !9
%29 = load i32, ptr %10, align 4, !tbaa !9
%30 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %11, i32 noundef %29)
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32, ptr %7, align 4, !tbaa !9
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4, !tbaa !9
br label %37
34: ; preds = %26
%35 = load i32, ptr %8, align 4, !tbaa !9
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4, !tbaa !9
br label %37
37: ; preds = %34, %31
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
br label %38
38: ; preds = %37
%39 = load ptr, ptr %9, align 8, !tbaa !5
%40 = getelementptr inbounds i32, ptr %39, i32 1
store ptr %40, ptr %9, align 8, !tbaa !5
br label %20, !llvm.loop !14
41: ; preds = %25
call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
%42 = load i32, ptr %7, align 4, !tbaa !9
%43 = getelementptr inbounds %"struct.std::pair.20", ptr %3, i32 0, i32 0
store i32 %42, ptr %43, align 4, !tbaa !16
%44 = load i32, ptr %8, align 4, !tbaa !9
%45 = getelementptr inbounds %"struct.std::pair.20", ptr %3, i32 0, i32 1
store i32 %44, ptr %45, align 4, !tbaa !18
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %6) #4
%46 = load i64, ptr %3, align 4
ret i64 %46
}
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!18 = !{!17, !10, i64 4}
| 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"
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }
%"struct.std::pair.27" = type { ptr, ptr }
@theGlobalGraph = external global %STRUCT0, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %1) #1 align 2 {
B0:
%2 = alloca %"struct.std::pair.20", align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %"struct.std::pair.27", align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store i32 %1, ptr %4, align 4, !tbaa !9
%10 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
%11 = load i32, ptr %4, align 4, !tbaa !9
%12 = call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %11)
%13 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
%14 = extractvalue { ptr, ptr } %12, 0
store ptr %14, ptr %13, align 8
%15 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
%16 = extractvalue { ptr, ptr } %12, 1
store ptr %16, ptr %15, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
store i32 0, ptr %6, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
store i32 0, ptr %7, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
%17 = getelementptr inbounds %"struct.std::pair.27", ptr %5, i32 0, i32 0
%18 = load ptr, ptr %17, align 8, !tbaa !11
store ptr %18, ptr %8, align 8, !tbaa !5
br label %B1
B1:
%19 = load ptr, ptr %8, align 8, !tbaa !5
%20 = getelementptr inbounds %"struct.std::pair.27", ptr %5, i32 0, i32 1
%21 = load ptr, ptr %20, align 8, !tbaa !13
%22 = icmp ne ptr %19, %21
br i1 %22, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
br label %B8
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
%23 = load ptr, ptr %8, align 8, !tbaa !5
%24 = load i32, ptr %23, align 4, !tbaa !9
store i32 %24, ptr %9, align 4, !tbaa !9
%25 = load i32, ptr %9, align 4, !tbaa !9
%26 = call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %10, i32 noundef %25)
br i1 %26, label %B4, label %B5
B4:
%27 = load i32, ptr %6, align 4, !tbaa !9
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4, !tbaa !9
br label %B6
B5:
%29 = load i32, ptr %7, align 4, !tbaa !9
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4, !tbaa !9
br label %B6
B6:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
br label %B7
B7:
%31 = load ptr, ptr %8, align 8, !tbaa !5
%32 = getelementptr inbounds i32, ptr %31, i32 1
store ptr %32, ptr %8, align 8, !tbaa !5
br label %B1, !llvm.loop !14
B8:
call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %2)
%33 = load i32, ptr %6, align 4, !tbaa !9
%34 = getelementptr inbounds %"struct.std::pair.20", ptr %2, i32 0, i32 0
store i32 %33, ptr %34, align 4, !tbaa !16
%35 = load i32, ptr %7, align 4, !tbaa !9
%36 = getelementptr inbounds %"struct.std::pair.20", ptr %2, i32 0, i32 1
store i32 %35, ptr %36, align 4, !tbaa !18
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
%37 = load i64, ptr %2, align 4
ret i64 %37
}
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!18 = !{!17, !10, i64 4} | 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.bloomGraph = type { %"class.std::vector", %"class.std::vector.29", %"class.std::vector.29", %"class.std::vector", i64, i64, %"class.std::vector.29" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }
@theGlobalGraph = external global %struct.bloomGraph, align 8
; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN4Seed59calculateNumberOfInternalAndExternalEdgesForNodeFromScratchEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %1) local_unnamed_addr #0 align 2 {
%3 = alloca %"struct.std::pair.20", align 8
%4 = tail call { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph, i32 noundef %1)
%5 = extractvalue { ptr, ptr } %4, 0
%6 = extractvalue { ptr, ptr } %4, 1
%.not12 = icmp eq ptr %5, %6
br i1 %.not12, label %._crit_edge, label %.lr.ph
._crit_edge: ; preds = %.lr.ph, %2
%.010.lcssa = phi i32 [ 0, %2 ], [ %.111, %.lr.ph ]
%.0.lcssa = phi i32 [ 0, %2 ], [ %.1, %.lr.ph ]
call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
store i32 %.0.lcssa, ptr %3, align 8, !tbaa !5
%7 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %.010.lcssa, ptr %7, align 4, !tbaa !10
%8 = load i64, ptr %3, align 8
ret i64 %8
.lr.ph: ; preds = %2, %.lr.ph
%.015 = phi i32 [ %.1, %.lr.ph ], [ 0, %2 ]
%.0914 = phi ptr [ %13, %.lr.ph ], [ %5, %2 ]
%.01013 = phi i32 [ %.111, %.lr.ph ], [ 0, %2 ]
%9 = load i32, ptr %.0914, align 4, !tbaa !11
%10 = tail call noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %9)
%not. = xor i1 %10, true
%11 = zext i1 %not. to i32
%.111 = add nuw nsw i32 %.01013, %11
%12 = zext i1 %10 to i32
%.1 = add nuw nsw i32 %.015, %12
%13 = getelementptr inbounds i8, ptr %.0914, i64 4
%.not = icmp eq ptr %13, %6
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12
}
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Seed8containsEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #2 = { mustprogress 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" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSSt4pairIiiE", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass | 44cbd0117c88415a | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | Seed | BSD-2-Clause |
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"
%class.runningAverage = type { i64, i64 }
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN14runningAverageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #0 align 2 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %class.runningAverage, ptr %3, i32 0, i32 0
store i64 0, ptr %4, align 8, !tbaa !9
%5 = getelementptr inbounds %class.runningAverage, ptr %3, i32 0, i32 1
store i64 0, ptr %5, align 8, !tbaa !12
ret void
}
attributes #0 = { mustprogress 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" }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS14runningAverage", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
| 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"
%STRUCT0 = type { i64, i64 }
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN14runningAverageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #0 align 2 {
B0:
%1 = alloca ptr, align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%2 = load ptr, ptr %1, align 8
%3 = getelementptr inbounds %STRUCT0, ptr %2, i32 0, i32 0
store i64 0, ptr %3, align 8, !tbaa !9
%4 = getelementptr inbounds %STRUCT0, ptr %2, i32 0, i32 1
store i64 0, ptr %4, align 8, !tbaa !12
ret void
}
attributes #0 = { mustprogress 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" }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS14runningAverage", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8} | 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"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @_ZN14runningAverageC2Ev(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(16) %0) unnamed_addr #0 align 2 {
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, i8 0, i64 16, i1 false)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) 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 nounwind willreturn memory(argmem: write) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
| EarlyCSEPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass | df5fa32b71fe64a1 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/aaron_utils.ll | ZN14runningAverageC2Ev | BSD-2-Clause |
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"
%class.runningAverage = type { i64, i64 }
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [21 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14runningAverageclEl(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 noundef %1) #0 align 2 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store i64 %1, ptr %4, align 8, !tbaa !9
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8, !tbaa !9
%8 = getelementptr inbounds %class.runningAverage, ptr %6, i32 0, i32 0
%9 = load i64, ptr %8, align 8, !tbaa !11
%10 = add nsw i64 %9, %7
store i64 %10, ptr %8, align 8, !tbaa !11
%11 = getelementptr inbounds %class.runningAverage, ptr %6, i32 0, i32 0
%12 = load i64, ptr %11, align 8, !tbaa !11
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %2
br label %15
15: ; preds = %14
%16 = load ptr, ptr @stderr, align 8, !tbaa !5
%17 = load i64, ptr %4, align 8, !tbaa !9
%18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str, i64 noundef %17) #4
%19 = load ptr, ptr @stderr, align 8, !tbaa !5
%20 = call i32 @fputc(i32 noundef 10, ptr noundef %19)
br label %21
21: ; preds = %15
call void @exit(i32 noundef 1) #5
unreachable
22: ; preds = %2
%23 = getelementptr inbounds %class.runningAverage, ptr %6, i32 0, i32 1
%24 = load i64, ptr %23, align 8, !tbaa !13
%25 = add nsw i64 %24, 1
store i64 %25, ptr %23, align 8, !tbaa !13
ret void
}
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fputc(i32 noundef, ptr noundef) #2
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3
attributes #0 = { mustprogress 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 = { 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 = { "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 = { 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 #4 = { nounwind }
attributes #5 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS14runningAverage", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
| 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"
%STRUCT0 = type { i64, i64 }
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [21 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14runningAverageclEl(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 noundef %1) #0 align 2 {
B0:
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
store i64 %1, ptr %3, align 8, !tbaa !9
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %3, align 8, !tbaa !9
%7 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 0
%8 = load i64, ptr %7, align 8, !tbaa !11
%9 = add nsw i64 %8, %6
store i64 %9, ptr %7, align 8, !tbaa !11
%10 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 0
%11 = load i64, ptr %10, align 8, !tbaa !11
%12 = icmp slt i64 %11, 0
br i1 %12, label %B1, label %B4
B1:
br label %B2
B2:
%13 = load ptr, ptr @stderr, align 8, !tbaa !5
%14 = load i64, ptr %3, align 8, !tbaa !9
%15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str, i64 noundef %14) #4
%16 = load ptr, ptr @stderr, align 8, !tbaa !5
%17 = call i32 @fputc(i32 noundef 10, ptr noundef %16)
br label %B3
B3:
call void @exit(i32 noundef 1) #5
unreachable
B4:
%18 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 1
%19 = load i64, ptr %18, align 8, !tbaa !13
%20 = add nsw i64 %19, 1
store i64 %20, ptr %18, align 8, !tbaa !13
ret void
}
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fputc(i32 noundef, ptr noundef) #2
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3
attributes #0 = { mustprogress 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 = { 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 = { "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 = { 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 #4 = { nounwind }
attributes #5 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS14runningAverage", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8} | 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 = external hidden unnamed_addr constant [21 x i8], align 1
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN14runningAverageclEl(ptr nocapture noundef nonnull align 8 dereferenceable(16) %0, i64 noundef %1) local_unnamed_addr #0 align 2 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = add nsw i64 %3, %1
store i64 %4, ptr %0, align 8, !tbaa !5
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %2
%7 = load ptr, ptr @stderr, align 8, !tbaa !10
%8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str, i64 noundef %1) #3
%9 = load ptr, ptr @stderr, align 8, !tbaa !10
%10 = tail call i32 @fputc(i32 noundef 10, ptr noundef %9)
tail call void @exit(i32 noundef 1) #4
unreachable
11: ; preds = %2
%12 = getelementptr inbounds i8, ptr %0, i64 8
%13 = load i64, ptr %12, align 8, !tbaa !12
%14 = add nsw i64 %13, 1
store i64 %14, ptr %12, align 8, !tbaa !12
ret void
}
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @fputc(i32 noundef, ptr nocapture noundef) local_unnamed_addr #1
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2
attributes #0 = { mustprogress 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 = { 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 = { cold nounwind }
attributes #4 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS14runningAverage", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 8}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 3ff2ea34b90978d6 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder/aaron_utils.ll | ZN14runningAverageclEl | BSD-2-Clause |
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"
%class.ContainerRange = type { %class.IteratorRange }
%class.IteratorRange = type { %"struct.std::_List_iterator", %"struct.std::_List_iterator" }
%"struct.std::_List_iterator" = type { ptr }
%class.ChainedRange = type { %class.ContainerRange, %class.ContainerRange }
%"struct.std::pair.11" = type { i32, i32 }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.std::_List_const_iterator" = type { ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4, ptr noundef %5) #1 personality ptr @__gxx_personality_v0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i8, align 1
%16 = alloca %class.ContainerRange, align 8
%17 = alloca %class.ContainerRange, align 8
%18 = alloca %class.ChainedRange, align 8
%19 = alloca i8, align 1
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca %class.ContainerRange, align 8
%24 = alloca i8, align 1
%25 = alloca i32, align 4
%26 = alloca %"struct.std::pair.11", align 4
%27 = alloca %"class.std::__cxx11::list", align 8
%28 = alloca %class.ContainerRange, align 8
%29 = alloca ptr, align 8
%30 = alloca i32, align 4
%31 = alloca i8, align 1
%32 = alloca i32, align 4
%33 = alloca %"struct.std::pair.11", align 4
%34 = alloca %"struct.std::_List_const_iterator", align 8
%35 = alloca %"struct.std::_List_iterator", align 8
%36 = alloca %"struct.std::_List_iterator", align 8
%37 = alloca %"struct.std::_List_iterator", align 8
%38 = alloca %"struct.std::_List_iterator", align 8
%39 = alloca %"struct.std::_List_const_iterator", align 8
%40 = alloca %"struct.std::_List_iterator", align 8
%41 = alloca %"struct.std::_List_iterator", align 8
%42 = alloca %"struct.std::_List_iterator", align 8
%43 = alloca %"struct.std::_List_iterator", align 8
%44 = alloca %"struct.std::_List_const_iterator", align 8
%45 = alloca %"struct.std::_List_iterator", align 8
%46 = alloca %"struct.std::_List_iterator", align 8
%47 = alloca %"struct.std::_List_iterator", align 8
%48 = alloca %"struct.std::_List_iterator", align 8
store ptr %0, ptr %7, align 8, !tbaa !5
store ptr %1, ptr %8, align 8, !tbaa !5
store i32 %2, ptr %9, align 4, !tbaa !9
store ptr %3, ptr %10, align 8, !tbaa !5
store ptr %4, ptr %11, align 8, !tbaa !5
store ptr %5, ptr %12, align 8, !tbaa !5
%49 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%50 = load ptr, ptr %10, align 8, !tbaa !5
%51 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #4
%52 = add i64 %49, %51
%53 = load i32, ptr %9, align 4, !tbaa !9
%54 = zext i32 %53 to i64
%55 = icmp uge i64 %52, %54
br i1 %55, label %57, label %56
56: ; preds = %6
br label %337
57: ; preds = %6
%58 = call noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
br i1 %58, label %59, label %74
59: ; preds = %57
%60 = call noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
br i1 %60, label %61, label %73
61: ; preds = %59
%62 = load ptr, ptr %10, align 8, !tbaa !5
%63 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #4
%64 = load i32, ptr %9, align 4, !tbaa !9
%65 = zext i32 %64 to i64
%66 = icmp uge i64 %63, %65
br i1 %66, label %67, label %73
67: ; preds = %61
%68 = load ptr, ptr %8, align 8, !tbaa !5
%69 = load ptr, ptr %10, align 8, !tbaa !5
%70 = load ptr, ptr %68, align 8, !tbaa !11
%71 = getelementptr inbounds ptr, ptr %70, i64 0
%72 = load ptr, ptr %71, align 8
call void %72(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(24) %69)
br label %73
73: ; preds = %67, %61, %59
br label %337
74: ; preds = %57
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
%75 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%76 = add i64 1, %75
%77 = trunc i64 %76 to i32
store i32 %77, ptr %13, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
%78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt7__cxx114listIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%79 = load i32, ptr %78, align 4, !tbaa !9
store i32 %79, ptr %14, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
store i8 0, ptr %15, align 1, !tbaa !13
call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(24) %4)
call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(24) %5)
call void @llvm.lifetime.start.p0(i64 32, ptr %18) #4
call void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEEC2ERKS5_S8_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
store i8 0, ptr %19, align 1, !tbaa !13
br label %80
80: ; preds = %160, %74
%81 = load i8, ptr %19, align 1, !tbaa !13, !range !15, !noundef !16
%82 = trunc i8 %81 to i1
br i1 %82, label %86, label %83
83: ; preds = %80
%84 = call noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
%85 = xor i1 %84, true
br label %86
86: ; preds = %83, %80
%87 = phi i1 [ false, %80 ], [ %85, %83 ]
br i1 %87, label %89, label %88
88: ; preds = %86
store i32 2, ptr %20, align 4
br label %161
89: ; preds = %86
store i8 1, ptr %19, align 1, !tbaa !13
br i1 true, label %90, label %155
90: ; preds = %89
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
%91 = call noundef i32 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
store i32 %91, ptr %21, align 4, !tbaa !9
br label %92
92: ; preds = %151, %90
%93 = load i8, ptr %19, align 1, !tbaa !13, !range !15, !noundef !16
%94 = trunc i8 %93 to i1
br i1 %94, label %96, label %95
95: ; preds = %92
store i32 5, ptr %20, align 4
br label %152
96: ; preds = %92
call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
store i32 0, ptr %22, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(24) %5)
call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
store i8 0, ptr %24, align 1, !tbaa !13
br label %97
97: ; preds = %130, %96
%98 = load i8, ptr %24, align 1, !tbaa !13, !range !15, !noundef !16
%99 = trunc i8 %98 to i1
br i1 %99, label %103, label %100
100: ; preds = %97
%101 = call noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
%102 = xor i1 %101, true
br label %103
103: ; preds = %100, %97
%104 = phi i1 [ false, %97 ], [ %102, %100 ]
br i1 %104, label %106, label %105
105: ; preds = %103
store i32 8, ptr %20, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
br label %131
106: ; preds = %103
store i8 1, ptr %24, align 1, !tbaa !13
br i1 true, label %107, label %125
107: ; preds = %106
call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
%108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
%109 = load i32, ptr %108, align 4, !tbaa !9
store i32 %109, ptr %25, align 4, !tbaa !9
br label %110
110: ; preds = %123, %107
%111 = load i8, ptr %24, align 1, !tbaa !13, !range !15, !noundef !16
%112 = trunc i8 %111 to i1
br i1 %112, label %114, label %113
113: ; preds = %110
store i32 11, ptr %20, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
br label %124
114: ; preds = %110
%115 = load ptr, ptr %7, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
%116 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %25)
store i64 %116, ptr %26, align 4
%117 = call noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136) %115, ptr noundef nonnull align 4 dereferenceable(8) %26)
%118 = xor i1 %117, true
call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
br i1 %118, label %119, label %122
119: ; preds = %114
%120 = load i32, ptr %22, align 4, !tbaa !9
%121 = add nsw i32 %120, 1
store i32 %121, ptr %22, align 4, !tbaa !9
br label %122
122: ; preds = %119, %114
br label %123
123: ; preds = %122
store i8 0, ptr %24, align 1, !tbaa !13
br label %110, !llvm.loop !17
124: ; preds = %113
br label %125
125: ; preds = %124, %106
br label %126
126: ; preds = %125
%127 = load i8, ptr %24, align 1, !tbaa !13, !range !15, !noundef !16
%128 = trunc i8 %127 to i1
br i1 %128, label %130, label %129
129: ; preds = %126
call void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
br label %130
130: ; preds = %129, %126
br label %97, !llvm.loop !19
131: ; preds = %105
%132 = load i32, ptr %22, align 4, !tbaa !9
%133 = load i32, ptr %13, align 4, !tbaa !9
%134 = icmp slt i32 %132, %133
br i1 %134, label %135, label %147
135: ; preds = %131
%136 = load i32, ptr %22, align 4, !tbaa !9
store i32 %136, ptr %13, align 4, !tbaa !9
%137 = load i32, ptr %21, align 4, !tbaa !9
store i32 %137, ptr %14, align 4, !tbaa !9
%138 = call noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE10firstEmptyEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
%139 = zext i1 %138 to i8
store i8 %139, ptr %15, align 1, !tbaa !13
%140 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
%141 = trunc i8 %140 to i1
br i1 %141, label %146, label %142
142: ; preds = %135
%143 = load i32, ptr %13, align 4, !tbaa !9
%144 = icmp eq i32 %143, 0
br i1 %144, label %145, label %146
145: ; preds = %142
store i32 1, ptr %20, align 4
br label %148
146: ; preds = %142, %135
br label %147
147: ; preds = %146, %131
store i32 0, ptr %20, align 4
br label %148
148: ; preds = %147, %145
call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
%149 = load i32, ptr %20, align 4
switch i32 %149, label %152 [
i32 0, label %150
]
150: ; preds = %148
br label %151
151: ; preds = %150
store i8 0, ptr %19, align 1, !tbaa !13
br label %92, !llvm.loop !20
152: ; preds = %148, %95
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
%153 = load i32, ptr %20, align 4
switch i32 %153, label %161 [
i32 5, label %154
]
154: ; preds = %152
br label %155
155: ; preds = %154, %89
br label %156
156: ; preds = %155
%157 = load i8, ptr %19, align 1, !tbaa !13, !range !15, !noundef !16
%158 = trunc i8 %157 to i1
br i1 %158, label %160, label %159
159: ; preds = %156
call void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
br label %160
160: ; preds = %159, %156
br label %80, !llvm.loop !21
161: ; preds = %152, %88
call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
%162 = load i32, ptr %20, align 4
switch i32 %162, label %335 [
i32 2, label %163
]
163: ; preds = %161
call void @llvm.lifetime.start.p0(i64 24, ptr %27) #4
call void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %5)
call void @llvm.lifetime.start.p0(i64 16, ptr %28) #4
invoke void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(24) %27)
to label %164 unwind label %175
164: ; preds = %163
call void @llvm.lifetime.start.p0(i64 1, ptr %31) #4
store i8 0, ptr %31, align 1, !tbaa !13
br label %165
165: ; preds = %294, %164
%166 = load i8, ptr %31, align 1, !tbaa !13, !range !15, !noundef !16
%167 = trunc i8 %166 to i1
br i1 %167, label %172, label %168
168: ; preds = %165
%169 = invoke noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
to label %170 unwind label %179
170: ; preds = %168
%171 = xor i1 %169, true
br label %172
172: ; preds = %170, %165
%173 = phi i1 [ false, %165 ], [ %171, %170 ]
br i1 %173, label %183, label %174
174: ; preds = %172
store i32 14, ptr %20, align 4
br label %295
175: ; preds = %163
%176 = landingpad { ptr, i32 }
cleanup
%177 = extractvalue { ptr, i32 } %176, 0
store ptr %177, ptr %29, align 8
%178 = extractvalue { ptr, i32 } %176, 1
store i32 %178, ptr %30, align 4
br label %313
179: ; preds = %292, %168
%180 = landingpad { ptr, i32 }
cleanup
%181 = extractvalue { ptr, i32 } %180, 0
store ptr %181, ptr %29, align 8
%182 = extractvalue { ptr, i32 } %180, 1
store i32 %182, ptr %30, align 4
br label %297
183: ; preds = %172
store i8 1, ptr %31, align 1, !tbaa !13
br i1 true, label %184, label %288
184: ; preds = %183
call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
%185 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
to label %186 unwind label %192
186: ; preds = %184
%187 = load i32, ptr %185, align 4, !tbaa !9
store i32 %187, ptr %32, align 4, !tbaa !9
br label %188
188: ; preds = %283, %186
%189 = load i8, ptr %31, align 1, !tbaa !13, !range !15, !noundef !16
%190 = trunc i8 %189 to i1
br i1 %190, label %196, label %191
191: ; preds = %188
store i32 17, ptr %20, align 4
br label %284
192: ; preds = %244, %184
%193 = landingpad { ptr, i32 }
cleanup
%194 = extractvalue { ptr, i32 } %193, 0
store ptr %194, ptr %29, align 8
%195 = extractvalue { ptr, i32 } %193, 1
store i32 %195, ptr %30, align 4
br label %286
196: ; preds = %188
%197 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%198 = load ptr, ptr %10, align 8, !tbaa !5
%199 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %198) #4
%200 = add i64 %197, %199
%201 = load i32, ptr %9, align 4, !tbaa !9
%202 = zext i32 %201 to i64
%203 = icmp uge i64 %200, %202
br i1 %203, label %205, label %204
204: ; preds = %196
store i32 1, ptr %20, align 4
br label %284
205: ; preds = %196
%206 = load i32, ptr %13, align 4, !tbaa !9
%207 = icmp sgt i32 %206, 0
call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
br i1 %207, label %208, label %219
208: ; preds = %205
%209 = load i32, ptr %32, align 4, !tbaa !9
%210 = load i32, ptr %14, align 4, !tbaa !9
%211 = icmp ne i32 %209, %210
br i1 %211, label %212, label %219
212: ; preds = %208
%213 = load ptr, ptr %7, align 8, !tbaa !5
%214 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %14)
to label %215 unwind label %230
215: ; preds = %212
store i64 %214, ptr %33, align 4
%216 = invoke noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136) %213, ptr noundef nonnull align 4 dereferenceable(8) %33)
to label %217 unwind label %230
217: ; preds = %215
%218 = xor i1 %216, true
br label %219
219: ; preds = %217, %208, %205
%220 = phi i1 [ false, %208 ], [ false, %205 ], [ %218, %217 ]
call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
br i1 %220, label %221, label %282
221: ; preds = %219
%222 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%223 = load ptr, ptr %10, align 8, !tbaa !5
%224 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %223) #4
%225 = add i64 %222, %224
%226 = load i32, ptr %9, align 4, !tbaa !9
%227 = zext i32 %226 to i64
%228 = icmp uge i64 %225, %227
br i1 %228, label %234, label %229
229: ; preds = %221
store i32 1, ptr %20, align 4
br label %284
230: ; preds = %215, %212
%231 = landingpad { ptr, i32 }
cleanup
%232 = extractvalue { ptr, i32 } %231, 0
store ptr %232, ptr %29, align 8
%233 = extractvalue { ptr, i32 } %231, 1
store i32 %233, ptr %30, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
br label %286
234: ; preds = %221
call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
%235 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%236 = getelementptr inbounds %"struct.std::_List_iterator", ptr %36, i32 0, i32 0
store ptr %235, ptr %236, align 8
%237 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%238 = getelementptr inbounds %"struct.std::_List_iterator", ptr %37, i32 0, i32 0
store ptr %237, ptr %238, align 8
%239 = getelementptr inbounds %"struct.std::_List_iterator", ptr %36, i32 0, i32 0
%240 = load ptr, ptr %239, align 8
%241 = getelementptr inbounds %"struct.std::_List_iterator", ptr %37, i32 0, i32 0
%242 = load ptr, ptr %241, align 8
%243 = invoke ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %240, ptr %242, ptr noundef nonnull align 4 dereferenceable(4) %32)
to label %244 unwind label %274
244: ; preds = %234
%245 = getelementptr inbounds %"struct.std::_List_iterator", ptr %35, i32 0, i32 0
store ptr %243, ptr %245, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #4
%246 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %34, i32 0, i32 0
%247 = load ptr, ptr %246, align 8
%248 = call ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %247) #4
%249 = getelementptr inbounds %"struct.std::_List_iterator", ptr %38, i32 0, i32 0
store ptr %248, ptr %249, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
%250 = load ptr, ptr %7, align 8, !tbaa !5
%251 = load ptr, ptr %8, align 8, !tbaa !5
%252 = load i32, ptr %9, align 4, !tbaa !9
%253 = load ptr, ptr %10, align 8, !tbaa !5
%254 = load i32, ptr %32, align 4, !tbaa !9
invoke void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136) %250, ptr noundef nonnull align 8 dereferenceable(8) %251, i32 noundef %252, ptr noundef nonnull align 8 dereferenceable(24) %253, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %254)
to label %255 unwind label %192
255: ; preds = %244
call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
%256 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
%257 = getelementptr inbounds %"struct.std::_List_iterator", ptr %41, i32 0, i32 0
store ptr %256, ptr %257, align 8
%258 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
%259 = getelementptr inbounds %"struct.std::_List_iterator", ptr %42, i32 0, i32 0
store ptr %258, ptr %259, align 8
%260 = getelementptr inbounds %"struct.std::_List_iterator", ptr %41, i32 0, i32 0
%261 = load ptr, ptr %260, align 8
%262 = getelementptr inbounds %"struct.std::_List_iterator", ptr %42, i32 0, i32 0
%263 = load ptr, ptr %262, align 8
%264 = invoke ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %261, ptr %263, ptr noundef nonnull align 4 dereferenceable(4) %32)
to label %265 unwind label %278
265: ; preds = %255
%266 = getelementptr inbounds %"struct.std::_List_iterator", ptr %40, i32 0, i32 0
store ptr %264, ptr %266, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #4
%267 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %39, i32 0, i32 0
%268 = load ptr, ptr %267, align 8
%269 = invoke ptr @_ZNSt7__cxx114listIiSaIiEE6insertESt20_List_const_iteratorIiERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %268, ptr noundef nonnull align 4 dereferenceable(4) %32)
to label %270 unwind label %278
270: ; preds = %265
%271 = getelementptr inbounds %"struct.std::_List_iterator", ptr %43, i32 0, i32 0
store ptr %269, ptr %271, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
%272 = load i32, ptr %13, align 4, !tbaa !9
%273 = add nsw i32 %272, -1
store i32 %273, ptr %13, align 4, !tbaa !9
br label %282
274: ; preds = %234
%275 = landingpad { ptr, i32 }
cleanup
%276 = extractvalue { ptr, i32 } %275, 0
store ptr %276, ptr %29, align 8
%277 = extractvalue { ptr, i32 } %275, 1
store i32 %277, ptr %30, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
br label %286
278: ; preds = %265, %255
%279 = landingpad { ptr, i32 }
cleanup
%280 = extractvalue { ptr, i32 } %279, 0
store ptr %280, ptr %29, align 8
%281 = extractvalue { ptr, i32 } %279, 1
store i32 %281, ptr %30, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
br label %286
282: ; preds = %270, %219
br label %283
283: ; preds = %282
store i8 0, ptr %31, align 1, !tbaa !13
br label %188, !llvm.loop !22
284: ; preds = %229, %204, %191
call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
%285 = load i32, ptr %20, align 4
switch i32 %285, label %295 [
i32 17, label %287
]
286: ; preds = %278, %274, %230, %192
call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
br label %297
287: ; preds = %284
br label %288
288: ; preds = %287, %183
br label %289
289: ; preds = %288
%290 = load i8, ptr %31, align 1, !tbaa !13, !range !15, !noundef !16
%291 = trunc i8 %290 to i1
br i1 %291, label %294, label %292
292: ; preds = %289
invoke void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
to label %293 unwind label %179
293: ; preds = %292
br label %294
294: ; preds = %293, %289
br label %165, !llvm.loop !23
295: ; preds = %284, %174
call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
%296 = load i32, ptr %20, align 4
switch i32 %296, label %299 [
i32 14, label %298
]
297: ; preds = %286, %179
call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
br label %313
298: ; preds = %295
store i32 0, ptr %20, align 4
br label %299
299: ; preds = %298, %295
call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #4
call void @llvm.lifetime.end.p0(i64 24, ptr %27) #4
%300 = load i32, ptr %20, align 4
switch i32 %300, label %335 [
i32 0, label %301
]
301: ; preds = %299
%302 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
%303 = trunc i8 %302 to i1
br i1 %303, label %304, label %334
304: ; preds = %301
%305 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%306 = load ptr, ptr %10, align 8, !tbaa !5
%307 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %306) #4
%308 = add i64 %305, %307
%309 = load i32, ptr %9, align 4, !tbaa !9
%310 = zext i32 %309 to i64
%311 = icmp uge i64 %308, %310
br i1 %311, label %314, label %312
312: ; preds = %304
store i32 1, ptr %20, align 4
br label %335
313: ; preds = %297, %175
call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #4
call void @llvm.lifetime.end.p0(i64 24, ptr %27) #4
call void @llvm.lifetime.end.p0(i64 32, ptr %18) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
br label %338
314: ; preds = %304
call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
%315 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%316 = getelementptr inbounds %"struct.std::_List_iterator", ptr %46, i32 0, i32 0
store ptr %315, ptr %316, align 8
%317 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%318 = getelementptr inbounds %"struct.std::_List_iterator", ptr %47, i32 0, i32 0
store ptr %317, ptr %318, align 8
%319 = getelementptr inbounds %"struct.std::_List_iterator", ptr %46, i32 0, i32 0
%320 = load ptr, ptr %319, align 8
%321 = getelementptr inbounds %"struct.std::_List_iterator", ptr %47, i32 0, i32 0
%322 = load ptr, ptr %321, align 8
%323 = call ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %320, ptr %322, ptr noundef nonnull align 4 dereferenceable(4) %14)
%324 = getelementptr inbounds %"struct.std::_List_iterator", ptr %45, i32 0, i32 0
store ptr %323, ptr %324, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #4
%325 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %44, i32 0, i32 0
%326 = load ptr, ptr %325, align 8
%327 = call ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %326) #4
%328 = getelementptr inbounds %"struct.std::_List_iterator", ptr %48, i32 0, i32 0
store ptr %327, ptr %328, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
%329 = load ptr, ptr %7, align 8, !tbaa !5
%330 = load ptr, ptr %8, align 8, !tbaa !5
%331 = load i32, ptr %9, align 4, !tbaa !9
%332 = load ptr, ptr %10, align 8, !tbaa !5
%333 = load i32, ptr %14, align 4, !tbaa !9
call void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136) %329, ptr noundef nonnull align 8 dereferenceable(8) %330, i32 noundef %331, ptr noundef nonnull align 8 dereferenceable(24) %332, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %333)
br label %334
334: ; preds = %314, %301
store i32 0, ptr %20, align 4
br label %335
335: ; preds = %334, %312, %299, %161
call void @llvm.lifetime.end.p0(i64 32, ptr %18) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
%336 = load i32, ptr %20, align 4
switch i32 %336, label %343 [
i32 0, label %337
i32 1, label %337
]
337: ; preds = %335, %335, %73, %56
ret void
338: ; preds = %313
%339 = load ptr, ptr %29, align 8
%340 = load i32, ptr %30, align 4
%341 = insertvalue { ptr, i32 } poison, ptr %339, 0
%342 = insertvalue { ptr, i32 } %341, i32 %340, 1
resume { ptr, i32 } %342
343: ; preds = %335
unreachable
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt7__cxx114listIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEEC2ERKS5_S8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE10firstEmptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24), ptr) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE6insertESt20_List_const_iteratorIiERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
| 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"
%STRUCT0 = type { %STRUCT1 }
%STRUCT1 = type { %"struct.std::_List_iterator", %"struct.std::_List_iterator" }
%"struct.std::_List_iterator" = type { ptr }
%STRUCT2 = type { %STRUCT0, %STRUCT0 }
%"struct.std::pair.11" = type { i32, i32 }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.std::_List_const_iterator" = type { ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4, ptr noundef %5) #1 personality ptr @__gxx_personality_v0 {
B0:
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca %STRUCT0, align 8
%16 = alloca %STRUCT0, align 8
%17 = alloca %STRUCT2, align 8
%18 = alloca i8, align 1
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca %STRUCT0, align 8
%23 = alloca i8, align 1
%24 = alloca i32, align 4
%25 = alloca %"struct.std::pair.11", align 4
%26 = alloca %"class.std::__cxx11::list", align 8
%27 = alloca %STRUCT0, align 8
%28 = alloca ptr, align 8
%29 = alloca i32, align 4
%30 = alloca i8, align 1
%31 = alloca i32, align 4
%32 = alloca %"struct.std::pair.11", align 4
%33 = alloca %"struct.std::_List_const_iterator", align 8
%34 = alloca %"struct.std::_List_iterator", align 8
%35 = alloca %"struct.std::_List_iterator", align 8
%36 = alloca %"struct.std::_List_iterator", align 8
%37 = alloca %"struct.std::_List_iterator", align 8
%38 = alloca %"struct.std::_List_const_iterator", align 8
%39 = alloca %"struct.std::_List_iterator", align 8
%40 = alloca %"struct.std::_List_iterator", align 8
%41 = alloca %"struct.std::_List_iterator", align 8
%42 = alloca %"struct.std::_List_iterator", align 8
%43 = alloca %"struct.std::_List_const_iterator", align 8
%44 = alloca %"struct.std::_List_iterator", align 8
%45 = alloca %"struct.std::_List_iterator", align 8
%46 = alloca %"struct.std::_List_iterator", align 8
%47 = alloca %"struct.std::_List_iterator", align 8
store ptr %0, ptr %6, align 8, !tbaa !5
store ptr %1, ptr %7, align 8, !tbaa !5
store i32 %2, ptr %8, align 4, !tbaa !9
store ptr %3, ptr %9, align 8, !tbaa !5
store ptr %4, ptr %10, align 8, !tbaa !5
store ptr %5, ptr %11, align 8, !tbaa !5
%48 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%49 = load ptr, ptr %9, align 8, !tbaa !5
%50 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #4
%51 = add i64 %48, %50
%52 = load i32, ptr %8, align 4, !tbaa !9
%53 = zext i32 %52 to i64
%54 = icmp uge i64 %51, %53
br i1 %54, label %B2, label %B1
B1:
br label %B104
B2:
%55 = call noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
br i1 %55, label %B3, label %B7
B3:
%56 = call noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
br i1 %56, label %B4, label %B6
B4:
%57 = load ptr, ptr %9, align 8, !tbaa !5
%58 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #4
%59 = load i32, ptr %8, align 4, !tbaa !9
%60 = zext i32 %59 to i64
%61 = icmp uge i64 %58, %60
br i1 %61, label %B5, label %B6
B5:
%62 = load ptr, ptr %7, align 8, !tbaa !5
%63 = load ptr, ptr %9, align 8, !tbaa !5
%64 = load ptr, ptr %62, align 8, !tbaa !11
%65 = getelementptr inbounds ptr, ptr %64, i64 0
%66 = load ptr, ptr %65, align 8
call void %66(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(24) %63)
br label %B6
B6:
br label %B104
B7:
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
%67 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%68 = add i64 1, %67
%69 = trunc i64 %68 to i32
store i32 %69, ptr %12, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
%70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt7__cxx114listIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%71 = load i32, ptr %70, align 4, !tbaa !9
store i32 %71, ptr %13, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
store i8 0, ptr %14, align 1, !tbaa !13
call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(24) %4)
call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(24) %5)
call void @llvm.lifetime.start.p0(i64 32, ptr %17) #4
call void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEEC2ERKS5_S8_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
store i8 0, ptr %18, align 1, !tbaa !13
br label %B8
B8:
%72 = load i8, ptr %18, align 1, !tbaa !13, !range !15, !noundef !16
%73 = trunc i8 %72 to i1
br i1 %73, label %B10, label %B9
B9:
%74 = call noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
%75 = xor i1 %74, true
br label %B10
B10:
%76 = phi i1 [ false, %B8 ], [ %75, %B9 ]
br i1 %76, label %B12, label %B11
B11:
store i32 2, ptr %19, align 4
br label %B49
B12:
store i8 1, ptr %18, align 1, !tbaa !13
br i1 true, label %B13, label %B45
B13:
call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
%77 = call noundef i32 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
store i32 %77, ptr %20, align 4, !tbaa !9
br label %B14
B14:
%78 = load i8, ptr %18, align 1, !tbaa !13, !range !15, !noundef !16
%79 = trunc i8 %78 to i1
br i1 %79, label %B16, label %B15
B15:
store i32 5, ptr %19, align 4
br label %B43
B16:
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
store i32 0, ptr %21, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(24) %5)
call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
store i8 0, ptr %23, align 1, !tbaa !13
br label %B17
B17:
%80 = load i8, ptr %23, align 1, !tbaa !13, !range !15, !noundef !16
%81 = trunc i8 %80 to i1
br i1 %81, label %B19, label %B18
B18:
%82 = call noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
%83 = xor i1 %82, true
br label %B19
B19:
%84 = phi i1 [ false, %B17 ], [ %83, %B18 ]
br i1 %84, label %B21, label %B20
B20:
store i32 8, ptr %19, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
br label %B34
B21:
store i8 1, ptr %23, align 1, !tbaa !13
br i1 true, label %B22, label %B30
B22:
call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
%85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
%86 = load i32, ptr %85, align 4, !tbaa !9
store i32 %86, ptr %24, align 4, !tbaa !9
br label %B23
B23:
%87 = load i8, ptr %23, align 1, !tbaa !13, !range !15, !noundef !16
%88 = trunc i8 %87 to i1
br i1 %88, label %B25, label %B24
B24:
store i32 11, ptr %19, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
br label %B29
B25:
%89 = load ptr, ptr %6, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
%90 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %24)
store i64 %90, ptr %25, align 4
%91 = call noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136) %89, ptr noundef nonnull align 4 dereferenceable(8) %25)
%92 = xor i1 %91, true
call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
br i1 %92, label %B26, label %B27
B26:
%93 = load i32, ptr %21, align 4, !tbaa !9
%94 = add nsw i32 %93, 1
store i32 %94, ptr %21, align 4, !tbaa !9
br label %B27
B27:
br label %B28
B28:
store i8 0, ptr %23, align 1, !tbaa !13
br label %B23, !llvm.loop !17
B29:
br label %B30
B30:
br label %B31
B31:
%95 = load i8, ptr %23, align 1, !tbaa !13, !range !15, !noundef !16
%96 = trunc i8 %95 to i1
br i1 %96, label %B33, label %B32
B32:
call void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
br label %B33
B33:
br label %B17, !llvm.loop !19
B34:
%97 = load i32, ptr %21, align 4, !tbaa !9
%98 = load i32, ptr %12, align 4, !tbaa !9
%99 = icmp slt i32 %97, %98
br i1 %99, label %B35, label %B39
B35:
%100 = load i32, ptr %21, align 4, !tbaa !9
store i32 %100, ptr %12, align 4, !tbaa !9
%101 = load i32, ptr %20, align 4, !tbaa !9
store i32 %101, ptr %13, align 4, !tbaa !9
%102 = call noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE10firstEmptyEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
%103 = zext i1 %102 to i8
store i8 %103, ptr %14, align 1, !tbaa !13
%104 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
%105 = trunc i8 %104 to i1
br i1 %105, label %B38, label %B36
B36:
%106 = load i32, ptr %12, align 4, !tbaa !9
%107 = icmp eq i32 %106, 0
br i1 %107, label %B37, label %B38
B37:
store i32 1, ptr %19, align 4
br label %B40
B38:
br label %B39
B39:
store i32 0, ptr %19, align 4
br label %B40
B40:
call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
%108 = load i32, ptr %19, align 4
switch i32 %108, label %B43 [
i32 0, label %B41
]
B41:
br label %B42
B42:
store i8 0, ptr %18, align 1, !tbaa !13
br label %B14, !llvm.loop !20
B43:
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
%109 = load i32, ptr %19, align 4
switch i32 %109, label %B49 [
i32 5, label %B44
]
B44:
br label %B45
B45:
br label %B46
B46:
%110 = load i8, ptr %18, align 1, !tbaa !13, !range !15, !noundef !16
%111 = trunc i8 %110 to i1
br i1 %111, label %B48, label %B47
B47:
call void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
br label %B48
B48:
br label %B8, !llvm.loop !21
B49:
call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
%112 = load i32, ptr %19, align 4
switch i32 %112, label %B103 [
i32 2, label %B50
]
B50:
call void @llvm.lifetime.start.p0(i64 24, ptr %26) #4
call void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %5)
call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
invoke void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(24) %26)
to label %B51 unwind label %B57
B51:
call void @llvm.lifetime.start.p0(i64 1, ptr %30) #4
store i8 0, ptr %30, align 1, !tbaa !13
br label %B52
B52:
%113 = load i8, ptr %30, align 1, !tbaa !13, !range !15, !noundef !16
%114 = trunc i8 %113 to i1
br i1 %114, label %B55, label %B53
B53:
%115 = invoke noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
to label %B54 unwind label %B58
B54:
%116 = xor i1 %115, true
br label %B55
B55:
%117 = phi i1 [ false, %B52 ], [ %116, %B54 ]
br i1 %117, label %B59, label %B56
B56:
store i32 14, ptr %19, align 4
br label %B93
B57:
%118 = landingpad { ptr, i32 }
cleanup
%119 = extractvalue { ptr, i32 } %118, 0
store ptr %119, ptr %28, align 8
%120 = extractvalue { ptr, i32 } %118, 1
store i32 %120, ptr %29, align 4
br label %B100
B58:
%121 = landingpad { ptr, i32 }
cleanup
%122 = extractvalue { ptr, i32 } %121, 0
store ptr %122, ptr %28, align 8
%123 = extractvalue { ptr, i32 } %121, 1
store i32 %123, ptr %29, align 4
br label %B94
B59:
store i8 1, ptr %30, align 1, !tbaa !13
br i1 true, label %B60, label %B88
B60:
call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
%124 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
to label %B61 unwind label %B64
B61:
%125 = load i32, ptr %124, align 4, !tbaa !9
store i32 %125, ptr %31, align 4, !tbaa !9
br label %B62
B62:
%126 = load i8, ptr %30, align 1, !tbaa !13, !range !15, !noundef !16
%127 = trunc i8 %126 to i1
br i1 %127, label %B65, label %B63
B63:
store i32 17, ptr %19, align 4
br label %B85
B64:
%128 = landingpad { ptr, i32 }
cleanup
%129 = extractvalue { ptr, i32 } %128, 0
store ptr %129, ptr %28, align 8
%130 = extractvalue { ptr, i32 } %128, 1
store i32 %130, ptr %29, align 4
br label %B86
B65:
%131 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%132 = load ptr, ptr %9, align 8, !tbaa !5
%133 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #4
%134 = add i64 %131, %133
%135 = load i32, ptr %8, align 4, !tbaa !9
%136 = zext i32 %135 to i64
%137 = icmp uge i64 %134, %136
br i1 %137, label %B67, label %B66
B66:
store i32 1, ptr %19, align 4
br label %B85
B67:
%138 = load i32, ptr %12, align 4, !tbaa !9
%139 = icmp sgt i32 %138, 0
call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
br i1 %139, label %B68, label %B72
B68:
%140 = load i32, ptr %31, align 4, !tbaa !9
%141 = load i32, ptr %13, align 4, !tbaa !9
%142 = icmp ne i32 %140, %141
br i1 %142, label %B69, label %B72
B69:
%143 = load ptr, ptr %6, align 8, !tbaa !5
%144 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %13)
to label %B70 unwind label %B75
B70:
store i64 %144, ptr %32, align 4
%145 = invoke noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136) %143, ptr noundef nonnull align 4 dereferenceable(8) %32)
to label %B71 unwind label %B75
B71:
%146 = xor i1 %145, true
br label %B72
B72:
%147 = phi i1 [ false, %B68 ], [ false, %B67 ], [ %146, %B71 ]
call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
br i1 %147, label %B73, label %B83
B73:
%148 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%149 = load ptr, ptr %9, align 8, !tbaa !5
%150 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %149) #4
%151 = add i64 %148, %150
%152 = load i32, ptr %8, align 4, !tbaa !9
%153 = zext i32 %152 to i64
%154 = icmp uge i64 %151, %153
br i1 %154, label %B76, label %B74
B74:
store i32 1, ptr %19, align 4
br label %B85
B75:
%155 = landingpad { ptr, i32 }
cleanup
%156 = extractvalue { ptr, i32 } %155, 0
store ptr %156, ptr %28, align 8
%157 = extractvalue { ptr, i32 } %155, 1
store i32 %157, ptr %29, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
br label %B86
B76:
call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
%158 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%159 = getelementptr inbounds %"struct.std::_List_iterator", ptr %35, i32 0, i32 0
store ptr %158, ptr %159, align 8
%160 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%161 = getelementptr inbounds %"struct.std::_List_iterator", ptr %36, i32 0, i32 0
store ptr %160, ptr %161, align 8
%162 = getelementptr inbounds %"struct.std::_List_iterator", ptr %35, i32 0, i32 0
%163 = load ptr, ptr %162, align 8
%164 = getelementptr inbounds %"struct.std::_List_iterator", ptr %36, i32 0, i32 0
%165 = load ptr, ptr %164, align 8
%166 = invoke ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %163, ptr %165, ptr noundef nonnull align 4 dereferenceable(4) %31)
to label %B77 unwind label %B81
B77:
%167 = getelementptr inbounds %"struct.std::_List_iterator", ptr %34, i32 0, i32 0
store ptr %166, ptr %167, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #4
%168 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %33, i32 0, i32 0
%169 = load ptr, ptr %168, align 8
%170 = call ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %169) #4
%171 = getelementptr inbounds %"struct.std::_List_iterator", ptr %37, i32 0, i32 0
store ptr %170, ptr %171, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
%172 = load ptr, ptr %6, align 8, !tbaa !5
%173 = load ptr, ptr %7, align 8, !tbaa !5
%174 = load i32, ptr %8, align 4, !tbaa !9
%175 = load ptr, ptr %9, align 8, !tbaa !5
%176 = load i32, ptr %31, align 4, !tbaa !9
invoke void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136) %172, ptr noundef nonnull align 8 dereferenceable(8) %173, i32 noundef %174, ptr noundef nonnull align 8 dereferenceable(24) %175, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %176)
to label %B78 unwind label %B64
B78:
call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
%177 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
%178 = getelementptr inbounds %"struct.std::_List_iterator", ptr %40, i32 0, i32 0
store ptr %177, ptr %178, align 8
%179 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
%180 = getelementptr inbounds %"struct.std::_List_iterator", ptr %41, i32 0, i32 0
store ptr %179, ptr %180, align 8
%181 = getelementptr inbounds %"struct.std::_List_iterator", ptr %40, i32 0, i32 0
%182 = load ptr, ptr %181, align 8
%183 = getelementptr inbounds %"struct.std::_List_iterator", ptr %41, i32 0, i32 0
%184 = load ptr, ptr %183, align 8
%185 = invoke ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %182, ptr %184, ptr noundef nonnull align 4 dereferenceable(4) %31)
to label %B79 unwind label %B82
B79:
%186 = getelementptr inbounds %"struct.std::_List_iterator", ptr %39, i32 0, i32 0
store ptr %185, ptr %186, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #4
%187 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %38, i32 0, i32 0
%188 = load ptr, ptr %187, align 8
%189 = invoke ptr @_ZNSt7__cxx114listIiSaIiEE6insertESt20_List_const_iteratorIiERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %188, ptr noundef nonnull align 4 dereferenceable(4) %31)
to label %B80 unwind label %B82
B80:
%190 = getelementptr inbounds %"struct.std::_List_iterator", ptr %42, i32 0, i32 0
store ptr %189, ptr %190, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
%191 = load i32, ptr %12, align 4, !tbaa !9
%192 = add nsw i32 %191, -1
store i32 %192, ptr %12, align 4, !tbaa !9
br label %B83
B81:
%193 = landingpad { ptr, i32 }
cleanup
%194 = extractvalue { ptr, i32 } %193, 0
store ptr %194, ptr %28, align 8
%195 = extractvalue { ptr, i32 } %193, 1
store i32 %195, ptr %29, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
br label %B86
B82:
%196 = landingpad { ptr, i32 }
cleanup
%197 = extractvalue { ptr, i32 } %196, 0
store ptr %197, ptr %28, align 8
%198 = extractvalue { ptr, i32 } %196, 1
store i32 %198, ptr %29, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
br label %B86
B83:
br label %B84
B84:
store i8 0, ptr %30, align 1, !tbaa !13
br label %B62, !llvm.loop !22
B85:
call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
%199 = load i32, ptr %19, align 4
switch i32 %199, label %B93 [
i32 17, label %B87
]
B86:
call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
br label %B94
B87:
br label %B88
B88:
br label %B89
B89:
%200 = load i8, ptr %30, align 1, !tbaa !13, !range !15, !noundef !16
%201 = trunc i8 %200 to i1
br i1 %201, label %B92, label %B90
B90:
invoke void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
to label %B91 unwind label %B58
B91:
br label %B92
B92:
br label %B52, !llvm.loop !23
B93:
call void @llvm.lifetime.end.p0(i64 1, ptr %30) #4
%202 = load i32, ptr %19, align 4
switch i32 %202, label %B96 [
i32 14, label %B95
]
B94:
call void @llvm.lifetime.end.p0(i64 1, ptr %30) #4
br label %B100
B95:
store i32 0, ptr %19, align 4
br label %B96
B96:
call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
call void @llvm.lifetime.end.p0(i64 24, ptr %26) #4
%203 = load i32, ptr %19, align 4
switch i32 %203, label %B103 [
i32 0, label %B97
]
B97:
%204 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
%205 = trunc i8 %204 to i1
br i1 %205, label %B98, label %B102
B98:
%206 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%207 = load ptr, ptr %9, align 8, !tbaa !5
%208 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #4
%209 = add i64 %206, %208
%210 = load i32, ptr %8, align 4, !tbaa !9
%211 = zext i32 %210 to i64
%212 = icmp uge i64 %209, %211
br i1 %212, label %B101, label %B99
B99:
store i32 1, ptr %19, align 4
br label %B103
B100:
call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
call void @llvm.lifetime.end.p0(i64 24, ptr %26) #4
call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
br label %B105
B101:
call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
%213 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%214 = getelementptr inbounds %"struct.std::_List_iterator", ptr %45, i32 0, i32 0
store ptr %213, ptr %214, align 8
%215 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%216 = getelementptr inbounds %"struct.std::_List_iterator", ptr %46, i32 0, i32 0
store ptr %215, ptr %216, align 8
%217 = getelementptr inbounds %"struct.std::_List_iterator", ptr %45, i32 0, i32 0
%218 = load ptr, ptr %217, align 8
%219 = getelementptr inbounds %"struct.std::_List_iterator", ptr %46, i32 0, i32 0
%220 = load ptr, ptr %219, align 8
%221 = call ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %218, ptr %220, ptr noundef nonnull align 4 dereferenceable(4) %13)
%222 = getelementptr inbounds %"struct.std::_List_iterator", ptr %44, i32 0, i32 0
store ptr %221, ptr %222, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #4
%223 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %43, i32 0, i32 0
%224 = load ptr, ptr %223, align 8
%225 = call ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %224) #4
%226 = getelementptr inbounds %"struct.std::_List_iterator", ptr %47, i32 0, i32 0
store ptr %225, ptr %226, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
%227 = load ptr, ptr %6, align 8, !tbaa !5
%228 = load ptr, ptr %7, align 8, !tbaa !5
%229 = load i32, ptr %8, align 4, !tbaa !9
%230 = load ptr, ptr %9, align 8, !tbaa !5
%231 = load i32, ptr %13, align 4, !tbaa !9
call void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136) %227, ptr noundef nonnull align 8 dereferenceable(8) %228, i32 noundef %229, ptr noundef nonnull align 8 dereferenceable(24) %230, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %231)
br label %B102
B102:
store i32 0, ptr %19, align 4
br label %B103
B103:
call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
%232 = load i32, ptr %19, align 4
switch i32 %232, label %B106 [
i32 0, label %B104
i32 1, label %B104
]
B104:
ret void
B105:
%233 = load ptr, ptr %28, align 8
%234 = load i32, ptr %29, align 4
%235 = insertvalue { ptr, i32 } poison, ptr %233, 0
%236 = insertvalue { ptr, i32 } %235, i32 %234, 1
resume { ptr, i32 } %236
B106:
unreachable
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt7__cxx114listIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEEC2ERKS5_S8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE10firstEmptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24), ptr) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE6insertESt20_List_const_iteratorIiERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18} | 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"
%class.ContainerRange = type { %class.IteratorRange }
%class.IteratorRange = type { %"struct.std::_List_iterator", %"struct.std::_List_iterator" }
%"struct.std::_List_iterator" = type { ptr }
%class.ChainedRange = type { %class.ContainerRange, %class.ContainerRange }
%"struct.std::pair.11" = type { i32, i32 }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.std::_List_const_iterator" = type { ptr }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4, ptr noundef nonnull %5) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
%7 = alloca i32, align 4
%8 = alloca %class.ContainerRange, align 8
%9 = alloca %class.ContainerRange, align 8
%10 = alloca %class.ChainedRange, align 8
%11 = alloca i32, align 4
%12 = alloca %class.ContainerRange, align 8
%13 = alloca i32, align 4
%14 = alloca %"struct.std::pair.11", align 8
%15 = alloca %"class.std::__cxx11::list", align 8
%16 = alloca %class.ContainerRange, align 8
%17 = alloca i32, align 4
%18 = alloca %"struct.std::pair.11", align 8
%19 = alloca %"struct.std::_List_const_iterator", align 8
%20 = alloca %"struct.std::_List_iterator", align 8
%21 = alloca %"struct.std::_List_const_iterator", align 8
%22 = alloca %"struct.std::_List_iterator", align 8
%23 = alloca %"struct.std::_List_const_iterator", align 8
%24 = alloca %"struct.std::_List_iterator", align 8
%25 = tail call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%26 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
%27 = add i64 %26, %25
%28 = zext i32 %2 to i64
%.not92 = icmp ult i64 %27, %28
br i1 %.not92, label %119, label %29
29: ; preds = %6
%30 = tail call noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
br i1 %30, label %31, label %.split159
31: ; preds = %29
%32 = tail call noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
br i1 %32, label %33, label %119
33: ; preds = %31
%34 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
%.not99 = icmp ult i64 %34, %28
br i1 %.not99, label %119, label %35
35: ; preds = %33
%36 = load ptr, ptr %1, align 8, !tbaa !5
%37 = load ptr, ptr %36, align 8
tail call void %37(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %3)
br label %119
.split159: ; preds = %29
%38 = tail call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%39 = trunc i64 %38 to i32
%40 = add i32 %39, 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
%41 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt7__cxx114listIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%42 = load i32, ptr %41, align 4, !tbaa !8
store i32 %42, ptr %7, align 4, !tbaa !8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(24) %4)
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(24) %5)
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
call void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEEC2ERKS5_S8_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
%43 = call noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
br i1 %43, label %split, label %.split158
.split158: ; preds = %.split159, %56
%.067160181 = phi i1 [ %.168.ph171, %56 ], [ false, %.split159 ]
%.0161180 = phi i32 [ %.1.ph168, %56 ], [ %40, %.split159 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
%44 = call noundef i32 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
store i32 %44, ptr %11, align 4, !tbaa !8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
call void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(24) %5)
%45 = call noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
br i1 %45, label %.critedge7, label %.split
.critedge7: ; preds = %.split, %.split158
%.080.lcssa = phi i32 [ 0, %.split158 ], [ %spec.select, %.split ]
%46 = icmp slt i32 %.080.lcssa, %.0161180
br i1 %46, label %.split149, label %..thread_crit_edge
.split: ; preds = %.split158, %.split
%.080137 = phi i32 [ %spec.select, %.split ], [ 0, %.split158 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
%47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
%48 = load i32, ptr %47, align 4, !tbaa !8
store i32 %48, ptr %13, align 4, !tbaa !8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
%49 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
store i64 %49, ptr %14, align 8
%50 = call noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 4 dereferenceable(8) %14)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
%not. = xor i1 %50, true
%51 = zext i1 %not. to i32
%spec.select = add nuw nsw i32 %.080137, %51
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
call void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
%52 = call noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
br i1 %52, label %.critedge7, label %.split, !llvm.loop !11
.split149: ; preds = %.critedge7
%53 = load i32, ptr %11, align 4, !tbaa !8
store i32 %53, ptr %7, align 4, !tbaa !8
%54 = call noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE10firstEmptyEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
%55 = icmp ne i32 %.080.lcssa, 0
%or.cond.not = or i1 %54, %55
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
br i1 %or.cond.not, label %56, label %.critedge.loopexit, !llvm.loop !13
..thread_crit_edge: ; preds = %.critedge7
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
br label %56
56: ; preds = %..thread_crit_edge, %.split149
%.168.ph171 = phi i1 [ %.067160181, %..thread_crit_edge ], [ %54, %.split149 ]
%.1.ph168 = phi i32 [ %.0161180, %..thread_crit_edge ], [ %.080.lcssa, %.split149 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
call void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
%57 = call noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
br i1 %57, label %split, label %.split158
split: ; preds = %56, %.split159
%.0161.lcssa = phi i32 [ %40, %.split159 ], [ %.1.ph168, %56 ]
%.067160.lcssa = phi i1 [ false, %.split159 ], [ %.168.ph171, %56 ]
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
call void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %5)
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
invoke void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(24) %15)
to label %.preheader unwind label %59
.preheader: ; preds = %split
%58 = call noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
br i1 %58, label %.critedge10, label %.lr.ph
59: ; preds = %split
%60 = landingpad { ptr, i32 }
cleanup
br label %111
.lr.ph: ; preds = %.preheader, %.critedge103
%.6163 = phi i32 [ %.7.lcssa, %.critedge103 ], [ %.0161.lcssa, %.preheader ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
%61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
%62 = load i32, ptr %61, align 4, !tbaa !8
store i32 %62, ptr %17, align 4, !tbaa !8
%63 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%64 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
%65 = add i64 %64, %63
%.not = icmp ult i64 %65, %28
br i1 %.not, label %.critedge104, label %68
66: ; preds = %88
%67 = landingpad { ptr, i32 }
cleanup
br label %105
68: ; preds = %.lr.ph
%69 = icmp sgt i32 %.6163, 0
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
br i1 %69, label %70, label %.critedge12
70: ; preds = %68
%71 = load i32, ptr %17, align 4, !tbaa !8
%72 = load i32, ptr %7, align 4, !tbaa !8
%.not94 = icmp eq i32 %71, %72
br i1 %.not94, label %.critedge12, label %73
73: ; preds = %70
%74 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %75 unwind label %82
75: ; preds = %73
store i64 %74, ptr %18, align 8
%76 = invoke noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 4 dereferenceable(8) %18)
to label %77 unwind label %82
77: ; preds = %75
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
br i1 %76, label %.critedge103, label %78
78: ; preds = %77
%79 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%80 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
%81 = add i64 %80, %79
%.not95 = icmp ult i64 %81, %28
br i1 %.not95, label %.critedge104, label %84
82: ; preds = %75, %73
%83 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
br label %105
84: ; preds = %78
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #4
%85 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%86 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%87 = invoke ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %85, ptr %86, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %88 unwind label %101
88: ; preds = %84
store ptr %87, ptr %20, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #4
%89 = load ptr, ptr %19, align 8
%90 = call ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %89) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
%91 = load i32, ptr %17, align 4, !tbaa !8
invoke void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %91)
to label %92 unwind label %66
92: ; preds = %88
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #4
%93 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
%94 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
%95 = invoke ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %93, ptr %94, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %96 unwind label %103
96: ; preds = %92
store ptr %95, ptr %22, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #4
%97 = load ptr, ptr %21, align 8
%98 = invoke ptr @_ZNSt7__cxx114listIiSaIiEE6insertESt20_List_const_iteratorIiERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %97, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %99 unwind label %103
99: ; preds = %96
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #4
%100 = add nsw i32 %.6163, -1
br label %.critedge103
101: ; preds = %84
%102 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
br label %105
103: ; preds = %96, %92
%104 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #4
br label %105
.critedge12: ; preds = %68, %70
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
br label %.critedge103
105: ; preds = %103, %101, %82, %66
%.pn = phi { ptr, i32 } [ %104, %103 ], [ %67, %66 ], [ %102, %101 ], [ %83, %82 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
br label %111
.critedge103: ; preds = %.critedge12, %99, %77
%.7.lcssa = phi i32 [ %100, %99 ], [ %.6163, %77 ], [ %.6163, %.critedge12 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
call void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
%106 = call noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
br i1 %106, label %.critedge10, label %.lr.ph, !llvm.loop !14
.critedge10: ; preds = %.critedge103, %.preheader
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
br i1 %.067160.lcssa, label %107, label %.critedge
107: ; preds = %.critedge10
%108 = call noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%109 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
%110 = add i64 %109, %108
%.not98 = icmp ult i64 %110, %28
br i1 %.not98, label %.critedge, label %112
111: ; preds = %105, %59
%.pn.pn = phi { ptr, i32 } [ %.pn, %105 ], [ %60, %59 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
resume { ptr, i32 } %.pn.pn
112: ; preds = %107
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #4
%113 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%114 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
%115 = call ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr %113, ptr %114, ptr noundef nonnull align 4 dereferenceable(4) %7)
store ptr %115, ptr %24, align 8
call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #4
%116 = load ptr, ptr %23, align 8
%117 = call ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %116) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #4
%118 = load i32, ptr %7, align 4, !tbaa !8
call void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %118)
br label %.critedge
.critedge104: ; preds = %.lr.ph, %78
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
br label %.critedge
.critedge.loopexit: ; preds = %.split149
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
br label %.critedge
.critedge: ; preds = %.critedge.loopexit, %.critedge10, %112, %107, %.critedge104
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
br label %119
119: ; preds = %31, %33, %35, %6, %.critedge
ret void
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt7__cxx114listIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt7__cxx114listIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt7__cxx114listIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14ContainerRangeINSt7__cxx114listIiSaIiEEEEC2ERS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEEC2ERKS5_S8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK13IteratorRangeISt14_List_iteratorIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK13IteratorRangeISt14_List_iteratorIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10bloomGraphIiE13are_connectedERKSt4pairIiiE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13IteratorRangeISt14_List_iteratorIiEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE10firstEmptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ChainedRangeI14ContainerRangeINSt7__cxx114listIiSaIiEEEEE8popFrontEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(24), ptr) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundISt14_List_iteratorIiEiET_S2_S2_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN7cliquesL12tryCandidateERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEERKNSt7__cxx114listIiS7_EESE_i(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE6insertESt20_List_const_iteratorIiERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
| AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass | bc8c76c79af11126 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | cliques | BSD-2-Clause |
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.std::pair" = type { ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::back_insert_iterator" = type { ptr }
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cliques17cliquesForOneNodeERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEji(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, i32 noundef %3) #0 personality ptr @__gxx_personality_v0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %"struct.std::pair", align 8
%10 = alloca ptr, align 8
%11 = alloca %"class.std::__cxx11::basic_string", align 8
%12 = alloca i32, align 4
%13 = alloca %"class.std::vector", align 8
%14 = alloca %"class.std::__cxx11::list", align 8
%15 = alloca %"class.std::__cxx11::list", align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca %"class.std::back_insert_iterator", align 8
%19 = alloca %"class.std::back_insert_iterator", align 8
%20 = alloca %"class.std::back_insert_iterator", align 8
%21 = alloca %"class.std::back_insert_iterator", align 8
%22 = alloca %"class.std::__cxx11::list", align 8
%23 = alloca %"class.std::__cxx11::list", align 8
store ptr %0, ptr %5, align 8, !tbaa !5
store ptr %1, ptr %6, align 8, !tbaa !5
store i32 %2, ptr %7, align 4, !tbaa !9
store i32 %3, ptr %8, align 4, !tbaa !9
%24 = load ptr, ptr %5, align 8, !tbaa !5
%25 = load i32, ptr %8, align 4, !tbaa !9
%26 = sext i32 %25 to i64
%27 = call noundef i64 @_ZNK10bloomGraphIiE6degreeEl(ptr noundef nonnull align 8 dereferenceable(136) %24, i64 noundef %26)
%28 = add i64 %27, 1
%29 = load i32, ptr %7, align 4, !tbaa !9
%30 = zext i32 %29 to i64
%31 = icmp ult i64 %28, %30
br i1 %31, label %32, label %33
32: ; preds = %4
br label %97
33: ; preds = %4
call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
%34 = load ptr, ptr %5, align 8, !tbaa !5
%35 = load i32, ptr %8, align 4, !tbaa !9
%36 = call { ptr, ptr } @_ZNK10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) %34, i32 noundef %35)
%37 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
%38 = extractvalue { ptr, ptr } %36, 0
store ptr %38, ptr %37, align 8
%39 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
%40 = extractvalue { ptr, ptr } %36, 1
store ptr %40, ptr %39, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
%41 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 0
%42 = load ptr, ptr %41, align 8, !tbaa !11
%43 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 1
%44 = load ptr, ptr %43, align 8, !tbaa !13
%45 = call noundef ptr @_ZSt11lower_boundIPKiiET_S2_S2_RKT0_(ptr noundef %42, ptr noundef %44, ptr noundef nonnull align 4 dereferenceable(4) %8)
store ptr %45, ptr %10, align 8, !tbaa !5
%46 = load ptr, ptr %10, align 8, !tbaa !5
%47 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 1
%48 = load ptr, ptr %47, align 8, !tbaa !13
%49 = icmp ne ptr %46, %48
br i1 %49, label %50, label %67
50: ; preds = %33
%51 = load ptr, ptr %10, align 8, !tbaa !5
%52 = load i32, ptr %51, align 4, !tbaa !9
%53 = load i32, ptr %8, align 4, !tbaa !9
%54 = icmp eq i32 %52, %53
br i1 %54, label %55, label %67
55: ; preds = %50
br label %56
56: ; preds = %55
%57 = load ptr, ptr @stderr, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
%58 = load ptr, ptr %5, align 8, !tbaa !5
%59 = load i32, ptr %8, align 4, !tbaa !9
%60 = sext i32 %59 to i64
call void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(136) %58, i64 noundef %60)
%61 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
%62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str, ptr noundef %61) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
%63 = load ptr, ptr @stderr, align 8, !tbaa !5
%64 = call i32 @fputc(i32 noundef 10, ptr noundef %63)
br label %65
65: ; preds = %56
br label %66
66: ; preds = %65
call void @exit(i32 noundef 1) #8
unreachable
67: ; preds = %50, %33
call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
call void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
call void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %8)
to label %68 unwind label %98
68: ; preds = %67
%69 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 0
%70 = load ptr, ptr %69, align 8, !tbaa !11
%71 = load ptr, ptr %10, align 8, !tbaa !5
%72 = invoke ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %14)
to label %73 unwind label %98
73: ; preds = %68
%74 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %18, i32 0, i32 0
store ptr %72, ptr %74, align 8
%75 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %18, i32 0, i32 0
%76 = load ptr, ptr %75, align 8
%77 = invoke ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef %70, ptr noundef %71, ptr %76)
to label %78 unwind label %98
78: ; preds = %73
%79 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %19, i32 0, i32 0
store ptr %77, ptr %79, align 8
%80 = load ptr, ptr %10, align 8, !tbaa !5
%81 = getelementptr inbounds %"struct.std::pair", ptr %9, i32 0, i32 1
%82 = load ptr, ptr %81, align 8, !tbaa !13
%83 = invoke ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %15)
to label %84 unwind label %98
84: ; preds = %78
%85 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %20, i32 0, i32 0
store ptr %83, ptr %85, align 8
%86 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %20, i32 0, i32 0
%87 = load ptr, ptr %86, align 8
%88 = invoke ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef %80, ptr noundef %82, ptr %87)
to label %89 unwind label %98
89: ; preds = %84
%90 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %21, i32 0, i32 0
store ptr %88, ptr %90, align 8
%91 = load ptr, ptr %5, align 8, !tbaa !5
%92 = load ptr, ptr %6, align 8, !tbaa !5
%93 = load i32, ptr %7, align 4, !tbaa !9
invoke void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %14)
to label %94 unwind label %98
94: ; preds = %89
invoke void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %15)
to label %95 unwind label %102
95: ; preds = %94
invoke void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136) %91, ptr noundef nonnull align 8 dereferenceable(8) %92, i32 noundef %93, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %22, ptr noundef %23)
to label %96 unwind label %106
96: ; preds = %95
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
br label %97
97: ; preds = %96, %32
ret void
98: ; preds = %89, %84, %78, %73, %68, %67
%99 = landingpad { ptr, i32 }
cleanup
%100 = extractvalue { ptr, i32 } %99, 0
store ptr %100, ptr %16, align 8
%101 = extractvalue { ptr, i32 } %99, 1
store i32 %101, ptr %17, align 4
br label %111
102: ; preds = %94
%103 = landingpad { ptr, i32 }
cleanup
%104 = extractvalue { ptr, i32 } %103, 0
store ptr %104, ptr %16, align 8
%105 = extractvalue { ptr, i32 } %103, 1
store i32 %105, ptr %17, align 4
br label %110
106: ; preds = %95
%107 = landingpad { ptr, i32 }
cleanup
%108 = extractvalue { ptr, i32 } %107, 0
store ptr %108, ptr %16, align 8
%109 = extractvalue { ptr, i32 } %107, 1
store i32 %109, ptr %17, align 4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
br label %110
110: ; preds = %106, %102
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
br label %111
111: ; preds = %110, %98
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
br label %112
112: ; preds = %111
%113 = load ptr, ptr %16, align 8
%114 = load i32, ptr %17, align 4
%115 = insertvalue { ptr, i32 } poison, ptr %113, 0
%116 = insertvalue { ptr, i32 } %115, i32 %114, 1
resume { ptr, i32 } %116
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6degreeEl(ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIPKiiET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #1
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
declare i32 @fputc(i32 noundef, ptr noundef) #5
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef, ptr noundef, ptr) #1
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24)) #1
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPKiS1_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
| 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.std::pair" = type { ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %STRUCT0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%STRUCT0 = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::back_insert_iterator" = type { ptr }
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cliques17cliquesForOneNodeERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEji(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, i32 noundef %3) #0 personality ptr @__gxx_personality_v0 {
B0:
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %"struct.std::pair", align 8
%9 = alloca ptr, align 8
%10 = alloca %"class.std::__cxx11::basic_string", align 8
%11 = alloca i32, align 4
%12 = alloca %"class.std::vector", align 8
%13 = alloca %"class.std::__cxx11::list", align 8
%14 = alloca %"class.std::__cxx11::list", align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca %"class.std::back_insert_iterator", align 8
%18 = alloca %"class.std::back_insert_iterator", align 8
%19 = alloca %"class.std::back_insert_iterator", align 8
%20 = alloca %"class.std::back_insert_iterator", align 8
%21 = alloca %"class.std::__cxx11::list", align 8
%22 = alloca %"class.std::__cxx11::list", align 8
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i32 %2, ptr %6, align 4, !tbaa !9
store i32 %3, ptr %7, align 4, !tbaa !9
%23 = load ptr, ptr %4, align 8, !tbaa !5
%24 = load i32, ptr %7, align 4, !tbaa !9
%25 = sext i32 %24 to i64
%26 = call noundef i64 @_ZNK10bloomGraphIiE6degreeEl(ptr noundef nonnull align 8 dereferenceable(136) %23, i64 noundef %25)
%27 = add i64 %26, 1
%28 = load i32, ptr %6, align 4, !tbaa !9
%29 = zext i32 %28 to i64
%30 = icmp ult i64 %27, %29
br i1 %30, label %B1, label %B2
B1:
br label %B17
B2:
call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
%31 = load ptr, ptr %4, align 8, !tbaa !5
%32 = load i32, ptr %7, align 4, !tbaa !9
%33 = call { ptr, ptr } @_ZNK10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) %31, i32 noundef %32)
%34 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 0
%35 = extractvalue { ptr, ptr } %33, 0
store ptr %35, ptr %34, align 8
%36 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 1
%37 = extractvalue { ptr, ptr } %33, 1
store ptr %37, ptr %36, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
%38 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 0
%39 = load ptr, ptr %38, align 8, !tbaa !11
%40 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 1
%41 = load ptr, ptr %40, align 8, !tbaa !13
%42 = call noundef ptr @_ZSt11lower_boundIPKiiET_S2_S2_RKT0_(ptr noundef %39, ptr noundef %41, ptr noundef nonnull align 4 dereferenceable(4) %7)
store ptr %42, ptr %9, align 8, !tbaa !5
%43 = load ptr, ptr %9, align 8, !tbaa !5
%44 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 1
%45 = load ptr, ptr %44, align 8, !tbaa !13
%46 = icmp ne ptr %43, %45
br i1 %46, label %B3, label %B8
B3:
%47 = load ptr, ptr %9, align 8, !tbaa !5
%48 = load i32, ptr %47, align 4, !tbaa !9
%49 = load i32, ptr %7, align 4, !tbaa !9
%50 = icmp eq i32 %48, %49
br i1 %50, label %B4, label %B8
B4:
br label %B5
B5:
%51 = load ptr, ptr @stderr, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
%52 = load ptr, ptr %4, align 8, !tbaa !5
%53 = load i32, ptr %7, align 4, !tbaa !9
%54 = sext i32 %53 to i64
call void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(136) %52, i64 noundef %54)
%55 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
%56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str, ptr noundef %55) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
%57 = load ptr, ptr @stderr, align 8, !tbaa !5
%58 = call i32 @fputc(i32 noundef 10, ptr noundef %57)
br label %B6
B6:
br label %B7
B7:
call void @exit(i32 noundef 1) #8
unreachable
B8:
call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
call void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
call void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %B9 unwind label %B18
B9:
%59 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 0
%60 = load ptr, ptr %59, align 8, !tbaa !11
%61 = load ptr, ptr %9, align 8, !tbaa !5
%62 = invoke ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %13)
to label %B10 unwind label %B18
B10:
%63 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %17, i32 0, i32 0
store ptr %62, ptr %63, align 8
%64 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %17, i32 0, i32 0
%65 = load ptr, ptr %64, align 8
%66 = invoke ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef %60, ptr noundef %61, ptr %65)
to label %B11 unwind label %B18
B11:
%67 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %18, i32 0, i32 0
store ptr %66, ptr %67, align 8
%68 = load ptr, ptr %9, align 8, !tbaa !5
%69 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 1
%70 = load ptr, ptr %69, align 8, !tbaa !13
%71 = invoke ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %14)
to label %B12 unwind label %B18
B12:
%72 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %19, i32 0, i32 0
store ptr %71, ptr %72, align 8
%73 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %19, i32 0, i32 0
%74 = load ptr, ptr %73, align 8
%75 = invoke ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef %68, ptr noundef %70, ptr %74)
to label %B13 unwind label %B18
B13:
%76 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %20, i32 0, i32 0
store ptr %75, ptr %76, align 8
%77 = load ptr, ptr %4, align 8, !tbaa !5
%78 = load ptr, ptr %5, align 8, !tbaa !5
%79 = load i32, ptr %6, align 4, !tbaa !9
invoke void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %13)
to label %B14 unwind label %B18
B14:
invoke void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %14)
to label %B15 unwind label %B19
B15:
invoke void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136) %77, ptr noundef nonnull align 8 dereferenceable(8) %78, i32 noundef %79, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef %21, ptr noundef %22)
to label %B16 unwind label %B20
B16:
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
br label %B17
B17:
ret void
B18:
%80 = landingpad { ptr, i32 }
cleanup
%81 = extractvalue { ptr, i32 } %80, 0
store ptr %81, ptr %15, align 8
%82 = extractvalue { ptr, i32 } %80, 1
store i32 %82, ptr %16, align 4
br label %B22
B19:
%83 = landingpad { ptr, i32 }
cleanup
%84 = extractvalue { ptr, i32 } %83, 0
store ptr %84, ptr %15, align 8
%85 = extractvalue { ptr, i32 } %83, 1
store i32 %85, ptr %16, align 4
br label %B21
B20:
%86 = landingpad { ptr, i32 }
cleanup
%87 = extractvalue { ptr, i32 } %86, 0
store ptr %87, ptr %15, align 8
%88 = extractvalue { ptr, i32 } %86, 1
store i32 %88, ptr %16, align 4
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
br label %B21
B21:
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
br label %B22
B22:
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
br label %B23
B23:
%89 = load ptr, ptr %15, align 8
%90 = load i32, ptr %16, align 4
%91 = insertvalue { ptr, i32 } poison, ptr %89, 0
%92 = insertvalue { ptr, i32 } %91, i32 %90, 1
resume { ptr, i32 } %92
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6degreeEl(ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIPKiiET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #1
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
declare i32 @fputc(i32 noundef, ptr noundef) #5
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef, ptr noundef, ptr) #1
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24)) #1
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPKiS1_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8} | 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"
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cliques17cliquesForOneNodeERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEji(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%5 = alloca i32, align 4
%6 = alloca %"class.std::__cxx11::basic_string", align 8
%7 = alloca %"class.std::vector", align 8
%8 = alloca %"class.std::__cxx11::list", align 8
%9 = alloca %"class.std::__cxx11::list", align 8
%10 = alloca %"class.std::__cxx11::list", align 8
%11 = alloca %"class.std::__cxx11::list", align 8
store i32 %3, ptr %5, align 4, !tbaa !5
%12 = sext i32 %3 to i64
%13 = tail call noundef i64 @_ZNK10bloomGraphIiE6degreeEl(ptr noundef nonnull align 8 dereferenceable(136) %0, i64 noundef %12)
%14 = add i64 %13, 1
%15 = zext i32 %2 to i64
%16 = icmp ult i64 %14, %15
br i1 %16, label %46, label %17
17: ; preds = %4
%18 = tail call { ptr, ptr } @_ZNK10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136) %0, i32 noundef %3)
%19 = extractvalue { ptr, ptr } %18, 0
%20 = extractvalue { ptr, ptr } %18, 1
%21 = call noundef ptr @_ZSt11lower_boundIPKiiET_S2_S2_RKT0_(ptr noundef %19, ptr noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %5)
%.not = icmp eq ptr %21, %20
br i1 %.not, label %33, label %22
22: ; preds = %17
%23 = load i32, ptr %21, align 4, !tbaa !5
%24 = load i32, ptr %5, align 4, !tbaa !5
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %33
26: ; preds = %22
%27 = load ptr, ptr @stderr, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
%28 = sext i32 %23 to i64
call void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(136) %0, i64 noundef %28)
%29 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
%30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str, ptr noundef %29) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
%31 = load ptr, ptr @stderr, align 8, !tbaa !9
%32 = call i32 @fputc(i32 noundef 10, ptr noundef %31)
call void @exit(i32 noundef 1) #8
unreachable
33: ; preds = %22, %17
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
call void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
call void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %34 unwind label %47
34: ; preds = %33
%35 = invoke ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %8)
to label %36 unwind label %47
36: ; preds = %34
%37 = invoke ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef %19, ptr noundef %21, ptr %35)
to label %38 unwind label %47
38: ; preds = %36
%39 = invoke ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %9)
to label %40 unwind label %47
40: ; preds = %38
%41 = invoke ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef %21, ptr noundef %20, ptr %39)
to label %42 unwind label %47
42: ; preds = %40
invoke void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %8)
to label %43 unwind label %47
43: ; preds = %42
invoke void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %9)
to label %44 unwind label %49
44: ; preds = %43
invoke void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull %10, ptr noundef nonnull %11)
to label %45 unwind label %51
45: ; preds = %44
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
br label %46
46: ; preds = %4, %45
ret void
47: ; preds = %42, %40, %38, %36, %34, %33
%48 = landingpad { ptr, i32 }
cleanup
br label %54
49: ; preds = %43
%50 = landingpad { ptr, i32 }
cleanup
br label %53
51: ; preds = %44
%52 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
br label %53
53: ; preds = %51, %49
%.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
br label %54
54: ; preds = %53, %47
%.pn.pn = phi { ptr, i32 } [ %.pn, %53 ], [ %48, %47 ]
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
call void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
resume { ptr, i32 } %.pn.pn
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6degreeEl(ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK10bloomGraphIiE10neighboursEi(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIPKiiET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10bloomGraphIiE25name_of_one_node_asStringB5cxx11El(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(136), i64 noundef) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nofree nounwind
declare noundef i32 @fputc(i32 noundef, ptr nocapture noundef) local_unnamed_addr #3
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIPKiSt20back_insert_iteratorINSt7__cxx114listIiSaIiEEEEET0_T_S9_S8_(ptr noundef, ptr noundef, ptr) local_unnamed_addr #1
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterINSt7__cxx114listIiSaIiEEEESt20back_insert_iteratorIT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cliques13cliquesWorkerERK10bloomGraphIiERNS_21CliqueFunctionAdaptorEjRSt6vectorIiSaIiEENSt7__cxx114listIiS7_EESC_(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) local_unnamed_addr #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIiSaIiEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass | 83d0cc1e968ad1ec | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | cliques | BSD-2-Clause |
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.bloomGraph = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector", i64, i64, %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.10", %"class.std::vector.15" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@theGlobalGraph = external dso_local global %struct.bloomGraph, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [159 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [255 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [367 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [181 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [135 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [10 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca %class.Community_Finder, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !9
%15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%17 = load i32, ptr %4, align 4, !tbaa !5
%18 = icmp ne i32 %17, 6
br i1 %18, label %19, label %78
19: ; preds = %2
%20 = load i32, ptr %4, align 4, !tbaa !5
%21 = icmp ne i32 %20, 2
br i1 %21, label %40, label %22
22: ; preds = %19
%23 = load ptr, ptr %5, align 8, !tbaa !9
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8, !tbaa !9
%26 = call i32 @strcmp(ptr noundef %25, ptr noundef @.str.3) #10
%27 = icmp eq i32 %26, 0
br i1 %27, label %40, label %28
28: ; preds = %22
%29 = load ptr, ptr %5, align 8, !tbaa !9
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8, !tbaa !9
%32 = call i32 @strcmp(ptr noundef %31, ptr noundef @.str.4) #10
%33 = icmp eq i32 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %28
%35 = load ptr, ptr %5, align 8, !tbaa !9
%36 = getelementptr inbounds ptr, ptr %35, i64 1
%37 = load ptr, ptr %36, align 8, !tbaa !9
%38 = call i32 @strcmp(ptr noundef %37, ptr noundef @.str.5) #10
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %78
40: ; preds = %34, %28, %22, %19
%41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
%42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
%45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
%47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
%49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
%51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
%53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
%55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
%57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef @.str.14)
%60 = load ptr, ptr %5, align 8, !tbaa !9
%61 = getelementptr inbounds ptr, ptr %60, i64 0
%62 = load ptr, ptr %61, align 8, !tbaa !9
%63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef %62)
%64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef @.str.15)
%65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef @.str.16)
%68 = load ptr, ptr %5, align 8, !tbaa !9
%69 = getelementptr inbounds ptr, ptr %68, i64 0
%70 = load ptr, ptr %69, align 8, !tbaa !9
%71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef %70)
%72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @.str.17)
%73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.18)
%75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.19)
%77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @exit(i32 noundef 1) #11
unreachable
78: ; preds = %34, %2
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #12
%79 = load ptr, ptr %5, align 8, !tbaa !9
%80 = getelementptr inbounds ptr, ptr %79, i64 1
%81 = load ptr, ptr %80, align 8, !tbaa !9
store ptr %81, ptr %6, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #12
store i32 4, ptr %7, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #12
store float 0x3FE3333340000000, ptr %8, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #12
store float 1.000000e+00, ptr %9, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #12
store float 1.000000e+00, ptr %10, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #12
store float 7.500000e-01, ptr %11, align 4, !tbaa !11
%82 = load i32, ptr %4, align 4, !tbaa !5
%83 = icmp eq i32 %82, 6
br i1 %83, label %84, label %104
84: ; preds = %78
%85 = load ptr, ptr %5, align 8, !tbaa !9
%86 = getelementptr inbounds ptr, ptr %85, i64 2
%87 = load ptr, ptr %86, align 8, !tbaa !9
%88 = call i32 @atoi(ptr noundef %87) #10
store i32 %88, ptr %7, align 4, !tbaa !5
%89 = load ptr, ptr %5, align 8, !tbaa !9
%90 = getelementptr inbounds ptr, ptr %89, i64 3
%91 = load ptr, ptr %90, align 8, !tbaa !9
%92 = call double @atof(ptr noundef %91) #10
%93 = fptrunc double %92 to float
store float %93, ptr %8, align 4, !tbaa !11
%94 = load ptr, ptr %5, align 8, !tbaa !9
%95 = getelementptr inbounds ptr, ptr %94, i64 4
%96 = load ptr, ptr %95, align 8, !tbaa !9
%97 = call double @atof(ptr noundef %96) #10
%98 = fptrunc double %97 to float
store float %98, ptr %9, align 4, !tbaa !11
%99 = load ptr, ptr %5, align 8, !tbaa !9
%100 = getelementptr inbounds ptr, ptr %99, i64 5
%101 = load ptr, ptr %100, align 8, !tbaa !9
%102 = call double @atof(ptr noundef %101) #10
%103 = fptrunc double %102 to float
store float %103, ptr %11, align 4, !tbaa !11
br label %104
104: ; preds = %84, %78
%105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.20)
%106 = load i32, ptr %7, align 4, !tbaa !5
%107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %105, i32 noundef %106)
%108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef @.str.21)
%109 = load float, ptr %8, align 4, !tbaa !11
%110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %108, float noundef %109)
%111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef @.str.22)
%112 = load float, ptr %9, align 4, !tbaa !11
%113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %111, float noundef %112)
%114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @.str.23)
%115 = load float, ptr %11, align 4, !tbaa !11
%116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %114, float noundef %115)
%117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.24)
%119 = load ptr, ptr %6, align 8, !tbaa !9
%120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef %119)
%121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.start.p0(i64 56, ptr %12) #12
%122 = load ptr, ptr %6, align 8, !tbaa !9
%123 = load i32, ptr %7, align 4, !tbaa !5
%124 = load float, ptr %8, align 4, !tbaa !11
%125 = load float, ptr %9, align 4, !tbaa !11
%126 = load float, ptr %10, align 4, !tbaa !11
%127 = load float, ptr %11, align 4, !tbaa !11
call void @_ZN16Community_FinderC1EPKciffff(ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef %122, i32 noundef %123, float noundef %124, float noundef %125, float noundef %126, float noundef %127)
%128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.25)
to label %129 unwind label %149
129: ; preds = %104
%130 = invoke noundef i64 @_ZNK10bloomGraphIiE6ecountEv(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph)
to label %131 unwind label %149
131: ; preds = %129
%132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %128, i64 noundef %130)
to label %133 unwind label %149
133: ; preds = %131
%134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %135 unwind label %149
135: ; preds = %133
%136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.26)
to label %137 unwind label %149
137: ; preds = %135
%138 = invoke noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph)
to label %139 unwind label %149
139: ; preds = %137
%140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %136, i64 noundef %138)
to label %141 unwind label %149
141: ; preds = %139
%142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %143 unwind label %149
143: ; preds = %141
invoke void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56) %12)
to label %144 unwind label %149
144: ; preds = %143
%145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.27)
to label %146 unwind label %149
146: ; preds = %144
invoke void @_ZN16Community_Finder8rawPrintEv(ptr noundef nonnull align 8 dereferenceable(56) %12)
to label %147 unwind label %149
147: ; preds = %146
call void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #12
call void @llvm.lifetime.end.p0(i64 56, ptr %12) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #12
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #12
%148 = load i32, ptr %3, align 4
ret i32 %148
149: ; preds = %146, %144, %143, %141, %139, %137, %135, %133, %131, %129, %104
%150 = landingpad { ptr, i32 }
cleanup
%151 = extractvalue { ptr, i32 } %150, 0
store ptr %151, ptr %13, align 8
%152 = extractvalue { ptr, i32 } %150, 1
store i32 %152, ptr %14, align 4
call void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #12
call void @llvm.lifetime.end.p0(i64 56, ptr %12) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #12
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #12
br label %153
153: ; preds = %149
%154 = load ptr, ptr %13, align 8
%155 = load i32, ptr %14, align 4
%156 = insertvalue { ptr, i32 } poison, ptr %154, 0
%157 = insertvalue { ptr, i32 } %156, i32 %155, 1
resume { ptr, i32 } %157
}
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #6
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #6
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #7
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #2 align 2
declare void @_ZN16Community_FinderC1EPKciffff(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #7
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6ecountEv(ptr noundef nonnull align 8 dereferenceable(136)) #8 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136)) #8 align 2
declare void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56)) #7
declare void @_ZN16Community_Finder8rawPrintEv(ptr noundef nonnull align 8 dereferenceable(56)) #7
; Function Attrs: nounwind
declare void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #9
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "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 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress nounwind willreturn memory(read) 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 #7 = { "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 #8 = { mustprogress 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 #9 = { 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 #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn nounwind }
attributes #12 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
| 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"
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector", i64, i64, %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%STRUCT1 = type { ptr, %"class.std::vector.10", %"class.std::vector.15" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@theGlobalGraph = external dso_local global %STRUCT0, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [159 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [255 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [367 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [181 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [135 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [10 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
B0:
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca %STRUCT1, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store i32 0, ptr %2, align 4
store i32 %0, ptr %3, align 4, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !9
%14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
%15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%16 = load i32, ptr %3, align 4, !tbaa !5
%17 = icmp ne i32 %16, 6
br i1 %17, label %B1, label %B6
B1:
%18 = load i32, ptr %3, align 4, !tbaa !5
%19 = icmp ne i32 %18, 2
br i1 %19, label %B5, label %B2
B2:
%20 = load ptr, ptr %4, align 8, !tbaa !9
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8, !tbaa !9
%23 = call i32 @strcmp(ptr noundef %22, ptr noundef @.str.3) #10
%24 = icmp eq i32 %23, 0
br i1 %24, label %B5, label %B3
B3:
%25 = load ptr, ptr %4, align 8, !tbaa !9
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8, !tbaa !9
%28 = call i32 @strcmp(ptr noundef %27, ptr noundef @.str.4) #10
%29 = icmp eq i32 %28, 0
br i1 %29, label %B5, label %B4
B4:
%30 = load ptr, ptr %4, align 8, !tbaa !9
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8, !tbaa !9
%33 = call i32 @strcmp(ptr noundef %32, ptr noundef @.str.5) #10
%34 = icmp eq i32 %33, 0
br i1 %34, label %B5, label %B6
B5:
%35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
%36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
%39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
%41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
%43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
%45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
%47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
%49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
%51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.14)
%54 = load ptr, ptr %4, align 8, !tbaa !9
%55 = getelementptr inbounds ptr, ptr %54, i64 0
%56 = load ptr, ptr %55, align 8, !tbaa !9
%57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef %56)
%58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str.15)
%59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef @.str.16)
%62 = load ptr, ptr %4, align 8, !tbaa !9
%63 = getelementptr inbounds ptr, ptr %62, i64 0
%64 = load ptr, ptr %63, align 8, !tbaa !9
%65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef %64)
%66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.17)
%67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.18)
%69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.19)
%71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @exit(i32 noundef 1) #11
unreachable
B6:
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #12
%72 = load ptr, ptr %4, align 8, !tbaa !9
%73 = getelementptr inbounds ptr, ptr %72, i64 1
%74 = load ptr, ptr %73, align 8, !tbaa !9
store ptr %74, ptr %5, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #12
store i32 4, ptr %6, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #12
store float 0x3FE3333340000000, ptr %7, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #12
store float 1.000000e+00, ptr %8, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #12
store float 1.000000e+00, ptr %9, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #12
store float 7.500000e-01, ptr %10, align 4, !tbaa !11
%75 = load i32, ptr %3, align 4, !tbaa !5
%76 = icmp eq i32 %75, 6
br i1 %76, label %B7, label %B8
B7:
%77 = load ptr, ptr %4, align 8, !tbaa !9
%78 = getelementptr inbounds ptr, ptr %77, i64 2
%79 = load ptr, ptr %78, align 8, !tbaa !9
%80 = call i32 @atoi(ptr noundef %79) #10
store i32 %80, ptr %6, align 4, !tbaa !5
%81 = load ptr, ptr %4, align 8, !tbaa !9
%82 = getelementptr inbounds ptr, ptr %81, i64 3
%83 = load ptr, ptr %82, align 8, !tbaa !9
%84 = call double @atof(ptr noundef %83) #10
%85 = fptrunc double %84 to float
store float %85, ptr %7, align 4, !tbaa !11
%86 = load ptr, ptr %4, align 8, !tbaa !9
%87 = getelementptr inbounds ptr, ptr %86, i64 4
%88 = load ptr, ptr %87, align 8, !tbaa !9
%89 = call double @atof(ptr noundef %88) #10
%90 = fptrunc double %89 to float
store float %90, ptr %8, align 4, !tbaa !11
%91 = load ptr, ptr %4, align 8, !tbaa !9
%92 = getelementptr inbounds ptr, ptr %91, i64 5
%93 = load ptr, ptr %92, align 8, !tbaa !9
%94 = call double @atof(ptr noundef %93) #10
%95 = fptrunc double %94 to float
store float %95, ptr %10, align 4, !tbaa !11
br label %B8
B8:
%96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.20)
%97 = load i32, ptr %6, align 4, !tbaa !5
%98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %96, i32 noundef %97)
%99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef @.str.21)
%100 = load float, ptr %7, align 4, !tbaa !11
%101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %99, float noundef %100)
%102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @.str.22)
%103 = load float, ptr %8, align 4, !tbaa !11
%104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %102, float noundef %103)
%105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef @.str.23)
%106 = load float, ptr %10, align 4, !tbaa !11
%107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %105, float noundef %106)
%108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.24)
%110 = load ptr, ptr %5, align 8, !tbaa !9
%111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef %110)
%112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.start.p0(i64 56, ptr %11) #12
%113 = load ptr, ptr %5, align 8, !tbaa !9
%114 = load i32, ptr %6, align 4, !tbaa !5
%115 = load float, ptr %7, align 4, !tbaa !11
%116 = load float, ptr %8, align 4, !tbaa !11
%117 = load float, ptr %9, align 4, !tbaa !11
%118 = load float, ptr %10, align 4, !tbaa !11
call void @_ZN16Community_FinderC1EPKciffff(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef %113, i32 noundef %114, float noundef %115, float noundef %116, float noundef %117, float noundef %118)
%119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.25)
to label %B9 unwind label %B20
B9:
%120 = invoke noundef i64 @_ZNK10bloomGraphIiE6ecountEv(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph)
to label %B10 unwind label %B20
B10:
%121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %119, i64 noundef %120)
to label %B11 unwind label %B20
B11:
%122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B12 unwind label %B20
B12:
%123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.26)
to label %B13 unwind label %B20
B13:
%124 = invoke noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph)
to label %B14 unwind label %B20
B14:
%125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %123, i64 noundef %124)
to label %B15 unwind label %B20
B15:
%126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B16 unwind label %B20
B16:
invoke void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56) %11)
to label %B17 unwind label %B20
B17:
%127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.27)
to label %B18 unwind label %B20
B18:
invoke void @_ZN16Community_Finder8rawPrintEv(ptr noundef nonnull align 8 dereferenceable(56) %11)
to label %B19 unwind label %B20
B19:
call void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #12
call void @llvm.lifetime.end.p0(i64 56, ptr %11) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #12
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #12
%128 = load i32, ptr %2, align 4
ret i32 %128
B20:
%129 = landingpad { ptr, i32 }
cleanup
%130 = extractvalue { ptr, i32 } %129, 0
store ptr %130, ptr %12, align 8
%131 = extractvalue { ptr, i32 } %129, 1
store i32 %131, ptr %13, align 4
call void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #12
call void @llvm.lifetime.end.p0(i64 56, ptr %11) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #12
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #12
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #12
br label %B21
B21:
%132 = load ptr, ptr %12, align 8
%133 = load i32, ptr %13, align 4
%134 = insertvalue { ptr, i32 } poison, ptr %132, 0
%135 = insertvalue { ptr, i32 } %134, i32 %133, 1
resume { ptr, i32 } %135
}
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #6
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #6
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #7
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #2 align 2
declare void @_ZN16Community_FinderC1EPKciffff(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #7
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6ecountEv(ptr noundef nonnull align 8 dereferenceable(136)) #8 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136)) #8 align 2
declare void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56)) #7
declare void @_ZN16Community_Finder8rawPrintEv(ptr noundef nonnull align 8 dereferenceable(56)) #7
; Function Attrs: nounwind
declare void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #9
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "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 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress nounwind willreturn memory(read) 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 #7 = { "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 #8 = { mustprogress 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 #9 = { 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 #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn nounwind }
attributes #12 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0} | 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.bloomGraph = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector", i64, i64, %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Community_Finder = type { ptr, %"class.std::vector.10", %"class.std::vector.15" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Seed *, std::allocator<Seed *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@theGlobalGraph = external dso_local global %struct.bloomGraph, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [159 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [255 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [367 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [181 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [135 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [10 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%3 = alloca %class.Community_Finder, align 8
%4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
%5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
switch i32 %0, label %17 [
i32 6, label %51
i32 2, label %6
]
6: ; preds = %2
%7 = getelementptr inbounds i8, ptr %1, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !5
%9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.3) #10
%10 = icmp eq i32 %9, 0
br i1 %10, label %17, label %11
11: ; preds = %6
%12 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.4) #10
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.5) #10
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %67
17: ; preds = %2, %14, %11, %6
%18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
%19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
%22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
%24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.9)
%26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
%28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.11)
%30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
%32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
%34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @.str.14)
%37 = load ptr, ptr %1, align 8, !tbaa !5
%38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef %37)
%39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @.str.15)
%40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull @.str.16)
%43 = load ptr, ptr %1, align 8, !tbaa !5
%44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef %43)
%45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str.17)
%46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.18)
%48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.19)
%50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
tail call void @exit(i32 noundef 1) #11
unreachable
51: ; preds = %2
%52 = getelementptr inbounds i8, ptr %1, i64 16
%53 = load ptr, ptr %52, align 8, !tbaa !5
%54 = tail call i32 @atoi(ptr nocapture noundef %53) #10
%55 = getelementptr inbounds i8, ptr %1, i64 24
%56 = load ptr, ptr %55, align 8, !tbaa !5
%57 = tail call double @atof(ptr noundef %56) #10
%58 = fptrunc double %57 to float
%59 = getelementptr inbounds i8, ptr %1, i64 32
%60 = load ptr, ptr %59, align 8, !tbaa !5
%61 = tail call double @atof(ptr noundef %60) #10
%62 = fptrunc double %61 to float
%63 = getelementptr inbounds i8, ptr %1, i64 40
%64 = load ptr, ptr %63, align 8, !tbaa !5
%65 = tail call double @atof(ptr noundef %64) #10
%66 = fptrunc double %65 to float
%.in.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 8
%.pre = load ptr, ptr %.in.phi.trans.insert, align 8, !tbaa !5
br label %67
67: ; preds = %14, %51
%68 = phi ptr [ %.pre, %51 ], [ %8, %14 ]
%.028 = phi float [ %62, %51 ], [ 1.000000e+00, %14 ]
%.027 = phi float [ %66, %51 ], [ 7.500000e-01, %14 ]
%.026 = phi float [ %58, %51 ], [ 0x3FE3333340000000, %14 ]
%.0 = phi i32 [ %54, %51 ], [ 4, %14 ]
%69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.20)
%70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %.0)
%71 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @.str.21)
%72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %71, float noundef %.026)
%73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.22)
%74 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %73, float noundef %.028)
%75 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull @.str.23)
%76 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %75, float noundef %.027)
%77 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.24)
%79 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef %68)
%80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #12
call void @_ZN16Community_FinderC1EPKciffff(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef %68, i32 noundef %.0, float noundef %.026, float noundef %.028, float noundef 1.000000e+00, float noundef %.027)
%81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.25)
to label %82 unwind label %99
82: ; preds = %67
%83 = call noundef i64 @_ZNK10bloomGraphIiE6ecountEv(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph)
%84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %81, i64 noundef %83)
to label %85 unwind label %99
85: ; preds = %82
%86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %87 unwind label %99
87: ; preds = %85
%88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.26)
to label %89 unwind label %99
89: ; preds = %87
%90 = call noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136) @theGlobalGraph)
%91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %88, i64 noundef %90)
to label %92 unwind label %99
92: ; preds = %89
%93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %94 unwind label %99
94: ; preds = %92
invoke void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56) %3)
to label %95 unwind label %99
95: ; preds = %94
%96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.27)
to label %97 unwind label %99
97: ; preds = %95
invoke void @_ZN16Community_Finder8rawPrintEv(ptr noundef nonnull align 8 dereferenceable(56) %3)
to label %98 unwind label %99
98: ; preds = %97
call void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #12
call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #12
ret i32 0
99: ; preds = %97, %95, %94, %92, %89, %87, %85, %82, %67
%100 = landingpad { ptr, i32 }
cleanup
call void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #12
call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #12
resume { ptr, i32 } %100
}
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5
; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #6
; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #6
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #2 align 2
declare void @_ZN16Community_FinderC1EPKciffff(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #7
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6ecountEv(ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #8 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #8 align 2
declare void @_ZN16Community_Finder3runEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #7
declare void @_ZN16Community_Finder8rawPrintEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #7
; Function Attrs: nounwind
declare void @_ZN16Community_FinderD1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #9
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #7 = { "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 #8 = { mustprogress 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 #9 = { 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 #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn nounwind }
attributes #12 = { 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 ([email protected]: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++ TBAA"}
| BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 6fcfc81a0600d73c | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | find_communities | BSD-2-Clause |
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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.bloomGraph = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector", i64, i64, %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [125 x i8], align 1
@__PRETTY_FUNCTION__._ZNK10bloomGraphIiE18key_for_vertexNameEi = external hidden unnamed_addr constant [75 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZNK10bloomGraphIiE18key_for_vertexNameEi(ptr noundef nonnull align 8 dereferenceable(136) %0, i32 noundef %1) #0 align 2 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%15 = alloca ptr, align 8
%16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %4, align 8, !tbaa !5
store i32 %1, ptr %5, align 4, !tbaa !9
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 6
%19 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
br i1 %19, label %80, label %20
20: ; preds = %2
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
%21 = load i32, ptr %5, align 4, !tbaa !9
%22 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 6
%23 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
%24 = trunc i64 %23 to i32
%25 = call noundef i32 @_Z12hash_integerIjET_jS0_(i32 noundef %21, i32 noundef %24)
store i32 %25, ptr %6, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !9
br label %26
26: ; preds = %71, %20
%27 = load i32, ptr %7, align 4, !tbaa !9
%28 = icmp ult i32 %27, 5
br i1 %28, label %29, label %37
29: ; preds = %26
%30 = load i32, ptr %6, align 4, !tbaa !9
%31 = load i32, ptr %7, align 4, !tbaa !9
%32 = add i32 %30, %31
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 6
%35 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
%36 = icmp ult i64 %33, %35
br label %37
37: ; preds = %29, %26
%38 = phi i1 [ false, %26 ], [ %36, %29 ]
br i1 %38, label %40, label %39
39: ; preds = %37
store i32 2, ptr %8, align 4
br label %74
40: ; preds = %37
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
%41 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 6
%42 = load i32, ptr %6, align 4, !tbaa !9
%43 = load i32, ptr %7, align 4, !tbaa !9
%44 = add i32 %42, %43
%45 = zext i32 %44 to i64
%46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %45)
%47 = load i32, ptr %46, align 4, !tbaa !9
store i32 %47, ptr %9, align 4, !tbaa !9
%48 = load i32, ptr %9, align 4, !tbaa !9
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 0
%51 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #5
%52 = icmp ult i64 %49, %51
br i1 %52, label %53, label %54
53: ; preds = %40
br label %56
54: ; preds = %40
call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 14, ptr noundef @__PRETTY_FUNCTION__._ZNK10bloomGraphIiE18key_for_vertexNameEi) #6
unreachable
55: ; No predecessors!
br label %56
56: ; preds = %55, %53
%57 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 0
%58 = load i32, ptr %9, align 4, !tbaa !9
%59 = zext i32 %58 to i64
%60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59)
%61 = load i32, ptr %60, align 4, !tbaa !9
%62 = load i32, ptr %5, align 4, !tbaa !9
%63 = icmp eq i32 %61, %62
br i1 %63, label %64, label %67
64: ; preds = %56
%65 = load i32, ptr %9, align 4, !tbaa !9
%66 = zext i32 %65 to i64
store i64 %66, ptr %3, align 8
store i32 1, ptr %8, align 4
br label %68
67: ; preds = %56
store i32 0, ptr %8, align 4
br label %68
68: ; preds = %67, %64
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
%69 = load i32, ptr %8, align 4
switch i32 %69, label %74 [
i32 0, label %70
]
70: ; preds = %68
br label %71
71: ; preds = %70
%72 = load i32, ptr %7, align 4, !tbaa !9
%73 = add i32 %72, 1
store i32 %73, ptr %7, align 4, !tbaa !9
br label %26, !llvm.loop !11
74: ; preds = %68, %39
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
%75 = load i32, ptr %8, align 4
switch i32 %75, label %77 [
i32 2, label %76
]
76: ; preds = %74
store i32 0, ptr %8, align 4
br label %77
77: ; preds = %76, %74
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
%78 = load i32, ptr %8, align 4
switch i32 %78, label %109 [
i32 0, label %79
i32 1, label %107
]
79: ; preds = %77
br label %80
80: ; preds = %79, %2
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
%81 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 0
%82 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #5
%83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
store ptr %82, ptr %83, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
%84 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 0
%85 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #5
%86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
store ptr %85, ptr %86, align 8
%87 = call noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136) %17)
%88 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef %87) #5
%89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
store ptr %88, ptr %89, align 8
%90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
%91 = load ptr, ptr %90, align 8
%92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
%93 = load ptr, ptr %92, align 8
%94 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr %91, ptr %93, ptr noundef nonnull align 4 dereferenceable(4) %5)
%95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
store ptr %94, ptr %95, align 8
%96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
store ptr %96, ptr %10, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
%97 = getelementptr inbounds %struct.bloomGraph, ptr %17, i32 0, i32 0
%98 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #5
%99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
store ptr %98, ptr %99, align 8
%100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
store ptr %100, ptr %15, align 8, !tbaa !5
%101 = load ptr, ptr %10, align 8, !tbaa !5
%102 = load ptr, ptr %15, align 8, !tbaa !5
%103 = ptrtoint ptr %101 to i64
%104 = ptrtoint ptr %102 to i64
%105 = sub i64 %103, %104
%106 = sdiv exact i64 %105, 4
store i64 %106, ptr %3, align 8
store i32 1, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
br label %107
107: ; preds = %80, %77
%108 = load i64, ptr %3, align 8
ret i64 %108
109: ; preds = %77
unreachable
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12hash_integerIjET_jS0_(i32 noundef, i32 noundef) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
attributes #0 = { mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%STRUCT0 = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector", i64, i64, %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [125 x i8], align 1
@__PRETTY_FUNCTION__._ZNK10bloomGraphIiE18key_for_vertexNameEi = external hidden unnamed_addr constant [75 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZNK10bloomGraphIiE18key_for_vertexNameEi(ptr noundef nonnull align 8 dereferenceable(136) %0, i32 noundef %1) #0 align 2 {
B0:
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%14 = alloca ptr, align 8
%15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store ptr %0, ptr %3, align 8, !tbaa !5
store i32 %1, ptr %4, align 4, !tbaa !9
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 6
%18 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
br i1 %18, label %B20, label %B1
B1:
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
%19 = load i32, ptr %4, align 4, !tbaa !9
%20 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 6
%21 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
%22 = trunc i64 %21 to i32
%23 = call noundef i32 @_Z12hash_integerIjET_jS0_(i32 noundef %19, i32 noundef %22)
store i32 %23, ptr %5, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !9
br label %B2
B2:
%24 = load i32, ptr %6, align 4, !tbaa !9
%25 = icmp ult i32 %24, 5
br i1 %25, label %B3, label %B4
B3:
%26 = load i32, ptr %5, align 4, !tbaa !9
%27 = load i32, ptr %6, align 4, !tbaa !9
%28 = add i32 %26, %27
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 6
%31 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
%32 = icmp ult i64 %29, %31
br label %B4
B4:
%33 = phi i1 [ false, %B2 ], [ %32, %B3 ]
br i1 %33, label %B6, label %B5
B5:
store i32 2, ptr %7, align 4
br label %B16
B6:
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
%34 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 6
%35 = load i32, ptr %5, align 4, !tbaa !9
%36 = load i32, ptr %6, align 4, !tbaa !9
%37 = add i32 %35, %36
%38 = zext i32 %37 to i64
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %38)
%40 = load i32, ptr %39, align 4, !tbaa !9
store i32 %40, ptr %8, align 4, !tbaa !9
%41 = load i32, ptr %8, align 4, !tbaa !9
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 0
%44 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
%45 = icmp ult i64 %42, %44
br i1 %45, label %B7, label %B8
B7:
br label %B10
B8:
call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 14, ptr noundef @__PRETTY_FUNCTION__._ZNK10bloomGraphIiE18key_for_vertexNameEi) #6
unreachable
B9:
br label %B10
B10:
%46 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 0
%47 = load i32, ptr %8, align 4, !tbaa !9
%48 = zext i32 %47 to i64
%49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48)
%50 = load i32, ptr %49, align 4, !tbaa !9
%51 = load i32, ptr %4, align 4, !tbaa !9
%52 = icmp eq i32 %50, %51
br i1 %52, label %B11, label %B12
B11:
%53 = load i32, ptr %8, align 4, !tbaa !9
%54 = zext i32 %53 to i64
store i64 %54, ptr %2, align 8
store i32 1, ptr %7, align 4
br label %B13
B12:
store i32 0, ptr %7, align 4
br label %B13
B13:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
%55 = load i32, ptr %7, align 4
switch i32 %55, label %B16 [
i32 0, label %B14
]
B14:
br label %B15
B15:
%56 = load i32, ptr %6, align 4, !tbaa !9
%57 = add i32 %56, 1
store i32 %57, ptr %6, align 4, !tbaa !9
br label %B2, !llvm.loop !11
B16:
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
%58 = load i32, ptr %7, align 4
switch i32 %58, label %B18 [
i32 2, label %B17
]
B17:
store i32 0, ptr %7, align 4
br label %B18
B18:
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
%59 = load i32, ptr %7, align 4
switch i32 %59, label %B22 [
i32 0, label %B19
i32 1, label %B21
]
B19:
br label %B20
B20:
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
%60 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 0
%61 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #5
%62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
store ptr %61, ptr %62, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
%63 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 0
%64 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #5
%65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
store ptr %64, ptr %65, align 8
%66 = call noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136) %16)
%67 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %66) #5
%68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
store ptr %67, ptr %68, align 8
%69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
%70 = load ptr, ptr %69, align 8
%71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
%72 = load ptr, ptr %71, align 8
%73 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr %70, ptr %72, ptr noundef nonnull align 4 dereferenceable(4) %4)
%74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
store ptr %73, ptr %74, align 8
%75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
store ptr %75, ptr %9, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
%76 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 0
%77 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #5
%78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
store ptr %77, ptr %78, align 8
%79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
store ptr %79, ptr %14, align 8, !tbaa !5
%80 = load ptr, ptr %9, align 8, !tbaa !5
%81 = load ptr, ptr %14, align 8, !tbaa !5
%82 = ptrtoint ptr %80 to i64
%83 = ptrtoint ptr %81 to i64
%84 = sub i64 %82, %83
%85 = sdiv exact i64 %84, 4
store i64 %85, ptr %2, align 8
store i32 1, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
br label %B21
B21:
%86 = load i64, ptr %2, align 8
ret i64 %86
B22:
unreachable
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12hash_integerIjET_jS0_(i32 noundef, i32 noundef) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
attributes #0 = { mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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"
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [125 x i8], align 1
@__PRETTY_FUNCTION__._ZNK10bloomGraphIiE18key_for_vertexNameEi = external hidden unnamed_addr constant [75 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZNK10bloomGraphIiE18key_for_vertexNameEi(ptr noundef nonnull align 8 dereferenceable(136) %0, i32 noundef %1) local_unnamed_addr #0 align 2 {
%3 = alloca i32, align 4
%4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store i32 %1, ptr %3, align 4, !tbaa !5
%7 = getelementptr inbounds i8, ptr %0, i64 112
%8 = tail call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
br i1 %8, label %.critedge.thread, label %9
9: ; preds = %2
%10 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
%11 = trunc i64 %10 to i32
%12 = tail call noundef i32 @_Z12hash_integerIjET_jS0_(i32 noundef %1, i32 noundef %11)
%13 = zext i32 %12 to i64
%14 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
%15 = icmp ugt i64 %14, %13
br i1 %15, label %72, label %.critedge.thread
16: ; preds = %79
%17 = add i32 %12, 1
%18 = zext i32 %17 to i64
%19 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
%20 = icmp ugt i64 %19, %18
br i1 %20, label %21, label %.critedge.thread
21: ; preds = %16
%22 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %18)
%23 = load i32, ptr %22, align 4, !tbaa !5
%24 = zext i32 %23 to i64
%25 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%26 = icmp ugt i64 %25, %24
br i1 %26, label %27, label %78
27: ; preds = %21
%28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %24)
%29 = load i32, ptr %28, align 4, !tbaa !5
%.not.1 = icmp eq i32 %29, %1
br i1 %.not.1, label %.critedge, label %30
30: ; preds = %27
%31 = add i32 %12, 2
%32 = zext i32 %31 to i64
%33 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
%34 = icmp ugt i64 %33, %32
br i1 %34, label %35, label %.critedge.thread
35: ; preds = %30
%36 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %32)
%37 = load i32, ptr %36, align 4, !tbaa !5
%38 = zext i32 %37 to i64
%39 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%40 = icmp ugt i64 %39, %38
br i1 %40, label %41, label %78
41: ; preds = %35
%42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %38)
%43 = load i32, ptr %42, align 4, !tbaa !5
%.not.2 = icmp eq i32 %43, %1
br i1 %.not.2, label %.critedge, label %44
44: ; preds = %41
%45 = add i32 %12, 3
%46 = zext i32 %45 to i64
%47 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
%48 = icmp ugt i64 %47, %46
br i1 %48, label %49, label %.critedge.thread
49: ; preds = %44
%50 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %46)
%51 = load i32, ptr %50, align 4, !tbaa !5
%52 = zext i32 %51 to i64
%53 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%54 = icmp ugt i64 %53, %52
br i1 %54, label %55, label %78
55: ; preds = %49
%56 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %52)
%57 = load i32, ptr %56, align 4, !tbaa !5
%.not.3 = icmp eq i32 %57, %1
br i1 %.not.3, label %.critedge, label %58
58: ; preds = %55
%59 = add i32 %12, 4
%60 = zext i32 %59 to i64
%61 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
%62 = icmp ugt i64 %61, %60
br i1 %62, label %63, label %.critedge.thread
63: ; preds = %58
%64 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %60)
%65 = load i32, ptr %64, align 4, !tbaa !5
%66 = zext i32 %65 to i64
%67 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%68 = icmp ugt i64 %67, %66
br i1 %68, label %69, label %78
69: ; preds = %63
%70 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %66)
%71 = load i32, ptr %70, align 4, !tbaa !5
%.not.4 = icmp eq i32 %71, %1
br i1 %.not.4, label %.critedge, label %.critedge.thread
72: ; preds = %9
%73 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %13)
%74 = load i32, ptr %73, align 4, !tbaa !5
%75 = zext i32 %74 to i64
%76 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%77 = icmp ugt i64 %76, %75
br i1 %77, label %79, label %78
78: ; preds = %63, %49, %35, %21, %72
tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 14, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10bloomGraphIiE18key_for_vertexNameEi) #6
unreachable
79: ; preds = %72
%80 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %75)
%81 = load i32, ptr %80, align 4, !tbaa !5
%.not = icmp eq i32 %81, %1
br i1 %.not, label %.critedge, label %16
.critedge.thread: ; preds = %9, %16, %30, %44, %58, %69, %2
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
%82 = tail call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
%83 = tail call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
store ptr %83, ptr %5, align 8
%84 = tail call noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136) %0)
%85 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %84) #5
%86 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr %82, ptr %85, ptr noundef nonnull align 4 dereferenceable(4) %3)
store ptr %86, ptr %4, align 8
%87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
%88 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
store ptr %88, ptr %6, align 8
%89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
%90 = ptrtoint ptr %87 to i64
%91 = ptrtoint ptr %89 to i64
%92 = sub i64 %90, %91
%93 = ashr exact i64 %92, 2
br label %.critedge
.critedge: ; preds = %79, %27, %41, %55, %69, %.critedge.thread
%.3 = phi i64 [ %93, %.critedge.thread ], [ %75, %79 ], [ %24, %27 ], [ %38, %41 ], [ %52, %55 ], [ %66, %69 ]
ret i64 %.3
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12hash_integerIjET_jS0_(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10bloomGraphIiE6vcountEv(ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
attributes #0 = { mustprogress 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass | 6a6cb5f40428ba08 | conradlee/network-community-benchmark | comm_algs/GCECommunityFinder | graph_representation | BSD-2-Clause |
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"
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #1 align 2 {
%2 = alloca ptr, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%6 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
%7 = getelementptr inbounds %class.Community, ptr %6, i32 0, i32 7
%8 = load double, ptr %7, align 8, !tbaa !9
%9 = fsub double 1.000000e+00, %8
store double %9, ptr %3, align 8, !tbaa !18
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
%10 = getelementptr inbounds %class.Community, ptr %6, i32 0, i32 0
%11 = getelementptr inbounds %class.Graph, ptr %10, i32 0, i32 2
%12 = load i32, ptr %11, align 8, !tbaa !19
%13 = sitofp i32 %12 to double
store double %13, ptr %4, align 8, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
store i32 0, ptr %5, align 4, !tbaa !20
br label %14
14: ; preds = %60, %1
%15 = load i32, ptr %5, align 4, !tbaa !20
%16 = getelementptr inbounds %class.Community, ptr %6, i32 0, i32 1
%17 = load i32, ptr %16, align 8, !tbaa !21
%18 = icmp slt i32 %15, %17
br i1 %18, label %20, label %19
19: ; preds = %14
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
br label %63
20: ; preds = %14
%21 = getelementptr inbounds %class.Community, ptr %6, i32 0, i32 4
%22 = load i32, ptr %5, align 4, !tbaa !20
%23 = sext i32 %22 to i64
%24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %23) #3
%25 = load i32, ptr %24, align 4, !tbaa !20
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %59
27: ; preds = %20
%28 = getelementptr inbounds %class.Community, ptr %6, i32 0, i32 7
%29 = load double, ptr %28, align 8, !tbaa !9
%30 = getelementptr inbounds %class.Community, ptr %6, i32 0, i32 3
%31 = load i32, ptr %5, align 4, !tbaa !20
%32 = sext i32 %31 to i64
%33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %32) #3
%34 = load i32, ptr %33, align 4, !tbaa !20
%35 = sitofp i32 %34 to double
%36 = fmul double %29, %35
%37 = load double, ptr %4, align 8, !tbaa !18
%38 = fdiv double %36, %37
%39 = getelementptr inbounds %class.Community, ptr %6, i32 0, i32 4
%40 = load i32, ptr %5, align 4, !tbaa !20
%41 = sext i32 %40 to i64
%42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #3
%43 = load i32, ptr %42, align 4, !tbaa !20
%44 = sitofp i32 %43 to double
%45 = load double, ptr %4, align 8, !tbaa !18
%46 = fdiv double %44, %45
%47 = getelementptr inbounds %class.Community, ptr %6, i32 0, i32 4
%48 = load i32, ptr %5, align 4, !tbaa !20
%49 = sext i32 %48 to i64
%50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %49) #3
%51 = load i32, ptr %50, align 4, !tbaa !20
%52 = sitofp i32 %51 to double
%53 = load double, ptr %4, align 8, !tbaa !18
%54 = fdiv double %52, %53
%55 = fneg double %46
%56 = call double @llvm.fmuladd.f64(double %55, double %54, double %38)
%57 = load double, ptr %3, align 8, !tbaa !18
%58 = fadd double %57, %56
store double %58, ptr %3, align 8, !tbaa !18
br label %59
59: ; preds = %27, %20
br label %60
60: ; preds = %59
%61 = load i32, ptr %5, align 4, !tbaa !20
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4, !tbaa !20
br label %14, !llvm.loop !22
63: ; preds = %19
%64 = load double, ptr %3, align 8, !tbaa !18
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
ret double %64
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !17, i64 136}
!10 = !{!"_ZTS9Community", !11, i64 0, !12, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !12, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!10, !12, i64 8}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !12, i64 40}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
| 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"
%STRUCT0 = type { %STRUCT1, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%STRUCT1 = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #1 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %1, align 8, !tbaa !5
%5 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
%6 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 7
%7 = load double, ptr %6, align 8, !tbaa !9
%8 = fsub double 1.000000e+00, %7
store double %8, ptr %2, align 8, !tbaa !18
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
%9 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 0
%10 = getelementptr inbounds %STRUCT1, ptr %9, i32 0, i32 2
%11 = load i32, ptr %10, align 8, !tbaa !19
%12 = sitofp i32 %11 to double
store double %12, ptr %3, align 8, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
store i32 0, ptr %4, align 4, !tbaa !20
br label %B1
B1:
%13 = load i32, ptr %4, align 4, !tbaa !20
%14 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 1
%15 = load i32, ptr %14, align 8, !tbaa !21
%16 = icmp slt i32 %13, %15
br i1 %16, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
br label %B7
B3:
%17 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 4
%18 = load i32, ptr %4, align 4, !tbaa !20
%19 = sext i32 %18 to i64
%20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %19) #3
%21 = load i32, ptr %20, align 4, !tbaa !20
%22 = icmp sgt i32 %21, 0
br i1 %22, label %B4, label %B5
B4:
%23 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 7
%24 = load double, ptr %23, align 8, !tbaa !9
%25 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 3
%26 = load i32, ptr %4, align 4, !tbaa !20
%27 = sext i32 %26 to i64
%28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %27) #3
%29 = load i32, ptr %28, align 4, !tbaa !20
%30 = sitofp i32 %29 to double
%31 = fmul double %24, %30
%32 = load double, ptr %3, align 8, !tbaa !18
%33 = fdiv double %31, %32
%34 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 4
%35 = load i32, ptr %4, align 4, !tbaa !20
%36 = sext i32 %35 to i64
%37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %36) #3
%38 = load i32, ptr %37, align 4, !tbaa !20
%39 = sitofp i32 %38 to double
%40 = load double, ptr %3, align 8, !tbaa !18
%41 = fdiv double %39, %40
%42 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 4
%43 = load i32, ptr %4, align 4, !tbaa !20
%44 = sext i32 %43 to i64
%45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44) #3
%46 = load i32, ptr %45, align 4, !tbaa !20
%47 = sitofp i32 %46 to double
%48 = load double, ptr %3, align 8, !tbaa !18
%49 = fdiv double %47, %48
%50 = fneg double %41
%51 = call double @llvm.fmuladd.f64(double %50, double %49, double %33)
%52 = load double, ptr %2, align 8, !tbaa !18
%53 = fadd double %52, %51
store double %53, ptr %2, align 8, !tbaa !18
br label %B5
B5:
br label %B6
B6:
%54 = load i32, ptr %4, align 4, !tbaa !20
%55 = add nsw i32 %54, 1
store i32 %55, ptr %4, align 4, !tbaa !20
br label %B1, !llvm.loop !22
B7:
%56 = load double, ptr %2, align 8, !tbaa !18
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
ret double %56
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !17, i64 136}
!10 = !{!"_ZTS9Community", !11, i64 0, !12, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !12, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!10, !12, i64 8}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !12, i64 40}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"} | 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"
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %0) local_unnamed_addr #0 align 2 {
%2 = getelementptr inbounds i8, ptr %0, i64 136
%3 = load double, ptr %2, align 8, !tbaa !5
%4 = fsub double 1.000000e+00, %3
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load i32, ptr %5, align 8, !tbaa !17
%7 = sitofp i32 %6 to double
%8 = getelementptr inbounds i8, ptr %0, i64 40
%9 = load i32, ptr %8, align 8, !tbaa !18
%10 = icmp sgt i32 %9, 0
br i1 %10, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %1
%11 = getelementptr inbounds i8, ptr %0, i64 96
%12 = getelementptr inbounds i8, ptr %0, i64 72
br label %13
._crit_edge: ; preds = %35, %1
%.011.lcssa = phi double [ %4, %1 ], [ %.1, %35 ]
ret double %.011.lcssa
13: ; preds = %.lr.ph, %35
%indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %35 ]
%.01112 = phi double [ %4, %.lr.ph ], [ %.1, %35 ]
%14 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #2
%15 = load i32, ptr %14, align 4, !tbaa !19
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %35
17: ; preds = %13
%18 = load double, ptr %2, align 8, !tbaa !5
%19 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv) #2
%20 = load i32, ptr %19, align 4, !tbaa !19
%21 = sitofp i32 %20 to double
%22 = fmul double %18, %21
%23 = fdiv double %22, %7
%24 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #2
%25 = load i32, ptr %24, align 4, !tbaa !19
%26 = sitofp i32 %25 to double
%27 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #2
%28 = load i32, ptr %27, align 4, !tbaa !19
%29 = sitofp i32 %28 to double
%30 = fdiv double %29, %7
%31 = fneg double %26
%32 = fdiv double %31, %7
%33 = tail call double @llvm.fmuladd.f64(double %32, double %30, double %23)
%34 = fadd double %.01112, %33
br label %35
35: ; preds = %13, %17
%.1 = phi double [ %34, %17 ], [ %.01112, %13 ]
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%36 = load i32, ptr %8, align 8, !tbaa !18
%37 = sext i32 %36 to i64
%38 = icmp slt i64 %indvars.iv.next, %37
br i1 %38, label %13, label %._crit_edge, !llvm.loop !20
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { mustprogress 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 speculatable willreturn memory(none) }
attributes #2 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !16, i64 136}
!6 = !{!"_ZTS9Community", !7, i64 0, !8, i64 40, !12, i64 48, !12, i64 72, !12, i64 96, !8, i64 120, !16, i64 128, !16, i64 136}
!7 = !{!"_ZTS5Graph", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"double", !9, i64 0}
!17 = !{!6, !8, i64 8}
!18 = !{!6, !8, i64 40}
!19 = !{!8, !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | c9044b4ca7ab859c | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9Community10modularityEv | BSD-2-Clause |
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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type { ptr, ptr }
%"struct.std::pair.5" = type { i32, i32 }
%"struct.std::pair.3" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.7" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community10neigh_commEi(ptr dead_on_unwind noalias writable sret(%"class.std::map") align 8 %0, ptr noundef nonnull align 8 dereferenceable(144) %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i1, align 1
%8 = alloca %"struct.std::pair", align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca %"struct.std::pair.5", align 4
%13 = alloca i32, align 4
%14 = alloca %"struct.std::pair.3", align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca %"struct.std::_Rb_tree_iterator", align 8
%20 = alloca %"struct.std::_Rb_tree_iterator", align 8
%21 = alloca %"struct.std::pair.5", align 4
%22 = alloca %"struct.std::pair.3", align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8, !tbaa !5
store i32 %2, ptr %6, align 4, !tbaa !9
%23 = load ptr, ptr %5, align 8
store i1 false, ptr %7, align 1
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
%24 = getelementptr inbounds %class.Community, ptr %23, i32 0, i32 0
%25 = load i32, ptr %6, align 4, !tbaa !9
%26 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %24, i32 noundef %25)
to label %27 unwind label %53
27: ; preds = %3
%28 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 0
%29 = extractvalue { ptr, ptr } %26, 0
store ptr %29, ptr %28, align 8
%30 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 1
%31 = extractvalue { ptr, ptr } %26, 1
store ptr %31, ptr %30, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
%32 = getelementptr inbounds %class.Community, ptr %23, i32 0, i32 0
%33 = load i32, ptr %6, align 4, !tbaa !9
%34 = invoke noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %32, i32 noundef %33)
to label %35 unwind label %57
35: ; preds = %27
store i32 %34, ptr %11, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
%36 = getelementptr inbounds %class.Community, ptr %23, i32 0, i32 2
%37 = load i32, ptr %6, align 4, !tbaa !9
%38 = sext i32 %37 to i64
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
store i32 0, ptr %13, align 4, !tbaa !9
%40 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %13)
to label %41 unwind label %61
41: ; preds = %35
store i64 %40, ptr %12, align 4
%42 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %12)
to label %43 unwind label %61
43: ; preds = %41
%44 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
%45 = extractvalue { ptr, i8 } %42, 0
store ptr %45, ptr %44, align 8
%46 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
%47 = extractvalue { ptr, i8 } %42, 1
store i8 %47, ptr %46, align 8
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
store i32 0, ptr %15, align 4, !tbaa !9
br label %48
48: ; preds = %127, %43
%49 = load i32, ptr %15, align 4, !tbaa !9
%50 = load i32, ptr %11, align 4, !tbaa !9
%51 = icmp slt i32 %49, %50
br i1 %51, label %65, label %52
52: ; preds = %48
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
br label %130
53: ; preds = %3
%54 = landingpad { ptr, i32 }
cleanup
%55 = extractvalue { ptr, i32 } %54, 0
store ptr %55, ptr %9, align 8
%56 = extractvalue { ptr, i32 } %54, 1
store i32 %56, ptr %10, align 4
br label %133
57: ; preds = %27
%58 = landingpad { ptr, i32 }
cleanup
%59 = extractvalue { ptr, i32 } %58, 0
store ptr %59, ptr %9, align 8
%60 = extractvalue { ptr, i32 } %58, 1
store i32 %60, ptr %10, align 4
br label %132
61: ; preds = %41, %35
%62 = landingpad { ptr, i32 }
cleanup
%63 = extractvalue { ptr, i32 } %62, 0
store ptr %63, ptr %9, align 8
%64 = extractvalue { ptr, i32 } %62, 1
store i32 %64, ptr %10, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
br label %132
65: ; preds = %48
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
%66 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 0
%67 = load ptr, ptr %66, align 8, !tbaa !11
%68 = load i32, ptr %15, align 4, !tbaa !9
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
%71 = load i32, ptr %70, align 4, !tbaa !9
store i32 %71, ptr %16, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
%72 = getelementptr inbounds %class.Community, ptr %23, i32 0, i32 2
%73 = load i32, ptr %16, align 4, !tbaa !9
%74 = sext i32 %73 to i64
%75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74) #5
%76 = load i32, ptr %75, align 4, !tbaa !9
store i32 %76, ptr %17, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
%77 = getelementptr inbounds %class.Community, ptr %23, i32 0, i32 0
%78 = getelementptr inbounds %class.Graph, ptr %77, i32 0, i32 5
%79 = load ptr, ptr %78, align 8, !tbaa !13
%80 = icmp eq ptr %79, null
br i1 %80, label %81, label %82
81: ; preds = %65
br label %89
82: ; preds = %65
%83 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 1
%84 = load ptr, ptr %83, align 8, !tbaa !21
%85 = load i32, ptr %15, align 4, !tbaa !9
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %84, i64 %86
%88 = load i32, ptr %87, align 4, !tbaa !9
br label %89
89: ; preds = %82, %81
%90 = phi i32 [ 1, %81 ], [ %88, %82 ]
store i32 %90, ptr %18, align 4, !tbaa !9
%91 = load i32, ptr %16, align 4, !tbaa !9
%92 = load i32, ptr %6, align 4, !tbaa !9
%93 = icmp ne i32 %91, %92
br i1 %93, label %94, label %126
94: ; preds = %89
call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
%95 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %96 unwind label %107
96: ; preds = %94
%97 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
store ptr %95, ptr %97, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
%98 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
%99 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
store ptr %98, ptr %99, align 8
%100 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
br i1 %100, label %101, label %111
101: ; preds = %96
%102 = load i32, ptr %18, align 4, !tbaa !9
%103 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
%104 = getelementptr inbounds %"struct.std::pair.7", ptr %103, i32 0, i32 1
%105 = load i32, ptr %104, align 4, !tbaa !22
%106 = add nsw i32 %105, %102
store i32 %106, ptr %104, align 4, !tbaa !22
br label %124
107: ; preds = %94
%108 = landingpad { ptr, i32 }
cleanup
%109 = extractvalue { ptr, i32 } %108, 0
store ptr %109, ptr %9, align 8
%110 = extractvalue { ptr, i32 } %108, 1
store i32 %110, ptr %10, align 4
br label %125
111: ; preds = %96
call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
%112 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
to label %113 unwind label %120
113: ; preds = %111
store i64 %112, ptr %21, align 4
%114 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %21)
to label %115 unwind label %120
115: ; preds = %113
%116 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
%117 = extractvalue { ptr, i8 } %114, 0
store ptr %117, ptr %116, align 8
%118 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 1
%119 = extractvalue { ptr, i8 } %114, 1
store i8 %119, ptr %118, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
br label %124
120: ; preds = %113, %111
%121 = landingpad { ptr, i32 }
cleanup
%122 = extractvalue { ptr, i32 } %121, 0
store ptr %122, ptr %9, align 8
%123 = extractvalue { ptr, i32 } %121, 1
store i32 %123, ptr %10, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
br label %125
124: ; preds = %115, %101
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
br label %126
125: ; preds = %120, %107
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
br label %132
126: ; preds = %124, %89
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
br label %127
127: ; preds = %126
%128 = load i32, ptr %15, align 4, !tbaa !9
%129 = add nsw i32 %128, 1
store i32 %129, ptr %15, align 4, !tbaa !9
br label %48, !llvm.loop !24
130: ; preds = %52
store i1 true, ptr %7, align 1
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
%131 = load i1, ptr %7, align 1
br i1 %131, label %135, label %134
132: ; preds = %125, %61, %57
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
br label %133
133: ; preds = %132, %53
call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
br label %136
134: ; preds = %130
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
br label %135
135: ; preds = %134, %130
ret void
136: ; preds = %133
%137 = load ptr, ptr %9, align 8
%138 = load i32, ptr %10, align 4
%139 = insertvalue { ptr, i32 } poison, ptr %137, 0
%140 = insertvalue { ptr, i32 } %139, i32 %138, 1
resume { ptr, i32 } %140
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTS9Community", !15, i64 0, !10, i64 40, !16, i64 48, !16, i64 72, !16, i64 96, !10, i64 120, !20, i64 128, !20, i64 136}
!15 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"double", !7, i64 0}
!21 = !{!12, !6, i64 8}
!22 = !{!23, !10, i64 4}
!23 = !{!"_ZTSSt4pairIKiiE", !10, i64 0, !10, i64 4}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type { ptr, ptr }
%"struct.std::pair.5" = type { i32, i32 }
%"struct.std::pair.3" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%STRUCT0 = type { %STRUCT1, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%STRUCT1 = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.7" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community10neigh_commEi(ptr dead_on_unwind noalias writable sret(%"class.std::map") align 8 %0, ptr noundef nonnull align 8 dereferenceable(144) %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
B0:
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i1, align 1
%7 = alloca %"struct.std::pair", align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %"struct.std::pair.5", align 4
%12 = alloca i32, align 4
%13 = alloca %"struct.std::pair.3", align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca %"struct.std::_Rb_tree_iterator", align 8
%19 = alloca %"struct.std::_Rb_tree_iterator", align 8
%20 = alloca %"struct.std::pair.5", align 4
%21 = alloca %"struct.std::pair.3", align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8, !tbaa !5
store i32 %2, ptr %5, align 4, !tbaa !9
%22 = load ptr, ptr %4, align 8
store i1 false, ptr %6, align 1
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
%23 = getelementptr inbounds %STRUCT0, ptr %22, i32 0, i32 0
%24 = load i32, ptr %5, align 4, !tbaa !9
%25 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %23, i32 noundef %24)
to label %B1 unwind label %B7
B1:
%26 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 0
%27 = extractvalue { ptr, ptr } %25, 0
store ptr %27, ptr %26, align 8
%28 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 1
%29 = extractvalue { ptr, ptr } %25, 1
store ptr %29, ptr %28, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
%30 = getelementptr inbounds %STRUCT0, ptr %22, i32 0, i32 0
%31 = load i32, ptr %5, align 4, !tbaa !9
%32 = invoke noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %30, i32 noundef %31)
to label %B2 unwind label %B8
B2:
store i32 %32, ptr %10, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
%33 = getelementptr inbounds %STRUCT0, ptr %22, i32 0, i32 2
%34 = load i32, ptr %5, align 4, !tbaa !9
%35 = sext i32 %34 to i64
%36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
store i32 0, ptr %12, align 4, !tbaa !9
%37 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %B3 unwind label %B9
B3:
store i64 %37, ptr %11, align 4
%38 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %11)
to label %B4 unwind label %B9
B4:
%39 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
%40 = extractvalue { ptr, i8 } %38, 0
store ptr %40, ptr %39, align 8
%41 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
%42 = extractvalue { ptr, i8 } %38, 1
store i8 %42, ptr %41, align 8
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
store i32 0, ptr %14, align 4, !tbaa !9
br label %B5
B5:
%43 = load i32, ptr %14, align 4, !tbaa !9
%44 = load i32, ptr %10, align 4, !tbaa !9
%45 = icmp slt i32 %43, %44
br i1 %45, label %B10, label %B6
B6:
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
br label %B26
B7:
%46 = landingpad { ptr, i32 }
cleanup
%47 = extractvalue { ptr, i32 } %46, 0
store ptr %47, ptr %8, align 8
%48 = extractvalue { ptr, i32 } %46, 1
store i32 %48, ptr %9, align 4
br label %B28
B8:
%49 = landingpad { ptr, i32 }
cleanup
%50 = extractvalue { ptr, i32 } %49, 0
store ptr %50, ptr %8, align 8
%51 = extractvalue { ptr, i32 } %49, 1
store i32 %51, ptr %9, align 4
br label %B27
B9:
%52 = landingpad { ptr, i32 }
cleanup
%53 = extractvalue { ptr, i32 } %52, 0
store ptr %53, ptr %8, align 8
%54 = extractvalue { ptr, i32 } %52, 1
store i32 %54, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
br label %B27
B10:
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
%55 = getelementptr inbounds %"struct.std::pair", ptr %7, i32 0, i32 0
%56 = load ptr, ptr %55, align 8, !tbaa !11
%57 = load i32, ptr %14, align 4, !tbaa !9
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4, !tbaa !9
store i32 %60, ptr %15, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
%61 = getelementptr inbounds %STRUCT0, ptr %22, i32 0, i32 2
%62 = load i32, ptr %15, align 4, !tbaa !9
%63 = sext i32 %62 to i64
%64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63) #5
%65 = load i32, ptr %64, align 4, !tbaa !9
store i32 %65, ptr %16, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
%66 = getelementptr inbounds %STRUCT0, ptr %22, i32 0, i32 0
%67 = getelementptr inbounds %STRUCT1, ptr %66, i32 0, i32 5
%68 = load ptr, ptr %67, align 8, !tbaa !13
%69 = icmp eq ptr %68, null
br i1 %69, label %B11, label %B12
B11:
br label %B13
B12:
%70 = getelementptr inbounds %"struct.std::pair", ptr %7, i32 0, i32 1
%71 = load ptr, ptr %70, align 8, !tbaa !21
%72 = load i32, ptr %14, align 4, !tbaa !9
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
%75 = load i32, ptr %74, align 4, !tbaa !9
br label %B13
B13:
%76 = phi i32 [ 1, %B11 ], [ %75, %B12 ]
store i32 %76, ptr %17, align 4, !tbaa !9
%77 = load i32, ptr %15, align 4, !tbaa !9
%78 = load i32, ptr %5, align 4, !tbaa !9
%79 = icmp ne i32 %77, %78
br i1 %79, label %B14, label %B24
B14:
call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
%80 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %16)
to label %B15 unwind label %B17
B15:
%81 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
store ptr %80, ptr %81, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
%82 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
%83 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
store ptr %82, ptr %83, align 8
%84 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
br i1 %84, label %B16, label %B18
B16:
%85 = load i32, ptr %17, align 4, !tbaa !9
%86 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
%87 = getelementptr inbounds %"struct.std::pair.7", ptr %86, i32 0, i32 1
%88 = load i32, ptr %87, align 4, !tbaa !22
%89 = add nsw i32 %88, %85
store i32 %89, ptr %87, align 4, !tbaa !22
br label %B22
B17:
%90 = landingpad { ptr, i32 }
cleanup
%91 = extractvalue { ptr, i32 } %90, 0
store ptr %91, ptr %8, align 8
%92 = extractvalue { ptr, i32 } %90, 1
store i32 %92, ptr %9, align 4
br label %B23
B18:
call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
%93 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %B19 unwind label %B21
B19:
store i64 %93, ptr %20, align 4
%94 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %20)
to label %B20 unwind label %B21
B20:
%95 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
%96 = extractvalue { ptr, i8 } %94, 0
store ptr %96, ptr %95, align 8
%97 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
%98 = extractvalue { ptr, i8 } %94, 1
store i8 %98, ptr %97, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
br label %B22
B21:
%99 = landingpad { ptr, i32 }
cleanup
%100 = extractvalue { ptr, i32 } %99, 0
store ptr %100, ptr %8, align 8
%101 = extractvalue { ptr, i32 } %99, 1
store i32 %101, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
br label %B23
B22:
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
br label %B24
B23:
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
br label %B27
B24:
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
br label %B25
B25:
%102 = load i32, ptr %14, align 4, !tbaa !9
%103 = add nsw i32 %102, 1
store i32 %103, ptr %14, align 4, !tbaa !9
br label %B5, !llvm.loop !24
B26:
store i1 true, ptr %6, align 1
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
%104 = load i1, ptr %6, align 1
br i1 %104, label %B30, label %B29
B27:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
br label %B28
B28:
call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
br label %B31
B29:
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
br label %B30
B30:
ret void
B31:
%105 = load ptr, ptr %8, align 8
%106 = load i32, ptr %9, align 4
%107 = insertvalue { ptr, i32 } poison, ptr %105, 0
%108 = insertvalue { ptr, i32 } %107, i32 %106, 1
resume { ptr, i32 } %108
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTS9Community", !15, i64 0, !10, i64 40, !16, i64 48, !16, i64 72, !16, i64 96, !10, i64 120, !20, i64 128, !20, i64 136}
!15 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"double", !7, i64 0}
!21 = !{!12, !6, i64 8}
!22 = !{!23, !10, i64 4}
!23 = !{!"_ZTSSt4pairIKiiE", !10, i64 0, !10, i64 4}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair.5" = type { i32, i32 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community10neigh_commEi(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::map") align 8 %0, ptr noundef nonnull align 8 dereferenceable(144) %1, i32 noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca %"struct.std::pair.5", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %"struct.std::_Rb_tree_iterator", align 8
%9 = alloca %"struct.std::_Rb_tree_iterator", align 8
%10 = alloca %"struct.std::pair.5", align 8
tail call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
%11 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef %2)
to label %12 unwind label %25
12: ; preds = %3
%13 = extractvalue { ptr, ptr } %11, 0
%14 = extractvalue { ptr, ptr } %11, 1
%15 = tail call noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef %2)
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
%16 = getelementptr inbounds i8, ptr %1, i64 48
%17 = sext i32 %2 to i64
%18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %17) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
store i32 0, ptr %5, align 4, !tbaa !5
%19 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %20 unwind label %27
20: ; preds = %12
store i64 %19, ptr %4, align 8
%21 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %4)
to label %22 unwind label %27
22: ; preds = %20
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
%23 = icmp sgt i32 %15, 0
br i1 %23, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %22
%24 = getelementptr inbounds i8, ptr %1, i64 32
%wide.trip.count = zext nneg i32 %15 to i64
br label %29
25: ; preds = %3
%26 = landingpad { ptr, i32 }
cleanup
br label %65
27: ; preds = %20, %12
%28 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
br label %65
29: ; preds = %.lr.ph, %64
%indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %64 ]
%30 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv
%31 = load i32, ptr %30, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
%32 = sext i32 %31 to i64
%33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %32) #5
%34 = load i32, ptr %33, align 4, !tbaa !5
store i32 %34, ptr %6, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
%35 = load ptr, ptr %24, align 8, !tbaa !9
%36 = icmp eq ptr %35, null
br i1 %36, label %40, label %37
37: ; preds = %29
%38 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv
%39 = load i32, ptr %38, align 4, !tbaa !5
br label %40
40: ; preds = %29, %37
%41 = phi i32 [ %39, %37 ], [ 1, %29 ]
store i32 %41, ptr %7, align 4, !tbaa !5
%.not = icmp eq i32 %31, %2
br i1 %.not, label %64, label %42
42: ; preds = %40
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
%43 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %44 unwind label %53
44: ; preds = %42
store ptr %43, ptr %8, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
%45 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
store ptr %45, ptr %9, align 8
%46 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
br i1 %46, label %47, label %55
47: ; preds = %44
%48 = load i32, ptr %7, align 4, !tbaa !5
%49 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
%50 = getelementptr inbounds i8, ptr %49, i64 4
%51 = load i32, ptr %50, align 4, !tbaa !18
%52 = add nsw i32 %51, %48
store i32 %52, ptr %50, align 4, !tbaa !18
br label %62
53: ; preds = %42
%54 = landingpad { ptr, i32 }
cleanup
br label %63
55: ; preds = %44
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
%56 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %57 unwind label %60
57: ; preds = %55
store i64 %56, ptr %10, align 8
%58 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %10)
to label %59 unwind label %60
59: ; preds = %57
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
br label %62
60: ; preds = %57, %55
%61 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
br label %63
62: ; preds = %59, %47
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
br label %64
63: ; preds = %60, %53
%.pn = phi { ptr, i32 } [ %61, %60 ], [ %54, %53 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
br label %65
64: ; preds = %62, %40
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
br i1 %exitcond.not, label %._crit_edge, label %29, !llvm.loop !20
65: ; preds = %27, %63, %25
%.pn.pn.pn = phi { ptr, i32 } [ %26, %25 ], [ %.pn, %63 ], [ %28, %27 ]
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
resume { ptr, i32 } %.pn.pn.pn
._crit_edge: ; preds = %64, %22
ret void
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 32}
!10 = !{!"_ZTS9Community", !11, i64 0, !6, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !6, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !6, i64 0, !6, i64 4, !6, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!19, !6, i64 4}
!19 = !{!"_ZTSSt4pairIKiiE", !6, i64 0, !6, i64 4}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | abd56739602caa5c | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9Community10neigh_commEi | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::pair" = type { ptr, ptr }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community15partition2graphEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca ptr, align 8
%3 = alloca %"class.std::vector", align 8
%4 = alloca i32, align 4
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %"struct.std::pair", align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%17 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
%18 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
%19 = load i32, ptr %18, align 8, !tbaa !9
%20 = sext i32 %19 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
store i32 -1, ptr %4, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %21 unwind label %28
21: ; preds = %1
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
store i32 0, ptr %8, align 4, !tbaa !18
br label %22
22: ; preds = %42, %21
%23 = load i32, ptr %8, align 4, !tbaa !18
%24 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
%25 = load i32, ptr %24, align 8, !tbaa !9
%26 = icmp slt i32 %23, %25
br i1 %26, label %32, label %27
27: ; preds = %22
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %45
28: ; preds = %1
%29 = landingpad { ptr, i32 }
cleanup
%30 = extractvalue { ptr, i32 } %29, 0
store ptr %30, ptr %6, align 8
%31 = extractvalue { ptr, i32 } %29, 1
store i32 %31, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
br label %146
32: ; preds = %22
%33 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 2
%34 = load i32, ptr %8, align 4, !tbaa !18
%35 = sext i32 %34 to i64
%36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35) #6
%37 = load i32, ptr %36, align 4, !tbaa !18
%38 = sext i32 %37 to i64
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %38) #6
%40 = load i32, ptr %39, align 4, !tbaa !18
%41 = add nsw i32 %40, 1
store i32 %41, ptr %39, align 4, !tbaa !18
br label %42
42: ; preds = %32
%43 = load i32, ptr %8, align 4, !tbaa !18
%44 = add nsw i32 %43, 1
store i32 %44, ptr %8, align 4, !tbaa !18
br label %22, !llvm.loop !19
45: ; preds = %27
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !18
br label %46
46: ; preds = %65, %45
%47 = load i32, ptr %10, align 4, !tbaa !18
%48 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
%49 = load i32, ptr %48, align 8, !tbaa !9
%50 = icmp slt i32 %47, %49
br i1 %50, label %52, label %51
51: ; preds = %46
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %68
52: ; preds = %46
%53 = load i32, ptr %10, align 4, !tbaa !18
%54 = sext i32 %53 to i64
%55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %54) #6
%56 = load i32, ptr %55, align 4, !tbaa !18
%57 = icmp ne i32 %56, -1
br i1 %57, label %58, label %64
58: ; preds = %52
%59 = load i32, ptr %9, align 4, !tbaa !18
%60 = add nsw i32 %59, 1
store i32 %60, ptr %9, align 4, !tbaa !18
%61 = load i32, ptr %10, align 4, !tbaa !18
%62 = sext i32 %61 to i64
%63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62) #6
store i32 %59, ptr %63, align 4, !tbaa !18
br label %64
64: ; preds = %58, %52
br label %65
65: ; preds = %64
%66 = load i32, ptr %10, align 4, !tbaa !18
%67 = add nsw i32 %66, 1
store i32 %67, ptr %10, align 4, !tbaa !18
br label %46, !llvm.loop !21
68: ; preds = %51
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
store i32 0, ptr %11, align 4, !tbaa !18
br label %69
69: ; preds = %140, %68
%70 = load i32, ptr %11, align 4, !tbaa !18
%71 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
%72 = load i32, ptr %71, align 8, !tbaa !9
%73 = icmp slt i32 %70, %72
br i1 %73, label %75, label %74
74: ; preds = %69
store i32 8, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %145
75: ; preds = %69
call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
%76 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 0
%77 = load i32, ptr %11, align 4, !tbaa !18
%78 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %76, i32 noundef %77)
to label %79 unwind label %93
79: ; preds = %75
%80 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 0
%81 = extractvalue { ptr, ptr } %78, 0
store ptr %81, ptr %80, align 8
%82 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 1
%83 = extractvalue { ptr, ptr } %78, 1
store ptr %83, ptr %82, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
%84 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 0
%85 = load i32, ptr %11, align 4, !tbaa !18
%86 = invoke noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %84, i32 noundef %85)
to label %87 unwind label %97
87: ; preds = %79
store i32 %86, ptr %14, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
store i32 0, ptr %15, align 4, !tbaa !18
br label %88
88: ; preds = %132, %87
%89 = load i32, ptr %15, align 4, !tbaa !18
%90 = load i32, ptr %14, align 4, !tbaa !18
%91 = icmp slt i32 %89, %90
br i1 %91, label %101, label %92
92: ; preds = %88
store i32 11, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
br label %139
93: ; preds = %75
%94 = landingpad { ptr, i32 }
cleanup
%95 = extractvalue { ptr, i32 } %94, 0
store ptr %95, ptr %6, align 8
%96 = extractvalue { ptr, i32 } %94, 1
store i32 %96, ptr %7, align 4
br label %144
97: ; preds = %79
%98 = landingpad { ptr, i32 }
cleanup
%99 = extractvalue { ptr, i32 } %98, 0
store ptr %99, ptr %6, align 8
%100 = extractvalue { ptr, i32 } %98, 1
store i32 %100, ptr %7, align 4
br label %143
101: ; preds = %88
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
%102 = getelementptr inbounds %"struct.std::pair", ptr %13, i32 0, i32 0
%103 = load ptr, ptr %102, align 8, !tbaa !22
%104 = load i32, ptr %15, align 4, !tbaa !18
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, ptr %103, i64 %105
%107 = load i32, ptr %106, align 4, !tbaa !18
store i32 %107, ptr %16, align 4, !tbaa !18
%108 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 2
%109 = load i32, ptr %11, align 4, !tbaa !18
%110 = sext i32 %109 to i64
%111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %110) #6
%112 = load i32, ptr %111, align 4, !tbaa !18
%113 = sext i32 %112 to i64
%114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %113) #6
%115 = load i32, ptr %114, align 4, !tbaa !18
%116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %115)
to label %117 unwind label %135
117: ; preds = %101
%118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @.str.1)
to label %119 unwind label %135
119: ; preds = %117
%120 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 2
%121 = load i32, ptr %16, align 4, !tbaa !18
%122 = sext i32 %121 to i64
%123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #6
%124 = load i32, ptr %123, align 4, !tbaa !18
%125 = sext i32 %124 to i64
%126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %125) #6
%127 = load i32, ptr %126, align 4, !tbaa !18
%128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %118, i32 noundef %127)
to label %129 unwind label %135
129: ; preds = %119
%130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %131 unwind label %135
131: ; preds = %129
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
br label %132
132: ; preds = %131
%133 = load i32, ptr %15, align 4, !tbaa !18
%134 = add nsw i32 %133, 1
store i32 %134, ptr %15, align 4, !tbaa !18
br label %88, !llvm.loop !24
135: ; preds = %129, %119, %117, %101
%136 = landingpad { ptr, i32 }
cleanup
%137 = extractvalue { ptr, i32 } %136, 0
store ptr %137, ptr %6, align 8
%138 = extractvalue { ptr, i32 } %136, 1
store i32 %138, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
br label %143
139: ; preds = %92
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
br label %140
140: ; preds = %139
%141 = load i32, ptr %11, align 4, !tbaa !18
%142 = add nsw i32 %141, 1
store i32 %142, ptr %11, align 4, !tbaa !18
br label %69, !llvm.loop !25
143: ; preds = %135, %97
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
br label %144
144: ; preds = %143, %93
call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
br label %146
145: ; preds = %74
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
ret void
146: ; preds = %144, %28
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
br label %147
147: ; preds = %146
%148 = load ptr, ptr %6, align 8
%149 = load i32, ptr %7, align 4
%150 = insertvalue { ptr, i32 } poison, ptr %148, 0
%151 = insertvalue { ptr, i32 } %150, i32 %149, 1
resume { ptr, i32 } %151
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"_ZTS9Community", !11, i64 0, !12, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !12, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::pair" = type { ptr, ptr }
%STRUCT0 = type { %STRUCT1, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%STRUCT1 = type { i32, i32, i32, ptr, ptr, ptr }
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community15partition2graphEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.std::vector", align 8
%3 = alloca i32, align 4
%4 = alloca %"class.std::allocator", align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca %"struct.std::pair", align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %1, align 8, !tbaa !5
%16 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %2) #6
%17 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 1
%18 = load i32, ptr %17, align 8, !tbaa !9
%19 = sext i32 %18 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
store i32 -1, ptr %3, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %19, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
store i32 0, ptr %7, align 4, !tbaa !18
br label %B2
B2:
%20 = load i32, ptr %7, align 4, !tbaa !18
%21 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 1
%22 = load i32, ptr %21, align 8, !tbaa !9
%23 = icmp slt i32 %20, %22
br i1 %23, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
br label %B7
B4:
%24 = landingpad { ptr, i32 }
cleanup
%25 = extractvalue { ptr, i32 } %24, 0
store ptr %25, ptr %5, align 8
%26 = extractvalue { ptr, i32 } %24, 1
store i32 %26, ptr %6, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
br label %B36
B5:
%27 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 2
%28 = load i32, ptr %7, align 4, !tbaa !18
%29 = sext i32 %28 to i64
%30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #6
%31 = load i32, ptr %30, align 4, !tbaa !18
%32 = sext i32 %31 to i64
%33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %32) #6
%34 = load i32, ptr %33, align 4, !tbaa !18
%35 = add nsw i32 %34, 1
store i32 %35, ptr %33, align 4, !tbaa !18
br label %B6
B6:
%36 = load i32, ptr %7, align 4, !tbaa !18
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4, !tbaa !18
br label %B2, !llvm.loop !19
B7:
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
store i32 0, ptr %8, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !18
br label %B8
B8:
%38 = load i32, ptr %9, align 4, !tbaa !18
%39 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 1
%40 = load i32, ptr %39, align 8, !tbaa !9
%41 = icmp slt i32 %38, %40
br i1 %41, label %B10, label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B14
B10:
%42 = load i32, ptr %9, align 4, !tbaa !18
%43 = sext i32 %42 to i64
%44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %43) #6
%45 = load i32, ptr %44, align 4, !tbaa !18
%46 = icmp ne i32 %45, -1
br i1 %46, label %B11, label %B12
B11:
%47 = load i32, ptr %8, align 4, !tbaa !18
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4, !tbaa !18
%49 = load i32, ptr %9, align 4, !tbaa !18
%50 = sext i32 %49 to i64
%51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %50) #6
store i32 %47, ptr %51, align 4, !tbaa !18
br label %B12
B12:
br label %B13
B13:
%52 = load i32, ptr %9, align 4, !tbaa !18
%53 = add nsw i32 %52, 1
store i32 %53, ptr %9, align 4, !tbaa !18
br label %B8, !llvm.loop !21
B14:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !18
br label %B15
B15:
%54 = load i32, ptr %10, align 4, !tbaa !18
%55 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 1
%56 = load i32, ptr %55, align 8, !tbaa !9
%57 = icmp slt i32 %54, %56
br i1 %57, label %B17, label %B16
B16:
store i32 8, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B35
B17:
call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
%58 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 0
%59 = load i32, ptr %10, align 4, !tbaa !18
%60 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %58, i32 noundef %59)
to label %B18 unwind label %B22
B18:
%61 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
%62 = extractvalue { ptr, ptr } %60, 0
store ptr %62, ptr %61, align 8
%63 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
%64 = extractvalue { ptr, ptr } %60, 1
store ptr %64, ptr %63, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
%65 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 0
%66 = load i32, ptr %10, align 4, !tbaa !18
%67 = invoke noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %65, i32 noundef %66)
to label %B19 unwind label %B23
B19:
store i32 %67, ptr %13, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
store i32 0, ptr %14, align 4, !tbaa !18
br label %B20
B20:
%68 = load i32, ptr %14, align 4, !tbaa !18
%69 = load i32, ptr %13, align 4, !tbaa !18
%70 = icmp slt i32 %68, %69
br i1 %70, label %B24, label %B21
B21:
store i32 11, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
br label %B31
B22:
%71 = landingpad { ptr, i32 }
cleanup
%72 = extractvalue { ptr, i32 } %71, 0
store ptr %72, ptr %5, align 8
%73 = extractvalue { ptr, i32 } %71, 1
store i32 %73, ptr %6, align 4
br label %B34
B23:
%74 = landingpad { ptr, i32 }
cleanup
%75 = extractvalue { ptr, i32 } %74, 0
store ptr %75, ptr %5, align 8
%76 = extractvalue { ptr, i32 } %74, 1
store i32 %76, ptr %6, align 4
br label %B33
B24:
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
%77 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
%78 = load ptr, ptr %77, align 8, !tbaa !22
%79 = load i32, ptr %14, align 4, !tbaa !18
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %81, align 4, !tbaa !18
store i32 %82, ptr %15, align 4, !tbaa !18
%83 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 2
%84 = load i32, ptr %10, align 4, !tbaa !18
%85 = sext i32 %84 to i64
%86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %85) #6
%87 = load i32, ptr %86, align 4, !tbaa !18
%88 = sext i32 %87 to i64
%89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %88) #6
%90 = load i32, ptr %89, align 4, !tbaa !18
%91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %90)
to label %B25 unwind label %B30
B25:
%92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef @.str.1)
to label %B26 unwind label %B30
B26:
%93 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 2
%94 = load i32, ptr %15, align 4, !tbaa !18
%95 = sext i32 %94 to i64
%96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95) #6
%97 = load i32, ptr %96, align 4, !tbaa !18
%98 = sext i32 %97 to i64
%99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %98) #6
%100 = load i32, ptr %99, align 4, !tbaa !18
%101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %92, i32 noundef %100)
to label %B27 unwind label %B30
B27:
%102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B28 unwind label %B30
B28:
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
br label %B29
B29:
%103 = load i32, ptr %14, align 4, !tbaa !18
%104 = add nsw i32 %103, 1
store i32 %104, ptr %14, align 4, !tbaa !18
br label %B20, !llvm.loop !24
B30:
%105 = landingpad { ptr, i32 }
cleanup
%106 = extractvalue { ptr, i32 } %105, 0
store ptr %106, ptr %5, align 8
%107 = extractvalue { ptr, i32 } %105, 1
store i32 %107, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
br label %B33
B31:
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
br label %B32
B32:
%108 = load i32, ptr %10, align 4, !tbaa !18
%109 = add nsw i32 %108, 1
store i32 %109, ptr %10, align 4, !tbaa !18
br label %B15, !llvm.loop !25
B33:
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
br label %B34
B34:
call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
br label %B36
B35:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
ret void
B36:
call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
br label %B37
B37:
%110 = load ptr, ptr %5, align 8
%111 = load i32, ptr %6, align 4
%112 = insertvalue { ptr, i32 } poison, ptr %110, 0
%113 = insertvalue { ptr, i32 } %112, i32 %111, 1
resume { ptr, i32 } %113
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"_ZTS9Community", !11, i64 0, !12, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !12, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #5 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community15partition2graphEv(ptr noundef nonnull align 8 dereferenceable(144) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca %"class.std::vector", align 8
%3 = alloca i32, align 4
%4 = alloca %"class.std::allocator", align 1
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
%5 = getelementptr inbounds i8, ptr %0, i64 40
%6 = load i32, ptr %5, align 8, !tbaa !5
%7 = sext i32 %6 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
store i32 -1, ptr %3, align 4, !tbaa !17
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %7, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %8 unwind label %13
8: ; preds = %1
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
%9 = load i32, ptr %5, align 8, !tbaa !5
%10 = icmp sgt i32 %9, 0
br i1 %10, label %.lr.ph, label %._crit_edge39
.lr.ph: ; preds = %8
%11 = getelementptr inbounds i8, ptr %0, i64 48
br label %15
.preheader30: ; preds = %15
%12 = icmp sgt i32 %22, 0
br i1 %12, label %.lr.ph34, label %._crit_edge39
13: ; preds = %1
%14 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
br label %73
15: ; preds = %.lr.ph, %15
%indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %15 ]
%16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #6
%17 = load i32, ptr %16, align 4, !tbaa !17
%18 = sext i32 %17 to i64
%19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %18) #6
%20 = load i32, ptr %19, align 4, !tbaa !17
%21 = add nsw i32 %20, 1
store i32 %21, ptr %19, align 4, !tbaa !17
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%22 = load i32, ptr %5, align 8, !tbaa !5
%23 = sext i32 %22 to i64
%24 = icmp slt i64 %indvars.iv.next, %23
br i1 %24, label %15, label %.preheader30, !llvm.loop !18
.preheader: ; preds = %32
%25 = icmp sgt i32 %33, 0
br i1 %25, label %.lr.ph38, label %._crit_edge39
.lr.ph38: ; preds = %.preheader
%26 = getelementptr inbounds i8, ptr %0, i64 48
br label %36
.lr.ph34: ; preds = %.preheader30, %32
%indvars.iv41 = phi i64 [ %indvars.iv.next42, %32 ], [ 0, %.preheader30 ]
%.02433 = phi i32 [ %.125, %32 ], [ 0, %.preheader30 ]
%27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41) #6
%28 = load i32, ptr %27, align 4, !tbaa !17
%.not = icmp eq i32 %28, -1
br i1 %.not, label %32, label %29
29: ; preds = %.lr.ph34
%30 = add nsw i32 %.02433, 1
%31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41) #6
store i32 %.02433, ptr %31, align 4, !tbaa !17
br label %32
32: ; preds = %.lr.ph34, %29
%.125 = phi i32 [ %30, %29 ], [ %.02433, %.lr.ph34 ]
%indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
%33 = load i32, ptr %5, align 8, !tbaa !5
%34 = sext i32 %33 to i64
%35 = icmp slt i64 %indvars.iv.next42, %34
br i1 %35, label %.lr.ph34, label %.preheader, !llvm.loop !20
._crit_edge39: ; preds = %._crit_edge, %8, %.preheader30, %.preheader
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
ret void
36: ; preds = %.lr.ph38, %._crit_edge
%indvars.iv47 = phi i64 [ 0, %.lr.ph38 ], [ %indvars.iv.next48, %._crit_edge ]
%37 = trunc nuw nsw i64 %indvars.iv47 to i32
%38 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %37)
to label %39 unwind label %46
39: ; preds = %36
%40 = extractvalue { ptr, ptr } %38, 0
%41 = call noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %37)
%42 = icmp sgt i32 %41, 0
br i1 %42, label %.lr.ph36, label %._crit_edge
.lr.ph36: ; preds = %39
%wide.trip.count = zext nneg i32 %41 to i64
br label %48
._crit_edge: ; preds = %69, %39
%indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
%43 = load i32, ptr %5, align 8, !tbaa !5
%44 = sext i32 %43 to i64
%45 = icmp slt i64 %indvars.iv.next48, %44
br i1 %45, label %36, label %._crit_edge39, !llvm.loop !21
46: ; preds = %36
%47 = landingpad { ptr, i32 }
cleanup
br label %72
48: ; preds = %.lr.ph36, %69
%indvars.iv44 = phi i64 [ 0, %.lr.ph36 ], [ %indvars.iv.next45, %69 ]
%49 = getelementptr inbounds i32, ptr %40, i64 %indvars.iv44
%50 = load i32, ptr %49, align 4, !tbaa !17
%51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv47) #6
%52 = load i32, ptr %51, align 4, !tbaa !17
%53 = sext i32 %52 to i64
%54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %53) #6
%55 = load i32, ptr %54, align 4, !tbaa !17
%56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %55)
to label %57 unwind label %70
57: ; preds = %48
%58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str.1)
to label %59 unwind label %70
59: ; preds = %57
%60 = sext i32 %50 to i64
%61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %60) #6
%62 = load i32, ptr %61, align 4, !tbaa !17
%63 = sext i32 %62 to i64
%64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %63) #6
%65 = load i32, ptr %64, align 4, !tbaa !17
%66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %58, i32 noundef %65)
to label %67 unwind label %70
67: ; preds = %59
%68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %69 unwind label %70
69: ; preds = %67
%indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
%exitcond.not = icmp eq i64 %indvars.iv.next45, %wide.trip.count
br i1 %exitcond.not, label %._crit_edge, label %48, !llvm.loop !22
70: ; preds = %67, %59, %57, %48
%71 = landingpad { ptr, i32 }
cleanup
br label %72
72: ; preds = %70, %46
%.pn = phi { ptr, i32 } [ %71, %70 ], [ %47, %46 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
br label %73
73: ; preds = %72, %13
%.pn.pn = phi { ptr, i32 } [ %.pn, %72 ], [ %14, %13 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
resume { ptr, i32 } %.pn.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 40}
!6 = !{!"_ZTS9Community", !7, i64 0, !8, i64 40, !12, i64 48, !12, i64 72, !12, i64 96, !8, i64 120, !16, i64 128, !16, i64 136}
!7 = !{!"_ZTS5Graph", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"double", !9, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
| EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 176cb64b3c149694 | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9Community15partition2graphEv | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca ptr, align 8
%3 = alloca %"class.std::vector", align 8
%4 = alloca i32, align 4
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%12 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #5
%13 = getelementptr inbounds %class.Community, ptr %12, i32 0, i32 1
%14 = load i32, ptr %13, align 8, !tbaa !9
%15 = sext i32 %14 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
store i32 -1, ptr %4, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %15, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %16 unwind label %23
16: ; preds = %1
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
store i32 0, ptr %8, align 4, !tbaa !18
br label %17
17: ; preds = %37, %16
%18 = load i32, ptr %8, align 4, !tbaa !18
%19 = getelementptr inbounds %class.Community, ptr %12, i32 0, i32 1
%20 = load i32, ptr %19, align 8, !tbaa !9
%21 = icmp slt i32 %18, %20
br i1 %21, label %27, label %22
22: ; preds = %17
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
br label %40
23: ; preds = %1
%24 = landingpad { ptr, i32 }
cleanup
%25 = extractvalue { ptr, i32 } %24, 0
store ptr %25, ptr %6, align 8
%26 = extractvalue { ptr, i32 } %24, 1
store i32 %26, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
br label %96
27: ; preds = %17
%28 = getelementptr inbounds %class.Community, ptr %12, i32 0, i32 2
%29 = load i32, ptr %8, align 4, !tbaa !18
%30 = sext i32 %29 to i64
%31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30) #5
%32 = load i32, ptr %31, align 4, !tbaa !18
%33 = sext i32 %32 to i64
%34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %33) #5
%35 = load i32, ptr %34, align 4, !tbaa !18
%36 = add nsw i32 %35, 1
store i32 %36, ptr %34, align 4, !tbaa !18
br label %37
37: ; preds = %27
%38 = load i32, ptr %8, align 4, !tbaa !18
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4, !tbaa !18
br label %17, !llvm.loop !19
40: ; preds = %22
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
store i32 0, ptr %9, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
store i32 0, ptr %10, align 4, !tbaa !18
br label %41
41: ; preds = %60, %40
%42 = load i32, ptr %10, align 4, !tbaa !18
%43 = getelementptr inbounds %class.Community, ptr %12, i32 0, i32 1
%44 = load i32, ptr %43, align 8, !tbaa !9
%45 = icmp slt i32 %42, %44
br i1 %45, label %47, label %46
46: ; preds = %41
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
br label %63
47: ; preds = %41
%48 = load i32, ptr %10, align 4, !tbaa !18
%49 = sext i32 %48 to i64
%50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %49) #5
%51 = load i32, ptr %50, align 4, !tbaa !18
%52 = icmp ne i32 %51, -1
br i1 %52, label %53, label %59
53: ; preds = %47
%54 = load i32, ptr %9, align 4, !tbaa !18
%55 = add nsw i32 %54, 1
store i32 %55, ptr %9, align 4, !tbaa !18
%56 = load i32, ptr %10, align 4, !tbaa !18
%57 = sext i32 %56 to i64
%58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %57) #5
store i32 %54, ptr %58, align 4, !tbaa !18
br label %59
59: ; preds = %53, %47
br label %60
60: ; preds = %59
%61 = load i32, ptr %10, align 4, !tbaa !18
%62 = add nsw i32 %61, 1
store i32 %62, ptr %10, align 4, !tbaa !18
br label %41, !llvm.loop !21
63: ; preds = %46
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
store i32 0, ptr %11, align 4, !tbaa !18
br label %64
64: ; preds = %88, %63
%65 = load i32, ptr %11, align 4, !tbaa !18
%66 = getelementptr inbounds %class.Community, ptr %12, i32 0, i32 1
%67 = load i32, ptr %66, align 8, !tbaa !9
%68 = icmp slt i32 %65, %67
br i1 %68, label %70, label %69
69: ; preds = %64
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
br label %95
70: ; preds = %64
%71 = load i32, ptr %11, align 4, !tbaa !18
%72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %71)
to label %73 unwind label %91
73: ; preds = %70
%74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @.str.1)
to label %75 unwind label %91
75: ; preds = %73
%76 = getelementptr inbounds %class.Community, ptr %12, i32 0, i32 2
%77 = load i32, ptr %11, align 4, !tbaa !18
%78 = sext i32 %77 to i64
%79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #5
%80 = load i32, ptr %79, align 4, !tbaa !18
%81 = sext i32 %80 to i64
%82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %81) #5
%83 = load i32, ptr %82, align 4, !tbaa !18
%84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %74, i32 noundef %83)
to label %85 unwind label %91
85: ; preds = %75
%86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %87 unwind label %91
87: ; preds = %85
br label %88
88: ; preds = %87
%89 = load i32, ptr %11, align 4, !tbaa !18
%90 = add nsw i32 %89, 1
store i32 %90, ptr %11, align 4, !tbaa !18
br label %64, !llvm.loop !22
91: ; preds = %85, %75, %73, %70
%92 = landingpad { ptr, i32 }
cleanup
%93 = extractvalue { ptr, i32 } %92, 0
store ptr %93, ptr %6, align 8
%94 = extractvalue { ptr, i32 } %92, 1
store i32 %94, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
br label %96
95: ; preds = %69
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
ret void
96: ; preds = %91, %23
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
br label %97
97: ; preds = %96
%98 = load ptr, ptr %6, align 8
%99 = load i32, ptr %7, align 4
%100 = insertvalue { ptr, i32 } poison, ptr %98, 0
%101 = insertvalue { ptr, i32 } %100, i32 %99, 1
resume { ptr, i32 } %101
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"_ZTS9Community", !11, i64 0, !12, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !12, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%STRUCT0 = type { %STRUCT1, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%STRUCT1 = type { i32, i32, i32, ptr, ptr, ptr }
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
B0:
%1 = alloca ptr, align 8
%2 = alloca %"class.std::vector", align 8
%3 = alloca i32, align 4
%4 = alloca %"class.std::allocator", align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %1, align 8, !tbaa !5
%11 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %2) #5
%12 = getelementptr inbounds %STRUCT0, ptr %11, i32 0, i32 1
%13 = load i32, ptr %12, align 8, !tbaa !9
%14 = sext i32 %13 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
store i32 -1, ptr %3, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %14, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !18
br label %B2
B2:
%15 = load i32, ptr %7, align 4, !tbaa !18
%16 = getelementptr inbounds %STRUCT0, ptr %11, i32 0, i32 1
%17 = load i32, ptr %16, align 8, !tbaa !9
%18 = icmp slt i32 %15, %17
br i1 %18, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
br label %B7
B4:
%19 = landingpad { ptr, i32 }
cleanup
%20 = extractvalue { ptr, i32 } %19, 0
store ptr %20, ptr %5, align 8
%21 = extractvalue { ptr, i32 } %19, 1
store i32 %21, ptr %6, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
br label %B25
B5:
%22 = getelementptr inbounds %STRUCT0, ptr %11, i32 0, i32 2
%23 = load i32, ptr %7, align 4, !tbaa !18
%24 = sext i32 %23 to i64
%25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %24) #5
%26 = load i32, ptr %25, align 4, !tbaa !18
%27 = sext i32 %26 to i64
%28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %27) #5
%29 = load i32, ptr %28, align 4, !tbaa !18
%30 = add nsw i32 %29, 1
store i32 %30, ptr %28, align 4, !tbaa !18
br label %B6
B6:
%31 = load i32, ptr %7, align 4, !tbaa !18
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4, !tbaa !18
br label %B2, !llvm.loop !19
B7:
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
store i32 0, ptr %8, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
store i32 0, ptr %9, align 4, !tbaa !18
br label %B8
B8:
%33 = load i32, ptr %9, align 4, !tbaa !18
%34 = getelementptr inbounds %STRUCT0, ptr %11, i32 0, i32 1
%35 = load i32, ptr %34, align 8, !tbaa !9
%36 = icmp slt i32 %33, %35
br i1 %36, label %B10, label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
br label %B14
B10:
%37 = load i32, ptr %9, align 4, !tbaa !18
%38 = sext i32 %37 to i64
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %38) #5
%40 = load i32, ptr %39, align 4, !tbaa !18
%41 = icmp ne i32 %40, -1
br i1 %41, label %B11, label %B12
B11:
%42 = load i32, ptr %8, align 4, !tbaa !18
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4, !tbaa !18
%44 = load i32, ptr %9, align 4, !tbaa !18
%45 = sext i32 %44 to i64
%46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %45) #5
store i32 %42, ptr %46, align 4, !tbaa !18
br label %B12
B12:
br label %B13
B13:
%47 = load i32, ptr %9, align 4, !tbaa !18
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4, !tbaa !18
br label %B8, !llvm.loop !21
B14:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
store i32 0, ptr %10, align 4, !tbaa !18
br label %B15
B15:
%49 = load i32, ptr %10, align 4, !tbaa !18
%50 = getelementptr inbounds %STRUCT0, ptr %11, i32 0, i32 1
%51 = load i32, ptr %50, align 8, !tbaa !9
%52 = icmp slt i32 %49, %51
br i1 %52, label %B17, label %B16
B16:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
br label %B24
B17:
%53 = load i32, ptr %10, align 4, !tbaa !18
%54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %53)
to label %B18 unwind label %B23
B18:
%55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @.str.1)
to label %B19 unwind label %B23
B19:
%56 = getelementptr inbounds %STRUCT0, ptr %11, i32 0, i32 2
%57 = load i32, ptr %10, align 4, !tbaa !18
%58 = sext i32 %57 to i64
%59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %58) #5
%60 = load i32, ptr %59, align 4, !tbaa !18
%61 = sext i32 %60 to i64
%62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %61) #5
%63 = load i32, ptr %62, align 4, !tbaa !18
%64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef %63)
to label %B20 unwind label %B23
B20:
%65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B21 unwind label %B23
B21:
br label %B22
B22:
%66 = load i32, ptr %10, align 4, !tbaa !18
%67 = add nsw i32 %66, 1
store i32 %67, ptr %10, align 4, !tbaa !18
br label %B15, !llvm.loop !22
B23:
%68 = landingpad { ptr, i32 }
cleanup
%69 = extractvalue { ptr, i32 } %68, 0
store ptr %69, ptr %5, align 8
%70 = extractvalue { ptr, i32 } %68, 1
store i32 %70, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
br label %B25
B24:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
ret void
B25:
call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
br label %B26
B26:
%71 = load ptr, ptr %5, align 8
%72 = load i32, ptr %6, align 4
%73 = insertvalue { ptr, i32 } poison, ptr %71, 0
%74 = insertvalue { ptr, i32 } %73, i32 %72, 1
resume { ptr, i32 } %74
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"_ZTS9Community", !11, i64 0, !12, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !12, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca %"class.std::vector", align 8
%3 = alloca i32, align 4
%4 = alloca %"class.std::allocator", align 1
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
%5 = getelementptr inbounds i8, ptr %0, i64 40
%6 = load i32, ptr %5, align 8, !tbaa !5
%7 = sext i32 %6 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
store i32 -1, ptr %3, align 4, !tbaa !17
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %7, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %8 unwind label %13
8: ; preds = %1
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
%9 = load i32, ptr %5, align 8, !tbaa !5
%10 = icmp sgt i32 %9, 0
br i1 %10, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %8
%11 = getelementptr inbounds i8, ptr %0, i64 48
br label %15
.preheader20: ; preds = %15
%12 = icmp sgt i32 %22, 0
br i1 %12, label %.lr.ph24, label %._crit_edge
13: ; preds = %1
%14 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
br label %56
15: ; preds = %.lr.ph, %15
%indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %15 ]
%16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #5
%17 = load i32, ptr %16, align 4, !tbaa !17
%18 = sext i32 %17 to i64
%19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %18) #5
%20 = load i32, ptr %19, align 4, !tbaa !17
%21 = add nsw i32 %20, 1
store i32 %21, ptr %19, align 4, !tbaa !17
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%22 = load i32, ptr %5, align 8, !tbaa !5
%23 = sext i32 %22 to i64
%24 = icmp slt i64 %indvars.iv.next, %23
br i1 %24, label %15, label %.preheader20, !llvm.loop !18
.preheader: ; preds = %32
%25 = icmp sgt i32 %33, 0
br i1 %25, label %.lr.ph26, label %._crit_edge
.lr.ph26: ; preds = %.preheader
%26 = getelementptr inbounds i8, ptr %0, i64 48
br label %36
.lr.ph24: ; preds = %.preheader20, %32
%indvars.iv28 = phi i64 [ %indvars.iv.next29, %32 ], [ 0, %.preheader20 ]
%.01522 = phi i32 [ %.1, %32 ], [ 0, %.preheader20 ]
%27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv28) #5
%28 = load i32, ptr %27, align 4, !tbaa !17
%.not = icmp eq i32 %28, -1
br i1 %.not, label %32, label %29
29: ; preds = %.lr.ph24
%30 = add nsw i32 %.01522, 1
%31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv28) #5
store i32 %.01522, ptr %31, align 4, !tbaa !17
br label %32
32: ; preds = %.lr.ph24, %29
%.1 = phi i32 [ %30, %29 ], [ %.01522, %.lr.ph24 ]
%indvars.iv.next29 = add nuw nsw i64 %indvars.iv28, 1
%33 = load i32, ptr %5, align 8, !tbaa !5
%34 = sext i32 %33 to i64
%35 = icmp slt i64 %indvars.iv.next29, %34
br i1 %35, label %.lr.ph24, label %.preheader, !llvm.loop !20
._crit_edge: ; preds = %50, %8, %.preheader20, %.preheader
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
ret void
36: ; preds = %.lr.ph26, %50
%indvars.iv31 = phi i64 [ 0, %.lr.ph26 ], [ %indvars.iv.next32, %50 ]
%37 = trunc nuw nsw i64 %indvars.iv31 to i32
%38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %37)
to label %39 unwind label %54
39: ; preds = %36
%40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @.str.1)
to label %41 unwind label %54
41: ; preds = %39
%42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv31) #5
%43 = load i32, ptr %42, align 4, !tbaa !17
%44 = sext i32 %43 to i64
%45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %44) #5
%46 = load i32, ptr %45, align 4, !tbaa !17
%47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %46)
to label %48 unwind label %54
48: ; preds = %41
%49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %50 unwind label %54
50: ; preds = %48
%indvars.iv.next32 = add nuw nsw i64 %indvars.iv31, 1
%51 = load i32, ptr %5, align 8, !tbaa !5
%52 = sext i32 %51 to i64
%53 = icmp slt i64 %indvars.iv.next32, %52
br i1 %53, label %36, label %._crit_edge, !llvm.loop !21
54: ; preds = %48, %41, %39, %36
%55 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
br label %56
56: ; preds = %54, %13
%.pn = phi { ptr, i32 } [ %55, %54 ], [ %14, %13 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
resume { ptr, i32 } %.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 40}
!6 = !{!"_ZTS9Community", !7, i64 0, !8, i64 40, !12, i64 48, !12, i64 72, !12, i64 96, !8, i64 120, !16, i64 128, !16, i64 136}
!7 = !{!"_ZTS5Graph", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"double", !9, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
| EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 668754e6d480c41d | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9Community17display_partitionEv | BSD-2-Clause |
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"
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.11" = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { ptr, ptr }
%"struct.std::pair.5" = type { i32, i32 }
%"struct.std::pair.3" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%"struct.std::pair.7" = type { i32, i32 }
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #6 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind noalias writable sret(%class.Graph) align 8 %0, ptr noundef nonnull align 8 dereferenceable(144) %1) #6 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca ptr, align 8
%4 = alloca %"class.std::vector", align 8
%5 = alloca i32, align 4
%6 = alloca %"class.std::allocator", align 1
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca %"class.std::vector.9", align 8
%13 = alloca %"class.std::allocator.11", align 1
%14 = alloca i32, align 4
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca %"class.std::map", align 8
%20 = alloca %"struct.std::_Rb_tree_iterator", align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca %"struct.std::pair", align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca %"struct.std::_Rb_tree_iterator", align 8
%30 = alloca %"struct.std::_Rb_tree_iterator", align 8
%31 = alloca %"struct.std::pair.5", align 4
%32 = alloca %"struct.std::pair.3", align 8
%33 = alloca %"struct.std::_Rb_tree_iterator", align 8
%34 = alloca %"struct.std::_Rb_tree_iterator", align 8
%35 = alloca %"struct.std::_Rb_tree_iterator", align 8
store ptr %1, ptr %3, align 8, !tbaa !5
%36 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #9
%37 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 1
%38 = load i32, ptr %37, align 8, !tbaa !9
%39 = sext i32 %38 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
store i32 -1, ptr %5, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 1, ptr %6) #9
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %39, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %40 unwind label %47
40: ; preds = %2
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
store i32 0, ptr %9, align 4, !tbaa !18
br label %41
41: ; preds = %61, %40
%42 = load i32, ptr %9, align 4, !tbaa !18
%43 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 1
%44 = load i32, ptr %43, align 8, !tbaa !9
%45 = icmp slt i32 %42, %44
br i1 %45, label %51, label %46
46: ; preds = %41
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
br label %64
47: ; preds = %2
%48 = landingpad { ptr, i32 }
cleanup
%49 = extractvalue { ptr, i32 } %48, 0
store ptr %49, ptr %7, align 8
%50 = extractvalue { ptr, i32 } %48, 1
store i32 %50, ptr %8, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
br label %347
51: ; preds = %41
%52 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 2
%53 = load i32, ptr %9, align 4, !tbaa !18
%54 = sext i32 %53 to i64
%55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54) #9
%56 = load i32, ptr %55, align 4, !tbaa !18
%57 = sext i32 %56 to i64
%58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %57) #9
%59 = load i32, ptr %58, align 4, !tbaa !18
%60 = add nsw i32 %59, 1
store i32 %60, ptr %58, align 4, !tbaa !18
br label %61
61: ; preds = %51
%62 = load i32, ptr %9, align 4, !tbaa !18
%63 = add nsw i32 %62, 1
store i32 %63, ptr %9, align 4, !tbaa !18
br label %41, !llvm.loop !19
64: ; preds = %46
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
store i32 0, ptr %10, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
store i32 0, ptr %11, align 4, !tbaa !18
br label %65
65: ; preds = %84, %64
%66 = load i32, ptr %11, align 4, !tbaa !18
%67 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 1
%68 = load i32, ptr %67, align 8, !tbaa !9
%69 = icmp slt i32 %66, %68
br i1 %69, label %71, label %70
70: ; preds = %65
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
br label %87
71: ; preds = %65
%72 = load i32, ptr %11, align 4, !tbaa !18
%73 = sext i32 %72 to i64
%74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %73) #9
%75 = load i32, ptr %74, align 4, !tbaa !18
%76 = icmp ne i32 %75, -1
br i1 %76, label %77, label %83
77: ; preds = %71
%78 = load i32, ptr %10, align 4, !tbaa !18
%79 = add nsw i32 %78, 1
store i32 %79, ptr %10, align 4, !tbaa !18
%80 = load i32, ptr %11, align 4, !tbaa !18
%81 = sext i32 %80 to i64
%82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %81) #9
store i32 %78, ptr %82, align 4, !tbaa !18
br label %83
83: ; preds = %77, %71
br label %84
84: ; preds = %83
%85 = load i32, ptr %11, align 4, !tbaa !18
%86 = add nsw i32 %85, 1
store i32 %86, ptr %11, align 4, !tbaa !18
br label %65, !llvm.loop !21
87: ; preds = %70
call void @llvm.lifetime.start.p0(i64 24, ptr %12) #9
%88 = load i32, ptr %10, align 4, !tbaa !18
%89 = sext i32 %88 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %13) #9
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %89, ptr noundef nonnull align 1 dereferenceable(1) %13)
to label %90 unwind label %97
90: ; preds = %87
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
store i32 0, ptr %14, align 4, !tbaa !18
br label %91
91: ; preds = %113, %90
%92 = load i32, ptr %14, align 4, !tbaa !18
%93 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 1
%94 = load i32, ptr %93, align 8, !tbaa !9
%95 = icmp slt i32 %92, %94
br i1 %95, label %101, label %96
96: ; preds = %91
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
br label %120
97: ; preds = %87
%98 = landingpad { ptr, i32 }
cleanup
%99 = extractvalue { ptr, i32 } %98, 0
store ptr %99, ptr %7, align 8
%100 = extractvalue { ptr, i32 } %98, 1
store i32 %100, ptr %8, align 4
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
br label %346
101: ; preds = %91
%102 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 2
%103 = load i32, ptr %14, align 4, !tbaa !18
%104 = sext i32 %103 to i64
%105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %104) #9
%106 = load i32, ptr %105, align 4, !tbaa !18
%107 = sext i32 %106 to i64
%108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %107) #9
%109 = load i32, ptr %108, align 4, !tbaa !18
%110 = sext i32 %109 to i64
%111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %110) #9
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %111, ptr noundef nonnull align 4 dereferenceable(4) %14)
to label %112 unwind label %116
112: ; preds = %101
br label %113
113: ; preds = %112
%114 = load i32, ptr %14, align 4, !tbaa !18
%115 = add nsw i32 %114, 1
store i32 %115, ptr %14, align 4, !tbaa !18
br label %91, !llvm.loop !22
116: ; preds = %101
%117 = landingpad { ptr, i32 }
cleanup
%118 = extractvalue { ptr, i32 } %117, 0
store ptr %118, ptr %7, align 8
%119 = extractvalue { ptr, i32 } %117, 1
store i32 %119, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
br label %345
120: ; preds = %96
invoke void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
to label %121 unwind label %140
121: ; preds = %120
%122 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
%123 = trunc i64 %122 to i32
%124 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 0
store i32 %123, ptr %124, align 8, !tbaa !23
%125 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
%126 = mul i64 %125, 4
%127 = call noalias ptr @malloc(i64 noundef %126) #10
%128 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 3
store ptr %127, ptr %128, align 8, !tbaa !24
%129 = call noalias ptr @malloc(i64 noundef 80000000) #10
%130 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 4
store ptr %129, ptr %130, align 8, !tbaa !25
%131 = call noalias ptr @malloc(i64 noundef 80000000) #10
%132 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 5
store ptr %131, ptr %132, align 8, !tbaa !26
call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
store i64 0, ptr %15, align 8, !tbaa !27
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
%133 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
%134 = trunc i64 %133 to i32
store i32 %134, ptr %16, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
store i32 0, ptr %17, align 4, !tbaa !18
br label %135
135: ; preds = %325, %121
%136 = load i32, ptr %17, align 4, !tbaa !18
%137 = load i32, ptr %16, align 4, !tbaa !18
%138 = icmp slt i32 %136, %137
br i1 %138, label %144, label %139
139: ; preds = %135
store i32 11, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
br label %328
140: ; preds = %120
%141 = landingpad { ptr, i32 }
cleanup
%142 = extractvalue { ptr, i32 } %141, 0
store ptr %142, ptr %7, align 8
%143 = extractvalue { ptr, i32 } %141, 1
store i32 %143, ptr %8, align 4
br label %345
144: ; preds = %135
call void @llvm.lifetime.start.p0(i64 48, ptr %19) #9
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
call void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
%145 = load i32, ptr %17, align 4, !tbaa !18
%146 = sext i32 %145 to i64
%147 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %146) #9
%148 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #9
%149 = trunc i64 %148 to i32
store i32 %149, ptr %21, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
store i32 0, ptr %22, align 4, !tbaa !18
br label %150
150: ; preds = %257, %144
%151 = load i32, ptr %22, align 4, !tbaa !18
%152 = load i32, ptr %21, align 4, !tbaa !18
%153 = icmp slt i32 %151, %152
br i1 %153, label %155, label %154
154: ; preds = %150
store i32 14, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
br label %262
155: ; preds = %150
call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
%156 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 0
%157 = load i32, ptr %17, align 4, !tbaa !18
%158 = sext i32 %157 to i64
%159 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %158) #9
%160 = load i32, ptr %22, align 4, !tbaa !18
%161 = sext i32 %160 to i64
%162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #9
%163 = load i32, ptr %162, align 4, !tbaa !18
%164 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %156, i32 noundef %163)
to label %165 unwind label %185
165: ; preds = %155
%166 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 0
%167 = extractvalue { ptr, ptr } %164, 0
store ptr %167, ptr %166, align 8
%168 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 1
%169 = extractvalue { ptr, ptr } %164, 1
store ptr %169, ptr %168, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
%170 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 0
%171 = load i32, ptr %17, align 4, !tbaa !18
%172 = sext i32 %171 to i64
%173 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %172) #9
%174 = load i32, ptr %22, align 4, !tbaa !18
%175 = sext i32 %174 to i64
%176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %175) #9
%177 = load i32, ptr %176, align 4, !tbaa !18
%178 = invoke noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %170, i32 noundef %177)
to label %179 unwind label %189
179: ; preds = %165
store i32 %178, ptr %24, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
store i32 0, ptr %25, align 4, !tbaa !18
br label %180
180: ; preds = %252, %179
%181 = load i32, ptr %25, align 4, !tbaa !18
%182 = load i32, ptr %24, align 4, !tbaa !18
%183 = icmp slt i32 %181, %182
br i1 %183, label %193, label %184
184: ; preds = %180
store i32 17, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
br label %256
185: ; preds = %155
%186 = landingpad { ptr, i32 }
cleanup
%187 = extractvalue { ptr, i32 } %186, 0
store ptr %187, ptr %7, align 8
%188 = extractvalue { ptr, i32 } %186, 1
store i32 %188, ptr %8, align 4
br label %261
189: ; preds = %165
%190 = landingpad { ptr, i32 }
cleanup
%191 = extractvalue { ptr, i32 } %190, 0
store ptr %191, ptr %7, align 8
%192 = extractvalue { ptr, i32 } %190, 1
store i32 %192, ptr %8, align 4
br label %260
193: ; preds = %180
call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
%194 = getelementptr inbounds %"struct.std::pair", ptr %23, i32 0, i32 0
%195 = load ptr, ptr %194, align 8, !tbaa !29
%196 = load i32, ptr %25, align 4, !tbaa !18
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i32, ptr %195, i64 %197
%199 = load i32, ptr %198, align 4, !tbaa !18
store i32 %199, ptr %26, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
%200 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 2
%201 = load i32, ptr %26, align 4, !tbaa !18
%202 = sext i32 %201 to i64
%203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %202) #9
%204 = load i32, ptr %203, align 4, !tbaa !18
%205 = sext i32 %204 to i64
%206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %205) #9
%207 = load i32, ptr %206, align 4, !tbaa !18
store i32 %207, ptr %27, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
%208 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 0
%209 = getelementptr inbounds %class.Graph, ptr %208, i32 0, i32 5
%210 = load ptr, ptr %209, align 8, !tbaa !31
%211 = icmp eq ptr %210, null
br i1 %211, label %212, label %213
212: ; preds = %193
br label %220
213: ; preds = %193
%214 = getelementptr inbounds %"struct.std::pair", ptr %23, i32 0, i32 1
%215 = load ptr, ptr %214, align 8, !tbaa !32
%216 = load i32, ptr %25, align 4, !tbaa !18
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i32, ptr %215, i64 %217
%219 = load i32, ptr %218, align 4, !tbaa !18
br label %220
220: ; preds = %213, %212
%221 = phi i32 [ 1, %212 ], [ %219, %213 ]
store i32 %221, ptr %28, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
%222 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 4 dereferenceable(4) %27)
to label %223 unwind label %237
223: ; preds = %220
%224 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %29, i32 0, i32 0
store ptr %222, ptr %224, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %29, i64 8, i1 false), !tbaa.struct !33
call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
%225 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
%226 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %30, i32 0, i32 0
store ptr %225, ptr %226, align 8
%227 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %30) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
br i1 %227, label %228, label %245
228: ; preds = %223
call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
%229 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
to label %230 unwind label %241
230: ; preds = %228
store i64 %229, ptr %31, align 4
%231 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 4 dereferenceable(8) %31)
to label %232 unwind label %241
232: ; preds = %230
%233 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 0
%234 = extractvalue { ptr, i8 } %231, 0
store ptr %234, ptr %233, align 8
%235 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 1
%236 = extractvalue { ptr, i8 } %231, 1
store i8 %236, ptr %235, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
br label %251
237: ; preds = %220
%238 = landingpad { ptr, i32 }
cleanup
%239 = extractvalue { ptr, i32 } %238, 0
store ptr %239, ptr %7, align 8
%240 = extractvalue { ptr, i32 } %238, 1
store i32 %240, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
br label %255
241: ; preds = %230, %228
%242 = landingpad { ptr, i32 }
cleanup
%243 = extractvalue { ptr, i32 } %242, 0
store ptr %243, ptr %7, align 8
%244 = extractvalue { ptr, i32 } %242, 1
store i32 %244, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
br label %255
245: ; preds = %223
%246 = load i32, ptr %28, align 4, !tbaa !18
%247 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
%248 = getelementptr inbounds %"struct.std::pair.7", ptr %247, i32 0, i32 1
%249 = load i32, ptr %248, align 4, !tbaa !34
%250 = add nsw i32 %249, %246
store i32 %250, ptr %248, align 4, !tbaa !34
br label %251
251: ; preds = %245, %232
call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
br label %252
252: ; preds = %251
%253 = load i32, ptr %25, align 4, !tbaa !18
%254 = add nsw i32 %253, 1
store i32 %254, ptr %25, align 4, !tbaa !18
br label %180, !llvm.loop !36
255: ; preds = %241, %237
call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
br label %260
256: ; preds = %184
call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
br label %257
257: ; preds = %256
%258 = load i32, ptr %22, align 4, !tbaa !18
%259 = add nsw i32 %258, 1
store i32 %259, ptr %22, align 4, !tbaa !18
br label %150, !llvm.loop !37
260: ; preds = %255, %189
call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
br label %261
261: ; preds = %260, %185
call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
call void @llvm.lifetime.end.p0(i64 48, ptr %19) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
br label %345
262: ; preds = %154
%263 = load i32, ptr %17, align 4, !tbaa !18
%264 = icmp eq i32 %263, 0
br i1 %264, label %265, label %267
265: ; preds = %262
%266 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
br label %278
267: ; preds = %262
%268 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 3
%269 = load ptr, ptr %268, align 8, !tbaa !24
%270 = load i32, ptr %17, align 4, !tbaa !18
%271 = sub nsw i32 %270, 1
%272 = sext i32 %271 to i64
%273 = getelementptr inbounds i32, ptr %269, i64 %272
%274 = load i32, ptr %273, align 4, !tbaa !18
%275 = sext i32 %274 to i64
%276 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
%277 = add i64 %275, %276
br label %278
278: ; preds = %267, %265
%279 = phi i64 [ %266, %265 ], [ %277, %267 ]
%280 = trunc i64 %279 to i32
%281 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 3
%282 = load ptr, ptr %281, align 8, !tbaa !24
%283 = load i32, ptr %17, align 4, !tbaa !18
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds i32, ptr %282, i64 %284
store i32 %280, ptr %285, align 4, !tbaa !18
%286 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
%287 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 1
%288 = load i32, ptr %287, align 4, !tbaa !38
%289 = sext i32 %288 to i64
%290 = add i64 %289, %286
%291 = trunc i64 %290 to i32
store i32 %291, ptr %287, align 4, !tbaa !38
call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
%292 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
%293 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %33, i32 0, i32 0
store ptr %292, ptr %293, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %33, i64 8, i1 false), !tbaa.struct !33
call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
br label %294
294: ; preds = %321, %278
call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
%295 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
%296 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %34, i32 0, i32 0
store ptr %295, ptr %296, align 8
%297 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %34) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
br i1 %297, label %298, label %324
298: ; preds = %294
%299 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
%300 = getelementptr inbounds %"struct.std::pair.7", ptr %299, i32 0, i32 1
%301 = load i32, ptr %300, align 4, !tbaa !34
%302 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 2
%303 = load i32, ptr %302, align 8, !tbaa !39
%304 = add nsw i32 %303, %301
store i32 %304, ptr %302, align 8, !tbaa !39
%305 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
%306 = getelementptr inbounds %"struct.std::pair.7", ptr %305, i32 0, i32 0
%307 = load i32, ptr %306, align 4, !tbaa !40
%308 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 4
%309 = load ptr, ptr %308, align 8, !tbaa !25
%310 = load i64, ptr %15, align 8, !tbaa !27
%311 = getelementptr inbounds i32, ptr %309, i64 %310
store i32 %307, ptr %311, align 4, !tbaa !18
%312 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
%313 = getelementptr inbounds %"struct.std::pair.7", ptr %312, i32 0, i32 1
%314 = load i32, ptr %313, align 4, !tbaa !34
%315 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 5
%316 = load ptr, ptr %315, align 8, !tbaa !26
%317 = load i64, ptr %15, align 8, !tbaa !27
%318 = getelementptr inbounds i32, ptr %316, i64 %317
store i32 %314, ptr %318, align 4, !tbaa !18
%319 = load i64, ptr %15, align 8, !tbaa !27
%320 = add nsw i64 %319, 1
store i64 %320, ptr %15, align 8, !tbaa !27
br label %321
321: ; preds = %298
%322 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %20, i32 noundef 0) #9
%323 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %35, i32 0, i32 0
store ptr %322, ptr %323, align 8
br label %294, !llvm.loop !41
324: ; preds = %294
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #9
call void @llvm.lifetime.end.p0(i64 48, ptr %19) #9
br label %325
325: ; preds = %324
%326 = load i32, ptr %17, align 4, !tbaa !18
%327 = add nsw i32 %326, 1
store i32 %327, ptr %17, align 4, !tbaa !18
br label %135, !llvm.loop !42
328: ; preds = %139
%329 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 0
%330 = getelementptr inbounds %class.Graph, ptr %329, i32 0, i32 4
%331 = load ptr, ptr %330, align 8, !tbaa !43
%332 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 1
%333 = load i32, ptr %332, align 4, !tbaa !38
%334 = sext i32 %333 to i64
%335 = mul nsw i64 %334, 4
%336 = call ptr @realloc(ptr noundef %331, i64 noundef %335) #11
%337 = getelementptr inbounds %class.Community, ptr %36, i32 0, i32 0
%338 = getelementptr inbounds %class.Graph, ptr %337, i32 0, i32 5
%339 = load ptr, ptr %338, align 8, !tbaa !31
%340 = getelementptr inbounds %class.Graph, ptr %0, i32 0, i32 1
%341 = load i32, ptr %340, align 4, !tbaa !38
%342 = sext i32 %341 to i64
%343 = mul nsw i64 %342, 4
%344 = call ptr @realloc(ptr noundef %339, i64 noundef %343) #11
store i32 1, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #9
ret void
345: ; preds = %261, %140, %116
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
br label %346
346: ; preds = %345, %97
call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
br label %347
347: ; preds = %346, %47
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #9
br label %348
348: ; preds = %347
%349 = load ptr, ptr %7, align 8
%350 = load i32, ptr %8, align 4
%351 = insertvalue { ptr, i32 } poison, ptr %349, 0
%352 = insertvalue { ptr, i32 } %351, i32 %350, 1
resume { ptr, i32 } %352
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2
; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #8
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { mustprogress 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 #7 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind allocsize(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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind allocsize(1) }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"_ZTS9Community", !11, i64 0, !12, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !12, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{!11, !12, i64 0}
!24 = !{!11, !6, i64 16}
!25 = !{!11, !6, i64 24}
!26 = !{!11, !6, i64 32}
!27 = !{!28, !28, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!31 = !{!10, !6, i64 32}
!32 = !{!30, !6, i64 8}
!33 = !{i64 0, i64 8, !5}
!34 = !{!35, !12, i64 4}
!35 = !{!"_ZTSSt4pairIKiiE", !12, i64 0, !12, i64 4}
!36 = distinct !{!36, !20}
!37 = distinct !{!37, !20}
!38 = !{!11, !12, i64 4}
!39 = !{!11, !12, i64 8}
!40 = !{!35, !12, i64 0}
!41 = distinct !{!41, !20}
!42 = distinct !{!42, !20}
!43 = !{!10, !6, i64 24}
| 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"
%STRUCT0 = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.11" = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { ptr, ptr }
%"struct.std::pair.5" = type { i32, i32 }
%"struct.std::pair.3" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%STRUCT1 = type { %STRUCT0, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%"struct.std::pair.7" = type { i32, i32 }
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #6 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind noalias writable sret(%STRUCT0) align 8 %0, ptr noundef nonnull align 8 dereferenceable(144) %1) #6 align 2 personality ptr @__gxx_personality_v0 {
B0:
%2 = alloca ptr, align 8
%3 = alloca %"class.std::vector", align 8
%4 = alloca i32, align 4
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %"class.std::vector.9", align 8
%12 = alloca %"class.std::allocator.11", align 1
%13 = alloca i32, align 4
%14 = alloca i64, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca %"class.std::map", align 8
%19 = alloca %"struct.std::_Rb_tree_iterator", align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca %"struct.std::pair", align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca %"struct.std::_Rb_tree_iterator", align 8
%29 = alloca %"struct.std::_Rb_tree_iterator", align 8
%30 = alloca %"struct.std::pair.5", align 4
%31 = alloca %"struct.std::pair.3", align 8
%32 = alloca %"struct.std::_Rb_tree_iterator", align 8
%33 = alloca %"struct.std::_Rb_tree_iterator", align 8
%34 = alloca %"struct.std::_Rb_tree_iterator", align 8
store ptr %1, ptr %2, align 8, !tbaa !5
%35 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #9
%36 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 1
%37 = load i32, ptr %36, align 8, !tbaa !9
%38 = sext i32 %37 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
store i32 -1, ptr %4, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #9
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %38, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
store i32 0, ptr %8, align 4, !tbaa !18
br label %B2
B2:
%39 = load i32, ptr %8, align 4, !tbaa !18
%40 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 1
%41 = load i32, ptr %40, align 8, !tbaa !9
%42 = icmp slt i32 %39, %41
br i1 %42, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
br label %B7
B4:
%43 = landingpad { ptr, i32 }
cleanup
%44 = extractvalue { ptr, i32 } %43, 0
store ptr %44, ptr %6, align 8
%45 = extractvalue { ptr, i32 } %43, 1
store i32 %45, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
br label %B68
B5:
%46 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 2
%47 = load i32, ptr %8, align 4, !tbaa !18
%48 = sext i32 %47 to i64
%49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #9
%50 = load i32, ptr %49, align 4, !tbaa !18
%51 = sext i32 %50 to i64
%52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %51) #9
%53 = load i32, ptr %52, align 4, !tbaa !18
%54 = add nsw i32 %53, 1
store i32 %54, ptr %52, align 4, !tbaa !18
br label %B6
B6:
%55 = load i32, ptr %8, align 4, !tbaa !18
%56 = add nsw i32 %55, 1
store i32 %56, ptr %8, align 4, !tbaa !18
br label %B2, !llvm.loop !19
B7:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
store i32 0, ptr %9, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
store i32 0, ptr %10, align 4, !tbaa !18
br label %B8
B8:
%57 = load i32, ptr %10, align 4, !tbaa !18
%58 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 1
%59 = load i32, ptr %58, align 8, !tbaa !9
%60 = icmp slt i32 %57, %59
br i1 %60, label %B10, label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
br label %B14
B10:
%61 = load i32, ptr %10, align 4, !tbaa !18
%62 = sext i32 %61 to i64
%63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62) #9
%64 = load i32, ptr %63, align 4, !tbaa !18
%65 = icmp ne i32 %64, -1
br i1 %65, label %B11, label %B12
B11:
%66 = load i32, ptr %9, align 4, !tbaa !18
%67 = add nsw i32 %66, 1
store i32 %67, ptr %9, align 4, !tbaa !18
%68 = load i32, ptr %10, align 4, !tbaa !18
%69 = sext i32 %68 to i64
%70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %69) #9
store i32 %66, ptr %70, align 4, !tbaa !18
br label %B12
B12:
br label %B13
B13:
%71 = load i32, ptr %10, align 4, !tbaa !18
%72 = add nsw i32 %71, 1
store i32 %72, ptr %10, align 4, !tbaa !18
br label %B8, !llvm.loop !21
B14:
call void @llvm.lifetime.start.p0(i64 24, ptr %11) #9
%73 = load i32, ptr %9, align 4, !tbaa !18
%74 = sext i32 %73 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %12) #9
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %74, ptr noundef nonnull align 1 dereferenceable(1) %12)
to label %B15 unwind label %B18
B15:
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
call void @llvm.lifetime.end.p0(i64 1, ptr %12) #9
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
store i32 0, ptr %13, align 4, !tbaa !18
br label %B16
B16:
%75 = load i32, ptr %13, align 4, !tbaa !18
%76 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 1
%77 = load i32, ptr %76, align 8, !tbaa !9
%78 = icmp slt i32 %75, %77
br i1 %78, label %B19, label %B17
B17:
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
br label %B23
B18:
%79 = landingpad { ptr, i32 }
cleanup
%80 = extractvalue { ptr, i32 } %79, 0
store ptr %80, ptr %6, align 8
%81 = extractvalue { ptr, i32 } %79, 1
store i32 %81, ptr %7, align 4
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
call void @llvm.lifetime.end.p0(i64 1, ptr %12) #9
br label %B67
B19:
%82 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 2
%83 = load i32, ptr %13, align 4, !tbaa !18
%84 = sext i32 %83 to i64
%85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #9
%86 = load i32, ptr %85, align 4, !tbaa !18
%87 = sext i32 %86 to i64
%88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %87) #9
%89 = load i32, ptr %88, align 4, !tbaa !18
%90 = sext i32 %89 to i64
%91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %90) #9
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 4 dereferenceable(4) %13)
to label %B20 unwind label %B22
B20:
br label %B21
B21:
%92 = load i32, ptr %13, align 4, !tbaa !18
%93 = add nsw i32 %92, 1
store i32 %93, ptr %13, align 4, !tbaa !18
br label %B16, !llvm.loop !22
B22:
%94 = landingpad { ptr, i32 }
cleanup
%95 = extractvalue { ptr, i32 } %94, 0
store ptr %95, ptr %6, align 8
%96 = extractvalue { ptr, i32 } %94, 1
store i32 %96, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
br label %B66
B23:
invoke void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
to label %B24 unwind label %B27
B24:
%97 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
%98 = trunc i64 %97 to i32
%99 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 0
store i32 %98, ptr %99, align 8, !tbaa !23
%100 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
%101 = mul i64 %100, 4
%102 = call noalias ptr @malloc(i64 noundef %101) #10
%103 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 3
store ptr %102, ptr %103, align 8, !tbaa !24
%104 = call noalias ptr @malloc(i64 noundef 80000000) #10
%105 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 4
store ptr %104, ptr %105, align 8, !tbaa !25
%106 = call noalias ptr @malloc(i64 noundef 80000000) #10
%107 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 5
store ptr %106, ptr %107, align 8, !tbaa !26
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
store i64 0, ptr %14, align 8, !tbaa !27
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
%108 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
%109 = trunc i64 %108 to i32
store i32 %109, ptr %15, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
store i32 0, ptr %16, align 4, !tbaa !18
br label %B25
B25:
%110 = load i32, ptr %16, align 4, !tbaa !18
%111 = load i32, ptr %15, align 4, !tbaa !18
%112 = icmp slt i32 %110, %111
br i1 %112, label %B28, label %B26
B26:
store i32 11, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
br label %B65
B27:
%113 = landingpad { ptr, i32 }
cleanup
%114 = extractvalue { ptr, i32 } %113, 0
store ptr %114, ptr %6, align 8
%115 = extractvalue { ptr, i32 } %113, 1
store i32 %115, ptr %7, align 4
br label %B66
B28:
call void @llvm.lifetime.start.p0(i64 48, ptr %18) #9
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
call void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
%116 = load i32, ptr %16, align 4, !tbaa !18
%117 = sext i32 %116 to i64
%118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %117) #9
%119 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #9
%120 = trunc i64 %119 to i32
store i32 %120, ptr %20, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
store i32 0, ptr %21, align 4, !tbaa !18
br label %B29
B29:
%121 = load i32, ptr %21, align 4, !tbaa !18
%122 = load i32, ptr %20, align 4, !tbaa !18
%123 = icmp slt i32 %121, %122
br i1 %123, label %B31, label %B30
B30:
store i32 14, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
br label %B56
B31:
call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
%124 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 0
%125 = load i32, ptr %16, align 4, !tbaa !18
%126 = sext i32 %125 to i64
%127 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %126) #9
%128 = load i32, ptr %21, align 4, !tbaa !18
%129 = sext i32 %128 to i64
%130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129) #9
%131 = load i32, ptr %130, align 4, !tbaa !18
%132 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %124, i32 noundef %131)
to label %B32 unwind label %B36
B32:
%133 = getelementptr inbounds { ptr, ptr }, ptr %22, i32 0, i32 0
%134 = extractvalue { ptr, ptr } %132, 0
store ptr %134, ptr %133, align 8
%135 = getelementptr inbounds { ptr, ptr }, ptr %22, i32 0, i32 1
%136 = extractvalue { ptr, ptr } %132, 1
store ptr %136, ptr %135, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
%137 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 0
%138 = load i32, ptr %16, align 4, !tbaa !18
%139 = sext i32 %138 to i64
%140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %139) #9
%141 = load i32, ptr %21, align 4, !tbaa !18
%142 = sext i32 %141 to i64
%143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142) #9
%144 = load i32, ptr %143, align 4, !tbaa !18
%145 = invoke noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %137, i32 noundef %144)
to label %B33 unwind label %B37
B33:
store i32 %145, ptr %23, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
store i32 0, ptr %24, align 4, !tbaa !18
br label %B34
B34:
%146 = load i32, ptr %24, align 4, !tbaa !18
%147 = load i32, ptr %23, align 4, !tbaa !18
%148 = icmp slt i32 %146, %147
br i1 %148, label %B38, label %B35
B35:
store i32 17, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
br label %B52
B36:
%149 = landingpad { ptr, i32 }
cleanup
%150 = extractvalue { ptr, i32 } %149, 0
store ptr %150, ptr %6, align 8
%151 = extractvalue { ptr, i32 } %149, 1
store i32 %151, ptr %7, align 4
br label %B55
B37:
%152 = landingpad { ptr, i32 }
cleanup
%153 = extractvalue { ptr, i32 } %152, 0
store ptr %153, ptr %6, align 8
%154 = extractvalue { ptr, i32 } %152, 1
store i32 %154, ptr %7, align 4
br label %B54
B38:
call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
%155 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 0
%156 = load ptr, ptr %155, align 8, !tbaa !29
%157 = load i32, ptr %24, align 4, !tbaa !18
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i32, ptr %156, i64 %158
%160 = load i32, ptr %159, align 4, !tbaa !18
store i32 %160, ptr %25, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
%161 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 2
%162 = load i32, ptr %25, align 4, !tbaa !18
%163 = sext i32 %162 to i64
%164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %161, i64 noundef %163) #9
%165 = load i32, ptr %164, align 4, !tbaa !18
%166 = sext i32 %165 to i64
%167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %166) #9
%168 = load i32, ptr %167, align 4, !tbaa !18
store i32 %168, ptr %26, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
%169 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 0
%170 = getelementptr inbounds %STRUCT0, ptr %169, i32 0, i32 5
%171 = load ptr, ptr %170, align 8, !tbaa !31
%172 = icmp eq ptr %171, null
br i1 %172, label %B39, label %B40
B39:
br label %B41
B40:
%173 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 1
%174 = load ptr, ptr %173, align 8, !tbaa !32
%175 = load i32, ptr %24, align 4, !tbaa !18
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds i32, ptr %174, i64 %176
%178 = load i32, ptr %177, align 4, !tbaa !18
br label %B41
B41:
%179 = phi i32 [ 1, %B39 ], [ %178, %B40 ]
store i32 %179, ptr %27, align 4, !tbaa !18
call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
%180 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 4 dereferenceable(4) %26)
to label %B42 unwind label %B46
B42:
%181 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %28, i32 0, i32 0
store ptr %180, ptr %181, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !33
call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
%182 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
%183 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %29, i32 0, i32 0
store ptr %182, ptr %183, align 8
%184 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %29) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
br i1 %184, label %B43, label %B48
B43:
call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
%185 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
to label %B44 unwind label %B47
B44:
store i64 %185, ptr %30, align 4
%186 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 4 dereferenceable(8) %30)
to label %B45 unwind label %B47
B45:
%187 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 0
%188 = extractvalue { ptr, i8 } %186, 0
store ptr %188, ptr %187, align 8
%189 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 1
%190 = extractvalue { ptr, i8 } %186, 1
store i8 %190, ptr %189, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
br label %B49
B46:
%191 = landingpad { ptr, i32 }
cleanup
%192 = extractvalue { ptr, i32 } %191, 0
store ptr %192, ptr %6, align 8
%193 = extractvalue { ptr, i32 } %191, 1
store i32 %193, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
br label %B51
B47:
%194 = landingpad { ptr, i32 }
cleanup
%195 = extractvalue { ptr, i32 } %194, 0
store ptr %195, ptr %6, align 8
%196 = extractvalue { ptr, i32 } %194, 1
store i32 %196, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
br label %B51
B48:
%197 = load i32, ptr %27, align 4, !tbaa !18
%198 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
%199 = getelementptr inbounds %"struct.std::pair.7", ptr %198, i32 0, i32 1
%200 = load i32, ptr %199, align 4, !tbaa !34
%201 = add nsw i32 %200, %197
store i32 %201, ptr %199, align 4, !tbaa !34
br label %B49
B49:
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
br label %B50
B50:
%202 = load i32, ptr %24, align 4, !tbaa !18
%203 = add nsw i32 %202, 1
store i32 %203, ptr %24, align 4, !tbaa !18
br label %B34, !llvm.loop !36
B51:
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
br label %B54
B52:
call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
br label %B53
B53:
%204 = load i32, ptr %21, align 4, !tbaa !18
%205 = add nsw i32 %204, 1
store i32 %205, ptr %21, align 4, !tbaa !18
br label %B29, !llvm.loop !37
B54:
call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
br label %B55
B55:
call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
call void @llvm.lifetime.end.p0(i64 48, ptr %18) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
br label %B66
B56:
%206 = load i32, ptr %16, align 4, !tbaa !18
%207 = icmp eq i32 %206, 0
br i1 %207, label %B57, label %B58
B57:
%208 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
br label %B59
B58:
%209 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 3
%210 = load ptr, ptr %209, align 8, !tbaa !24
%211 = load i32, ptr %16, align 4, !tbaa !18
%212 = sub nsw i32 %211, 1
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds i32, ptr %210, i64 %213
%215 = load i32, ptr %214, align 4, !tbaa !18
%216 = sext i32 %215 to i64
%217 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
%218 = add i64 %216, %217
br label %B59
B59:
%219 = phi i64 [ %208, %B57 ], [ %218, %B58 ]
%220 = trunc i64 %219 to i32
%221 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 3
%222 = load ptr, ptr %221, align 8, !tbaa !24
%223 = load i32, ptr %16, align 4, !tbaa !18
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i32, ptr %222, i64 %224
store i32 %220, ptr %225, align 4, !tbaa !18
%226 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
%227 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 1
%228 = load i32, ptr %227, align 4, !tbaa !38
%229 = sext i32 %228 to i64
%230 = add i64 %229, %226
%231 = trunc i64 %230 to i32
store i32 %231, ptr %227, align 4, !tbaa !38
call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
%232 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
%233 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %32, i32 0, i32 0
store ptr %232, ptr %233, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %32, i64 8, i1 false), !tbaa.struct !33
call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
br label %B60
B60:
call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
%234 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
%235 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %33, i32 0, i32 0
store ptr %234, ptr %235, align 8
%236 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %33) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
br i1 %236, label %B61, label %B63
B61:
%237 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
%238 = getelementptr inbounds %"struct.std::pair.7", ptr %237, i32 0, i32 1
%239 = load i32, ptr %238, align 4, !tbaa !34
%240 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 2
%241 = load i32, ptr %240, align 8, !tbaa !39
%242 = add nsw i32 %241, %239
store i32 %242, ptr %240, align 8, !tbaa !39
%243 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
%244 = getelementptr inbounds %"struct.std::pair.7", ptr %243, i32 0, i32 0
%245 = load i32, ptr %244, align 4, !tbaa !40
%246 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 4
%247 = load ptr, ptr %246, align 8, !tbaa !25
%248 = load i64, ptr %14, align 8, !tbaa !27
%249 = getelementptr inbounds i32, ptr %247, i64 %248
store i32 %245, ptr %249, align 4, !tbaa !18
%250 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
%251 = getelementptr inbounds %"struct.std::pair.7", ptr %250, i32 0, i32 1
%252 = load i32, ptr %251, align 4, !tbaa !34
%253 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 5
%254 = load ptr, ptr %253, align 8, !tbaa !26
%255 = load i64, ptr %14, align 8, !tbaa !27
%256 = getelementptr inbounds i32, ptr %254, i64 %255
store i32 %252, ptr %256, align 4, !tbaa !18
%257 = load i64, ptr %14, align 8, !tbaa !27
%258 = add nsw i64 %257, 1
store i64 %258, ptr %14, align 8, !tbaa !27
br label %B62
B62:
%259 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 0) #9
%260 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %34, i32 0, i32 0
store ptr %259, ptr %260, align 8
br label %B60, !llvm.loop !41
B63:
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #9
call void @llvm.lifetime.end.p0(i64 48, ptr %18) #9
br label %B64
B64:
%261 = load i32, ptr %16, align 4, !tbaa !18
%262 = add nsw i32 %261, 1
store i32 %262, ptr %16, align 4, !tbaa !18
br label %B25, !llvm.loop !42
B65:
%263 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 0
%264 = getelementptr inbounds %STRUCT0, ptr %263, i32 0, i32 4
%265 = load ptr, ptr %264, align 8, !tbaa !43
%266 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 1
%267 = load i32, ptr %266, align 4, !tbaa !38
%268 = sext i32 %267 to i64
%269 = mul nsw i64 %268, 4
%270 = call ptr @realloc(ptr noundef %265, i64 noundef %269) #11
%271 = getelementptr inbounds %STRUCT1, ptr %35, i32 0, i32 0
%272 = getelementptr inbounds %STRUCT0, ptr %271, i32 0, i32 5
%273 = load ptr, ptr %272, align 8, !tbaa !31
%274 = getelementptr inbounds %STRUCT0, ptr %0, i32 0, i32 1
%275 = load i32, ptr %274, align 4, !tbaa !38
%276 = sext i32 %275 to i64
%277 = mul nsw i64 %276, 4
%278 = call ptr @realloc(ptr noundef %273, i64 noundef %277) #11
store i32 1, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #9
ret void
B66:
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
br label %B67
B67:
call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
br label %B68
B68:
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #9
br label %B69
B69:
%279 = load ptr, ptr %6, align 8
%280 = load i32, ptr %7, align 4
%281 = insertvalue { ptr, i32 } poison, ptr %279, 0
%282 = insertvalue { ptr, i32 } %281, i32 %280, 1
resume { ptr, i32 } %282
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2
; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #8
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { mustprogress 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 #7 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind allocsize(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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind allocsize(1) }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"_ZTS9Community", !11, i64 0, !12, i64 40, !13, i64 48, !13, i64 72, !13, i64 96, !12, i64 120, !17, i64 128, !17, i64 136}
!11 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{!11, !12, i64 0}
!24 = !{!11, !6, i64 16}
!25 = !{!11, !6, i64 24}
!26 = !{!11, !6, i64 32}
!27 = !{!28, !28, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!31 = !{!10, !6, i64 32}
!32 = !{!30, !6, i64 8}
!33 = !{i64 0, i64 8, !5}
!34 = !{!35, !12, i64 4}
!35 = !{!"_ZTSSt4pairIKiiE", !12, i64 0, !12, i64 4}
!36 = distinct !{!36, !20}
!37 = distinct !{!37, !20}
!38 = !{!11, !12, i64 4}
!39 = !{!11, !12, i64 8}
!40 = !{!35, !12, i64 0}
!41 = distinct !{!41, !20}
!42 = distinct !{!42, !20}
!43 = !{!10, !6, i64 24} | 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"
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.11" = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.5" = type { i32, i32 }
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) 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
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind noalias writable sret(%class.Graph) align 8 %0, ptr noundef nonnull align 8 dereferenceable(144) %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca %"class.std::vector", align 8
%4 = alloca i32, align 4
%5 = alloca %"class.std::allocator", align 1
%6 = alloca %"class.std::vector.9", align 8
%7 = alloca %"class.std::allocator.11", align 1
%8 = alloca i32, align 4
%9 = alloca %"class.std::map", align 8
%10 = alloca %"struct.std::_Rb_tree_iterator", align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %"struct.std::_Rb_tree_iterator", align 8
%14 = alloca %"struct.std::pair.5", align 8
%15 = alloca %"struct.std::_Rb_tree_iterator", align 8
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
%16 = getelementptr inbounds i8, ptr %1, i64 40
%17 = load i32, ptr %16, align 8, !tbaa !5
%18 = sext i32 %17 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
store i32 -1, ptr %4, align 4, !tbaa !17
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %18, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %19 unwind label %24
19: ; preds = %2
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
%20 = load i32, ptr %16, align 8, !tbaa !5
%21 = icmp sgt i32 %20, 0
br i1 %21, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %19
%22 = getelementptr inbounds i8, ptr %1, i64 48
br label %26
.preheader: ; preds = %26
%23 = icmp sgt i32 %33, 0
br i1 %23, label %.lr.ph62, label %._crit_edge
24: ; preds = %2
%25 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
br label %200
26: ; preds = %.lr.ph, %26
%indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %26 ]
%27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #8
%28 = load i32, ptr %27, align 4, !tbaa !17
%29 = sext i32 %28 to i64
%30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %29) #8
%31 = load i32, ptr %30, align 4, !tbaa !17
%32 = add nsw i32 %31, 1
store i32 %32, ptr %30, align 4, !tbaa !17
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%33 = load i32, ptr %16, align 8, !tbaa !5
%34 = sext i32 %33 to i64
%35 = icmp slt i64 %indvars.iv.next, %34
br i1 %35, label %26, label %.preheader, !llvm.loop !18
._crit_edge.loopexit: ; preds = %42
%36 = sext i32 %.145 to i64
br label %._crit_edge
._crit_edge: ; preds = %19, %._crit_edge.loopexit, %.preheader
%.044.lcssa = phi i64 [ 0, %.preheader ], [ %36, %._crit_edge.loopexit ], [ 0, %19 ]
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.044.lcssa, ptr noundef nonnull align 1 dereferenceable(1) %7)
to label %46 unwind label %50
.lr.ph62: ; preds = %.preheader, %42
%indvars.iv86 = phi i64 [ %indvars.iv.next87, %42 ], [ 0, %.preheader ]
%.04461 = phi i32 [ %.145, %42 ], [ 0, %.preheader ]
%37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv86) #8
%38 = load i32, ptr %37, align 4, !tbaa !17
%.not = icmp eq i32 %38, -1
br i1 %.not, label %42, label %39
39: ; preds = %.lr.ph62
%40 = add nsw i32 %.04461, 1
%41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv86) #8
store i32 %.04461, ptr %41, align 4, !tbaa !17
br label %42
42: ; preds = %.lr.ph62, %39
%.145 = phi i32 [ %40, %39 ], [ %.04461, %.lr.ph62 ]
%indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
%43 = load i32, ptr %16, align 8, !tbaa !5
%44 = sext i32 %43 to i64
%45 = icmp slt i64 %indvars.iv.next87, %44
br i1 %45, label %.lr.ph62, label %._crit_edge.loopexit, !llvm.loop !20
46: ; preds = %._crit_edge
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
store i32 0, ptr %8, align 4, !tbaa !17
%47 = load i32, ptr %16, align 8, !tbaa !5
%48 = icmp sgt i32 %47, 0
br i1 %48, label %.lr.ph65, label %._crit_edge66
.lr.ph65: ; preds = %46
%49 = getelementptr inbounds i8, ptr %1, i64 48
br label %52
._crit_edge66: ; preds = %61, %46
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
invoke void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
to label %68 unwind label %99
50: ; preds = %._crit_edge
%51 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
br label %199
52: ; preds = %.lr.ph65, %61
%storemerge63 = phi i32 [ 0, %.lr.ph65 ], [ %63, %61 ]
%53 = sext i32 %storemerge63 to i64
%54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %53) #8
%55 = load i32, ptr %54, align 4, !tbaa !17
%56 = sext i32 %55 to i64
%57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %56) #8
%58 = load i32, ptr %57, align 4, !tbaa !17
%59 = sext i32 %58 to i64
%60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %59) #8
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(4) %8)
to label %61 unwind label %66
61: ; preds = %52
%62 = load i32, ptr %8, align 4, !tbaa !17
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4, !tbaa !17
%64 = load i32, ptr %16, align 8, !tbaa !5
%65 = icmp slt i32 %63, %64
br i1 %65, label %52, label %._crit_edge66, !llvm.loop !21
66: ; preds = %52
%67 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
br label %198
68: ; preds = %._crit_edge66
%69 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
%70 = trunc i64 %69 to i32
store i32 %70, ptr %0, align 8, !tbaa !22
%71 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
%72 = shl i64 %71, 2
%73 = call noalias ptr @malloc(i64 noundef %72) #9
%74 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %73, ptr %74, align 8, !tbaa !23
%75 = call noalias dereferenceable_or_null(80000000) ptr @malloc(i64 noundef 80000000) #9
%76 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %75, ptr %76, align 8, !tbaa !24
%77 = call noalias dereferenceable_or_null(80000000) ptr @malloc(i64 noundef 80000000) #9
%78 = getelementptr inbounds i8, ptr %0, i64 32
store ptr %77, ptr %78, align 8, !tbaa !25
%79 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
%80 = trunc i64 %79 to i32
%81 = icmp sgt i32 %80, 0
br i1 %81, label %.lr.ph83, label %._crit_edge84
.lr.ph83: ; preds = %68
%82 = getelementptr inbounds i8, ptr %1, i64 48
%83 = getelementptr inbounds i8, ptr %1, i64 32
%84 = getelementptr inbounds i8, ptr %0, i64 4
%85 = getelementptr inbounds i8, ptr %0, i64 8
%wide.trip.count100 = and i64 %79, 2147483647
br label %101
._crit_edge84: ; preds = %._crit_edge78, %68
%86 = getelementptr inbounds i8, ptr %1, i64 24
%87 = load ptr, ptr %86, align 8, !tbaa !26
%88 = getelementptr inbounds i8, ptr %0, i64 4
%89 = load i32, ptr %88, align 4, !tbaa !27
%90 = sext i32 %89 to i64
%91 = shl nsw i64 %90, 2
%92 = call ptr @realloc(ptr noundef %87, i64 noundef %91) #10
%93 = getelementptr inbounds i8, ptr %1, i64 32
%94 = load ptr, ptr %93, align 8, !tbaa !28
%95 = load i32, ptr %88, align 4, !tbaa !27
%96 = sext i32 %95 to i64
%97 = shl nsw i64 %96, 2
%98 = call ptr @realloc(ptr noundef %94, i64 noundef %97) #10
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
ret void
99: ; preds = %._crit_edge66
%100 = landingpad { ptr, i32 }
cleanup
br label %198
101: ; preds = %.lr.ph83, %._crit_edge78
%indvars.iv97 = phi i64 [ 0, %.lr.ph83 ], [ %indvars.iv.next98, %._crit_edge78 ]
%.04781 = phi i64 [ 0, %.lr.ph83 ], [ %.148.lcssa, %._crit_edge78 ]
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #8
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
call void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
%102 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv97) #8
%103 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #8
%104 = trunc i64 %103 to i32
%105 = icmp sgt i32 %104, 0
br i1 %105, label %.lr.ph73.preheader, label %._crit_edge74
.lr.ph73.preheader: ; preds = %101
%wide.trip.count95 = and i64 %103, 2147483647
br label %.lr.ph73
._crit_edge74: ; preds = %._crit_edge70, %101
%106 = icmp eq i64 %indvars.iv97, 0
br i1 %106, label %158, label %160
.lr.ph73: ; preds = %.lr.ph73.preheader, %._crit_edge70
%indvars.iv92 = phi i64 [ 0, %.lr.ph73.preheader ], [ %indvars.iv.next93, %._crit_edge70 ]
%107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv97) #8
%108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %indvars.iv92) #8
%109 = load i32, ptr %108, align 4, !tbaa !17
%110 = invoke { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef %109)
to label %111 unwind label %119
111: ; preds = %.lr.ph73
%112 = extractvalue { ptr, ptr } %110, 0
%113 = extractvalue { ptr, ptr } %110, 1
%114 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv97) #8
%115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %indvars.iv92) #8
%116 = load i32, ptr %115, align 4, !tbaa !17
%117 = call noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef %116)
%118 = icmp sgt i32 %117, 0
br i1 %118, label %.lr.ph69.preheader, label %._crit_edge70
.lr.ph69.preheader: ; preds = %111
%wide.trip.count = zext nneg i32 %117 to i64
br label %.lr.ph69
._crit_edge70: ; preds = %155, %111
%indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
%exitcond96.not = icmp eq i64 %indvars.iv.next93, %wide.trip.count95
br i1 %exitcond96.not, label %._crit_edge74, label %.lr.ph73, !llvm.loop !29
119: ; preds = %.lr.ph73
%120 = landingpad { ptr, i32 }
cleanup
br label %157
.lr.ph69: ; preds = %.lr.ph69.preheader, %155
%indvars.iv89 = phi i64 [ 0, %.lr.ph69.preheader ], [ %indvars.iv.next90, %155 ]
%121 = getelementptr inbounds i32, ptr %112, i64 %indvars.iv89
%122 = load i32, ptr %121, align 4, !tbaa !17
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
%123 = sext i32 %122 to i64
%124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %123) #8
%125 = load i32, ptr %124, align 4, !tbaa !17
%126 = sext i32 %125 to i64
%127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %126) #8
%128 = load i32, ptr %127, align 4, !tbaa !17
store i32 %128, ptr %11, align 4, !tbaa !17
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
%129 = load ptr, ptr %83, align 8, !tbaa !28
%130 = icmp eq ptr %129, null
br i1 %130, label %134, label %131
131: ; preds = %.lr.ph69
%132 = getelementptr inbounds i32, ptr %113, i64 %indvars.iv89
%133 = load i32, ptr %132, align 4, !tbaa !17
br label %134
134: ; preds = %.lr.ph69, %131
%135 = phi i32 [ %133, %131 ], [ 1, %.lr.ph69 ]
store i32 %135, ptr %12, align 4, !tbaa !17
%136 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %137 unwind label %145
137: ; preds = %134
store ptr %136, ptr %10, align 8, !tbaa !30
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
%138 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
store ptr %138, ptr %13, align 8
%139 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
br i1 %139, label %140, label %149
140: ; preds = %137
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
%141 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %142 unwind label %147
142: ; preds = %140
store i64 %141, ptr %14, align 8
%143 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(8) %14)
to label %144 unwind label %147
144: ; preds = %142
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
br label %155
145: ; preds = %134
%146 = landingpad { ptr, i32 }
cleanup
br label %156
147: ; preds = %142, %140
%148 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
br label %156
149: ; preds = %137
%150 = load i32, ptr %12, align 4, !tbaa !17
%151 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
%152 = getelementptr inbounds i8, ptr %151, i64 4
%153 = load i32, ptr %152, align 4, !tbaa !31
%154 = add nsw i32 %153, %150
store i32 %154, ptr %152, align 4, !tbaa !31
br label %155
155: ; preds = %149, %144
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
%indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
%exitcond.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count
br i1 %exitcond.not, label %._crit_edge70, label %.lr.ph69, !llvm.loop !33
156: ; preds = %147, %145
%.pn = phi { ptr, i32 } [ %148, %147 ], [ %146, %145 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
br label %157
157: ; preds = %156, %119
%.pn.pn = phi { ptr, i32 } [ %.pn, %156 ], [ %120, %119 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
br label %198
158: ; preds = %._crit_edge74
%159 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
br label %168
160: ; preds = %._crit_edge74
%161 = load ptr, ptr %74, align 8, !tbaa !23
%162 = getelementptr i32, ptr %161, i64 %indvars.iv97
%163 = getelementptr i8, ptr %162, i64 -4
%164 = load i32, ptr %163, align 4, !tbaa !17
%165 = zext i32 %164 to i64
%166 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
%167 = add i64 %166, %165
br label %168
168: ; preds = %160, %158
%169 = phi i64 [ %159, %158 ], [ %167, %160 ]
%170 = trunc i64 %169 to i32
%171 = load ptr, ptr %74, align 8, !tbaa !23
%172 = getelementptr inbounds i32, ptr %171, i64 %indvars.iv97
store i32 %170, ptr %172, align 4, !tbaa !17
%173 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
%174 = load i32, ptr %84, align 4, !tbaa !27
%175 = trunc i64 %173 to i32
%176 = add i32 %174, %175
store i32 %176, ptr %84, align 4, !tbaa !27
%177 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
store ptr %177, ptr %10, align 8, !tbaa !30
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
%178 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
store ptr %178, ptr %15, align 8
%179 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
br i1 %179, label %.lr.ph77, label %._crit_edge78
.lr.ph77: ; preds = %168, %.lr.ph77
%.14875 = phi i64 [ %194, %.lr.ph77 ], [ %.04781, %168 ]
%180 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
%181 = getelementptr inbounds i8, ptr %180, i64 4
%182 = load i32, ptr %181, align 4, !tbaa !31
%183 = load i32, ptr %85, align 8, !tbaa !34
%184 = add nsw i32 %183, %182
store i32 %184, ptr %85, align 8, !tbaa !34
%185 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
%186 = load i32, ptr %185, align 4, !tbaa !35
%187 = load ptr, ptr %76, align 8, !tbaa !24
%188 = getelementptr inbounds i32, ptr %187, i64 %.14875
store i32 %186, ptr %188, align 4, !tbaa !17
%189 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
%190 = getelementptr inbounds i8, ptr %189, i64 4
%191 = load i32, ptr %190, align 4, !tbaa !31
%192 = load ptr, ptr %78, align 8, !tbaa !25
%193 = getelementptr inbounds i32, ptr %192, i64 %.14875
store i32 %191, ptr %193, align 4, !tbaa !17
%194 = add nsw i64 %.14875, 1
%195 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
%196 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
store ptr %196, ptr %15, align 8
%197 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
br i1 %197, label %.lr.ph77, label %._crit_edge78, !llvm.loop !36
._crit_edge78: ; preds = %.lr.ph77, %168
%.148.lcssa = phi i64 [ %.04781, %168 ], [ %194, %.lr.ph77 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
%indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
%exitcond101.not = icmp eq i64 %indvars.iv.next98, %wide.trip.count100
br i1 %exitcond101.not, label %._crit_edge84, label %101, !llvm.loop !37
198: ; preds = %157, %99, %66
%.pn55 = phi { ptr, i32 } [ %67, %66 ], [ %.pn.pn, %157 ], [ %100, %99 ]
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
br label %199
199: ; preds = %198, %50
%.pn55.pn = phi { ptr, i32 } [ %.pn55, %198 ], [ %51, %50 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
br label %200
200: ; preds = %199, %24
%.pn55.pn.pn = phi { ptr, i32 } [ %.pn55.pn, %199 ], [ %25, %24 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
resume { ptr, i32 } %.pn55.pn.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #7
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
attributes #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 = { mustprogress 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 #6 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind allocsize(1) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 40}
!6 = !{!"_ZTS9Community", !7, i64 0, !8, i64 40, !12, i64 48, !12, i64 72, !12, i64 96, !8, i64 120, !16, i64 128, !16, i64 136}
!7 = !{!"_ZTS5Graph", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"double", !9, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = !{!7, !8, i64 0}
!23 = !{!7, !11, i64 16}
!24 = !{!7, !11, i64 24}
!25 = !{!7, !11, i64 32}
!26 = !{!6, !11, i64 24}
!27 = !{!7, !8, i64 4}
!28 = !{!6, !11, i64 32}
!29 = distinct !{!29, !19}
!30 = !{!11, !11, i64 0}
!31 = !{!32, !8, i64 4}
!32 = !{!"_ZTSSt4pairIKiiE", !8, i64 0, !8, i64 4}
!33 = distinct !{!33, !19}
!34 = !{!7, !8, i64 8}
!35 = !{!32, !8, i64 0}
!36 = distinct !{!36, !19}
!37 = distinct !{!37, !19}
| BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 2ca84f78c55dab9d | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9Community22partition2graph_binaryEv | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community7displayEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #2 align 2 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %2, align 8
%5 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%6 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str)
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
store i32 0, ptr %3, align 4, !tbaa !9
br label %7
7: ; preds = %38, %1
%8 = load i32, ptr %3, align 4, !tbaa !9
%9 = getelementptr inbounds %class.Community, ptr %4, i32 0, i32 1
%10 = load i32, ptr %9, align 8, !tbaa !11
%11 = icmp slt i32 %8, %10
br i1 %11, label %13, label %12
12: ; preds = %7
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
br label %41
13: ; preds = %7
%14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.1)
%15 = load i32, ptr %3, align 4, !tbaa !9
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %15)
%17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef @.str.2)
%18 = getelementptr inbounds %class.Community, ptr %4, i32 0, i32 2
%19 = load i32, ptr %3, align 4, !tbaa !9
%20 = sext i32 %19 to i64
%21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %20) #5
%22 = load i32, ptr %21, align 4, !tbaa !9
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef %22)
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str.2)
%25 = getelementptr inbounds %class.Community, ptr %4, i32 0, i32 3
%26 = load i32, ptr %3, align 4, !tbaa !9
%27 = sext i32 %26 to i64
%28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %27) #5
%29 = load i32, ptr %28, align 4, !tbaa !9
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %29)
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.2)
%32 = getelementptr inbounds %class.Community, ptr %4, i32 0, i32 4
%33 = load i32, ptr %3, align 4, !tbaa !9
%34 = sext i32 %33 to i64
%35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #5
%36 = load i32, ptr %35, align 4, !tbaa !9
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef %36)
br label %38
38: ; preds = %13
%39 = load i32, ptr %3, align 4, !tbaa !9
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4, !tbaa !9
br label %7, !llvm.loop !19
41: ; preds = %12
%42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
%43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
}
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 40}
!12 = !{!"_ZTS9Community", !13, i64 0, !10, i64 40, !14, i64 48, !14, i64 72, !14, i64 96, !10, i64 120, !18, i64 128, !18, i64 136}
!13 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%STRUCT0 = type { %STRUCT1, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%STRUCT1 = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community7displayEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #2 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
store ptr %0, ptr %1, align 8, !tbaa !5
%3 = load ptr, ptr %1, align 8
%4 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%5 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef @.str)
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
store i32 0, ptr %2, align 4, !tbaa !9
br label %B1
B1:
%6 = load i32, ptr %2, align 4, !tbaa !9
%7 = getelementptr inbounds %STRUCT0, ptr %3, i32 0, i32 1
%8 = load i32, ptr %7, align 8, !tbaa !11
%9 = icmp slt i32 %6, %8
br i1 %9, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
br label %B5
B3:
%10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.1)
%11 = load i32, ptr %2, align 4, !tbaa !9
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %11)
%13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.2)
%14 = getelementptr inbounds %STRUCT0, ptr %3, i32 0, i32 2
%15 = load i32, ptr %2, align 4, !tbaa !9
%16 = sext i32 %15 to i64
%17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %16) #5
%18 = load i32, ptr %17, align 4, !tbaa !9
%19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %18)
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef @.str.2)
%21 = getelementptr inbounds %STRUCT0, ptr %3, i32 0, i32 3
%22 = load i32, ptr %2, align 4, !tbaa !9
%23 = sext i32 %22 to i64
%24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %23) #5
%25 = load i32, ptr %24, align 4, !tbaa !9
%26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %20, i32 noundef %25)
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef @.str.2)
%28 = getelementptr inbounds %STRUCT0, ptr %3, i32 0, i32 4
%29 = load i32, ptr %2, align 4, !tbaa !9
%30 = sext i32 %29 to i64
%31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30) #5
%32 = load i32, ptr %31, align 4, !tbaa !9
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef %32)
br label %B4
B4:
%34 = load i32, ptr %2, align 4, !tbaa !9
%35 = add nsw i32 %34, 1
store i32 %35, ptr %2, align 4, !tbaa !9
br label %B1, !llvm.loop !19
B5:
%36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
}
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 40}
!12 = !{!"_ZTS9Community", !13, i64 0, !10, i64 40, !14, i64 48, !14, i64 72, !14, i64 96, !10, i64 120, !18, i64 128, !18, i64 136}
!13 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Community7displayEv(ptr noundef nonnull align 8 dereferenceable(144) %0) local_unnamed_addr #1 align 2 {
%2 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str)
%4 = getelementptr inbounds i8, ptr %0, i64 40
%5 = load i32, ptr %4, align 8, !tbaa !5
%6 = icmp sgt i32 %5, 0
br i1 %6, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %1
%7 = getelementptr inbounds i8, ptr %0, i64 48
%8 = getelementptr inbounds i8, ptr %0, i64 72
%9 = getelementptr inbounds i8, ptr %0, i64 96
br label %12
._crit_edge: ; preds = %12, %1
%10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.3)
%11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
ret void
12: ; preds = %.lr.ph, %12
%indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %12 ]
%13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.1)
%14 = trunc nuw nsw i64 %indvars.iv to i32
%15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %14)
%16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @.str.2)
%17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #4
%18 = load i32, ptr %17, align 4, !tbaa !17
%19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef %18)
%20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @.str.2)
%21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #4
%22 = load i32, ptr %21, align 4, !tbaa !17
%23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %20, i32 noundef %22)
%24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @.str.2)
%25 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #4
%26 = load i32, ptr %25, align 4, !tbaa !17
%27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %26)
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%28 = load i32, ptr %4, align 8, !tbaa !5
%29 = sext i32 %28 to i64
%30 = icmp slt i64 %indvars.iv.next, %29
br i1 %30, label %12, label %._crit_edge, !llvm.loop !18
}
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3
attributes #0 = { mustprogress 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 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 40}
!6 = !{!"_ZTS9Community", !7, i64 0, !8, i64 40, !12, i64 48, !12, i64 72, !12, i64 96, !8, i64 120, !16, i64 128, !16, i64 136}
!7 = !{!"_ZTS5Graph", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"double", !9, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 9192534df43a6c00 | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9Community7displayEv | BSD-2-Clause |
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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%"struct.std::pair.7" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Community10neigh_commEi(ptr dead_on_unwind noalias writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(144), i32 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca %"class.std::vector", align 8
%8 = alloca %"class.std::allocator", align 1
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca %"class.std::map", align 8
%20 = alloca %"struct.std::_Rb_tree_iterator", align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca double, align 8
%24 = alloca %"struct.std::_Rb_tree_iterator", align 8
%25 = alloca %"struct.std::_Rb_tree_iterator", align 8
%26 = alloca double, align 8
%27 = alloca %"struct.std::_Rb_tree_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
%28 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 1, ptr %3) #5
store i8 0, ptr %3, align 1, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
store i32 0, ptr %4, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
%29 = call noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %28)
store double %29, ptr %5, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
%30 = load double, ptr %5, align 8, !tbaa !13
store double %30, ptr %6, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
%31 = getelementptr inbounds %class.Community, ptr %28, i32 0, i32 1
%32 = load i32, ptr %31, align 8, !tbaa !15
%33 = sext i32 %32 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %33, ptr noundef nonnull align 1 dereferenceable(1) %8)
to label %34 unwind label %41
34: ; preds = %1
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
store i32 0, ptr %11, align 4, !tbaa !11
br label %35
35: ; preds = %50, %34
%36 = load i32, ptr %11, align 4, !tbaa !11
%37 = getelementptr inbounds %class.Community, ptr %28, i32 0, i32 1
%38 = load i32, ptr %37, align 8, !tbaa !15
%39 = icmp slt i32 %36, %38
br i1 %39, label %45, label %40
40: ; preds = %35
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
br label %53
41: ; preds = %1
%42 = landingpad { ptr, i32 }
cleanup
%43 = extractvalue { ptr, i32 } %42, 0
store ptr %43, ptr %9, align 8
%44 = extractvalue { ptr, i32 } %42, 1
store i32 %44, ptr %10, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
br label %203
45: ; preds = %35
%46 = load i32, ptr %11, align 4, !tbaa !11
%47 = load i32, ptr %11, align 4, !tbaa !11
%48 = sext i32 %47 to i64
%49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %48) #5
store i32 %46, ptr %49, align 4, !tbaa !11
br label %50
50: ; preds = %45
%51 = load i32, ptr %11, align 4, !tbaa !11
%52 = add nsw i32 %51, 1
store i32 %52, ptr %11, align 4, !tbaa !11
br label %35, !llvm.loop !22
53: ; preds = %40
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
store i32 0, ptr %12, align 4, !tbaa !11
br label %54
54: ; preds = %85, %53
%55 = load i32, ptr %12, align 4, !tbaa !11
%56 = getelementptr inbounds %class.Community, ptr %28, i32 0, i32 1
%57 = load i32, ptr %56, align 8, !tbaa !15
%58 = sub nsw i32 %57, 1
%59 = icmp slt i32 %55, %58
br i1 %59, label %61, label %60
60: ; preds = %54
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
br label %88
61: ; preds = %54
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
%62 = call i32 @rand() #5
%63 = getelementptr inbounds %class.Community, ptr %28, i32 0, i32 1
%64 = load i32, ptr %63, align 8, !tbaa !15
%65 = load i32, ptr %12, align 4, !tbaa !11
%66 = sub nsw i32 %64, %65
%67 = srem i32 %62, %66
%68 = load i32, ptr %12, align 4, !tbaa !11
%69 = add nsw i32 %67, %68
store i32 %69, ptr %13, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
%70 = load i32, ptr %12, align 4, !tbaa !11
%71 = sext i32 %70 to i64
%72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %71) #5
%73 = load i32, ptr %72, align 4, !tbaa !11
store i32 %73, ptr %14, align 4, !tbaa !11
%74 = load i32, ptr %13, align 4, !tbaa !11
%75 = sext i32 %74 to i64
%76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %75) #5
%77 = load i32, ptr %76, align 4, !tbaa !11
%78 = load i32, ptr %12, align 4, !tbaa !11
%79 = sext i32 %78 to i64
%80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %79) #5
store i32 %77, ptr %80, align 4, !tbaa !11
%81 = load i32, ptr %14, align 4, !tbaa !11
%82 = load i32, ptr %13, align 4, !tbaa !11
%83 = sext i32 %82 to i64
%84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %83) #5
store i32 %81, ptr %84, align 4, !tbaa !11
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
br label %85
85: ; preds = %61
%86 = load i32, ptr %12, align 4, !tbaa !11
%87 = add nsw i32 %86, 1
store i32 %87, ptr %12, align 4, !tbaa !11
br label %54, !llvm.loop !24
88: ; preds = %60
br label %89
89: ; preds = %199, %88
%90 = load double, ptr %5, align 8, !tbaa !13
store double %90, ptr %6, align 8, !tbaa !13
store i8 0, ptr %3, align 1, !tbaa !9
%91 = load i32, ptr %4, align 4, !tbaa !11
%92 = add nsw i32 %91, 1
store i32 %92, ptr %4, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
store i32 0, ptr %15, align 4, !tbaa !11
br label %93
93: ; preds = %176, %89
%94 = load i32, ptr %15, align 4, !tbaa !11
%95 = getelementptr inbounds %class.Community, ptr %28, i32 0, i32 1
%96 = load i32, ptr %95, align 8, !tbaa !15
%97 = icmp slt i32 %94, %96
br i1 %97, label %99, label %98
98: ; preds = %93
store i32 10, ptr %16, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
br label %182
99: ; preds = %93
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
%100 = load i32, ptr %15, align 4, !tbaa !11
store i32 %100, ptr %17, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
%101 = getelementptr inbounds %class.Community, ptr %28, i32 0, i32 2
%102 = load i32, ptr %17, align 4, !tbaa !11
%103 = sext i32 %102 to i64
%104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103) #5
%105 = load i32, ptr %104, align 4, !tbaa !11
store i32 %105, ptr %18, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 48, ptr %19) #5
%106 = load i32, ptr %17, align 4, !tbaa !11
invoke void @_ZN9Community10neigh_commEi(ptr dead_on_unwind writable sret(%"class.std::map") align 8 %19, ptr noundef nonnull align 8 dereferenceable(144) %28, i32 noundef %106)
to label %107 unwind label %125
107: ; preds = %99
%108 = load i32, ptr %17, align 4, !tbaa !11
%109 = load i32, ptr %18, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
%110 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 4 dereferenceable(4) %18)
to label %111 unwind label %129
111: ; preds = %107
%112 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
store ptr %110, ptr %112, align 8
%113 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
%114 = getelementptr inbounds %"struct.std::pair.7", ptr %113, i32 0, i32 1
%115 = load i32, ptr %114, align 4, !tbaa !25
invoke void @_ZN9Community6removeEiii(ptr noundef nonnull align 8 dereferenceable(144) %28, i32 noundef %108, i32 noundef %109, i32 noundef %115)
to label %116 unwind label %129
116: ; preds = %111
call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
%117 = load i32, ptr %18, align 4, !tbaa !11
store i32 %117, ptr %21, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
store i32 0, ptr %22, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
store double 0.000000e+00, ptr %23, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
%118 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #5
%119 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
store ptr %118, ptr %119, align 8
br label %120
120: ; preds = %159, %116
call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
%121 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #5
%122 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %25, i32 0, i32 0
store ptr %121, ptr %122, align 8
%123 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
br i1 %123, label %133, label %124
124: ; preds = %120
store i32 13, ptr %16, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
br label %162
125: ; preds = %99
%126 = landingpad { ptr, i32 }
cleanup
%127 = extractvalue { ptr, i32 } %126, 0
store ptr %127, ptr %9, align 8
%128 = extractvalue { ptr, i32 } %126, 1
store i32 %128, ptr %10, align 4
br label %181
129: ; preds = %111, %107
%130 = landingpad { ptr, i32 }
cleanup
%131 = extractvalue { ptr, i32 } %130, 0
store ptr %131, ptr %9, align 8
%132 = extractvalue { ptr, i32 } %130, 1
store i32 %132, ptr %10, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
br label %180
133: ; preds = %120
call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
%134 = load i32, ptr %17, align 4, !tbaa !11
%135 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
%136 = getelementptr inbounds %"struct.std::pair.7", ptr %135, i32 0, i32 0
%137 = load i32, ptr %136, align 4, !tbaa !27
%138 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
%139 = getelementptr inbounds %"struct.std::pair.7", ptr %138, i32 0, i32 1
%140 = load i32, ptr %139, align 4, !tbaa !25
%141 = invoke noundef double @_ZN9Community15modularity_gainEiii(ptr noundef nonnull align 8 dereferenceable(144) %28, i32 noundef %134, i32 noundef %137, i32 noundef %140)
to label %142 unwind label %154
142: ; preds = %133
store double %141, ptr %26, align 8, !tbaa !13
%143 = load double, ptr %26, align 8, !tbaa !13
%144 = load double, ptr %23, align 8, !tbaa !13
%145 = fcmp ogt double %143, %144
br i1 %145, label %146, label %158
146: ; preds = %142
%147 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
%148 = getelementptr inbounds %"struct.std::pair.7", ptr %147, i32 0, i32 0
%149 = load i32, ptr %148, align 4, !tbaa !27
store i32 %149, ptr %21, align 4, !tbaa !11
%150 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
%151 = getelementptr inbounds %"struct.std::pair.7", ptr %150, i32 0, i32 1
%152 = load i32, ptr %151, align 4, !tbaa !25
store i32 %152, ptr %22, align 4, !tbaa !11
%153 = load double, ptr %26, align 8, !tbaa !13
store double %153, ptr %23, align 8, !tbaa !13
br label %158
154: ; preds = %133
%155 = landingpad { ptr, i32 }
cleanup
%156 = extractvalue { ptr, i32 } %155, 0
store ptr %156, ptr %9, align 8
%157 = extractvalue { ptr, i32 } %155, 1
store i32 %157, ptr %10, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
br label %179
158: ; preds = %146, %142
call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
br label %159
159: ; preds = %158
%160 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef 0) #5
%161 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %27, i32 0, i32 0
store ptr %160, ptr %161, align 8
br label %120, !llvm.loop !28
162: ; preds = %124
%163 = load i32, ptr %17, align 4, !tbaa !11
%164 = load i32, ptr %21, align 4, !tbaa !11
%165 = load i32, ptr %22, align 4, !tbaa !11
invoke void @_ZN9Community6insertEiii(ptr noundef nonnull align 8 dereferenceable(144) %28, i32 noundef %163, i32 noundef %164, i32 noundef %165)
to label %166 unwind label %171
166: ; preds = %162
%167 = load i32, ptr %21, align 4, !tbaa !11
%168 = load i32, ptr %18, align 4, !tbaa !11
%169 = icmp ne i32 %167, %168
br i1 %169, label %170, label %175
170: ; preds = %166
store i8 1, ptr %3, align 1, !tbaa !9
br label %175
171: ; preds = %162
%172 = landingpad { ptr, i32 }
cleanup
%173 = extractvalue { ptr, i32 } %172, 0
store ptr %173, ptr %9, align 8
%174 = extractvalue { ptr, i32 } %172, 1
store i32 %174, ptr %10, align 4
br label %179
175: ; preds = %170, %166
call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #5
call void @llvm.lifetime.end.p0(i64 48, ptr %19) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
br label %176
176: ; preds = %175
%177 = load i32, ptr %15, align 4, !tbaa !11
%178 = add nsw i32 %177, 1
store i32 %178, ptr %15, align 4, !tbaa !11
br label %93, !llvm.loop !29
179: ; preds = %171, %154
call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
br label %180
180: ; preds = %179, %129
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #5
br label %181
181: ; preds = %180, %125
call void @llvm.lifetime.end.p0(i64 48, ptr %19) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
br label %203
182: ; preds = %98
%183 = call noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %28)
store double %183, ptr %5, align 8, !tbaa !13
br label %184
184: ; preds = %182
%185 = load i8, ptr %3, align 1, !tbaa !9, !range !30, !noundef !31
%186 = trunc i8 %185 to i1
br i1 %186, label %187, label %199
187: ; preds = %184
%188 = load double, ptr %5, align 8, !tbaa !13
%189 = load double, ptr %6, align 8, !tbaa !13
%190 = fsub double %188, %189
%191 = getelementptr inbounds %class.Community, ptr %28, i32 0, i32 6
%192 = load double, ptr %191, align 8, !tbaa !32
%193 = fcmp ogt double %190, %192
br i1 %193, label %194, label %199
194: ; preds = %187
%195 = load i32, ptr %4, align 4, !tbaa !11
%196 = getelementptr inbounds %class.Community, ptr %28, i32 0, i32 5
%197 = load i32, ptr %196, align 8, !tbaa !33
%198 = icmp ne i32 %195, %197
br label %199
199: ; preds = %194, %187, %184
%200 = phi i1 [ false, %187 ], [ false, %184 ], [ %198, %194 ]
br i1 %200, label %89, label %201, !llvm.loop !34
201: ; preds = %199
%202 = load double, ptr %5, align 8, !tbaa !13
store i32 1, ptr %16, align 4
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %3) #5
ret double %202
203: ; preds = %181, %41
call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %3) #5
br label %204
204: ; preds = %203
%205 = load ptr, ptr %9, align 8
%206 = load i32, ptr %10, align 4
%207 = insertvalue { ptr, i32 } poison, ptr %205, 0
%208 = insertvalue { ptr, i32 } %207, i32 %206, 1
resume { ptr, i32 } %208
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: nounwind
declare i32 @rand() #3
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9Community6removeEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN9Community15modularity_gainEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9Community6insertEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { inlinehint mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !12, i64 40}
!16 = !{!"_ZTS9Community", !17, i64 0, !12, i64 40, !18, i64 48, !18, i64 72, !18, i64 96, !12, i64 120, !14, i64 128, !14, i64 136}
!17 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!18 = !{!"_ZTSSt6vectorIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!26, !12, i64 4}
!26 = !{!"_ZTSSt4pairIKiiE", !12, i64 0, !12, i64 4}
!27 = !{!26, !12, i64 0}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!16, !14, i64 128}
!33 = !{!16, !12, i64 120}
!34 = distinct !{!34, !23}
| 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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%STRUCT0 = type { %STRUCT1, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%STRUCT1 = type { i32, i32, i32, ptr, ptr, ptr }
%"struct.std::pair.7" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Community10neigh_commEi(ptr dead_on_unwind noalias writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(144), i32 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
B0:
%1 = alloca ptr, align 8
%2 = alloca i8, align 1
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca %"class.std::vector", align 8
%7 = alloca %"class.std::allocator", align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca %"class.std::map", align 8
%19 = alloca %"struct.std::_Rb_tree_iterator", align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca double, align 8
%23 = alloca %"struct.std::_Rb_tree_iterator", align 8
%24 = alloca %"struct.std::_Rb_tree_iterator", align 8
%25 = alloca double, align 8
%26 = alloca %"struct.std::_Rb_tree_iterator", align 8
store ptr %0, ptr %1, align 8, !tbaa !5
%27 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 1, ptr %2) #5
store i8 0, ptr %2, align 1, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
store i32 0, ptr %3, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
%28 = call noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %27)
store double %28, ptr %4, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
%29 = load double, ptr %4, align 8, !tbaa !13
store double %29, ptr %5, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
%30 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%31 = load i32, ptr %30, align 8, !tbaa !15
%32 = sext i32 %31 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %32, ptr noundef nonnull align 1 dereferenceable(1) %7)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
store i32 0, ptr %10, align 4, !tbaa !11
br label %B2
B2:
%33 = load i32, ptr %10, align 4, !tbaa !11
%34 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%35 = load i32, ptr %34, align 8, !tbaa !15
%36 = icmp slt i32 %33, %35
br i1 %36, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
br label %B7
B4:
%37 = landingpad { ptr, i32 }
cleanup
%38 = extractvalue { ptr, i32 } %37, 0
store ptr %38, ptr %8, align 8
%39 = extractvalue { ptr, i32 } %37, 1
store i32 %39, ptr %9, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
br label %B45
B5:
%40 = load i32, ptr %10, align 4, !tbaa !11
%41 = load i32, ptr %10, align 4, !tbaa !11
%42 = sext i32 %41 to i64
%43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %42) #5
store i32 %40, ptr %43, align 4, !tbaa !11
br label %B6
B6:
%44 = load i32, ptr %10, align 4, !tbaa !11
%45 = add nsw i32 %44, 1
store i32 %45, ptr %10, align 4, !tbaa !11
br label %B2, !llvm.loop !22
B7:
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
store i32 0, ptr %11, align 4, !tbaa !11
br label %B8
B8:
%46 = load i32, ptr %11, align 4, !tbaa !11
%47 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%48 = load i32, ptr %47, align 8, !tbaa !15
%49 = sub nsw i32 %48, 1
%50 = icmp slt i32 %46, %49
br i1 %50, label %B10, label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
br label %B12
B10:
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
%51 = call i32 @rand() #5
%52 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%53 = load i32, ptr %52, align 8, !tbaa !15
%54 = load i32, ptr %11, align 4, !tbaa !11
%55 = sub nsw i32 %53, %54
%56 = srem i32 %51, %55
%57 = load i32, ptr %11, align 4, !tbaa !11
%58 = add nsw i32 %56, %57
store i32 %58, ptr %12, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
%59 = load i32, ptr %11, align 4, !tbaa !11
%60 = sext i32 %59 to i64
%61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %60) #5
%62 = load i32, ptr %61, align 4, !tbaa !11
store i32 %62, ptr %13, align 4, !tbaa !11
%63 = load i32, ptr %12, align 4, !tbaa !11
%64 = sext i32 %63 to i64
%65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %64) #5
%66 = load i32, ptr %65, align 4, !tbaa !11
%67 = load i32, ptr %11, align 4, !tbaa !11
%68 = sext i32 %67 to i64
%69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %68) #5
store i32 %66, ptr %69, align 4, !tbaa !11
%70 = load i32, ptr %13, align 4, !tbaa !11
%71 = load i32, ptr %12, align 4, !tbaa !11
%72 = sext i32 %71 to i64
%73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %72) #5
store i32 %70, ptr %73, align 4, !tbaa !11
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
br label %B11
B11:
%74 = load i32, ptr %11, align 4, !tbaa !11
%75 = add nsw i32 %74, 1
store i32 %75, ptr %11, align 4, !tbaa !11
br label %B8, !llvm.loop !24
B12:
br label %B13
B13:
%76 = load double, ptr %4, align 8, !tbaa !13
store double %76, ptr %5, align 8, !tbaa !13
store i8 0, ptr %2, align 1, !tbaa !9
%77 = load i32, ptr %3, align 4, !tbaa !11
%78 = add nsw i32 %77, 1
store i32 %78, ptr %3, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
store i32 0, ptr %14, align 4, !tbaa !11
br label %B14
B14:
%79 = load i32, ptr %14, align 4, !tbaa !11
%80 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%81 = load i32, ptr %80, align 8, !tbaa !15
%82 = icmp slt i32 %79, %81
br i1 %82, label %B16, label %B15
B15:
store i32 10, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
br label %B39
B16:
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
%83 = load i32, ptr %14, align 4, !tbaa !11
store i32 %83, ptr %16, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
%84 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 2
%85 = load i32, ptr %16, align 4, !tbaa !11
%86 = sext i32 %85 to i64
%87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #5
%88 = load i32, ptr %87, align 4, !tbaa !11
store i32 %88, ptr %17, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 48, ptr %18) #5
%89 = load i32, ptr %16, align 4, !tbaa !11
invoke void @_ZN9Community10neigh_commEi(ptr dead_on_unwind writable sret(%"class.std::map") align 8 %18, ptr noundef nonnull align 8 dereferenceable(144) %27, i32 noundef %89)
to label %B17 unwind label %B22
B17:
%90 = load i32, ptr %16, align 4, !tbaa !11
%91 = load i32, ptr %17, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
%92 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %B18 unwind label %B23
B18:
%93 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
store ptr %92, ptr %93, align 8
%94 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
%95 = getelementptr inbounds %"struct.std::pair.7", ptr %94, i32 0, i32 1
%96 = load i32, ptr %95, align 4, !tbaa !25
invoke void @_ZN9Community6removeEiii(ptr noundef nonnull align 8 dereferenceable(144) %27, i32 noundef %90, i32 noundef %91, i32 noundef %96)
to label %B19 unwind label %B23
B19:
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
%97 = load i32, ptr %17, align 4, !tbaa !11
store i32 %97, ptr %20, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
store i32 0, ptr %21, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
store double 0.000000e+00, ptr %22, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
%98 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #5
%99 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %23, i32 0, i32 0
store ptr %98, ptr %99, align 8
br label %B20
B20:
call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
%100 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #5
%101 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
store ptr %100, ptr %101, align 8
%102 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
br i1 %102, label %B24, label %B21
B21:
store i32 13, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
br label %B30
B22:
%103 = landingpad { ptr, i32 }
cleanup
%104 = extractvalue { ptr, i32 } %103, 0
store ptr %104, ptr %8, align 8
%105 = extractvalue { ptr, i32 } %103, 1
store i32 %105, ptr %9, align 4
br label %B38
B23:
%106 = landingpad { ptr, i32 }
cleanup
%107 = extractvalue { ptr, i32 } %106, 0
store ptr %107, ptr %8, align 8
%108 = extractvalue { ptr, i32 } %106, 1
store i32 %108, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
br label %B37
B24:
call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
%109 = load i32, ptr %16, align 4, !tbaa !11
%110 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
%111 = getelementptr inbounds %"struct.std::pair.7", ptr %110, i32 0, i32 0
%112 = load i32, ptr %111, align 4, !tbaa !27
%113 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
%114 = getelementptr inbounds %"struct.std::pair.7", ptr %113, i32 0, i32 1
%115 = load i32, ptr %114, align 4, !tbaa !25
%116 = invoke noundef double @_ZN9Community15modularity_gainEiii(ptr noundef nonnull align 8 dereferenceable(144) %27, i32 noundef %109, i32 noundef %112, i32 noundef %115)
to label %B25 unwind label %B27
B25:
store double %116, ptr %25, align 8, !tbaa !13
%117 = load double, ptr %25, align 8, !tbaa !13
%118 = load double, ptr %22, align 8, !tbaa !13
%119 = fcmp ogt double %117, %118
br i1 %119, label %B26, label %B28
B26:
%120 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
%121 = getelementptr inbounds %"struct.std::pair.7", ptr %120, i32 0, i32 0
%122 = load i32, ptr %121, align 4, !tbaa !27
store i32 %122, ptr %20, align 4, !tbaa !11
%123 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
%124 = getelementptr inbounds %"struct.std::pair.7", ptr %123, i32 0, i32 1
%125 = load i32, ptr %124, align 4, !tbaa !25
store i32 %125, ptr %21, align 4, !tbaa !11
%126 = load double, ptr %25, align 8, !tbaa !13
store double %126, ptr %22, align 8, !tbaa !13
br label %B28
B27:
%127 = landingpad { ptr, i32 }
cleanup
%128 = extractvalue { ptr, i32 } %127, 0
store ptr %128, ptr %8, align 8
%129 = extractvalue { ptr, i32 } %127, 1
store i32 %129, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
br label %B36
B28:
call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
br label %B29
B29:
%130 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef 0) #5
%131 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %26, i32 0, i32 0
store ptr %130, ptr %131, align 8
br label %B20, !llvm.loop !28
B30:
%132 = load i32, ptr %16, align 4, !tbaa !11
%133 = load i32, ptr %20, align 4, !tbaa !11
%134 = load i32, ptr %21, align 4, !tbaa !11
invoke void @_ZN9Community6insertEiii(ptr noundef nonnull align 8 dereferenceable(144) %27, i32 noundef %132, i32 noundef %133, i32 noundef %134)
to label %B31 unwind label %B33
B31:
%135 = load i32, ptr %20, align 4, !tbaa !11
%136 = load i32, ptr %17, align 4, !tbaa !11
%137 = icmp ne i32 %135, %136
br i1 %137, label %B32, label %B34
B32:
store i8 1, ptr %2, align 1, !tbaa !9
br label %B34
B33:
%138 = landingpad { ptr, i32 }
cleanup
%139 = extractvalue { ptr, i32 } %138, 0
store ptr %139, ptr %8, align 8
%140 = extractvalue { ptr, i32 } %138, 1
store i32 %140, ptr %9, align 4
br label %B36
B34:
call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #5
call void @llvm.lifetime.end.p0(i64 48, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
br label %B35
B35:
%141 = load i32, ptr %14, align 4, !tbaa !11
%142 = add nsw i32 %141, 1
store i32 %142, ptr %14, align 4, !tbaa !11
br label %B14, !llvm.loop !29
B36:
call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
br label %B37
B37:
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #5
br label %B38
B38:
call void @llvm.lifetime.end.p0(i64 48, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
br label %B45
B39:
%143 = call noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %27)
store double %143, ptr %4, align 8, !tbaa !13
br label %B40
B40:
%144 = load i8, ptr %2, align 1, !tbaa !9, !range !30, !noundef !31
%145 = trunc i8 %144 to i1
br i1 %145, label %B41, label %B43
B41:
%146 = load double, ptr %4, align 8, !tbaa !13
%147 = load double, ptr %5, align 8, !tbaa !13
%148 = fsub double %146, %147
%149 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 6
%150 = load double, ptr %149, align 8, !tbaa !32
%151 = fcmp ogt double %148, %150
br i1 %151, label %B42, label %B43
B42:
%152 = load i32, ptr %3, align 4, !tbaa !11
%153 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 5
%154 = load i32, ptr %153, align 8, !tbaa !33
%155 = icmp ne i32 %152, %154
br label %B43
B43:
%156 = phi i1 [ false, %B41 ], [ false, %B40 ], [ %155, %B42 ]
br i1 %156, label %B13, label %B44, !llvm.loop !34
B44:
%157 = load double, ptr %4, align 8, !tbaa !13
store i32 1, ptr %15, align 4
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %2) #5
ret double %157
B45:
call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %2) #5
br label %B46
B46:
%158 = load ptr, ptr %8, align 8
%159 = load i32, ptr %9, align 4
%160 = insertvalue { ptr, i32 } poison, ptr %158, 0
%161 = insertvalue { ptr, i32 } %160, i32 %159, 1
resume { ptr, i32 } %161
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: nounwind
declare i32 @rand() #3
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9Community6removeEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN9Community15modularity_gainEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9Community6insertEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { inlinehint mustprogress 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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !12, i64 40}
!16 = !{!"_ZTS9Community", !17, i64 0, !12, i64 40, !18, i64 48, !18, i64 72, !18, i64 96, !12, i64 120, !14, i64 128, !14, i64 136}
!17 = !{!"_ZTS5Graph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!18 = !{!"_ZTSSt6vectorIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!26, !12, i64 4}
!26 = !{!"_ZTSSt4pairIKiiE", !12, i64 0, !12, i64 4}
!27 = !{!26, !12, i64 0}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!16, !14, i64 128}
!33 = !{!16, !12, i64 120}
!34 = distinct !{!34, !23} | 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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Community10neigh_commEi(ptr dead_on_unwind noalias writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(144), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%2 = alloca %"class.std::vector", align 8
%3 = alloca %"class.std::allocator", align 1
%4 = alloca i32, align 4
%5 = alloca %"class.std::map", align 8
%6 = alloca %"struct.std::_Rb_tree_iterator", align 8
%7 = alloca %"struct.std::_Rb_tree_iterator", align 8
%8 = alloca %"struct.std::_Rb_tree_iterator", align 8
%9 = tail call noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
%10 = getelementptr inbounds i8, ptr %0, i64 40
%11 = load i32, ptr %10, align 8, !tbaa !5
%12 = sext i32 %11 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %3)
to label %13 unwind label %17
13: ; preds = %1
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
%14 = load i32, ptr %10, align 8, !tbaa !5
%15 = icmp sgt i32 %14, 0
br i1 %15, label %.lr.ph, label %.preheader
.preheader62: ; preds = %.lr.ph
%16 = icmp sgt i32 %21, 1
br i1 %16, label %.lr.ph71, label %.preheader
17: ; preds = %1
%18 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
br label %104
.lr.ph: ; preds = %13, %.lr.ph
%indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %13 ]
%19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #5
%20 = trunc nuw nsw i64 %indvars.iv to i32
store i32 %20, ptr %19, align 4, !tbaa !17
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%21 = load i32, ptr %10, align 8, !tbaa !5
%22 = sext i32 %21 to i64
%23 = icmp slt i64 %indvars.iv.next, %22
br i1 %23, label %.lr.ph, label %.preheader62, !llvm.loop !18
.preheader: ; preds = %.lr.ph71, %13, %.preheader62
%24 = getelementptr inbounds i8, ptr %0, i64 48
%25 = getelementptr inbounds i8, ptr %0, i64 128
%26 = getelementptr inbounds i8, ptr %0, i64 120
br label %44
.lr.ph71: ; preds = %.preheader62, %.lr.ph71
%indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph71 ], [ 0, %.preheader62 ]
%27 = call i32 @rand() #5
%28 = load i32, ptr %10, align 8, !tbaa !5
%29 = trunc nuw nsw i64 %indvars.iv84 to i32
%30 = sub nsw i32 %28, %29
%31 = srem i32 %27, %30
%32 = add nsw i32 %31, %29
%33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv84) #5
%34 = load i32, ptr %33, align 4, !tbaa !17
%35 = sext i32 %32 to i64
%36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %35) #5
%37 = load i32, ptr %36, align 4, !tbaa !17
%38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv84) #5
store i32 %37, ptr %38, align 4, !tbaa !17
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %35) #5
store i32 %34, ptr %39, align 4, !tbaa !17
%indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
%40 = load i32, ptr %10, align 8, !tbaa !5
%41 = add nsw i32 %40, -1
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %indvars.iv.next85, %42
br i1 %43, label %.lr.ph71, label %.preheader, !llvm.loop !20
44: ; preds = %.preheader, %98
%.044 = phi double [ %49, %98 ], [ %9, %.preheader ]
%.037 = phi i32 [ %45, %98 ], [ 0, %.preheader ]
%45 = add nuw nsw i32 %.037, 1
%46 = load i32, ptr %10, align 8, !tbaa !5
%47 = icmp sgt i32 %46, 0
br i1 %47, label %.lr.ph80, label %._crit_edge81.thread
._crit_edge81.thread: ; preds = %44
%48 = call noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
br label %.critedge
._crit_edge81: ; preds = %89
%49 = call noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
br i1 %spec.select, label %98, label %.critedge
.lr.ph80: ; preds = %44, %89
%indvars.iv87 = phi i64 [ %indvars.iv.next88, %89 ], [ 0, %44 ]
%.078 = phi i1 [ %spec.select, %89 ], [ false, %44 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
%50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv87) #5
%51 = load i32, ptr %50, align 4, !tbaa !17
store i32 %51, ptr %4, align 4, !tbaa !17
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #5
%52 = trunc nuw nsw i64 %indvars.iv87 to i32
invoke void @_ZN9Community10neigh_commEi(ptr dead_on_unwind nonnull writable sret(%"class.std::map") align 8 %5, ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %52)
to label %53 unwind label %65
53: ; preds = %.lr.ph80
%54 = load i32, ptr %4, align 4, !tbaa !17
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
%55 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %4)
to label %56 unwind label %67
56: ; preds = %53
store ptr %55, ptr %6, align 8
%57 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
%58 = getelementptr inbounds i8, ptr %57, i64 4
%59 = load i32, ptr %58, align 4, !tbaa !21
invoke void @_ZN9Community6removeEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %52, i32 noundef %54, i32 noundef %59)
to label %60 unwind label %67
60: ; preds = %56
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
%61 = load i32, ptr %4, align 4, !tbaa !17
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
%62 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
store ptr %62, ptr %7, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
%63 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
store ptr %63, ptr %8, align 8
%64 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
br i1 %64, label %.lr.ph75, label %._crit_edge
._crit_edge: ; preds = %85, %60
%.042.lcssa = phi i32 [ %61, %60 ], [ %.143, %85 ]
%.040.lcssa = phi i32 [ 0, %60 ], [ %.141, %85 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
invoke void @_ZN9Community6insertEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %52, i32 noundef %.042.lcssa, i32 noundef %.040.lcssa)
to label %89 unwind label %94
65: ; preds = %.lr.ph80
%66 = landingpad { ptr, i32 }
cleanup
br label %97
67: ; preds = %56, %53
%68 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
br label %96
.lr.ph75: ; preds = %60, %85
%.03874 = phi double [ %.139, %85 ], [ 0.000000e+00, %60 ]
%.04073 = phi i32 [ %.141, %85 ], [ 0, %60 ]
%.04272 = phi i32 [ %.143, %85 ], [ %61, %60 ]
%69 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
%70 = load i32, ptr %69, align 4, !tbaa !23
%71 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
%72 = getelementptr inbounds i8, ptr %71, i64 4
%73 = load i32, ptr %72, align 4, !tbaa !21
%74 = invoke noundef double @_ZN9Community15modularity_gainEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %52, i32 noundef %70, i32 noundef %73)
to label %75 unwind label %83
75: ; preds = %.lr.ph75
%76 = fcmp ogt double %74, %.03874
br i1 %76, label %77, label %85
77: ; preds = %75
%78 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
%79 = load i32, ptr %78, align 4, !tbaa !23
%80 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
%81 = getelementptr inbounds i8, ptr %80, i64 4
%82 = load i32, ptr %81, align 4, !tbaa !21
br label %85
83: ; preds = %.lr.ph75
%84 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
br label %96
85: ; preds = %77, %75
%.143 = phi i32 [ %79, %77 ], [ %.04272, %75 ]
%.141 = phi i32 [ %82, %77 ], [ %.04073, %75 ]
%.139 = phi double [ %74, %77 ], [ %.03874, %75 ]
%86 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
%87 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
store ptr %87, ptr %8, align 8
%88 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
br i1 %88, label %.lr.ph75, label %._crit_edge, !llvm.loop !24
89: ; preds = %._crit_edge
%90 = load i32, ptr %4, align 4, !tbaa !17
%.not56 = icmp ne i32 %.042.lcssa, %90
%spec.select = select i1 %.not56, i1 true, i1 %.078
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
%indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
%91 = load i32, ptr %10, align 8, !tbaa !5
%92 = sext i32 %91 to i64
%93 = icmp slt i64 %indvars.iv.next88, %92
br i1 %93, label %.lr.ph80, label %._crit_edge81, !llvm.loop !25
94: ; preds = %._crit_edge
%95 = landingpad { ptr, i32 }
cleanup
br label %96
96: ; preds = %83, %94, %67
%.pn.pn = phi { ptr, i32 } [ %68, %67 ], [ %84, %83 ], [ %95, %94 ]
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
br label %97
97: ; preds = %96, %65
%.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %96 ], [ %66, %65 ]
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
br label %104
98: ; preds = %._crit_edge81
%99 = fsub double %49, %.044
%100 = load double, ptr %25, align 8, !tbaa !26
%101 = fcmp ule double %99, %100
%102 = load i32, ptr %26, align 8
%.not = icmp eq i32 %45, %102
%or.cond = select i1 %101, i1 true, i1 %.not
br i1 %or.cond, label %.critedge, label %44, !llvm.loop !27
.critedge: ; preds = %98, %._crit_edge81, %._crit_edge81.thread
%103 = phi double [ %48, %._crit_edge81.thread ], [ %49, %._crit_edge81 ], [ %49, %98 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
ret double %103
104: ; preds = %97, %17
%.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %97 ], [ %18, %17 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
resume { ptr, i32 } %.pn.pn.pn.pn
}
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9Community6removeEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN9Community15modularity_gainEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9Community6insertEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 40}
!6 = !{!"_ZTS9Community", !7, i64 0, !8, i64 40, !12, i64 48, !12, i64 72, !12, i64 96, !8, i64 120, !16, i64 128, !16, i64 136}
!7 = !{!"_ZTS5Graph", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"double", !9, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!22, !8, i64 4}
!22 = !{!"_ZTSSt4pairIKiiE", !8, i64 0, !8, i64 4}
!23 = !{!22, !8, i64 0}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = !{!6, !16, i64 128}
!27 = distinct !{!27, !19}
| AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 36cb9fc7e0af397 | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9Community9one_levelEv | BSD-2-Clause |
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"
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9CommunityC2E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef byval(%class.Graph) align 8 %1, i32 noundef %2, double noundef %3, double noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8, !tbaa !5
store i32 %2, ptr %7, align 4, !tbaa !9
store double %3, ptr %8, align 8, !tbaa !11
store double %4, ptr %9, align 8, !tbaa !11
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 0
call void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %14)
%15 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 2
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
%16 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 3
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
%17 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 4
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
%18 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 0
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %1, i64 40, i1 false), !tbaa.struct !13
%19 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 0
%20 = getelementptr inbounds %class.Graph, ptr %19, i32 0, i32 0
%21 = load i32, ptr %20, align 8, !tbaa !14
%22 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 1
store i32 %21, ptr %22, align 8, !tbaa !21
%23 = load double, ptr %9, align 8, !tbaa !11
%24 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 7
store double %23, ptr %24, align 8, !tbaa !22
%25 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 2
%26 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 1
%27 = load i32, ptr %26, align 8, !tbaa !21
%28 = sext i32 %27 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %28)
to label %29 unwind label %46
29: ; preds = %5
%30 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 3
%31 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 1
%32 = load i32, ptr %31, align 8, !tbaa !21
%33 = sext i32 %32 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %33)
to label %34 unwind label %46
34: ; preds = %29
%35 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 4
%36 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 1
%37 = load i32, ptr %36, align 8, !tbaa !21
%38 = sext i32 %37 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %38)
to label %39 unwind label %46
39: ; preds = %34
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
store i32 0, ptr %12, align 4, !tbaa !9
br label %40
40: ; preds = %72, %39
%41 = load i32, ptr %12, align 4, !tbaa !9
%42 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 1
%43 = load i32, ptr %42, align 8, !tbaa !21
%44 = icmp slt i32 %41, %43
br i1 %44, label %50, label %45
45: ; preds = %40
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %79
46: ; preds = %34, %29, %5
%47 = landingpad { ptr, i32 }
cleanup
%48 = extractvalue { ptr, i32 } %47, 0
store ptr %48, ptr %10, align 8
%49 = extractvalue { ptr, i32 } %47, 1
store i32 %49, ptr %11, align 4
br label %84
50: ; preds = %40
%51 = load i32, ptr %12, align 4, !tbaa !9
%52 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 2
%53 = load i32, ptr %12, align 4, !tbaa !9
%54 = sext i32 %53 to i64
%55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54) #6
store i32 %51, ptr %55, align 4, !tbaa !9
%56 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 0
%57 = load i32, ptr %12, align 4, !tbaa !9
%58 = invoke noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40) %56, i32 noundef %57)
to label %59 unwind label %75
59: ; preds = %50
%60 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 3
%61 = load i32, ptr %12, align 4, !tbaa !9
%62 = sext i32 %61 to i64
%63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62) #6
store i32 %58, ptr %63, align 4, !tbaa !9
%64 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 0
%65 = load i32, ptr %12, align 4, !tbaa !9
%66 = invoke noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40) %64, i32 noundef %65)
to label %67 unwind label %75
67: ; preds = %59
%68 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 4
%69 = load i32, ptr %12, align 4, !tbaa !9
%70 = sext i32 %69 to i64
%71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #6
store i32 %66, ptr %71, align 4, !tbaa !9
br label %72
72: ; preds = %67
%73 = load i32, ptr %12, align 4, !tbaa !9
%74 = add nsw i32 %73, 1
store i32 %74, ptr %12, align 4, !tbaa !9
br label %40, !llvm.loop !23
75: ; preds = %59, %50
%76 = landingpad { ptr, i32 }
cleanup
%77 = extractvalue { ptr, i32 } %76, 0
store ptr %77, ptr %10, align 8
%78 = extractvalue { ptr, i32 } %76, 1
store i32 %78, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %84
79: ; preds = %45
%80 = load i32, ptr %7, align 4, !tbaa !9
%81 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 5
store i32 %80, ptr %81, align 8, !tbaa !25
%82 = load double, ptr %8, align 8, !tbaa !11
%83 = getelementptr inbounds %class.Community, ptr %13, i32 0, i32 6
store double %82, ptr %83, align 8, !tbaa !26
ret void
84: ; preds = %75, %46
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
br label %85
85: ; preds = %84
%86 = load ptr, ptr %10, align 8
%87 = load i32, ptr %11, align 4
%88 = insertvalue { ptr, i32 } poison, ptr %86, 0
%89 = insertvalue { ptr, i32 } %88, i32 %87, 1
resume { ptr, i32 } %89
}
attributes #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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTS9Community", !16, i64 0, !10, i64 40, !17, i64 48, !17, i64 72, !17, i64 96, !10, i64 120, !12, i64 128, !12, i64 136}
!16 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!15, !10, i64 40}
!22 = !{!15, !12, i64 136}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!15, !10, i64 120}
!26 = !{!15, !12, i64 128}
| 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"
%STRUCT0 = type { i32, i32, i32, ptr, ptr, ptr }
%STRUCT1 = type { %STRUCT0, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9CommunityC2E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef byval(%STRUCT0) align 8 %1, i32 noundef %2, double noundef %3, double noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
B0:
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8, !tbaa !5
store i32 %2, ptr %6, align 4, !tbaa !9
store double %3, ptr %7, align 8, !tbaa !11
store double %4, ptr %8, align 8, !tbaa !11
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 0
call void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %13)
%14 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 2
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
%15 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 3
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
%16 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 4
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
%17 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 0
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %1, i64 40, i1 false), !tbaa.struct !13
%18 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 0
%19 = getelementptr inbounds %STRUCT0, ptr %18, i32 0, i32 0
%20 = load i32, ptr %19, align 8, !tbaa !14
%21 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 1
store i32 %20, ptr %21, align 8, !tbaa !21
%22 = load double, ptr %8, align 8, !tbaa !11
%23 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 7
store double %22, ptr %23, align 8, !tbaa !22
%24 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 2
%25 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 1
%26 = load i32, ptr %25, align 8, !tbaa !21
%27 = sext i32 %26 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %27)
to label %B1 unwind label %B6
B1:
%28 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 3
%29 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 1
%30 = load i32, ptr %29, align 8, !tbaa !21
%31 = sext i32 %30 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %31)
to label %B2 unwind label %B6
B2:
%32 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 4
%33 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 1
%34 = load i32, ptr %33, align 8, !tbaa !21
%35 = sext i32 %34 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %35)
to label %B3 unwind label %B6
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
store i32 0, ptr %11, align 4, !tbaa !9
br label %B4
B4:
%36 = load i32, ptr %11, align 4, !tbaa !9
%37 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 1
%38 = load i32, ptr %37, align 8, !tbaa !21
%39 = icmp slt i32 %36, %38
br i1 %39, label %B7, label %B5
B5:
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %B12
B6:
%40 = landingpad { ptr, i32 }
cleanup
%41 = extractvalue { ptr, i32 } %40, 0
store ptr %41, ptr %9, align 8
%42 = extractvalue { ptr, i32 } %40, 1
store i32 %42, ptr %10, align 4
br label %B13
B7:
%43 = load i32, ptr %11, align 4, !tbaa !9
%44 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 2
%45 = load i32, ptr %11, align 4, !tbaa !9
%46 = sext i32 %45 to i64
%47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #6
store i32 %43, ptr %47, align 4, !tbaa !9
%48 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 0
%49 = load i32, ptr %11, align 4, !tbaa !9
%50 = invoke noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40) %48, i32 noundef %49)
to label %B8 unwind label %B11
B8:
%51 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 3
%52 = load i32, ptr %11, align 4, !tbaa !9
%53 = sext i32 %52 to i64
%54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %53) #6
store i32 %50, ptr %54, align 4, !tbaa !9
%55 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 0
%56 = load i32, ptr %11, align 4, !tbaa !9
%57 = invoke noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40) %55, i32 noundef %56)
to label %B9 unwind label %B11
B9:
%58 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 4
%59 = load i32, ptr %11, align 4, !tbaa !9
%60 = sext i32 %59 to i64
%61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #6
store i32 %57, ptr %61, align 4, !tbaa !9
br label %B10
B10:
%62 = load i32, ptr %11, align 4, !tbaa !9
%63 = add nsw i32 %62, 1
store i32 %63, ptr %11, align 4, !tbaa !9
br label %B4, !llvm.loop !23
B11:
%64 = landingpad { ptr, i32 }
cleanup
%65 = extractvalue { ptr, i32 } %64, 0
store ptr %65, ptr %9, align 8
%66 = extractvalue { ptr, i32 } %64, 1
store i32 %66, ptr %10, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %B13
B12:
%67 = load i32, ptr %6, align 4, !tbaa !9
%68 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 5
store i32 %67, ptr %68, align 8, !tbaa !25
%69 = load double, ptr %7, align 8, !tbaa !11
%70 = getelementptr inbounds %STRUCT1, ptr %12, i32 0, i32 6
store double %69, ptr %70, align 8, !tbaa !26
ret void
B13:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
br label %B14
B14:
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %10, align 4
%73 = insertvalue { ptr, i32 } poison, ptr %71, 0
%74 = insertvalue { ptr, i32 } %73, i32 %72, 1
resume { ptr, i32 } %74
}
attributes #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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTS9Community", !16, i64 0, !10, i64 40, !17, i64 48, !17, i64 72, !17, i64 96, !10, i64 120, !12, i64 128, !12, i64 136}
!16 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!15, !10, i64 40}
!22 = !{!15, !12, i64 136}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!15, !10, i64 120}
!26 = !{!15, !12, i64 128} | 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"
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9CommunityC2E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr nocapture noundef readonly byval(%class.Graph) align 8 %1, i32 noundef %2, double noundef %3, double noundef %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
tail call void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
%6 = getelementptr inbounds i8, ptr %0, i64 48
tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
%7 = getelementptr inbounds i8, ptr %0, i64 72
tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
%8 = getelementptr inbounds i8, ptr %0, i64 96
tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, i64 40, i1 false), !tbaa.struct !5
%9 = load i32, ptr %0, align 8, !tbaa !12
%10 = getelementptr inbounds i8, ptr %0, i64 40
store i32 %9, ptr %10, align 8, !tbaa !20
%11 = getelementptr inbounds i8, ptr %0, i64 136
store double %4, ptr %11, align 8, !tbaa !21
%12 = sext i32 %9 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %12)
to label %13 unwind label %23
13: ; preds = %5
%14 = load i32, ptr %10, align 8, !tbaa !20
%15 = sext i32 %14 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %15)
to label %16 unwind label %23
16: ; preds = %13
%17 = load i32, ptr %10, align 8, !tbaa !20
%18 = sext i32 %17 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %18)
to label %.preheader unwind label %23
.preheader: ; preds = %16
%19 = load i32, ptr %10, align 8, !tbaa !20
%20 = icmp sgt i32 %19, 0
br i1 %20, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %31, %.preheader
%21 = getelementptr inbounds i8, ptr %0, i64 120
store i32 %2, ptr %21, align 8, !tbaa !22
%22 = getelementptr inbounds i8, ptr %0, i64 128
store double %3, ptr %22, align 8, !tbaa !23
ret void
23: ; preds = %16, %13, %5
%24 = landingpad { ptr, i32 }
cleanup
br label %38
.lr.ph: ; preds = %.preheader, %31
%indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %.preheader ]
%25 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
%26 = trunc nuw nsw i64 %indvars.iv to i32
store i32 %26, ptr %25, align 4, !tbaa !6
%27 = invoke noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %26)
to label %28 unwind label %36
28: ; preds = %.lr.ph
%29 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #5
store i32 %27, ptr %29, align 4, !tbaa !6
%30 = invoke noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %26)
to label %31 unwind label %36
31: ; preds = %28
%32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #5
store i32 %30, ptr %32, align 4, !tbaa !6
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%33 = load i32, ptr %10, align 8, !tbaa !20
%34 = sext i32 %33 to i64
%35 = icmp slt i64 %indvars.iv.next, %34
br i1 %35, label %.lr.ph, label %._crit_edge, !llvm.loop !24
36: ; preds = %28, %.lr.ph
%37 = landingpad { ptr, i32 }
cleanup
br label %38
38: ; preds = %36, %23
%.pn = phi { ptr, i32 } [ %37, %36 ], [ %24, %23 ]
tail call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
tail call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
tail call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
resume { ptr, i32 } %.pn
}
attributes #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 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 16, i64 8, !10, i64 24, i64 8, !10, i64 32, i64 8, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"_ZTS9Community", !14, i64 0, !7, i64 40, !15, i64 48, !15, i64 72, !15, i64 96, !7, i64 120, !19, i64 128, !19, i64 136}
!14 = !{!"_ZTS5Graph", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!19 = !{!"double", !8, i64 0}
!20 = !{!13, !7, i64 40}
!21 = !{!13, !19, i64 136}
!22 = !{!13, !7, i64 120}
!23 = !{!13, !19, i64 128}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | f5ded9c92ec631c7 | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9CommunityC2E5Graphidd | BSD-2-Clause |
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"
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9CommunityC2EPciidd(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, double noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca %class.Graph, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %7, align 8, !tbaa !5
store ptr %1, ptr %8, align 8, !tbaa !5
store i32 %2, ptr %9, align 4, !tbaa !9
store i32 %3, ptr %10, align 4, !tbaa !9
store double %4, ptr %11, align 8, !tbaa !11
store double %5, ptr %12, align 8, !tbaa !11
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 0
call void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %18)
%19 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 2
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
%20 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 3
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
%21 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 4
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
call void @llvm.lifetime.start.p0(i64 40, ptr %13) #6
%22 = load ptr, ptr %8, align 8, !tbaa !5
%23 = load i32, ptr %9, align 4, !tbaa !9
invoke void @_ZN5GraphC1EPci(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef %22, i32 noundef %23)
to label %24 unwind label %53
24: ; preds = %6
%25 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 0
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %13, i64 40, i1 false), !tbaa.struct !13
call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
%26 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 0
%27 = getelementptr inbounds %class.Graph, ptr %26, i32 0, i32 0
%28 = load i32, ptr %27, align 8, !tbaa !14
%29 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
store i32 %28, ptr %29, align 8, !tbaa !21
%30 = load double, ptr %12, align 8, !tbaa !11
%31 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 7
store double %30, ptr %31, align 8, !tbaa !22
%32 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 2
%33 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
%34 = load i32, ptr %33, align 8, !tbaa !21
%35 = sext i32 %34 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %35)
to label %36 unwind label %57
36: ; preds = %24
%37 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 3
%38 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
%39 = load i32, ptr %38, align 8, !tbaa !21
%40 = sext i32 %39 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %40)
to label %41 unwind label %57
41: ; preds = %36
%42 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 4
%43 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
%44 = load i32, ptr %43, align 8, !tbaa !21
%45 = sext i32 %44 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %45)
to label %46 unwind label %57
46: ; preds = %41
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
store i32 0, ptr %16, align 4, !tbaa !9
br label %47
47: ; preds = %83, %46
%48 = load i32, ptr %16, align 4, !tbaa !9
%49 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 1
%50 = load i32, ptr %49, align 8, !tbaa !21
%51 = icmp slt i32 %48, %50
br i1 %51, label %61, label %52
52: ; preds = %47
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
br label %90
53: ; preds = %6
%54 = landingpad { ptr, i32 }
cleanup
%55 = extractvalue { ptr, i32 } %54, 0
store ptr %55, ptr %14, align 8
%56 = extractvalue { ptr, i32 } %54, 1
store i32 %56, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
br label %95
57: ; preds = %41, %36, %24
%58 = landingpad { ptr, i32 }
cleanup
%59 = extractvalue { ptr, i32 } %58, 0
store ptr %59, ptr %14, align 8
%60 = extractvalue { ptr, i32 } %58, 1
store i32 %60, ptr %15, align 4
br label %95
61: ; preds = %47
%62 = load i32, ptr %16, align 4, !tbaa !9
%63 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 2
%64 = load i32, ptr %16, align 4, !tbaa !9
%65 = sext i32 %64 to i64
%66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %65) #6
store i32 %62, ptr %66, align 4, !tbaa !9
%67 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 0
%68 = load i32, ptr %16, align 4, !tbaa !9
%69 = invoke noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40) %67, i32 noundef %68)
to label %70 unwind label %86
70: ; preds = %61
%71 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 3
%72 = load i32, ptr %16, align 4, !tbaa !9
%73 = sext i32 %72 to i64
%74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73) #6
store i32 %69, ptr %74, align 4, !tbaa !9
%75 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 0
%76 = load i32, ptr %16, align 4, !tbaa !9
%77 = invoke noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40) %75, i32 noundef %76)
to label %78 unwind label %86
78: ; preds = %70
%79 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 4
%80 = load i32, ptr %16, align 4, !tbaa !9
%81 = sext i32 %80 to i64
%82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #6
store i32 %77, ptr %82, align 4, !tbaa !9
br label %83
83: ; preds = %78
%84 = load i32, ptr %16, align 4, !tbaa !9
%85 = add nsw i32 %84, 1
store i32 %85, ptr %16, align 4, !tbaa !9
br label %47, !llvm.loop !23
86: ; preds = %70, %61
%87 = landingpad { ptr, i32 }
cleanup
%88 = extractvalue { ptr, i32 } %87, 0
store ptr %88, ptr %14, align 8
%89 = extractvalue { ptr, i32 } %87, 1
store i32 %89, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
br label %95
90: ; preds = %52
%91 = load i32, ptr %10, align 4, !tbaa !9
%92 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 5
store i32 %91, ptr %92, align 8, !tbaa !25
%93 = load double, ptr %11, align 8, !tbaa !11
%94 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 6
store double %93, ptr %94, align 8, !tbaa !26
ret void
95: ; preds = %86, %57, %53
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
br label %96
96: ; preds = %95
%97 = load ptr, ptr %14, align 8
%98 = load i32, ptr %15, align 4
%99 = insertvalue { ptr, i32 } poison, ptr %97, 0
%100 = insertvalue { ptr, i32 } %99, i32 %98, 1
resume { ptr, i32 } %100
}
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3
declare void @_ZN5GraphC1EPci(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
attributes #0 = { mustprogress 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 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTS9Community", !16, i64 0, !10, i64 40, !17, i64 48, !17, i64 72, !17, i64 96, !10, i64 120, !12, i64 128, !12, i64 136}
!16 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!15, !10, i64 40}
!22 = !{!15, !12, i64 136}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!15, !10, i64 120}
!26 = !{!15, !12, i64 128}
| 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"
%STRUCT0 = type { i32, i32, i32, ptr, ptr, ptr }
%STRUCT1 = type { %STRUCT0, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9CommunityC2EPciidd(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, double noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
B0:
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca %STRUCT0, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8, !tbaa !5
store ptr %1, ptr %7, align 8, !tbaa !5
store i32 %2, ptr %8, align 4, !tbaa !9
store i32 %3, ptr %9, align 4, !tbaa !9
store double %4, ptr %10, align 8, !tbaa !11
store double %5, ptr %11, align 8, !tbaa !11
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 0
call void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17)
%18 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 2
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
%19 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 3
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
%20 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 4
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
%21 = load ptr, ptr %7, align 8, !tbaa !5
%22 = load i32, ptr %8, align 4, !tbaa !9
invoke void @_ZN5GraphC1EPci(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %21, i32 noundef %22)
to label %B1 unwind label %B7
B1:
%23 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 0
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %12, i64 40, i1 false), !tbaa.struct !13
call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
%24 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 0
%25 = getelementptr inbounds %STRUCT0, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 8, !tbaa !14
%27 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 1
store i32 %26, ptr %27, align 8, !tbaa !21
%28 = load double, ptr %11, align 8, !tbaa !11
%29 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 7
store double %28, ptr %29, align 8, !tbaa !22
%30 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 2
%31 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 1
%32 = load i32, ptr %31, align 8, !tbaa !21
%33 = sext i32 %32 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %33)
to label %B2 unwind label %B8
B2:
%34 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 3
%35 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 1
%36 = load i32, ptr %35, align 8, !tbaa !21
%37 = sext i32 %36 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %37)
to label %B3 unwind label %B8
B3:
%38 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 4
%39 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 1
%40 = load i32, ptr %39, align 8, !tbaa !21
%41 = sext i32 %40 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %41)
to label %B4 unwind label %B8
B4:
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
store i32 0, ptr %15, align 4, !tbaa !9
br label %B5
B5:
%42 = load i32, ptr %15, align 4, !tbaa !9
%43 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 1
%44 = load i32, ptr %43, align 8, !tbaa !21
%45 = icmp slt i32 %42, %44
br i1 %45, label %B9, label %B6
B6:
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
br label %B14
B7:
%46 = landingpad { ptr, i32 }
cleanup
%47 = extractvalue { ptr, i32 } %46, 0
store ptr %47, ptr %13, align 8
%48 = extractvalue { ptr, i32 } %46, 1
store i32 %48, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
br label %B15
B8:
%49 = landingpad { ptr, i32 }
cleanup
%50 = extractvalue { ptr, i32 } %49, 0
store ptr %50, ptr %13, align 8
%51 = extractvalue { ptr, i32 } %49, 1
store i32 %51, ptr %14, align 4
br label %B15
B9:
%52 = load i32, ptr %15, align 4, !tbaa !9
%53 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 2
%54 = load i32, ptr %15, align 4, !tbaa !9
%55 = sext i32 %54 to i64
%56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %55) #6
store i32 %52, ptr %56, align 4, !tbaa !9
%57 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 0
%58 = load i32, ptr %15, align 4, !tbaa !9
%59 = invoke noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40) %57, i32 noundef %58)
to label %B10 unwind label %B13
B10:
%60 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 3
%61 = load i32, ptr %15, align 4, !tbaa !9
%62 = sext i32 %61 to i64
%63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62) #6
store i32 %59, ptr %63, align 4, !tbaa !9
%64 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 0
%65 = load i32, ptr %15, align 4, !tbaa !9
%66 = invoke noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40) %64, i32 noundef %65)
to label %B11 unwind label %B13
B11:
%67 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 4
%68 = load i32, ptr %15, align 4, !tbaa !9
%69 = sext i32 %68 to i64
%70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %69) #6
store i32 %66, ptr %70, align 4, !tbaa !9
br label %B12
B12:
%71 = load i32, ptr %15, align 4, !tbaa !9
%72 = add nsw i32 %71, 1
store i32 %72, ptr %15, align 4, !tbaa !9
br label %B5, !llvm.loop !23
B13:
%73 = landingpad { ptr, i32 }
cleanup
%74 = extractvalue { ptr, i32 } %73, 0
store ptr %74, ptr %13, align 8
%75 = extractvalue { ptr, i32 } %73, 1
store i32 %75, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
br label %B15
B14:
%76 = load i32, ptr %9, align 4, !tbaa !9
%77 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 5
store i32 %76, ptr %77, align 8, !tbaa !25
%78 = load double, ptr %10, align 8, !tbaa !11
%79 = getelementptr inbounds %STRUCT1, ptr %16, i32 0, i32 6
store double %78, ptr %79, align 8, !tbaa !26
ret void
B15:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
br label %B16
B16:
%80 = load ptr, ptr %13, align 8
%81 = load i32, ptr %14, align 4
%82 = insertvalue { ptr, i32 } poison, ptr %80, 0
%83 = insertvalue { ptr, i32 } %82, i32 %81, 1
resume { ptr, i32 } %83
}
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3
declare void @_ZN5GraphC1EPci(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
attributes #0 = { mustprogress 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 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTS9Community", !16, i64 0, !10, i64 40, !17, i64 48, !17, i64 72, !17, i64 96, !10, i64 120, !12, i64 128, !12, i64 136}
!16 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!15, !10, i64 40}
!22 = !{!15, !12, i64 136}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!15, !10, i64 120}
!26 = !{!15, !12, i64 128} | 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"
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9CommunityC2EPciidd(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, double noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
%7 = alloca %class.Graph, align 8
tail call void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
%8 = getelementptr inbounds i8, ptr %0, i64 48
tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
%9 = getelementptr inbounds i8, ptr %0, i64 72
tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
%10 = getelementptr inbounds i8, ptr %0, i64 96
tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
invoke void @_ZN5GraphC1EPci(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %1, i32 noundef %2)
to label %11 unwind label %26
11: ; preds = %6
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %7, i64 40, i1 false), !tbaa.struct !5
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
%12 = load i32, ptr %0, align 8, !tbaa !12
%13 = getelementptr inbounds i8, ptr %0, i64 40
store i32 %12, ptr %13, align 8, !tbaa !20
%14 = getelementptr inbounds i8, ptr %0, i64 136
store double %5, ptr %14, align 8, !tbaa !21
%15 = sext i32 %12 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %15)
to label %16 unwind label %28
16: ; preds = %11
%17 = load i32, ptr %13, align 8, !tbaa !20
%18 = sext i32 %17 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %18)
to label %19 unwind label %28
19: ; preds = %16
%20 = load i32, ptr %13, align 8, !tbaa !20
%21 = sext i32 %20 to i64
invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %21)
to label %.preheader unwind label %28
.preheader: ; preds = %19
%22 = load i32, ptr %13, align 8, !tbaa !20
%23 = icmp sgt i32 %22, 0
br i1 %23, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %36, %.preheader
%24 = getelementptr inbounds i8, ptr %0, i64 120
store i32 %3, ptr %24, align 8, !tbaa !22
%25 = getelementptr inbounds i8, ptr %0, i64 128
store double %4, ptr %25, align 8, !tbaa !23
ret void
26: ; preds = %6
%27 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
br label %43
28: ; preds = %19, %16, %11
%29 = landingpad { ptr, i32 }
cleanup
br label %43
.lr.ph: ; preds = %.preheader, %36
%indvars.iv = phi i64 [ %indvars.iv.next, %36 ], [ 0, %.preheader ]
%30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
%31 = trunc nuw nsw i64 %indvars.iv to i32
store i32 %31, ptr %30, align 4, !tbaa !6
%32 = invoke noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %31)
to label %33 unwind label %41
33: ; preds = %.lr.ph
%34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #6
store i32 %32, ptr %34, align 4, !tbaa !6
%35 = invoke noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %31)
to label %36 unwind label %41
36: ; preds = %33
%37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv) #6
store i32 %35, ptr %37, align 4, !tbaa !6
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%38 = load i32, ptr %13, align 8, !tbaa !20
%39 = sext i32 %38 to i64
%40 = icmp slt i64 %indvars.iv.next, %39
br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !24
41: ; preds = %33, %.lr.ph
%42 = landingpad { ptr, i32 }
cleanup
br label %43
43: ; preds = %41, %28, %26
%.pn = phi { ptr, i32 } [ %42, %41 ], [ %29, %28 ], [ %27, %26 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
resume { ptr, i32 } %.pn
}
declare void @_ZN5GraphC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3
declare void @_ZN5GraphC1EPci(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #1
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_selfloopsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #5 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Graph15weighted_degreeEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #5 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
attributes #0 = { mustprogress 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 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 16, i64 8, !10, i64 24, i64 8, !10, i64 32, i64 8, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"_ZTS9Community", !14, i64 0, !7, i64 40, !15, i64 48, !15, i64 72, !15, i64 96, !7, i64 120, !19, i64 128, !19, i64 136}
!14 = !{!"_ZTS5Graph", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!19 = !{!"double", !8, i64 0}
!20 = !{!13, !7, i64 40}
!21 = !{!13, !19, i64 136}
!22 = !{!13, !7, i64 120}
!23 = !{!13, !19, i64 128}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 8126751a67131a9e | conradlee/network-community-benchmark | comm_algs/louvain/community.ll | ZN9CommunityC2EPciidd | BSD-2-Clause |
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"
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%class.Graph = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph14display_binaryEPci(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %"class.std::basic_ofstream", align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i32 %2, ptr %6, align 4, !tbaa !9
%20 = load ptr, ptr %4, align 8
call void @llvm.lifetime.start.p0(i64 512, ptr %7) #5
call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %7)
%21 = load ptr, ptr %5, align 8, !tbaa !5
%22 = invoke noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 4)
to label %23 unwind label %37
23: ; preds = %3
invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef %21, i32 noundef %22)
to label %24 unwind label %37
24: ; preds = %23
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
%25 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%26 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
%27 = trunc i64 %26 to i32
store i32 %27, ptr %10, align 4, !tbaa !9
%28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %10, i64 noundef 4)
to label %29 unwind label %41
29: ; preds = %24
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
store i32 0, ptr %11, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
store i32 0, ptr %12, align 4, !tbaa !9
br label %30
30: ; preds = %57, %29
%31 = load i32, ptr %12, align 4, !tbaa !9
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%34 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
%35 = icmp ult i64 %32, %34
br i1 %35, label %45, label %36
36: ; preds = %30
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
br label %64
37: ; preds = %23, %3
%38 = landingpad { ptr, i32 }
cleanup
%39 = extractvalue { ptr, i32 } %38, 0
store ptr %39, ptr %8, align 8
%40 = extractvalue { ptr, i32 } %38, 1
store i32 %40, ptr %9, align 4
br label %155
41: ; preds = %24
%42 = landingpad { ptr, i32 }
cleanup
%43 = extractvalue { ptr, i32 } %42, 0
store ptr %43, ptr %8, align 8
%44 = extractvalue { ptr, i32 } %42, 1
store i32 %44, ptr %9, align 4
br label %154
45: ; preds = %30
%46 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%47 = load i32, ptr %12, align 4, !tbaa !9
%48 = zext i32 %47 to i64
%49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #5
%50 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
%51 = load i32, ptr %11, align 4, !tbaa !9
%52 = sext i32 %51 to i64
%53 = add i64 %52, %50
%54 = trunc i64 %53 to i32
store i32 %54, ptr %11, align 4, !tbaa !9
%55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %11, i64 noundef 4)
to label %56 unwind label %60
56: ; preds = %45
br label %57
57: ; preds = %56
%58 = load i32, ptr %12, align 4, !tbaa !9
%59 = add i32 %58, 1
store i32 %59, ptr %12, align 4, !tbaa !9
br label %30, !llvm.loop !11
60: ; preds = %45
%61 = landingpad { ptr, i32 }
cleanup
%62 = extractvalue { ptr, i32 } %61, 0
store ptr %62, ptr %8, align 8
%63 = extractvalue { ptr, i32 } %61, 1
store i32 %63, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
br label %153
64: ; preds = %36
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
store i32 0, ptr %13, align 4, !tbaa !9
br label %65
65: ; preds = %103, %64
%66 = load i32, ptr %13, align 4, !tbaa !9
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%69 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #5
%70 = icmp ult i64 %67, %69
br i1 %70, label %72, label %71
71: ; preds = %65
store i32 5, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
br label %106
72: ; preds = %65
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
store i32 0, ptr %15, align 4, !tbaa !9
br label %73
73: ; preds = %95, %72
%74 = load i32, ptr %15, align 4, !tbaa !9
%75 = zext i32 %74 to i64
%76 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%77 = load i32, ptr %13, align 4, !tbaa !9
%78 = zext i32 %77 to i64
%79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #5
%80 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #5
%81 = icmp ult i64 %75, %80
br i1 %81, label %83, label %82
82: ; preds = %73
store i32 8, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
br label %102
83: ; preds = %73
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
%84 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%85 = load i32, ptr %13, align 4, !tbaa !9
%86 = zext i32 %85 to i64
%87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #5
%88 = load i32, ptr %15, align 4, !tbaa !9
%89 = zext i32 %88 to i64
%90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #5
%91 = getelementptr inbounds %"struct.std::pair", ptr %90, i32 0, i32 0
%92 = load i32, ptr %91, align 4, !tbaa !13
store i32 %92, ptr %16, align 4, !tbaa !9
%93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %16, i64 noundef 4)
to label %94 unwind label %98
94: ; preds = %83
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
br label %95
95: ; preds = %94
%96 = load i32, ptr %15, align 4, !tbaa !9
%97 = add i32 %96, 1
store i32 %97, ptr %15, align 4, !tbaa !9
br label %73, !llvm.loop !15
98: ; preds = %83
%99 = landingpad { ptr, i32 }
cleanup
%100 = extractvalue { ptr, i32 } %99, 0
store ptr %100, ptr %8, align 8
%101 = extractvalue { ptr, i32 } %99, 1
store i32 %101, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
br label %153
102: ; preds = %82
br label %103
103: ; preds = %102
%104 = load i32, ptr %13, align 4, !tbaa !9
%105 = add i32 %104, 1
store i32 %105, ptr %13, align 4, !tbaa !9
br label %65, !llvm.loop !16
106: ; preds = %71
%107 = load i32, ptr %6, align 4, !tbaa !9
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %152
109: ; preds = %106
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
store i32 0, ptr %17, align 4, !tbaa !9
br label %110
110: ; preds = %148, %109
%111 = load i32, ptr %17, align 4, !tbaa !9
%112 = zext i32 %111 to i64
%113 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%114 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #5
%115 = icmp ult i64 %112, %114
br i1 %115, label %117, label %116
116: ; preds = %110
store i32 11, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
br label %151
117: ; preds = %110
call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
store i32 0, ptr %18, align 4, !tbaa !9
br label %118
118: ; preds = %140, %117
%119 = load i32, ptr %18, align 4, !tbaa !9
%120 = zext i32 %119 to i64
%121 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%122 = load i32, ptr %17, align 4, !tbaa !9
%123 = zext i32 %122 to i64
%124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %123) #5
%125 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #5
%126 = icmp ult i64 %120, %125
br i1 %126, label %128, label %127
127: ; preds = %118
store i32 14, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
br label %147
128: ; preds = %118
call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
%129 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%130 = load i32, ptr %17, align 4, !tbaa !9
%131 = zext i32 %130 to i64
%132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %131) #5
%133 = load i32, ptr %18, align 4, !tbaa !9
%134 = zext i32 %133 to i64
%135 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #5
%136 = getelementptr inbounds %"struct.std::pair", ptr %135, i32 0, i32 1
%137 = load i32, ptr %136, align 4, !tbaa !17
store i32 %137, ptr %19, align 4, !tbaa !9
%138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %19, i64 noundef 4)
to label %139 unwind label %143
139: ; preds = %128
call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
br label %140
140: ; preds = %139
%141 = load i32, ptr %18, align 4, !tbaa !9
%142 = add i32 %141, 1
store i32 %142, ptr %18, align 4, !tbaa !9
br label %118, !llvm.loop !18
143: ; preds = %128
%144 = landingpad { ptr, i32 }
cleanup
%145 = extractvalue { ptr, i32 } %144, 0
store ptr %145, ptr %8, align 8
%146 = extractvalue { ptr, i32 } %144, 1
store i32 %146, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
br label %153
147: ; preds = %127
br label %148
148: ; preds = %147
%149 = load i32, ptr %17, align 4, !tbaa !9
%150 = add i32 %149, 1
store i32 %150, ptr %17, align 4, !tbaa !9
br label %110, !llvm.loop !19
151: ; preds = %116
br label %152
152: ; preds = %151, %106
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %7) #5
call void @llvm.lifetime.end.p0(i64 512, ptr %7) #5
ret void
153: ; preds = %143, %98, %60
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
br label %154
154: ; preds = %153, %41
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
br label %155
155: ; preds = %154, %37
call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %7) #5
call void @llvm.lifetime.end.p0(i64 512, ptr %7) #5
br label %156
156: ; preds = %155
%157 = load ptr, ptr %8, align 8
%158 = load i32, ptr %9, align 4
%159 = insertvalue { ptr, i32 } poison, ptr %157, 0
%160 = insertvalue { ptr, i32 } %159, i32 %158, 1
resume { ptr, i32 } %160
}
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #4
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!14, !10, i64 4}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
| 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"
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %STRUCT0, %"class.std::__basic_file", i32, %STRUCT3, %STRUCT3, %STRUCT3, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%STRUCT0 = type { %STRUCT1 }
%STRUCT1 = type { i32, i32, i32, i32, i32, i16, i16, %STRUCT2 }
%STRUCT2 = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%STRUCT3 = type { i32, %STRUCT4 }
%STRUCT4 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%STRUCT5 = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph14display_binaryEPci(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
B0:
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.std::basic_ofstream", align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
store i32 %2, ptr %5, align 4, !tbaa !9
%19 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 512, ptr %6) #5
call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %6)
%20 = load ptr, ptr %4, align 8, !tbaa !5
%21 = invoke noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 4)
to label %B1 unwind label %B6
B1:
invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %6, ptr noundef %20, i32 noundef %21)
to label %B2 unwind label %B6
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
%22 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%23 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
%24 = trunc i64 %23 to i32
store i32 %24, ptr %9, align 4, !tbaa !9
%25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %9, i64 noundef 4)
to label %B3 unwind label %B7
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
store i32 0, ptr %10, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
store i32 0, ptr %11, align 4, !tbaa !9
br label %B4
B4:
%26 = load i32, ptr %11, align 4, !tbaa !9
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%29 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
%30 = icmp ult i64 %27, %29
br i1 %30, label %B8, label %B5
B5:
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
br label %B12
B6:
%31 = landingpad { ptr, i32 }
cleanup
%32 = extractvalue { ptr, i32 } %31, 0
store ptr %32, ptr %7, align 8
%33 = extractvalue { ptr, i32 } %31, 1
store i32 %33, ptr %8, align 4
br label %B41
B7:
%34 = landingpad { ptr, i32 }
cleanup
%35 = extractvalue { ptr, i32 } %34, 0
store ptr %35, ptr %7, align 8
%36 = extractvalue { ptr, i32 } %34, 1
store i32 %36, ptr %8, align 4
br label %B40
B8:
%37 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%38 = load i32, ptr %11, align 4, !tbaa !9
%39 = zext i32 %38 to i64
%40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #5
%41 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #5
%42 = load i32, ptr %10, align 4, !tbaa !9
%43 = sext i32 %42 to i64
%44 = add i64 %43, %41
%45 = trunc i64 %44 to i32
store i32 %45, ptr %10, align 4, !tbaa !9
%46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %10, i64 noundef 4)
to label %B9 unwind label %B11
B9:
br label %B10
B10:
%47 = load i32, ptr %11, align 4, !tbaa !9
%48 = add i32 %47, 1
store i32 %48, ptr %11, align 4, !tbaa !9
br label %B4, !llvm.loop !11
B11:
%49 = landingpad { ptr, i32 }
cleanup
%50 = extractvalue { ptr, i32 } %49, 0
store ptr %50, ptr %7, align 8
%51 = extractvalue { ptr, i32 } %49, 1
store i32 %51, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
br label %B39
B12:
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
store i32 0, ptr %12, align 4, !tbaa !9
br label %B13
B13:
%52 = load i32, ptr %12, align 4, !tbaa !9
%53 = zext i32 %52 to i64
%54 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%55 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #5
%56 = icmp ult i64 %53, %55
br i1 %56, label %B15, label %B14
B14:
store i32 5, ptr %13, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
br label %B24
B15:
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
store i32 0, ptr %14, align 4, !tbaa !9
br label %B16
B16:
%57 = load i32, ptr %14, align 4, !tbaa !9
%58 = zext i32 %57 to i64
%59 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%60 = load i32, ptr %12, align 4, !tbaa !9
%61 = zext i32 %60 to i64
%62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61) #5
%63 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #5
%64 = icmp ult i64 %58, %63
br i1 %64, label %B18, label %B17
B17:
store i32 8, ptr %13, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
br label %B22
B18:
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
%65 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%66 = load i32, ptr %12, align 4, !tbaa !9
%67 = zext i32 %66 to i64
%68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #5
%69 = load i32, ptr %14, align 4, !tbaa !9
%70 = zext i32 %69 to i64
%71 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #5
%72 = getelementptr inbounds %"struct.std::pair", ptr %71, i32 0, i32 0
%73 = load i32, ptr %72, align 4, !tbaa !13
store i32 %73, ptr %15, align 4, !tbaa !9
%74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %15, i64 noundef 4)
to label %B19 unwind label %B21
B19:
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
br label %B20
B20:
%75 = load i32, ptr %14, align 4, !tbaa !9
%76 = add i32 %75, 1
store i32 %76, ptr %14, align 4, !tbaa !9
br label %B16, !llvm.loop !15
B21:
%77 = landingpad { ptr, i32 }
cleanup
%78 = extractvalue { ptr, i32 } %77, 0
store ptr %78, ptr %7, align 8
%79 = extractvalue { ptr, i32 } %77, 1
store i32 %79, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
br label %B39
B22:
br label %B23
B23:
%80 = load i32, ptr %12, align 4, !tbaa !9
%81 = add i32 %80, 1
store i32 %81, ptr %12, align 4, !tbaa !9
br label %B13, !llvm.loop !16
B24:
%82 = load i32, ptr %5, align 4, !tbaa !9
%83 = icmp eq i32 %82, 0
br i1 %83, label %B25, label %B38
B25:
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
store i32 0, ptr %16, align 4, !tbaa !9
br label %B26
B26:
%84 = load i32, ptr %16, align 4, !tbaa !9
%85 = zext i32 %84 to i64
%86 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%87 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #5
%88 = icmp ult i64 %85, %87
br i1 %88, label %B28, label %B27
B27:
store i32 11, ptr %13, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
br label %B37
B28:
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
store i32 0, ptr %17, align 4, !tbaa !9
br label %B29
B29:
%89 = load i32, ptr %17, align 4, !tbaa !9
%90 = zext i32 %89 to i64
%91 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%92 = load i32, ptr %16, align 4, !tbaa !9
%93 = zext i32 %92 to i64
%94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %93) #5
%95 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #5
%96 = icmp ult i64 %90, %95
br i1 %96, label %B31, label %B30
B30:
store i32 14, ptr %13, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
br label %B35
B31:
call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
%97 = getelementptr inbounds %STRUCT5, ptr %19, i32 0, i32 0
%98 = load i32, ptr %16, align 4, !tbaa !9
%99 = zext i32 %98 to i64
%100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #5
%101 = load i32, ptr %17, align 4, !tbaa !9
%102 = zext i32 %101 to i64
%103 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #5
%104 = getelementptr inbounds %"struct.std::pair", ptr %103, i32 0, i32 1
%105 = load i32, ptr %104, align 4, !tbaa !17
store i32 %105, ptr %18, align 4, !tbaa !9
%106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %18, i64 noundef 4)
to label %B32 unwind label %B34
B32:
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
br label %B33
B33:
%107 = load i32, ptr %17, align 4, !tbaa !9
%108 = add i32 %107, 1
store i32 %108, ptr %17, align 4, !tbaa !9
br label %B29, !llvm.loop !18
B34:
%109 = landingpad { ptr, i32 }
cleanup
%110 = extractvalue { ptr, i32 } %109, 0
store ptr %110, ptr %7, align 8
%111 = extractvalue { ptr, i32 } %109, 1
store i32 %111, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
br label %B39
B35:
br label %B36
B36:
%112 = load i32, ptr %16, align 4, !tbaa !9
%113 = add i32 %112, 1
store i32 %113, ptr %16, align 4, !tbaa !9
br label %B26, !llvm.loop !19
B37:
br label %B38
B38:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %6) #5
call void @llvm.lifetime.end.p0(i64 512, ptr %6) #5
ret void
B39:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
br label %B40
B40:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
br label %B41
B41:
call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %6) #5
call void @llvm.lifetime.end.p0(i64 512, ptr %6) #5
br label %B42
B42:
%114 = load ptr, ptr %7, align 8
%115 = load i32, ptr %8, align 4
%116 = insertvalue { ptr, i32 } poison, ptr %114, 0
%117 = insertvalue { ptr, i32 } %116, i32 %115, 1
resume { ptr, i32 } %117
}
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #4
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!14, !10, i64 4}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12} | 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"
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph14display_binaryEPci(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca %"class.std::basic_ofstream", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %4) #5
call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %4)
%9 = call noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 4)
invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %4, ptr noundef %1, i32 noundef %9)
to label %10 unwind label %17
10: ; preds = %3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
%11 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%12 = trunc i64 %11 to i32
store i32 %12, ptr %5, align 4, !tbaa !5
%13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %5, i64 noundef 4)
to label %14 unwind label %19
14: ; preds = %10
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
store i32 0, ptr %6, align 4, !tbaa !5
%15 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%.not = icmp eq i64 %15, 0
br i1 %.not, label %.preheader39, label %.lr.ph
.preheader39: ; preds = %28, %14
%16 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%.not49 = icmp eq i64 %16, 0
br i1 %.not49, label %._crit_edge44, label %.preheader38
17: ; preds = %3
%18 = landingpad { ptr, i32 }
cleanup
br label %80
19: ; preds = %10
%20 = landingpad { ptr, i32 }
cleanup
br label %79
.lr.ph: ; preds = %14, %28
%21 = phi i64 [ %30, %28 ], [ 0, %14 ]
%.02440 = phi i32 [ %29, %28 ], [ 0, %14 ]
%22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %21) #5
%23 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
%24 = load i32, ptr %6, align 4, !tbaa !5
%25 = trunc i64 %23 to i32
%26 = add i32 %24, %25
store i32 %26, ptr %6, align 4, !tbaa !5
%27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %6, i64 noundef 4)
to label %28 unwind label %33
28: ; preds = %.lr.ph
%29 = add i32 %.02440, 1
%30 = zext i32 %29 to i64
%31 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%32 = icmp ugt i64 %31, %30
br i1 %32, label %.lr.ph, label %.preheader39, !llvm.loop !9
33: ; preds = %.lr.ph
%34 = landingpad { ptr, i32 }
cleanup
br label %78
.preheader38: ; preds = %.preheader39, %._crit_edge
%35 = phi i64 [ %41, %._crit_edge ], [ 0, %.preheader39 ]
%.02343 = phi i32 [ %40, %._crit_edge ], [ 0, %.preheader39 ]
%36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %35) #5
%37 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
%.not50 = icmp eq i64 %37, 0
br i1 %.not50, label %._crit_edge, label %.lr.ph42
._crit_edge44: ; preds = %._crit_edge, %.preheader39
%38 = icmp eq i32 %2, 0
br i1 %38, label %.preheader37, label %.loopexit
.preheader37: ; preds = %._crit_edge44
%39 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%.not51 = icmp eq i64 %39, 0
br i1 %.not51, label %.loopexit, label %.preheader
._crit_edge: ; preds = %49, %.preheader38
%40 = add i32 %.02343, 1
%41 = zext i32 %40 to i64
%42 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%43 = icmp ugt i64 %42, %41
br i1 %43, label %.preheader38, label %._crit_edge44, !llvm.loop !11
.lr.ph42: ; preds = %.preheader38, %49
%44 = phi i64 [ %51, %49 ], [ 0, %.preheader38 ]
%.02241 = phi i32 [ %50, %49 ], [ 0, %.preheader38 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
%45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %35) #5
%46 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %44) #5
%47 = load i32, ptr %46, align 4, !tbaa !12
store i32 %47, ptr %7, align 4, !tbaa !5
%48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %7, i64 noundef 4)
to label %49 unwind label %55
49: ; preds = %.lr.ph42
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
%50 = add i32 %.02241, 1
%51 = zext i32 %50 to i64
%52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %35) #5
%53 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #5
%54 = icmp ugt i64 %53, %51
br i1 %54, label %.lr.ph42, label %._crit_edge, !llvm.loop !14
55: ; preds = %.lr.ph42
%56 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
br label %78
.preheader: ; preds = %.preheader37, %._crit_edge47
%57 = phi i64 [ %61, %._crit_edge47 ], [ 0, %.preheader37 ]
%.02148 = phi i32 [ %60, %._crit_edge47 ], [ 0, %.preheader37 ]
%58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %57) #5
%59 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #5
%.not52 = icmp eq i64 %59, 0
br i1 %.not52, label %._crit_edge47, label %.lr.ph46
._crit_edge47: ; preds = %70, %.preheader
%60 = add i32 %.02148, 1
%61 = zext i32 %60 to i64
%62 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
%63 = icmp ugt i64 %62, %61
br i1 %63, label %.preheader, label %.loopexit, !llvm.loop !15
.lr.ph46: ; preds = %.preheader, %70
%64 = phi i64 [ %72, %70 ], [ 0, %.preheader ]
%.045 = phi i32 [ %71, %70 ], [ 0, %.preheader ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
%65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %57) #5
%66 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %64) #5
%67 = getelementptr inbounds i8, ptr %66, i64 4
%68 = load i32, ptr %67, align 4, !tbaa !16
store i32 %68, ptr %8, align 4, !tbaa !5
%69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %8, i64 noundef 4)
to label %70 unwind label %76
70: ; preds = %.lr.ph46
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
%71 = add i32 %.045, 1
%72 = zext i32 %71 to i64
%73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %57) #5
%74 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #5
%75 = icmp ugt i64 %74, %72
br i1 %75, label %.lr.ph46, label %._crit_edge47, !llvm.loop !17
76: ; preds = %.lr.ph46
%77 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
br label %78
.loopexit: ; preds = %._crit_edge47, %.preheader37, %._crit_edge44
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 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %4) #5
call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #5
ret void
78: ; preds = %76, %55, %33
%.pn = phi { ptr, i32 } [ %34, %33 ], [ %56, %55 ], [ %77, %76 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
br label %79
79: ; preds = %78, %19
%.pn.pn = phi { ptr, i32 } [ %.pn, %78 ], [ %20, %19 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
br label %80
80: ; preds = %79, %17
%.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %79 ], [ %18, %17 ]
call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %4) #5
call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #5
resume { ptr, i32 } %.pn.pn.pn
}
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) local_unnamed_addr #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = !{!13, !6, i64 4}
!17 = distinct !{!17, !10}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | ea8b1f5d51d6595c | conradlee/network-community-benchmark | comm_algs/louvain/graph.ll | ZN5Graph14display_binaryEPci | BSD-2-Clause |
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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.15" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Graph = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.17" = type { i32, i32 }
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
declare i32 @fflush(ptr noundef) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph5cleanEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca %"class.std::map", align 8
%8 = alloca %"struct.std::_Rb_tree_iterator", align 8
%9 = alloca i32, align 4
%10 = alloca %"struct.std::_Rb_tree_iterator", align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca %"struct.std::_Rb_tree_iterator", align 8
%14 = alloca %"struct.std::pair", align 4
%15 = alloca %"struct.std::pair.15", align 8
%16 = alloca %"class.std::vector.0", align 8
%17 = alloca %"struct.std::_Rb_tree_iterator", align 8
%18 = alloca %"struct.std::_Rb_tree_iterator", align 8
%19 = alloca %"struct.std::pair", align 4
%20 = alloca %"struct.std::_Rb_tree_iterator", align 8
store ptr %0, ptr %3, align 8, !tbaa !5
store i32 %1, ptr %4, align 4, !tbaa !9
%21 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
store i32 0, ptr %5, align 4, !tbaa !9
br label %22
22: ; preds = %149, %2
%23 = load i32, ptr %5, align 4, !tbaa !9
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds %class.Graph, ptr %21, i32 0, i32 0
%26 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
%27 = icmp ult i64 %24, %26
br i1 %27, label %29, label %28
28: ; preds = %22
store i32 2, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %158
29: ; preds = %22
%30 = load i32, ptr %5, align 4, !tbaa !9
%31 = urem i32 %30, 10000000
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load ptr, ptr @stderr, align 8, !tbaa !5
%35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str) #6
br label %36
36: ; preds = %33, %29
%37 = load ptr, ptr @stderr, align 8, !tbaa !5
%38 = call i32 @fflush(ptr noundef %37)
call void @llvm.lifetime.start.p0(i64 48, ptr %7) #6
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
call void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !9
br label %39
39: ; preds = %116, %36
%40 = load i32, ptr %9, align 4, !tbaa !9
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds %class.Graph, ptr %21, i32 0, i32 0
%43 = load i32, ptr %5, align 4, !tbaa !9
%44 = zext i32 %43 to i64
%45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44) #6
%46 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
%47 = icmp ult i64 %41, %46
br i1 %47, label %49, label %48
48: ; preds = %39
store i32 5, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %120
49: ; preds = %39
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
%50 = getelementptr inbounds %class.Graph, ptr %21, i32 0, i32 0
%51 = load i32, ptr %5, align 4, !tbaa !9
%52 = zext i32 %51 to i64
%53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #6
%54 = load i32, ptr %9, align 4, !tbaa !9
%55 = zext i32 %54 to i64
%56 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %55) #6
%57 = getelementptr inbounds %"struct.std::pair", ptr %56, i32 0, i32 0
%58 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %57)
to label %59 unwind label %89
59: ; preds = %49
%60 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %10, i32 0, i32 0
store ptr %58, ptr %60, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %10, i64 8, i1 false), !tbaa.struct !11
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
%61 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
%62 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
store ptr %61, ptr %62, align 8
%63 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
br i1 %63, label %64, label %97
64: ; preds = %59
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
%65 = getelementptr inbounds %class.Graph, ptr %21, i32 0, i32 0
%66 = load i32, ptr %5, align 4, !tbaa !9
%67 = zext i32 %66 to i64
%68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #6
%69 = load i32, ptr %9, align 4, !tbaa !9
%70 = zext i32 %69 to i64
%71 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #6
%72 = getelementptr inbounds %"struct.std::pair", ptr %71, i32 0, i32 0
%73 = getelementptr inbounds %class.Graph, ptr %21, i32 0, i32 0
%74 = load i32, ptr %5, align 4, !tbaa !9
%75 = zext i32 %74 to i64
%76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %75) #6
%77 = load i32, ptr %9, align 4, !tbaa !9
%78 = zext i32 %77 to i64
%79 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #6
%80 = getelementptr inbounds %"struct.std::pair", ptr %79, i32 0, i32 1
%81 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %72, ptr noundef nonnull align 4 dereferenceable(4) %80)
to label %82 unwind label %93
82: ; preds = %64
store i64 %81, ptr %14, align 4
%83 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(8) %14)
to label %84 unwind label %93
84: ; preds = %82
%85 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 0
%86 = extractvalue { ptr, i8 } %83, 0
store ptr %86, ptr %85, align 8
%87 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 1
%88 = extractvalue { ptr, i8 } %83, 1
store i8 %88, ptr %87, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
br label %115
89: ; preds = %49
%90 = landingpad { ptr, i32 }
cleanup
%91 = extractvalue { ptr, i32 } %90, 0
store ptr %91, ptr %11, align 8
%92 = extractvalue { ptr, i32 } %90, 1
store i32 %92, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
br label %119
93: ; preds = %82, %64
%94 = landingpad { ptr, i32 }
cleanup
%95 = extractvalue { ptr, i32 } %94, 0
store ptr %95, ptr %11, align 8
%96 = extractvalue { ptr, i32 } %94, 1
store i32 %96, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
br label %119
97: ; preds = %59
%98 = load i32, ptr %4, align 4, !tbaa !9
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %114
100: ; preds = %97
%101 = getelementptr inbounds %class.Graph, ptr %21, i32 0, i32 0
%102 = load i32, ptr %5, align 4, !tbaa !9
%103 = zext i32 %102 to i64
%104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103) #6
%105 = load i32, ptr %9, align 4, !tbaa !9
%106 = zext i32 %105 to i64
%107 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %106) #6
%108 = getelementptr inbounds %"struct.std::pair", ptr %107, i32 0, i32 1
%109 = load i32, ptr %108, align 4, !tbaa !12
%110 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
%111 = getelementptr inbounds %"struct.std::pair.17", ptr %110, i32 0, i32 1
%112 = load i32, ptr %111, align 4, !tbaa !14
%113 = add nsw i32 %112, %109
store i32 %113, ptr %111, align 4, !tbaa !14
br label %114
114: ; preds = %100, %97
br label %115
115: ; preds = %114, %84
br label %116
116: ; preds = %115
%117 = load i32, ptr %9, align 4, !tbaa !9
%118 = add i32 %117, 1
store i32 %118, ptr %9, align 4, !tbaa !9
br label %39, !llvm.loop !16
119: ; preds = %93, %89
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %157
120: ; preds = %48
call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
%121 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
%122 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
store ptr %121, ptr %122, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !11
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
br label %123
123: ; preds = %131, %120
call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
%124 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
%125 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
store ptr %124, ptr %125, align 8
%126 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
br i1 %126, label %127, label %138
127: ; preds = %123
call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
%128 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
invoke void @_ZNSt4pairIiiEC2IKiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %128)
to label %129 unwind label %134
129: ; preds = %127
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(8) %19)
to label %130 unwind label %134
130: ; preds = %129
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
br label %131
131: ; preds = %130
%132 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #6
%133 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
store ptr %132, ptr %133, align 8
br label %123, !llvm.loop !18
134: ; preds = %129, %127
%135 = landingpad { ptr, i32 }
cleanup
%136 = extractvalue { ptr, i32 } %135, 0
store ptr %136, ptr %11, align 8
%137 = extractvalue { ptr, i32 } %135, 1
store i32 %137, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
br label %156
138: ; preds = %123
%139 = getelementptr inbounds %class.Graph, ptr %21, i32 0, i32 0
%140 = load i32, ptr %5, align 4, !tbaa !9
%141 = zext i32 %140 to i64
%142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %141) #6
call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #6
%143 = getelementptr inbounds %class.Graph, ptr %21, i32 0, i32 0
%144 = load i32, ptr %5, align 4, !tbaa !9
%145 = zext i32 %144 to i64
%146 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %145) #6
%147 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 8 dereferenceable(24) %16)
to label %148 unwind label %152
148: ; preds = %138
call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
br label %149
149: ; preds = %148
%150 = load i32, ptr %5, align 4, !tbaa !9
%151 = add i32 %150, 1
store i32 %151, ptr %5, align 4, !tbaa !9
br label %22, !llvm.loop !19
152: ; preds = %138
%153 = landingpad { ptr, i32 }
cleanup
%154 = extractvalue { ptr, i32 } %153, 0
store ptr %154, ptr %11, align 8
%155 = extractvalue { ptr, i32 } %153, 1
store i32 %155, ptr %12, align 4
br label %156
156: ; preds = %152, %134
call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
br label %157
157: ; preds = %156, %119
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %159
158: ; preds = %28
ret void
159: ; preds = %157
%160 = load ptr, ptr %11, align 8
%161 = load i32, ptr %12, align 4
%162 = insertvalue { ptr, i32 } poison, ptr %160, 0
%163 = insertvalue { ptr, i32 } %162, i32 %161, 1
resume { ptr, i32 } %163
}
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IKiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !5}
!12 = !{!13, !10, i64 4}
!13 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!14 = !{!15, !10, i64 4}
!15 = !{!"_ZTSSt4pairIKiiE", !10, i64 0, !10, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
| 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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.15" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%STRUCT0 = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.17" = type { i32, i32 }
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
declare i32 @fflush(ptr noundef) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph5cleanEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
B0:
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %"class.std::map", align 8
%7 = alloca %"struct.std::_Rb_tree_iterator", align 8
%8 = alloca i32, align 4
%9 = alloca %"struct.std::_Rb_tree_iterator", align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca %"struct.std::_Rb_tree_iterator", align 8
%13 = alloca %"struct.std::pair", align 4
%14 = alloca %"struct.std::pair.15", align 8
%15 = alloca %"class.std::vector.0", align 8
%16 = alloca %"struct.std::_Rb_tree_iterator", align 8
%17 = alloca %"struct.std::_Rb_tree_iterator", align 8
%18 = alloca %"struct.std::pair", align 4
%19 = alloca %"struct.std::_Rb_tree_iterator", align 8
store ptr %0, ptr %2, align 8, !tbaa !5
store i32 %1, ptr %3, align 4, !tbaa !9
%20 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
store i32 0, ptr %4, align 4, !tbaa !9
br label %B1
B1:
%21 = load i32, ptr %4, align 4, !tbaa !9
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%24 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
%25 = icmp ult i64 %22, %24
br i1 %25, label %B3, label %B2
B2:
store i32 2, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
br label %B34
B3:
%26 = load i32, ptr %4, align 4, !tbaa !9
%27 = urem i32 %26, 10000000
%28 = icmp eq i32 %27, 0
br i1 %28, label %B4, label %B5
B4:
%29 = load ptr, ptr @stderr, align 8, !tbaa !5
%30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str) #6
br label %B5
B5:
%31 = load ptr, ptr @stderr, align 8, !tbaa !5
%32 = call i32 @fflush(ptr noundef %31)
call void @llvm.lifetime.start.p0(i64 48, ptr %6) #6
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
call void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
store i32 0, ptr %8, align 4, !tbaa !9
br label %B6
B6:
%33 = load i32, ptr %8, align 4, !tbaa !9
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%36 = load i32, ptr %4, align 4, !tbaa !9
%37 = zext i32 %36 to i64
%38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %37) #6
%39 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
%40 = icmp ult i64 %34, %39
br i1 %40, label %B8, label %B7
B7:
store i32 5, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %B21
B8:
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
%41 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%42 = load i32, ptr %4, align 4, !tbaa !9
%43 = zext i32 %42 to i64
%44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43) #6
%45 = load i32, ptr %8, align 4, !tbaa !9
%46 = zext i32 %45 to i64
%47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #6
%48 = getelementptr inbounds %"struct.std::pair", ptr %47, i32 0, i32 0
%49 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %48)
to label %B9 unwind label %B13
B9:
%50 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %9, i32 0, i32 0
store ptr %49, ptr %50, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %9, i64 8, i1 false), !tbaa.struct !11
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
%51 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
%52 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %12, i32 0, i32 0
store ptr %51, ptr %52, align 8
%53 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
br i1 %53, label %B10, label %B15
B10:
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
%54 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%55 = load i32, ptr %4, align 4, !tbaa !9
%56 = zext i32 %55 to i64
%57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56) #6
%58 = load i32, ptr %8, align 4, !tbaa !9
%59 = zext i32 %58 to i64
%60 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59) #6
%61 = getelementptr inbounds %"struct.std::pair", ptr %60, i32 0, i32 0
%62 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%63 = load i32, ptr %4, align 4, !tbaa !9
%64 = zext i32 %63 to i64
%65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64) #6
%66 = load i32, ptr %8, align 4, !tbaa !9
%67 = zext i32 %66 to i64
%68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #6
%69 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 1
%70 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %61, ptr noundef nonnull align 4 dereferenceable(4) %69)
to label %B11 unwind label %B14
B11:
store i64 %70, ptr %13, align 4
%71 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(8) %13)
to label %B12 unwind label %B14
B12:
%72 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
%73 = extractvalue { ptr, i8 } %71, 0
store ptr %73, ptr %72, align 8
%74 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
%75 = extractvalue { ptr, i8 } %71, 1
store i8 %75, ptr %74, align 8
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
br label %B18
B13:
%76 = landingpad { ptr, i32 }
cleanup
%77 = extractvalue { ptr, i32 } %76, 0
store ptr %77, ptr %10, align 8
%78 = extractvalue { ptr, i32 } %76, 1
store i32 %78, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
br label %B20
B14:
%79 = landingpad { ptr, i32 }
cleanup
%80 = extractvalue { ptr, i32 } %79, 0
store ptr %80, ptr %10, align 8
%81 = extractvalue { ptr, i32 } %79, 1
store i32 %81, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
br label %B20
B15:
%82 = load i32, ptr %3, align 4, !tbaa !9
%83 = icmp eq i32 %82, 0
br i1 %83, label %B16, label %B17
B16:
%84 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%85 = load i32, ptr %4, align 4, !tbaa !9
%86 = zext i32 %85 to i64
%87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #6
%88 = load i32, ptr %8, align 4, !tbaa !9
%89 = zext i32 %88 to i64
%90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #6
%91 = getelementptr inbounds %"struct.std::pair", ptr %90, i32 0, i32 1
%92 = load i32, ptr %91, align 4, !tbaa !12
%93 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
%94 = getelementptr inbounds %"struct.std::pair.17", ptr %93, i32 0, i32 1
%95 = load i32, ptr %94, align 4, !tbaa !14
%96 = add nsw i32 %95, %92
store i32 %96, ptr %94, align 4, !tbaa !14
br label %B17
B17:
br label %B18
B18:
br label %B19
B19:
%97 = load i32, ptr %8, align 4, !tbaa !9
%98 = add i32 %97, 1
store i32 %98, ptr %8, align 4, !tbaa !9
br label %B6, !llvm.loop !16
B20:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %B33
B21:
call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
%99 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
%100 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
store ptr %99, ptr %100, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %16, i64 8, i1 false), !tbaa.struct !11
call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
br label %B22
B22:
call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
%101 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
%102 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
store ptr %101, ptr %102, align 8
%103 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
br i1 %103, label %B23, label %B28
B23:
call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
%104 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
invoke void @_ZNSt4pairIiiEC2IKiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %104)
to label %B24 unwind label %B27
B24:
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(8) %18)
to label %B25 unwind label %B27
B25:
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
br label %B26
B26:
%105 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #6
%106 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
store ptr %105, ptr %106, align 8
br label %B22, !llvm.loop !18
B27:
%107 = landingpad { ptr, i32 }
cleanup
%108 = extractvalue { ptr, i32 } %107, 0
store ptr %108, ptr %10, align 8
%109 = extractvalue { ptr, i32 } %107, 1
store i32 %109, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
br label %B32
B28:
%110 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%111 = load i32, ptr %4, align 4, !tbaa !9
%112 = zext i32 %111 to i64
%113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #6
call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #6
%114 = getelementptr inbounds %STRUCT0, ptr %20, i32 0, i32 0
%115 = load i32, ptr %4, align 4, !tbaa !9
%116 = zext i32 %115 to i64
%117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %116) #6
%118 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %117, ptr noundef nonnull align 8 dereferenceable(24) %15)
to label %B29 unwind label %B31
B29:
call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %6) #6
br label %B30
B30:
%119 = load i32, ptr %4, align 4, !tbaa !9
%120 = add i32 %119, 1
store i32 %120, ptr %4, align 4, !tbaa !9
br label %B1, !llvm.loop !19
B31:
%121 = landingpad { ptr, i32 }
cleanup
%122 = extractvalue { ptr, i32 } %121, 0
store ptr %122, ptr %10, align 8
%123 = extractvalue { ptr, i32 } %121, 1
store i32 %123, ptr %11, align 4
br label %B32
B32:
call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
br label %B33
B33:
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
br label %B35
B34:
ret void
B35:
%124 = load ptr, ptr %10, align 8
%125 = load i32, ptr %11, align 4
%126 = insertvalue { ptr, i32 } poison, ptr %124, 0
%127 = insertvalue { ptr, i32 } %126, i32 %125, 1
resume { ptr, i32 } %127
}
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IKiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !5}
!12 = !{!13, !10, i64 4}
!13 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!14 = !{!15, !10, i64 4}
!15 = !{!"_ZTSSt4pairIKiiE", !10, i64 0, !10, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17} | 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"
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph5cleanEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca %"class.std::map", align 8
%4 = alloca %"struct.std::_Rb_tree_iterator", align 8
%5 = alloca %"struct.std::_Rb_tree_iterator", align 8
%6 = alloca %"struct.std::pair", align 8
%7 = alloca %"class.std::vector.0", align 8
%8 = alloca %"struct.std::_Rb_tree_iterator", align 8
%9 = alloca %"struct.std::pair", align 4
%10 = tail call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
%.not = icmp eq i64 %10, 0
br i1 %.not, label %._crit_edge40, label %.lr.ph39
.lr.ph39: ; preds = %2
%11 = icmp eq i32 %1, 0
br label %12
._crit_edge40: ; preds = %74, %2
ret void
12: ; preds = %.lr.ph39, %74
%13 = phi i64 [ 0, %.lr.ph39 ], [ %76, %74 ]
%.037 = phi i32 [ 0, %.lr.ph39 ], [ %75, %74 ]
%14 = urem i32 %.037, 10000000
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load ptr, ptr @stderr, align 8, !tbaa !5
%18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str) #5
br label %19
19: ; preds = %16, %12
%20 = load ptr, ptr @stderr, align 8, !tbaa !5
%21 = call i32 @fflush(ptr noundef %20)
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
call void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
%22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %13) #4
%23 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
%.not41 = icmp eq i64 %23, 0
br i1 %.not41, label %._crit_edge, label %.lr.ph
._crit_edge: ; preds = %58, %19
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
%24 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
store ptr %24, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
%25 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
store ptr %25, ptr %8, align 8
%26 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
br i1 %26, label %.lr.ph35, label %._crit_edge36
.lr.ph: ; preds = %19, %58
%27 = phi i64 [ %60, %58 ], [ 0, %19 ]
%.02233 = phi i32 [ %59, %58 ], [ 0, %19 ]
%28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %13) #4
%29 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %27) #4
%30 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %29)
to label %31 unwind label %44
31: ; preds = %.lr.ph
store ptr %30, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
%32 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
store ptr %32, ptr %5, align 8
%33 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
br i1 %33, label %34, label %48
34: ; preds = %31
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
%35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %13) #4
%36 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %27) #4
%37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %13) #4
%38 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %27) #4
%39 = getelementptr inbounds i8, ptr %38, i64 4
%40 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %39)
to label %41 unwind label %46
41: ; preds = %34
store i64 %40, ptr %6, align 8
%42 = invoke { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %6)
to label %43 unwind label %46
43: ; preds = %41
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
br label %58
44: ; preds = %.lr.ph
%45 = landingpad { ptr, i32 }
cleanup
br label %82
46: ; preds = %41, %34
%47 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
br label %82
48: ; preds = %31
br i1 %11, label %49, label %58
49: ; preds = %48
%50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %13) #4
%51 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %27) #4
%52 = getelementptr inbounds i8, ptr %51, i64 4
%53 = load i32, ptr %52, align 4, !tbaa !9
%54 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
%55 = getelementptr inbounds i8, ptr %54, i64 4
%56 = load i32, ptr %55, align 4, !tbaa !12
%57 = add nsw i32 %56, %53
store i32 %57, ptr %55, align 4, !tbaa !12
br label %58
58: ; preds = %43, %49, %48
%59 = add i32 %.02233, 1
%60 = zext i32 %59 to i64
%61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %13) #4
%62 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #4
%63 = icmp ugt i64 %62, %60
br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !14
.lr.ph35: ; preds = %._crit_edge, %65
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
%64 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
call void @_ZNSt4pairIiiEC2IKiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %64)
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(8) %9)
to label %65 unwind label %69
65: ; preds = %.lr.ph35
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
%66 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
%67 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
store ptr %67, ptr %8, align 8
%68 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
br i1 %68, label %.lr.ph35, label %._crit_edge36, !llvm.loop !16
69: ; preds = %.lr.ph35
%70 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
br label %81
._crit_edge36: ; preds = %65, %._crit_edge
%71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %13) #4
call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #4
%72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %13) #4
%73 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 8 dereferenceable(24) %7)
to label %74 unwind label %79
74: ; preds = %._crit_edge36
call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
%75 = add i32 %.037, 1
%76 = zext i32 %75 to i64
%77 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
%78 = icmp ugt i64 %77, %76
br i1 %78, label %12, label %._crit_edge40, !llvm.loop !17
79: ; preds = %._crit_edge36
%80 = landingpad { ptr, i32 }
cleanup
br label %81
81: ; preds = %79, %69
%.pn = phi { ptr, i32 } [ %70, %69 ], [ %80, %79 ]
call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
br label %82
82: ; preds = %44, %46, %81
%.pn30.pn = phi { ptr, i32 } [ %.pn, %81 ], [ %47, %46 ], [ %45, %44 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
resume { ptr, i32 } %.pn30.pn
}
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE6insertIS2_IiiEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IKiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS4_S5_EEclsr6_PCCFPIS4_S5_EE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS_IS4_S5_E(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { nounwind }
attributes #5 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTSSt4pairIiiE", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 4}
!13 = !{!"_ZTSSt4pairIKiiE", !11, i64 0, !11, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
| EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 6b77e1ff40532daa | conradlee/network-community-benchmark | comm_algs/louvain/graph.ll | ZN5Graph5cleanEi | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Graph = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph7displayEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) #3 align 2 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store i32 %1, ptr %4, align 4, !tbaa !9
%10 = load ptr, ptr %3, align 8
%11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
store i32 0, ptr %5, align 4, !tbaa !9
br label %13
13: ; preds = %74, %2
%14 = load i32, ptr %5, align 4, !tbaa !9
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds %class.Graph, ptr %10, i32 0, i32 0
%17 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
%18 = icmp ult i64 %15, %17
br i1 %18, label %20, label %19
19: ; preds = %13
store i32 2, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
br label %77
20: ; preds = %13
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !9
br label %21
21: ; preds = %70, %20
%22 = load i32, ptr %7, align 4, !tbaa !9
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds %class.Graph, ptr %10, i32 0, i32 0
%25 = load i32, ptr %5, align 4, !tbaa !9
%26 = zext i32 %25 to i64
%27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %26) #5
%28 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
%29 = icmp ult i64 %23, %28
br i1 %29, label %31, label %30
30: ; preds = %21
store i32 5, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
br label %73
31: ; preds = %21
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
%32 = getelementptr inbounds %class.Graph, ptr %10, i32 0, i32 0
%33 = load i32, ptr %5, align 4, !tbaa !9
%34 = zext i32 %33 to i64
%35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #5
%36 = load i32, ptr %7, align 4, !tbaa !9
%37 = zext i32 %36 to i64
%38 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %37) #5
%39 = getelementptr inbounds %"struct.std::pair", ptr %38, i32 0, i32 0
%40 = load i32, ptr %39, align 4, !tbaa !11
store i32 %40, ptr %8, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
%41 = getelementptr inbounds %class.Graph, ptr %10, i32 0, i32 0
%42 = load i32, ptr %5, align 4, !tbaa !9
%43 = zext i32 %42 to i64
%44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43) #5
%45 = load i32, ptr %7, align 4, !tbaa !9
%46 = zext i32 %45 to i64
%47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #5
%48 = getelementptr inbounds %"struct.std::pair", ptr %47, i32 0, i32 1
%49 = load i32, ptr %48, align 4, !tbaa !13
store i32 %49, ptr %9, align 4, !tbaa !9
%50 = load i32, ptr %4, align 4, !tbaa !9
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %31
%53 = load i32, ptr %5, align 4, !tbaa !9
%54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %53)
%55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @.str.2)
%56 = load i32, ptr %8, align 4, !tbaa !9
%57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef %56)
%58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str.2)
%59 = load i32, ptr %9, align 4, !tbaa !9
%60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %58, i32 noundef %59)
%61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %69
62: ; preds = %31
%63 = load i32, ptr %5, align 4, !tbaa !9
%64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %63)
%65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef @.str.2)
%66 = load i32, ptr %8, align 4, !tbaa !9
%67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %65, i32 noundef %66)
%68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %69
69: ; preds = %62, %52
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
br label %70
70: ; preds = %69
%71 = load i32, ptr %7, align 4, !tbaa !9
%72 = add i32 %71, 1
store i32 %72, ptr %7, align 4, !tbaa !9
br label %21, !llvm.loop !14
73: ; preds = %30
br label %74
74: ; preds = %73
%75 = load i32, ptr %5, align 4, !tbaa !9
%76 = add i32 %75, 1
store i32 %76, ptr %5, align 4, !tbaa !9
br label %13, !llvm.loop !16
77: ; preds = %19
ret void
}
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%STRUCT0 = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph7displayEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) #3 align 2 {
B0:
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
store i32 %1, ptr %3, align 4, !tbaa !9
%9 = load ptr, ptr %2, align 8
%10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
%11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
store i32 0, ptr %4, align 4, !tbaa !9
br label %B1
B1:
%12 = load i32, ptr %4, align 4, !tbaa !9
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 0
%15 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
%16 = icmp ult i64 %13, %15
br i1 %16, label %B3, label %B2
B2:
store i32 2, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
br label %B13
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !9
br label %B4
B4:
%17 = load i32, ptr %6, align 4, !tbaa !9
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 0
%20 = load i32, ptr %4, align 4, !tbaa !9
%21 = zext i32 %20 to i64
%22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %21) #5
%23 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
%24 = icmp ult i64 %18, %23
br i1 %24, label %B6, label %B5
B5:
store i32 5, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
br label %B11
B6:
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
%25 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 0
%26 = load i32, ptr %4, align 4, !tbaa !9
%27 = zext i32 %26 to i64
%28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %27) #5
%29 = load i32, ptr %6, align 4, !tbaa !9
%30 = zext i32 %29 to i64
%31 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30) #5
%32 = getelementptr inbounds %"struct.std::pair", ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 4, !tbaa !11
store i32 %33, ptr %7, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
%34 = getelementptr inbounds %STRUCT0, ptr %9, i32 0, i32 0
%35 = load i32, ptr %4, align 4, !tbaa !9
%36 = zext i32 %35 to i64
%37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %36) #5
%38 = load i32, ptr %6, align 4, !tbaa !9
%39 = zext i32 %38 to i64
%40 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #5
%41 = getelementptr inbounds %"struct.std::pair", ptr %40, i32 0, i32 1
%42 = load i32, ptr %41, align 4, !tbaa !13
store i32 %42, ptr %8, align 4, !tbaa !9
%43 = load i32, ptr %3, align 4, !tbaa !9
%44 = icmp eq i32 %43, 0
br i1 %44, label %B7, label %B8
B7:
%45 = load i32, ptr %4, align 4, !tbaa !9
%46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %45)
%47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @.str.2)
%48 = load i32, ptr %7, align 4, !tbaa !9
%49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %47, i32 noundef %48)
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @.str.2)
%51 = load i32, ptr %8, align 4, !tbaa !9
%52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef %51)
%53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %B9
B8:
%54 = load i32, ptr %4, align 4, !tbaa !9
%55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %54)
%56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef @.str.2)
%57 = load i32, ptr %7, align 4, !tbaa !9
%58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %56, i32 noundef %57)
%59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
br label %B10
B10:
%60 = load i32, ptr %6, align 4, !tbaa !9
%61 = add i32 %60, 1
store i32 %61, ptr %6, align 4, !tbaa !9
br label %B4, !llvm.loop !14
B11:
br label %B12
B12:
%62 = load i32, ptr %4, align 4, !tbaa !9
%63 = add i32 %62, 1
store i32 %63, ptr %4, align 4, !tbaa !9
br label %B1, !llvm.loop !16
B13:
ret void
}
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph7displayEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) local_unnamed_addr #2 align 2 {
%3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
%4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%5 = tail call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
%.not = icmp eq i64 %5, 0
br i1 %.not, label %._crit_edge21, label %.preheader.lr.ph
.preheader.lr.ph: ; preds = %2
%6 = icmp eq i32 %1, 0
br i1 %6, label %.preheader.us, label %.preheader
.preheader.us: ; preds = %.preheader.lr.ph, %._crit_edge.split.us.us
%7 = phi i64 [ %11, %._crit_edge.split.us.us ], [ 0, %.preheader.lr.ph ]
%.019.us = phi i32 [ %10, %._crit_edge.split.us.us ], [ 0, %.preheader.lr.ph ]
%8 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %7) #4
%9 = tail call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
%.not23 = icmp eq i64 %9, 0
br i1 %.not23, label %._crit_edge.split.us.us, label %.lr.ph.us
._crit_edge.split.us.us: ; preds = %.lr.ph.us, %.preheader.us
%10 = add i32 %.019.us, 1
%11 = zext i32 %10 to i64
%12 = tail call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
%13 = icmp ugt i64 %12, %11
br i1 %13, label %.preheader.us, label %._crit_edge21, !llvm.loop !5
.lr.ph.us: ; preds = %.preheader.us, %.lr.ph.us
%14 = phi i64 [ %29, %.lr.ph.us ], [ 0, %.preheader.us ]
%.01518.us.us = phi i32 [ %28, %.lr.ph.us ], [ 0, %.preheader.us ]
%15 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %7) #4
%16 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %14) #4
%17 = load i32, ptr %16, align 4, !tbaa !7
%18 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %7) #4
%19 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %14) #4
%20 = getelementptr inbounds i8, ptr %19, i64 4
%21 = load i32, ptr %20, align 4, !tbaa !12
%22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.019.us)
%23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @.str.2)
%24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef %17)
%25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.2)
%26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef %21)
%27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%28 = add i32 %.01518.us.us, 1
%29 = zext i32 %28 to i64
%30 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %7) #4
%31 = tail call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
%32 = icmp ugt i64 %31, %29
br i1 %32, label %.lr.ph.us, label %._crit_edge.split.us.us, !llvm.loop !13
.preheader: ; preds = %.preheader.lr.ph, %._crit_edge.split
%33 = phi i64 [ %37, %._crit_edge.split ], [ 0, %.preheader.lr.ph ]
%.019 = phi i32 [ %36, %._crit_edge.split ], [ 0, %.preheader.lr.ph ]
%34 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %33) #4
%35 = tail call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #4
%.not22 = icmp eq i64 %35, 0
br i1 %.not22, label %._crit_edge.split, label %.lr.ph
._crit_edge21: ; preds = %._crit_edge.split, %._crit_edge.split.us.us, %2
ret void
._crit_edge.split: ; preds = %.lr.ph, %.preheader
%36 = add i32 %.019, 1
%37 = zext i32 %36 to i64
%38 = tail call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
%39 = icmp ugt i64 %38, %37
br i1 %39, label %.preheader, label %._crit_edge21, !llvm.loop !5
.lr.ph: ; preds = %.preheader, %.lr.ph
%40 = phi i64 [ %51, %.lr.ph ], [ 0, %.preheader ]
%.01518 = phi i32 [ %50, %.lr.ph ], [ 0, %.preheader ]
%41 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %33) #4
%42 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %40) #4
%43 = load i32, ptr %42, align 4, !tbaa !7
%44 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %33) #4
%45 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %40) #4
%46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.019)
%47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @.str.2)
%48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %47, i32 noundef %43)
%49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%50 = add i32 %.01518, 1
%51 = zext i32 %50 to i64
%52 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %33) #4
%53 = tail call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #4
%54 = icmp ugt i64 %53, %51
br i1 %54, label %.lr.ph, label %._crit_edge.split, !llvm.loop !13
}
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3
attributes #0 = { inlinehint mustprogress 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 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!8, !9, i64 4}
!13 = distinct !{!13, !6}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | d2b90268fe6d9fd5 | conradlee/network-community-benchmark | comm_algs/louvain/graph.ll | ZN5Graph7displayEi | BSD-2-Clause |
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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.9" = type { i8 }
%class.Graph = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph8renumberEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %"class.std::vector.7", align 8
%6 = alloca i32, align 4
%7 = alloca %"class.std::allocator.9", align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca %"class.std::vector.7", align 8
%11 = alloca i32, align 4
%12 = alloca %"class.std::allocator.9", align 1
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store i32 %1, ptr %4, align 4, !tbaa !9
%20 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #3
%21 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%22 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #3
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
store i32 -1, ptr %6, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #3
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %22, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
to label %23 unwind label %34
23: ; preds = %2
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #3
call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
call void @llvm.lifetime.start.p0(i64 24, ptr %10) #3
%24 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%25 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #3
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
store i32 -1, ptr %11, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %25, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
to label %26 unwind label %38
26: ; preds = %23
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
store i32 0, ptr %13, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
store i32 0, ptr %14, align 4, !tbaa !9
br label %27
27: ; preds = %72, %26
%28 = load i32, ptr %14, align 4, !tbaa !9
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%31 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #3
%32 = icmp ult i64 %29, %31
br i1 %32, label %42, label %33
33: ; preds = %27
store i32 2, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
br label %75
34: ; preds = %2
%35 = landingpad { ptr, i32 }
cleanup
%36 = extractvalue { ptr, i32 } %35, 0
store ptr %36, ptr %8, align 8
%37 = extractvalue { ptr, i32 } %35, 1
store i32 %37, ptr %9, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #3
call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
br label %181
38: ; preds = %23
%39 = landingpad { ptr, i32 }
cleanup
%40 = extractvalue { ptr, i32 } %39, 0
store ptr %40, ptr %8, align 8
%41 = extractvalue { ptr, i32 } %39, 1
store i32 %41, ptr %9, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
br label %180
42: ; preds = %27
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
store i32 0, ptr %16, align 4, !tbaa !9
br label %43
43: ; preds = %68, %42
%44 = load i32, ptr %16, align 4, !tbaa !9
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%47 = load i32, ptr %14, align 4, !tbaa !9
%48 = zext i32 %47 to i64
%49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #3
%50 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #3
%51 = icmp ult i64 %45, %50
br i1 %51, label %53, label %52
52: ; preds = %43
store i32 5, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
br label %71
53: ; preds = %43
%54 = load i32, ptr %14, align 4, !tbaa !9
%55 = zext i32 %54 to i64
%56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %55) #3
store i32 1, ptr %56, align 4, !tbaa !9
%57 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%58 = load i32, ptr %14, align 4, !tbaa !9
%59 = zext i32 %58 to i64
%60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59) #3
%61 = load i32, ptr %16, align 4, !tbaa !9
%62 = zext i32 %61 to i64
%63 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62) #3
%64 = getelementptr inbounds %"struct.std::pair", ptr %63, i32 0, i32 0
%65 = load i32, ptr %64, align 4, !tbaa !11
%66 = sext i32 %65 to i64
%67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %66) #3
store i32 1, ptr %67, align 4, !tbaa !9
br label %68
68: ; preds = %53
%69 = load i32, ptr %16, align 4, !tbaa !9
%70 = add i32 %69, 1
store i32 %70, ptr %16, align 4, !tbaa !9
br label %43, !llvm.loop !13
71: ; preds = %52
br label %72
72: ; preds = %71
%73 = load i32, ptr %14, align 4, !tbaa !9
%74 = add i32 %73, 1
store i32 %74, ptr %14, align 4, !tbaa !9
br label %27, !llvm.loop !15
75: ; preds = %33
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
store i32 0, ptr %17, align 4, !tbaa !9
br label %76
76: ; preds = %96, %75
%77 = load i32, ptr %17, align 4, !tbaa !9
%78 = zext i32 %77 to i64
%79 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%80 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #3
%81 = icmp ult i64 %78, %80
br i1 %81, label %83, label %82
82: ; preds = %76
store i32 8, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
br label %99
83: ; preds = %76
%84 = load i32, ptr %17, align 4, !tbaa !9
%85 = zext i32 %84 to i64
%86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %85) #3
%87 = load i32, ptr %86, align 4, !tbaa !9
%88 = icmp eq i32 %87, 1
br i1 %88, label %89, label %95
89: ; preds = %83
%90 = load i32, ptr %13, align 4, !tbaa !9
%91 = add nsw i32 %90, 1
store i32 %91, ptr %13, align 4, !tbaa !9
%92 = load i32, ptr %17, align 4, !tbaa !9
%93 = zext i32 %92 to i64
%94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %93) #3
store i32 %90, ptr %94, align 4, !tbaa !9
br label %95
95: ; preds = %89, %83
br label %96
96: ; preds = %95
%97 = load i32, ptr %17, align 4, !tbaa !9
%98 = add i32 %97, 1
store i32 %98, ptr %17, align 4, !tbaa !9
br label %76, !llvm.loop !16
99: ; preds = %82
call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
store i32 0, ptr %18, align 4, !tbaa !9
br label %100
100: ; preds = %167, %99
%101 = load i32, ptr %18, align 4, !tbaa !9
%102 = zext i32 %101 to i64
%103 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%104 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #3
%105 = icmp ult i64 %102, %104
br i1 %105, label %107, label %106
106: ; preds = %100
store i32 11, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
br label %170
107: ; preds = %100
%108 = load i32, ptr %18, align 4, !tbaa !9
%109 = zext i32 %108 to i64
%110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %109) #3
%111 = load i32, ptr %110, align 4, !tbaa !9
%112 = icmp eq i32 %111, 1
br i1 %112, label %113, label %166
113: ; preds = %107
call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
store i32 0, ptr %19, align 4, !tbaa !9
br label %114
114: ; preds = %145, %113
%115 = load i32, ptr %19, align 4, !tbaa !9
%116 = zext i32 %115 to i64
%117 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%118 = load i32, ptr %18, align 4, !tbaa !9
%119 = zext i32 %118 to i64
%120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #3
%121 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #3
%122 = icmp ult i64 %116, %121
br i1 %122, label %124, label %123
123: ; preds = %114
store i32 14, ptr %15, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
br label %148
124: ; preds = %114
%125 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%126 = load i32, ptr %18, align 4, !tbaa !9
%127 = zext i32 %126 to i64
%128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %127) #3
%129 = load i32, ptr %19, align 4, !tbaa !9
%130 = zext i32 %129 to i64
%131 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #3
%132 = getelementptr inbounds %"struct.std::pair", ptr %131, i32 0, i32 0
%133 = load i32, ptr %132, align 4, !tbaa !11
%134 = sext i32 %133 to i64
%135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %134) #3
%136 = load i32, ptr %135, align 4, !tbaa !9
%137 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%138 = load i32, ptr %18, align 4, !tbaa !9
%139 = zext i32 %138 to i64
%140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %139) #3
%141 = load i32, ptr %19, align 4, !tbaa !9
%142 = zext i32 %141 to i64
%143 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142) #3
%144 = getelementptr inbounds %"struct.std::pair", ptr %143, i32 0, i32 0
store i32 %136, ptr %144, align 4, !tbaa !11
br label %145
145: ; preds = %124
%146 = load i32, ptr %19, align 4, !tbaa !9
%147 = add i32 %146, 1
store i32 %147, ptr %19, align 4, !tbaa !9
br label %114, !llvm.loop !17
148: ; preds = %123
%149 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%150 = load i32, ptr %18, align 4, !tbaa !9
%151 = zext i32 %150 to i64
%152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #3
%153 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%154 = load i32, ptr %18, align 4, !tbaa !9
%155 = zext i32 %154 to i64
%156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %155) #3
%157 = load i32, ptr %156, align 4, !tbaa !9
%158 = sext i32 %157 to i64
%159 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %158) #3
%160 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %159, ptr noundef nonnull align 8 dereferenceable(24) %152)
to label %161 unwind label %162
161: ; preds = %148
br label %166
162: ; preds = %148
%163 = landingpad { ptr, i32 }
cleanup
%164 = extractvalue { ptr, i32 } %163, 0
store ptr %164, ptr %8, align 8
%165 = extractvalue { ptr, i32 } %163, 1
store i32 %165, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
br label %179
166: ; preds = %161, %107
br label %167
167: ; preds = %166
%168 = load i32, ptr %18, align 4, !tbaa !9
%169 = add i32 %168, 1
store i32 %169, ptr %18, align 4, !tbaa !9
br label %100, !llvm.loop !18
170: ; preds = %106
%171 = getelementptr inbounds %class.Graph, ptr %20, i32 0, i32 0
%172 = load i32, ptr %13, align 4, !tbaa !9
%173 = sext i32 %172 to i64
invoke void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %173)
to label %174 unwind label %175
174: ; preds = %170
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
call void @llvm.lifetime.end.p0(i64 24, ptr %10) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #3
ret void
175: ; preds = %170
%176 = landingpad { ptr, i32 }
cleanup
%177 = extractvalue { ptr, i32 } %176, 0
store ptr %177, ptr %8, align 8
%178 = extractvalue { ptr, i32 } %176, 1
store i32 %178, ptr %9, align 4
br label %179
179: ; preds = %175, %162
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
br label %180
180: ; preds = %179, %38
call void @llvm.lifetime.end.p0(i64 24, ptr %10) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
br label %181
181: ; preds = %180, %34
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #3
br label %182
182: ; preds = %181
%183 = load ptr, ptr %8, align 8
%184 = load i32, ptr %9, align 4
%185 = insertvalue { ptr, i32 } poison, ptr %183, 0
%186 = insertvalue { ptr, i32 } %185, i32 %184, 1
resume { ptr, i32 } %186
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
| 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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.9" = type { i8 }
%STRUCT0 = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph8renumberEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
B0:
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector.7", align 8
%5 = alloca i32, align 4
%6 = alloca %"class.std::allocator.9", align 1
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca %"class.std::vector.7", align 8
%10 = alloca i32, align 4
%11 = alloca %"class.std::allocator.9", align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
store i32 %1, ptr %3, align 4, !tbaa !9
%19 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #3
%20 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%21 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #3
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
store i32 -1, ptr %5, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %21, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %B1 unwind label %B5
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
call void @llvm.lifetime.start.p0(i64 24, ptr %9) #3
%22 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%23 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #3
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
store i32 -1, ptr %10, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #3
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %23, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
to label %B2 unwind label %B6
B2:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #3
call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
store i32 0, ptr %12, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
store i32 0, ptr %13, align 4, !tbaa !9
br label %B3
B3:
%24 = load i32, ptr %13, align 4, !tbaa !9
%25 = zext i32 %24 to i64
%26 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%27 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #3
%28 = icmp ult i64 %25, %27
br i1 %28, label %B7, label %B4
B4:
store i32 2, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
br label %B14
B5:
%29 = landingpad { ptr, i32 }
cleanup
%30 = extractvalue { ptr, i32 } %29, 0
store ptr %30, ptr %7, align 8
%31 = extractvalue { ptr, i32 } %29, 1
store i32 %31, ptr %8, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
br label %B40
B6:
%32 = landingpad { ptr, i32 }
cleanup
%33 = extractvalue { ptr, i32 } %32, 0
store ptr %33, ptr %7, align 8
%34 = extractvalue { ptr, i32 } %32, 1
store i32 %34, ptr %8, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #3
call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
br label %B39
B7:
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
store i32 0, ptr %15, align 4, !tbaa !9
br label %B8
B8:
%35 = load i32, ptr %15, align 4, !tbaa !9
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%38 = load i32, ptr %13, align 4, !tbaa !9
%39 = zext i32 %38 to i64
%40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #3
%41 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #3
%42 = icmp ult i64 %36, %41
br i1 %42, label %B10, label %B9
B9:
store i32 5, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
br label %B12
B10:
%43 = load i32, ptr %13, align 4, !tbaa !9
%44 = zext i32 %43 to i64
%45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %44) #3
store i32 1, ptr %45, align 4, !tbaa !9
%46 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%47 = load i32, ptr %13, align 4, !tbaa !9
%48 = zext i32 %47 to i64
%49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #3
%50 = load i32, ptr %15, align 4, !tbaa !9
%51 = zext i32 %50 to i64
%52 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %51) #3
%53 = getelementptr inbounds %"struct.std::pair", ptr %52, i32 0, i32 0
%54 = load i32, ptr %53, align 4, !tbaa !11
%55 = sext i32 %54 to i64
%56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %55) #3
store i32 1, ptr %56, align 4, !tbaa !9
br label %B11
B11:
%57 = load i32, ptr %15, align 4, !tbaa !9
%58 = add i32 %57, 1
store i32 %58, ptr %15, align 4, !tbaa !9
br label %B8, !llvm.loop !13
B12:
br label %B13
B13:
%59 = load i32, ptr %13, align 4, !tbaa !9
%60 = add i32 %59, 1
store i32 %60, ptr %13, align 4, !tbaa !9
br label %B3, !llvm.loop !15
B14:
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
store i32 0, ptr %16, align 4, !tbaa !9
br label %B15
B15:
%61 = load i32, ptr %16, align 4, !tbaa !9
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%64 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #3
%65 = icmp ult i64 %62, %64
br i1 %65, label %B17, label %B16
B16:
store i32 8, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
br label %B21
B17:
%66 = load i32, ptr %16, align 4, !tbaa !9
%67 = zext i32 %66 to i64
%68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %67) #3
%69 = load i32, ptr %68, align 4, !tbaa !9
%70 = icmp eq i32 %69, 1
br i1 %70, label %B18, label %B19
B18:
%71 = load i32, ptr %12, align 4, !tbaa !9
%72 = add nsw i32 %71, 1
store i32 %72, ptr %12, align 4, !tbaa !9
%73 = load i32, ptr %16, align 4, !tbaa !9
%74 = zext i32 %73 to i64
%75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %74) #3
store i32 %71, ptr %75, align 4, !tbaa !9
br label %B19
B19:
br label %B20
B20:
%76 = load i32, ptr %16, align 4, !tbaa !9
%77 = add i32 %76, 1
store i32 %77, ptr %16, align 4, !tbaa !9
br label %B15, !llvm.loop !16
B21:
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
store i32 0, ptr %17, align 4, !tbaa !9
br label %B22
B22:
%78 = load i32, ptr %17, align 4, !tbaa !9
%79 = zext i32 %78 to i64
%80 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%81 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #3
%82 = icmp ult i64 %79, %81
br i1 %82, label %B24, label %B23
B23:
store i32 11, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
br label %B35
B24:
%83 = load i32, ptr %17, align 4, !tbaa !9
%84 = zext i32 %83 to i64
%85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %84) #3
%86 = load i32, ptr %85, align 4, !tbaa !9
%87 = icmp eq i32 %86, 1
br i1 %87, label %B25, label %B33
B25:
call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
store i32 0, ptr %18, align 4, !tbaa !9
br label %B26
B26:
%88 = load i32, ptr %18, align 4, !tbaa !9
%89 = zext i32 %88 to i64
%90 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%91 = load i32, ptr %17, align 4, !tbaa !9
%92 = zext i32 %91 to i64
%93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %92) #3
%94 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #3
%95 = icmp ult i64 %89, %94
br i1 %95, label %B28, label %B27
B27:
store i32 14, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
br label %B30
B28:
%96 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%97 = load i32, ptr %17, align 4, !tbaa !9
%98 = zext i32 %97 to i64
%99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %98) #3
%100 = load i32, ptr %18, align 4, !tbaa !9
%101 = zext i32 %100 to i64
%102 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101) #3
%103 = getelementptr inbounds %"struct.std::pair", ptr %102, i32 0, i32 0
%104 = load i32, ptr %103, align 4, !tbaa !11
%105 = sext i32 %104 to i64
%106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %105) #3
%107 = load i32, ptr %106, align 4, !tbaa !9
%108 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%109 = load i32, ptr %17, align 4, !tbaa !9
%110 = zext i32 %109 to i64
%111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %110) #3
%112 = load i32, ptr %18, align 4, !tbaa !9
%113 = zext i32 %112 to i64
%114 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #3
%115 = getelementptr inbounds %"struct.std::pair", ptr %114, i32 0, i32 0
store i32 %107, ptr %115, align 4, !tbaa !11
br label %B29
B29:
%116 = load i32, ptr %18, align 4, !tbaa !9
%117 = add i32 %116, 1
store i32 %117, ptr %18, align 4, !tbaa !9
br label %B26, !llvm.loop !17
B30:
%118 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%119 = load i32, ptr %17, align 4, !tbaa !9
%120 = zext i32 %119 to i64
%121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120) #3
%122 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%123 = load i32, ptr %17, align 4, !tbaa !9
%124 = zext i32 %123 to i64
%125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %124) #3
%126 = load i32, ptr %125, align 4, !tbaa !9
%127 = sext i32 %126 to i64
%128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %127) #3
%129 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 8 dereferenceable(24) %121)
to label %B31 unwind label %B32
B31:
br label %B33
B32:
%130 = landingpad { ptr, i32 }
cleanup
%131 = extractvalue { ptr, i32 } %130, 0
store ptr %131, ptr %7, align 8
%132 = extractvalue { ptr, i32 } %130, 1
store i32 %132, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
br label %B38
B33:
br label %B34
B34:
%133 = load i32, ptr %17, align 4, !tbaa !9
%134 = add i32 %133, 1
store i32 %134, ptr %17, align 4, !tbaa !9
br label %B22, !llvm.loop !18
B35:
%135 = getelementptr inbounds %STRUCT0, ptr %19, i32 0, i32 0
%136 = load i32, ptr %12, align 4, !tbaa !9
%137 = sext i32 %136 to i64
invoke void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %137)
to label %B36 unwind label %B37
B36:
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #3
ret void
B37:
%138 = landingpad { ptr, i32 }
cleanup
%139 = extractvalue { ptr, i32 } %138, 0
store ptr %139, ptr %7, align 8
%140 = extractvalue { ptr, i32 } %138, 1
store i32 %140, ptr %8, align 4
br label %B38
B38:
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
br label %B39
B39:
call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
br label %B40
B40:
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #3
br label %B41
B41:
%141 = load ptr, ptr %7, align 8
%142 = load i32, ptr %8, align 4
%143 = insertvalue { ptr, i32 } poison, ptr %141, 0
%144 = insertvalue { ptr, i32 } %143, i32 %142, 1
resume { ptr, i32 } %144
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14} | 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"
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.9" = type { i8 }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph8renumberEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%3 = alloca %"class.std::vector.7", align 8
%4 = alloca i32, align 4
%5 = alloca %"class.std::allocator.9", align 1
%6 = alloca %"class.std::vector.7", align 8
%7 = alloca i32, align 4
%8 = alloca %"class.std::allocator.9", align 1
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
%9 = tail call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
store i32 -1, ptr %4, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %9, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %10 unwind label %18
10: ; preds = %2
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
%11 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
store i32 -1, ptr %7, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #3
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %11, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
to label %12 unwind label %20
12: ; preds = %10
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
%13 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
%.not = icmp eq i64 %13, 0
br i1 %.not, label %.preheader47, label %.preheader48
.preheader48: ; preds = %12, %._crit_edge
%14 = phi i64 [ %23, %._crit_edge ], [ 0, %12 ]
%.03150 = phi i32 [ %22, %._crit_edge ], [ 0, %12 ]
%15 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %14) #3
%16 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
%.not60 = icmp eq i64 %16, 0
br i1 %.not60, label %._crit_edge, label %.lr.ph
.preheader47: ; preds = %._crit_edge, %12
%17 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
%.not61 = icmp eq i64 %17, 0
br i1 %.not61, label %.preheader46, label %.lr.ph53
18: ; preds = %2
%19 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
br label %90
20: ; preds = %10
%21 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
br label %89
._crit_edge: ; preds = %.lr.ph, %.preheader48
%22 = add i32 %.03150, 1
%23 = zext i32 %22 to i64
%24 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
%25 = icmp ugt i64 %24, %23
br i1 %25, label %.preheader48, label %.preheader47, !llvm.loop !9
.lr.ph: ; preds = %.preheader48, %.lr.ph
%26 = phi i64 [ %34, %.lr.ph ], [ 0, %.preheader48 ]
%.03049 = phi i32 [ %33, %.lr.ph ], [ 0, %.preheader48 ]
%27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %14) #3
store i32 1, ptr %27, align 4, !tbaa !5
%28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %14) #3
%29 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %26) #3
%30 = load i32, ptr %29, align 4, !tbaa !11
%31 = sext i32 %30 to i64
%32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %31) #3
store i32 1, ptr %32, align 4, !tbaa !5
%33 = add i32 %.03049, 1
%34 = zext i32 %33 to i64
%35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %14) #3
%36 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #3
%37 = icmp ugt i64 %36, %34
br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !13
.preheader46.loopexit: ; preds = %47
%38 = sext i32 %.1 to i64
br label %.preheader46
.preheader46: ; preds = %.preheader46.loopexit, %.preheader47
%.032.lcssa = phi i64 [ 0, %.preheader47 ], [ %38, %.preheader46.loopexit ]
%39 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
%.not62 = icmp eq i64 %39, 0
br i1 %.not62, label %._crit_edge59, label %.lr.ph58
.lr.ph53: ; preds = %.preheader47, %47
%40 = phi i64 [ %49, %47 ], [ 0, %.preheader47 ]
%.02952 = phi i32 [ %48, %47 ], [ 0, %.preheader47 ]
%.03251 = phi i32 [ %.1, %47 ], [ 0, %.preheader47 ]
%41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %40) #3
%42 = load i32, ptr %41, align 4, !tbaa !5
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %47
44: ; preds = %.lr.ph53
%45 = add nsw i32 %.03251, 1
%46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %40) #3
store i32 %.03251, ptr %46, align 4, !tbaa !5
br label %47
47: ; preds = %.lr.ph53, %44
%.1 = phi i32 [ %45, %44 ], [ %.03251, %.lr.ph53 ]
%48 = add i32 %.02952, 1
%49 = zext i32 %48 to i64
%50 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
%51 = icmp ugt i64 %50, %49
br i1 %51, label %.lr.ph53, label %.preheader46.loopexit, !llvm.loop !14
._crit_edge59: ; preds = %80, %.preheader46
invoke void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.032.lcssa)
to label %85 unwind label %86
.lr.ph58: ; preds = %.preheader46, %80
%52 = phi i64 [ %82, %80 ], [ 0, %.preheader46 ]
%.02857 = phi i32 [ %81, %80 ], [ 0, %.preheader46 ]
%53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #3
%54 = load i32, ptr %53, align 4, !tbaa !5
%55 = icmp eq i32 %54, 1
br i1 %55, label %.preheader, label %80
.preheader: ; preds = %.lr.ph58
%56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %52) #3
%57 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #3
%.not63 = icmp eq i64 %57, 0
br i1 %.not63, label %._crit_edge56, label %.lr.ph55
._crit_edge56: ; preds = %.lr.ph55, %.preheader
%58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %52) #3
%59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %52) #3
%60 = load i32, ptr %59, align 4, !tbaa !5
%61 = sext i32 %60 to i64
%62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %61) #3
%63 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(24) %58)
to label %80 unwind label %78
.lr.ph55: ; preds = %.preheader, %.lr.ph55
%64 = phi i64 [ %74, %.lr.ph55 ], [ 0, %.preheader ]
%.054 = phi i32 [ %73, %.lr.ph55 ], [ 0, %.preheader ]
%65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %52) #3
%66 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %64) #3
%67 = load i32, ptr %66, align 4, !tbaa !11
%68 = sext i32 %67 to i64
%69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %68) #3
%70 = load i32, ptr %69, align 4, !tbaa !5
%71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %52) #3
%72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %64) #3
store i32 %70, ptr %72, align 4, !tbaa !11
%73 = add i32 %.054, 1
%74 = zext i32 %73 to i64
%75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %52) #3
%76 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #3
%77 = icmp ugt i64 %76, %74
br i1 %77, label %.lr.ph55, label %._crit_edge56, !llvm.loop !15
78: ; preds = %._crit_edge56
%79 = landingpad { ptr, i32 }
cleanup
br label %88
80: ; preds = %.lr.ph58, %._crit_edge56
%81 = add i32 %.02857, 1
%82 = zext i32 %81 to i64
%83 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
%84 = icmp ugt i64 %83, %82
br i1 %84, label %.lr.ph58, label %._crit_edge59, !llvm.loop !16
85: ; preds = %._crit_edge59
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
ret void
86: ; preds = %._crit_edge59
%87 = landingpad { ptr, i32 }
cleanup
br label %88
88: ; preds = %86, %78
%.pn = phi { ptr, i32 } [ %79, %78 ], [ %87, %86 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
br label %89
89: ; preds = %88, %20
%.pn.pn = phi { ptr, i32 } [ %.pn, %88 ], [ %21, %20 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
br label %90
90: ; preds = %89, %18
%.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %89 ], [ %19, %18 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
resume { ptr, i32 } %.pn.pn.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 7239e2413bf87015 | conradlee/network-community-benchmark | comm_algs/louvain/graph.ll | ZN5Graph8renumberEi | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.5" = type { i32, i32 }
%class.Graph = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2EPci(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %"class.std::basic_ifstream", align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca %"struct.std::pair", align 4
%15 = alloca %"struct.std::pair.5", align 4
%16 = alloca %"struct.std::pair", align 4
%17 = alloca %"struct.std::pair.5", align 4
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i32 %2, ptr %6, align 4, !tbaa !9
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds %class.Graph, ptr %18, i32 0, i32 0
call void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
call void @llvm.lifetime.start.p0(i64 520, ptr %7) #6
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7)
to label %20 unwind label %41
20: ; preds = %3
%21 = load ptr, ptr %5, align 8, !tbaa !5
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %7, ptr noundef %21, i32 noundef 8)
to label %22 unwind label %45
22: ; preds = %20
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !9
br label %23
23: ; preds = %123, %22
%24 = load ptr, ptr %7, align 8, !tbaa !11
%25 = getelementptr i8, ptr %24, i64 -24
%26 = load i64, ptr %25, align 8
%27 = getelementptr inbounds i8, ptr %7, i64 %26
%28 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %27)
to label %29 unwind label %49
29: ; preds = %23
%30 = xor i1 %28, true
br i1 %30, label %31, label %125
31: ; preds = %29
%32 = load i32, ptr %10, align 4, !tbaa !9
%33 = srem i32 %32, 10000000
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %53
35: ; preds = %31
%36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
to label %37 unwind label %49
37: ; preds = %35
%38 = load ptr, ptr @stderr, align 8, !tbaa !5
%39 = invoke i32 @fflush(ptr noundef %38)
to label %40 unwind label %49
40: ; preds = %37
br label %53
41: ; preds = %3
%42 = landingpad { ptr, i32 }
cleanup
%43 = extractvalue { ptr, i32 } %42, 0
store ptr %43, ptr %8, align 8
%44 = extractvalue { ptr, i32 } %42, 1
store i32 %44, ptr %9, align 4
br label %129
45: ; preds = %20
%46 = landingpad { ptr, i32 }
cleanup
%47 = extractvalue { ptr, i32 } %46, 0
store ptr %47, ptr %8, align 8
%48 = extractvalue { ptr, i32 } %46, 1
store i32 %48, ptr %9, align 4
br label %128
49: ; preds = %125, %37, %35, %23
%50 = landingpad { ptr, i32 }
cleanup
%51 = extractvalue { ptr, i32 } %50, 0
store ptr %51, ptr %8, align 8
%52 = extractvalue { ptr, i32 } %50, 1
store i32 %52, ptr %9, align 4
br label %127
53: ; preds = %40, %31
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
store i32 1, ptr %13, align 4, !tbaa !9
%54 = load i32, ptr %6, align 4, !tbaa !9
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %67
56: ; preds = %53
%57 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %58 unwind label %63
58: ; preds = %56
%59 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %60 unwind label %63
60: ; preds = %58
%61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 4 dereferenceable(4) %13)
to label %62 unwind label %63
62: ; preds = %60
br label %72
63: ; preds = %91, %88, %79, %72, %69, %67, %60, %58, %56
%64 = landingpad { ptr, i32 }
cleanup
%65 = extractvalue { ptr, i32 } %64, 0
store ptr %65, ptr %8, align 8
%66 = extractvalue { ptr, i32 } %64, 1
store i32 %66, ptr %9, align 4
br label %124
67: ; preds = %53
%68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %69 unwind label %63
69: ; preds = %67
%70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %71 unwind label %63
71: ; preds = %69
br label %72
72: ; preds = %71, %62
%73 = load ptr, ptr %7, align 8, !tbaa !11
%74 = getelementptr i8, ptr %73, i64 -24
%75 = load i64, ptr %74, align 8
%76 = getelementptr inbounds i8, ptr %7, i64 %75
%77 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %76)
to label %78 unwind label %63
78: ; preds = %72
br i1 %77, label %79, label %123
79: ; preds = %78
%80 = getelementptr inbounds %class.Graph, ptr %18, i32 0, i32 0
%81 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #6
%82 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %83 unwind label %63
83: ; preds = %79
%84 = load i32, ptr %82, align 4, !tbaa !9
%85 = add i32 %84, 1
%86 = zext i32 %85 to i64
%87 = icmp ule i64 %81, %86
br i1 %87, label %88, label %96
88: ; preds = %83
%89 = getelementptr inbounds %class.Graph, ptr %18, i32 0, i32 0
%90 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %91 unwind label %63
91: ; preds = %88
%92 = load i32, ptr %90, align 4, !tbaa !9
%93 = add i32 %92, 1
%94 = zext i32 %93 to i64
invoke void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %94)
to label %95 unwind label %63
95: ; preds = %91
br label %96
96: ; preds = %95, %83
%97 = getelementptr inbounds %class.Graph, ptr %18, i32 0, i32 0
%98 = load i32, ptr %11, align 4, !tbaa !9
%99 = zext i32 %98 to i64
%100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
%101 = invoke i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
to label %102 unwind label %115
102: ; preds = %96
store i64 %101, ptr %15, align 4
invoke void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
to label %103 unwind label %115
103: ; preds = %102
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %100, ptr noundef nonnull align 4 dereferenceable(8) %14)
to label %104 unwind label %115
104: ; preds = %103
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
%105 = getelementptr inbounds %class.Graph, ptr %18, i32 0, i32 0
%106 = load i32, ptr %12, align 4, !tbaa !9
%107 = zext i32 %106 to i64
%108 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
%109 = invoke i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
to label %110 unwind label %119
110: ; preds = %104
store i64 %109, ptr %17, align 4
invoke void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %17)
to label %111 unwind label %119
111: ; preds = %110
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 4 dereferenceable(8) %16)
to label %112 unwind label %119
112: ; preds = %111
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
%113 = load i32, ptr %10, align 4, !tbaa !9
%114 = add nsw i32 %113, 1
store i32 %114, ptr %10, align 4, !tbaa !9
br label %123
115: ; preds = %103, %102, %96
%116 = landingpad { ptr, i32 }
cleanup
%117 = extractvalue { ptr, i32 } %116, 0
store ptr %117, ptr %8, align 8
%118 = extractvalue { ptr, i32 } %116, 1
store i32 %118, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
br label %124
119: ; preds = %111, %110, %104
%120 = landingpad { ptr, i32 }
cleanup
%121 = extractvalue { ptr, i32 } %120, 0
store ptr %121, ptr %8, align 8
%122 = extractvalue { ptr, i32 } %120, 1
store i32 %122, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
br label %124
123: ; preds = %112, %78
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %23, !llvm.loop !13
124: ; preds = %119, %115, %63
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %127
125: ; preds = %29
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %7)
to label %126 unwind label %49
126: ; preds = %125
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #6
call void @llvm.lifetime.end.p0(i64 520, ptr %7) #6
ret void
127: ; preds = %124, %49
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %128
128: ; preds = %127, %45
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #6
br label %129
129: ; preds = %128, %41
call void @llvm.lifetime.end.p0(i64 520, ptr %7) #6
call void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
br label %130
130: ; preds = %129
%131 = load ptr, ptr %8, align 8
%132 = load i32, ptr %9, align 4
%133 = insertvalue { ptr, i32 } poison, ptr %131, 0
%134 = insertvalue { ptr, i32 } %133, i32 %132, 1
resume { ptr, i32 } %134
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #0 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
declare i32 @fflush(ptr noundef) #4
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
attributes #0 = { mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %STRUCT0, %"class.std::__basic_file", i32, %STRUCT3, %STRUCT3, %STRUCT3, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%STRUCT0 = type { %STRUCT1 }
%STRUCT1 = type { i32, i32, i32, i32, i32, i16, i16, %STRUCT2 }
%STRUCT2 = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%STRUCT3 = type { i32, %STRUCT4 }
%STRUCT4 = type { i32 }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.5" = type { i32, i32 }
%STRUCT5 = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, int>>, std::allocator<std::vector<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2EPci(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
B0:
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.std::basic_ifstream", align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %"struct.std::pair", align 4
%14 = alloca %"struct.std::pair.5", align 4
%15 = alloca %"struct.std::pair", align 4
%16 = alloca %"struct.std::pair.5", align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
store i32 %2, ptr %5, align 4, !tbaa !9
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %STRUCT5, ptr %17, i32 0, i32 0
call void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
call void @llvm.lifetime.start.p0(i64 520, ptr %6) #6
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6)
to label %B1 unwind label %B9
B1:
%19 = load ptr, ptr %4, align 8, !tbaa !5
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef %19, i32 noundef 8)
to label %B2 unwind label %B10
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !9
br label %B3
B3:
%20 = load ptr, ptr %6, align 8, !tbaa !11
%21 = getelementptr i8, ptr %20, i64 -24
%22 = load i64, ptr %21, align 8
%23 = getelementptr inbounds i8, ptr %6, i64 %22
%24 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %23)
to label %B4 unwind label %B11
B4:
%25 = xor i1 %24, true
br i1 %25, label %B5, label %B39
B5:
%26 = load i32, ptr %9, align 4, !tbaa !9
%27 = srem i32 %26, 10000000
%28 = icmp eq i32 %27, 0
br i1 %28, label %B6, label %B12
B6:
%29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
to label %B7 unwind label %B11
B7:
%30 = load ptr, ptr @stderr, align 8, !tbaa !5
%31 = invoke i32 @fflush(ptr noundef %30)
to label %B8 unwind label %B11
B8:
br label %B12
B9:
%32 = landingpad { ptr, i32 }
cleanup
%33 = extractvalue { ptr, i32 } %32, 0
store ptr %33, ptr %7, align 8
%34 = extractvalue { ptr, i32 } %32, 1
store i32 %34, ptr %8, align 4
br label %B43
B10:
%35 = landingpad { ptr, i32 }
cleanup
%36 = extractvalue { ptr, i32 } %35, 0
store ptr %36, ptr %7, align 8
%37 = extractvalue { ptr, i32 } %35, 1
store i32 %37, ptr %8, align 4
br label %B42
B11:
%38 = landingpad { ptr, i32 }
cleanup
%39 = extractvalue { ptr, i32 } %38, 0
store ptr %39, ptr %7, align 8
%40 = extractvalue { ptr, i32 } %38, 1
store i32 %40, ptr %8, align 4
br label %B41
B12:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
store i32 1, ptr %12, align 4, !tbaa !9
%41 = load i32, ptr %5, align 4, !tbaa !9
%42 = icmp eq i32 %41, 0
br i1 %42, label %B13, label %B18
B13:
%43 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %10)
to label %B14 unwind label %B17
B14:
%44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %B15 unwind label %B17
B15:
%45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %B16 unwind label %B17
B16:
br label %B21
B17:
%46 = landingpad { ptr, i32 }
cleanup
%47 = extractvalue { ptr, i32 } %46, 0
store ptr %47, ptr %7, align 8
%48 = extractvalue { ptr, i32 } %46, 1
store i32 %48, ptr %8, align 4
br label %B38
B18:
%49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %10)
to label %B19 unwind label %B17
B19:
%50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %B20 unwind label %B17
B20:
br label %B21
B21:
%51 = load ptr, ptr %6, align 8, !tbaa !11
%52 = getelementptr i8, ptr %51, i64 -24
%53 = load i64, ptr %52, align 8
%54 = getelementptr inbounds i8, ptr %6, i64 %53
%55 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %54)
to label %B22 unwind label %B17
B22:
br i1 %55, label %B23, label %B37
B23:
%56 = getelementptr inbounds %STRUCT5, ptr %17, i32 0, i32 0
%57 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
%58 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %B24 unwind label %B17
B24:
%59 = load i32, ptr %58, align 4, !tbaa !9
%60 = add i32 %59, 1
%61 = zext i32 %60 to i64
%62 = icmp ule i64 %57, %61
br i1 %62, label %B25, label %B28
B25:
%63 = getelementptr inbounds %STRUCT5, ptr %17, i32 0, i32 0
%64 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %B26 unwind label %B17
B26:
%65 = load i32, ptr %64, align 4, !tbaa !9
%66 = add i32 %65, 1
%67 = zext i32 %66 to i64
invoke void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %67)
to label %B27 unwind label %B17
B27:
br label %B28
B28:
%68 = getelementptr inbounds %STRUCT5, ptr %17, i32 0, i32 0
%69 = load i32, ptr %10, align 4, !tbaa !9
%70 = zext i32 %69 to i64
%71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
%72 = invoke i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %B29 unwind label %B35
B29:
store i64 %72, ptr %14, align 4
invoke void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14)
to label %B30 unwind label %B35
B30:
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(8) %13)
to label %B31 unwind label %B35
B31:
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
%73 = getelementptr inbounds %STRUCT5, ptr %17, i32 0, i32 0
%74 = load i32, ptr %11, align 4, !tbaa !9
%75 = zext i32 %74 to i64
%76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %75) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
%77 = invoke i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %B32 unwind label %B36
B32:
store i64 %77, ptr %16, align 4
invoke void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
to label %B33 unwind label %B36
B33:
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %76, ptr noundef nonnull align 4 dereferenceable(8) %15)
to label %B34 unwind label %B36
B34:
call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
%78 = load i32, ptr %9, align 4, !tbaa !9
%79 = add nsw i32 %78, 1
store i32 %79, ptr %9, align 4, !tbaa !9
br label %B37
B35:
%80 = landingpad { ptr, i32 }
cleanup
%81 = extractvalue { ptr, i32 } %80, 0
store ptr %81, ptr %7, align 8
%82 = extractvalue { ptr, i32 } %80, 1
store i32 %82, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
br label %B38
B36:
%83 = landingpad { ptr, i32 }
cleanup
%84 = extractvalue { ptr, i32 } %83, 0
store ptr %84, ptr %7, align 8
%85 = extractvalue { ptr, i32 } %83, 1
store i32 %85, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
br label %B38
B37:
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B3, !llvm.loop !13
B38:
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B41
B39:
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %6)
to label %B40 unwind label %B11
B40:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #6
call void @llvm.lifetime.end.p0(i64 520, ptr %6) #6
ret void
B41:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B42
B42:
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #6
br label %B43
B43:
call void @llvm.lifetime.end.p0(i64 520, ptr %6) #6
call void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
br label %B44
B44:
%86 = load ptr, ptr %7, align 8
%87 = load i32, ptr %8, align 4
%88 = insertvalue { ptr, i32 } poison, ptr %86, 0
%89 = insertvalue { ptr, i32 } %88, i32 %87, 1
resume { ptr, i32 } %89
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #0 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
declare i32 @fflush(ptr noundef) #4
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #1 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
attributes #0 = { mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.5" = type { i32, i32 }
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2EPci(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca %"class.std::basic_ifstream", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %"struct.std::pair", align 4
%9 = alloca %"struct.std::pair.5", align 8
%10 = alloca %"struct.std::pair", align 4
%11 = alloca %"struct.std::pair.5", align 8
tail call void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %4) #6
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4)
to label %12 unwind label %29
12: ; preds = %3
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef %1, i32 noundef 8)
to label %.preheader unwind label %31
.preheader: ; preds = %12
%13 = icmp eq i32 %2, 0
br label %14
14: ; preds = %.preheader, %81
%.0 = phi i32 [ %.1, %81 ], [ 0, %.preheader ]
%15 = load ptr, ptr %4, align 8, !tbaa !5
%16 = getelementptr i8, ptr %15, i64 -24
%17 = load i64, ptr %16, align 8
%18 = getelementptr inbounds i8, ptr %4, i64 %17
%19 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %18)
to label %20 unwind label %.loopexit
20: ; preds = %14
br i1 %19, label %83, label %21
21: ; preds = %20
%22 = srem i32 %.0, 10000000
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %33
24: ; preds = %21
%25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
to label %26 unwind label %.loopexit
26: ; preds = %24
%27 = load ptr, ptr @stderr, align 8, !tbaa !8
%28 = call i32 @fflush(ptr noundef %27)
br label %33
29: ; preds = %3
%30 = landingpad { ptr, i32 }
cleanup
br label %86
31: ; preds = %12
%32 = landingpad { ptr, i32 }
cleanup
br label %85
.loopexit: ; preds = %14, %24
%lpad.loopexit = landingpad { ptr, i32 }
cleanup
br label %85
.loopexit.split-lp: ; preds = %83
%lpad.loopexit.split-lp = landingpad { ptr, i32 }
cleanup
br label %85
33: ; preds = %26, %21
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
store i32 1, ptr %7, align 4, !tbaa !11
br i1 %13, label %34, label %40
34: ; preds = %33
%35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %36 unwind label %38
36: ; preds = %34
%37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %.invoke unwind label %38
38: ; preds = %.invoke, %58, %45, %40, %36, %34
%39 = landingpad { ptr, i32 }
cleanup
br label %82
40: ; preds = %33
%41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %.invoke unwind label %38
.invoke: ; preds = %36, %40
%42 = phi ptr [ %41, %40 ], [ %37, %36 ]
%43 = phi ptr [ %6, %40 ], [ %7, %36 ]
%44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(4) %43)
to label %45 unwind label %38
45: ; preds = %.invoke
%46 = load ptr, ptr %4, align 8, !tbaa !5
%47 = getelementptr i8, ptr %46, i64 -24
%48 = load i64, ptr %47, align 8
%49 = getelementptr inbounds i8, ptr %4, i64 %48
%50 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %49)
to label %51 unwind label %38
51: ; preds = %45
br i1 %50, label %52, label %81
52: ; preds = %51
%53 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
%54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
%55 = load i32, ptr %54, align 4, !tbaa !11
%56 = add i32 %55, 1
%57 = zext i32 %56 to i64
%.not = icmp ugt i64 %53, %57
br i1 %.not, label %63, label %58
58: ; preds = %52
%59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
%60 = load i32, ptr %59, align 4, !tbaa !11
%61 = add i32 %60, 1
%62 = zext i32 %61 to i64
invoke void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %62)
to label %63 unwind label %38
63: ; preds = %58, %52
%64 = load i32, ptr %5, align 4, !tbaa !11
%65 = zext i32 %64 to i64
%66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %65) #6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
%67 = invoke i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %68 unwind label %77
68: ; preds = %63
store i64 %67, ptr %9, align 8
call void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 4 dereferenceable(8) %8)
to label %69 unwind label %77
69: ; preds = %68
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
%70 = load i32, ptr %6, align 4, !tbaa !11
%71 = zext i32 %70 to i64
%72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %71) #6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
%73 = invoke i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %74 unwind label %79
74: ; preds = %69
store i64 %73, ptr %11, align 8
call void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 4 dereferenceable(8) %10)
to label %75 unwind label %79
75: ; preds = %74
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
%76 = add nsw i32 %.0, 1
br label %81
77: ; preds = %68, %63
%78 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
br label %82
79: ; preds = %74, %69
%80 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
br label %82
81: ; preds = %75, %51
%.1 = phi i32 [ %76, %75 ], [ %.0, %51 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
br label %14, !llvm.loop !13
82: ; preds = %79, %77, %38
%.pn = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ], [ %39, %38 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
br label %85
83: ; preds = %20
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %4)
to label %84 unwind label %.loopexit.split-lp
84: ; preds = %83
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #6
call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #6
ret void
85: ; preds = %.loopexit, %.loopexit.split-lp, %82, %31
%.pn.pn.pn = phi { ptr, i32 } [ %32, %31 ], [ %.pn, %82 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #6
br label %86
86: ; preds = %85, %29
%.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %85 ], [ %30, %29 ]
call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #6
call void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
resume { ptr, i32 } %.pn.pn.pn.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #0 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #4
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IjjTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_ISt4pairIiiESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2
attributes #0 = { mustprogress 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 #4 = { 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 #5 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass | b8584db87ef5c8f3 | conradlee/network-community-benchmark | comm_algs/louvain/graph.ll | ZN5GraphC2EPci | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::pair" = type { ptr, ptr }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #1 align 2 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %"struct.std::pair", align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8, !tbaa !5
%7 = load ptr, ptr %2, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
store i32 0, ptr %3, align 4, !tbaa !9
br label %8
8: ; preds = %70, %1
%9 = load i32, ptr %3, align 4, !tbaa !9
%10 = getelementptr inbounds %class.Graph, ptr %7, i32 0, i32 0
%11 = load i32, ptr %10, align 8, !tbaa !11
%12 = icmp slt i32 %9, %11
br i1 %12, label %14, label %13
13: ; preds = %8
store i32 2, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
br label %73
14: ; preds = %8
call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
%15 = load i32, ptr %3, align 4, !tbaa !9
%16 = call { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %7, i32 noundef %15)
%17 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
%18 = extractvalue { ptr, ptr } %16, 0
store ptr %18, ptr %17, align 8
%19 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
%20 = extractvalue { ptr, ptr } %16, 1
store ptr %20, ptr %19, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !9
br label %21
21: ; preds = %66, %14
%22 = load i32, ptr %6, align 4, !tbaa !9
%23 = load i32, ptr %3, align 4, !tbaa !9
%24 = call noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %7, i32 noundef %23)
%25 = icmp slt i32 %22, %24
br i1 %25, label %27, label %26
26: ; preds = %21
store i32 5, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
br label %69
27: ; preds = %21
%28 = getelementptr inbounds %class.Graph, ptr %7, i32 0, i32 5
%29 = load ptr, ptr %28, align 8, !tbaa !13
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %51
31: ; preds = %27
%32 = load i32, ptr %3, align 4, !tbaa !9
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %32)
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @.str)
%35 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 0
%36 = load ptr, ptr %35, align 8, !tbaa !14
%37 = load i32, ptr %6, align 4, !tbaa !9
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4, !tbaa !9
%41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %34, i32 noundef %40)
%42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @.str)
%43 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 1
%44 = load ptr, ptr %43, align 8, !tbaa !16
%45 = load i32, ptr %6, align 4, !tbaa !9
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
%48 = load i32, ptr %47, align 4, !tbaa !9
%49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %42, i32 noundef %48)
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %65
51: ; preds = %27
%52 = load i32, ptr %3, align 4, !tbaa !9
%53 = add nsw i32 %52, 1
%54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %53)
%55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @.str)
%56 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 0
%57 = load ptr, ptr %56, align 8, !tbaa !14
%58 = load i32, ptr %6, align 4, !tbaa !9
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4, !tbaa !9
%62 = add nsw i32 %61, 1
%63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef %62)
%64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %65
65: ; preds = %51, %31
br label %66
66: ; preds = %65
%67 = load i32, ptr %6, align 4, !tbaa !9
%68 = add nsw i32 %67, 1
store i32 %68, ptr %6, align 4, !tbaa !9
br label %21, !llvm.loop !17
69: ; preds = %26
call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
br label %70
70: ; preds = %69
%71 = load i32, ptr %3, align 4, !tbaa !9
%72 = add nsw i32 %71, 1
store i32 %72, ptr %3, align 4, !tbaa !9
br label %8, !llvm.loop !19
73: ; preds = %13
ret void
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = !{!12, !6, i64 32}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::pair" = type { ptr, ptr }
%STRUCT0 = type { i32, i32, i32, ptr, ptr, ptr }
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #1 align 2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"struct.std::pair", align 8
%5 = alloca i32, align 4
store ptr %0, ptr %1, align 8, !tbaa !5
%6 = load ptr, ptr %1, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
store i32 0, ptr %2, align 4, !tbaa !9
br label %B1
B1:
%7 = load i32, ptr %2, align 4, !tbaa !9
%8 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 0
%9 = load i32, ptr %8, align 8, !tbaa !11
%10 = icmp slt i32 %7, %9
br i1 %10, label %B3, label %B2
B2:
store i32 2, ptr %3, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
br label %B13
B3:
call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
%11 = load i32, ptr %2, align 4, !tbaa !9
%12 = call { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %11)
%13 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 0
%14 = extractvalue { ptr, ptr } %12, 0
store ptr %14, ptr %13, align 8
%15 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 1
%16 = extractvalue { ptr, ptr } %12, 1
store ptr %16, ptr %15, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
store i32 0, ptr %5, align 4, !tbaa !9
br label %B4
B4:
%17 = load i32, ptr %5, align 4, !tbaa !9
%18 = load i32, ptr %2, align 4, !tbaa !9
%19 = call noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %18)
%20 = icmp slt i32 %17, %19
br i1 %20, label %B6, label %B5
B5:
store i32 5, ptr %3, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
br label %B11
B6:
%21 = getelementptr inbounds %STRUCT0, ptr %6, i32 0, i32 5
%22 = load ptr, ptr %21, align 8, !tbaa !13
%23 = icmp ne ptr %22, null
br i1 %23, label %B7, label %B8
B7:
%24 = load i32, ptr %2, align 4, !tbaa !9
%25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %24)
%26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef @.str)
%27 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 0
%28 = load ptr, ptr %27, align 8, !tbaa !14
%29 = load i32, ptr %5, align 4, !tbaa !9
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4, !tbaa !9
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef %32)
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @.str)
%35 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 1
%36 = load ptr, ptr %35, align 8, !tbaa !16
%37 = load i32, ptr %5, align 4, !tbaa !9
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4, !tbaa !9
%41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %34, i32 noundef %40)
%42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %B9
B8:
%43 = load i32, ptr %2, align 4, !tbaa !9
%44 = add nsw i32 %43, 1
%45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %44)
%46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @.str)
%47 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 0
%48 = load ptr, ptr %47, align 8, !tbaa !14
%49 = load i32, ptr %5, align 4, !tbaa !9
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4, !tbaa !9
%53 = add nsw i32 %52, 1
%54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %53)
%55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %B9
B9:
br label %B10
B10:
%56 = load i32, ptr %5, align 4, !tbaa !9
%57 = add nsw i32 %56, 1
store i32 %57, ptr %5, align 4, !tbaa !9
br label %B4, !llvm.loop !17
B11:
call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
br label %B12
B12:
%58 = load i32, ptr %2, align 4, !tbaa !9
%59 = add nsw i32 %58, 1
store i32 %59, ptr %2, align 4, !tbaa !9
br label %B1, !llvm.loop !19
B13:
ret void
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #2 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #4 = { "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 }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = !{!12, !6, i64 32}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIPiS0_E", !6, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40) %0) local_unnamed_addr #0 align 2 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = icmp sgt i32 %2, 0
br i1 %3, label %.lr.ph16, label %._crit_edge17
.lr.ph16: ; preds = %1
%4 = getelementptr inbounds i8, ptr %0, i64 32
br label %5
._crit_edge17: ; preds = %._crit_edge, %1
ret void
5: ; preds = %.lr.ph16, %._crit_edge
%.01214 = phi i32 [ 0, %.lr.ph16 ], [ %11, %._crit_edge ]
%6 = tail call { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.01214)
%7 = extractvalue { ptr, ptr } %6, 0
%8 = extractvalue { ptr, ptr } %6, 1
%9 = tail call noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.01214)
%10 = icmp sgt i32 %9, 0
%11 = add nuw nsw i32 %.01214, 1
br i1 %10, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %31, %5
%12 = load i32, ptr %0, align 8, !tbaa !5
%13 = icmp slt i32 %11, %12
br i1 %13, label %5, label %._crit_edge17, !llvm.loop !11
.lr.ph: ; preds = %5, %31
%indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %5 ]
%14 = load ptr, ptr %4, align 8, !tbaa !13
%.not = icmp eq ptr %14, null
%15 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
br i1 %.not, label %25, label %16
16: ; preds = %.lr.ph
%17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.01214)
%18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str)
%19 = load i32, ptr %15, align 4, !tbaa !14
%20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef %19)
%21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @.str)
%22 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv
%23 = load i32, ptr %22, align 4, !tbaa !14
%24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef %23)
br label %31
25: ; preds = %.lr.ph
%26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %11)
%27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @.str)
%28 = load i32, ptr %15, align 4, !tbaa !14
%29 = add nsw i32 %28, 1
%30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef %29)
br label %31
31: ; preds = %16, %25
%.sink = phi ptr [ %24, %16 ], [ %30, %25 ]
%32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %.sink, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%33 = tail call noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.01214)
%34 = sext i32 %33 to i64
%35 = icmp slt i64 %indvars.iv.next, %34
br i1 %35, label %.lr.ph, label %._crit_edge, !llvm.loop !15
}
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Graph9neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5Graph12nb_neighborsEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS5Graph", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!6, !10, i64 32}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !12}
| EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 639f9359cb54305c | conradlee/network-community-benchmark | comm_algs/louvain/graph_binary.ll | ZN5Graph7displayEv | BSD-2-Clause |
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"
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2EPci(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %"class.std::basic_ifstream", align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !5
store i32 %2, ptr %6, align 4, !tbaa !9
%11 = load ptr, ptr %4, align 8
call void @llvm.lifetime.start.p0(i64 520, ptr %7) #6
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7)
%12 = load ptr, ptr %5, align 8, !tbaa !5
%13 = invoke noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 8, i32 noundef 4)
to label %14 unwind label %82
14: ; preds = %3
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %7, ptr noundef %12, i32 noundef %13)
to label %15 unwind label %82
15: ; preds = %14
%16 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 0
%17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %16, i64 noundef 4)
to label %18 unwind label %82
18: ; preds = %15
%19 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 0
%20 = load i32, ptr %19, align 8, !tbaa !11
%21 = sext i32 %20 to i64
%22 = mul nsw i64 %21, 4
%23 = call noalias ptr @malloc(i64 noundef %22) #7
%24 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 3
store ptr %23, ptr %24, align 8, !tbaa !13
%25 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 3
%26 = load ptr, ptr %25, align 8, !tbaa !13
%27 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 0
%28 = load i32, ptr %27, align 8, !tbaa !11
%29 = sext i32 %28 to i64
%30 = mul nsw i64 %29, 4
%31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %26, i64 noundef %30)
to label %32 unwind label %82
32: ; preds = %18
%33 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 3
%34 = load ptr, ptr %33, align 8, !tbaa !13
%35 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 0
%36 = load i32, ptr %35, align 8, !tbaa !11
%37 = sub nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %34, i64 %38
%40 = load i32, ptr %39, align 4, !tbaa !9
%41 = sdiv i32 %40, 2
%42 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 1
store i32 %41, ptr %42, align 4, !tbaa !14
%43 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 1
%44 = load i32, ptr %43, align 4, !tbaa !14
%45 = sext i32 %44 to i64
%46 = mul nsw i64 %45, 8
%47 = call noalias ptr @malloc(i64 noundef %46) #7
%48 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 4
store ptr %47, ptr %48, align 8, !tbaa !15
%49 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 4
%50 = load ptr, ptr %49, align 8, !tbaa !15
%51 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 1
%52 = load i32, ptr %51, align 4, !tbaa !14
%53 = sext i32 %52 to i64
%54 = mul nsw i64 %53, 8
%55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %50, i64 noundef %54)
to label %56 unwind label %82
56: ; preds = %32
%57 = load i32, ptr %6, align 4, !tbaa !9
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %100
59: ; preds = %56
%60 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 1
%61 = load i32, ptr %60, align 4, !tbaa !14
%62 = sext i32 %61 to i64
%63 = mul nsw i64 %62, 8
%64 = call noalias ptr @malloc(i64 noundef %63) #7
%65 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 5
store ptr %64, ptr %65, align 8, !tbaa !16
%66 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 5
%67 = load ptr, ptr %66, align 8, !tbaa !16
%68 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 1
%69 = load i32, ptr %68, align 4, !tbaa !14
%70 = sext i32 %69 to i64
%71 = mul nsw i64 %70, 8
%72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %67, i64 noundef %71)
to label %73 unwind label %82
73: ; preds = %59
%74 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 2
store i32 0, ptr %74, align 8, !tbaa !17
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !9
br label %75
75: ; preds = %96, %73
%76 = load i32, ptr %10, align 4, !tbaa !9
%77 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 1
%78 = load i32, ptr %77, align 4, !tbaa !14
%79 = mul nsw i32 %78, 2
%80 = icmp slt i32 %76, %79
br i1 %80, label %86, label %81
81: ; preds = %75
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %99
82: ; preds = %59, %32, %18, %15, %14, %3
%83 = landingpad { ptr, i32 }
cleanup
%84 = extractvalue { ptr, i32 } %83, 0
store ptr %84, ptr %8, align 8
%85 = extractvalue { ptr, i32 } %83, 1
store i32 %85, ptr %9, align 4
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #6
call void @llvm.lifetime.end.p0(i64 520, ptr %7) #6
br label %107
86: ; preds = %75
%87 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 5
%88 = load ptr, ptr %87, align 8, !tbaa !16
%89 = load i32, ptr %10, align 4, !tbaa !9
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %88, i64 %90
%92 = load i32, ptr %91, align 4, !tbaa !9
%93 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 2
%94 = load i32, ptr %93, align 8, !tbaa !17
%95 = add nsw i32 %94, %92
store i32 %95, ptr %93, align 8, !tbaa !17
br label %96
96: ; preds = %86
%97 = load i32, ptr %10, align 4, !tbaa !9
%98 = add nsw i32 %97, 1
store i32 %98, ptr %10, align 4, !tbaa !9
br label %75, !llvm.loop !18
99: ; preds = %81
br label %106
100: ; preds = %56
%101 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 5
store ptr null, ptr %101, align 8, !tbaa !16
%102 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 1
%103 = load i32, ptr %102, align 4, !tbaa !14
%104 = mul nsw i32 2, %103
%105 = getelementptr inbounds %class.Graph, ptr %11, i32 0, i32 2
store i32 %104, ptr %105, align 8, !tbaa !17
br label %106
106: ; preds = %100, %99
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #6
call void @llvm.lifetime.end.p0(i64 520, ptr %7) #6
ret void
107: ; preds = %82
%108 = load ptr, ptr %8, align 8
%109 = load i32, ptr %9, align 4
%110 = insertvalue { ptr, i32 } poison, ptr %108, 0
%111 = insertvalue { ptr, i32 } %110, i32 %109, 1
resume { ptr, i32 } %111
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #0 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) #2
declare i32 @__gxx_personality_v0(...)
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #3
; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #5 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) "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 = { mustprogress 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = !{!12, !6, i64 16}
!14 = !{!12, !10, i64 4}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 32}
!17 = !{!12, !10, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %STRUCT0, %"class.std::__basic_file", i32, %STRUCT3, %STRUCT3, %STRUCT3, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%STRUCT0 = type { %STRUCT1 }
%STRUCT1 = type { i32, i32, i32, i32, i32, i16, i16, %STRUCT2 }
%STRUCT2 = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%STRUCT3 = type { i32, %STRUCT4 }
%STRUCT4 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%STRUCT5 = type { i32, i32, i32, ptr, ptr, ptr }
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2EPci(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
B0:
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.std::basic_ifstream", align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
store i32 %2, ptr %5, align 4, !tbaa !9
%10 = load ptr, ptr %3, align 8
call void @llvm.lifetime.start.p0(i64 520, ptr %6) #6
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6)
%11 = load ptr, ptr %4, align 8, !tbaa !5
%12 = invoke noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 8, i32 noundef 4)
to label %B1 unwind label %B10
B1:
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef %11, i32 noundef %12)
to label %B2 unwind label %B10
B2:
%13 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 0
%14 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %13, i64 noundef 4)
to label %B3 unwind label %B10
B3:
%15 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 0
%16 = load i32, ptr %15, align 8, !tbaa !11
%17 = sext i32 %16 to i64
%18 = mul nsw i64 %17, 4
%19 = call noalias ptr @malloc(i64 noundef %18) #7
%20 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 3
store ptr %19, ptr %20, align 8, !tbaa !13
%21 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 3
%22 = load ptr, ptr %21, align 8, !tbaa !13
%23 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 0
%24 = load i32, ptr %23, align 8, !tbaa !11
%25 = sext i32 %24 to i64
%26 = mul nsw i64 %25, 4
%27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %22, i64 noundef %26)
to label %B4 unwind label %B10
B4:
%28 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 3
%29 = load ptr, ptr %28, align 8, !tbaa !13
%30 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 0
%31 = load i32, ptr %30, align 8, !tbaa !11
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %29, i64 %33
%35 = load i32, ptr %34, align 4, !tbaa !9
%36 = sdiv i32 %35, 2
%37 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 1
store i32 %36, ptr %37, align 4, !tbaa !14
%38 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 1
%39 = load i32, ptr %38, align 4, !tbaa !14
%40 = sext i32 %39 to i64
%41 = mul nsw i64 %40, 8
%42 = call noalias ptr @malloc(i64 noundef %41) #7
%43 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 4
store ptr %42, ptr %43, align 8, !tbaa !15
%44 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 4
%45 = load ptr, ptr %44, align 8, !tbaa !15
%46 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 1
%47 = load i32, ptr %46, align 4, !tbaa !14
%48 = sext i32 %47 to i64
%49 = mul nsw i64 %48, 8
%50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %45, i64 noundef %49)
to label %B5 unwind label %B10
B5:
%51 = load i32, ptr %5, align 4, !tbaa !9
%52 = icmp eq i32 %51, 0
br i1 %52, label %B6, label %B14
B6:
%53 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 1
%54 = load i32, ptr %53, align 4, !tbaa !14
%55 = sext i32 %54 to i64
%56 = mul nsw i64 %55, 8
%57 = call noalias ptr @malloc(i64 noundef %56) #7
%58 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 5
store ptr %57, ptr %58, align 8, !tbaa !16
%59 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 5
%60 = load ptr, ptr %59, align 8, !tbaa !16
%61 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 1
%62 = load i32, ptr %61, align 4, !tbaa !14
%63 = sext i32 %62 to i64
%64 = mul nsw i64 %63, 8
%65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %60, i64 noundef %64)
to label %B7 unwind label %B10
B7:
%66 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 2
store i32 0, ptr %66, align 8, !tbaa !17
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !9
br label %B8
B8:
%67 = load i32, ptr %9, align 4, !tbaa !9
%68 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 1
%69 = load i32, ptr %68, align 4, !tbaa !14
%70 = mul nsw i32 %69, 2
%71 = icmp slt i32 %67, %70
br i1 %71, label %B11, label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B13
B10:
%72 = landingpad { ptr, i32 }
cleanup
%73 = extractvalue { ptr, i32 } %72, 0
store ptr %73, ptr %7, align 8
%74 = extractvalue { ptr, i32 } %72, 1
store i32 %74, ptr %8, align 4
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #6
call void @llvm.lifetime.end.p0(i64 520, ptr %6) #6
br label %B16
B11:
%75 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 5
%76 = load ptr, ptr %75, align 8, !tbaa !16
%77 = load i32, ptr %9, align 4, !tbaa !9
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %76, i64 %78
%80 = load i32, ptr %79, align 4, !tbaa !9
%81 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 2
%82 = load i32, ptr %81, align 8, !tbaa !17
%83 = add nsw i32 %82, %80
store i32 %83, ptr %81, align 8, !tbaa !17
br label %B12
B12:
%84 = load i32, ptr %9, align 4, !tbaa !9
%85 = add nsw i32 %84, 1
store i32 %85, ptr %9, align 4, !tbaa !9
br label %B8, !llvm.loop !18
B13:
br label %B15
B14:
%86 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 5
store ptr null, ptr %86, align 8, !tbaa !16
%87 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 1
%88 = load i32, ptr %87, align 4, !tbaa !14
%89 = mul nsw i32 2, %88
%90 = getelementptr inbounds %STRUCT5, ptr %10, i32 0, i32 2
store i32 %89, ptr %90, align 8, !tbaa !17
br label %B15
B15:
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #6
call void @llvm.lifetime.end.p0(i64 520, ptr %6) #6
ret void
B16:
%91 = load ptr, ptr %7, align 8
%92 = load i32, ptr %8, align 4
%93 = insertvalue { ptr, i32 } poison, ptr %91, 0
%94 = insertvalue { ptr, i32 } %93, i32 %92, 1
resume { ptr, i32 } %94
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #0 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) #2
declare i32 @__gxx_personality_v0(...)
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #3
; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #5 align 2
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) "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 = { mustprogress 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = !{!12, !6, i64 16}
!14 = !{!12, !10, i64 4}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 32}
!17 = !{!12, !10, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2EPci(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
%4 = alloca %"class.std::basic_ifstream", align 8
call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %4) #7
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4)
%5 = call noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 8, i32 noundef 4)
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef %1, i32 noundef %5)
to label %6 unwind label %57
6: ; preds = %3
%7 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %0, i64 noundef 4)
to label %8 unwind label %57
8: ; preds = %6
%9 = load i32, ptr %0, align 8, !tbaa !5
%10 = sext i32 %9 to i64
%11 = shl nsw i64 %10, 2
%12 = call noalias ptr @malloc(i64 noundef %11) #8
%13 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %12, ptr %13, align 8, !tbaa !11
%14 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %12, i64 noundef %11)
to label %15 unwind label %57
15: ; preds = %8
%16 = load ptr, ptr %13, align 8, !tbaa !11
%17 = load i32, ptr %0, align 8, !tbaa !5
%18 = sext i32 %17 to i64
%19 = getelementptr i32, ptr %16, i64 %18
%20 = getelementptr i8, ptr %19, i64 -4
%21 = load i32, ptr %20, align 4, !tbaa !12
%22 = sdiv i32 %21, 2
%23 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %22, ptr %23, align 4, !tbaa !13
%24 = sext i32 %22 to i64
%25 = shl nsw i64 %24, 3
%26 = call noalias ptr @malloc(i64 noundef %25) #8
%27 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %26, ptr %27, align 8, !tbaa !14
%28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %26, i64 noundef %25)
to label %29 unwind label %57
29: ; preds = %15
%30 = icmp eq i32 %2, 0
br i1 %30, label %31, label %69
31: ; preds = %29
%32 = load i32, ptr %23, align 4, !tbaa !13
%33 = sext i32 %32 to i64
%34 = shl nsw i64 %33, 3
%35 = call noalias ptr @malloc(i64 noundef %34) #8
%36 = getelementptr inbounds i8, ptr %0, i64 32
store ptr %35, ptr %36, align 8, !tbaa !15
%37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %35, i64 noundef %34)
to label %38 unwind label %57
38: ; preds = %31
%39 = getelementptr inbounds i8, ptr %0, i64 8
store i32 0, ptr %39, align 8, !tbaa !16
%40 = load i32, ptr %23, align 4, !tbaa !13
%41 = icmp sgt i32 %40, 0
br i1 %41, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %38
%42 = shl nuw i32 %40, 1
%43 = load ptr, ptr %36, align 8, !tbaa !15
%smax = call i32 @llvm.smax.i32(i32 %42, i32 1)
%wide.trip.count = zext nneg i32 %smax to i64
%min.iters.check = icmp slt i32 %42, 12
br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck
scalar.ph.preheader: ; preds = %middle.block, %vector.memcheck, %.lr.ph
%indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
%.ph = phi i32 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %56, %middle.block ]
%xtraiter = and i64 %wide.trip.count, 3
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol
scalar.ph.prol: ; preds = %scalar.ph.preheader, %scalar.ph.prol
%indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
%44 = phi i32 [ %47, %scalar.ph.prol ], [ %.ph, %scalar.ph.preheader ]
%prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
%45 = getelementptr inbounds i32, ptr %43, i64 %indvars.iv.prol
%46 = load i32, ptr %45, align 4, !tbaa !12
%47 = add nsw i32 %44, %46
store i32 %47, ptr %39, align 8, !tbaa !16
%indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
%prol.iter.next = add i64 %prol.iter, 1
%prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !17
scalar.ph.prol.loopexit: ; preds = %scalar.ph.prol, %scalar.ph.preheader
%indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
%.unr = phi i32 [ %.ph, %scalar.ph.preheader ], [ %47, %scalar.ph.prol ]
%48 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
%49 = icmp ugt i64 %48, -4
br i1 %49, label %.loopexit, label %scalar.ph.preheader.new
scalar.ph.preheader.new: ; preds = %scalar.ph.prol.loopexit
%invariant.gep = getelementptr i8, ptr %43, i64 4
%invariant.gep15 = getelementptr i8, ptr %43, i64 8
%invariant.gep17 = getelementptr i8, ptr %43, i64 12
br label %scalar.ph
vector.memcheck: ; preds = %.lr.ph
%scevgep = getelementptr inbounds i8, ptr %0, i64 12
%50 = shl nuw nsw i64 %wide.trip.count, 2
%scevgep9 = getelementptr i8, ptr %43, i64 %50
%bound0 = icmp ult ptr %39, %scevgep9
%bound1 = icmp ult ptr %43, %scevgep
%found.conflict = and i1 %bound0, %bound1
br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph
vector.ph: ; preds = %vector.memcheck
%n.vec = and i64 %wide.trip.count, 2147483640
br label %vector.body
vector.body: ; preds = %vector.body, %vector.ph
%index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
%vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %53, %vector.body ]
%vec.phi10 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %54, %vector.body ]
%51 = getelementptr inbounds i32, ptr %43, i64 %index
%52 = getelementptr inbounds i8, ptr %51, i64 16
%wide.load = load <4 x i32>, ptr %51, align 4, !tbaa !12, !alias.scope !19
%wide.load11 = load <4 x i32>, ptr %52, align 4, !tbaa !12, !alias.scope !19
%53 = add <4 x i32> %vec.phi, %wide.load
%54 = add <4 x i32> %vec.phi10, %wide.load11
%index.next = add nuw i64 %index, 8
%55 = icmp eq i64 %index.next, %n.vec
br i1 %55, label %middle.block, label %vector.body, !llvm.loop !22
middle.block: ; preds = %vector.body
%bin.rdx = add <4 x i32> %54, %53
%56 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
store i32 %56, ptr %39, align 8, !tbaa !16
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader
57: ; preds = %31, %15, %8, %6, %3
%58 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #7
call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #7
resume { ptr, i32 } %58
scalar.ph: ; preds = %scalar.ph, %scalar.ph.preheader.new
%indvars.iv = phi i64 [ %indvars.iv.unr, %scalar.ph.preheader.new ], [ %indvars.iv.next.3, %scalar.ph ]
%59 = phi i32 [ %.unr, %scalar.ph.preheader.new ], [ %68, %scalar.ph ]
%60 = getelementptr inbounds i32, ptr %43, i64 %indvars.iv
%61 = load i32, ptr %60, align 4, !tbaa !12
%62 = add nsw i32 %59, %61
store i32 %62, ptr %39, align 8, !tbaa !16
%gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv
%63 = load i32, ptr %gep, align 4, !tbaa !12
%64 = add nsw i32 %62, %63
store i32 %64, ptr %39, align 8, !tbaa !16
%gep16 = getelementptr i32, ptr %invariant.gep15, i64 %indvars.iv
%65 = load i32, ptr %gep16, align 4, !tbaa !12
%66 = add nsw i32 %64, %65
store i32 %66, ptr %39, align 8, !tbaa !16
%gep18 = getelementptr i32, ptr %invariant.gep17, i64 %indvars.iv
%67 = load i32, ptr %gep18, align 4, !tbaa !12
%68 = add nsw i32 %66, %67
store i32 %68, ptr %39, align 8, !tbaa !16
%indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
%exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
br i1 %exitcond.not.3, label %.loopexit, label %scalar.ph, !llvm.loop !26
69: ; preds = %29
%70 = getelementptr inbounds i8, ptr %0, i64 32
store ptr null, ptr %70, align 8, !tbaa !15
%71 = load i32, ptr %23, align 4, !tbaa !13
%72 = shl nsw i32 %71, 1
%73 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %72, ptr %73, align 8, !tbaa !16
br label %.loopexit
.loopexit: ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %38, %69
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #7
call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #7
ret void
}
; 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 uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #0 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @__gxx_personality_v0(...)
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #5 align 2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #6
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS5Graph", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !10, i64 24}
!15 = !{!6, !10, i64 32}
!16 = !{!6, !7, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = !{!20}
!20 = distinct !{!20, !21}
!21 = distinct !{!21, !"LVerDomain"}
!22 = distinct !{!22, !23, !24, !25}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !23, !24}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SCCPPass,SROAPass,SimplifyCFGPass | ffa4889e7b71efa2 | conradlee/network-community-benchmark | comm_algs/louvain/graph_binary.ll | ZN5GraphC2EPci | BSD-2-Clause |
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"
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #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 void @srand(i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: nounwind
declare i32 @rand() #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %"class.std::vector", align 8
%12 = alloca %"class.std::allocator", align 1
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca double, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %6, align 8, !tbaa !5
store i32 %1, ptr %7, align 4, !tbaa !9
store i32 %2, ptr %8, align 4, !tbaa !9
store i32 %3, ptr %9, align 4, !tbaa !9
store i32 %4, ptr %10, align 4, !tbaa !9
%28 = load ptr, ptr %6, align 8
%29 = call i32 @getpid() #5
call void @srand(i32 noundef %29) #5
%30 = load i32, ptr %7, align 4, !tbaa !9
%31 = load i32, ptr %9, align 4, !tbaa !9
%32 = mul nsw i32 %30, %31
%33 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
store i32 %32, ptr %33, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
%34 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%35 = load i32, ptr %34, align 8, !tbaa !11
%36 = sext i32 %35 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %36, ptr noundef nonnull align 1 dereferenceable(1) %12)
to label %37 unwind label %44
37: ; preds = %5
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
store i32 0, ptr %15, align 4, !tbaa !9
br label %38
38: ; preds = %56, %37
%39 = load i32, ptr %15, align 4, !tbaa !9
%40 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%41 = load i32, ptr %40, align 8, !tbaa !11
%42 = icmp slt i32 %39, %41
br i1 %42, label %48, label %43
43: ; preds = %38
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
br label %63
44: ; preds = %5
%45 = landingpad { ptr, i32 }
cleanup
%46 = extractvalue { ptr, i32 } %45, 0
store ptr %46, ptr %13, align 8
%47 = extractvalue { ptr, i32 } %45, 1
store i32 %47, ptr %14, align 4
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
br label %276
48: ; preds = %38
%49 = load i32, ptr %15, align 4, !tbaa !9
%50 = sext i32 %49 to i64
%51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %50) #5
%52 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%53 = load i32, ptr %52, align 8, !tbaa !11
%54 = sext i32 %53 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
store i32 0, ptr %16, align 4, !tbaa !9
invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %54, ptr noundef nonnull align 4 dereferenceable(4) %16)
to label %55 unwind label %59
55: ; preds = %48
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
br label %56
56: ; preds = %55
%57 = load i32, ptr %15, align 4, !tbaa !9
%58 = add nsw i32 %57, 1
store i32 %58, ptr %15, align 4, !tbaa !9
br label %38, !llvm.loop !13
59: ; preds = %48
%60 = landingpad { ptr, i32 }
cleanup
%61 = extractvalue { ptr, i32 } %60, 0
store ptr %61, ptr %13, align 8
%62 = extractvalue { ptr, i32 } %60, 1
store i32 %62, ptr %14, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
br label %276
63: ; preds = %43
%64 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
store i32 0, ptr %64, align 4, !tbaa !15
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
store i32 0, ptr %17, align 4, !tbaa !9
br label %65
65: ; preds = %154, %63
%66 = load i32, ptr %17, align 4, !tbaa !9
%67 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%68 = load i32, ptr %67, align 8, !tbaa !11
%69 = icmp slt i32 %66, %68
br i1 %69, label %71, label %70
70: ; preds = %65
store i32 5, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
br label %157
71: ; preds = %65
call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
%72 = load i32, ptr %17, align 4, !tbaa !9
%73 = add nsw i32 %72, 1
store i32 %73, ptr %19, align 4, !tbaa !9
br label %74
74: ; preds = %150, %71
%75 = load i32, ptr %19, align 4, !tbaa !9
%76 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%77 = load i32, ptr %76, align 8, !tbaa !11
%78 = icmp slt i32 %75, %77
br i1 %78, label %80, label %79
79: ; preds = %74
store i32 8, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
br label %153
80: ; preds = %74
call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
%81 = call i32 @rand() #5
%82 = sitofp i32 %81 to double
%83 = fmul double %82, 1.000000e+00
%84 = fdiv double %83, 0x41DFFFFFFFC00000
store double %84, ptr %20, align 8, !tbaa !16
%85 = load i32, ptr %17, align 4, !tbaa !9
%86 = load i32, ptr %7, align 4, !tbaa !9
%87 = sdiv i32 %85, %86
%88 = load i32, ptr %19, align 4, !tbaa !9
%89 = load i32, ptr %7, align 4, !tbaa !9
%90 = sdiv i32 %88, %89
%91 = icmp eq i32 %87, %90
br i1 %91, label %92, label %119
92: ; preds = %80
%93 = load double, ptr %20, align 8, !tbaa !16
%94 = load i32, ptr %8, align 4, !tbaa !9
%95 = sitofp i32 %94 to double
%96 = fmul double %95, 1.000000e+00
%97 = load i32, ptr %7, align 4, !tbaa !9
%98 = sitofp i32 %97 to double
%99 = fsub double %98, 1.000000e+00
%100 = fdiv double %96, %99
%101 = fcmp ole double %93, %100
br i1 %101, label %102, label %118
102: ; preds = %92
%103 = load i32, ptr %19, align 4, !tbaa !9
%104 = sext i32 %103 to i64
%105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %104) #5
%106 = load i32, ptr %17, align 4, !tbaa !9
%107 = sext i32 %106 to i64
%108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #5
store i32 1, ptr %108, align 4, !tbaa !9
%109 = load i32, ptr %17, align 4, !tbaa !9
%110 = sext i32 %109 to i64
%111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %110) #5
%112 = load i32, ptr %19, align 4, !tbaa !9
%113 = sext i32 %112 to i64
%114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #5
store i32 1, ptr %114, align 4, !tbaa !9
%115 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
%116 = load i32, ptr %115, align 4, !tbaa !15
%117 = add nsw i32 %116, 1
store i32 %117, ptr %115, align 4, !tbaa !15
br label %118
118: ; preds = %102, %92
br label %149
119: ; preds = %80
%120 = load double, ptr %20, align 8, !tbaa !16
%121 = load i32, ptr %10, align 4, !tbaa !9
%122 = sitofp i32 %121 to double
%123 = fmul double %122, 1.000000e+00
%124 = load i32, ptr %7, align 4, !tbaa !9
%125 = sitofp i32 %124 to double
%126 = load i32, ptr %9, align 4, !tbaa !9
%127 = sitofp i32 %126 to double
%128 = fsub double %127, 1.000000e+00
%129 = fmul double %125, %128
%130 = fdiv double %123, %129
%131 = fcmp ole double %120, %130
br i1 %131, label %132, label %148
132: ; preds = %119
%133 = load i32, ptr %19, align 4, !tbaa !9
%134 = sext i32 %133 to i64
%135 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %134) #5
%136 = load i32, ptr %17, align 4, !tbaa !9
%137 = sext i32 %136 to i64
%138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %137) #5
store i32 1, ptr %138, align 4, !tbaa !9
%139 = load i32, ptr %17, align 4, !tbaa !9
%140 = sext i32 %139 to i64
%141 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %140) #5
%142 = load i32, ptr %19, align 4, !tbaa !9
%143 = sext i32 %142 to i64
%144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %143) #5
store i32 1, ptr %144, align 4, !tbaa !9
%145 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
%146 = load i32, ptr %145, align 4, !tbaa !15
%147 = add nsw i32 %146, 1
store i32 %147, ptr %145, align 4, !tbaa !15
br label %148
148: ; preds = %132, %119
br label %149
149: ; preds = %148, %118
call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
br label %150
150: ; preds = %149
%151 = load i32, ptr %19, align 4, !tbaa !9
%152 = add nsw i32 %151, 1
store i32 %152, ptr %19, align 4, !tbaa !9
br label %74, !llvm.loop !18
153: ; preds = %79
br label %154
154: ; preds = %153
%155 = load i32, ptr %17, align 4, !tbaa !9
%156 = add nsw i32 %155, 1
store i32 %156, ptr %17, align 4, !tbaa !9
br label %65, !llvm.loop !19
157: ; preds = %70
%158 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
%159 = load i32, ptr %158, align 4, !tbaa !15
%160 = mul nsw i32 2, %159
%161 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 2
store i32 %160, ptr %161, align 8, !tbaa !20
%162 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 5
store ptr null, ptr %162, align 8, !tbaa !21
%163 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%164 = load i32, ptr %163, align 8, !tbaa !11
%165 = sext i32 %164 to i64
%166 = mul nsw i64 %165, 4
%167 = call noalias ptr @malloc(i64 noundef %166) #6
%168 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 3
store ptr %167, ptr %168, align 8, !tbaa !22
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
store i32 0, ptr %21, align 4, !tbaa !9
br label %169
169: ; preds = %202, %157
%170 = load i32, ptr %21, align 4, !tbaa !9
%171 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%172 = load i32, ptr %171, align 8, !tbaa !11
%173 = icmp slt i32 %170, %172
br i1 %173, label %175, label %174
174: ; preds = %169
store i32 11, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
br label %205
175: ; preds = %169
call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
store i32 0, ptr %22, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
store i32 0, ptr %23, align 4, !tbaa !9
br label %176
176: ; preds = %192, %175
%177 = load i32, ptr %23, align 4, !tbaa !9
%178 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%179 = load i32, ptr %178, align 8, !tbaa !11
%180 = icmp slt i32 %177, %179
br i1 %180, label %182, label %181
181: ; preds = %176
store i32 14, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
br label %195
182: ; preds = %176
%183 = load i32, ptr %21, align 4, !tbaa !9
%184 = sext i32 %183 to i64
%185 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %184) #5
%186 = load i32, ptr %23, align 4, !tbaa !9
%187 = sext i32 %186 to i64
%188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %187) #5
%189 = load i32, ptr %188, align 4, !tbaa !9
%190 = load i32, ptr %22, align 4, !tbaa !9
%191 = add nsw i32 %190, %189
store i32 %191, ptr %22, align 4, !tbaa !9
br label %192
192: ; preds = %182
%193 = load i32, ptr %23, align 4, !tbaa !9
%194 = add nsw i32 %193, 1
store i32 %194, ptr %23, align 4, !tbaa !9
br label %176, !llvm.loop !23
195: ; preds = %181
%196 = load i32, ptr %22, align 4, !tbaa !9
%197 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 3
%198 = load ptr, ptr %197, align 8, !tbaa !22
%199 = load i32, ptr %21, align 4, !tbaa !9
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i32, ptr %198, i64 %200
store i32 %196, ptr %201, align 4, !tbaa !9
call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
br label %202
202: ; preds = %195
%203 = load i32, ptr %21, align 4, !tbaa !9
%204 = add nsw i32 %203, 1
store i32 %204, ptr %21, align 4, !tbaa !9
br label %169, !llvm.loop !24
205: ; preds = %174
call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
store i32 1, ptr %24, align 4, !tbaa !9
br label %206
206: ; preds = %227, %205
%207 = load i32, ptr %24, align 4, !tbaa !9
%208 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%209 = load i32, ptr %208, align 8, !tbaa !11
%210 = icmp slt i32 %207, %209
br i1 %210, label %212, label %211
211: ; preds = %206
store i32 17, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
br label %230
212: ; preds = %206
%213 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 3
%214 = load ptr, ptr %213, align 8, !tbaa !22
%215 = load i32, ptr %24, align 4, !tbaa !9
%216 = sub nsw i32 %215, 1
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i32, ptr %214, i64 %217
%219 = load i32, ptr %218, align 4, !tbaa !9
%220 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 3
%221 = load ptr, ptr %220, align 8, !tbaa !22
%222 = load i32, ptr %24, align 4, !tbaa !9
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds i32, ptr %221, i64 %223
%225 = load i32, ptr %224, align 4, !tbaa !9
%226 = add nsw i32 %225, %219
store i32 %226, ptr %224, align 4, !tbaa !9
br label %227
227: ; preds = %212
%228 = load i32, ptr %24, align 4, !tbaa !9
%229 = add nsw i32 %228, 1
store i32 %229, ptr %24, align 4, !tbaa !9
br label %206, !llvm.loop !25
230: ; preds = %211
%231 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
%232 = load i32, ptr %231, align 4, !tbaa !15
%233 = sext i32 %232 to i64
%234 = mul nsw i64 %233, 8
%235 = call noalias ptr @malloc(i64 noundef %234) #6
%236 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 4
store ptr %235, ptr %236, align 8, !tbaa !26
call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
store i32 0, ptr %25, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
store i32 0, ptr %26, align 4, !tbaa !9
br label %237
237: ; preds = %272, %230
%238 = load i32, ptr %26, align 4, !tbaa !9
%239 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%240 = load i32, ptr %239, align 8, !tbaa !11
%241 = icmp slt i32 %238, %240
br i1 %241, label %243, label %242
242: ; preds = %237
store i32 20, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
br label %275
243: ; preds = %237
call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
store i32 0, ptr %27, align 4, !tbaa !9
br label %244
244: ; preds = %268, %243
%245 = load i32, ptr %27, align 4, !tbaa !9
%246 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
%247 = load i32, ptr %246, align 8, !tbaa !11
%248 = icmp slt i32 %245, %247
br i1 %248, label %250, label %249
249: ; preds = %244
store i32 23, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
br label %271
250: ; preds = %244
%251 = load i32, ptr %26, align 4, !tbaa !9
%252 = sext i32 %251 to i64
%253 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %252) #5
%254 = load i32, ptr %27, align 4, !tbaa !9
%255 = sext i32 %254 to i64
%256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %255) #5
%257 = load i32, ptr %256, align 4, !tbaa !9
%258 = icmp eq i32 %257, 1
br i1 %258, label %259, label %267
259: ; preds = %250
%260 = load i32, ptr %27, align 4, !tbaa !9
%261 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 4
%262 = load ptr, ptr %261, align 8, !tbaa !26
%263 = load i32, ptr %25, align 4, !tbaa !9
%264 = add nsw i32 %263, 1
store i32 %264, ptr %25, align 4, !tbaa !9
%265 = sext i32 %263 to i64
%266 = getelementptr inbounds i32, ptr %262, i64 %265
store i32 %260, ptr %266, align 4, !tbaa !9
br label %267
267: ; preds = %259, %250
br label %268
268: ; preds = %267
%269 = load i32, ptr %27, align 4, !tbaa !9
%270 = add nsw i32 %269, 1
store i32 %270, ptr %27, align 4, !tbaa !9
br label %244, !llvm.loop !27
271: ; preds = %249
br label %272
272: ; preds = %271
%273 = load i32, ptr %26, align 4, !tbaa !9
%274 = add nsw i32 %273, 1
store i32 %274, ptr %26, align 4, !tbaa !9
br label %237, !llvm.loop !28
275: ; preds = %242
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
ret void
276: ; preds = %59, %44
call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
br label %277
277: ; preds = %276
%278 = load ptr, ptr %13, align 8
%279 = load i32, ptr %14, align 4
%280 = insertvalue { ptr, i32 } poison, ptr %278, 0
%281 = insertvalue { ptr, i32 } %280, i32 %279, 1
resume { ptr, i32 } %281
}
; Function Attrs: nounwind
declare i32 @getpid() #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { mustprogress 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 #4 = { mustprogress 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 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !10, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!12, !10, i64 8}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !6, i64 16}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = !{!12, !6, i64 24}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
| 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"
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%STRUCT0 = type { i32, i32, i32, ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #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 void @srand(i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: nounwind
declare i32 @rand() #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
B0:
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %"class.std::vector", align 8
%11 = alloca %"class.std::allocator", align 1
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
store ptr %0, ptr %5, align 8, !tbaa !5
store i32 %1, ptr %6, align 4, !tbaa !9
store i32 %2, ptr %7, align 4, !tbaa !9
store i32 %3, ptr %8, align 4, !tbaa !9
store i32 %4, ptr %9, align 4, !tbaa !9
%27 = load ptr, ptr %5, align 8
%28 = call i32 @getpid() #5
call void @srand(i32 noundef %28) #5
%29 = load i32, ptr %6, align 4, !tbaa !9
%30 = load i32, ptr %8, align 4, !tbaa !9
%31 = mul nsw i32 %29, %30
%32 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
store i32 %31, ptr %32, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
%33 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%34 = load i32, ptr %33, align 8, !tbaa !11
%35 = sext i32 %34 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %11)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
store i32 0, ptr %14, align 4, !tbaa !9
br label %B2
B2:
%36 = load i32, ptr %14, align 4, !tbaa !9
%37 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%38 = load i32, ptr %37, align 8, !tbaa !11
%39 = icmp slt i32 %36, %38
br i1 %39, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
br label %B9
B4:
%40 = landingpad { ptr, i32 }
cleanup
%41 = extractvalue { ptr, i32 } %40, 0
store ptr %41, ptr %12, align 8
%42 = extractvalue { ptr, i32 } %40, 1
store i32 %42, ptr %13, align 4
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
br label %B54
B5:
%43 = load i32, ptr %14, align 4, !tbaa !9
%44 = sext i32 %43 to i64
%45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %44) #5
%46 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%47 = load i32, ptr %46, align 8, !tbaa !11
%48 = sext i32 %47 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
store i32 0, ptr %15, align 4, !tbaa !9
invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %48, ptr noundef nonnull align 4 dereferenceable(4) %15)
to label %B6 unwind label %B8
B6:
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
br label %B7
B7:
%49 = load i32, ptr %14, align 4, !tbaa !9
%50 = add nsw i32 %49, 1
store i32 %50, ptr %14, align 4, !tbaa !9
br label %B2, !llvm.loop !13
B8:
%51 = landingpad { ptr, i32 }
cleanup
%52 = extractvalue { ptr, i32 } %51, 0
store ptr %52, ptr %12, align 8
%53 = extractvalue { ptr, i32 } %51, 1
store i32 %53, ptr %13, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
br label %B54
B9:
%54 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
store i32 0, ptr %54, align 4, !tbaa !15
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
store i32 0, ptr %16, align 4, !tbaa !9
br label %B10
B10:
%55 = load i32, ptr %16, align 4, !tbaa !9
%56 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%57 = load i32, ptr %56, align 8, !tbaa !11
%58 = icmp slt i32 %55, %57
br i1 %58, label %B12, label %B11
B11:
store i32 5, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
br label %B26
B12:
call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
%59 = load i32, ptr %16, align 4, !tbaa !9
%60 = add nsw i32 %59, 1
store i32 %60, ptr %18, align 4, !tbaa !9
br label %B13
B13:
%61 = load i32, ptr %18, align 4, !tbaa !9
%62 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%63 = load i32, ptr %62, align 8, !tbaa !11
%64 = icmp slt i32 %61, %63
br i1 %64, label %B15, label %B14
B14:
store i32 8, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
br label %B24
B15:
call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
%65 = call i32 @rand() #5
%66 = sitofp i32 %65 to double
%67 = fmul double %66, 1.000000e+00
%68 = fdiv double %67, 0x41DFFFFFFFC00000
store double %68, ptr %19, align 8, !tbaa !16
%69 = load i32, ptr %16, align 4, !tbaa !9
%70 = load i32, ptr %6, align 4, !tbaa !9
%71 = sdiv i32 %69, %70
%72 = load i32, ptr %18, align 4, !tbaa !9
%73 = load i32, ptr %6, align 4, !tbaa !9
%74 = sdiv i32 %72, %73
%75 = icmp eq i32 %71, %74
br i1 %75, label %B16, label %B19
B16:
%76 = load double, ptr %19, align 8, !tbaa !16
%77 = load i32, ptr %7, align 4, !tbaa !9
%78 = sitofp i32 %77 to double
%79 = fmul double %78, 1.000000e+00
%80 = load i32, ptr %6, align 4, !tbaa !9
%81 = sitofp i32 %80 to double
%82 = fsub double %81, 1.000000e+00
%83 = fdiv double %79, %82
%84 = fcmp ole double %76, %83
br i1 %84, label %B17, label %B18
B17:
%85 = load i32, ptr %18, align 4, !tbaa !9
%86 = sext i32 %85 to i64
%87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %86) #5
%88 = load i32, ptr %16, align 4, !tbaa !9
%89 = sext i32 %88 to i64
%90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #5
store i32 1, ptr %90, align 4, !tbaa !9
%91 = load i32, ptr %16, align 4, !tbaa !9
%92 = sext i32 %91 to i64
%93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %92) #5
%94 = load i32, ptr %18, align 4, !tbaa !9
%95 = sext i32 %94 to i64
%96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95) #5
store i32 1, ptr %96, align 4, !tbaa !9
%97 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%98 = load i32, ptr %97, align 4, !tbaa !15
%99 = add nsw i32 %98, 1
store i32 %99, ptr %97, align 4, !tbaa !15
br label %B18
B18:
br label %B22
B19:
%100 = load double, ptr %19, align 8, !tbaa !16
%101 = load i32, ptr %9, align 4, !tbaa !9
%102 = sitofp i32 %101 to double
%103 = fmul double %102, 1.000000e+00
%104 = load i32, ptr %6, align 4, !tbaa !9
%105 = sitofp i32 %104 to double
%106 = load i32, ptr %8, align 4, !tbaa !9
%107 = sitofp i32 %106 to double
%108 = fsub double %107, 1.000000e+00
%109 = fmul double %105, %108
%110 = fdiv double %103, %109
%111 = fcmp ole double %100, %110
br i1 %111, label %B20, label %B21
B20:
%112 = load i32, ptr %18, align 4, !tbaa !9
%113 = sext i32 %112 to i64
%114 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %113) #5
%115 = load i32, ptr %16, align 4, !tbaa !9
%116 = sext i32 %115 to i64
%117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %116) #5
store i32 1, ptr %117, align 4, !tbaa !9
%118 = load i32, ptr %16, align 4, !tbaa !9
%119 = sext i32 %118 to i64
%120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %119) #5
%121 = load i32, ptr %18, align 4, !tbaa !9
%122 = sext i32 %121 to i64
%123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #5
store i32 1, ptr %123, align 4, !tbaa !9
%124 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%125 = load i32, ptr %124, align 4, !tbaa !15
%126 = add nsw i32 %125, 1
store i32 %126, ptr %124, align 4, !tbaa !15
br label %B21
B21:
br label %B22
B22:
call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
br label %B23
B23:
%127 = load i32, ptr %18, align 4, !tbaa !9
%128 = add nsw i32 %127, 1
store i32 %128, ptr %18, align 4, !tbaa !9
br label %B13, !llvm.loop !18
B24:
br label %B25
B25:
%129 = load i32, ptr %16, align 4, !tbaa !9
%130 = add nsw i32 %129, 1
store i32 %130, ptr %16, align 4, !tbaa !9
br label %B10, !llvm.loop !19
B26:
%131 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%132 = load i32, ptr %131, align 4, !tbaa !15
%133 = mul nsw i32 2, %132
%134 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 2
store i32 %133, ptr %134, align 8, !tbaa !20
%135 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 5
store ptr null, ptr %135, align 8, !tbaa !21
%136 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%137 = load i32, ptr %136, align 8, !tbaa !11
%138 = sext i32 %137 to i64
%139 = mul nsw i64 %138, 4
%140 = call noalias ptr @malloc(i64 noundef %139) #6
%141 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 3
store ptr %140, ptr %141, align 8, !tbaa !22
call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
store i32 0, ptr %20, align 4, !tbaa !9
br label %B27
B27:
%142 = load i32, ptr %20, align 4, !tbaa !9
%143 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%144 = load i32, ptr %143, align 8, !tbaa !11
%145 = icmp slt i32 %142, %144
br i1 %145, label %B29, label %B28
B28:
store i32 11, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
br label %B36
B29:
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
store i32 0, ptr %21, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
store i32 0, ptr %22, align 4, !tbaa !9
br label %B30
B30:
%146 = load i32, ptr %22, align 4, !tbaa !9
%147 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%148 = load i32, ptr %147, align 8, !tbaa !11
%149 = icmp slt i32 %146, %148
br i1 %149, label %B32, label %B31
B31:
store i32 14, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
br label %B34
B32:
%150 = load i32, ptr %20, align 4, !tbaa !9
%151 = sext i32 %150 to i64
%152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %151) #5
%153 = load i32, ptr %22, align 4, !tbaa !9
%154 = sext i32 %153 to i64
%155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %154) #5
%156 = load i32, ptr %155, align 4, !tbaa !9
%157 = load i32, ptr %21, align 4, !tbaa !9
%158 = add nsw i32 %157, %156
store i32 %158, ptr %21, align 4, !tbaa !9
br label %B33
B33:
%159 = load i32, ptr %22, align 4, !tbaa !9
%160 = add nsw i32 %159, 1
store i32 %160, ptr %22, align 4, !tbaa !9
br label %B30, !llvm.loop !23
B34:
%161 = load i32, ptr %21, align 4, !tbaa !9
%162 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 3
%163 = load ptr, ptr %162, align 8, !tbaa !22
%164 = load i32, ptr %20, align 4, !tbaa !9
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds i32, ptr %163, i64 %165
store i32 %161, ptr %166, align 4, !tbaa !9
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
br label %B35
B35:
%167 = load i32, ptr %20, align 4, !tbaa !9
%168 = add nsw i32 %167, 1
store i32 %168, ptr %20, align 4, !tbaa !9
br label %B27, !llvm.loop !24
B36:
call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
store i32 1, ptr %23, align 4, !tbaa !9
br label %B37
B37:
%169 = load i32, ptr %23, align 4, !tbaa !9
%170 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%171 = load i32, ptr %170, align 8, !tbaa !11
%172 = icmp slt i32 %169, %171
br i1 %172, label %B39, label %B38
B38:
store i32 17, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
br label %B41
B39:
%173 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 3
%174 = load ptr, ptr %173, align 8, !tbaa !22
%175 = load i32, ptr %23, align 4, !tbaa !9
%176 = sub nsw i32 %175, 1
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds i32, ptr %174, i64 %177
%179 = load i32, ptr %178, align 4, !tbaa !9
%180 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 3
%181 = load ptr, ptr %180, align 8, !tbaa !22
%182 = load i32, ptr %23, align 4, !tbaa !9
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds i32, ptr %181, i64 %183
%185 = load i32, ptr %184, align 4, !tbaa !9
%186 = add nsw i32 %185, %179
store i32 %186, ptr %184, align 4, !tbaa !9
br label %B40
B40:
%187 = load i32, ptr %23, align 4, !tbaa !9
%188 = add nsw i32 %187, 1
store i32 %188, ptr %23, align 4, !tbaa !9
br label %B37, !llvm.loop !25
B41:
%189 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 1
%190 = load i32, ptr %189, align 4, !tbaa !15
%191 = sext i32 %190 to i64
%192 = mul nsw i64 %191, 8
%193 = call noalias ptr @malloc(i64 noundef %192) #6
%194 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 4
store ptr %193, ptr %194, align 8, !tbaa !26
call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
store i32 0, ptr %24, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
store i32 0, ptr %25, align 4, !tbaa !9
br label %B42
B42:
%195 = load i32, ptr %25, align 4, !tbaa !9
%196 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%197 = load i32, ptr %196, align 8, !tbaa !11
%198 = icmp slt i32 %195, %197
br i1 %198, label %B44, label %B43
B43:
store i32 20, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
br label %B53
B44:
call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
store i32 0, ptr %26, align 4, !tbaa !9
br label %B45
B45:
%199 = load i32, ptr %26, align 4, !tbaa !9
%200 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 0
%201 = load i32, ptr %200, align 8, !tbaa !11
%202 = icmp slt i32 %199, %201
br i1 %202, label %B47, label %B46
B46:
store i32 23, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
br label %B51
B47:
%203 = load i32, ptr %25, align 4, !tbaa !9
%204 = sext i32 %203 to i64
%205 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %204) #5
%206 = load i32, ptr %26, align 4, !tbaa !9
%207 = sext i32 %206 to i64
%208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %205, i64 noundef %207) #5
%209 = load i32, ptr %208, align 4, !tbaa !9
%210 = icmp eq i32 %209, 1
br i1 %210, label %B48, label %B49
B48:
%211 = load i32, ptr %26, align 4, !tbaa !9
%212 = getelementptr inbounds %STRUCT0, ptr %27, i32 0, i32 4
%213 = load ptr, ptr %212, align 8, !tbaa !26
%214 = load i32, ptr %24, align 4, !tbaa !9
%215 = add nsw i32 %214, 1
store i32 %215, ptr %24, align 4, !tbaa !9
%216 = sext i32 %214 to i64
%217 = getelementptr inbounds i32, ptr %213, i64 %216
store i32 %211, ptr %217, align 4, !tbaa !9
br label %B49
B49:
br label %B50
B50:
%218 = load i32, ptr %26, align 4, !tbaa !9
%219 = add nsw i32 %218, 1
store i32 %219, ptr %26, align 4, !tbaa !9
br label %B45, !llvm.loop !27
B51:
br label %B52
B52:
%220 = load i32, ptr %25, align 4, !tbaa !9
%221 = add nsw i32 %220, 1
store i32 %221, ptr %25, align 4, !tbaa !9
br label %B42, !llvm.loop !28
B53:
call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
ret void
B54:
call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
br label %B55
B55:
%222 = load ptr, ptr %12, align 8
%223 = load i32, ptr %13, align 4
%224 = insertvalue { ptr, i32 } poison, ptr %222, 0
%225 = insertvalue { ptr, i32 } %224, i32 %223, 1
resume { ptr, i32 } %225
}
; Function Attrs: nounwind
declare i32 @getpid() #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { mustprogress 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 #4 = { mustprogress 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 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !10, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!12, !10, i64 8}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !6, i64 16}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = !{!12, !6, i64 24}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14} | 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"
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2
; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiii(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
%6 = alloca %"class.std::vector", align 8
%7 = alloca %"class.std::allocator", align 1
%8 = alloca i32, align 4
%9 = tail call i32 @getpid() #5
tail call void @srand(i32 noundef %9) #5
%10 = mul nsw i32 %3, %1
store i32 %10, ptr %0, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
%11 = sext i32 %10 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %7)
to label %12 unwind label %29
12: ; preds = %5
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
%13 = load i32, ptr %0, align 8, !tbaa !5
%14 = icmp sgt i32 %13, 0
br i1 %14, label %.lr.ph, label %._crit_edge.thread
._crit_edge.thread: ; preds = %12
%15 = getelementptr inbounds i8, ptr %0, i64 4
store i32 0, ptr %15, align 4, !tbaa !11
br label %._crit_edge.._crit_edge73_crit_edge
._crit_edge: ; preds = %34
%16 = getelementptr inbounds i8, ptr %0, i64 4
store i32 0, ptr %16, align 4, !tbaa !11
%17 = icmp sgt i32 %35, 0
br i1 %17, label %.lr.ph72, label %._crit_edge.._crit_edge73_crit_edge
._crit_edge.._crit_edge73_crit_edge: ; preds = %._crit_edge.thread, %._crit_edge
%18 = phi ptr [ %15, %._crit_edge.thread ], [ %16, %._crit_edge ]
%19 = phi i32 [ %13, %._crit_edge.thread ], [ %35, %._crit_edge ]
%.pre120 = sext i32 %19 to i64
br label %._crit_edge73
.lr.ph72: ; preds = %._crit_edge
%20 = sitofp i32 %4 to double
%21 = sitofp i32 %1 to double
%22 = sitofp i32 %3 to double
%23 = fadd double %22, -1.000000e+00
%24 = fmul double %23, %21
%25 = fdiv double %20, %24
%26 = sitofp i32 %2 to double
%27 = fadd double %21, -1.000000e+00
%28 = fdiv double %26, %27
br label %52
29: ; preds = %5
%30 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
br label %126
.lr.ph: ; preds = %12, %34
%indvars.iv = phi i64 [ %indvars.iv.next, %34 ], [ 0, %12 ]
%31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
%32 = load i32, ptr %0, align 8, !tbaa !5
%33 = sext i32 %32 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
store i32 0, ptr %8, align 4, !tbaa !12
invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %33, ptr noundef nonnull align 4 dereferenceable(4) %8)
to label %34 unwind label %38
34: ; preds = %.lr.ph
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%35 = load i32, ptr %0, align 8, !tbaa !5
%36 = sext i32 %35 to i64
%37 = icmp slt i64 %indvars.iv.next, %36
br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !13
38: ; preds = %.lr.ph
%39 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
br label %126
.loopexit.loopexit: ; preds = %75
%.pre119 = sext i32 %76 to i64
br label %.loopexit
.loopexit: ; preds = %.loopexit.loopexit, %52
%.pre-phi = phi i64 [ %.pre119, %.loopexit.loopexit ], [ %54, %52 ]
%40 = phi i32 [ %76, %.loopexit.loopexit ], [ %53, %52 ]
%41 = icmp slt i64 %indvars.iv.next101, %.pre-phi
%indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
br i1 %41, label %52, label %._crit_edge73.loopexit, !llvm.loop !15
._crit_edge73.loopexit: ; preds = %.loopexit
%.pre = load i32, ptr %16, align 4, !tbaa !11
%42 = shl nsw i32 %.pre, 1
br label %._crit_edge73
._crit_edge73: ; preds = %._crit_edge.._crit_edge73_crit_edge, %._crit_edge73.loopexit
%43 = phi ptr [ %18, %._crit_edge.._crit_edge73_crit_edge ], [ %16, %._crit_edge73.loopexit ]
%.pre-phi121 = phi i64 [ %.pre120, %._crit_edge.._crit_edge73_crit_edge ], [ %.pre-phi, %._crit_edge73.loopexit ]
%44 = phi i32 [ 0, %._crit_edge.._crit_edge73_crit_edge ], [ %42, %._crit_edge73.loopexit ]
%45 = phi i32 [ %19, %._crit_edge.._crit_edge73_crit_edge ], [ %40, %._crit_edge73.loopexit ]
%46 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %44, ptr %46, align 8, !tbaa !16
%47 = getelementptr inbounds i8, ptr %0, i64 32
store ptr null, ptr %47, align 8, !tbaa !17
%48 = shl nsw i64 %.pre-phi121, 2
%49 = call noalias ptr @malloc(i64 noundef %48) #6
%50 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %49, ptr %50, align 8, !tbaa !18
%51 = icmp sgt i32 %45, 0
br i1 %51, label %.preheader65, label %._crit_edge82
52: ; preds = %.lr.ph72, %.loopexit
%53 = phi i32 [ %35, %.lr.ph72 ], [ %40, %.loopexit ]
%indvars.iv100 = phi i64 [ 0, %.lr.ph72 ], [ %indvars.iv.next101, %.loopexit ]
%indvars.iv95 = phi i64 [ 1, %.lr.ph72 ], [ %indvars.iv.next96, %.loopexit ]
%indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
%54 = sext i32 %53 to i64
%55 = icmp slt i64 %indvars.iv.next101, %54
br i1 %55, label %.lr.ph69, label %.loopexit
.lr.ph69: ; preds = %52
%56 = trunc nuw nsw i64 %indvars.iv100 to i32
br label %57
57: ; preds = %.lr.ph69, %75
%indvars.iv97 = phi i64 [ %indvars.iv95, %.lr.ph69 ], [ %indvars.iv.next98, %75 ]
%58 = call i32 @rand() #5
%59 = sitofp i32 %58 to double
%60 = fdiv double %59, 0x41DFFFFFFFC00000
%61 = sdiv i32 %56, %1
%62 = trunc nuw nsw i64 %indvars.iv97 to i32
%63 = sdiv i32 %62, %1
%64 = icmp eq i32 %61, %63
br i1 %64, label %65, label %67
65: ; preds = %57
%66 = fcmp ugt double %60, %28
br i1 %66, label %75, label %.sink.split
67: ; preds = %57
%68 = fcmp ugt double %60, %25
br i1 %68, label %75, label %.sink.split
.sink.split: ; preds = %67, %65
%69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv97) #5
%70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %indvars.iv100) #5
store i32 1, ptr %70, align 4, !tbaa !12
%71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv100) #5
%72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv97) #5
store i32 1, ptr %72, align 4, !tbaa !12
%73 = load i32, ptr %16, align 4, !tbaa !11
%74 = add nsw i32 %73, 1
store i32 %74, ptr %16, align 4, !tbaa !11
br label %75
75: ; preds = %.sink.split, %67, %65
%indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
%76 = load i32, ptr %0, align 8, !tbaa !5
%77 = trunc nuw i64 %indvars.iv.next98 to i32
%78 = icmp sgt i32 %76, %77
br i1 %78, label %57, label %.loopexit.loopexit, !llvm.loop !19
.preheader65: ; preds = %._crit_edge73, %._crit_edge77
%79 = phi ptr [ %83, %._crit_edge77 ], [ %49, %._crit_edge73 ]
%80 = phi i32 [ %85, %._crit_edge77 ], [ %45, %._crit_edge73 ]
%indvars.iv106 = phi i64 [ %indvars.iv.next107, %._crit_edge77 ], [ 0, %._crit_edge73 ]
%81 = icmp sgt i32 %80, 0
br i1 %81, label %.lr.ph76, label %._crit_edge77
.preheader64: ; preds = %._crit_edge77
%82 = icmp sgt i32 %85, 1
br i1 %82, label %.lr.ph81.preheader, label %._crit_edge82
.lr.ph81.preheader: ; preds = %.preheader64
%load_initial = load i32, ptr %83, align 4
br label %.lr.ph81
._crit_edge77.loopexit: ; preds = %.lr.ph76
%.pre118 = load ptr, ptr %50, align 8, !tbaa !18
br label %._crit_edge77
._crit_edge77: ; preds = %._crit_edge77.loopexit, %.preheader65
%83 = phi ptr [ %79, %.preheader65 ], [ %.pre118, %._crit_edge77.loopexit ]
%.056.lcssa = phi i32 [ 0, %.preheader65 ], [ %91, %._crit_edge77.loopexit ]
%84 = getelementptr inbounds i32, ptr %83, i64 %indvars.iv106
store i32 %.056.lcssa, ptr %84, align 4, !tbaa !12
%indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
%85 = load i32, ptr %0, align 8, !tbaa !5
%86 = sext i32 %85 to i64
%87 = icmp slt i64 %indvars.iv.next107, %86
br i1 %87, label %.preheader65, label %.preheader64, !llvm.loop !20
.lr.ph76: ; preds = %.preheader65, %.lr.ph76
%indvars.iv103 = phi i64 [ %indvars.iv.next104, %.lr.ph76 ], [ 0, %.preheader65 ]
%.05674 = phi i32 [ %91, %.lr.ph76 ], [ 0, %.preheader65 ]
%88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv106) #5
%89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %indvars.iv103) #5
%90 = load i32, ptr %89, align 4, !tbaa !12
%91 = add nsw i32 %90, %.05674
%indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
%92 = load i32, ptr %0, align 8, !tbaa !5
%93 = sext i32 %92 to i64
%94 = icmp slt i64 %indvars.iv.next104, %93
br i1 %94, label %.lr.ph76, label %._crit_edge77.loopexit, !llvm.loop !21
._crit_edge82: ; preds = %.lr.ph81, %._crit_edge73, %.preheader64
%95 = phi i32 [ %85, %.preheader64 ], [ %45, %._crit_edge73 ], [ %105, %.lr.ph81 ]
%96 = load i32, ptr %43, align 4, !tbaa !11
%97 = sext i32 %96 to i64
%98 = shl nsw i64 %97, 3
%99 = call noalias ptr @malloc(i64 noundef %98) #6
%100 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %99, ptr %100, align 8, !tbaa !22
%101 = icmp sgt i32 %95, 0
br i1 %101, label %.preheader, label %._crit_edge90
.lr.ph81: ; preds = %.lr.ph81.preheader, %.lr.ph81
%store_forwarded = phi i32 [ %load_initial, %.lr.ph81.preheader ], [ %104, %.lr.ph81 ]
%indvars.iv109 = phi i64 [ 1, %.lr.ph81.preheader ], [ %indvars.iv.next110, %.lr.ph81 ]
%102 = getelementptr i32, ptr %83, i64 %indvars.iv109
%103 = load i32, ptr %102, align 4, !tbaa !12
%104 = add nsw i32 %103, %store_forwarded
store i32 %104, ptr %102, align 4, !tbaa !12
%indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
%105 = load i32, ptr %0, align 8, !tbaa !5
%106 = sext i32 %105 to i64
%107 = icmp slt i64 %indvars.iv.next110, %106
br i1 %107, label %.lr.ph81, label %._crit_edge82, !llvm.loop !23
.preheader: ; preds = %._crit_edge82, %._crit_edge86
%108 = phi i32 [ %110, %._crit_edge86 ], [ %95, %._crit_edge82 ]
%indvars.iv115 = phi i64 [ %indvars.iv.next116, %._crit_edge86 ], [ 0, %._crit_edge82 ]
%.05388 = phi i32 [ %.1.lcssa, %._crit_edge86 ], [ 0, %._crit_edge82 ]
%109 = icmp sgt i32 %108, 0
br i1 %109, label %.lr.ph85, label %.preheader.._crit_edge86_crit_edge
.preheader.._crit_edge86_crit_edge: ; preds = %.preheader
%.pre122 = sext i32 %108 to i64
br label %._crit_edge86
._crit_edge90: ; preds = %._crit_edge86, %._crit_edge82
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
ret void
._crit_edge86: ; preds = %122, %.preheader.._crit_edge86_crit_edge
%.pre-phi123 = phi i64 [ %.pre122, %.preheader.._crit_edge86_crit_edge ], [ %124, %122 ]
%110 = phi i32 [ %108, %.preheader.._crit_edge86_crit_edge ], [ %123, %122 ]
%.1.lcssa = phi i32 [ %.05388, %.preheader.._crit_edge86_crit_edge ], [ %.2, %122 ]
%indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
%111 = icmp slt i64 %indvars.iv.next116, %.pre-phi123
br i1 %111, label %.preheader, label %._crit_edge90, !llvm.loop !24
.lr.ph85: ; preds = %.preheader, %122
%indvars.iv112 = phi i64 [ %indvars.iv.next113, %122 ], [ 0, %.preheader ]
%.183 = phi i32 [ %.2, %122 ], [ %.05388, %.preheader ]
%112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv115) #5
%113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %indvars.iv112) #5
%114 = load i32, ptr %113, align 4, !tbaa !12
%115 = icmp eq i32 %114, 1
br i1 %115, label %116, label %122
116: ; preds = %.lr.ph85
%117 = load ptr, ptr %100, align 8, !tbaa !22
%118 = add nsw i32 %.183, 1
%119 = sext i32 %.183 to i64
%120 = getelementptr inbounds i32, ptr %117, i64 %119
%121 = trunc nuw nsw i64 %indvars.iv112 to i32
store i32 %121, ptr %120, align 4, !tbaa !12
br label %122
122: ; preds = %.lr.ph85, %116
%.2 = phi i32 [ %118, %116 ], [ %.183, %.lr.ph85 ]
%indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
%123 = load i32, ptr %0, align 8, !tbaa !5
%124 = sext i32 %123 to i64
%125 = icmp slt i64 %indvars.iv.next113, %124
br i1 %125, label %.lr.ph85, label %._crit_edge86, !llvm.loop !26
126: ; preds = %38, %29
%.pn = phi { ptr, i32 } [ %39, %38 ], [ %30, %29 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
resume { ptr, i32 } %.pn
}
; Function Attrs: nounwind
declare i32 @getpid() local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 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 #4 = { mustprogress 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 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS5Graph", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !10, i64 32}
!18 = !{!6, !10, i64 16}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!6, !10, i64 24}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14, !25}
!25 = !{!"llvm.loop.unswitch.partial.disable"}
!26 = distinct !{!26, !14}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass | bbf61bb5794482c2 | conradlee/network-community-benchmark | comm_algs/louvain/graph_binary.ll | ZN5GraphC2Eiiii | BSD-2-Clause |
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"
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiiiii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca %"class.std::vector", align 8
%16 = alloca %"class.std::allocator", align 1
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
store ptr %0, ptr %8, align 8, !tbaa !5
store i32 %1, ptr %9, align 4, !tbaa !9
store i32 %2, ptr %10, align 4, !tbaa !9
store i32 %3, ptr %11, align 4, !tbaa !9
store i32 %4, ptr %12, align 4, !tbaa !9
store i32 %5, ptr %13, align 4, !tbaa !9
store i32 %6, ptr %14, align 4, !tbaa !9
%32 = load ptr, ptr %8, align 8
%33 = call i64 @time(ptr noundef null) #5
%34 = trunc i64 %33 to i32
call void @srand(i32 noundef %34) #5
%35 = load i32, ptr %9, align 4, !tbaa !9
%36 = load i32, ptr %11, align 4, !tbaa !9
%37 = mul nsw i32 %35, %36
%38 = load i32, ptr %13, align 4, !tbaa !9
%39 = mul nsw i32 %37, %38
%40 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
store i32 %39, ptr %40, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
%41 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%42 = load i32, ptr %41, align 8, !tbaa !11
%43 = sext i32 %42 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %16)
to label %44 unwind label %51
44: ; preds = %7
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
store i32 0, ptr %19, align 4, !tbaa !9
br label %45
45: ; preds = %63, %44
%46 = load i32, ptr %19, align 4, !tbaa !9
%47 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%48 = load i32, ptr %47, align 8, !tbaa !11
%49 = icmp slt i32 %46, %48
br i1 %49, label %55, label %50
50: ; preds = %45
call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
br label %70
51: ; preds = %7
%52 = landingpad { ptr, i32 }
cleanup
%53 = extractvalue { ptr, i32 } %52, 0
store ptr %53, ptr %17, align 8
%54 = extractvalue { ptr, i32 } %52, 1
store i32 %54, ptr %18, align 4
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
br label %328
55: ; preds = %45
%56 = load i32, ptr %19, align 4, !tbaa !9
%57 = sext i32 %56 to i64
%58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %57) #5
%59 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%60 = load i32, ptr %59, align 8, !tbaa !11
%61 = sext i32 %60 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
store i32 0, ptr %20, align 4, !tbaa !9
invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %61, ptr noundef nonnull align 4 dereferenceable(4) %20)
to label %62 unwind label %66
62: ; preds = %55
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
br label %63
63: ; preds = %62
%64 = load i32, ptr %19, align 4, !tbaa !9
%65 = add nsw i32 %64, 1
store i32 %65, ptr %19, align 4, !tbaa !9
br label %45, !llvm.loop !13
66: ; preds = %55
%67 = landingpad { ptr, i32 }
cleanup
%68 = extractvalue { ptr, i32 } %67, 0
store ptr %68, ptr %17, align 8
%69 = extractvalue { ptr, i32 } %67, 1
store i32 %69, ptr %18, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
br label %328
70: ; preds = %50
%71 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
store i32 0, ptr %71, align 4, !tbaa !15
call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
store i32 0, ptr %21, align 4, !tbaa !9
br label %72
72: ; preds = %206, %70
%73 = load i32, ptr %21, align 4, !tbaa !9
%74 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%75 = load i32, ptr %74, align 8, !tbaa !11
%76 = icmp slt i32 %73, %75
br i1 %76, label %78, label %77
77: ; preds = %72
store i32 5, ptr %22, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
br label %209
78: ; preds = %72
call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
%79 = load i32, ptr %21, align 4, !tbaa !9
%80 = add nsw i32 %79, 1
store i32 %80, ptr %23, align 4, !tbaa !9
br label %81
81: ; preds = %202, %78
%82 = load i32, ptr %23, align 4, !tbaa !9
%83 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%84 = load i32, ptr %83, align 8, !tbaa !11
%85 = icmp slt i32 %82, %84
br i1 %85, label %87, label %86
86: ; preds = %81
store i32 8, ptr %22, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
br label %205
87: ; preds = %81
call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
%88 = call i32 @rand() #5
%89 = sitofp i32 %88 to double
%90 = fmul double %89, 1.000000e+00
%91 = fdiv double %90, 0x41DFFFFFFFC00000
store double %91, ptr %24, align 8, !tbaa !16
%92 = load i32, ptr %21, align 4, !tbaa !9
%93 = load i32, ptr %9, align 4, !tbaa !9
%94 = sdiv i32 %92, %93
%95 = load i32, ptr %23, align 4, !tbaa !9
%96 = load i32, ptr %9, align 4, !tbaa !9
%97 = sdiv i32 %95, %96
%98 = icmp eq i32 %94, %97
br i1 %98, label %99, label %126
99: ; preds = %87
%100 = load double, ptr %24, align 8, !tbaa !16
%101 = load i32, ptr %10, align 4, !tbaa !9
%102 = sitofp i32 %101 to double
%103 = fmul double %102, 1.000000e+00
%104 = load i32, ptr %9, align 4, !tbaa !9
%105 = sitofp i32 %104 to double
%106 = fsub double %105, 1.000000e+00
%107 = fdiv double %103, %106
%108 = fcmp ole double %100, %107
br i1 %108, label %109, label %125
109: ; preds = %99
%110 = load i32, ptr %23, align 4, !tbaa !9
%111 = sext i32 %110 to i64
%112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %111) #5
%113 = load i32, ptr %21, align 4, !tbaa !9
%114 = sext i32 %113 to i64
%115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #5
store i32 1, ptr %115, align 4, !tbaa !9
%116 = load i32, ptr %21, align 4, !tbaa !9
%117 = sext i32 %116 to i64
%118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %117) #5
%119 = load i32, ptr %23, align 4, !tbaa !9
%120 = sext i32 %119 to i64
%121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120) #5
store i32 1, ptr %121, align 4, !tbaa !9
%122 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
%123 = load i32, ptr %122, align 4, !tbaa !15
%124 = add nsw i32 %123, 1
store i32 %124, ptr %122, align 4, !tbaa !15
br label %125
125: ; preds = %109, %99
br label %201
126: ; preds = %87
%127 = load i32, ptr %21, align 4, !tbaa !9
%128 = load i32, ptr %9, align 4, !tbaa !9
%129 = load i32, ptr %11, align 4, !tbaa !9
%130 = mul nsw i32 %128, %129
%131 = sdiv i32 %127, %130
%132 = load i32, ptr %23, align 4, !tbaa !9
%133 = load i32, ptr %9, align 4, !tbaa !9
%134 = load i32, ptr %11, align 4, !tbaa !9
%135 = mul nsw i32 %133, %134
%136 = sdiv i32 %132, %135
%137 = icmp eq i32 %131, %136
br i1 %137, label %138, label %168
138: ; preds = %126
%139 = load double, ptr %24, align 8, !tbaa !16
%140 = load i32, ptr %12, align 4, !tbaa !9
%141 = sitofp i32 %140 to double
%142 = fmul double %141, 1.000000e+00
%143 = load i32, ptr %9, align 4, !tbaa !9
%144 = sitofp i32 %143 to double
%145 = load i32, ptr %11, align 4, !tbaa !9
%146 = sitofp i32 %145 to double
%147 = fsub double %146, 1.000000e+00
%148 = fmul double %144, %147
%149 = fdiv double %142, %148
%150 = fcmp ole double %139, %149
br i1 %150, label %151, label %167
151: ; preds = %138
%152 = load i32, ptr %23, align 4, !tbaa !9
%153 = sext i32 %152 to i64
%154 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %153) #5
%155 = load i32, ptr %21, align 4, !tbaa !9
%156 = sext i32 %155 to i64
%157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #5
store i32 1, ptr %157, align 4, !tbaa !9
%158 = load i32, ptr %21, align 4, !tbaa !9
%159 = sext i32 %158 to i64
%160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %159) #5
%161 = load i32, ptr %23, align 4, !tbaa !9
%162 = sext i32 %161 to i64
%163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #5
store i32 1, ptr %163, align 4, !tbaa !9
%164 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
%165 = load i32, ptr %164, align 4, !tbaa !15
%166 = add nsw i32 %165, 1
store i32 %166, ptr %164, align 4, !tbaa !15
br label %167
167: ; preds = %151, %138
br label %200
168: ; preds = %126
%169 = load double, ptr %24, align 8, !tbaa !16
%170 = load i32, ptr %14, align 4, !tbaa !9
%171 = sitofp i32 %170 to double
%172 = fmul double %171, 1.000000e+00
%173 = load i32, ptr %9, align 4, !tbaa !9
%174 = load i32, ptr %11, align 4, !tbaa !9
%175 = mul nsw i32 %173, %174
%176 = sitofp i32 %175 to double
%177 = load i32, ptr %13, align 4, !tbaa !9
%178 = sitofp i32 %177 to double
%179 = fsub double %178, 1.000000e+00
%180 = fmul double %176, %179
%181 = fdiv double %172, %180
%182 = fcmp ole double %169, %181
br i1 %182, label %183, label %199
183: ; preds = %168
%184 = load i32, ptr %23, align 4, !tbaa !9
%185 = sext i32 %184 to i64
%186 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %185) #5
%187 = load i32, ptr %21, align 4, !tbaa !9
%188 = sext i32 %187 to i64
%189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %188) #5
store i32 1, ptr %189, align 4, !tbaa !9
%190 = load i32, ptr %21, align 4, !tbaa !9
%191 = sext i32 %190 to i64
%192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %191) #5
%193 = load i32, ptr %23, align 4, !tbaa !9
%194 = sext i32 %193 to i64
%195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #5
store i32 1, ptr %195, align 4, !tbaa !9
%196 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
%197 = load i32, ptr %196, align 4, !tbaa !15
%198 = add nsw i32 %197, 1
store i32 %198, ptr %196, align 4, !tbaa !15
br label %199
199: ; preds = %183, %168
br label %200
200: ; preds = %199, %167
br label %201
201: ; preds = %200, %125
call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
br label %202
202: ; preds = %201
%203 = load i32, ptr %23, align 4, !tbaa !9
%204 = add nsw i32 %203, 1
store i32 %204, ptr %23, align 4, !tbaa !9
br label %81, !llvm.loop !18
205: ; preds = %86
br label %206
206: ; preds = %205
%207 = load i32, ptr %21, align 4, !tbaa !9
%208 = add nsw i32 %207, 1
store i32 %208, ptr %21, align 4, !tbaa !9
br label %72, !llvm.loop !19
209: ; preds = %77
%210 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
%211 = load i32, ptr %210, align 4, !tbaa !15
%212 = mul nsw i32 2, %211
%213 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 2
store i32 %212, ptr %213, align 8, !tbaa !20
%214 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 5
store ptr null, ptr %214, align 8, !tbaa !21
%215 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%216 = load i32, ptr %215, align 8, !tbaa !11
%217 = sext i32 %216 to i64
%218 = mul nsw i64 %217, 4
%219 = call noalias ptr @malloc(i64 noundef %218) #6
%220 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 3
store ptr %219, ptr %220, align 8, !tbaa !22
call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
store i32 0, ptr %25, align 4, !tbaa !9
br label %221
221: ; preds = %254, %209
%222 = load i32, ptr %25, align 4, !tbaa !9
%223 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%224 = load i32, ptr %223, align 8, !tbaa !11
%225 = icmp slt i32 %222, %224
br i1 %225, label %227, label %226
226: ; preds = %221
store i32 11, ptr %22, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
br label %257
227: ; preds = %221
call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
store i32 0, ptr %26, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
store i32 0, ptr %27, align 4, !tbaa !9
br label %228
228: ; preds = %244, %227
%229 = load i32, ptr %27, align 4, !tbaa !9
%230 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%231 = load i32, ptr %230, align 8, !tbaa !11
%232 = icmp slt i32 %229, %231
br i1 %232, label %234, label %233
233: ; preds = %228
store i32 14, ptr %22, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
br label %247
234: ; preds = %228
%235 = load i32, ptr %25, align 4, !tbaa !9
%236 = sext i32 %235 to i64
%237 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %236) #5
%238 = load i32, ptr %27, align 4, !tbaa !9
%239 = sext i32 %238 to i64
%240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239) #5
%241 = load i32, ptr %240, align 4, !tbaa !9
%242 = load i32, ptr %26, align 4, !tbaa !9
%243 = add nsw i32 %242, %241
store i32 %243, ptr %26, align 4, !tbaa !9
br label %244
244: ; preds = %234
%245 = load i32, ptr %27, align 4, !tbaa !9
%246 = add nsw i32 %245, 1
store i32 %246, ptr %27, align 4, !tbaa !9
br label %228, !llvm.loop !23
247: ; preds = %233
%248 = load i32, ptr %26, align 4, !tbaa !9
%249 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 3
%250 = load ptr, ptr %249, align 8, !tbaa !22
%251 = load i32, ptr %25, align 4, !tbaa !9
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds i32, ptr %250, i64 %252
store i32 %248, ptr %253, align 4, !tbaa !9
call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
br label %254
254: ; preds = %247
%255 = load i32, ptr %25, align 4, !tbaa !9
%256 = add nsw i32 %255, 1
store i32 %256, ptr %25, align 4, !tbaa !9
br label %221, !llvm.loop !24
257: ; preds = %226
call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
store i32 1, ptr %28, align 4, !tbaa !9
br label %258
258: ; preds = %279, %257
%259 = load i32, ptr %28, align 4, !tbaa !9
%260 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%261 = load i32, ptr %260, align 8, !tbaa !11
%262 = icmp slt i32 %259, %261
br i1 %262, label %264, label %263
263: ; preds = %258
store i32 17, ptr %22, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
br label %282
264: ; preds = %258
%265 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 3
%266 = load ptr, ptr %265, align 8, !tbaa !22
%267 = load i32, ptr %28, align 4, !tbaa !9
%268 = sub nsw i32 %267, 1
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds i32, ptr %266, i64 %269
%271 = load i32, ptr %270, align 4, !tbaa !9
%272 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 3
%273 = load ptr, ptr %272, align 8, !tbaa !22
%274 = load i32, ptr %28, align 4, !tbaa !9
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds i32, ptr %273, i64 %275
%277 = load i32, ptr %276, align 4, !tbaa !9
%278 = add nsw i32 %277, %271
store i32 %278, ptr %276, align 4, !tbaa !9
br label %279
279: ; preds = %264
%280 = load i32, ptr %28, align 4, !tbaa !9
%281 = add nsw i32 %280, 1
store i32 %281, ptr %28, align 4, !tbaa !9
br label %258, !llvm.loop !25
282: ; preds = %263
%283 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
%284 = load i32, ptr %283, align 4, !tbaa !15
%285 = sext i32 %284 to i64
%286 = mul nsw i64 %285, 8
%287 = call noalias ptr @malloc(i64 noundef %286) #6
%288 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 4
store ptr %287, ptr %288, align 8, !tbaa !26
call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
store i32 0, ptr %29, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
store i32 0, ptr %30, align 4, !tbaa !9
br label %289
289: ; preds = %324, %282
%290 = load i32, ptr %30, align 4, !tbaa !9
%291 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%292 = load i32, ptr %291, align 8, !tbaa !11
%293 = icmp slt i32 %290, %292
br i1 %293, label %295, label %294
294: ; preds = %289
store i32 20, ptr %22, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
br label %327
295: ; preds = %289
call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
store i32 0, ptr %31, align 4, !tbaa !9
br label %296
296: ; preds = %320, %295
%297 = load i32, ptr %31, align 4, !tbaa !9
%298 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
%299 = load i32, ptr %298, align 8, !tbaa !11
%300 = icmp slt i32 %297, %299
br i1 %300, label %302, label %301
301: ; preds = %296
store i32 23, ptr %22, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
br label %323
302: ; preds = %296
%303 = load i32, ptr %30, align 4, !tbaa !9
%304 = sext i32 %303 to i64
%305 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %304) #5
%306 = load i32, ptr %31, align 4, !tbaa !9
%307 = sext i32 %306 to i64
%308 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %305, i64 noundef %307) #5
%309 = load i32, ptr %308, align 4, !tbaa !9
%310 = icmp eq i32 %309, 1
br i1 %310, label %311, label %319
311: ; preds = %302
%312 = load i32, ptr %31, align 4, !tbaa !9
%313 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 4
%314 = load ptr, ptr %313, align 8, !tbaa !26
%315 = load i32, ptr %29, align 4, !tbaa !9
%316 = add nsw i32 %315, 1
store i32 %316, ptr %29, align 4, !tbaa !9
%317 = sext i32 %315 to i64
%318 = getelementptr inbounds i32, ptr %314, i64 %317
store i32 %312, ptr %318, align 4, !tbaa !9
br label %319
319: ; preds = %311, %302
br label %320
320: ; preds = %319
%321 = load i32, ptr %31, align 4, !tbaa !9
%322 = add nsw i32 %321, 1
store i32 %322, ptr %31, align 4, !tbaa !9
br label %296, !llvm.loop !27
323: ; preds = %301
br label %324
324: ; preds = %323
%325 = load i32, ptr %30, align 4, !tbaa !9
%326 = add nsw i32 %325, 1
store i32 %326, ptr %30, align 4, !tbaa !9
br label %289, !llvm.loop !28
327: ; preds = %294
call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
ret void
328: ; preds = %66, %51
call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
br label %329
329: ; preds = %328
%330 = load ptr, ptr %17, align 8
%331 = load i32, ptr %18, align 4
%332 = insertvalue { ptr, i32 } poison, ptr %330, 0
%333 = insertvalue { ptr, i32 } %332, i32 %331, 1
resume { ptr, i32 } %333
}
; Function Attrs: nounwind
declare void @srand(i32 noundef) #3
; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: nounwind
declare i32 @rand() #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 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 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !10, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!12, !10, i64 8}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !6, i64 16}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = !{!12, !6, i64 24}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
| 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"
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%STRUCT0 = type { i32, i32, i32, ptr, ptr, ptr }
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiiiii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
B0:
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca %"class.std::vector", align 8
%15 = alloca %"class.std::allocator", align 1
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca double, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
store ptr %0, ptr %7, align 8, !tbaa !5
store i32 %1, ptr %8, align 4, !tbaa !9
store i32 %2, ptr %9, align 4, !tbaa !9
store i32 %3, ptr %10, align 4, !tbaa !9
store i32 %4, ptr %11, align 4, !tbaa !9
store i32 %5, ptr %12, align 4, !tbaa !9
store i32 %6, ptr %13, align 4, !tbaa !9
%31 = load ptr, ptr %7, align 8
%32 = call i64 @time(ptr noundef null) #5
%33 = trunc i64 %32 to i32
call void @srand(i32 noundef %33) #5
%34 = load i32, ptr %8, align 4, !tbaa !9
%35 = load i32, ptr %10, align 4, !tbaa !9
%36 = mul nsw i32 %34, %35
%37 = load i32, ptr %12, align 4, !tbaa !9
%38 = mul nsw i32 %36, %37
%39 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
store i32 %38, ptr %39, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
%40 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%41 = load i32, ptr %40, align 8, !tbaa !11
%42 = sext i32 %41 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %42, ptr noundef nonnull align 1 dereferenceable(1) %15)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
store i32 0, ptr %18, align 4, !tbaa !9
br label %B2
B2:
%43 = load i32, ptr %18, align 4, !tbaa !9
%44 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%45 = load i32, ptr %44, align 8, !tbaa !11
%46 = icmp slt i32 %43, %45
br i1 %46, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
br label %B9
B4:
%47 = landingpad { ptr, i32 }
cleanup
%48 = extractvalue { ptr, i32 } %47, 0
store ptr %48, ptr %16, align 8
%49 = extractvalue { ptr, i32 } %47, 1
store i32 %49, ptr %17, align 4
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
br label %B59
B5:
%50 = load i32, ptr %18, align 4, !tbaa !9
%51 = sext i32 %50 to i64
%52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %51) #5
%53 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%54 = load i32, ptr %53, align 8, !tbaa !11
%55 = sext i32 %54 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
store i32 0, ptr %19, align 4, !tbaa !9
invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %55, ptr noundef nonnull align 4 dereferenceable(4) %19)
to label %B6 unwind label %B8
B6:
call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
br label %B7
B7:
%56 = load i32, ptr %18, align 4, !tbaa !9
%57 = add nsw i32 %56, 1
store i32 %57, ptr %18, align 4, !tbaa !9
br label %B2, !llvm.loop !13
B8:
%58 = landingpad { ptr, i32 }
cleanup
%59 = extractvalue { ptr, i32 } %58, 0
store ptr %59, ptr %16, align 8
%60 = extractvalue { ptr, i32 } %58, 1
store i32 %60, ptr %17, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
br label %B59
B9:
%61 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 1
store i32 0, ptr %61, align 4, !tbaa !15
call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
store i32 0, ptr %20, align 4, !tbaa !9
br label %B10
B10:
%62 = load i32, ptr %20, align 4, !tbaa !9
%63 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%64 = load i32, ptr %63, align 8, !tbaa !11
%65 = icmp slt i32 %62, %64
br i1 %65, label %B12, label %B11
B11:
store i32 5, ptr %21, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
br label %B31
B12:
call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
%66 = load i32, ptr %20, align 4, !tbaa !9
%67 = add nsw i32 %66, 1
store i32 %67, ptr %22, align 4, !tbaa !9
br label %B13
B13:
%68 = load i32, ptr %22, align 4, !tbaa !9
%69 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%70 = load i32, ptr %69, align 8, !tbaa !11
%71 = icmp slt i32 %68, %70
br i1 %71, label %B15, label %B14
B14:
store i32 8, ptr %21, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
br label %B29
B15:
call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
%72 = call i32 @rand() #5
%73 = sitofp i32 %72 to double
%74 = fmul double %73, 1.000000e+00
%75 = fdiv double %74, 0x41DFFFFFFFC00000
store double %75, ptr %23, align 8, !tbaa !16
%76 = load i32, ptr %20, align 4, !tbaa !9
%77 = load i32, ptr %8, align 4, !tbaa !9
%78 = sdiv i32 %76, %77
%79 = load i32, ptr %22, align 4, !tbaa !9
%80 = load i32, ptr %8, align 4, !tbaa !9
%81 = sdiv i32 %79, %80
%82 = icmp eq i32 %78, %81
br i1 %82, label %B16, label %B19
B16:
%83 = load double, ptr %23, align 8, !tbaa !16
%84 = load i32, ptr %9, align 4, !tbaa !9
%85 = sitofp i32 %84 to double
%86 = fmul double %85, 1.000000e+00
%87 = load i32, ptr %8, align 4, !tbaa !9
%88 = sitofp i32 %87 to double
%89 = fsub double %88, 1.000000e+00
%90 = fdiv double %86, %89
%91 = fcmp ole double %83, %90
br i1 %91, label %B17, label %B18
B17:
%92 = load i32, ptr %22, align 4, !tbaa !9
%93 = sext i32 %92 to i64
%94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %93) #5
%95 = load i32, ptr %20, align 4, !tbaa !9
%96 = sext i32 %95 to i64
%97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %96) #5
store i32 1, ptr %97, align 4, !tbaa !9
%98 = load i32, ptr %20, align 4, !tbaa !9
%99 = sext i32 %98 to i64
%100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %99) #5
%101 = load i32, ptr %22, align 4, !tbaa !9
%102 = sext i32 %101 to i64
%103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #5
store i32 1, ptr %103, align 4, !tbaa !9
%104 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 1
%105 = load i32, ptr %104, align 4, !tbaa !15
%106 = add nsw i32 %105, 1
store i32 %106, ptr %104, align 4, !tbaa !15
br label %B18
B18:
br label %B27
B19:
%107 = load i32, ptr %20, align 4, !tbaa !9
%108 = load i32, ptr %8, align 4, !tbaa !9
%109 = load i32, ptr %10, align 4, !tbaa !9
%110 = mul nsw i32 %108, %109
%111 = sdiv i32 %107, %110
%112 = load i32, ptr %22, align 4, !tbaa !9
%113 = load i32, ptr %8, align 4, !tbaa !9
%114 = load i32, ptr %10, align 4, !tbaa !9
%115 = mul nsw i32 %113, %114
%116 = sdiv i32 %112, %115
%117 = icmp eq i32 %111, %116
br i1 %117, label %B20, label %B23
B20:
%118 = load double, ptr %23, align 8, !tbaa !16
%119 = load i32, ptr %11, align 4, !tbaa !9
%120 = sitofp i32 %119 to double
%121 = fmul double %120, 1.000000e+00
%122 = load i32, ptr %8, align 4, !tbaa !9
%123 = sitofp i32 %122 to double
%124 = load i32, ptr %10, align 4, !tbaa !9
%125 = sitofp i32 %124 to double
%126 = fsub double %125, 1.000000e+00
%127 = fmul double %123, %126
%128 = fdiv double %121, %127
%129 = fcmp ole double %118, %128
br i1 %129, label %B21, label %B22
B21:
%130 = load i32, ptr %22, align 4, !tbaa !9
%131 = sext i32 %130 to i64
%132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %131) #5
%133 = load i32, ptr %20, align 4, !tbaa !9
%134 = sext i32 %133 to i64
%135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #5
store i32 1, ptr %135, align 4, !tbaa !9
%136 = load i32, ptr %20, align 4, !tbaa !9
%137 = sext i32 %136 to i64
%138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %137) #5
%139 = load i32, ptr %22, align 4, !tbaa !9
%140 = sext i32 %139 to i64
%141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #5
store i32 1, ptr %141, align 4, !tbaa !9
%142 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 1
%143 = load i32, ptr %142, align 4, !tbaa !15
%144 = add nsw i32 %143, 1
store i32 %144, ptr %142, align 4, !tbaa !15
br label %B22
B22:
br label %B26
B23:
%145 = load double, ptr %23, align 8, !tbaa !16
%146 = load i32, ptr %13, align 4, !tbaa !9
%147 = sitofp i32 %146 to double
%148 = fmul double %147, 1.000000e+00
%149 = load i32, ptr %8, align 4, !tbaa !9
%150 = load i32, ptr %10, align 4, !tbaa !9
%151 = mul nsw i32 %149, %150
%152 = sitofp i32 %151 to double
%153 = load i32, ptr %12, align 4, !tbaa !9
%154 = sitofp i32 %153 to double
%155 = fsub double %154, 1.000000e+00
%156 = fmul double %152, %155
%157 = fdiv double %148, %156
%158 = fcmp ole double %145, %157
br i1 %158, label %B24, label %B25
B24:
%159 = load i32, ptr %22, align 4, !tbaa !9
%160 = sext i32 %159 to i64
%161 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %160) #5
%162 = load i32, ptr %20, align 4, !tbaa !9
%163 = sext i32 %162 to i64
%164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %161, i64 noundef %163) #5
store i32 1, ptr %164, align 4, !tbaa !9
%165 = load i32, ptr %20, align 4, !tbaa !9
%166 = sext i32 %165 to i64
%167 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %166) #5
%168 = load i32, ptr %22, align 4, !tbaa !9
%169 = sext i32 %168 to i64
%170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #5
store i32 1, ptr %170, align 4, !tbaa !9
%171 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 1
%172 = load i32, ptr %171, align 4, !tbaa !15
%173 = add nsw i32 %172, 1
store i32 %173, ptr %171, align 4, !tbaa !15
br label %B25
B25:
br label %B26
B26:
br label %B27
B27:
call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
br label %B28
B28:
%174 = load i32, ptr %22, align 4, !tbaa !9
%175 = add nsw i32 %174, 1
store i32 %175, ptr %22, align 4, !tbaa !9
br label %B13, !llvm.loop !18
B29:
br label %B30
B30:
%176 = load i32, ptr %20, align 4, !tbaa !9
%177 = add nsw i32 %176, 1
store i32 %177, ptr %20, align 4, !tbaa !9
br label %B10, !llvm.loop !19
B31:
%178 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 1
%179 = load i32, ptr %178, align 4, !tbaa !15
%180 = mul nsw i32 2, %179
%181 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 2
store i32 %180, ptr %181, align 8, !tbaa !20
%182 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 5
store ptr null, ptr %182, align 8, !tbaa !21
%183 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%184 = load i32, ptr %183, align 8, !tbaa !11
%185 = sext i32 %184 to i64
%186 = mul nsw i64 %185, 4
%187 = call noalias ptr @malloc(i64 noundef %186) #6
%188 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 3
store ptr %187, ptr %188, align 8, !tbaa !22
call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
store i32 0, ptr %24, align 4, !tbaa !9
br label %B32
B32:
%189 = load i32, ptr %24, align 4, !tbaa !9
%190 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%191 = load i32, ptr %190, align 8, !tbaa !11
%192 = icmp slt i32 %189, %191
br i1 %192, label %B34, label %B33
B33:
store i32 11, ptr %21, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
br label %B41
B34:
call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
store i32 0, ptr %25, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
store i32 0, ptr %26, align 4, !tbaa !9
br label %B35
B35:
%193 = load i32, ptr %26, align 4, !tbaa !9
%194 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%195 = load i32, ptr %194, align 8, !tbaa !11
%196 = icmp slt i32 %193, %195
br i1 %196, label %B37, label %B36
B36:
store i32 14, ptr %21, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
br label %B39
B37:
%197 = load i32, ptr %24, align 4, !tbaa !9
%198 = sext i32 %197 to i64
%199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %198) #5
%200 = load i32, ptr %26, align 4, !tbaa !9
%201 = sext i32 %200 to i64
%202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %201) #5
%203 = load i32, ptr %202, align 4, !tbaa !9
%204 = load i32, ptr %25, align 4, !tbaa !9
%205 = add nsw i32 %204, %203
store i32 %205, ptr %25, align 4, !tbaa !9
br label %B38
B38:
%206 = load i32, ptr %26, align 4, !tbaa !9
%207 = add nsw i32 %206, 1
store i32 %207, ptr %26, align 4, !tbaa !9
br label %B35, !llvm.loop !23
B39:
%208 = load i32, ptr %25, align 4, !tbaa !9
%209 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 3
%210 = load ptr, ptr %209, align 8, !tbaa !22
%211 = load i32, ptr %24, align 4, !tbaa !9
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds i32, ptr %210, i64 %212
store i32 %208, ptr %213, align 4, !tbaa !9
call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
br label %B40
B40:
%214 = load i32, ptr %24, align 4, !tbaa !9
%215 = add nsw i32 %214, 1
store i32 %215, ptr %24, align 4, !tbaa !9
br label %B32, !llvm.loop !24
B41:
call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
store i32 1, ptr %27, align 4, !tbaa !9
br label %B42
B42:
%216 = load i32, ptr %27, align 4, !tbaa !9
%217 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%218 = load i32, ptr %217, align 8, !tbaa !11
%219 = icmp slt i32 %216, %218
br i1 %219, label %B44, label %B43
B43:
store i32 17, ptr %21, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
br label %B46
B44:
%220 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 3
%221 = load ptr, ptr %220, align 8, !tbaa !22
%222 = load i32, ptr %27, align 4, !tbaa !9
%223 = sub nsw i32 %222, 1
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i32, ptr %221, i64 %224
%226 = load i32, ptr %225, align 4, !tbaa !9
%227 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 3
%228 = load ptr, ptr %227, align 8, !tbaa !22
%229 = load i32, ptr %27, align 4, !tbaa !9
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i32, ptr %228, i64 %230
%232 = load i32, ptr %231, align 4, !tbaa !9
%233 = add nsw i32 %232, %226
store i32 %233, ptr %231, align 4, !tbaa !9
br label %B45
B45:
%234 = load i32, ptr %27, align 4, !tbaa !9
%235 = add nsw i32 %234, 1
store i32 %235, ptr %27, align 4, !tbaa !9
br label %B42, !llvm.loop !25
B46:
%236 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 1
%237 = load i32, ptr %236, align 4, !tbaa !15
%238 = sext i32 %237 to i64
%239 = mul nsw i64 %238, 8
%240 = call noalias ptr @malloc(i64 noundef %239) #6
%241 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 4
store ptr %240, ptr %241, align 8, !tbaa !26
call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
store i32 0, ptr %28, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
store i32 0, ptr %29, align 4, !tbaa !9
br label %B47
B47:
%242 = load i32, ptr %29, align 4, !tbaa !9
%243 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%244 = load i32, ptr %243, align 8, !tbaa !11
%245 = icmp slt i32 %242, %244
br i1 %245, label %B49, label %B48
B48:
store i32 20, ptr %21, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
br label %B58
B49:
call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
store i32 0, ptr %30, align 4, !tbaa !9
br label %B50
B50:
%246 = load i32, ptr %30, align 4, !tbaa !9
%247 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 0
%248 = load i32, ptr %247, align 8, !tbaa !11
%249 = icmp slt i32 %246, %248
br i1 %249, label %B52, label %B51
B51:
store i32 23, ptr %21, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
br label %B56
B52:
%250 = load i32, ptr %29, align 4, !tbaa !9
%251 = sext i32 %250 to i64
%252 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %251) #5
%253 = load i32, ptr %30, align 4, !tbaa !9
%254 = sext i32 %253 to i64
%255 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %252, i64 noundef %254) #5
%256 = load i32, ptr %255, align 4, !tbaa !9
%257 = icmp eq i32 %256, 1
br i1 %257, label %B53, label %B54
B53:
%258 = load i32, ptr %30, align 4, !tbaa !9
%259 = getelementptr inbounds %STRUCT0, ptr %31, i32 0, i32 4
%260 = load ptr, ptr %259, align 8, !tbaa !26
%261 = load i32, ptr %28, align 4, !tbaa !9
%262 = add nsw i32 %261, 1
store i32 %262, ptr %28, align 4, !tbaa !9
%263 = sext i32 %261 to i64
%264 = getelementptr inbounds i32, ptr %260, i64 %263
store i32 %258, ptr %264, align 4, !tbaa !9
br label %B54
B54:
br label %B55
B55:
%265 = load i32, ptr %30, align 4, !tbaa !9
%266 = add nsw i32 %265, 1
store i32 %266, ptr %30, align 4, !tbaa !9
br label %B50, !llvm.loop !27
B56:
br label %B57
B57:
%267 = load i32, ptr %29, align 4, !tbaa !9
%268 = add nsw i32 %267, 1
store i32 %268, ptr %29, align 4, !tbaa !9
br label %B47, !llvm.loop !28
B58:
call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
ret void
B59:
call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
br label %B60
B60:
%269 = load ptr, ptr %16, align 8
%270 = load i32, ptr %17, align 4
%271 = insertvalue { ptr, i32 } poison, ptr %269, 0
%272 = insertvalue { ptr, i32 } %271, i32 %270, 1
resume { ptr, i32 } %272
}
; Function Attrs: nounwind
declare void @srand(i32 noundef) #3
; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2
; Function Attrs: nounwind
declare i32 @rand() #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 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 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !10, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!12, !10, i64 8}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !6, i64 16}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = !{!12, !6, i64 24}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14} | 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"
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiiiii(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
%8 = alloca %"class.std::vector", align 8
%9 = alloca %"class.std::allocator", align 1
%10 = alloca i32, align 4
%11 = tail call i64 @time(ptr noundef null) #5
%12 = trunc i64 %11 to i32
tail call void @srand(i32 noundef %12) #5
%13 = mul nsw i32 %3, %1
%14 = mul nsw i32 %13, %5
store i32 %14, ptr %0, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
%15 = sext i32 %14 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %15, ptr noundef nonnull align 1 dereferenceable(1) %9)
to label %16 unwind label %39
16: ; preds = %7
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
%17 = load i32, ptr %0, align 8, !tbaa !5
%18 = icmp sgt i32 %17, 0
br i1 %18, label %.lr.ph, label %._crit_edge.thread
._crit_edge.thread: ; preds = %16
%19 = getelementptr inbounds i8, ptr %0, i64 4
store i32 0, ptr %19, align 4, !tbaa !11
br label %._crit_edge.._crit_edge89_crit_edge
._crit_edge: ; preds = %44
%20 = getelementptr inbounds i8, ptr %0, i64 4
store i32 0, ptr %20, align 4, !tbaa !11
%21 = icmp sgt i32 %45, 0
br i1 %21, label %.lr.ph88, label %._crit_edge.._crit_edge89_crit_edge
._crit_edge.._crit_edge89_crit_edge: ; preds = %._crit_edge.thread, %._crit_edge
%22 = phi ptr [ %19, %._crit_edge.thread ], [ %20, %._crit_edge ]
%23 = phi i32 [ %17, %._crit_edge.thread ], [ %45, %._crit_edge ]
%.pre136 = sext i32 %23 to i64
br label %._crit_edge89
.lr.ph88: ; preds = %._crit_edge
%24 = sitofp i32 %6 to double
%25 = sitofp i32 %13 to double
%26 = sitofp i32 %5 to double
%27 = fadd double %26, -1.000000e+00
%28 = fmul double %27, %25
%29 = fdiv double %24, %28
%30 = sitofp i32 %4 to double
%31 = sitofp i32 %1 to double
%32 = sitofp i32 %3 to double
%33 = fadd double %32, -1.000000e+00
%34 = fmul double %33, %31
%35 = fdiv double %30, %34
%36 = sitofp i32 %2 to double
%37 = fadd double %31, -1.000000e+00
%38 = fdiv double %36, %37
br label %62
39: ; preds = %7
%40 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
br label %142
.lr.ph: ; preds = %16, %44
%indvars.iv = phi i64 [ %indvars.iv.next, %44 ], [ 0, %16 ]
%41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #5
%42 = load i32, ptr %0, align 8, !tbaa !5
%43 = sext i32 %42 to i64
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
store i32 0, ptr %10, align 4, !tbaa !12
invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43, ptr noundef nonnull align 4 dereferenceable(4) %10)
to label %44 unwind label %48
44: ; preds = %.lr.ph
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%45 = load i32, ptr %0, align 8, !tbaa !5
%46 = sext i32 %45 to i64
%47 = icmp slt i64 %indvars.iv.next, %46
br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !13
48: ; preds = %.lr.ph
%49 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
br label %142
.loopexit.loopexit: ; preds = %91
%.pre135 = sext i32 %92 to i64
br label %.loopexit
.loopexit: ; preds = %.loopexit.loopexit, %62
%.pre-phi = phi i64 [ %.pre135, %.loopexit.loopexit ], [ %64, %62 ]
%50 = phi i32 [ %92, %.loopexit.loopexit ], [ %63, %62 ]
%51 = icmp slt i64 %indvars.iv.next117, %.pre-phi
%indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
br i1 %51, label %62, label %._crit_edge89.loopexit, !llvm.loop !15
._crit_edge89.loopexit: ; preds = %.loopexit
%.pre = load i32, ptr %20, align 4, !tbaa !11
%52 = shl nsw i32 %.pre, 1
br label %._crit_edge89
._crit_edge89: ; preds = %._crit_edge.._crit_edge89_crit_edge, %._crit_edge89.loopexit
%53 = phi ptr [ %22, %._crit_edge.._crit_edge89_crit_edge ], [ %20, %._crit_edge89.loopexit ]
%.pre-phi137 = phi i64 [ %.pre136, %._crit_edge.._crit_edge89_crit_edge ], [ %.pre-phi, %._crit_edge89.loopexit ]
%54 = phi i32 [ 0, %._crit_edge.._crit_edge89_crit_edge ], [ %52, %._crit_edge89.loopexit ]
%55 = phi i32 [ %23, %._crit_edge.._crit_edge89_crit_edge ], [ %50, %._crit_edge89.loopexit ]
%56 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %54, ptr %56, align 8, !tbaa !16
%57 = getelementptr inbounds i8, ptr %0, i64 32
store ptr null, ptr %57, align 8, !tbaa !17
%58 = shl nsw i64 %.pre-phi137, 2
%59 = call noalias ptr @malloc(i64 noundef %58) #6
%60 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %59, ptr %60, align 8, !tbaa !18
%61 = icmp sgt i32 %55, 0
br i1 %61, label %.preheader81, label %._crit_edge98
62: ; preds = %.lr.ph88, %.loopexit
%63 = phi i32 [ %45, %.lr.ph88 ], [ %50, %.loopexit ]
%indvars.iv116 = phi i64 [ 0, %.lr.ph88 ], [ %indvars.iv.next117, %.loopexit ]
%indvars.iv111 = phi i64 [ 1, %.lr.ph88 ], [ %indvars.iv.next112, %.loopexit ]
%indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
%64 = sext i32 %63 to i64
%65 = icmp slt i64 %indvars.iv.next117, %64
br i1 %65, label %.lr.ph85, label %.loopexit
.lr.ph85: ; preds = %62
%66 = trunc nuw nsw i64 %indvars.iv116 to i32
br label %67
67: ; preds = %.lr.ph85, %91
%indvars.iv113 = phi i64 [ %indvars.iv111, %.lr.ph85 ], [ %indvars.iv.next114, %91 ]
%68 = call i32 @rand() #5
%69 = sitofp i32 %68 to double
%70 = fdiv double %69, 0x41DFFFFFFFC00000
%71 = sdiv i32 %66, %1
%72 = trunc nuw nsw i64 %indvars.iv113 to i32
%73 = sdiv i32 %72, %1
%74 = icmp eq i32 %71, %73
br i1 %74, label %75, label %77
75: ; preds = %67
%76 = fcmp ugt double %70, %38
br i1 %76, label %91, label %.sink.split
77: ; preds = %67
%78 = sdiv i32 %66, %13
%79 = sdiv i32 %72, %13
%80 = icmp eq i32 %78, %79
br i1 %80, label %81, label %83
81: ; preds = %77
%82 = fcmp ugt double %70, %35
br i1 %82, label %91, label %.sink.split
83: ; preds = %77
%84 = fcmp ugt double %70, %29
br i1 %84, label %91, label %.sink.split
.sink.split: ; preds = %83, %81, %75
%85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv113) #5
%86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %indvars.iv116) #5
store i32 1, ptr %86, align 4, !tbaa !12
%87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv116) #5
%88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %indvars.iv113) #5
store i32 1, ptr %88, align 4, !tbaa !12
%89 = load i32, ptr %20, align 4, !tbaa !11
%90 = add nsw i32 %89, 1
store i32 %90, ptr %20, align 4, !tbaa !11
br label %91
91: ; preds = %.sink.split, %81, %83, %75
%indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
%92 = load i32, ptr %0, align 8, !tbaa !5
%93 = trunc nuw i64 %indvars.iv.next114 to i32
%94 = icmp sgt i32 %92, %93
br i1 %94, label %67, label %.loopexit.loopexit, !llvm.loop !19
.preheader81: ; preds = %._crit_edge89, %._crit_edge93
%95 = phi ptr [ %99, %._crit_edge93 ], [ %59, %._crit_edge89 ]
%96 = phi i32 [ %101, %._crit_edge93 ], [ %55, %._crit_edge89 ]
%indvars.iv122 = phi i64 [ %indvars.iv.next123, %._crit_edge93 ], [ 0, %._crit_edge89 ]
%97 = icmp sgt i32 %96, 0
br i1 %97, label %.lr.ph92, label %._crit_edge93
.preheader80: ; preds = %._crit_edge93
%98 = icmp sgt i32 %101, 1
br i1 %98, label %.lr.ph97.preheader, label %._crit_edge98
.lr.ph97.preheader: ; preds = %.preheader80
%load_initial = load i32, ptr %99, align 4
br label %.lr.ph97
._crit_edge93.loopexit: ; preds = %.lr.ph92
%.pre134 = load ptr, ptr %60, align 8, !tbaa !18
br label %._crit_edge93
._crit_edge93: ; preds = %._crit_edge93.loopexit, %.preheader81
%99 = phi ptr [ %95, %.preheader81 ], [ %.pre134, %._crit_edge93.loopexit ]
%.072.lcssa = phi i32 [ 0, %.preheader81 ], [ %107, %._crit_edge93.loopexit ]
%100 = getelementptr inbounds i32, ptr %99, i64 %indvars.iv122
store i32 %.072.lcssa, ptr %100, align 4, !tbaa !12
%indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
%101 = load i32, ptr %0, align 8, !tbaa !5
%102 = sext i32 %101 to i64
%103 = icmp slt i64 %indvars.iv.next123, %102
br i1 %103, label %.preheader81, label %.preheader80, !llvm.loop !20
.lr.ph92: ; preds = %.preheader81, %.lr.ph92
%indvars.iv119 = phi i64 [ %indvars.iv.next120, %.lr.ph92 ], [ 0, %.preheader81 ]
%.07290 = phi i32 [ %107, %.lr.ph92 ], [ 0, %.preheader81 ]
%104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv122) #5
%105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %indvars.iv119) #5
%106 = load i32, ptr %105, align 4, !tbaa !12
%107 = add nsw i32 %106, %.07290
%indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
%108 = load i32, ptr %0, align 8, !tbaa !5
%109 = sext i32 %108 to i64
%110 = icmp slt i64 %indvars.iv.next120, %109
br i1 %110, label %.lr.ph92, label %._crit_edge93.loopexit, !llvm.loop !21
._crit_edge98: ; preds = %.lr.ph97, %._crit_edge89, %.preheader80
%111 = phi i32 [ %101, %.preheader80 ], [ %55, %._crit_edge89 ], [ %121, %.lr.ph97 ]
%112 = load i32, ptr %53, align 4, !tbaa !11
%113 = sext i32 %112 to i64
%114 = shl nsw i64 %113, 3
%115 = call noalias ptr @malloc(i64 noundef %114) #6
%116 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %115, ptr %116, align 8, !tbaa !22
%117 = icmp sgt i32 %111, 0
br i1 %117, label %.preheader, label %._crit_edge106
.lr.ph97: ; preds = %.lr.ph97.preheader, %.lr.ph97
%store_forwarded = phi i32 [ %load_initial, %.lr.ph97.preheader ], [ %120, %.lr.ph97 ]
%indvars.iv125 = phi i64 [ 1, %.lr.ph97.preheader ], [ %indvars.iv.next126, %.lr.ph97 ]
%118 = getelementptr i32, ptr %99, i64 %indvars.iv125
%119 = load i32, ptr %118, align 4, !tbaa !12
%120 = add nsw i32 %119, %store_forwarded
store i32 %120, ptr %118, align 4, !tbaa !12
%indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
%121 = load i32, ptr %0, align 8, !tbaa !5
%122 = sext i32 %121 to i64
%123 = icmp slt i64 %indvars.iv.next126, %122
br i1 %123, label %.lr.ph97, label %._crit_edge98, !llvm.loop !23
.preheader: ; preds = %._crit_edge98, %._crit_edge102
%124 = phi i32 [ %126, %._crit_edge102 ], [ %111, %._crit_edge98 ]
%indvars.iv131 = phi i64 [ %indvars.iv.next132, %._crit_edge102 ], [ 0, %._crit_edge98 ]
%.069104 = phi i32 [ %.1.lcssa, %._crit_edge102 ], [ 0, %._crit_edge98 ]
%125 = icmp sgt i32 %124, 0
br i1 %125, label %.lr.ph101, label %.preheader.._crit_edge102_crit_edge
.preheader.._crit_edge102_crit_edge: ; preds = %.preheader
%.pre138 = sext i32 %124 to i64
br label %._crit_edge102
._crit_edge106: ; preds = %._crit_edge102, %._crit_edge98
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
ret void
._crit_edge102: ; preds = %138, %.preheader.._crit_edge102_crit_edge
%.pre-phi139 = phi i64 [ %.pre138, %.preheader.._crit_edge102_crit_edge ], [ %140, %138 ]
%126 = phi i32 [ %124, %.preheader.._crit_edge102_crit_edge ], [ %139, %138 ]
%.1.lcssa = phi i32 [ %.069104, %.preheader.._crit_edge102_crit_edge ], [ %.2, %138 ]
%indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
%127 = icmp slt i64 %indvars.iv.next132, %.pre-phi139
br i1 %127, label %.preheader, label %._crit_edge106, !llvm.loop !24
.lr.ph101: ; preds = %.preheader, %138
%indvars.iv128 = phi i64 [ %indvars.iv.next129, %138 ], [ 0, %.preheader ]
%.199 = phi i32 [ %.2, %138 ], [ %.069104, %.preheader ]
%128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv131) #5
%129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %indvars.iv128) #5
%130 = load i32, ptr %129, align 4, !tbaa !12
%131 = icmp eq i32 %130, 1
br i1 %131, label %132, label %138
132: ; preds = %.lr.ph101
%133 = load ptr, ptr %116, align 8, !tbaa !22
%134 = add nsw i32 %.199, 1
%135 = sext i32 %.199 to i64
%136 = getelementptr inbounds i32, ptr %133, i64 %135
%137 = trunc nuw nsw i64 %indvars.iv128 to i32
store i32 %137, ptr %136, align 4, !tbaa !12
br label %138
138: ; preds = %.lr.ph101, %132
%.2 = phi i32 [ %134, %132 ], [ %.199, %.lr.ph101 ]
%indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
%139 = load i32, ptr %0, align 8, !tbaa !5
%140 = sext i32 %139 to i64
%141 = icmp slt i64 %indvars.iv.next129, %140
br i1 %141, label %.lr.ph101, label %._crit_edge102, !llvm.loop !26
142: ; preds = %48, %39
%.pn = phi { ptr, i32 } [ %49, %48 ], [ %40, %39 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
resume { ptr, i32 } %.pn
}
; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3
; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2
; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 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 = { nounwind allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS5Graph", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !10, i64 32}
!18 = !{!6, !10, i64 16}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!6, !10, i64 24}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14, !25}
!25 = !{!"llvm.loop.unswitch.partial.disable"}
!26 = distinct !{!26, !14}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass | fd1a30fbdd98ce9f | conradlee/network-community-benchmark | comm_algs/louvain/graph_binary.ll | ZN5GraphC2Eiiiiii | BSD-2-Clause |
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"
@filename = external dso_local global ptr, align 8
@type = external dso_local global i32, align 4
@precision = external dso_local global double, align 8
@timet = external dso_local global double, align 8
@display_level = external dso_local global i32, align 4
@k1 = external dso_local global i32, align 4
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !9
%6 = load i32, ptr %3, align 4, !tbaa !5
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load ptr, ptr %4, align 8, !tbaa !9
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %11, ptr noundef @.str.8)
br label %12
12: ; preds = %8, %2
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
store i32 1, ptr %5, align 4, !tbaa !5
br label %13
13: ; preds = %98, %12
%14 = load i32, ptr %5, align 4, !tbaa !5
%15 = load i32, ptr %3, align 4, !tbaa !5
%16 = icmp slt i32 %14, %15
br i1 %16, label %18, label %17
17: ; preds = %13
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
br label %101
18: ; preds = %13
%19 = load ptr, ptr %4, align 8, !tbaa !9
%20 = load i32, ptr %5, align 4, !tbaa !5
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8, !tbaa !9
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1, !tbaa !11
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 45
br i1 %27, label %28, label %83
28: ; preds = %18
%29 = load ptr, ptr %4, align 8, !tbaa !9
%30 = load i32, ptr %5, align 4, !tbaa !5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8, !tbaa !9
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1, !tbaa !11
%36 = sext i8 %35 to i32
switch i32 %36, label %78 [
i32 119, label %37
i32 113, label %38
i32 116, label %48
i32 108, label %58
i32 107, label %68
]
37: ; preds = %28
store i32 0, ptr @type, align 4, !tbaa !5
br label %82
38: ; preds = %28
%39 = load ptr, ptr %4, align 8, !tbaa !9
%40 = load i32, ptr %5, align 4, !tbaa !5
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %39, i64 %42
%44 = load ptr, ptr %43, align 8, !tbaa !9
%45 = call double @atof(ptr noundef %44) #4
store double %45, ptr @precision, align 8, !tbaa !12
%46 = load i32, ptr %5, align 4, !tbaa !5
%47 = add nsw i32 %46, 1
store i32 %47, ptr %5, align 4, !tbaa !5
br label %82
48: ; preds = %28
%49 = load ptr, ptr %4, align 8, !tbaa !9
%50 = load i32, ptr %5, align 4, !tbaa !5
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %49, i64 %52
%54 = load ptr, ptr %53, align 8, !tbaa !9
%55 = call double @atof(ptr noundef %54) #4
store double %55, ptr @timet, align 8, !tbaa !12
%56 = load i32, ptr %5, align 4, !tbaa !5
%57 = add nsw i32 %56, 1
store i32 %57, ptr %5, align 4, !tbaa !5
br label %82
58: ; preds = %28
%59 = load ptr, ptr %4, align 8, !tbaa !9
%60 = load i32, ptr %5, align 4, !tbaa !5
%61 = add nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %59, i64 %62
%64 = load ptr, ptr %63, align 8, !tbaa !9
%65 = call i32 @atoi(ptr noundef %64) #4
store i32 %65, ptr @display_level, align 4, !tbaa !5
%66 = load i32, ptr %5, align 4, !tbaa !5
%67 = add nsw i32 %66, 1
store i32 %67, ptr %5, align 4, !tbaa !5
br label %82
68: ; preds = %28
%69 = load ptr, ptr %4, align 8, !tbaa !9
%70 = load i32, ptr %5, align 4, !tbaa !5
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds ptr, ptr %69, i64 %72
%74 = load ptr, ptr %73, align 8, !tbaa !9
%75 = call i32 @atoi(ptr noundef %74) #4
store i32 %75, ptr @k1, align 4, !tbaa !5
%76 = load i32, ptr %5, align 4, !tbaa !5
%77 = add nsw i32 %76, 1
store i32 %77, ptr %5, align 4, !tbaa !5
br label %82
78: ; preds = %28
%79 = load ptr, ptr %4, align 8, !tbaa !9
%80 = getelementptr inbounds ptr, ptr %79, i64 0
%81 = load ptr, ptr %80, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %81, ptr noundef @.str.9)
br label %82
82: ; preds = %78, %68, %58, %48, %38, %37
br label %97
83: ; preds = %18
%84 = load ptr, ptr @filename, align 8, !tbaa !9
%85 = icmp eq ptr %84, null
br i1 %85, label %86, label %92
86: ; preds = %83
%87 = load ptr, ptr %4, align 8, !tbaa !9
%88 = load i32, ptr %5, align 4, !tbaa !5
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds ptr, ptr %87, i64 %89
%91 = load ptr, ptr %90, align 8, !tbaa !9
store ptr %91, ptr @filename, align 8, !tbaa !9
br label %96
92: ; preds = %83
%93 = load ptr, ptr %4, align 8, !tbaa !9
%94 = getelementptr inbounds ptr, ptr %93, i64 0
%95 = load ptr, ptr %94, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %95, ptr noundef @.str.10)
br label %96
96: ; preds = %92, %86
br label %97
97: ; preds = %96, %82
br label %98
98: ; preds = %97
%99 = load i32, ptr %5, align 4, !tbaa !5
%100 = add nsw i32 %99, 1
store i32 %100, ptr %5, align 4, !tbaa !5
br label %13, !llvm.loop !14
101: ; preds = %17
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #2
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { nounwind willreturn memory(read) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| 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"
@filename = external dso_local global ptr, align 8
@type = external dso_local global i32, align 4
@precision = external dso_local global double, align 8
@timet = external dso_local global double, align 8
@display_level = external dso_local global i32, align 4
@k1 = external dso_local global i32, align 4
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr noundef %1) #0 {
B0:
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4, !tbaa !5
store ptr %1, ptr %3, align 8, !tbaa !9
%5 = load i32, ptr %2, align 4, !tbaa !5
%6 = icmp slt i32 %5, 2
br i1 %6, label %B1, label %B2
B1:
%7 = load ptr, ptr %3, align 8, !tbaa !9
%8 = getelementptr inbounds ptr, ptr %7, i64 0
%9 = load ptr, ptr %8, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %9, ptr noundef @.str.8)
br label %B2
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
store i32 1, ptr %4, align 4, !tbaa !5
br label %B3
B3:
%10 = load i32, ptr %4, align 4, !tbaa !5
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = icmp slt i32 %10, %11
br i1 %12, label %B5, label %B4
B4:
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
br label %B20
B5:
%13 = load ptr, ptr %3, align 8, !tbaa !9
%14 = load i32, ptr %4, align 4, !tbaa !5
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8, !tbaa !9
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1, !tbaa !11
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 45
br i1 %21, label %B6, label %B14
B6:
%22 = load ptr, ptr %3, align 8, !tbaa !9
%23 = load i32, ptr %4, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8, !tbaa !9
%27 = getelementptr inbounds i8, ptr %26, i64 1
%28 = load i8, ptr %27, align 1, !tbaa !11
%29 = sext i8 %28 to i32
switch i32 %29, label %B12 [
i32 119, label %B7
i32 113, label %B8
i32 116, label %B9
i32 108, label %B10
i32 107, label %B11
]
B7:
store i32 0, ptr @type, align 4, !tbaa !5
br label %B13
B8:
%30 = load ptr, ptr %3, align 8, !tbaa !9
%31 = load i32, ptr %4, align 4, !tbaa !5
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %30, i64 %33
%35 = load ptr, ptr %34, align 8, !tbaa !9
%36 = call double @atof(ptr noundef %35) #4
store double %36, ptr @precision, align 8, !tbaa !12
%37 = load i32, ptr %4, align 4, !tbaa !5
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4, !tbaa !5
br label %B13
B9:
%39 = load ptr, ptr %3, align 8, !tbaa !9
%40 = load i32, ptr %4, align 4, !tbaa !5
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %39, i64 %42
%44 = load ptr, ptr %43, align 8, !tbaa !9
%45 = call double @atof(ptr noundef %44) #4
store double %45, ptr @timet, align 8, !tbaa !12
%46 = load i32, ptr %4, align 4, !tbaa !5
%47 = add nsw i32 %46, 1
store i32 %47, ptr %4, align 4, !tbaa !5
br label %B13
B10:
%48 = load ptr, ptr %3, align 8, !tbaa !9
%49 = load i32, ptr %4, align 4, !tbaa !5
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %48, i64 %51
%53 = load ptr, ptr %52, align 8, !tbaa !9
%54 = call i32 @atoi(ptr noundef %53) #4
store i32 %54, ptr @display_level, align 4, !tbaa !5
%55 = load i32, ptr %4, align 4, !tbaa !5
%56 = add nsw i32 %55, 1
store i32 %56, ptr %4, align 4, !tbaa !5
br label %B13
B11:
%57 = load ptr, ptr %3, align 8, !tbaa !9
%58 = load i32, ptr %4, align 4, !tbaa !5
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %57, i64 %60
%62 = load ptr, ptr %61, align 8, !tbaa !9
%63 = call i32 @atoi(ptr noundef %62) #4
store i32 %63, ptr @k1, align 4, !tbaa !5
%64 = load i32, ptr %4, align 4, !tbaa !5
%65 = add nsw i32 %64, 1
store i32 %65, ptr %4, align 4, !tbaa !5
br label %B13
B12:
%66 = load ptr, ptr %3, align 8, !tbaa !9
%67 = getelementptr inbounds ptr, ptr %66, i64 0
%68 = load ptr, ptr %67, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %68, ptr noundef @.str.9)
br label %B13
B13:
br label %B18
B14:
%69 = load ptr, ptr @filename, align 8, !tbaa !9
%70 = icmp eq ptr %69, null
br i1 %70, label %B15, label %B16
B15:
%71 = load ptr, ptr %3, align 8, !tbaa !9
%72 = load i32, ptr %4, align 4, !tbaa !5
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds ptr, ptr %71, i64 %73
%75 = load ptr, ptr %74, align 8, !tbaa !9
store ptr %75, ptr @filename, align 8, !tbaa !9
br label %B17
B16:
%76 = load ptr, ptr %3, align 8, !tbaa !9
%77 = getelementptr inbounds ptr, ptr %76, i64 0
%78 = load ptr, ptr %77, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %78, ptr noundef @.str.10)
br label %B17
B17:
br label %B18
B18:
br label %B19
B19:
%79 = load i32, ptr %4, align 4, !tbaa !5
%80 = add nsw i32 %79, 1
store i32 %80, ptr %4, align 4, !tbaa !5
br label %B3, !llvm.loop !14
B20:
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #2
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { nounwind willreturn memory(read) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"} | 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"
@filename = external dso_local local_unnamed_addr global ptr, align 8
@type = external dso_local local_unnamed_addr global i32, align 4
@precision = external dso_local local_unnamed_addr global double, align 8
@timet = external dso_local local_unnamed_addr global double, align 8
@display_level = external dso_local local_unnamed_addr global i32, align 4
@k1 = external dso_local local_unnamed_addr global i32, align 4
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) local_unnamed_addr #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %.lr.ph
4: ; preds = %2
%5 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %5, ptr noundef nonnull @.str.8)
br label %._crit_edge
._crit_edge: ; preds = %47, %4
ret void
.lr.ph: ; preds = %2, %47
%.024 = phi i32 [ %48, %47 ], [ 1, %2 ]
%6 = sext i32 %.024 to i64
%7 = getelementptr inbounds ptr, ptr %1, i64 %6
%8 = load ptr, ptr %7, align 8, !tbaa !5
%9 = load i8, ptr %8, align 1, !tbaa !9
%10 = icmp eq i8 %9, 45
br i1 %10, label %11, label %41
11: ; preds = %.lr.ph
%12 = getelementptr inbounds i8, ptr %8, i64 1
%13 = load i8, ptr %12, align 1, !tbaa !9
switch i8 %13, label %39 [
i8 119, label %14
i8 113, label %15
i8 116, label %21
i8 108, label %27
i8 107, label %33
]
14: ; preds = %11
store i32 0, ptr @type, align 4, !tbaa !10
br label %47
15: ; preds = %11
%16 = add nsw i32 %.024, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %1, i64 %17
%19 = load ptr, ptr %18, align 8, !tbaa !5
%20 = tail call double @atof(ptr noundef %19) #2
store double %20, ptr @precision, align 8, !tbaa !12
br label %47
21: ; preds = %11
%22 = add nsw i32 %.024, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %1, i64 %23
%25 = load ptr, ptr %24, align 8, !tbaa !5
%26 = tail call double @atof(ptr noundef %25) #2
store double %26, ptr @timet, align 8, !tbaa !12
br label %47
27: ; preds = %11
%28 = add nsw i32 %.024, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %1, i64 %29
%31 = load ptr, ptr %30, align 8, !tbaa !5
%32 = tail call i32 @atoi(ptr nocapture noundef %31) #2
store i32 %32, ptr @display_level, align 4, !tbaa !10
br label %47
33: ; preds = %11
%34 = add nsw i32 %.024, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %1, i64 %35
%37 = load ptr, ptr %36, align 8, !tbaa !5
%38 = tail call i32 @atoi(ptr nocapture noundef %37) #2
store i32 %38, ptr @k1, align 4, !tbaa !10
br label %47
39: ; preds = %11
%40 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %40, ptr noundef nonnull @.str.9)
br label %47
41: ; preds = %.lr.ph
%42 = load ptr, ptr @filename, align 8, !tbaa !5
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %45
44: ; preds = %41
store ptr %8, ptr @filename, align 8, !tbaa !5
br label %47
45: ; preds = %41
%46 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %46, ptr noundef nonnull @.str.10)
br label %47
47: ; preds = %39, %33, %27, %21, %15, %14, %45, %44
%.1 = phi i32 [ %.024, %39 ], [ %34, %33 ], [ %28, %27 ], [ %22, %21 ], [ %16, %15 ], [ %.024, %14 ], [ %.024, %44 ], [ %.024, %45 ]
%48 = add nsw i32 %.1, 1
%49 = icmp slt i32 %48, %0
br i1 %49, label %.lr.ph, label %._crit_edge, !llvm.loop !14
}
; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #1
; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #1
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #2 = { nounwind willreturn memory(read) }
!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 ([email protected]: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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | f1ff2c06f6bba1c2 | conradlee/network-community-benchmark | comm_algs/louvain/main_community.ll | Z10parse_argsiPPc | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@filename = external dso_local global ptr, align 8
@type = external dso_local global i32, align 4
@precision = external dso_local global double, align 8
@timet = external dso_local global double, align 8
@display_level = external dso_local global i32, align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10parse_argsiPPc(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #4 personality ptr @__gxx_personality_v0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca %class.Community, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca %class.Graph, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca %class.Community, align 8
%18 = alloca %class.Graph, align 8
%19 = alloca %class.Graph, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !9
%20 = call i64 @time(ptr noundef null) #8
%21 = trunc i64 %20 to i32
call void @srand(i32 noundef %21) #8
%22 = load i32, ptr %4, align 4, !tbaa !5
%23 = load ptr, ptr %5, align 8, !tbaa !9
call void @_Z10parse_argsiPPc(i32 noundef %22, ptr noundef %23)
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
%24 = call i64 @time(ptr noundef %6) #8
call void @llvm.lifetime.start.p0(i64 144, ptr %8) #8
%25 = load ptr, ptr @filename, align 8, !tbaa !9
%26 = load i32, ptr @type, align 4, !tbaa !5
%27 = load double, ptr @precision, align 8, !tbaa !11
%28 = load double, ptr @timet, align 8, !tbaa !11
call void @_ZN9CommunityC1EPciidd(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef %25, i32 noundef %26, i32 noundef -1, double noundef %27, double noundef %28)
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
%29 = getelementptr inbounds %class.Community, ptr %8, i32 0, i32 0
%30 = getelementptr inbounds %class.Graph, ptr %29, i32 0, i32 0
%31 = load i32, ptr %30, align 8, !tbaa !13
store i32 %31, ptr %9, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
%32 = invoke noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %8)
to label %33 unwind label %40
33: ; preds = %2
store double %32, ptr %10, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
%34 = invoke noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %8)
to label %35 unwind label %44
35: ; preds = %33
store double %34, ptr %13, align 8, !tbaa !11
%36 = load i32, ptr @display_level, align 4, !tbaa !5
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %48
38: ; preds = %35
invoke void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %8)
to label %39 unwind label %44
39: ; preds = %38
br label %48
40: ; preds = %2
%41 = landingpad { ptr, i32 }
cleanup
%42 = extractvalue { ptr, i32 } %41, 0
store ptr %42, ptr %11, align 8
%43 = extractvalue { ptr, i32 } %41, 1
store i32 %43, ptr %12, align 4
br label %142
44: ; preds = %38, %33
%45 = landingpad { ptr, i32 }
cleanup
%46 = extractvalue { ptr, i32 } %45, 0
store ptr %46, ptr %11, align 8
%47 = extractvalue { ptr, i32 } %45, 1
store i32 %47, ptr %12, align 4
br label %141
48: ; preds = %39, %35
call void @llvm.lifetime.start.p0(i64 40, ptr %14) #8
invoke void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind writable sret(%class.Graph) align 8 %14, ptr noundef nonnull align 8 dereferenceable(144) %8)
to label %49 unwind label %73
49: ; preds = %48
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
store i32 0, ptr %15, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
%50 = getelementptr inbounds %class.Community, ptr %8, i32 0, i32 0
%51 = getelementptr inbounds %class.Graph, ptr %50, i32 0, i32 0
%52 = load i32, ptr %51, align 8, !tbaa !13
store i32 %52, ptr %16, align 4, !tbaa !5
br label %53
53: ; preds = %98, %49
%54 = load double, ptr %13, align 8, !tbaa !11
%55 = load double, ptr %10, align 8, !tbaa !11
%56 = fsub double %54, %55
%57 = load double, ptr @precision, align 8, !tbaa !11
%58 = fcmp ogt double %56, %57
br i1 %58, label %59, label %101
59: ; preds = %53
%60 = load double, ptr %13, align 8, !tbaa !11
store double %60, ptr %10, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 144, ptr %17) #8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %14, i64 40, i1 false), !tbaa.struct !20
%61 = load double, ptr @precision, align 8, !tbaa !11
%62 = load double, ptr @timet, align 8, !tbaa !11
invoke void @_ZN9CommunityC1E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144) %17, ptr noundef byval(%class.Graph) align 8 %18, i32 noundef -1, double noundef %61, double noundef %62)
to label %63 unwind label %77
63: ; preds = %59
%64 = getelementptr inbounds %class.Community, ptr %17, i32 0, i32 0
%65 = getelementptr inbounds %class.Graph, ptr %64, i32 0, i32 0
%66 = load i32, ptr %65, align 8, !tbaa !13
store i32 %66, ptr %16, align 4, !tbaa !5
%67 = invoke noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %17)
to label %68 unwind label %81
68: ; preds = %63
store double %67, ptr %13, align 8, !tbaa !11
%69 = load i32, ptr @display_level, align 4, !tbaa !5
%70 = icmp eq i32 %69, -1
br i1 %70, label %71, label %85
71: ; preds = %68
invoke void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %17)
to label %72 unwind label %81
72: ; preds = %71
br label %85
73: ; preds = %48
%74 = landingpad { ptr, i32 }
cleanup
%75 = extractvalue { ptr, i32 } %74, 0
store ptr %75, ptr %11, align 8
%76 = extractvalue { ptr, i32 } %74, 1
store i32 %76, ptr %12, align 4
br label %140
77: ; preds = %59
%78 = landingpad { ptr, i32 }
cleanup
%79 = extractvalue { ptr, i32 } %78, 0
store ptr %79, ptr %11, align 8
%80 = extractvalue { ptr, i32 } %78, 1
store i32 %80, ptr %12, align 4
br label %100
81: ; preds = %92, %71, %63
%82 = landingpad { ptr, i32 }
cleanup
%83 = extractvalue { ptr, i32 } %82, 0
store ptr %83, ptr %11, align 8
%84 = extractvalue { ptr, i32 } %82, 1
store i32 %84, ptr %12, align 4
br label %99
85: ; preds = %72, %68
call void @llvm.lifetime.start.p0(i64 40, ptr %19) #8
invoke void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind writable sret(%class.Graph) align 8 %19, ptr noundef nonnull align 8 dereferenceable(144) %17)
to label %86 unwind label %94
86: ; preds = %85
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %19, i64 40, i1 false), !tbaa.struct !20
call void @llvm.lifetime.end.p0(i64 40, ptr %19) #8
%87 = load i32, ptr %15, align 4, !tbaa !5
%88 = add nsw i32 %87, 1
store i32 %88, ptr %15, align 4, !tbaa !5
%89 = load i32, ptr %15, align 4, !tbaa !5
%90 = load i32, ptr @display_level, align 4, !tbaa !5
%91 = icmp eq i32 %89, %90
br i1 %91, label %92, label %98
92: ; preds = %86
invoke void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40) %14)
to label %93 unwind label %81
93: ; preds = %92
br label %98
94: ; preds = %85
%95 = landingpad { ptr, i32 }
cleanup
%96 = extractvalue { ptr, i32 } %95, 0
store ptr %96, ptr %11, align 8
%97 = extractvalue { ptr, i32 } %95, 1
store i32 %97, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 40, ptr %19) #8
br label %99
98: ; preds = %93, %86
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #8
call void @llvm.lifetime.end.p0(i64 144, ptr %17) #8
br label %53, !llvm.loop !21
99: ; preds = %94, %81
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #8
br label %100
100: ; preds = %99, %77
call void @llvm.lifetime.end.p0(i64 144, ptr %17) #8
br label %139
101: ; preds = %53
%102 = call i64 @time(ptr noundef %7) #8
%103 = load double, ptr @timet, align 8, !tbaa !11
%104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, double noundef %103)
to label %105 unwind label %135
105: ; preds = %101
%106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef @.str.12)
to label %107 unwind label %135
107: ; preds = %105
%108 = load i32, ptr %9, align 4, !tbaa !5
%109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %106, i32 noundef %108)
to label %110 unwind label %135
110: ; preds = %107
%111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef @.str.12)
to label %112 unwind label %135
112: ; preds = %110
%113 = load double, ptr %13, align 8, !tbaa !11
%114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %111, double noundef %113)
to label %115 unwind label %135
115: ; preds = %112
%116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef @.str.12)
to label %117 unwind label %135
117: ; preds = %115
%118 = load i32, ptr %16, align 4, !tbaa !5
%119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %116, i32 noundef %118)
to label %120 unwind label %135
120: ; preds = %117
%121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef @.str.12)
to label %122 unwind label %135
122: ; preds = %120
%123 = load i64, ptr %7, align 8, !tbaa !23
%124 = load i64, ptr %6, align 8, !tbaa !23
%125 = sub nsw i64 %123, %124
%126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %121, i64 noundef %125)
to label %127 unwind label %135
127: ; preds = %122
%128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %129 unwind label %135
129: ; preds = %127
%130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
to label %131 unwind label %135
131: ; preds = %129
%132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %133 unwind label %135
133: ; preds = %131
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #8
call void @llvm.lifetime.end.p0(i64 144, ptr %8) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
%134 = load i32, ptr %3, align 4
ret i32 %134
135: ; preds = %131, %129, %127, %122, %120, %117, %115, %112, %110, %107, %105, %101
%136 = landingpad { ptr, i32 }
cleanup
%137 = extractvalue { ptr, i32 } %136, 0
store ptr %137, ptr %11, align 8
%138 = extractvalue { ptr, i32 } %136, 1
store i32 %138, ptr %12, align 4
br label %139
139: ; preds = %135, %100
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
br label %140
140: ; preds = %139, %73
call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
br label %141
141: ; preds = %140, %44
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
br label %142
142: ; preds = %141, %40
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #8
call void @llvm.lifetime.end.p0(i64 144, ptr %8) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
br label %143
143: ; preds = %142
%144 = load ptr, ptr %11, align 8
%145 = load i32, ptr %12, align 4
%146 = insertvalue { ptr, i32 } poison, ptr %144, 0
%147 = insertvalue { ptr, i32 } %146, i32 %145, 1
resume { ptr, i32 } %147
}
; Function Attrs: nounwind
declare void @srand(i32 noundef) #3
declare void @_ZN9CommunityC1EPciidd(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef) unnamed_addr #5
declare noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144)) #5
declare i32 @__gxx_personality_v0(...)
declare noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144)) #5
declare void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144)) #5
declare void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind writable sret(%class.Graph) align 8, ptr noundef nonnull align 8 dereferenceable(144)) #5
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6
declare void @_ZN9CommunityC1E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef byval(%class.Graph) align 8, i32 noundef, double noundef, double noundef) unnamed_addr #5
declare void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40)) #5
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #7 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #1 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2
attributes #0 = { inlinehint mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { inlinehint mustprogress 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 #8 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS9Community", !15, i64 0, !6, i64 40, !16, i64 48, !16, i64 72, !16, i64 96, !6, i64 120, !12, i64 128, !12, i64 136}
!15 = !{!"_ZTS5Graph", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 16, i64 8, !9, i64 24, i64 8, !9, i64 32, i64 8, !9}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%STRUCT0 = type { %STRUCT1, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%STRUCT1 = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@filename = external dso_local global ptr, align 8
@type = external dso_local global i32, align 4
@precision = external dso_local global double, align 8
@timet = external dso_local global double, align 8
@display_level = external dso_local global i32, align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10parse_argsiPPc(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #4 personality ptr @__gxx_personality_v0 {
B0:
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca %STRUCT0, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca %STRUCT1, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca %STRUCT0, align 8
%17 = alloca %STRUCT1, align 8
%18 = alloca %STRUCT1, align 8
store i32 0, ptr %2, align 4
store i32 %0, ptr %3, align 4, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !9
%19 = call i64 @time(ptr noundef null) #8
%20 = trunc i64 %19 to i32
call void @srand(i32 noundef %20) #8
%21 = load i32, ptr %3, align 4, !tbaa !5
%22 = load ptr, ptr %4, align 8, !tbaa !9
call void @_Z10parse_argsiPPc(i32 noundef %21, ptr noundef %22)
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
%23 = call i64 @time(ptr noundef %5) #8
call void @llvm.lifetime.start.p0(i64 144, ptr %7) #8
%24 = load ptr, ptr @filename, align 8, !tbaa !9
%25 = load i32, ptr @type, align 4, !tbaa !5
%26 = load double, ptr @precision, align 8, !tbaa !11
%27 = load double, ptr @timet, align 8, !tbaa !11
call void @_ZN9CommunityC1EPciidd(ptr noundef nonnull align 8 dereferenceable(144) %7, ptr noundef %24, i32 noundef %25, i32 noundef -1, double noundef %26, double noundef %27)
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
%28 = getelementptr inbounds %STRUCT0, ptr %7, i32 0, i32 0
%29 = getelementptr inbounds %STRUCT1, ptr %28, i32 0, i32 0
%30 = load i32, ptr %29, align 8, !tbaa !13
store i32 %30, ptr %8, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
%31 = invoke noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
to label %B1 unwind label %B5
B1:
store double %31, ptr %9, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
%32 = invoke noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
to label %B2 unwind label %B6
B2:
store double %32, ptr %12, align 8, !tbaa !11
%33 = load i32, ptr @display_level, align 4, !tbaa !5
%34 = icmp eq i32 %33, -1
br i1 %34, label %B3, label %B7
B3:
invoke void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
to label %B4 unwind label %B6
B4:
br label %B7
B5:
%35 = landingpad { ptr, i32 }
cleanup
%36 = extractvalue { ptr, i32 } %35, 0
store ptr %36, ptr %10, align 8
%37 = extractvalue { ptr, i32 } %35, 1
store i32 %37, ptr %11, align 4
br label %B43
B6:
%38 = landingpad { ptr, i32 }
cleanup
%39 = extractvalue { ptr, i32 } %38, 0
store ptr %39, ptr %10, align 8
%40 = extractvalue { ptr, i32 } %38, 1
store i32 %40, ptr %11, align 4
br label %B42
B7:
call void @llvm.lifetime.start.p0(i64 40, ptr %13) #8
invoke void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind writable sret(%STRUCT1) align 8 %13, ptr noundef nonnull align 8 dereferenceable(144) %7)
to label %B8 unwind label %B15
B8:
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
store i32 0, ptr %14, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
%41 = getelementptr inbounds %STRUCT0, ptr %7, i32 0, i32 0
%42 = getelementptr inbounds %STRUCT1, ptr %41, i32 0, i32 0
%43 = load i32, ptr %42, align 8, !tbaa !13
store i32 %43, ptr %15, align 4, !tbaa !5
br label %B9
B9:
%44 = load double, ptr %12, align 8, !tbaa !11
%45 = load double, ptr %9, align 8, !tbaa !11
%46 = fsub double %44, %45
%47 = load double, ptr @precision, align 8, !tbaa !11
%48 = fcmp ogt double %46, %47
br i1 %48, label %B10, label %B26
B10:
%49 = load double, ptr %12, align 8, !tbaa !11
store double %49, ptr %9, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 144, ptr %16) #8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %13, i64 40, i1 false), !tbaa.struct !20
%50 = load double, ptr @precision, align 8, !tbaa !11
%51 = load double, ptr @timet, align 8, !tbaa !11
invoke void @_ZN9CommunityC1E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144) %16, ptr noundef byval(%STRUCT1) align 8 %17, i32 noundef -1, double noundef %50, double noundef %51)
to label %B11 unwind label %B16
B11:
%52 = getelementptr inbounds %STRUCT0, ptr %16, i32 0, i32 0
%53 = getelementptr inbounds %STRUCT1, ptr %52, i32 0, i32 0
%54 = load i32, ptr %53, align 8, !tbaa !13
store i32 %54, ptr %15, align 4, !tbaa !5
%55 = invoke noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %16)
to label %B12 unwind label %B17
B12:
store double %55, ptr %12, align 8, !tbaa !11
%56 = load i32, ptr @display_level, align 4, !tbaa !5
%57 = icmp eq i32 %56, -1
br i1 %57, label %B13, label %B18
B13:
invoke void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %16)
to label %B14 unwind label %B17
B14:
br label %B18
B15:
%58 = landingpad { ptr, i32 }
cleanup
%59 = extractvalue { ptr, i32 } %58, 0
store ptr %59, ptr %10, align 8
%60 = extractvalue { ptr, i32 } %58, 1
store i32 %60, ptr %11, align 4
br label %B41
B16:
%61 = landingpad { ptr, i32 }
cleanup
%62 = extractvalue { ptr, i32 } %61, 0
store ptr %62, ptr %10, align 8
%63 = extractvalue { ptr, i32 } %61, 1
store i32 %63, ptr %11, align 4
br label %B25
B17:
%64 = landingpad { ptr, i32 }
cleanup
%65 = extractvalue { ptr, i32 } %64, 0
store ptr %65, ptr %10, align 8
%66 = extractvalue { ptr, i32 } %64, 1
store i32 %66, ptr %11, align 4
br label %B24
B18:
call void @llvm.lifetime.start.p0(i64 40, ptr %18) #8
invoke void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind writable sret(%STRUCT1) align 8 %18, ptr noundef nonnull align 8 dereferenceable(144) %16)
to label %B19 unwind label %B22
B19:
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %18, i64 40, i1 false), !tbaa.struct !20
call void @llvm.lifetime.end.p0(i64 40, ptr %18) #8
%67 = load i32, ptr %14, align 4, !tbaa !5
%68 = add nsw i32 %67, 1
store i32 %68, ptr %14, align 4, !tbaa !5
%69 = load i32, ptr %14, align 4, !tbaa !5
%70 = load i32, ptr @display_level, align 4, !tbaa !5
%71 = icmp eq i32 %69, %70
br i1 %71, label %B20, label %B23
B20:
invoke void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40) %13)
to label %B21 unwind label %B17
B21:
br label %B23
B22:
%72 = landingpad { ptr, i32 }
cleanup
%73 = extractvalue { ptr, i32 } %72, 0
store ptr %73, ptr %10, align 8
%74 = extractvalue { ptr, i32 } %72, 1
store i32 %74, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 40, ptr %18) #8
br label %B24
B23:
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #8
call void @llvm.lifetime.end.p0(i64 144, ptr %16) #8
br label %B9, !llvm.loop !21
B24:
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #8
br label %B25
B25:
call void @llvm.lifetime.end.p0(i64 144, ptr %16) #8
br label %B40
B26:
%75 = call i64 @time(ptr noundef %6) #8
%76 = load double, ptr @timet, align 8, !tbaa !11
%77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, double noundef %76)
to label %B27 unwind label %B39
B27:
%78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef @.str.12)
to label %B28 unwind label %B39
B28:
%79 = load i32, ptr %8, align 4, !tbaa !5
%80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %78, i32 noundef %79)
to label %B29 unwind label %B39
B29:
%81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef @.str.12)
to label %B30 unwind label %B39
B30:
%82 = load double, ptr %12, align 8, !tbaa !11
%83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %81, double noundef %82)
to label %B31 unwind label %B39
B31:
%84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef @.str.12)
to label %B32 unwind label %B39
B32:
%85 = load i32, ptr %15, align 4, !tbaa !5
%86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %84, i32 noundef %85)
to label %B33 unwind label %B39
B33:
%87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef @.str.12)
to label %B34 unwind label %B39
B34:
%88 = load i64, ptr %6, align 8, !tbaa !23
%89 = load i64, ptr %5, align 8, !tbaa !23
%90 = sub nsw i64 %88, %89
%91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %87, i64 noundef %90)
to label %B35 unwind label %B39
B35:
%92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B36 unwind label %B39
B36:
%93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
to label %B37 unwind label %B39
B37:
%94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B38 unwind label %B39
B38:
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
call void @llvm.lifetime.end.p0(i64 40, ptr %13) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %7) #8
call void @llvm.lifetime.end.p0(i64 144, ptr %7) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
%95 = load i32, ptr %2, align 4
ret i32 %95
B39:
%96 = landingpad { ptr, i32 }
cleanup
%97 = extractvalue { ptr, i32 } %96, 0
store ptr %97, ptr %10, align 8
%98 = extractvalue { ptr, i32 } %96, 1
store i32 %98, ptr %11, align 4
br label %B40
B40:
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
br label %B41
B41:
call void @llvm.lifetime.end.p0(i64 40, ptr %13) #8
br label %B42
B42:
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
br label %B43
B43:
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %7) #8
call void @llvm.lifetime.end.p0(i64 144, ptr %7) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
br label %B44
B44:
%99 = load ptr, ptr %10, align 8
%100 = load i32, ptr %11, align 4
%101 = insertvalue { ptr, i32 } poison, ptr %99, 0
%102 = insertvalue { ptr, i32 } %101, i32 %100, 1
resume { ptr, i32 } %102
}
; Function Attrs: nounwind
declare void @srand(i32 noundef) #3
declare void @_ZN9CommunityC1EPciidd(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef) unnamed_addr #5
declare noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144)) #5
declare i32 @__gxx_personality_v0(...)
declare noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144)) #5
declare void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144)) #5
declare void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind writable sret(%STRUCT1) align 8, ptr noundef nonnull align 8 dereferenceable(144)) #5
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6
declare void @_ZN9CommunityC1E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef byval(%STRUCT1) align 8, i32 noundef, double noundef, double noundef) unnamed_addr #5
declare void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40)) #5
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #7 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #1 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2
attributes #0 = { inlinehint mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { inlinehint mustprogress 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 #8 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS9Community", !15, i64 0, !6, i64 40, !16, i64 48, !16, i64 72, !16, i64 96, !6, i64 120, !12, i64 128, !12, i64 136}
!15 = !{!"_ZTS5Graph", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 16, i64 8, !9, i64 24, i64 8, !9, i64 32, i64 8, !9}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Community = type { %class.Graph, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", i32, double, double }
%class.Graph = type { i32, i32, i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@filename = external dso_local local_unnamed_addr global ptr, align 8
@type = external dso_local local_unnamed_addr global i32, align 4
@precision = external dso_local local_unnamed_addr global double, align 8
@timet = external dso_local local_unnamed_addr global double, align 8
@display_level = external dso_local local_unnamed_addr global i32, align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10parse_argsiPPc(i32 noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca %class.Community, align 8
%6 = alloca %class.Graph, align 8
%7 = alloca %class.Community, align 8
%8 = alloca %class.Graph, align 8
%9 = tail call i64 @time(ptr noundef null) #8
%10 = trunc i64 %9 to i32
tail call void @srand(i32 noundef %10) #8
tail call void @_Z10parse_argsiPPc(i32 noundef %0, ptr noundef %1)
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
%11 = call i64 @time(ptr noundef nonnull %3) #8
call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #8
%12 = load ptr, ptr @filename, align 8, !tbaa !5
%13 = load i32, ptr @type, align 4, !tbaa !9
%14 = load double, ptr @precision, align 8, !tbaa !11
%15 = load double, ptr @timet, align 8, !tbaa !11
call void @_ZN9CommunityC1EPciidd(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef %12, i32 noundef %13, i32 noundef -1, double noundef %14, double noundef %15)
%16 = load i32, ptr %5, align 8, !tbaa !13
%17 = invoke noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144) %5)
to label %18 unwind label %24
18: ; preds = %2
%19 = invoke noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %5)
to label %20 unwind label %26
20: ; preds = %18
%21 = load i32, ptr @display_level, align 4, !tbaa !9
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %28
23: ; preds = %20
invoke void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %5)
to label %28 unwind label %26
24: ; preds = %2
%25 = landingpad { ptr, i32 }
cleanup
br label %95
26: ; preds = %23, %18
%27 = landingpad { ptr, i32 }
cleanup
br label %95
28: ; preds = %23, %20
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #8
invoke void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind nonnull writable sret(%class.Graph) align 8 %6, ptr noundef nonnull align 8 dereferenceable(144) %5)
to label %29 unwind label %43
29: ; preds = %28
%30 = load i32, ptr %5, align 8, !tbaa !13
%31 = fsub double %19, %17
%32 = load double, ptr @precision, align 8, !tbaa !11
%33 = fcmp ogt double %31, %32
br i1 %33, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %29, %57
%34 = phi double [ %59, %57 ], [ %32, %29 ]
%.01235 = phi i32 [ %51, %57 ], [ 0, %29 ]
%.01334 = phi double [ %38, %57 ], [ %19, %29 ]
call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %7) #8
%35 = load double, ptr @timet, align 8, !tbaa !11
invoke void @_ZN9CommunityC1E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144) %7, ptr noundef nonnull byval(%class.Graph) align 8 %6, i32 noundef -1, double noundef %34, double noundef %35)
to label %36 unwind label %45
36: ; preds = %.lr.ph
%37 = load i32, ptr %7, align 8, !tbaa !13
%38 = invoke noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
to label %39 unwind label %47
39: ; preds = %36
%40 = load i32, ptr @display_level, align 4, !tbaa !9
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %49
42: ; preds = %39
invoke void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
to label %49 unwind label %47
43: ; preds = %28
%44 = landingpad { ptr, i32 }
cleanup
br label %94
45: ; preds = %.lr.ph
%46 = landingpad { ptr, i32 }
cleanup
br label %62
47: ; preds = %54, %42, %36
%48 = landingpad { ptr, i32 }
cleanup
br label %61
49: ; preds = %42, %39
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #8
invoke void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind nonnull writable sret(%class.Graph) align 8 %8, ptr noundef nonnull align 8 dereferenceable(144) %7)
to label %50 unwind label %55
50: ; preds = %49
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %8, i64 40, i1 false), !tbaa.struct !20
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #8
%51 = add nuw nsw i32 %.01235, 1
%52 = load i32, ptr @display_level, align 4, !tbaa !9
%53 = icmp eq i32 %51, %52
br i1 %53, label %54, label %57
54: ; preds = %50
invoke void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40) %6)
to label %57 unwind label %47
55: ; preds = %49
%56 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #8
br label %61
57: ; preds = %54, %50
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %7) #8
call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #8
%58 = fsub double %38, %.01334
%59 = load double, ptr @precision, align 8, !tbaa !11
%60 = fcmp ogt double %58, %59
br i1 %60, label %.lr.ph, label %._crit_edge, !llvm.loop !21
61: ; preds = %55, %47
%.pn = phi { ptr, i32 } [ %48, %47 ], [ %56, %55 ]
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %7) #8
br label %62
62: ; preds = %61, %45
%.pn.pn = phi { ptr, i32 } [ %.pn, %61 ], [ %46, %45 ]
call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #8
br label %94
._crit_edge: ; preds = %57, %29
%.013.lcssa = phi double [ %19, %29 ], [ %38, %57 ]
%.0.lcssa = phi i32 [ %30, %29 ], [ %37, %57 ]
%63 = call i64 @time(ptr noundef nonnull %4) #8
%64 = load double, ptr @timet, align 8, !tbaa !11
%65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, double noundef %64)
to label %66 unwind label %92
66: ; preds = %._crit_edge
%67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @.str.12)
to label %68 unwind label %92
68: ; preds = %66
%69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %67, i32 noundef %16)
to label %70 unwind label %92
70: ; preds = %68
%71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @.str.12)
to label %72 unwind label %92
72: ; preds = %70
%73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %71, double noundef %.013.lcssa)
to label %74 unwind label %92
74: ; preds = %72
%75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @.str.12)
to label %76 unwind label %92
76: ; preds = %74
%77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %75, i32 noundef %.0.lcssa)
to label %78 unwind label %92
78: ; preds = %76
%79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @.str.12)
to label %80 unwind label %92
80: ; preds = %78
%81 = load i64, ptr %4, align 8, !tbaa !23
%82 = load i64, ptr %3, align 8, !tbaa !23
%83 = sub nsw i64 %81, %82
%84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %79, i64 noundef %83)
to label %85 unwind label %92
85: ; preds = %80
%86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %87 unwind label %92
87: ; preds = %85
%88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
to label %89 unwind label %92
89: ; preds = %87
%90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %91 unwind label %92
91: ; preds = %89
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #8
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #8
call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
ret i32 0
92: ; preds = %89, %87, %85, %80, %78, %76, %74, %72, %70, %68, %66, %._crit_edge
%93 = landingpad { ptr, i32 }
cleanup
br label %94
94: ; preds = %62, %92, %43
%.pn.pn.pn.pn = phi { ptr, i32 } [ %44, %43 ], [ %.pn.pn, %62 ], [ %93, %92 ]
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #8
br label %95
95: ; preds = %26, %94, %24
%.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %25, %24 ], [ %.pn.pn.pn.pn, %94 ], [ %27, %26 ]
call void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #8
call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}
; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3
declare void @_ZN9CommunityC1EPciidd(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef) unnamed_addr #5
declare noundef double @_ZN9Community10modularityEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #5
declare i32 @__gxx_personality_v0(...)
declare noundef double @_ZN9Community9one_levelEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #5
declare void @_ZN9Community17display_partitionEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #5
declare void @_ZN9Community22partition2graph_binaryEv(ptr dead_on_unwind writable sret(%class.Graph) align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #5
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6
declare void @_ZN9CommunityC1E5Graphidd(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef byval(%class.Graph) align 8, i32 noundef, double noundef, double noundef) unnamed_addr #5
declare void @_ZN5Graph7displayEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #5
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9CommunityD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #7 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #1 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2
attributes #0 = { inlinehint mustprogress 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { inlinehint mustprogress 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 #8 = { 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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS9Community", !15, i64 0, !10, i64 40, !16, i64 48, !16, i64 72, !16, i64 96, !10, i64 120, !12, i64 128, !12, i64 136}
!15 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}
| DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 7673d75fb149e4dc | conradlee/network-community-benchmark | comm_algs/louvain | main_community | BSD-2-Clause |
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"
@infile = external dso_local global ptr, align 8
@outfile = external dso_local global ptr, align 8
@type = external dso_local global i32, align 4
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
store i32 1, ptr %5, align 4, !tbaa !5
br label %6
6: ; preds = %77, %2
%7 = load i32, ptr %5, align 4, !tbaa !5
%8 = load i32, ptr %3, align 4, !tbaa !5
%9 = icmp slt i32 %7, %8
br i1 %9, label %11, label %10
10: ; preds = %6
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
br label %80
11: ; preds = %6
%12 = load ptr, ptr %4, align 8, !tbaa !9
%13 = load i32, ptr %5, align 4, !tbaa !5
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8, !tbaa !9
%17 = getelementptr inbounds i8, ptr %16, i64 0
%18 = load i8, ptr %17, align 1, !tbaa !11
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 45
br i1 %20, label %21, label %72
21: ; preds = %11
%22 = load ptr, ptr %4, align 8, !tbaa !9
%23 = load i32, ptr %5, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8, !tbaa !9
%27 = getelementptr inbounds i8, ptr %26, i64 1
%28 = load i8, ptr %27, align 1, !tbaa !11
%29 = sext i8 %28 to i32
switch i32 %29, label %67 [
i32 105, label %30
i32 111, label %48
i32 119, label %66
]
30: ; preds = %21
%31 = load i32, ptr %5, align 4, !tbaa !5
%32 = load i32, ptr %3, align 4, !tbaa !5
%33 = sub nsw i32 %32, 1
%34 = icmp eq i32 %31, %33
br i1 %34, label %35, label %39
35: ; preds = %30
%36 = load ptr, ptr %4, align 8, !tbaa !9
%37 = getelementptr inbounds ptr, ptr %36, i64 0
%38 = load ptr, ptr %37, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %38, ptr noundef @.str.5)
br label %39
39: ; preds = %35, %30
%40 = load ptr, ptr %4, align 8, !tbaa !9
%41 = load i32, ptr %5, align 4, !tbaa !5
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %40, i64 %43
%45 = load ptr, ptr %44, align 8, !tbaa !9
store ptr %45, ptr @infile, align 8, !tbaa !9
%46 = load i32, ptr %5, align 4, !tbaa !5
%47 = add nsw i32 %46, 1
store i32 %47, ptr %5, align 4, !tbaa !5
br label %71
48: ; preds = %21
%49 = load i32, ptr %5, align 4, !tbaa !5
%50 = load i32, ptr %3, align 4, !tbaa !5
%51 = sub nsw i32 %50, 1
%52 = icmp eq i32 %49, %51
br i1 %52, label %53, label %57
53: ; preds = %48
%54 = load ptr, ptr %4, align 8, !tbaa !9
%55 = getelementptr inbounds ptr, ptr %54, i64 0
%56 = load ptr, ptr %55, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %56, ptr noundef @.str.6)
br label %57
57: ; preds = %53, %48
%58 = load ptr, ptr %4, align 8, !tbaa !9
%59 = load i32, ptr %5, align 4, !tbaa !5
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %58, i64 %61
%63 = load ptr, ptr %62, align 8, !tbaa !9
store ptr %63, ptr @outfile, align 8, !tbaa !9
%64 = load i32, ptr %5, align 4, !tbaa !5
%65 = add nsw i32 %64, 1
store i32 %65, ptr %5, align 4, !tbaa !5
br label %71
66: ; preds = %21
store i32 0, ptr @type, align 4, !tbaa !5
br label %71
67: ; preds = %21
%68 = load ptr, ptr %4, align 8, !tbaa !9
%69 = getelementptr inbounds ptr, ptr %68, i64 0
%70 = load ptr, ptr %69, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %70, ptr noundef @.str.7)
br label %71
71: ; preds = %67, %66, %57, %39
br label %76
72: ; preds = %11
%73 = load ptr, ptr %4, align 8, !tbaa !9
%74 = getelementptr inbounds ptr, ptr %73, i64 0
%75 = load ptr, ptr %74, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %75, ptr noundef @.str.8)
br label %76
76: ; preds = %72, %71
br label %77
77: ; preds = %76
%78 = load i32, ptr %5, align 4, !tbaa !5
%79 = add nsw i32 %78, 1
store i32 %79, ptr %5, align 4, !tbaa !5
br label %6, !llvm.loop !12
80: ; preds = %10
%81 = load ptr, ptr @infile, align 8, !tbaa !9
%82 = icmp eq ptr %81, null
br i1 %82, label %86, label %83
83: ; preds = %80
%84 = load ptr, ptr @outfile, align 8, !tbaa !9
%85 = icmp eq ptr %84, null
br i1 %85, label %86, label %90
86: ; preds = %83, %80
%87 = load ptr, ptr %4, align 8, !tbaa !9
%88 = getelementptr inbounds ptr, ptr %87, i64 0
%89 = load ptr, ptr %88, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %89, ptr noundef @.str.9)
br label %90
90: ; preds = %86, %83
ret void
}
; 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
attributes #0 = { mustprogress 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 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| 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"
@infile = external dso_local global ptr, align 8
@outfile = external dso_local global ptr, align 8
@type = external dso_local global i32, align 4
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr noundef %1) #0 {
B0:
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4, !tbaa !5
store ptr %1, ptr %3, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
store i32 1, ptr %4, align 4, !tbaa !5
br label %B1
B1:
%5 = load i32, ptr %4, align 4, !tbaa !5
%6 = load i32, ptr %2, align 4, !tbaa !5
%7 = icmp slt i32 %5, %6
br i1 %7, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
br label %B17
B3:
%8 = load ptr, ptr %3, align 8, !tbaa !9
%9 = load i32, ptr %4, align 4, !tbaa !5
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds ptr, ptr %8, i64 %10
%12 = load ptr, ptr %11, align 8, !tbaa !9
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1, !tbaa !11
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 45
br i1 %16, label %B4, label %B14
B4:
%17 = load ptr, ptr %3, align 8, !tbaa !9
%18 = load i32, ptr %4, align 4, !tbaa !5
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8, !tbaa !9
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = load i8, ptr %22, align 1, !tbaa !11
%24 = sext i8 %23 to i32
switch i32 %24, label %B12 [
i32 105, label %B5
i32 111, label %B8
i32 119, label %B11
]
B5:
%25 = load i32, ptr %4, align 4, !tbaa !5
%26 = load i32, ptr %2, align 4, !tbaa !5
%27 = sub nsw i32 %26, 1
%28 = icmp eq i32 %25, %27
br i1 %28, label %B6, label %B7
B6:
%29 = load ptr, ptr %3, align 8, !tbaa !9
%30 = getelementptr inbounds ptr, ptr %29, i64 0
%31 = load ptr, ptr %30, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %31, ptr noundef @.str.5)
br label %B7
B7:
%32 = load ptr, ptr %3, align 8, !tbaa !9
%33 = load i32, ptr %4, align 4, !tbaa !5
%34 = add nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %32, i64 %35
%37 = load ptr, ptr %36, align 8, !tbaa !9
store ptr %37, ptr @infile, align 8, !tbaa !9
%38 = load i32, ptr %4, align 4, !tbaa !5
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4, !tbaa !5
br label %B13
B8:
%40 = load i32, ptr %4, align 4, !tbaa !5
%41 = load i32, ptr %2, align 4, !tbaa !5
%42 = sub nsw i32 %41, 1
%43 = icmp eq i32 %40, %42
br i1 %43, label %B9, label %B10
B9:
%44 = load ptr, ptr %3, align 8, !tbaa !9
%45 = getelementptr inbounds ptr, ptr %44, i64 0
%46 = load ptr, ptr %45, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %46, ptr noundef @.str.6)
br label %B10
B10:
%47 = load ptr, ptr %3, align 8, !tbaa !9
%48 = load i32, ptr %4, align 4, !tbaa !5
%49 = add nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %47, i64 %50
%52 = load ptr, ptr %51, align 8, !tbaa !9
store ptr %52, ptr @outfile, align 8, !tbaa !9
%53 = load i32, ptr %4, align 4, !tbaa !5
%54 = add nsw i32 %53, 1
store i32 %54, ptr %4, align 4, !tbaa !5
br label %B13
B11:
store i32 0, ptr @type, align 4, !tbaa !5
br label %B13
B12:
%55 = load ptr, ptr %3, align 8, !tbaa !9
%56 = getelementptr inbounds ptr, ptr %55, i64 0
%57 = load ptr, ptr %56, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %57, ptr noundef @.str.7)
br label %B13
B13:
br label %B15
B14:
%58 = load ptr, ptr %3, align 8, !tbaa !9
%59 = getelementptr inbounds ptr, ptr %58, i64 0
%60 = load ptr, ptr %59, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %60, ptr noundef @.str.8)
br label %B15
B15:
br label %B16
B16:
%61 = load i32, ptr %4, align 4, !tbaa !5
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4, !tbaa !5
br label %B1, !llvm.loop !12
B17:
%63 = load ptr, ptr @infile, align 8, !tbaa !9
%64 = icmp eq ptr %63, null
br i1 %64, label %B19, label %B18
B18:
%65 = load ptr, ptr @outfile, align 8, !tbaa !9
%66 = icmp eq ptr %65, null
br i1 %66, label %B19, label %B20
B19:
%67 = load ptr, ptr %3, align 8, !tbaa !9
%68 = getelementptr inbounds ptr, ptr %67, i64 0
%69 = load ptr, ptr %68, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %69, ptr noundef @.str.9)
br label %B20
B20:
ret void
}
; 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
attributes #0 = { mustprogress 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 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"} | 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"
@infile = external dso_local local_unnamed_addr global ptr, align 8
@outfile = external dso_local local_unnamed_addr global ptr, align 8
@type = external dso_local local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) local_unnamed_addr #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %2
%4 = add nsw i32 %0, -1
br label %9
._crit_edge: ; preds = %41, %2
%5 = load ptr, ptr @infile, align 8, !tbaa !5
%6 = icmp eq ptr %5, null
%7 = load ptr, ptr @outfile, align 8
%8 = icmp eq ptr %7, null
%or.cond = select i1 %6, i1 true, i1 %8
br i1 %or.cond, label %44, label %46
9: ; preds = %.lr.ph, %41
%.023 = phi i32 [ 1, %.lr.ph ], [ %42, %41 ]
%10 = sext i32 %.023 to i64
%11 = getelementptr inbounds ptr, ptr %1, i64 %10
%12 = load ptr, ptr %11, align 8, !tbaa !5
%13 = load i8, ptr %12, align 1, !tbaa !9
%14 = icmp eq i8 %13, 45
br i1 %14, label %15, label %39
15: ; preds = %9
%16 = getelementptr inbounds i8, ptr %12, i64 1
%17 = load i8, ptr %16, align 1, !tbaa !9
switch i8 %17, label %37 [
i8 105, label %18
i8 111, label %27
i8 119, label %36
]
18: ; preds = %15
%19 = icmp eq i32 %.023, %4
br i1 %19, label %20, label %22
20: ; preds = %18
%21 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %21, ptr noundef nonnull @.str.5)
br label %22
22: ; preds = %20, %18
%23 = add nsw i32 %.023, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %1, i64 %24
%26 = load ptr, ptr %25, align 8, !tbaa !5
store ptr %26, ptr @infile, align 8, !tbaa !5
br label %41
27: ; preds = %15
%28 = icmp eq i32 %.023, %4
br i1 %28, label %29, label %31
29: ; preds = %27
%30 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %30, ptr noundef nonnull @.str.6)
br label %31
31: ; preds = %29, %27
%32 = add nsw i32 %.023, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %1, i64 %33
%35 = load ptr, ptr %34, align 8, !tbaa !5
store ptr %35, ptr @outfile, align 8, !tbaa !5
br label %41
36: ; preds = %15
store i32 0, ptr @type, align 4, !tbaa !10
br label %41
37: ; preds = %15
%38 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %38, ptr noundef nonnull @.str.7)
br label %41
39: ; preds = %9
%40 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %40, ptr noundef nonnull @.str.8)
br label %41
41: ; preds = %39, %37, %36, %31, %22
%.1 = phi i32 [ %.023, %37 ], [ %.023, %36 ], [ %32, %31 ], [ %23, %22 ], [ %.023, %39 ]
%42 = add nsw i32 %.1, 1
%43 = icmp slt i32 %42, %0
br i1 %43, label %9, label %._crit_edge, !llvm.loop !12
44: ; preds = %._crit_edge
%45 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %45, ptr noundef nonnull @.str.9)
br label %46
46: ; preds = %._crit_edge, %44
ret void
}
attributes #0 = { mustprogress 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" }
!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 ([email protected]: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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | afd06b53094928f9 | conradlee/network-community-benchmark | comm_algs/louvain/main_convert.ll | Z10parse_argsiPPc | BSD-2-Clause |
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"
@display_level = external dso_local global i32, align 4
@filename = external dso_local global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !9
%6 = load i32, ptr %3, align 4, !tbaa !5
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load ptr, ptr %4, align 8, !tbaa !9
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %11, ptr noundef @.str.9)
br label %12
12: ; preds = %8, %2
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
store i32 1, ptr %5, align 4, !tbaa !5
br label %13
13: ; preds = %68, %12
%14 = load i32, ptr %5, align 4, !tbaa !5
%15 = load i32, ptr %3, align 4, !tbaa !5
%16 = icmp slt i32 %14, %15
br i1 %16, label %18, label %17
17: ; preds = %13
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
br label %71
18: ; preds = %13
%19 = load ptr, ptr %4, align 8, !tbaa !9
%20 = load i32, ptr %5, align 4, !tbaa !5
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8, !tbaa !9
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1, !tbaa !11
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 45
br i1 %27, label %28, label %53
28: ; preds = %18
%29 = load ptr, ptr %4, align 8, !tbaa !9
%30 = load i32, ptr %5, align 4, !tbaa !5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8, !tbaa !9
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1, !tbaa !11
%36 = sext i8 %35 to i32
switch i32 %36, label %48 [
i32 108, label %37
i32 110, label %47
]
37: ; preds = %28
%38 = load ptr, ptr %4, align 8, !tbaa !9
%39 = load i32, ptr %5, align 4, !tbaa !5
%40 = add nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %38, i64 %41
%43 = load ptr, ptr %42, align 8, !tbaa !9
%44 = call i32 @atoi(ptr noundef %43) #4
store i32 %44, ptr @display_level, align 4, !tbaa !5
%45 = load i32, ptr %5, align 4, !tbaa !5
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4, !tbaa !5
br label %52
47: ; preds = %28
store i32 -1, ptr @display_level, align 4, !tbaa !5
br label %52
48: ; preds = %28
%49 = load ptr, ptr %4, align 8, !tbaa !9
%50 = getelementptr inbounds ptr, ptr %49, i64 0
%51 = load ptr, ptr %50, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %51, ptr noundef @.str.10)
br label %52
52: ; preds = %48, %47, %37
br label %67
53: ; preds = %18
%54 = load ptr, ptr @filename, align 8, !tbaa !9
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %62
56: ; preds = %53
%57 = load ptr, ptr %4, align 8, !tbaa !9
%58 = load i32, ptr %5, align 4, !tbaa !5
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %57, i64 %59
%61 = load ptr, ptr %60, align 8, !tbaa !9
store ptr %61, ptr @filename, align 8, !tbaa !9
br label %66
62: ; preds = %53
%63 = load ptr, ptr %4, align 8, !tbaa !9
%64 = getelementptr inbounds ptr, ptr %63, i64 0
%65 = load ptr, ptr %64, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %65, ptr noundef @.str.11)
br label %66
66: ; preds = %62, %56
br label %67
67: ; preds = %66, %52
br label %68
68: ; preds = %67
%69 = load i32, ptr %5, align 4, !tbaa !5
%70 = add nsw i32 %69, 1
store i32 %70, ptr %5, align 4, !tbaa !5
br label %13, !llvm.loop !12
71: ; preds = %17
%72 = load ptr, ptr @filename, align 8, !tbaa !9
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %78
74: ; preds = %71
%75 = load ptr, ptr %4, align 8, !tbaa !9
%76 = getelementptr inbounds ptr, ptr %75, i64 0
%77 = load ptr, ptr %76, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %77, ptr noundef @.str.12)
br label %78
78: ; preds = %74, %71
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { nounwind willreturn memory(read) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| 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"
@display_level = external dso_local global i32, align 4
@filename = external dso_local global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr noundef %1) #0 {
B0:
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4, !tbaa !5
store ptr %1, ptr %3, align 8, !tbaa !9
%5 = load i32, ptr %2, align 4, !tbaa !5
%6 = icmp slt i32 %5, 2
br i1 %6, label %B1, label %B2
B1:
%7 = load ptr, ptr %3, align 8, !tbaa !9
%8 = getelementptr inbounds ptr, ptr %7, i64 0
%9 = load ptr, ptr %8, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %9, ptr noundef @.str.9)
br label %B2
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
store i32 1, ptr %4, align 4, !tbaa !5
br label %B3
B3:
%10 = load i32, ptr %4, align 4, !tbaa !5
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = icmp slt i32 %10, %11
br i1 %12, label %B5, label %B4
B4:
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
br label %B17
B5:
%13 = load ptr, ptr %3, align 8, !tbaa !9
%14 = load i32, ptr %4, align 4, !tbaa !5
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8, !tbaa !9
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1, !tbaa !11
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 45
br i1 %21, label %B6, label %B11
B6:
%22 = load ptr, ptr %3, align 8, !tbaa !9
%23 = load i32, ptr %4, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8, !tbaa !9
%27 = getelementptr inbounds i8, ptr %26, i64 1
%28 = load i8, ptr %27, align 1, !tbaa !11
%29 = sext i8 %28 to i32
switch i32 %29, label %B9 [
i32 108, label %B7
i32 110, label %B8
]
B7:
%30 = load ptr, ptr %3, align 8, !tbaa !9
%31 = load i32, ptr %4, align 4, !tbaa !5
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %30, i64 %33
%35 = load ptr, ptr %34, align 8, !tbaa !9
%36 = call i32 @atoi(ptr noundef %35) #4
store i32 %36, ptr @display_level, align 4, !tbaa !5
%37 = load i32, ptr %4, align 4, !tbaa !5
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4, !tbaa !5
br label %B10
B8:
store i32 -1, ptr @display_level, align 4, !tbaa !5
br label %B10
B9:
%39 = load ptr, ptr %3, align 8, !tbaa !9
%40 = getelementptr inbounds ptr, ptr %39, i64 0
%41 = load ptr, ptr %40, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %41, ptr noundef @.str.10)
br label %B10
B10:
br label %B15
B11:
%42 = load ptr, ptr @filename, align 8, !tbaa !9
%43 = icmp eq ptr %42, null
br i1 %43, label %B12, label %B13
B12:
%44 = load ptr, ptr %3, align 8, !tbaa !9
%45 = load i32, ptr %4, align 4, !tbaa !5
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %44, i64 %46
%48 = load ptr, ptr %47, align 8, !tbaa !9
store ptr %48, ptr @filename, align 8, !tbaa !9
br label %B14
B13:
%49 = load ptr, ptr %3, align 8, !tbaa !9
%50 = getelementptr inbounds ptr, ptr %49, i64 0
%51 = load ptr, ptr %50, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %51, ptr noundef @.str.11)
br label %B14
B14:
br label %B15
B15:
br label %B16
B16:
%52 = load i32, ptr %4, align 4, !tbaa !5
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4, !tbaa !5
br label %B3, !llvm.loop !12
B17:
%54 = load ptr, ptr @filename, align 8, !tbaa !9
%55 = icmp eq ptr %54, null
br i1 %55, label %B18, label %B19
B18:
%56 = load ptr, ptr %3, align 8, !tbaa !9
%57 = getelementptr inbounds ptr, ptr %56, i64 0
%58 = load ptr, ptr %57, align 8, !tbaa !9
call void @_Z5usagePcS_(ptr noundef %58, ptr noundef @.str.12)
br label %B19
B19:
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { nounwind willreturn memory(read) }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"} | 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"
@display_level = external dso_local local_unnamed_addr global i32, align 4
@filename = external dso_local local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5usagePcS_(ptr noundef, ptr noundef) local_unnamed_addr #0
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10parse_argsiPPc(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %.lr.ph
4: ; preds = %2
%5 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %5, ptr noundef nonnull @.str.9)
br label %._crit_edge
._crit_edge: ; preds = %31, %4
%6 = load ptr, ptr @filename, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %34, label %36
.lr.ph: ; preds = %2, %31
%.016 = phi i32 [ %32, %31 ], [ 1, %2 ]
%8 = sext i32 %.016 to i64
%9 = getelementptr inbounds ptr, ptr %1, i64 %8
%10 = load ptr, ptr %9, align 8, !tbaa !5
%11 = load i8, ptr %10, align 1, !tbaa !9
%12 = icmp eq i8 %11, 45
br i1 %12, label %13, label %25
13: ; preds = %.lr.ph
%14 = getelementptr inbounds i8, ptr %10, i64 1
%15 = load i8, ptr %14, align 1, !tbaa !9
switch i8 %15, label %23 [
i8 108, label %16
i8 110, label %22
]
16: ; preds = %13
%17 = add nsw i32 %.016, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %1, i64 %18
%20 = load ptr, ptr %19, align 8, !tbaa !5
%21 = tail call i32 @atoi(ptr nocapture noundef %20) #2
store i32 %21, ptr @display_level, align 4, !tbaa !10
br label %31
22: ; preds = %13
store i32 -1, ptr @display_level, align 4, !tbaa !10
br label %31
23: ; preds = %13
%24 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %24, ptr noundef nonnull @.str.10)
br label %31
25: ; preds = %.lr.ph
%26 = load ptr, ptr @filename, align 8, !tbaa !5
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %29
28: ; preds = %25
store ptr %10, ptr @filename, align 8, !tbaa !5
br label %31
29: ; preds = %25
%30 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %30, ptr noundef nonnull @.str.11)
br label %31
31: ; preds = %23, %22, %16, %29, %28
%.1 = phi i32 [ %.016, %23 ], [ %.016, %22 ], [ %17, %16 ], [ %.016, %28 ], [ %.016, %29 ]
%32 = add nsw i32 %.1, 1
%33 = icmp slt i32 %32, %0
br i1 %33, label %.lr.ph, label %._crit_edge, !llvm.loop !12
34: ; preds = %._crit_edge
%35 = load ptr, ptr %1, align 8, !tbaa !5
tail call void @_Z5usagePcS_(ptr noundef %35, ptr noundef nonnull @.str.12)
br label %36
36: ; preds = %34, %._crit_edge
ret void
}
; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #1
attributes #0 = { mustprogress 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #2 = { nounwind willreturn memory(read) }
!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 ([email protected]: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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 6f20e0a0ed1621a9 | conradlee/network-community-benchmark | comm_algs/louvain/main_hierarchy.ll | Z10parse_argsiPPc | BSD-2-Clause |
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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
@display_level = external dso_local global i32, align 4
@filename = external dso_local global ptr, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10parse_argsiPPc(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %"class.std::vector", align 8
%7 = alloca %"class.std::basic_ifstream", align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %"class.std::vector.0", align 8
%14 = alloca %"class.std::allocator.2", align 1
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4, !tbaa !5
store ptr %1, ptr %5, align 8, !tbaa !9
%18 = load i32, ptr %4, align 4, !tbaa !5
%19 = load ptr, ptr %5, align 8, !tbaa !9
call void @_Z10parse_argsiPPc(i32 noundef %18, ptr noundef %19)
call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
call void @llvm.lifetime.start.p0(i64 520, ptr %7) #6
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7)
to label %20 unwind label %52
20: ; preds = %2
%21 = load ptr, ptr @filename, align 8, !tbaa !9
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %7, ptr noundef %21, i32 noundef 8)
to label %22 unwind label %56
22: ; preds = %20
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 -1, ptr %10, align 4, !tbaa !5
br label %23
23: ; preds = %73, %22
%24 = load ptr, ptr %7, align 8, !tbaa !11
%25 = getelementptr i8, ptr %24, i64 -24
%26 = load i64, ptr %25, align 8
%27 = getelementptr inbounds i8, ptr %7, i64 %26
%28 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %27)
to label %29 unwind label %60
29: ; preds = %23
%30 = xor i1 %28, true
br i1 %30, label %31, label %74
31: ; preds = %29
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
%32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %33 unwind label %64
33: ; preds = %31
%34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %35 unwind label %64
35: ; preds = %33
%36 = load ptr, ptr %7, align 8, !tbaa !11
%37 = getelementptr i8, ptr %36, i64 -24
%38 = load i64, ptr %37, align 8
%39 = getelementptr inbounds i8, ptr %7, i64 %38
%40 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %39)
to label %41 unwind label %64
41: ; preds = %35
br i1 %40, label %42, label %73
42: ; preds = %41
%43 = load i32, ptr %11, align 4, !tbaa !5
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %68
45: ; preds = %42
%46 = load i32, ptr %10, align 4, !tbaa !5
%47 = add nsw i32 %46, 1
store i32 %47, ptr %10, align 4, !tbaa !5
%48 = load i32, ptr %10, align 4, !tbaa !5
%49 = add nsw i32 %48, 1
%50 = sext i32 %49 to i64
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %50)
to label %51 unwind label %64
51: ; preds = %45
br label %68
52: ; preds = %2
%53 = landingpad { ptr, i32 }
cleanup
%54 = extractvalue { ptr, i32 } %53, 0
store ptr %54, ptr %8, align 8
%55 = extractvalue { ptr, i32 } %53, 1
store i32 %55, ptr %9, align 4
br label %190
56: ; preds = %20
%57 = landingpad { ptr, i32 }
cleanup
%58 = extractvalue { ptr, i32 } %57, 0
store ptr %58, ptr %8, align 8
%59 = extractvalue { ptr, i32 } %57, 1
store i32 %59, ptr %9, align 4
br label %189
60: ; preds = %184, %89, %23
%61 = landingpad { ptr, i32 }
cleanup
%62 = extractvalue { ptr, i32 } %61, 0
store ptr %62, ptr %8, align 8
%63 = extractvalue { ptr, i32 } %61, 1
store i32 %63, ptr %9, align 4
br label %188
64: ; preds = %68, %45, %35, %33, %31
%65 = landingpad { ptr, i32 }
cleanup
%66 = extractvalue { ptr, i32 } %65, 0
store ptr %66, ptr %8, align 8
%67 = extractvalue { ptr, i32 } %65, 1
store i32 %67, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %188
68: ; preds = %51, %42
%69 = load i32, ptr %10, align 4, !tbaa !5
%70 = sext i32 %69 to i64
%71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %70) #6
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %72 unwind label %64
72: ; preds = %68
br label %73
73: ; preds = %72, %41
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %23, !llvm.loop !13
74: ; preds = %29
%75 = load i32, ptr @display_level, align 4, !tbaa !5
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %81
77: ; preds = %74
%78 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
%79 = sub i64 %78, 1
%80 = trunc i64 %79 to i32
store i32 %80, ptr @display_level, align 4, !tbaa !5
br label %93
81: ; preds = %74
%82 = load i32, ptr @display_level, align 4, !tbaa !5
%83 = icmp slt i32 %82, 0
br i1 %83, label %89, label %84
84: ; preds = %81
%85 = load i32, ptr @display_level, align 4, !tbaa !5
%86 = zext i32 %85 to i64
%87 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
%88 = icmp uge i64 %86, %87
br i1 %88, label %89, label %92
89: ; preds = %84, %81
%90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.13)
to label %91 unwind label %60
91: ; preds = %89
br label %92
92: ; preds = %91, %84
br label %93
93: ; preds = %92, %77
%94 = load i32, ptr @display_level, align 4, !tbaa !5
%95 = icmp sge i32 %94, 0
br i1 %95, label %96, label %184
96: ; preds = %93
call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
%97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #6
%98 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #6
call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %98, ptr noundef nonnull align 1 dereferenceable(1) %14)
to label %99 unwind label %107
99: ; preds = %96
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
store i32 0, ptr %15, align 4, !tbaa !5
br label %100
100: ; preds = %116, %99
%101 = load i32, ptr %15, align 4, !tbaa !5
%102 = zext i32 %101 to i64
%103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #6
%104 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #6
%105 = icmp ult i64 %102, %104
br i1 %105, label %111, label %106
106: ; preds = %100
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
br label %119
107: ; preds = %96
%108 = landingpad { ptr, i32 }
cleanup
%109 = extractvalue { ptr, i32 } %108, 0
store ptr %109, ptr %8, align 8
%110 = extractvalue { ptr, i32 } %108, 1
store i32 %110, ptr %9, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
br label %183
111: ; preds = %100
%112 = load i32, ptr %15, align 4, !tbaa !5
%113 = load i32, ptr %15, align 4, !tbaa !5
%114 = zext i32 %113 to i64
%115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %114) #6
store i32 %112, ptr %115, align 4, !tbaa !5
br label %116
116: ; preds = %111
%117 = load i32, ptr %15, align 4, !tbaa !5
%118 = add i32 %117, 1
store i32 %118, ptr %15, align 4, !tbaa !5
br label %100, !llvm.loop !15
119: ; preds = %106
store i32 0, ptr %10, align 4, !tbaa !5
br label %120
120: ; preds = %150, %119
%121 = load i32, ptr %10, align 4, !tbaa !5
%122 = load i32, ptr @display_level, align 4, !tbaa !5
%123 = icmp slt i32 %121, %122
br i1 %123, label %124, label %153
124: ; preds = %120
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
store i32 0, ptr %16, align 4, !tbaa !5
br label %125
125: ; preds = %146, %124
%126 = load i32, ptr %16, align 4, !tbaa !5
%127 = zext i32 %126 to i64
%128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #6
%129 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #6
%130 = icmp ult i64 %127, %129
br i1 %130, label %132, label %131
131: ; preds = %125
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
br label %149
132: ; preds = %125
%133 = load i32, ptr %10, align 4, !tbaa !5
%134 = sext i32 %133 to i64
%135 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %134) #6
%136 = load i32, ptr %16, align 4, !tbaa !5
%137 = zext i32 %136 to i64
%138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %137) #6
%139 = load i32, ptr %138, align 4, !tbaa !5
%140 = sext i32 %139 to i64
%141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %140) #6
%142 = load i32, ptr %141, align 4, !tbaa !5
%143 = load i32, ptr %16, align 4, !tbaa !5
%144 = zext i32 %143 to i64
%145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %144) #6
store i32 %142, ptr %145, align 4, !tbaa !5
br label %146
146: ; preds = %132
%147 = load i32, ptr %16, align 4, !tbaa !5
%148 = add i32 %147, 1
store i32 %148, ptr %16, align 4, !tbaa !5
br label %125, !llvm.loop !16
149: ; preds = %131
br label %150
150: ; preds = %149
%151 = load i32, ptr %10, align 4, !tbaa !5
%152 = add nsw i32 %151, 1
store i32 %152, ptr %10, align 4, !tbaa !5
br label %120, !llvm.loop !17
153: ; preds = %120
call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
store i32 0, ptr %17, align 4, !tbaa !5
br label %154
154: ; preds = %175, %153
%155 = load i32, ptr %17, align 4, !tbaa !5
%156 = zext i32 %155 to i64
%157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #6
%158 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %157) #6
%159 = icmp ult i64 %156, %158
br i1 %159, label %161, label %160
160: ; preds = %154
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
br label %182
161: ; preds = %154
%162 = load i32, ptr %17, align 4, !tbaa !5
%163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %162)
to label %164 unwind label %178
164: ; preds = %161
%165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef @.str.14)
to label %166 unwind label %178
166: ; preds = %164
%167 = load i32, ptr %17, align 4, !tbaa !5
%168 = zext i32 %167 to i64
%169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %168) #6
%170 = load i32, ptr %169, align 4, !tbaa !5
%171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %165, i32 noundef %170)
to label %172 unwind label %178
172: ; preds = %166
%173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %174 unwind label %178
174: ; preds = %172
br label %175
175: ; preds = %174
%176 = load i32, ptr %17, align 4, !tbaa !5
%177 = add i32 %176, 1
store i32 %177, ptr %17, align 4, !tbaa !5
br label %154, !llvm.loop !18
178: ; preds = %172, %166, %164, %161
%179 = landingpad { ptr, i32 }
cleanup
%180 = extractvalue { ptr, i32 } %179, 0
store ptr %180, ptr %8, align 8
%181 = extractvalue { ptr, i32 } %179, 1
store i32 %181, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
br label %183
182: ; preds = %160
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
br label %184
183: ; preds = %178, %107
call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
br label %188
184: ; preds = %182, %93
%185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %186 unwind label %60
186: ; preds = %184
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #6
call void @llvm.lifetime.end.p0(i64 520, ptr %7) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
%187 = load i32, ptr %3, align 4
ret i32 %187
188: ; preds = %183, %64, %60
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %189
189: ; preds = %188, %56
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #6
br label %190
190: ; preds = %189, %52
call void @llvm.lifetime.end.p0(i64 520, ptr %7) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
br label %191
191: ; preds = %190
%192 = load ptr, ptr %8, align 8
%193 = load i32, ptr %9, align 4
%194 = insertvalue { ptr, i32 } poison, ptr %192, 0
%195 = insertvalue { ptr, i32 } %194, i32 %193, 1
resume { ptr, i32 } %195
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #5
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
attributes #0 = { inlinehint mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
| 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %STRUCT0, %"class.std::__basic_file", i32, %STRUCT3, %STRUCT3, %STRUCT3, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%STRUCT0 = type { %STRUCT1 }
%STRUCT1 = type { i32, i32, i32, i32, i32, i16, i16, %STRUCT2 }
%STRUCT2 = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%STRUCT3 = type { i32, %STRUCT4 }
%STRUCT4 = type { i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
@display_level = external dso_local global i32, align 4
@filename = external dso_local global ptr, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10parse_argsiPPc(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
B0:
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca %"class.std::vector", align 8
%6 = alloca %"class.std::basic_ifstream", align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca %"class.std::vector.0", align 8
%13 = alloca %"class.std::allocator.2", align 1
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, ptr %2, align 4
store i32 %0, ptr %3, align 4, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !9
%17 = load i32, ptr %3, align 4, !tbaa !5
%18 = load ptr, ptr %4, align 8, !tbaa !9
call void @_Z10parse_argsiPPc(i32 noundef %17, ptr noundef %18)
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.start.p0(i64 520, ptr %6) #6
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6)
to label %B1 unwind label %B12
B1:
%19 = load ptr, ptr @filename, align 8, !tbaa !9
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef %19, i32 noundef 8)
to label %B2 unwind label %B13
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 -1, ptr %9, align 4, !tbaa !5
br label %B3
B3:
%20 = load ptr, ptr %6, align 8, !tbaa !11
%21 = getelementptr i8, ptr %20, i64 -24
%22 = load i64, ptr %21, align 8
%23 = getelementptr inbounds i8, ptr %6, i64 %22
%24 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %23)
to label %B4 unwind label %B14
B4:
%25 = xor i1 %24, true
br i1 %25, label %B5, label %B19
B5:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
%26 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %10)
to label %B6 unwind label %B15
B6:
%27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %B7 unwind label %B15
B7:
%28 = load ptr, ptr %6, align 8, !tbaa !11
%29 = getelementptr i8, ptr %28, i64 -24
%30 = load i64, ptr %29, align 8
%31 = getelementptr inbounds i8, ptr %6, i64 %30
%32 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %31)
to label %B8 unwind label %B15
B8:
br i1 %32, label %B9, label %B18
B9:
%33 = load i32, ptr %10, align 4, !tbaa !5
%34 = icmp eq i32 %33, 0
br i1 %34, label %B10, label %B16
B10:
%35 = load i32, ptr %9, align 4, !tbaa !5
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4, !tbaa !5
%37 = load i32, ptr %9, align 4, !tbaa !5
%38 = add nsw i32 %37, 1
%39 = sext i32 %38 to i64
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %39)
to label %B11 unwind label %B15
B11:
br label %B16
B12:
%40 = landingpad { ptr, i32 }
cleanup
%41 = extractvalue { ptr, i32 } %40, 0
store ptr %41, ptr %7, align 8
%42 = extractvalue { ptr, i32 } %40, 1
store i32 %42, ptr %8, align 4
br label %B59
B13:
%43 = landingpad { ptr, i32 }
cleanup
%44 = extractvalue { ptr, i32 } %43, 0
store ptr %44, ptr %7, align 8
%45 = extractvalue { ptr, i32 } %43, 1
store i32 %45, ptr %8, align 4
br label %B58
B14:
%46 = landingpad { ptr, i32 }
cleanup
%47 = extractvalue { ptr, i32 } %46, 0
store ptr %47, ptr %7, align 8
%48 = extractvalue { ptr, i32 } %46, 1
store i32 %48, ptr %8, align 4
br label %B57
B15:
%49 = landingpad { ptr, i32 }
cleanup
%50 = extractvalue { ptr, i32 } %49, 0
store ptr %50, ptr %7, align 8
%51 = extractvalue { ptr, i32 } %49, 1
store i32 %51, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B57
B16:
%52 = load i32, ptr %9, align 4, !tbaa !5
%53 = sext i32 %52 to i64
%54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %53) #6
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %B17 unwind label %B15
B17:
br label %B18
B18:
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B3, !llvm.loop !13
B19:
%55 = load i32, ptr @display_level, align 4, !tbaa !5
%56 = icmp eq i32 %55, -1
br i1 %56, label %B20, label %B21
B20:
%57 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
%58 = sub i64 %57, 1
%59 = trunc i64 %58 to i32
store i32 %59, ptr @display_level, align 4, !tbaa !5
br label %B26
B21:
%60 = load i32, ptr @display_level, align 4, !tbaa !5
%61 = icmp slt i32 %60, 0
br i1 %61, label %B23, label %B22
B22:
%62 = load i32, ptr @display_level, align 4, !tbaa !5
%63 = zext i32 %62 to i64
%64 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
%65 = icmp uge i64 %63, %64
br i1 %65, label %B23, label %B25
B23:
%66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.13)
to label %B24 unwind label %B14
B24:
br label %B25
B25:
br label %B26
B26:
%67 = load i32, ptr @display_level, align 4, !tbaa !5
%68 = icmp sge i32 %67, 0
br i1 %68, label %B27, label %B55
B27:
call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
%69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
%70 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #6
call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %70, ptr noundef nonnull align 1 dereferenceable(1) %13)
to label %B28 unwind label %B31
B28:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
store i32 0, ptr %14, align 4, !tbaa !5
br label %B29
B29:
%71 = load i32, ptr %14, align 4, !tbaa !5
%72 = zext i32 %71 to i64
%73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
%74 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #6
%75 = icmp ult i64 %72, %74
br i1 %75, label %B32, label %B30
B30:
call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
br label %B34
B31:
%76 = landingpad { ptr, i32 }
cleanup
%77 = extractvalue { ptr, i32 } %76, 0
store ptr %77, ptr %7, align 8
%78 = extractvalue { ptr, i32 } %76, 1
store i32 %78, ptr %8, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
br label %B54
B32:
%79 = load i32, ptr %14, align 4, !tbaa !5
%80 = load i32, ptr %14, align 4, !tbaa !5
%81 = zext i32 %80 to i64
%82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %81) #6
store i32 %79, ptr %82, align 4, !tbaa !5
br label %B33
B33:
%83 = load i32, ptr %14, align 4, !tbaa !5
%84 = add i32 %83, 1
store i32 %84, ptr %14, align 4, !tbaa !5
br label %B29, !llvm.loop !15
B34:
store i32 0, ptr %9, align 4, !tbaa !5
br label %B35
B35:
%85 = load i32, ptr %9, align 4, !tbaa !5
%86 = load i32, ptr @display_level, align 4, !tbaa !5
%87 = icmp slt i32 %85, %86
br i1 %87, label %B36, label %B43
B36:
call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
store i32 0, ptr %15, align 4, !tbaa !5
br label %B37
B37:
%88 = load i32, ptr %15, align 4, !tbaa !5
%89 = zext i32 %88 to i64
%90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
%91 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #6
%92 = icmp ult i64 %89, %91
br i1 %92, label %B39, label %B38
B38:
call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
br label %B41
B39:
%93 = load i32, ptr %9, align 4, !tbaa !5
%94 = sext i32 %93 to i64
%95 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %94) #6
%96 = load i32, ptr %15, align 4, !tbaa !5
%97 = zext i32 %96 to i64
%98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %97) #6
%99 = load i32, ptr %98, align 4, !tbaa !5
%100 = sext i32 %99 to i64
%101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %100) #6
%102 = load i32, ptr %101, align 4, !tbaa !5
%103 = load i32, ptr %15, align 4, !tbaa !5
%104 = zext i32 %103 to i64
%105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %104) #6
store i32 %102, ptr %105, align 4, !tbaa !5
br label %B40
B40:
%106 = load i32, ptr %15, align 4, !tbaa !5
%107 = add i32 %106, 1
store i32 %107, ptr %15, align 4, !tbaa !5
br label %B37, !llvm.loop !16
B41:
br label %B42
B42:
%108 = load i32, ptr %9, align 4, !tbaa !5
%109 = add nsw i32 %108, 1
store i32 %109, ptr %9, align 4, !tbaa !5
br label %B35, !llvm.loop !17
B43:
call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
store i32 0, ptr %16, align 4, !tbaa !5
br label %B44
B44:
%110 = load i32, ptr %16, align 4, !tbaa !5
%111 = zext i32 %110 to i64
%112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
%113 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #6
%114 = icmp ult i64 %111, %113
br i1 %114, label %B46, label %B45
B45:
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
br label %B53
B46:
%115 = load i32, ptr %16, align 4, !tbaa !5
%116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %115)
to label %B47 unwind label %B52
B47:
%117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @.str.14)
to label %B48 unwind label %B52
B48:
%118 = load i32, ptr %16, align 4, !tbaa !5
%119 = zext i32 %118 to i64
%120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %119) #6
%121 = load i32, ptr %120, align 4, !tbaa !5
%122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %117, i32 noundef %121)
to label %B49 unwind label %B52
B49:
%123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B50 unwind label %B52
B50:
br label %B51
B51:
%124 = load i32, ptr %16, align 4, !tbaa !5
%125 = add i32 %124, 1
store i32 %125, ptr %16, align 4, !tbaa !5
br label %B44, !llvm.loop !18
B52:
%126 = landingpad { ptr, i32 }
cleanup
%127 = extractvalue { ptr, i32 } %126, 0
store ptr %127, ptr %7, align 8
%128 = extractvalue { ptr, i32 } %126, 1
store i32 %128, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
br label %B54
B53:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
br label %B55
B54:
call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
br label %B57
B55:
%129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B56 unwind label %B14
B56:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #6
call void @llvm.lifetime.end.p0(i64 520, ptr %6) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
%130 = load i32, ptr %2, align 4
ret i32 %130
B57:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B58
B58:
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #6
br label %B59
B59:
call void @llvm.lifetime.end.p0(i64 520, ptr %6) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
br label %B60
B60:
%131 = load ptr, ptr %7, align 8
%132 = load i32, ptr %8, align 4
%133 = insertvalue { ptr, i32 } poison, ptr %131, 0
%134 = insertvalue { ptr, i32 } %133, i32 %132, 1
resume { ptr, i32 } %134
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #1 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #5
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
attributes #0 = { inlinehint mustprogress 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14} | 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"
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
@display_level = external dso_local local_unnamed_addr global i32, align 4
@filename = external dso_local local_unnamed_addr global ptr, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10parse_argsiPPc(i32 noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::basic_ifstream", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca %"class.std::vector.0", align 8
%8 = alloca %"class.std::allocator.2", align 1
tail call void @_Z10parse_argsiPPc(i32 noundef %0, ptr noundef %1)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %4) #6
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4)
to label %9 unwind label %35
9: ; preds = %2
%10 = load ptr, ptr @filename, align 8, !tbaa !5
invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef %10, i32 noundef 8)
to label %.preheader44 unwind label %37
.preheader44: ; preds = %9, %44
%.024 = phi i32 [ %.2, %44 ], [ -1, %9 ]
%11 = load ptr, ptr %4, align 8, !tbaa !9
%12 = getelementptr i8, ptr %11, i64 -24
%13 = load i64, ptr %12, align 8
%14 = getelementptr inbounds i8, ptr %4, i64 %13
%15 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %14)
to label %16 unwind label %.loopexit
16: ; preds = %.preheader44
br i1 %15, label %45, label %17
17: ; preds = %16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
%18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %19 unwind label %39
19: ; preds = %17
%20 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %21 unwind label %39
21: ; preds = %19
%22 = load ptr, ptr %4, align 8, !tbaa !9
%23 = getelementptr i8, ptr %22, i64 -24
%24 = load i64, ptr %23, align 8
%25 = getelementptr inbounds i8, ptr %4, i64 %24
%26 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %25)
to label %27 unwind label %39
27: ; preds = %21
br i1 %26, label %28, label %44
28: ; preds = %27
%29 = load i32, ptr %5, align 4, !tbaa !11
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %41
31: ; preds = %28
%32 = add nsw i32 %.024, 1
%33 = add nsw i32 %.024, 2
%34 = sext i32 %33 to i64
invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %34)
to label %41 unwind label %39
35: ; preds = %2
%36 = landingpad { ptr, i32 }
cleanup
br label %122
37: ; preds = %9
%38 = landingpad { ptr, i32 }
cleanup
br label %121
.loopexit: ; preds = %.preheader44
%lpad.loopexit = landingpad { ptr, i32 }
cleanup
br label %121
.loopexit.split-lp: ; preds = %57, %118
%lpad.loopexit.split-lp = landingpad { ptr, i32 }
cleanup
br label %121
39: ; preds = %41, %31, %21, %19, %17
%40 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
br label %121
41: ; preds = %31, %28
%.1 = phi i32 [ %32, %31 ], [ %.024, %28 ]
%42 = sext i32 %.1 to i64
%43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %42) #6
invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %44 unwind label %39
44: ; preds = %41, %27
%.2 = phi i32 [ %.1, %41 ], [ %.024, %27 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
br label %.preheader44, !llvm.loop !13
45: ; preds = %16
%46 = load i32, ptr @display_level, align 4, !tbaa !11
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %52
48: ; preds = %45
%49 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%50 = trunc i64 %49 to i32
%51 = add i32 %50, -1
store i32 %51, ptr @display_level, align 4, !tbaa !11
br label %59
52: ; preds = %45
%53 = icmp slt i32 %46, 0
br i1 %53, label %57, label %54
54: ; preds = %52
%55 = zext nneg i32 %46 to i64
%56 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%.not = icmp ugt i64 %56, %55
br i1 %.not, label %thread-pre-split, label %57
57: ; preds = %54, %52
%58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.13)
to label %thread-pre-split unwind label %.loopexit.split-lp
thread-pre-split: ; preds = %57, %54
%.pr = load i32, ptr @display_level, align 4, !tbaa !11
br label %59
59: ; preds = %thread-pre-split, %48
%60 = phi i32 [ %.pr, %thread-pre-split ], [ %51, %48 ]
%61 = icmp sgt i32 %60, -1
br i1 %61, label %62, label %118
62: ; preds = %59
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
%63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%64 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #6
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %64, ptr noundef nonnull align 1 dereferenceable(1) %8)
to label %65 unwind label %70
65: ; preds = %62
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
%66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%67 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #6
%.not52 = icmp eq i64 %67, 0
br i1 %.not52, label %.preheader43, label %.lr.ph
.preheader43: ; preds = %.lr.ph, %65
%68 = load i32, ptr @display_level, align 4, !tbaa !11
%69 = icmp sgt i32 %68, 0
br i1 %69, label %.preheader42, label %.preheader
70: ; preds = %62
%71 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
br label %117
.lr.ph: ; preds = %65, %.lr.ph
%72 = phi i64 [ %75, %.lr.ph ], [ 0, %65 ]
%.02345 = phi i32 [ %74, %.lr.ph ], [ 0, %65 ]
%73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %72) #6
store i32 %.02345, ptr %73, align 4, !tbaa !11
%74 = add i32 %.02345, 1
%75 = zext i32 %74 to i64
%76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%77 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #6
%78 = icmp ugt i64 %77, %75
br i1 %78, label %.lr.ph, label %.preheader43, !llvm.loop !15
.preheader42: ; preds = %.preheader43, %._crit_edge
%indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 0, %.preheader43 ]
%79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%80 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #6
%.not53 = icmp eq i64 %80, 0
br i1 %.not53, label %._crit_edge, label %.lr.ph47
.preheader: ; preds = %._crit_edge, %.preheader43
%81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%82 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #6
%.not54 = icmp eq i64 %82, 0
br i1 %.not54, label %._crit_edge51, label %.lr.ph50
._crit_edge: ; preds = %.lr.ph47, %.preheader42
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%83 = load i32, ptr @display_level, align 4, !tbaa !11
%84 = sext i32 %83 to i64
%85 = icmp slt i64 %indvars.iv.next, %84
br i1 %85, label %.preheader42, label %.preheader, !llvm.loop !16
.lr.ph47: ; preds = %.preheader42, %.lr.ph47
%86 = phi i64 [ %95, %.lr.ph47 ], [ 0, %.preheader42 ]
%.02246 = phi i32 [ %94, %.lr.ph47 ], [ 0, %.preheader42 ]
%87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
%88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %86) #6
%89 = load i32, ptr %88, align 4, !tbaa !11
%90 = sext i32 %89 to i64
%91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %90) #6
%92 = load i32, ptr %91, align 4, !tbaa !11
%93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %86) #6
store i32 %92, ptr %93, align 4, !tbaa !11
%94 = add i32 %.02246, 1
%95 = zext i32 %94 to i64
%96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%97 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #6
%98 = icmp ugt i64 %97, %95
br i1 %98, label %.lr.ph47, label %._crit_edge, !llvm.loop !17
._crit_edge51: ; preds = %109, %.preheader
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
br label %118
.lr.ph50: ; preds = %.preheader, %109
%99 = phi i64 [ %111, %109 ], [ 0, %.preheader ]
%.049 = phi i32 [ %110, %109 ], [ 0, %.preheader ]
%100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.049)
to label %101 unwind label %115
101: ; preds = %.lr.ph50
%102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.14)
to label %103 unwind label %115
103: ; preds = %101
%104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %99) #6
%105 = load i32, ptr %104, align 4, !tbaa !11
%106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %102, i32 noundef %105)
to label %107 unwind label %115
107: ; preds = %103
%108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %109 unwind label %115
109: ; preds = %107
%110 = add i32 %.049, 1
%111 = zext i32 %110 to i64
%112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%113 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #6
%114 = icmp ugt i64 %113, %111
br i1 %114, label %.lr.ph50, label %._crit_edge51, !llvm.loop !18
115: ; preds = %107, %103, %101, %.lr.ph50
%116 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
br label %117
117: ; preds = %115, %70
%.pn = phi { ptr, i32 } [ %116, %115 ], [ %71, %70 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
br label %121
118: ; preds = %._crit_edge51, %59
%119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %120 unwind label %.loopexit.split-lp
120: ; preds = %118
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #6
call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
ret i32 0
121: ; preds = %.loopexit, %.loopexit.split-lp, %39, %117, %37
%.pn38.pn = phi { ptr, i32 } [ %38, %37 ], [ %40, %39 ], [ %.pn, %117 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #6
br label %122
122: ; preds = %121, %35
%.pn38.pn.pn = phi { ptr, i32 } [ %.pn38.pn, %121 ], [ %36, %35 ]
call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #6
call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
resume { ptr, i32 } %.pn38.pn.pn
}
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5
; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
attributes #0 = { inlinehint mustprogress 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
!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 ([email protected]: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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
| EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 5750a52a96e32665 | conradlee/network-community-benchmark | comm_algs/louvain | main_hierarchy | BSD-2-Clause |
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"
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sub(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sll(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_and(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_xor(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: nounwind uwtable
define dso_local zeroext i16 @half_div(i16 noundef zeroext %0, i16 noundef zeroext %1) #2 {
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca i16, align 2
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca i16, align 2
%15 = alloca i16, align 2
%16 = alloca i16, align 2
%17 = alloca i16, align 2
%18 = alloca i16, align 2
%19 = alloca i16, align 2
%20 = alloca i16, align 2
%21 = alloca i16, align 2
%22 = alloca i16, align 2
%23 = alloca i16, align 2
%24 = alloca i16, align 2
%25 = alloca i16, align 2
%26 = alloca i16, align 2
%27 = alloca i16, align 2
%28 = alloca i32, align 4
%29 = alloca i16, align 2
store i16 %0, ptr %3, align 2, !tbaa !5
store i16 %1, ptr %4, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %5) #3
store i16 1, ptr %5, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %6) #3
store i16 15, ptr %6, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
store i16 -32768, ptr %7, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %8) #3
store i16 31744, ptr %8, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %9) #3
store i16 1023, ptr %9, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %10) #3
store i16 8192, ptr %10, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %11) #3
store i16 1024, ptr %11, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %12) #3
store i16 10, ptr %12, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %13) #3
store i16 15, ptr %13, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %14) #3
store i16 16384, ptr %14, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %15) #3
store i16 14, ptr %15, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %16) #3
store i16 3, ptr %16, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %17) #3
store i16 -512, ptr %17, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %18) #3
%30 = load i16, ptr %5, align 2, !tbaa !5
%31 = load i16, ptr %16, align 2, !tbaa !5
%32 = call zeroext i16 @uint16_sll(i16 noundef zeroext %30, i16 noundef zeroext %31)
store i16 %32, ptr %18, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %19) #3
%33 = load i16, ptr %18, align 2, !tbaa !5
%34 = load i16, ptr %5, align 2, !tbaa !5
%35 = call zeroext i16 @uint16_sub(i16 noundef zeroext %33, i16 noundef zeroext %34)
store i16 %35, ptr %19, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %20) #3
%36 = load i16, ptr %3, align 2, !tbaa !5
%37 = load i16, ptr %7, align 2, !tbaa !5
%38 = call zeroext i16 @uint16_and(i16 noundef zeroext %36, i16 noundef zeroext %37)
%39 = zext i16 %38 to i32
%40 = load i16, ptr %6, align 2, !tbaa !5
%41 = zext i16 %40 to i32
%42 = ashr i32 %39, %41
%43 = trunc i32 %42 to i16
store i16 %43, ptr %20, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %21) #3
%44 = load i16, ptr %3, align 2, !tbaa !5
%45 = load i16, ptr %8, align 2, !tbaa !5
%46 = call zeroext i16 @uint16_and(i16 noundef zeroext %44, i16 noundef zeroext %45)
%47 = zext i16 %46 to i32
%48 = load i16, ptr %12, align 2, !tbaa !5
%49 = zext i16 %48 to i32
%50 = ashr i32 %47, %49
%51 = trunc i32 %50 to i16
store i16 %51, ptr %21, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %22) #3
%52 = load i16, ptr %3, align 2, !tbaa !5
%53 = load i16, ptr %9, align 2, !tbaa !5
%54 = call zeroext i16 @uint16_and(i16 noundef zeroext %52, i16 noundef zeroext %53)
store i16 %54, ptr %22, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %23) #3
%55 = load i16, ptr %4, align 2, !tbaa !5
%56 = load i16, ptr %7, align 2, !tbaa !5
%57 = call zeroext i16 @uint16_and(i16 noundef zeroext %55, i16 noundef zeroext %56)
%58 = zext i16 %57 to i32
%59 = load i16, ptr %6, align 2, !tbaa !5
%60 = zext i16 %59 to i32
%61 = ashr i32 %58, %60
%62 = trunc i32 %61 to i16
store i16 %62, ptr %23, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %24) #3
%63 = load i16, ptr %4, align 2, !tbaa !5
%64 = load i16, ptr %8, align 2, !tbaa !5
%65 = call zeroext i16 @uint16_and(i16 noundef zeroext %63, i16 noundef zeroext %64)
%66 = zext i16 %65 to i32
%67 = load i16, ptr %12, align 2, !tbaa !5
%68 = zext i16 %67 to i32
%69 = ashr i32 %66, %68
%70 = trunc i32 %69 to i16
store i16 %70, ptr %24, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %25) #3
%71 = load i16, ptr %4, align 2, !tbaa !5
%72 = load i16, ptr %9, align 2, !tbaa !5
%73 = call zeroext i16 @uint16_and(i16 noundef zeroext %71, i16 noundef zeroext %72)
store i16 %73, ptr %25, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %26) #3
%74 = load i16, ptr %20, align 2, !tbaa !5
%75 = load i16, ptr %23, align 2, !tbaa !5
%76 = call zeroext i16 @uint16_xor(i16 noundef zeroext %74, i16 noundef zeroext %75)
store i16 %76, ptr %26, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %27) #3
%77 = load i16, ptr %21, align 2, !tbaa !5
%78 = zext i16 %77 to i32
%79 = load i16, ptr %24, align 2, !tbaa !5
%80 = zext i16 %79 to i32
%81 = sub nsw i32 %78, %80
%82 = add nsw i32 %81, 13
%83 = trunc i32 %82 to i16
store i16 %83, ptr %27, align 2, !tbaa !5
%84 = load i16, ptr %22, align 2, !tbaa !5
%85 = zext i16 %84 to i32
%86 = load i16, ptr %11, align 2, !tbaa !5
%87 = zext i16 %86 to i32
%88 = or i32 %85, %87
%89 = shl i32 %88, 4
%90 = trunc i32 %89 to i16
store i16 %90, ptr %22, align 2, !tbaa !5
%91 = load i16, ptr %25, align 2, !tbaa !5
%92 = zext i16 %91 to i32
%93 = load i16, ptr %11, align 2, !tbaa !5
%94 = zext i16 %93 to i32
%95 = or i32 %92, %94
%96 = shl i32 %95, 5
%97 = trunc i32 %96 to i16
store i16 %97, ptr %25, align 2, !tbaa !5
%98 = load i16, ptr %25, align 2, !tbaa !5
%99 = zext i16 %98 to i32
%100 = load i16, ptr %22, align 2, !tbaa !5
%101 = zext i16 %100 to i32
%102 = load i16, ptr %22, align 2, !tbaa !5
%103 = zext i16 %102 to i32
%104 = add nsw i32 %101, %103
%105 = icmp sle i32 %99, %104
br i1 %105, label %106, label %113
106: ; preds = %2
%107 = load i16, ptr %22, align 2, !tbaa !5
%108 = zext i16 %107 to i32
%109 = ashr i32 %108, 1
%110 = trunc i32 %109 to i16
store i16 %110, ptr %22, align 2, !tbaa !5
%111 = load i16, ptr %27, align 2, !tbaa !5
%112 = add i16 %111, 1
store i16 %112, ptr %27, align 2, !tbaa !5
br label %113
113: ; preds = %106, %2
call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
%114 = load i16, ptr %22, align 2, !tbaa !5
%115 = zext i16 %114 to i32
%116 = shl i32 %115, 16
%117 = load i16, ptr %25, align 2, !tbaa !5
%118 = zext i16 %117 to i32
%119 = udiv i32 %116, %118
store i32 %119, ptr %28, align 4, !tbaa !9
%120 = load i32, ptr %28, align 4, !tbaa !9
%121 = and i32 %120, 31
%122 = icmp eq i32 %121, 0
br i1 %122, label %123, label %137
123: ; preds = %113
%124 = load i16, ptr %25, align 2, !tbaa !5
%125 = zext i16 %124 to i64
%126 = load i32, ptr %28, align 4, !tbaa !9
%127 = zext i32 %126 to i64
%128 = mul i64 %125, %127
%129 = load i16, ptr %22, align 2, !tbaa !5
%130 = zext i16 %129 to i32
%131 = shl i32 %130, 16
%132 = zext i32 %131 to i64
%133 = icmp ne i64 %128, %132
%134 = zext i1 %133 to i32
%135 = load i32, ptr %28, align 4, !tbaa !9
%136 = or i32 %135, %134
store i32 %136, ptr %28, align 4, !tbaa !9
br label %137
137: ; preds = %123, %113
call void @llvm.lifetime.start.p0(i64 2, ptr %29) #3
%138 = load i32, ptr %28, align 4, !tbaa !9
%139 = lshr i32 %138, 4
%140 = load i16, ptr %27, align 2, !tbaa !5
%141 = zext i16 %140 to i32
%142 = load i16, ptr %12, align 2, !tbaa !5
%143 = zext i16 %142 to i32
%144 = shl i32 %141, %143
%145 = or i32 %139, %144
%146 = load i16, ptr %26, align 2, !tbaa !5
%147 = zext i16 %146 to i32
%148 = load i16, ptr %6, align 2, !tbaa !5
%149 = zext i16 %148 to i32
%150 = shl i32 %147, %149
%151 = or i32 %145, %150
%152 = trunc i32 %151 to i16
store i16 %152, ptr %29, align 2, !tbaa !5
%153 = load i16, ptr %29, align 2, !tbaa !5
call void @llvm.lifetime.end.p0(i64 2, ptr %29) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %27) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %26) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %25) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %24) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %23) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %22) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %21) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %20) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %19) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %18) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %17) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %16) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %13) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %12) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %11) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %10) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %9) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %8) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %6) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %5) #3
ret i16 %153
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| 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"
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sub(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sll(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_and(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_xor(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: nounwind uwtable
define dso_local zeroext i16 @half_div(i16 noundef zeroext %0, i16 noundef zeroext %1) #2 {
B0:
%2 = alloca i16, align 2
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca i16, align 2
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca i16, align 2
%15 = alloca i16, align 2
%16 = alloca i16, align 2
%17 = alloca i16, align 2
%18 = alloca i16, align 2
%19 = alloca i16, align 2
%20 = alloca i16, align 2
%21 = alloca i16, align 2
%22 = alloca i16, align 2
%23 = alloca i16, align 2
%24 = alloca i16, align 2
%25 = alloca i16, align 2
%26 = alloca i16, align 2
%27 = alloca i32, align 4
%28 = alloca i16, align 2
store i16 %0, ptr %2, align 2, !tbaa !5
store i16 %1, ptr %3, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %4) #3
store i16 1, ptr %4, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %5) #3
store i16 15, ptr %5, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %6) #3
store i16 -32768, ptr %6, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
store i16 31744, ptr %7, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %8) #3
store i16 1023, ptr %8, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %9) #3
store i16 8192, ptr %9, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %10) #3
store i16 1024, ptr %10, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %11) #3
store i16 10, ptr %11, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %12) #3
store i16 15, ptr %12, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %13) #3
store i16 16384, ptr %13, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %14) #3
store i16 14, ptr %14, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %15) #3
store i16 3, ptr %15, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %16) #3
store i16 -512, ptr %16, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %17) #3
%29 = load i16, ptr %4, align 2, !tbaa !5
%30 = load i16, ptr %15, align 2, !tbaa !5
%31 = call zeroext i16 @uint16_sll(i16 noundef zeroext %29, i16 noundef zeroext %30)
store i16 %31, ptr %17, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %18) #3
%32 = load i16, ptr %17, align 2, !tbaa !5
%33 = load i16, ptr %4, align 2, !tbaa !5
%34 = call zeroext i16 @uint16_sub(i16 noundef zeroext %32, i16 noundef zeroext %33)
store i16 %34, ptr %18, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %19) #3
%35 = load i16, ptr %2, align 2, !tbaa !5
%36 = load i16, ptr %6, align 2, !tbaa !5
%37 = call zeroext i16 @uint16_and(i16 noundef zeroext %35, i16 noundef zeroext %36)
%38 = zext i16 %37 to i32
%39 = load i16, ptr %5, align 2, !tbaa !5
%40 = zext i16 %39 to i32
%41 = ashr i32 %38, %40
%42 = trunc i32 %41 to i16
store i16 %42, ptr %19, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %20) #3
%43 = load i16, ptr %2, align 2, !tbaa !5
%44 = load i16, ptr %7, align 2, !tbaa !5
%45 = call zeroext i16 @uint16_and(i16 noundef zeroext %43, i16 noundef zeroext %44)
%46 = zext i16 %45 to i32
%47 = load i16, ptr %11, align 2, !tbaa !5
%48 = zext i16 %47 to i32
%49 = ashr i32 %46, %48
%50 = trunc i32 %49 to i16
store i16 %50, ptr %20, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %21) #3
%51 = load i16, ptr %2, align 2, !tbaa !5
%52 = load i16, ptr %8, align 2, !tbaa !5
%53 = call zeroext i16 @uint16_and(i16 noundef zeroext %51, i16 noundef zeroext %52)
store i16 %53, ptr %21, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %22) #3
%54 = load i16, ptr %3, align 2, !tbaa !5
%55 = load i16, ptr %6, align 2, !tbaa !5
%56 = call zeroext i16 @uint16_and(i16 noundef zeroext %54, i16 noundef zeroext %55)
%57 = zext i16 %56 to i32
%58 = load i16, ptr %5, align 2, !tbaa !5
%59 = zext i16 %58 to i32
%60 = ashr i32 %57, %59
%61 = trunc i32 %60 to i16
store i16 %61, ptr %22, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %23) #3
%62 = load i16, ptr %3, align 2, !tbaa !5
%63 = load i16, ptr %7, align 2, !tbaa !5
%64 = call zeroext i16 @uint16_and(i16 noundef zeroext %62, i16 noundef zeroext %63)
%65 = zext i16 %64 to i32
%66 = load i16, ptr %11, align 2, !tbaa !5
%67 = zext i16 %66 to i32
%68 = ashr i32 %65, %67
%69 = trunc i32 %68 to i16
store i16 %69, ptr %23, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %24) #3
%70 = load i16, ptr %3, align 2, !tbaa !5
%71 = load i16, ptr %8, align 2, !tbaa !5
%72 = call zeroext i16 @uint16_and(i16 noundef zeroext %70, i16 noundef zeroext %71)
store i16 %72, ptr %24, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %25) #3
%73 = load i16, ptr %19, align 2, !tbaa !5
%74 = load i16, ptr %22, align 2, !tbaa !5
%75 = call zeroext i16 @uint16_xor(i16 noundef zeroext %73, i16 noundef zeroext %74)
store i16 %75, ptr %25, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %26) #3
%76 = load i16, ptr %20, align 2, !tbaa !5
%77 = zext i16 %76 to i32
%78 = load i16, ptr %23, align 2, !tbaa !5
%79 = zext i16 %78 to i32
%80 = sub nsw i32 %77, %79
%81 = add nsw i32 %80, 13
%82 = trunc i32 %81 to i16
store i16 %82, ptr %26, align 2, !tbaa !5
%83 = load i16, ptr %21, align 2, !tbaa !5
%84 = zext i16 %83 to i32
%85 = load i16, ptr %10, align 2, !tbaa !5
%86 = zext i16 %85 to i32
%87 = or i32 %84, %86
%88 = shl i32 %87, 4
%89 = trunc i32 %88 to i16
store i16 %89, ptr %21, align 2, !tbaa !5
%90 = load i16, ptr %24, align 2, !tbaa !5
%91 = zext i16 %90 to i32
%92 = load i16, ptr %10, align 2, !tbaa !5
%93 = zext i16 %92 to i32
%94 = or i32 %91, %93
%95 = shl i32 %94, 5
%96 = trunc i32 %95 to i16
store i16 %96, ptr %24, align 2, !tbaa !5
%97 = load i16, ptr %24, align 2, !tbaa !5
%98 = zext i16 %97 to i32
%99 = load i16, ptr %21, align 2, !tbaa !5
%100 = zext i16 %99 to i32
%101 = load i16, ptr %21, align 2, !tbaa !5
%102 = zext i16 %101 to i32
%103 = add nsw i32 %100, %102
%104 = icmp sle i32 %98, %103
br i1 %104, label %B1, label %B2
B1:
%105 = load i16, ptr %21, align 2, !tbaa !5
%106 = zext i16 %105 to i32
%107 = ashr i32 %106, 1
%108 = trunc i32 %107 to i16
store i16 %108, ptr %21, align 2, !tbaa !5
%109 = load i16, ptr %26, align 2, !tbaa !5
%110 = add i16 %109, 1
store i16 %110, ptr %26, align 2, !tbaa !5
br label %B2
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
%111 = load i16, ptr %21, align 2, !tbaa !5
%112 = zext i16 %111 to i32
%113 = shl i32 %112, 16
%114 = load i16, ptr %24, align 2, !tbaa !5
%115 = zext i16 %114 to i32
%116 = udiv i32 %113, %115
store i32 %116, ptr %27, align 4, !tbaa !9
%117 = load i32, ptr %27, align 4, !tbaa !9
%118 = and i32 %117, 31
%119 = icmp eq i32 %118, 0
br i1 %119, label %B3, label %B4
B3:
%120 = load i16, ptr %24, align 2, !tbaa !5
%121 = zext i16 %120 to i64
%122 = load i32, ptr %27, align 4, !tbaa !9
%123 = zext i32 %122 to i64
%124 = mul i64 %121, %123
%125 = load i16, ptr %21, align 2, !tbaa !5
%126 = zext i16 %125 to i32
%127 = shl i32 %126, 16
%128 = zext i32 %127 to i64
%129 = icmp ne i64 %124, %128
%130 = zext i1 %129 to i32
%131 = load i32, ptr %27, align 4, !tbaa !9
%132 = or i32 %131, %130
store i32 %132, ptr %27, align 4, !tbaa !9
br label %B4
B4:
call void @llvm.lifetime.start.p0(i64 2, ptr %28) #3
%133 = load i32, ptr %27, align 4, !tbaa !9
%134 = lshr i32 %133, 4
%135 = load i16, ptr %26, align 2, !tbaa !5
%136 = zext i16 %135 to i32
%137 = load i16, ptr %11, align 2, !tbaa !5
%138 = zext i16 %137 to i32
%139 = shl i32 %136, %138
%140 = or i32 %134, %139
%141 = load i16, ptr %25, align 2, !tbaa !5
%142 = zext i16 %141 to i32
%143 = load i16, ptr %5, align 2, !tbaa !5
%144 = zext i16 %143 to i32
%145 = shl i32 %142, %144
%146 = or i32 %140, %145
%147 = trunc i32 %146 to i16
store i16 %147, ptr %28, align 2, !tbaa !5
%148 = load i16, ptr %28, align 2, !tbaa !5
call void @llvm.lifetime.end.p0(i64 2, ptr %28) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %26) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %25) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %24) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %23) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %22) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %21) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %20) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %19) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %18) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %17) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %16) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %13) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %12) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %11) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %10) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %9) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %8) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %6) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %5) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %4) #3
ret i16 %148
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0} | 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"
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sub(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sll(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_and(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_xor(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: nounwind uwtable
define dso_local zeroext i16 @half_div(i16 noundef zeroext %0, i16 noundef zeroext %1) local_unnamed_addr #1 {
%3 = tail call zeroext i16 @uint16_sll(i16 noundef zeroext 1, i16 noundef zeroext 3)
%4 = tail call zeroext i16 @uint16_sub(i16 noundef zeroext %3, i16 noundef zeroext 1)
%5 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %0, i16 noundef zeroext -32768)
%6 = lshr i16 %5, 15
%7 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %0, i16 noundef zeroext 31744)
%8 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %0, i16 noundef zeroext 1023)
%9 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %1, i16 noundef zeroext -32768)
%10 = lshr i16 %9, 15
%11 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %1, i16 noundef zeroext 31744)
%12 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %1, i16 noundef zeroext 1023)
%13 = tail call zeroext i16 @uint16_xor(i16 noundef zeroext %6, i16 noundef zeroext %10)
%14 = shl i16 %8, 4
%15 = or i16 %14, 16384
%16 = shl i16 %12, 5
%17 = or i16 %16, -32768
%18 = zext i16 %17 to i32
%19 = zext i16 %15 to i32
%20 = shl nuw nsw i32 %19, 1
%.not = icmp uge i32 %20, %18
%21 = zext i1 %.not to i16
%.0 = lshr exact i16 %15, %21
%22 = zext i16 %.0 to i32
%23 = shl nuw i32 %22, 16
%24 = udiv i32 %23, %18
%25 = lshr i16 %7, 10
%26 = lshr i16 %11, 10
%27 = sub nsw i16 %25, %26
%.047.v = select i1 %.not, i16 14, i16 13
%.047 = add nsw i16 %27, %.047.v
%28 = lshr i32 %24, 4
%29 = zext i16 %.047 to i32
%30 = shl nuw nsw i32 %29, 10
%31 = zext i16 %13 to i32
%32 = shl nuw nsw i32 %31, 15
%33 = or i32 %30, %32
%34 = or i32 %33, %28
%35 = trunc i32 %34 to i16
ret i16 %35
}
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
| ADCEPass,BDCEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass | d891218a26770c05 | pkurth/D3D12Renderer | ext/half | half | MIT |
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"
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sub(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_cntlz(i16 noundef zeroext) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sll(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_and(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_xor(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: nounwind uwtable
define dso_local zeroext i16 @half_mul(i16 noundef zeroext %0, i16 noundef zeroext %1) #2 {
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca i16, align 2
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca i16, align 2
%15 = alloca i16, align 2
%16 = alloca i16, align 2
%17 = alloca i16, align 2
%18 = alloca i16, align 2
%19 = alloca i16, align 2
%20 = alloca i16, align 2
%21 = alloca i16, align 2
%22 = alloca i16, align 2
%23 = alloca i16, align 2
%24 = alloca i16, align 2
%25 = alloca i16, align 2
%26 = alloca i16, align 2
%27 = alloca i16, align 2
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i16, align 2
%31 = alloca i16, align 2
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i16, align 2
%35 = alloca i16, align 2
store i16 %0, ptr %4, align 2, !tbaa !5
store i16 %1, ptr %5, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %6) #3
store i16 1, ptr %6, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
store i16 -32768, ptr %7, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %8) #3
store i16 31744, ptr %8, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %9) #3
store i16 1023, ptr %9, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %10) #3
store i16 8192, ptr %10, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %11) #3
store i16 1024, ptr %11, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %12) #3
store i16 10, ptr %12, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %13) #3
store i16 15, ptr %13, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %14) #3
store i16 16384, ptr %14, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %15) #3
store i16 14, ptr %15, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %16) #3
store i16 3, ptr %16, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %17) #3
store i16 -512, ptr %17, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %18) #3
%36 = load i16, ptr %6, align 2, !tbaa !5
%37 = load i16, ptr %16, align 2, !tbaa !5
%38 = call zeroext i16 @uint16_sll(i16 noundef zeroext %36, i16 noundef zeroext %37)
store i16 %38, ptr %18, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %19) #3
%39 = load i16, ptr %18, align 2, !tbaa !5
%40 = load i16, ptr %6, align 2, !tbaa !5
%41 = call zeroext i16 @uint16_sub(i16 noundef zeroext %39, i16 noundef zeroext %40)
store i16 %41, ptr %19, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %20) #3
%42 = load i16, ptr %4, align 2, !tbaa !5
%43 = load i16, ptr %7, align 2, !tbaa !5
%44 = call zeroext i16 @uint16_and(i16 noundef zeroext %42, i16 noundef zeroext %43)
store i16 %44, ptr %20, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %21) #3
%45 = load i16, ptr %4, align 2, !tbaa !5
%46 = load i16, ptr %8, align 2, !tbaa !5
%47 = call zeroext i16 @uint16_and(i16 noundef zeroext %45, i16 noundef zeroext %46)
store i16 %47, ptr %21, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %22) #3
%48 = load i16, ptr %4, align 2, !tbaa !5
%49 = load i16, ptr %9, align 2, !tbaa !5
%50 = call zeroext i16 @uint16_and(i16 noundef zeroext %48, i16 noundef zeroext %49)
store i16 %50, ptr %22, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %23) #3
%51 = load i16, ptr %5, align 2, !tbaa !5
%52 = load i16, ptr %7, align 2, !tbaa !5
%53 = call zeroext i16 @uint16_and(i16 noundef zeroext %51, i16 noundef zeroext %52)
store i16 %53, ptr %23, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %24) #3
%54 = load i16, ptr %5, align 2, !tbaa !5
%55 = load i16, ptr %8, align 2, !tbaa !5
%56 = call zeroext i16 @uint16_and(i16 noundef zeroext %54, i16 noundef zeroext %55)
store i16 %56, ptr %24, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %25) #3
%57 = load i16, ptr %5, align 2, !tbaa !5
%58 = load i16, ptr %9, align 2, !tbaa !5
%59 = call zeroext i16 @uint16_and(i16 noundef zeroext %57, i16 noundef zeroext %58)
store i16 %59, ptr %25, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %26) #3
%60 = load i16, ptr %20, align 2, !tbaa !5
%61 = load i16, ptr %23, align 2, !tbaa !5
%62 = call zeroext i16 @uint16_xor(i16 noundef zeroext %60, i16 noundef zeroext %61)
store i16 %62, ptr %26, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %27) #3
call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
%63 = load i16, ptr %21, align 2, !tbaa !5
%64 = zext i16 %63 to i32
%65 = load i16, ptr %8, align 2, !tbaa !5
%66 = zext i16 %65 to i32
%67 = icmp eq i32 %64, %66
br i1 %67, label %68, label %112
68: ; preds = %2
%69 = load i16, ptr %20, align 2, !tbaa !5
%70 = zext i16 %69 to i32
%71 = icmp ne i32 %70, 0
br i1 %71, label %82, label %72
72: ; preds = %68
%73 = load i16, ptr %24, align 2, !tbaa !5
%74 = zext i16 %73 to i32
%75 = load i16, ptr %8, align 2, !tbaa !5
%76 = zext i16 %75 to i32
%77 = icmp eq i32 %74, %76
br i1 %77, label %78, label %92
78: ; preds = %72
%79 = load i16, ptr %25, align 2, !tbaa !5
%80 = zext i16 %79 to i32
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %92
82: ; preds = %78, %68
%83 = load i16, ptr %20, align 2, !tbaa !5
%84 = zext i16 %83 to i32
%85 = load i16, ptr %8, align 2, !tbaa !5
%86 = zext i16 %85 to i32
%87 = or i32 %84, %86
%88 = load i16, ptr %22, align 2, !tbaa !5
%89 = zext i16 %88 to i32
%90 = or i32 %87, %89
%91 = trunc i32 %90 to i16
store i16 %91, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
92: ; preds = %78, %72
%93 = load i16, ptr %24, align 2, !tbaa !5
%94 = zext i16 %93 to i32
%95 = load i16, ptr %25, align 2, !tbaa !5
%96 = zext i16 %95 to i32
%97 = or i32 %94, %96
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %104
99: ; preds = %92
%100 = load i16, ptr %8, align 2, !tbaa !5
%101 = zext i16 %100 to i32
%102 = or i32 %101, 1
%103 = trunc i32 %102 to i16
store i16 %103, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
104: ; preds = %92
%105 = load i16, ptr %26, align 2, !tbaa !5
%106 = zext i16 %105 to i32
%107 = load i16, ptr %8, align 2, !tbaa !5
%108 = zext i16 %107 to i32
%109 = or i32 %106, %108
%110 = or i32 %109, 0
%111 = trunc i32 %110 to i16
store i16 %111, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
112: ; preds = %2
%113 = load i16, ptr %24, align 2, !tbaa !5
%114 = zext i16 %113 to i32
%115 = load i16, ptr %8, align 2, !tbaa !5
%116 = zext i16 %115 to i32
%117 = icmp eq i32 %114, %116
br i1 %117, label %118, label %151
118: ; preds = %112
%119 = load i16, ptr %25, align 2, !tbaa !5
%120 = icmp ne i16 %119, 0
br i1 %120, label %121, label %131
121: ; preds = %118
%122 = load i16, ptr %20, align 2, !tbaa !5
%123 = zext i16 %122 to i32
%124 = load i16, ptr %8, align 2, !tbaa !5
%125 = zext i16 %124 to i32
%126 = or i32 %123, %125
%127 = load i16, ptr %22, align 2, !tbaa !5
%128 = zext i16 %127 to i32
%129 = or i32 %126, %128
%130 = trunc i32 %129 to i16
store i16 %130, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
131: ; preds = %118
%132 = load i16, ptr %21, align 2, !tbaa !5
%133 = zext i16 %132 to i32
%134 = load i16, ptr %22, align 2, !tbaa !5
%135 = zext i16 %134 to i32
%136 = or i32 %133, %135
%137 = icmp eq i32 %136, 0
br i1 %137, label %138, label %143
138: ; preds = %131
%139 = load i16, ptr %8, align 2, !tbaa !5
%140 = zext i16 %139 to i32
%141 = or i32 %140, 1
%142 = trunc i32 %141 to i16
store i16 %142, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
143: ; preds = %131
%144 = load i16, ptr %26, align 2, !tbaa !5
%145 = zext i16 %144 to i32
%146 = load i16, ptr %8, align 2, !tbaa !5
%147 = zext i16 %146 to i32
%148 = or i32 %145, %147
%149 = or i32 %148, 0
%150 = trunc i32 %149 to i16
store i16 %150, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
151: ; preds = %112
%152 = load i16, ptr %21, align 2, !tbaa !5
%153 = zext i16 %152 to i32
%154 = icmp eq i32 %153, 0
br i1 %154, label %155, label %162
155: ; preds = %151
call void @llvm.lifetime.start.p0(i64 2, ptr %30) #3
%156 = load i16, ptr %24, align 2, !tbaa !5
store i16 %156, ptr %30, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %31) #3
%157 = load i16, ptr %25, align 2, !tbaa !5
store i16 %157, ptr %31, align 2, !tbaa !5
%158 = load i16, ptr %21, align 2, !tbaa !5
store i16 %158, ptr %24, align 2, !tbaa !5
%159 = load i16, ptr %22, align 2, !tbaa !5
store i16 %159, ptr %25, align 2, !tbaa !5
%160 = load i16, ptr %30, align 2, !tbaa !5
store i16 %160, ptr %21, align 2, !tbaa !5
%161 = load i16, ptr %31, align 2, !tbaa !5
store i16 %161, ptr %22, align 2, !tbaa !5
call void @llvm.lifetime.end.p0(i64 2, ptr %31) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %30) #3
br label %162
162: ; preds = %155, %151
%163 = load i16, ptr %24, align 2, !tbaa !5
%164 = zext i16 %163 to i32
%165 = icmp eq i32 %164, 0
br i1 %165, label %166, label %215
166: ; preds = %162
%167 = load i16, ptr %25, align 2, !tbaa !5
%168 = zext i16 %167 to i32
%169 = icmp eq i32 %168, 0
br i1 %169, label %170, label %172
170: ; preds = %166
%171 = load i16, ptr %26, align 2, !tbaa !5
store i16 %171, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
172: ; preds = %166
%173 = load i16, ptr %22, align 2, !tbaa !5
%174 = zext i16 %173 to i32
%175 = load i16, ptr %11, align 2, !tbaa !5
%176 = zext i16 %175 to i32
%177 = or i32 %174, %176
%178 = trunc i32 %177 to i16
store i16 %178, ptr %22, align 2, !tbaa !5
%179 = load i16, ptr %22, align 2, !tbaa !5
%180 = zext i16 %179 to i32
%181 = load i16, ptr %25, align 2, !tbaa !5
%182 = zext i16 %181 to i32
%183 = mul i32 %180, %182
store i32 %183, ptr %28, align 4, !tbaa !9
store i16 0, ptr %27, align 2, !tbaa !5
%184 = load i16, ptr %21, align 2, !tbaa !5
%185 = zext i16 %184 to i32
%186 = load i16, ptr %12, align 2, !tbaa !5
%187 = zext i16 %186 to i32
%188 = ashr i32 %185, %187
%189 = trunc i32 %188 to i16
store i16 %189, ptr %21, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
%190 = load i16, ptr %13, align 2, !tbaa !5
%191 = zext i16 %190 to i32
%192 = load i16, ptr %21, align 2, !tbaa !5
%193 = zext i16 %192 to i32
%194 = sub nsw i32 %191, %193
store i32 %194, ptr %32, align 4, !tbaa !9
%195 = load i32, ptr %28, align 4, !tbaa !9
%196 = load i16, ptr %9, align 2, !tbaa !5
%197 = zext i16 %196 to i32
%198 = and i32 %195, %197
%199 = load i32, ptr %28, align 4, !tbaa !9
%200 = add i32 %199, %198
store i32 %200, ptr %28, align 4, !tbaa !9
%201 = load i32, ptr %28, align 4, !tbaa !9
%202 = lshr i32 %201, 10
store i32 %202, ptr %28, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
%203 = load i32, ptr %32, align 4, !tbaa !9
store i32 %203, ptr %33, align 4, !tbaa !9
%204 = load i32, ptr %33, align 4, !tbaa !9
%205 = load i32, ptr %28, align 4, !tbaa !9
%206 = lshr i32 %205, %204
store i32 %206, ptr %28, align 4, !tbaa !9
%207 = load i32, ptr %28, align 4, !tbaa !9
%208 = and i32 %207, 1023
store i32 %208, ptr %28, align 4, !tbaa !9
%209 = load i16, ptr %23, align 2, !tbaa !5
%210 = zext i16 %209 to i32
%211 = or i32 %210, 0
%212 = load i32, ptr %28, align 4, !tbaa !9
%213 = or i32 %211, %212
%214 = trunc i32 %213 to i16
store i16 %214, ptr %3, align 2
store i32 1, ptr %29, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
br label %373
215: ; preds = %162
%216 = load i16, ptr %21, align 2, !tbaa !5
%217 = zext i16 %216 to i32
%218 = load i16, ptr %12, align 2, !tbaa !5
%219 = zext i16 %218 to i32
%220 = ashr i32 %217, %219
%221 = trunc i32 %220 to i16
store i16 %221, ptr %21, align 2, !tbaa !5
%222 = load i16, ptr %24, align 2, !tbaa !5
%223 = zext i16 %222 to i32
%224 = load i16, ptr %12, align 2, !tbaa !5
%225 = zext i16 %224 to i32
%226 = ashr i32 %223, %225
%227 = trunc i32 %226 to i16
store i16 %227, ptr %24, align 2, !tbaa !5
%228 = load i16, ptr %22, align 2, !tbaa !5
%229 = zext i16 %228 to i32
%230 = load i16, ptr %11, align 2, !tbaa !5
%231 = zext i16 %230 to i32
%232 = or i32 %229, %231
%233 = trunc i32 %232 to i16
store i16 %233, ptr %22, align 2, !tbaa !5
%234 = load i16, ptr %25, align 2, !tbaa !5
%235 = zext i16 %234 to i32
%236 = load i16, ptr %11, align 2, !tbaa !5
%237 = zext i16 %236 to i32
%238 = or i32 %235, %237
%239 = trunc i32 %238 to i16
store i16 %239, ptr %25, align 2, !tbaa !5
%240 = load i16, ptr %22, align 2, !tbaa !5
%241 = zext i16 %240 to i32
%242 = load i16, ptr %25, align 2, !tbaa !5
%243 = zext i16 %242 to i32
%244 = mul i32 %241, %243
store i32 %244, ptr %28, align 4, !tbaa !9
%245 = load i16, ptr %21, align 2, !tbaa !5
%246 = zext i16 %245 to i32
%247 = load i16, ptr %24, align 2, !tbaa !5
%248 = zext i16 %247 to i32
%249 = add nsw i32 %246, %248
%250 = load i16, ptr %13, align 2, !tbaa !5
%251 = zext i16 %250 to i32
%252 = sub nsw i32 %249, %251
%253 = icmp slt i32 %252, 0
br i1 %253, label %254, label %270
254: ; preds = %215
store i16 0, ptr %27, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %34) #3
%255 = load i16, ptr %21, align 2, !tbaa !5
%256 = zext i16 %255 to i32
%257 = load i16, ptr %24, align 2, !tbaa !5
%258 = zext i16 %257 to i32
%259 = add nsw i32 %256, %258
%260 = load i16, ptr %13, align 2, !tbaa !5
%261 = zext i16 %260 to i32
%262 = sub nsw i32 %259, %261
%263 = sub nsw i32 0, %262
%264 = trunc i32 %263 to i16
store i16 %264, ptr %34, align 2, !tbaa !5
%265 = load i16, ptr %34, align 2, !tbaa !5
%266 = zext i16 %265 to i32
%267 = shl i32 %266, 1
%268 = load i32, ptr %28, align 4, !tbaa !9
%269 = lshr i32 %268, %267
store i32 %269, ptr %28, align 4, !tbaa !9
call void @llvm.lifetime.end.p0(i64 2, ptr %34) #3
br label %280
270: ; preds = %215
%271 = load i16, ptr %21, align 2, !tbaa !5
%272 = zext i16 %271 to i32
%273 = load i16, ptr %24, align 2, !tbaa !5
%274 = zext i16 %273 to i32
%275 = add nsw i32 %272, %274
%276 = load i16, ptr %13, align 2, !tbaa !5
%277 = zext i16 %276 to i32
%278 = sub nsw i32 %275, %277
%279 = trunc i32 %278 to i16
store i16 %279, ptr %27, align 2, !tbaa !5
br label %280
280: ; preds = %270, %254
%281 = load i16, ptr %27, align 2, !tbaa !5
%282 = zext i16 %281 to i32
%283 = and i32 %282, 32
%284 = icmp ne i32 %283, 0
br i1 %284, label %285, label %293
285: ; preds = %280
%286 = load i16, ptr %26, align 2, !tbaa !5
%287 = zext i16 %286 to i32
%288 = load i16, ptr %8, align 2, !tbaa !5
%289 = zext i16 %288 to i32
%290 = or i32 %287, %289
%291 = or i32 %290, 0
%292 = trunc i32 %291 to i16
store i16 %292, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
293: ; preds = %280
%294 = load i16, ptr %27, align 2, !tbaa !5
%295 = zext i16 %294 to i32
%296 = add nsw i32 %295, 1
%297 = trunc i32 %296 to i16
store i16 %297, ptr %27, align 2, !tbaa !5
%298 = load i32, ptr %28, align 4, !tbaa !9
%299 = lshr i32 %298, 1
store i32 %299, ptr %28, align 4, !tbaa !9
%300 = load i32, ptr %28, align 4, !tbaa !9
%301 = and i32 %300, 1048576
%302 = icmp eq i32 %301, 0
br i1 %302, label %303, label %331
303: ; preds = %293
call void @llvm.lifetime.start.p0(i64 2, ptr %35) #3
%304 = load i32, ptr %28, align 4, !tbaa !9
%305 = lshr i32 %304, 5
%306 = trunc i32 %305 to i16
%307 = call zeroext i16 @uint16_cntlz(i16 noundef zeroext %306)
store i16 %307, ptr %35, align 2, !tbaa !5
%308 = load i16, ptr %35, align 2, !tbaa !5
%309 = zext i16 %308 to i32
%310 = load i16, ptr %27, align 2, !tbaa !5
%311 = zext i16 %310 to i32
%312 = icmp sge i32 %309, %311
br i1 %312, label %313, label %319
313: ; preds = %303
%314 = load i16, ptr %35, align 2, !tbaa !5
%315 = zext i16 %314 to i32
%316 = ashr i32 %315, 1
%317 = load i32, ptr %28, align 4, !tbaa !9
%318 = shl i32 %317, %316
store i32 %318, ptr %28, align 4, !tbaa !9
store i16 0, ptr %27, align 2, !tbaa !5
br label %330
319: ; preds = %303
%320 = load i16, ptr %35, align 2, !tbaa !5
%321 = zext i16 %320 to i32
%322 = load i16, ptr %27, align 2, !tbaa !5
%323 = zext i16 %322 to i32
%324 = sub nsw i32 %323, %321
%325 = trunc i32 %324 to i16
store i16 %325, ptr %27, align 2, !tbaa !5
%326 = load i16, ptr %35, align 2, !tbaa !5
%327 = zext i16 %326 to i32
%328 = load i32, ptr %28, align 4, !tbaa !9
%329 = shl i32 %328, %327
store i32 %329, ptr %28, align 4, !tbaa !9
br label %330
330: ; preds = %319, %313
call void @llvm.lifetime.end.p0(i64 2, ptr %35) #3
br label %331
331: ; preds = %330, %293
%332 = load i32, ptr %28, align 4, !tbaa !9
%333 = load i16, ptr %9, align 2, !tbaa !5
%334 = zext i16 %333 to i32
%335 = and i32 %332, %334
%336 = load i32, ptr %28, align 4, !tbaa !9
%337 = add i32 %336, %335
store i32 %337, ptr %28, align 4, !tbaa !9
%338 = load i16, ptr %27, align 2, !tbaa !5
%339 = zext i16 %338 to i32
%340 = and i32 %339, 32
%341 = icmp ne i32 %340, 0
br i1 %341, label %342, label %350
342: ; preds = %331
%343 = load i16, ptr %26, align 2, !tbaa !5
%344 = zext i16 %343 to i32
%345 = load i16, ptr %8, align 2, !tbaa !5
%346 = zext i16 %345 to i32
%347 = or i32 %344, %346
%348 = or i32 %347, 0
%349 = trunc i32 %348 to i16
store i16 %349, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
350: ; preds = %331
%351 = load i32, ptr %28, align 4, !tbaa !9
%352 = lshr i32 %351, 10
store i32 %352, ptr %28, align 4, !tbaa !9
%353 = load i32, ptr %28, align 4, !tbaa !9
%354 = and i32 %353, 1023
store i32 %354, ptr %28, align 4, !tbaa !9
%355 = load i16, ptr %27, align 2, !tbaa !5
%356 = zext i16 %355 to i32
%357 = and i32 %356, 31
%358 = trunc i32 %357 to i16
store i16 %358, ptr %27, align 2, !tbaa !5
%359 = load i16, ptr %27, align 2, !tbaa !5
%360 = zext i16 %359 to i32
%361 = load i16, ptr %12, align 2, !tbaa !5
%362 = zext i16 %361 to i32
%363 = shl i32 %360, %362
%364 = trunc i32 %363 to i16
store i16 %364, ptr %27, align 2, !tbaa !5
%365 = load i16, ptr %26, align 2, !tbaa !5
%366 = zext i16 %365 to i32
%367 = load i16, ptr %27, align 2, !tbaa !5
%368 = zext i16 %367 to i32
%369 = or i32 %366, %368
%370 = load i32, ptr %28, align 4, !tbaa !9
%371 = or i32 %369, %370
%372 = trunc i32 %371 to i16
store i16 %372, ptr %3, align 2
store i32 1, ptr %29, align 4
br label %373
373: ; preds = %350, %342, %285, %172, %170, %143, %138, %121, %104, %99, %82
call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %27) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %26) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %25) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %24) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %23) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %22) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %21) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %20) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %19) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %18) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %17) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %16) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %13) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %12) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %11) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %10) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %9) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %8) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %6) #3
%374 = load i16, ptr %3, align 2
ret i16 %374
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| 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"
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sub(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_cntlz(i16 noundef zeroext) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sll(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_and(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_xor(i16 noundef zeroext, i16 noundef zeroext) #1
; Function Attrs: nounwind uwtable
define dso_local zeroext i16 @half_mul(i16 noundef zeroext %0, i16 noundef zeroext %1) #2 {
B0:
%2 = alloca i16, align 2
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca i16, align 2
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca i16, align 2
%15 = alloca i16, align 2
%16 = alloca i16, align 2
%17 = alloca i16, align 2
%18 = alloca i16, align 2
%19 = alloca i16, align 2
%20 = alloca i16, align 2
%21 = alloca i16, align 2
%22 = alloca i16, align 2
%23 = alloca i16, align 2
%24 = alloca i16, align 2
%25 = alloca i16, align 2
%26 = alloca i16, align 2
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i16, align 2
%30 = alloca i16, align 2
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i16, align 2
%34 = alloca i16, align 2
store i16 %0, ptr %3, align 2, !tbaa !5
store i16 %1, ptr %4, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %5) #3
store i16 1, ptr %5, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %6) #3
store i16 -32768, ptr %6, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
store i16 31744, ptr %7, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %8) #3
store i16 1023, ptr %8, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %9) #3
store i16 8192, ptr %9, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %10) #3
store i16 1024, ptr %10, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %11) #3
store i16 10, ptr %11, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %12) #3
store i16 15, ptr %12, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %13) #3
store i16 16384, ptr %13, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %14) #3
store i16 14, ptr %14, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %15) #3
store i16 3, ptr %15, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %16) #3
store i16 -512, ptr %16, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %17) #3
%35 = load i16, ptr %5, align 2, !tbaa !5
%36 = load i16, ptr %15, align 2, !tbaa !5
%37 = call zeroext i16 @uint16_sll(i16 noundef zeroext %35, i16 noundef zeroext %36)
store i16 %37, ptr %17, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %18) #3
%38 = load i16, ptr %17, align 2, !tbaa !5
%39 = load i16, ptr %5, align 2, !tbaa !5
%40 = call zeroext i16 @uint16_sub(i16 noundef zeroext %38, i16 noundef zeroext %39)
store i16 %40, ptr %18, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %19) #3
%41 = load i16, ptr %3, align 2, !tbaa !5
%42 = load i16, ptr %6, align 2, !tbaa !5
%43 = call zeroext i16 @uint16_and(i16 noundef zeroext %41, i16 noundef zeroext %42)
store i16 %43, ptr %19, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %20) #3
%44 = load i16, ptr %3, align 2, !tbaa !5
%45 = load i16, ptr %7, align 2, !tbaa !5
%46 = call zeroext i16 @uint16_and(i16 noundef zeroext %44, i16 noundef zeroext %45)
store i16 %46, ptr %20, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %21) #3
%47 = load i16, ptr %3, align 2, !tbaa !5
%48 = load i16, ptr %8, align 2, !tbaa !5
%49 = call zeroext i16 @uint16_and(i16 noundef zeroext %47, i16 noundef zeroext %48)
store i16 %49, ptr %21, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %22) #3
%50 = load i16, ptr %4, align 2, !tbaa !5
%51 = load i16, ptr %6, align 2, !tbaa !5
%52 = call zeroext i16 @uint16_and(i16 noundef zeroext %50, i16 noundef zeroext %51)
store i16 %52, ptr %22, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %23) #3
%53 = load i16, ptr %4, align 2, !tbaa !5
%54 = load i16, ptr %7, align 2, !tbaa !5
%55 = call zeroext i16 @uint16_and(i16 noundef zeroext %53, i16 noundef zeroext %54)
store i16 %55, ptr %23, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %24) #3
%56 = load i16, ptr %4, align 2, !tbaa !5
%57 = load i16, ptr %8, align 2, !tbaa !5
%58 = call zeroext i16 @uint16_and(i16 noundef zeroext %56, i16 noundef zeroext %57)
store i16 %58, ptr %24, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %25) #3
%59 = load i16, ptr %19, align 2, !tbaa !5
%60 = load i16, ptr %22, align 2, !tbaa !5
%61 = call zeroext i16 @uint16_xor(i16 noundef zeroext %59, i16 noundef zeroext %60)
store i16 %61, ptr %25, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %26) #3
call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
%62 = load i16, ptr %20, align 2, !tbaa !5
%63 = zext i16 %62 to i32
%64 = load i16, ptr %7, align 2, !tbaa !5
%65 = zext i16 %64 to i32
%66 = icmp eq i32 %63, %65
br i1 %66, label %B1, label %B8
B1:
%67 = load i16, ptr %19, align 2, !tbaa !5
%68 = zext i16 %67 to i32
%69 = icmp ne i32 %68, 0
br i1 %69, label %B4, label %B2
B2:
%70 = load i16, ptr %23, align 2, !tbaa !5
%71 = zext i16 %70 to i32
%72 = load i16, ptr %7, align 2, !tbaa !5
%73 = zext i16 %72 to i32
%74 = icmp eq i32 %71, %73
br i1 %74, label %B3, label %B5
B3:
%75 = load i16, ptr %24, align 2, !tbaa !5
%76 = zext i16 %75 to i32
%77 = icmp ne i32 %76, 0
br i1 %77, label %B4, label %B5
B4:
%78 = load i16, ptr %19, align 2, !tbaa !5
%79 = zext i16 %78 to i32
%80 = load i16, ptr %7, align 2, !tbaa !5
%81 = zext i16 %80 to i32
%82 = or i32 %79, %81
%83 = load i16, ptr %21, align 2, !tbaa !5
%84 = zext i16 %83 to i32
%85 = or i32 %82, %84
%86 = trunc i32 %85 to i16
store i16 %86, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B5:
%87 = load i16, ptr %23, align 2, !tbaa !5
%88 = zext i16 %87 to i32
%89 = load i16, ptr %24, align 2, !tbaa !5
%90 = zext i16 %89 to i32
%91 = or i32 %88, %90
%92 = icmp eq i32 %91, 0
br i1 %92, label %B6, label %B7
B6:
%93 = load i16, ptr %7, align 2, !tbaa !5
%94 = zext i16 %93 to i32
%95 = or i32 %94, 1
%96 = trunc i32 %95 to i16
store i16 %96, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B7:
%97 = load i16, ptr %25, align 2, !tbaa !5
%98 = zext i16 %97 to i32
%99 = load i16, ptr %7, align 2, !tbaa !5
%100 = zext i16 %99 to i32
%101 = or i32 %98, %100
%102 = or i32 %101, 0
%103 = trunc i32 %102 to i16
store i16 %103, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B8:
%104 = load i16, ptr %23, align 2, !tbaa !5
%105 = zext i16 %104 to i32
%106 = load i16, ptr %7, align 2, !tbaa !5
%107 = zext i16 %106 to i32
%108 = icmp eq i32 %105, %107
br i1 %108, label %B9, label %B14
B9:
%109 = load i16, ptr %24, align 2, !tbaa !5
%110 = icmp ne i16 %109, 0
br i1 %110, label %B10, label %B11
B10:
%111 = load i16, ptr %19, align 2, !tbaa !5
%112 = zext i16 %111 to i32
%113 = load i16, ptr %7, align 2, !tbaa !5
%114 = zext i16 %113 to i32
%115 = or i32 %112, %114
%116 = load i16, ptr %21, align 2, !tbaa !5
%117 = zext i16 %116 to i32
%118 = or i32 %115, %117
%119 = trunc i32 %118 to i16
store i16 %119, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B11:
%120 = load i16, ptr %20, align 2, !tbaa !5
%121 = zext i16 %120 to i32
%122 = load i16, ptr %21, align 2, !tbaa !5
%123 = zext i16 %122 to i32
%124 = or i32 %121, %123
%125 = icmp eq i32 %124, 0
br i1 %125, label %B12, label %B13
B12:
%126 = load i16, ptr %7, align 2, !tbaa !5
%127 = zext i16 %126 to i32
%128 = or i32 %127, 1
%129 = trunc i32 %128 to i16
store i16 %129, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B13:
%130 = load i16, ptr %25, align 2, !tbaa !5
%131 = zext i16 %130 to i32
%132 = load i16, ptr %7, align 2, !tbaa !5
%133 = zext i16 %132 to i32
%134 = or i32 %131, %133
%135 = or i32 %134, 0
%136 = trunc i32 %135 to i16
store i16 %136, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B14:
%137 = load i16, ptr %20, align 2, !tbaa !5
%138 = zext i16 %137 to i32
%139 = icmp eq i32 %138, 0
br i1 %139, label %B15, label %B16
B15:
call void @llvm.lifetime.start.p0(i64 2, ptr %29) #3
%140 = load i16, ptr %23, align 2, !tbaa !5
store i16 %140, ptr %29, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %30) #3
%141 = load i16, ptr %24, align 2, !tbaa !5
store i16 %141, ptr %30, align 2, !tbaa !5
%142 = load i16, ptr %20, align 2, !tbaa !5
store i16 %142, ptr %23, align 2, !tbaa !5
%143 = load i16, ptr %21, align 2, !tbaa !5
store i16 %143, ptr %24, align 2, !tbaa !5
%144 = load i16, ptr %29, align 2, !tbaa !5
store i16 %144, ptr %20, align 2, !tbaa !5
%145 = load i16, ptr %30, align 2, !tbaa !5
store i16 %145, ptr %21, align 2, !tbaa !5
call void @llvm.lifetime.end.p0(i64 2, ptr %30) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %29) #3
br label %B16
B16:
%146 = load i16, ptr %23, align 2, !tbaa !5
%147 = zext i16 %146 to i32
%148 = icmp eq i32 %147, 0
br i1 %148, label %B17, label %B20
B17:
%149 = load i16, ptr %24, align 2, !tbaa !5
%150 = zext i16 %149 to i32
%151 = icmp eq i32 %150, 0
br i1 %151, label %B18, label %B19
B18:
%152 = load i16, ptr %25, align 2, !tbaa !5
store i16 %152, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B19:
%153 = load i16, ptr %21, align 2, !tbaa !5
%154 = zext i16 %153 to i32
%155 = load i16, ptr %10, align 2, !tbaa !5
%156 = zext i16 %155 to i32
%157 = or i32 %154, %156
%158 = trunc i32 %157 to i16
store i16 %158, ptr %21, align 2, !tbaa !5
%159 = load i16, ptr %21, align 2, !tbaa !5
%160 = zext i16 %159 to i32
%161 = load i16, ptr %24, align 2, !tbaa !5
%162 = zext i16 %161 to i32
%163 = mul i32 %160, %162
store i32 %163, ptr %27, align 4, !tbaa !9
store i16 0, ptr %26, align 2, !tbaa !5
%164 = load i16, ptr %20, align 2, !tbaa !5
%165 = zext i16 %164 to i32
%166 = load i16, ptr %11, align 2, !tbaa !5
%167 = zext i16 %166 to i32
%168 = ashr i32 %165, %167
%169 = trunc i32 %168 to i16
store i16 %169, ptr %20, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
%170 = load i16, ptr %12, align 2, !tbaa !5
%171 = zext i16 %170 to i32
%172 = load i16, ptr %20, align 2, !tbaa !5
%173 = zext i16 %172 to i32
%174 = sub nsw i32 %171, %173
store i32 %174, ptr %31, align 4, !tbaa !9
%175 = load i32, ptr %27, align 4, !tbaa !9
%176 = load i16, ptr %8, align 2, !tbaa !5
%177 = zext i16 %176 to i32
%178 = and i32 %175, %177
%179 = load i32, ptr %27, align 4, !tbaa !9
%180 = add i32 %179, %178
store i32 %180, ptr %27, align 4, !tbaa !9
%181 = load i32, ptr %27, align 4, !tbaa !9
%182 = lshr i32 %181, 10
store i32 %182, ptr %27, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
%183 = load i32, ptr %31, align 4, !tbaa !9
store i32 %183, ptr %32, align 4, !tbaa !9
%184 = load i32, ptr %32, align 4, !tbaa !9
%185 = load i32, ptr %27, align 4, !tbaa !9
%186 = lshr i32 %185, %184
store i32 %186, ptr %27, align 4, !tbaa !9
%187 = load i32, ptr %27, align 4, !tbaa !9
%188 = and i32 %187, 1023
store i32 %188, ptr %27, align 4, !tbaa !9
%189 = load i16, ptr %22, align 2, !tbaa !5
%190 = zext i16 %189 to i32
%191 = or i32 %190, 0
%192 = load i32, ptr %27, align 4, !tbaa !9
%193 = or i32 %191, %192
%194 = trunc i32 %193 to i16
store i16 %194, ptr %2, align 2
store i32 1, ptr %28, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
br label %B33
B20:
%195 = load i16, ptr %20, align 2, !tbaa !5
%196 = zext i16 %195 to i32
%197 = load i16, ptr %11, align 2, !tbaa !5
%198 = zext i16 %197 to i32
%199 = ashr i32 %196, %198
%200 = trunc i32 %199 to i16
store i16 %200, ptr %20, align 2, !tbaa !5
%201 = load i16, ptr %23, align 2, !tbaa !5
%202 = zext i16 %201 to i32
%203 = load i16, ptr %11, align 2, !tbaa !5
%204 = zext i16 %203 to i32
%205 = ashr i32 %202, %204
%206 = trunc i32 %205 to i16
store i16 %206, ptr %23, align 2, !tbaa !5
%207 = load i16, ptr %21, align 2, !tbaa !5
%208 = zext i16 %207 to i32
%209 = load i16, ptr %10, align 2, !tbaa !5
%210 = zext i16 %209 to i32
%211 = or i32 %208, %210
%212 = trunc i32 %211 to i16
store i16 %212, ptr %21, align 2, !tbaa !5
%213 = load i16, ptr %24, align 2, !tbaa !5
%214 = zext i16 %213 to i32
%215 = load i16, ptr %10, align 2, !tbaa !5
%216 = zext i16 %215 to i32
%217 = or i32 %214, %216
%218 = trunc i32 %217 to i16
store i16 %218, ptr %24, align 2, !tbaa !5
%219 = load i16, ptr %21, align 2, !tbaa !5
%220 = zext i16 %219 to i32
%221 = load i16, ptr %24, align 2, !tbaa !5
%222 = zext i16 %221 to i32
%223 = mul i32 %220, %222
store i32 %223, ptr %27, align 4, !tbaa !9
%224 = load i16, ptr %20, align 2, !tbaa !5
%225 = zext i16 %224 to i32
%226 = load i16, ptr %23, align 2, !tbaa !5
%227 = zext i16 %226 to i32
%228 = add nsw i32 %225, %227
%229 = load i16, ptr %12, align 2, !tbaa !5
%230 = zext i16 %229 to i32
%231 = sub nsw i32 %228, %230
%232 = icmp slt i32 %231, 0
br i1 %232, label %B21, label %B22
B21:
store i16 0, ptr %26, align 2, !tbaa !5
call void @llvm.lifetime.start.p0(i64 2, ptr %33) #3
%233 = load i16, ptr %20, align 2, !tbaa !5
%234 = zext i16 %233 to i32
%235 = load i16, ptr %23, align 2, !tbaa !5
%236 = zext i16 %235 to i32
%237 = add nsw i32 %234, %236
%238 = load i16, ptr %12, align 2, !tbaa !5
%239 = zext i16 %238 to i32
%240 = sub nsw i32 %237, %239
%241 = sub nsw i32 0, %240
%242 = trunc i32 %241 to i16
store i16 %242, ptr %33, align 2, !tbaa !5
%243 = load i16, ptr %33, align 2, !tbaa !5
%244 = zext i16 %243 to i32
%245 = shl i32 %244, 1
%246 = load i32, ptr %27, align 4, !tbaa !9
%247 = lshr i32 %246, %245
store i32 %247, ptr %27, align 4, !tbaa !9
call void @llvm.lifetime.end.p0(i64 2, ptr %33) #3
br label %B23
B22:
%248 = load i16, ptr %20, align 2, !tbaa !5
%249 = zext i16 %248 to i32
%250 = load i16, ptr %23, align 2, !tbaa !5
%251 = zext i16 %250 to i32
%252 = add nsw i32 %249, %251
%253 = load i16, ptr %12, align 2, !tbaa !5
%254 = zext i16 %253 to i32
%255 = sub nsw i32 %252, %254
%256 = trunc i32 %255 to i16
store i16 %256, ptr %26, align 2, !tbaa !5
br label %B23
B23:
%257 = load i16, ptr %26, align 2, !tbaa !5
%258 = zext i16 %257 to i32
%259 = and i32 %258, 32
%260 = icmp ne i32 %259, 0
br i1 %260, label %B24, label %B25
B24:
%261 = load i16, ptr %25, align 2, !tbaa !5
%262 = zext i16 %261 to i32
%263 = load i16, ptr %7, align 2, !tbaa !5
%264 = zext i16 %263 to i32
%265 = or i32 %262, %264
%266 = or i32 %265, 0
%267 = trunc i32 %266 to i16
store i16 %267, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B25:
%268 = load i16, ptr %26, align 2, !tbaa !5
%269 = zext i16 %268 to i32
%270 = add nsw i32 %269, 1
%271 = trunc i32 %270 to i16
store i16 %271, ptr %26, align 2, !tbaa !5
%272 = load i32, ptr %27, align 4, !tbaa !9
%273 = lshr i32 %272, 1
store i32 %273, ptr %27, align 4, !tbaa !9
%274 = load i32, ptr %27, align 4, !tbaa !9
%275 = and i32 %274, 1048576
%276 = icmp eq i32 %275, 0
br i1 %276, label %B26, label %B30
B26:
call void @llvm.lifetime.start.p0(i64 2, ptr %34) #3
%277 = load i32, ptr %27, align 4, !tbaa !9
%278 = lshr i32 %277, 5
%279 = trunc i32 %278 to i16
%280 = call zeroext i16 @uint16_cntlz(i16 noundef zeroext %279)
store i16 %280, ptr %34, align 2, !tbaa !5
%281 = load i16, ptr %34, align 2, !tbaa !5
%282 = zext i16 %281 to i32
%283 = load i16, ptr %26, align 2, !tbaa !5
%284 = zext i16 %283 to i32
%285 = icmp sge i32 %282, %284
br i1 %285, label %B27, label %B28
B27:
%286 = load i16, ptr %34, align 2, !tbaa !5
%287 = zext i16 %286 to i32
%288 = ashr i32 %287, 1
%289 = load i32, ptr %27, align 4, !tbaa !9
%290 = shl i32 %289, %288
store i32 %290, ptr %27, align 4, !tbaa !9
store i16 0, ptr %26, align 2, !tbaa !5
br label %B29
B28:
%291 = load i16, ptr %34, align 2, !tbaa !5
%292 = zext i16 %291 to i32
%293 = load i16, ptr %26, align 2, !tbaa !5
%294 = zext i16 %293 to i32
%295 = sub nsw i32 %294, %292
%296 = trunc i32 %295 to i16
store i16 %296, ptr %26, align 2, !tbaa !5
%297 = load i16, ptr %34, align 2, !tbaa !5
%298 = zext i16 %297 to i32
%299 = load i32, ptr %27, align 4, !tbaa !9
%300 = shl i32 %299, %298
store i32 %300, ptr %27, align 4, !tbaa !9
br label %B29
B29:
call void @llvm.lifetime.end.p0(i64 2, ptr %34) #3
br label %B30
B30:
%301 = load i32, ptr %27, align 4, !tbaa !9
%302 = load i16, ptr %8, align 2, !tbaa !5
%303 = zext i16 %302 to i32
%304 = and i32 %301, %303
%305 = load i32, ptr %27, align 4, !tbaa !9
%306 = add i32 %305, %304
store i32 %306, ptr %27, align 4, !tbaa !9
%307 = load i16, ptr %26, align 2, !tbaa !5
%308 = zext i16 %307 to i32
%309 = and i32 %308, 32
%310 = icmp ne i32 %309, 0
br i1 %310, label %B31, label %B32
B31:
%311 = load i16, ptr %25, align 2, !tbaa !5
%312 = zext i16 %311 to i32
%313 = load i16, ptr %7, align 2, !tbaa !5
%314 = zext i16 %313 to i32
%315 = or i32 %312, %314
%316 = or i32 %315, 0
%317 = trunc i32 %316 to i16
store i16 %317, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B32:
%318 = load i32, ptr %27, align 4, !tbaa !9
%319 = lshr i32 %318, 10
store i32 %319, ptr %27, align 4, !tbaa !9
%320 = load i32, ptr %27, align 4, !tbaa !9
%321 = and i32 %320, 1023
store i32 %321, ptr %27, align 4, !tbaa !9
%322 = load i16, ptr %26, align 2, !tbaa !5
%323 = zext i16 %322 to i32
%324 = and i32 %323, 31
%325 = trunc i32 %324 to i16
store i16 %325, ptr %26, align 2, !tbaa !5
%326 = load i16, ptr %26, align 2, !tbaa !5
%327 = zext i16 %326 to i32
%328 = load i16, ptr %11, align 2, !tbaa !5
%329 = zext i16 %328 to i32
%330 = shl i32 %327, %329
%331 = trunc i32 %330 to i16
store i16 %331, ptr %26, align 2, !tbaa !5
%332 = load i16, ptr %25, align 2, !tbaa !5
%333 = zext i16 %332 to i32
%334 = load i16, ptr %26, align 2, !tbaa !5
%335 = zext i16 %334 to i32
%336 = or i32 %333, %335
%337 = load i32, ptr %27, align 4, !tbaa !9
%338 = or i32 %336, %337
%339 = trunc i32 %338 to i16
store i16 %339, ptr %2, align 2
store i32 1, ptr %28, align 4
br label %B33
B33:
call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %26) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %25) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %24) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %23) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %22) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %21) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %20) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %19) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %18) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %17) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %16) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %13) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %12) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %11) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %10) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %9) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %8) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %6) #3
call void @llvm.lifetime.end.p0(i64 2, ptr %5) #3
%340 = load i16, ptr %2, align 2
ret i16 %340
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0} | 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"
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sub(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_cntlz(i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_sll(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_and(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @uint16_xor(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0
; Function Attrs: nounwind uwtable
define dso_local zeroext i16 @half_mul(i16 noundef zeroext %0, i16 noundef zeroext %1) local_unnamed_addr #1 {
%3 = tail call zeroext i16 @uint16_sll(i16 noundef zeroext 1, i16 noundef zeroext 3)
%4 = tail call zeroext i16 @uint16_sub(i16 noundef zeroext %3, i16 noundef zeroext 1)
%5 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %0, i16 noundef zeroext -32768)
%6 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %0, i16 noundef zeroext 31744)
%7 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %0, i16 noundef zeroext 1023)
%8 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %1, i16 noundef zeroext -32768)
%9 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %1, i16 noundef zeroext 31744)
%10 = tail call zeroext i16 @uint16_and(i16 noundef zeroext %1, i16 noundef zeroext 1023)
%11 = tail call zeroext i16 @uint16_xor(i16 noundef zeroext %5, i16 noundef zeroext %8)
%12 = icmp eq i16 %6, 31744
br i1 %12, label %13, label %24
13: ; preds = %2
%.not144 = icmp eq i16 %5, 0
br i1 %.not144, label %14, label %17
14: ; preds = %13
%15 = icmp eq i16 %9, 31744
%16 = icmp ne i16 %10, 0
%or.cond = select i1 %15, i1 %16, i1 false
br i1 %or.cond, label %17, label %20
17: ; preds = %14, %13
%18 = or i16 %5, %7
%19 = or i16 %18, 31744
br label %97
20: ; preds = %14
%21 = or i16 %10, %9
%22 = icmp eq i16 %21, 0
%23 = or i16 %11, 31744
%spec.select = select i1 %22, i16 31745, i16 %23
br label %97
24: ; preds = %2
%25 = icmp eq i16 %9, 31744
br i1 %25, label %26, label %34
26: ; preds = %24
%.not143 = icmp eq i16 %10, 0
br i1 %.not143, label %30, label %27
27: ; preds = %26
%28 = or i16 %5, %7
%29 = or i16 %28, 31744
br label %97
30: ; preds = %26
%31 = or i16 %7, %6
%32 = icmp eq i16 %31, 0
%33 = or i16 %11, 31744
%spec.select145 = select i1 %32, i16 31745, i16 %33
br label %97
34: ; preds = %24
%35 = icmp eq i16 %6, 0
br i1 %35, label %.thread, label %36
36: ; preds = %34
%37 = icmp eq i16 %9, 0
br i1 %37, label %.thread, label %54
.thread: ; preds = %34, %36
%.0124152 = phi i16 [ %6, %36 ], [ %9, %34 ]
%.0125151 = phi i16 [ %7, %36 ], [ %10, %34 ]
%.0127150 = phi i16 [ %10, %36 ], [ %7, %34 ]
%38 = icmp eq i16 %.0127150, 0
br i1 %38, label %97, label %39
39: ; preds = %.thread
%40 = zext i16 %.0127150 to i32
%41 = or i16 %.0125151, 1024
%42 = zext i16 %41 to i32
%43 = mul nuw i32 %42, %40
%44 = lshr i16 %.0124152, 10
%45 = zext nneg i16 %44 to i32
%46 = sub nsw i32 15, %45
%47 = and i32 %43, 1023
%48 = add nuw i32 %47, %43
%49 = lshr i32 %48, 10
%50 = lshr i32 %49, %46
%51 = trunc i32 %50 to i16
%52 = and i16 %51, 1023
%53 = or i16 %52, %8
br label %97
54: ; preds = %36
%55 = lshr i16 %6, 10
%56 = lshr i16 %9, 10
%57 = or i16 %7, 1024
%58 = or i16 %10, 1024
%59 = zext i16 %57 to i32
%60 = zext i16 %58 to i32
%61 = mul nuw i32 %60, %59
%narrow = add nuw nsw i16 %56, %55
%62 = icmp ult i16 %narrow, 15
br i1 %62, label %.thread153, label %67
.thread153: ; preds = %54
%63 = shl nuw nsw i16 %narrow, 1
%64 = sub nuw nsw i16 30, %63
%65 = zext nneg i16 %64 to i32
%66 = lshr i32 %61, %65
br label %72
67: ; preds = %54
%68 = add nsw i16 %narrow, -15
%69 = and i16 %68, 32
%.not = icmp eq i16 %69, 0
br i1 %.not, label %72, label %70
70: ; preds = %67
%71 = or i16 %11, 31744
br label %97
72: ; preds = %.thread153, %67
%.0128158 = phi i16 [ 0, %.thread153 ], [ %68, %67 ]
%.0129157 = phi i32 [ %66, %.thread153 ], [ %61, %67 ]
%73 = add nuw nsw i16 %.0128158, 1
%74 = lshr i32 %.0129157, 1
%75 = and i32 %.0129157, 2097152
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %84
77: ; preds = %72
%78 = lshr i32 %.0129157, 6
%79 = trunc i32 %78 to i16
%80 = tail call zeroext i16 @uint16_cntlz(i16 noundef zeroext %79)
%81 = zext i16 %80 to i32
%.not141.not = icmp ugt i16 %80, %.0128158
%82 = sub i16 %73, %80
%83 = zext i1 %.not141.not to i32
%.pn = lshr i32 %81, %83
%.1 = select i1 %.not141.not, i16 0, i16 %82
%.1130 = shl i32 %74, %.pn
br label %84
84: ; preds = %77, %72
%.2131 = phi i32 [ %.1130, %77 ], [ %74, %72 ]
%.2 = phi i16 [ %.1, %77 ], [ %73, %72 ]
%85 = and i16 %.2, 32
%.not142 = icmp eq i16 %85, 0
br i1 %.not142, label %88, label %86
86: ; preds = %84
%87 = or i16 %11, 31744
br label %97
88: ; preds = %84
%89 = and i32 %.2131, 1023
%90 = add i32 %89, %.2131
%91 = lshr i32 %90, 10
%92 = shl i16 %.2, 10
%93 = trunc i32 %91 to i16
%94 = and i16 %93, 1023
%95 = or disjoint i16 %94, %92
%96 = or i16 %95, %11
br label %97
97: ; preds = %30, %20, %.thread, %88, %86, %70, %39, %27, %17
%.0 = phi i16 [ %19, %17 ], [ %29, %27 ], [ %53, %39 ], [ %71, %70 ], [ %87, %86 ], [ %96, %88 ], [ %11, %.thread ], [ %spec.select, %20 ], [ %spec.select145, %30 ]
ret i16 %.0
}
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
| CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass | de7d39c3cad32492 | pkurth/D3D12Renderer | ext/half | half | MIT |
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.performance_counters_context = type { i32, ptr, ptr }
@performanceCountersContext = external dso_local global %struct.performance_counters_context, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersEnable() #1 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
store i32 0, ptr %1, align 4, !tbaa !5
br label %2
2: ; preds = %19, %0
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = load i32, ptr @performanceCountersContext, align 8, !tbaa !9
%5 = icmp slt i32 %3, %4
br i1 %5, label %6, label %22
6: ; preds = %2
%7 = load ptr, ptr getelementptr inbounds (%struct.performance_counters_context, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !12
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, ptr %7, i64 %9
%11 = load i32, ptr %10, align 4, !tbaa !5
%12 = call i32 (i32, i64, ...) @ioctl(i32 noundef %11, i64 noundef 9216, i32 noundef 0) #3
%13 = load ptr, ptr getelementptr inbounds (%struct.performance_counters_context, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !12
%14 = load i32, ptr %1, align 4, !tbaa !5
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4, !tbaa !5
%18 = call i32 (i32, i64, ...) @ioctl(i32 noundef %17, i64 noundef 9219, i32 noundef 0) #3
br label %19
19: ; preds = %6
%20 = load i32, ptr %1, align 4, !tbaa !5
%21 = add nsw i32 %20, 1
store i32 %21, ptr %1, align 4, !tbaa !5
br label %2, !llvm.loop !13
22: ; preds = %2
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
ret void
}
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"performance_counters_context", !6, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| 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"
%STRUCT0 = type { i32, ptr, ptr }
@performanceCountersContext = external dso_local global %STRUCT0, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersEnable() #1 {
B0:
%0 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %0) #3
store i32 0, ptr %0, align 4, !tbaa !5
br label %B1
B1:
%1 = load i32, ptr %0, align 4, !tbaa !5
%2 = load i32, ptr @performanceCountersContext, align 8, !tbaa !9
%3 = icmp slt i32 %1, %2
br i1 %3, label %B2, label %B4
B2:
%4 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !12
%5 = load i32, ptr %0, align 4, !tbaa !5
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i32, ptr %4, i64 %6
%8 = load i32, ptr %7, align 4, !tbaa !5
%9 = call i32 (i32, i64, ...) @ioctl(i32 noundef %8, i64 noundef 9216, i32 noundef 0) #3
%10 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !12
%11 = load i32, ptr %0, align 4, !tbaa !5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4, !tbaa !5
%15 = call i32 (i32, i64, ...) @ioctl(i32 noundef %14, i64 noundef 9219, i32 noundef 0) #3
br label %B3
B3:
%16 = load i32, ptr %0, align 4, !tbaa !5
%17 = add nsw i32 %16, 1
store i32 %17, ptr %0, align 4, !tbaa !5
br label %B1, !llvm.loop !13
B4:
call void @llvm.lifetime.end.p0(i64 4, ptr %0) #3
ret void
}
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #2
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"performance_counters_context", !6, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"} | 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.performance_counters_context = type { i32, ptr, ptr }
@performanceCountersContext = external dso_local local_unnamed_addr global %struct.performance_counters_context, align 8
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersEnable() local_unnamed_addr #0 {
%1 = load i32, ptr @performanceCountersContext, align 8, !tbaa !5
%2 = icmp sgt i32 %1, 0
br i1 %2, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %0, %.lr.ph
%indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
%3 = load ptr, ptr getelementptr inbounds (i8, ptr @performanceCountersContext, i64 16), align 8, !tbaa !11
%4 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
%5 = load i32, ptr %4, align 4, !tbaa !12
%6 = tail call i32 (i32, i64, ...) @ioctl(i32 noundef %5, i64 noundef 9216, i32 noundef 0) #2
%7 = load ptr, ptr getelementptr inbounds (i8, ptr @performanceCountersContext, i64 16), align 8, !tbaa !11
%8 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = tail call i32 (i32, i64, ...) @ioctl(i32 noundef %9, i64 noundef 9219, i32 noundef 0) #2
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%11 = load i32, ptr @performanceCountersContext, align 8, !tbaa !5
%12 = sext i32 %11 to i64
%13 = icmp slt i64 %indvars.iv.next, %12
br i1 %13, label %.lr.ph, label %._crit_edge, !llvm.loop !13
._crit_edge: ; preds = %.lr.ph, %0
ret void
}
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) local_unnamed_addr #1
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 = { 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 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"performance_counters_context", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 2b7f50ff1b27552f | ordo-one/package-benchmark | Platform/CLinuxOperatingSystemStats | CLinuxOperatingSystemStats | Apache-2.0 |
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.performance_counters_context = type { i32, ptr, ptr }
%struct.performanceCounters = type { i64 }
@performanceCountersContext = external dso_local global %struct.performance_counters_context, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #1
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersCurrent(ptr noundef %0) #2 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
store i64 0, ptr %4, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
store i32 0, ptr %3, align 4, !tbaa !11
br label %6
6: ; preds = %48, %1
%7 = load i32, ptr %3, align 4, !tbaa !11
%8 = load i32, ptr @performanceCountersContext, align 8, !tbaa !13
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %51
10: ; preds = %6
%11 = load ptr, ptr getelementptr inbounds (%struct.performance_counters_context, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !15
%12 = load i32, ptr %3, align 4, !tbaa !11
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4, !tbaa !11
%16 = call i64 @read(i32 noundef %15, ptr noundef %4, i64 noundef 8)
store i64 %16, ptr %5, align 8, !tbaa !16
%17 = load i64, ptr %5, align 8, !tbaa !16
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %32
19: ; preds = %10
%20 = load ptr, ptr getelementptr inbounds (%struct.performance_counters_context, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !15
%21 = load i32, ptr %3, align 4, !tbaa !11
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4, !tbaa !11
%25 = call i32 (i32, i64, ...) @ioctl(i32 noundef %24, i64 noundef 9216, i32 noundef 0) #4
%26 = load ptr, ptr getelementptr inbounds (%struct.performance_counters_context, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !15
%27 = load i32, ptr %3, align 4, !tbaa !11
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4, !tbaa !11
%31 = call i32 (i32, i64, ...) @ioctl(i32 noundef %30, i64 noundef 9219, i32 noundef 0) #4
br label %48
32: ; preds = %10
%33 = load i64, ptr %5, align 8, !tbaa !16
%34 = icmp eq i64 %33, -1
br i1 %34, label %35, label %36
35: ; preds = %32
br label %48
36: ; preds = %32
%37 = load i64, ptr %5, align 8, !tbaa !16
%38 = icmp ne i64 %37, 8
br i1 %38, label %39, label %40
39: ; preds = %36
br label %48
40: ; preds = %36
br label %41
41: ; preds = %40
br label %42
42: ; preds = %41
%43 = load i64, ptr %4, align 8, !tbaa !9
%44 = load ptr, ptr %2, align 8, !tbaa !5
%45 = getelementptr inbounds %struct.performanceCounters, ptr %44, i32 0, i32 0
%46 = load i64, ptr %45, align 8, !tbaa !18
%47 = add i64 %46, %43
store i64 %47, ptr %45, align 8, !tbaa !18
br label %48
48: ; preds = %42, %39, %35, %19
%49 = load i32, ptr %3, align 4, !tbaa !11
%50 = add nsw i32 %49, 1
store i32 %50, ptr %3, align 4, !tbaa !11
br label %6, !llvm.loop !20
51: ; preds = %6
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
ret void
}
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #3
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 ([email protected]: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 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"performance_counters_context", !12, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!14, !6, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !10, i64 0}
!19 = !{!"performanceCounters", !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
| 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"
%STRUCT0 = type { i32, ptr, ptr }
%STRUCT1 = type { i64 }
@performanceCountersContext = external dso_local global %STRUCT0, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #1
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersCurrent(ptr noundef %0) #2 {
B0:
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %1, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
store i64 0, ptr %3, align 8, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
store i32 0, ptr %2, align 4, !tbaa !11
br label %B1
B1:
%5 = load i32, ptr %2, align 4, !tbaa !11
%6 = load i32, ptr @performanceCountersContext, align 8, !tbaa !13
%7 = icmp slt i32 %5, %6
br i1 %7, label %B2, label %B12
B2:
%8 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !15
%9 = load i32, ptr %2, align 4, !tbaa !11
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, ptr %8, i64 %10
%12 = load i32, ptr %11, align 4, !tbaa !11
%13 = call i64 @read(i32 noundef %12, ptr noundef %3, i64 noundef 8)
store i64 %13, ptr %4, align 8, !tbaa !16
%14 = load i64, ptr %4, align 8, !tbaa !16
%15 = icmp eq i64 %14, 0
br i1 %15, label %B3, label %B4
B3:
%16 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !15
%17 = load i32, ptr %2, align 4, !tbaa !11
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4, !tbaa !11
%21 = call i32 (i32, i64, ...) @ioctl(i32 noundef %20, i64 noundef 9216, i32 noundef 0) #4
%22 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !15
%23 = load i32, ptr %2, align 4, !tbaa !11
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4, !tbaa !11
%27 = call i32 (i32, i64, ...) @ioctl(i32 noundef %26, i64 noundef 9219, i32 noundef 0) #4
br label %B11
B4:
%28 = load i64, ptr %4, align 8, !tbaa !16
%29 = icmp eq i64 %28, -1
br i1 %29, label %B5, label %B6
B5:
br label %B11
B6:
%30 = load i64, ptr %4, align 8, !tbaa !16
%31 = icmp ne i64 %30, 8
br i1 %31, label %B7, label %B8
B7:
br label %B11
B8:
br label %B9
B9:
br label %B10
B10:
%32 = load i64, ptr %3, align 8, !tbaa !9
%33 = load ptr, ptr %1, align 8, !tbaa !5
%34 = getelementptr inbounds %STRUCT1, ptr %33, i32 0, i32 0
%35 = load i64, ptr %34, align 8, !tbaa !18
%36 = add i64 %35, %32
store i64 %36, ptr %34, align 8, !tbaa !18
br label %B11
B11:
%37 = load i32, ptr %2, align 4, !tbaa !11
%38 = add nsw i32 %37, 1
store i32 %38, ptr %2, align 4, !tbaa !11
br label %B1, !llvm.loop !20
B12:
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
ret void
}
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #3
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 ([email protected]: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 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"performance_counters_context", !12, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!14, !6, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !10, i64 0}
!19 = !{!"performanceCounters", !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"} | 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.performance_counters_context = type { i32, ptr, ptr }
@performanceCountersContext = external dso_local local_unnamed_addr global %struct.performance_counters_context, align 8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) local_unnamed_addr #1
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersCurrent(ptr nocapture noundef %0) local_unnamed_addr #2 {
%2 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
store i64 0, ptr %2, align 8, !tbaa !5
%3 = load i32, ptr @performanceCountersContext, align 8, !tbaa !9
%4 = icmp sgt i32 %3, 0
br i1 %4, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %1, %22
%indvars.iv = phi i64 [ %indvars.iv.next, %22 ], [ 0, %1 ]
%5 = load ptr, ptr getelementptr inbounds (i8, ptr @performanceCountersContext, i64 16), align 8, !tbaa !13
%6 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv
%7 = load i32, ptr %6, align 4, !tbaa !14
%8 = call i64 @read(i32 noundef %7, ptr noundef nonnull %2, i64 noundef 8) #4
switch i64 %8, label %22 [
i64 0, label %9
i64 8, label %18
]
9: ; preds = %.lr.ph
%10 = load ptr, ptr getelementptr inbounds (i8, ptr @performanceCountersContext, i64 16), align 8, !tbaa !13
%11 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
%12 = load i32, ptr %11, align 4, !tbaa !14
%13 = tail call i32 (i32, i64, ...) @ioctl(i32 noundef %12, i64 noundef 9216, i32 noundef 0) #4
%14 = load ptr, ptr getelementptr inbounds (i8, ptr @performanceCountersContext, i64 16), align 8, !tbaa !13
%15 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv
%16 = load i32, ptr %15, align 4, !tbaa !14
%17 = tail call i32 (i32, i64, ...) @ioctl(i32 noundef %16, i64 noundef 9219, i32 noundef 0) #4
br label %22
18: ; preds = %.lr.ph
%19 = load i64, ptr %2, align 8, !tbaa !5
%20 = load i64, ptr %0, align 8, !tbaa !15
%21 = add i64 %20, %19
store i64 %21, ptr %0, align 8, !tbaa !15
br label %22
22: ; preds = %.lr.ph, %18, %9
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%23 = load i32, ptr @performanceCountersContext, align 8, !tbaa !9
%24 = sext i32 %23 to i64
%25 = icmp slt i64 %indvars.iv.next, %24
br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !17
._crit_edge: ; preds = %22, %1
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret void
}
; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #3
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree "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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"performance_counters_context", !11, i64 0, !12, i64 8, !12, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !12, i64 16}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"performanceCounters", !6, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | bf4768b12875332c | ordo-one/package-benchmark | Platform/CLinuxOperatingSystemStats | CLinuxOperatingSystemStats | Apache-2.0 |
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.performance_counters_context = type { i32, ptr, ptr }
@performanceCountersContext = external dso_local global %struct.performance_counters_context, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #1
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersDisable() #2 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
store i32 0, ptr %1, align 4, !tbaa !5
br label %2
2: ; preds = %13, %0
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = load i32, ptr @performanceCountersContext, align 8, !tbaa !9
%5 = icmp slt i32 %3, %4
br i1 %5, label %6, label %16
6: ; preds = %2
%7 = load ptr, ptr getelementptr inbounds (%struct.performance_counters_context, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !12
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, ptr %7, i64 %9
%11 = load i32, ptr %10, align 4, !tbaa !5
%12 = call i32 (i32, i64, ...) @ioctl(i32 noundef %11, i64 noundef 9217, i32 noundef 0) #3
br label %13
13: ; preds = %6
%14 = load i32, ptr %1, align 4, !tbaa !5
%15 = add nsw i32 %14, 1
store i32 %15, ptr %1, align 4, !tbaa !5
br label %2, !llvm.loop !13
16: ; preds = %2
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"performance_counters_context", !6, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| 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"
%STRUCT0 = type { i32, ptr, ptr }
@performanceCountersContext = external dso_local global %STRUCT0, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #1
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersDisable() #2 {
B0:
%0 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %0) #3
store i32 0, ptr %0, align 4, !tbaa !5
br label %B1
B1:
%1 = load i32, ptr %0, align 4, !tbaa !5
%2 = load i32, ptr @performanceCountersContext, align 8, !tbaa !9
%3 = icmp slt i32 %1, %2
br i1 %3, label %B2, label %B4
B2:
%4 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @performanceCountersContext, i32 0, i32 2), align 8, !tbaa !12
%5 = load i32, ptr %0, align 4, !tbaa !5
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i32, ptr %4, i64 %6
%8 = load i32, ptr %7, align 4, !tbaa !5
%9 = call i32 (i32, i64, ...) @ioctl(i32 noundef %8, i64 noundef 9217, i32 noundef 0) #3
br label %B3
B3:
%10 = load i32, ptr %0, align 4, !tbaa !5
%11 = add nsw i32 %10, 1
store i32 %11, ptr %0, align 4, !tbaa !5
br label %B1, !llvm.loop !13
B4:
call void @llvm.lifetime.end.p0(i64 4, ptr %0) #3
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"performance_counters_context", !6, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"} | 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.performance_counters_context = type { i32, ptr, ptr }
@performanceCountersContext = external dso_local local_unnamed_addr global %struct.performance_counters_context, align 8
; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) local_unnamed_addr #0
; Function Attrs: nounwind uwtable
define dso_local void @CLinuxPerformanceCountersDisable() local_unnamed_addr #1 {
%1 = load i32, ptr @performanceCountersContext, align 8, !tbaa !5
%2 = icmp sgt i32 %1, 0
br i1 %2, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %0, %.lr.ph
%indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
%3 = load ptr, ptr getelementptr inbounds (i8, ptr @performanceCountersContext, i64 16), align 8, !tbaa !11
%4 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
%5 = load i32, ptr %4, align 4, !tbaa !12
%6 = tail call i32 (i32, i64, ...) @ioctl(i32 noundef %5, i64 noundef 9217, i32 noundef 0) #2
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%7 = load i32, ptr @performanceCountersContext, align 8, !tbaa !5
%8 = sext i32 %7 to i64
%9 = icmp slt i64 %indvars.iv.next, %8
br i1 %9, label %.lr.ph, label %._crit_edge, !llvm.loop !13
._crit_edge: ; preds = %.lr.ph, %0
ret void
}
attributes #0 = { 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 #1 = { 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 #2 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"performance_counters_context", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 8d80cea9911c114a | ordo-one/package-benchmark | Platform/CLinuxOperatingSystemStats | CLinuxOperatingSystemStats | Apache-2.0 |
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.processStats = type { i64, i64, i64, i64, i64, i64 }
@.str.7 = external hidden unnamed_addr constant [243 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #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 uwtable
define dso_local void @CLinuxProcessStats(ptr noundef %0, ptr noundef %1) #2 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, 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) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
%10 = load ptr, ptr %3, align 8, !tbaa !5
%11 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %10, ptr noundef @.str.7, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #3
%12 = load i64, ptr %5, align 8, !tbaa !9
%13 = load ptr, ptr %4, align 8, !tbaa !5
%14 = getelementptr inbounds %struct.processStats, ptr %13, i32 0, i32 0
store i64 %12, ptr %14, align 8, !tbaa !11
%15 = load i64, ptr %6, align 8, !tbaa !9
%16 = load ptr, ptr %4, align 8, !tbaa !5
%17 = getelementptr inbounds %struct.processStats, ptr %16, i32 0, i32 1
store i64 %15, ptr %17, align 8, !tbaa !13
%18 = load i64, ptr %7, align 8, !tbaa !9
%19 = load ptr, ptr %4, align 8, !tbaa !5
%20 = getelementptr inbounds %struct.processStats, ptr %19, i32 0, i32 3
store i64 %18, ptr %20, align 8, !tbaa !14
%21 = load i64, ptr %8, align 8, !tbaa !9
%22 = load ptr, ptr %4, align 8, !tbaa !5
%23 = getelementptr inbounds %struct.processStats, ptr %22, i32 0, i32 4
store i64 %21, ptr %23, align 8, !tbaa !15
%24 = load i64, ptr %9, align 8, !tbaa !9
%25 = load ptr, ptr %4, align 8, !tbaa !5
%26 = getelementptr inbounds %struct.processStats, ptr %25, i32 0, i32 5
store i64 %24, ptr %26, align 8, !tbaa !16
%27 = load i64, ptr %5, align 8, !tbaa !9
%28 = load i64, ptr %6, align 8, !tbaa !9
%29 = add nsw i64 %27, %28
%30 = load ptr, ptr %4, align 8, !tbaa !5
%31 = getelementptr inbounds %struct.processStats, ptr %30, i32 0, i32 2
store i64 %29, ptr %31, align 8, !tbaa !17
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"processStats", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 24}
!15 = !{!12, !10, i64 32}
!16 = !{!12, !10, i64 40}
!17 = !{!12, !10, i64 16}
| 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"
%STRUCT0 = type { i64, i64, i64, i64, i64, i64 }
@.str.7 = external hidden unnamed_addr constant [243 x i8], align 1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #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 uwtable
define dso_local void @CLinuxProcessStats(ptr noundef %0, ptr noundef %1) #2 {
B0:
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
store ptr %1, ptr %3, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
%9 = load ptr, ptr %2, align 8, !tbaa !5
%10 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %9, ptr noundef @.str.7, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3
%11 = load i64, ptr %4, align 8, !tbaa !9
%12 = load ptr, ptr %3, align 8, !tbaa !5
%13 = getelementptr inbounds %STRUCT0, ptr %12, i32 0, i32 0
store i64 %11, ptr %13, align 8, !tbaa !11
%14 = load i64, ptr %5, align 8, !tbaa !9
%15 = load ptr, ptr %3, align 8, !tbaa !5
%16 = getelementptr inbounds %STRUCT0, ptr %15, i32 0, i32 1
store i64 %14, ptr %16, align 8, !tbaa !13
%17 = load i64, ptr %6, align 8, !tbaa !9
%18 = load ptr, ptr %3, align 8, !tbaa !5
%19 = getelementptr inbounds %STRUCT0, ptr %18, i32 0, i32 3
store i64 %17, ptr %19, align 8, !tbaa !14
%20 = load i64, ptr %7, align 8, !tbaa !9
%21 = load ptr, ptr %3, align 8, !tbaa !5
%22 = getelementptr inbounds %STRUCT0, ptr %21, i32 0, i32 4
store i64 %20, ptr %22, align 8, !tbaa !15
%23 = load i64, ptr %8, align 8, !tbaa !9
%24 = load ptr, ptr %3, align 8, !tbaa !5
%25 = getelementptr inbounds %STRUCT0, ptr %24, i32 0, i32 5
store i64 %23, ptr %25, align 8, !tbaa !16
%26 = load i64, ptr %4, align 8, !tbaa !9
%27 = load i64, ptr %5, align 8, !tbaa !9
%28 = add nsw i64 %26, %27
%29 = load ptr, ptr %3, align 8, !tbaa !5
%30 = getelementptr inbounds %STRUCT0, ptr %29, i32 0, i32 2
store i64 %28, ptr %30, align 8, !tbaa !17
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
ret void
}
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]: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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"processStats", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 24}
!15 = !{!12, !10, i64 32}
!16 = !{!12, !10, i64 40}
!17 = !{!12, !10, i64 16} | target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str.7 = external hidden unnamed_addr constant [243 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 noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #1
; 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 uwtable
define dso_local void @CLinuxProcessStats(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #2 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%8 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %0, ptr noundef nonnull @.str.7, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7) #3
%9 = load i64, ptr %3, align 8, !tbaa !5
store i64 %9, ptr %1, align 8, !tbaa !9
%10 = load i64, ptr %4, align 8, !tbaa !5
%11 = getelementptr inbounds i8, ptr %1, i64 8
store i64 %10, ptr %11, align 8, !tbaa !11
%12 = load i64, ptr %5, align 8, !tbaa !5
%13 = getelementptr inbounds i8, ptr %1, i64 24
store i64 %12, ptr %13, align 8, !tbaa !12
%14 = load i64, ptr %6, align 8, !tbaa !5
%15 = getelementptr inbounds i8, ptr %1, i64 32
store i64 %14, ptr %15, align 8, !tbaa !13
%16 = load i64, ptr %7, align 8, !tbaa !5
%17 = getelementptr inbounds i8, ptr %1, i64 40
store i64 %16, ptr %17, align 8, !tbaa !14
%18 = add nsw i64 %10, %9
%19 = getelementptr inbounds i8, ptr %1, i64 16
store i64 %18, ptr %19, align 8, !tbaa !15
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret void
}
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 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"processStats", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!10, !6, i64 8}
!12 = !{!10, !6, i64 24}
!13 = !{!10, !6, i64 32}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !6, i64 16}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass | 3b3059f4c6edd12f | ordo-one/package-benchmark | Platform/CLinuxOperatingSystemStats | CLinuxOperatingSystemStats | Apache-2.0 |
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 [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @get_cpu_identifiers(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [256 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8, !tbaa !5
store i32 %1, ptr %5, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
%11 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %11, ptr %6, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 256, ptr %7) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
store i32 0, ptr %8, align 4, !tbaa !9
%12 = load ptr, ptr %6, align 8, !tbaa !5
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %2
call void @perror(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
store i32 1, ptr %9, align 4
br label %54
15: ; preds = %2
br label %16
16: ; preds = %49, %15
%17 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%18 = load ptr, ptr %6, align 8, !tbaa !5
%19 = call ptr @fgets(ptr noundef %17, i32 noundef 256, ptr noundef %18)
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %50
21: ; preds = %16
%22 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%23 = call i32 @strncmp(ptr noundef %22, ptr noundef @.str.3, i64 noundef 9) #6
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %49
25: ; preds = %21
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
%26 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%27 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %26, ptr noundef @.str.4, ptr noundef %10) #5
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %45
29: ; preds = %25
%30 = load i32, ptr %8, align 4, !tbaa !9
%31 = load i32, ptr %5, align 4, !tbaa !9
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %40
33: ; preds = %29
%34 = load i32, ptr %10, align 4, !tbaa !9
%35 = load ptr, ptr %4, align 8, !tbaa !5
%36 = load i32, ptr %8, align 4, !tbaa !9
%37 = add nsw i32 %36, 1
store i32 %37, ptr %8, align 4, !tbaa !9
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds i32, ptr %35, i64 %38
store i32 %34, ptr %39, align 4, !tbaa !9
br label %44
40: ; preds = %29
%41 = load ptr, ptr @stderr, align 8, !tbaa !5
%42 = load i32, ptr %5, align 4, !tbaa !9
%43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.5, i32 noundef %42) #5
store i32 3, ptr %9, align 4
br label %46
44: ; preds = %33
br label %45
45: ; preds = %44, %25
store i32 0, ptr %9, align 4
br label %46
46: ; preds = %45, %40
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
%47 = load i32, ptr %9, align 4
switch i32 %47, label %56 [
i32 0, label %48
i32 3, label %50
]
48: ; preds = %46
br label %49
49: ; preds = %48, %21
br label %16, !llvm.loop !11
50: ; preds = %46, %16
%51 = load ptr, ptr %6, align 8, !tbaa !5
%52 = call i32 @fclose(ptr noundef %51)
%53 = load i32, ptr %8, align 4, !tbaa !9
store i32 %53, ptr %3, align 4
store i32 1, ptr %9, align 4
br label %54
54: ; preds = %50, %14
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
call void @llvm.lifetime.end.p0(i64 256, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
%55 = load i32, ptr %3, align 4
ret i32 %55
56: ; preds = %46
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noalias ptr @fopen(ptr noundef, ptr noundef) #2
declare void @perror(ptr noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2
; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #3
; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #4
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @fclose(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 willreturn memory(read) "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 "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 = { nounwind willreturn memory(read) }
!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 ([email protected]: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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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 [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @get_cpu_identifiers(ptr noundef %0, i32 noundef %1) #0 {
B0:
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8, !tbaa !5
store i32 %1, ptr %4, align 4, !tbaa !9
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
%10 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %10, ptr %5, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 256, ptr %6) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !9
%11 = load ptr, ptr %5, align 8, !tbaa !5
%12 = icmp ne ptr %11, null
br i1 %12, label %B2, label %B1
B1:
call void @perror(ptr noundef @.str.2)
store i32 -1, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %B15
B2:
br label %B3
B3:
%13 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%14 = load ptr, ptr %5, align 8, !tbaa !5
%15 = call ptr @fgets(ptr noundef %13, i32 noundef 256, ptr noundef %14)
%16 = icmp ne ptr %15, null
br i1 %16, label %B4, label %B14
B4:
%17 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @strncmp(ptr noundef %17, ptr noundef @.str.3, i64 noundef 9) #6
%19 = icmp eq i32 %18, 0
br i1 %19, label %B5, label %B13
B5:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
%20 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%21 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %20, ptr noundef @.str.4, ptr noundef %9) #5
%22 = icmp eq i32 %21, 1
br i1 %22, label %B6, label %B10
B6:
%23 = load i32, ptr %7, align 4, !tbaa !9
%24 = load i32, ptr %4, align 4, !tbaa !9
%25 = icmp slt i32 %23, %24
br i1 %25, label %B7, label %B8
B7:
%26 = load i32, ptr %9, align 4, !tbaa !9
%27 = load ptr, ptr %3, align 8, !tbaa !5
%28 = load i32, ptr %7, align 4, !tbaa !9
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4, !tbaa !9
%30 = sext i32 %28 to i64
%31 = getelementptr inbounds i32, ptr %27, i64 %30
store i32 %26, ptr %31, align 4, !tbaa !9
br label %B9
B8:
%32 = load ptr, ptr @stderr, align 8, !tbaa !5
%33 = load i32, ptr %4, align 4, !tbaa !9
%34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.5, i32 noundef %33) #5
store i32 3, ptr %8, align 4
br label %B11
B9:
br label %B10
B10:
store i32 0, ptr %8, align 4
br label %B11
B11:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
%35 = load i32, ptr %8, align 4
switch i32 %35, label %B16 [
i32 0, label %B12
i32 3, label %B14
]
B12:
br label %B13
B13:
br label %B3, !llvm.loop !11
B14:
%36 = load ptr, ptr %5, align 8, !tbaa !5
%37 = call i32 @fclose(ptr noundef %36)
%38 = load i32, ptr %7, align 4, !tbaa !9
store i32 %38, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %B15
B15:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 256, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
%39 = load i32, ptr %2, align 4
ret i32 %39
B16:
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noalias ptr @fopen(ptr noundef, ptr noundef) #2
declare void @perror(ptr noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2
; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #3
; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #4
; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @fclose(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 willreturn memory(read) "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 "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 = { nounwind willreturn memory(read) }
!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 ([email protected]: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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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 [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @get_cpu_identifiers(ptr nocapture noundef writeonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca [256 x i8], align 16
%4 = alloca i32, align 4
%5 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #4
%.not = icmp eq ptr %5, null
br i1 %.not, label %7, label %.preheader
.preheader: ; preds = %2
%6 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 256, ptr noundef nonnull %5)
%.not1319 = icmp eq ptr %6, null
br i1 %.not1319, label %.loopexit, label %.lr.ph
7: ; preds = %2
tail call void @perror(ptr noundef nonnull @.str.2) #5
br label %26
.lr.ph: ; preds = %.preheader, %23
%.01020 = phi i32 [ %.3, %23 ], [ 0, %.preheader ]
%8 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef 9) #6
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %23
10: ; preds = %.lr.ph
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
%11 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.4, ptr noundef nonnull %4) #4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %.thread
13: ; preds = %10
%14 = icmp slt i32 %.01020, %1
br i1 %14, label %15, label %20
15: ; preds = %13
%16 = load i32, ptr %4, align 4, !tbaa !5
%17 = add nsw i32 %.01020, 1
%18 = sext i32 %.01020 to i64
%19 = getelementptr inbounds i32, ptr %0, i64 %18
store i32 %16, ptr %19, align 4, !tbaa !5
br label %.thread
.thread: ; preds = %15, %10
%.2.ph = phi i32 [ %.01020, %10 ], [ %17, %15 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
br label %23
20: ; preds = %13
%21 = load ptr, ptr @stderr, align 8, !tbaa !9
%22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.5, i32 noundef %1) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
br label %.loopexit
23: ; preds = %.thread, %.lr.ph
%.3 = phi i32 [ %.01020, %.lr.ph ], [ %.2.ph, %.thread ]
%24 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 256, ptr noundef nonnull %5)
%.not13 = icmp eq ptr %24, null
br i1 %.not13, label %.loopexit, label %.lr.ph, !llvm.loop !11
.loopexit: ; preds = %23, %.preheader, %20
%.01018 = phi i32 [ %.01020, %20 ], [ 0, %.preheader ], [ %.3, %23 ]
%25 = call i32 @fclose(ptr noundef nonnull %5)
br label %26
26: ; preds = %.loopexit, %7
%.011 = phi i32 [ %.01018, %.loopexit ], [ -1, %7 ]
call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #4
ret i32 %.011
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2
attributes #0 = { nofree 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 = { 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 #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 }
attributes #5 = { cold }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass | 753225d05254bcb0 | ordo-one/package-benchmark | Platform/CLinuxOperatingSystemStats | CLinuxOperatingSystemStats | Apache-2.0 |
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.hook_data_alloc_s = type { ptr, ptr, ptr }
@_swift_alloc_object_hook_data = external hidden global %struct.hook_data_alloc_s, align 8
@_swift_allocObject = external global ptr, align 8
; Function Attrs: nounwind uwtable
define dso_local void @swift_runtime_set_alloc_object_hook(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca %struct.hook_data_alloc_s, align 8
%6 = alloca %struct.hook_data_alloc_s, align 8
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
%7 = load ptr, ptr %3, align 8, !tbaa !5
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load ptr, ptr @_swift_alloc_object_hook_data, align 8, !tbaa !9
store ptr %10, ptr @_swift_allocObject, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_alloc_object_hook_data, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !11
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
br label %18
11: ; preds = %2
call void @llvm.lifetime.start.p0(i64 24, ptr %6) #4
%12 = getelementptr inbounds %struct.hook_data_alloc_s, ptr %6, i32 0, i32 0
%13 = load ptr, ptr @_swift_allocObject, align 8, !tbaa !5
store ptr %13, ptr %12, align 8, !tbaa !9
%14 = getelementptr inbounds %struct.hook_data_alloc_s, ptr %6, i32 0, i32 1
%15 = load ptr, ptr %3, align 8, !tbaa !5
store ptr %15, ptr %14, align 8, !tbaa !12
%16 = getelementptr inbounds %struct.hook_data_alloc_s, ptr %6, i32 0, i32 2
%17 = load ptr, ptr %4, align 8, !tbaa !5
store ptr %17, ptr %16, align 8, !tbaa !13
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_alloc_object_hook_data, ptr align 8 %6, i64 24, i1 false), !tbaa.struct !11
store ptr @_swift_alloc_object_hook, ptr @_swift_allocObject, align 8, !tbaa !5
call void @llvm.lifetime.end.p0(i64 24, ptr %6) #4
br label %18
18: ; preds = %11, %9
ret void
}
; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
; 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 hidden ptr @_swift_alloc_object_hook(ptr noundef, i64 noundef, i64 noundef) #0
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 ([email protected]: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, !6, i64 0}
!10 = !{!"hook_data_alloc_s", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
| 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"
%STRUCT0 = type { ptr, ptr, ptr }
@_swift_alloc_object_hook_data = external hidden global %STRUCT0, align 8
@_swift_allocObject = external global ptr, align 8
; Function Attrs: nounwind uwtable
define dso_local void @swift_runtime_set_alloc_object_hook(ptr noundef %0, ptr noundef %1) #0 {
B0:
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca %STRUCT0, align 8
%5 = alloca %STRUCT0, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
store ptr %1, ptr %3, align 8, !tbaa !5
%6 = load ptr, ptr %2, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %B1, label %B2
B1:
%8 = load ptr, ptr @_swift_alloc_object_hook_data, align 8, !tbaa !9
store ptr %8, ptr @_swift_allocObject, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #4
call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_alloc_object_hook_data, ptr align 8 %4, i64 24, i1 false), !tbaa.struct !11
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
br label %B3
B2:
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
%9 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 0
%10 = load ptr, ptr @_swift_allocObject, align 8, !tbaa !5
store ptr %10, ptr %9, align 8, !tbaa !9
%11 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 1
%12 = load ptr, ptr %2, align 8, !tbaa !5
store ptr %12, ptr %11, align 8, !tbaa !12
%13 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 2
%14 = load ptr, ptr %3, align 8, !tbaa !5
store ptr %14, ptr %13, align 8, !tbaa !13
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_alloc_object_hook_data, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !11
store ptr @_swift_alloc_object_hook, ptr @_swift_allocObject, align 8, !tbaa !5
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
br label %B3
B3:
ret void
}
; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
; 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 hidden ptr @_swift_alloc_object_hook(ptr noundef, i64 noundef, i64 noundef) #0
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 ([email protected]: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, !6, i64 0}
!10 = !{!"hook_data_alloc_s", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16} | 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.hook_data_alloc_s = type { ptr, ptr, ptr }
@_swift_alloc_object_hook_data = external hidden local_unnamed_addr global %struct.hook_data_alloc_s, align 8
@_swift_allocObject = external local_unnamed_addr global ptr, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @swift_runtime_set_alloc_object_hook(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %0, null
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = load ptr, ptr @_swift_alloc_object_hook_data, align 8, !tbaa !5
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) @_swift_alloc_object_hook_data, i8 0, i64 24, i1 false)
br label %8
6: ; preds = %2
%7 = load ptr, ptr @_swift_allocObject, align 8, !tbaa !10
store ptr %7, ptr @_swift_alloc_object_hook_data, align 8, !tbaa !10
store ptr %0, ptr getelementptr inbounds (i8, ptr @_swift_alloc_object_hook_data, i64 8), align 8, !tbaa !10
store ptr %1, ptr getelementptr inbounds (i8, ptr @_swift_alloc_object_hook_data, i64 16), align 8, !tbaa !10
br label %8
8: ; preds = %6, %4
%_swift_alloc_object_hook.sink = phi ptr [ %5, %4 ], [ @_swift_alloc_object_hook, %6 ]
store ptr %_swift_alloc_object_hook.sink, ptr @_swift_allocObject, align 8
ret void
}
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_alloc_object_hook(ptr noundef, i64 noundef, i64 noundef) #2
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) 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 nounwind willreturn memory(argmem: write) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"hook_data_alloc_s", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| CorrelatedValuePropagationPass,DSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass | 8453b111f34d7bf0 | ordo-one/package-benchmark | Sources/SwiftRuntimeHooks | shims | Apache-2.0 |
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.hook_data_s = type { ptr, ptr, ptr, ptr, ptr }
@_swift_release_hook_data = external hidden global %struct.hook_data_s, align 8
@_swift_release = external global ptr, align 8
@_swift_release_n = external global ptr, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind uwtable
define dso_local void @swift_runtime_set_release_hook(ptr noundef %0, ptr noundef %1) #3 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca %struct.hook_data_s, align 8
%6 = alloca %struct.hook_data_s, align 8
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
%7 = load ptr, ptr %3, align 8, !tbaa !5
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr @_swift_release_hook_data, align 8, !tbaa !9
store ptr %10, ptr @_swift_release, align 8, !tbaa !5
%11 = load ptr, ptr getelementptr inbounds (%struct.hook_data_s, ptr @_swift_release_hook_data, i32 0, i32 2), align 8, !tbaa !11
store ptr %11, ptr @_swift_release_n, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 40, ptr %5) #4
call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_release_hook_data, ptr align 8 %5, i64 40, i1 false), !tbaa.struct !12
call void @llvm.lifetime.end.p0(i64 40, ptr %5) #4
br label %22
12: ; preds = %2
call void @llvm.lifetime.start.p0(i64 40, ptr %6) #4
%13 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 0
%14 = load ptr, ptr @_swift_release, align 8, !tbaa !5
store ptr %14, ptr %13, align 8, !tbaa !9
%15 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 1
store ptr null, ptr %15, align 8, !tbaa !13
%16 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 2
%17 = load ptr, ptr @_swift_release_n, align 8, !tbaa !5
store ptr %17, ptr %16, align 8, !tbaa !11
%18 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 3
%19 = load ptr, ptr %3, align 8, !tbaa !5
store ptr %19, ptr %18, align 8, !tbaa !14
%20 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 4
%21 = load ptr, ptr %4, align 8, !tbaa !5
store ptr %21, ptr %20, align 8, !tbaa !15
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_release_hook_data, ptr align 8 %6, i64 40, i1 false), !tbaa.struct !12
store ptr @_swift_release_hook, ptr @_swift_release, align 8, !tbaa !5
store ptr @_swift_release_n_hook, ptr @_swift_release_n, align 8, !tbaa !5
call void @llvm.lifetime.end.p0(i64 40, ptr %6) #4
br label %22
22: ; preds = %12, %9
ret void
}
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_release_hook(ptr noundef) #3
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_release_n_hook(ptr noundef, i32 noundef) #3
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 ([email protected]: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, !6, i64 0}
!10 = !{!"hook_data_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!10, !6, i64 16}
!12 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!13 = !{!10, !6, i64 8}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32}
| 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"
%STRUCT0 = type { ptr, ptr, ptr, ptr, ptr }
@_swift_release_hook_data = external hidden global %STRUCT0, align 8
@_swift_release = external global ptr, align 8
@_swift_release_n = external global ptr, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind uwtable
define dso_local void @swift_runtime_set_release_hook(ptr noundef %0, ptr noundef %1) #3 {
B0:
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca %STRUCT0, align 8
%5 = alloca %STRUCT0, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
store ptr %1, ptr %3, align 8, !tbaa !5
%6 = load ptr, ptr %2, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %B1, label %B2
B1:
%8 = load ptr, ptr @_swift_release_hook_data, align 8, !tbaa !9
store ptr %8, ptr @_swift_release, align 8, !tbaa !5
%9 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @_swift_release_hook_data, i32 0, i32 2), align 8, !tbaa !11
store ptr %9, ptr @_swift_release_n, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 40, ptr %4) #4
call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_release_hook_data, ptr align 8 %4, i64 40, i1 false), !tbaa.struct !12
call void @llvm.lifetime.end.p0(i64 40, ptr %4) #4
br label %B3
B2:
call void @llvm.lifetime.start.p0(i64 40, ptr %5) #4
%10 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 0
%11 = load ptr, ptr @_swift_release, align 8, !tbaa !5
store ptr %11, ptr %10, align 8, !tbaa !9
%12 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 1
store ptr null, ptr %12, align 8, !tbaa !13
%13 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 2
%14 = load ptr, ptr @_swift_release_n, align 8, !tbaa !5
store ptr %14, ptr %13, align 8, !tbaa !11
%15 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 3
%16 = load ptr, ptr %2, align 8, !tbaa !5
store ptr %16, ptr %15, align 8, !tbaa !14
%17 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 4
%18 = load ptr, ptr %3, align 8, !tbaa !5
store ptr %18, ptr %17, align 8, !tbaa !15
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_release_hook_data, ptr align 8 %5, i64 40, i1 false), !tbaa.struct !12
store ptr @_swift_release_hook, ptr @_swift_release, align 8, !tbaa !5
store ptr @_swift_release_n_hook, ptr @_swift_release_n, align 8, !tbaa !5
call void @llvm.lifetime.end.p0(i64 40, ptr %5) #4
br label %B3
B3:
ret void
}
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_release_hook(ptr noundef) #3
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_release_n_hook(ptr noundef, i32 noundef) #3
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 ([email protected]: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, !6, i64 0}
!10 = !{!"hook_data_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!10, !6, i64 16}
!12 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!13 = !{!10, !6, i64 8}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32} | 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.hook_data_s = type { ptr, ptr, ptr, ptr, ptr }
@_swift_release_hook_data = external hidden local_unnamed_addr global %struct.hook_data_s, align 8
@_swift_release = external local_unnamed_addr global ptr, align 8
@_swift_release_n = external local_unnamed_addr global ptr, align 8
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @swift_runtime_set_release_hook(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
%3 = icmp eq ptr %0, null
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load ptr, ptr @_swift_release_hook_data, align 8, !tbaa !5
%6 = load ptr, ptr getelementptr inbounds (i8, ptr @_swift_release_hook_data, i64 16), align 8, !tbaa !10
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) @_swift_release_hook_data, i8 0, i64 40, i1 false)
br label %10
7: ; preds = %2
%8 = load ptr, ptr @_swift_release, align 8, !tbaa !11
%9 = load ptr, ptr @_swift_release_n, align 8, !tbaa !11
store ptr %8, ptr @_swift_release_hook_data, align 8, !tbaa !11
store ptr null, ptr getelementptr inbounds (i8, ptr @_swift_release_hook_data, i64 8), align 8, !tbaa !11
store ptr %9, ptr getelementptr inbounds (i8, ptr @_swift_release_hook_data, i64 16), align 8, !tbaa !11
store ptr %0, ptr getelementptr inbounds (i8, ptr @_swift_release_hook_data, i64 24), align 8, !tbaa !11
store ptr %1, ptr getelementptr inbounds (i8, ptr @_swift_release_hook_data, i64 32), align 8, !tbaa !11
br label %10
10: ; preds = %7, %4
%_swift_release_hook.sink = phi ptr [ %5, %4 ], [ @_swift_release_hook, %7 ]
%_swift_release_n_hook.sink = phi ptr [ %6, %4 ], [ @_swift_release_n_hook, %7 ]
store ptr %_swift_release_hook.sink, ptr @_swift_release, align 8
store ptr %_swift_release_n_hook.sink, ptr @_swift_release_n, align 8
ret void
}
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_release_hook(ptr noundef) #2
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_release_n_hook(ptr noundef, i32 noundef) #2
attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) 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 #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"hook_data_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 16}
!11 = !{!7, !7, i64 0}
| CorrelatedValuePropagationPass,DSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass | d99aa46c5daa7abc | ordo-one/package-benchmark | Sources/SwiftRuntimeHooks | shims | Apache-2.0 |
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.hook_data_s = type { ptr, ptr, ptr, ptr, ptr }
@_swift_retain_hook_data = external hidden global %struct.hook_data_s, align 8
@_swift_retain = external global ptr, align 8
@_swift_tryRetain = external global ptr, align 8
@_swift_retain_n = external global ptr, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind uwtable
define dso_local void @swift_runtime_set_retain_hook(ptr noundef %0, ptr noundef %1) #3 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca %struct.hook_data_s, align 8
%6 = alloca %struct.hook_data_s, align 8
store ptr %0, ptr %3, align 8, !tbaa !5
store ptr %1, ptr %4, align 8, !tbaa !5
%7 = load ptr, ptr %3, align 8, !tbaa !5
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load ptr, ptr @_swift_retain_hook_data, align 8, !tbaa !9
store ptr %10, ptr @_swift_retain, align 8, !tbaa !5
%11 = load ptr, ptr getelementptr inbounds (%struct.hook_data_s, ptr @_swift_retain_hook_data, i32 0, i32 1), align 8, !tbaa !11
store ptr %11, ptr @_swift_tryRetain, align 8, !tbaa !5
%12 = load ptr, ptr getelementptr inbounds (%struct.hook_data_s, ptr @_swift_retain_hook_data, i32 0, i32 2), align 8, !tbaa !12
store ptr %12, ptr @_swift_retain_n, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 40, ptr %5) #4
call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_retain_hook_data, ptr align 8 %5, i64 40, i1 false), !tbaa.struct !13
call void @llvm.lifetime.end.p0(i64 40, ptr %5) #4
br label %24
13: ; preds = %2
call void @llvm.lifetime.start.p0(i64 40, ptr %6) #4
%14 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 0
%15 = load ptr, ptr @_swift_retain, align 8, !tbaa !5
store ptr %15, ptr %14, align 8, !tbaa !9
%16 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 1
%17 = load ptr, ptr @_swift_tryRetain, align 8, !tbaa !5
store ptr %17, ptr %16, align 8, !tbaa !11
%18 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 2
%19 = load ptr, ptr @_swift_retain_n, align 8, !tbaa !5
store ptr %19, ptr %18, align 8, !tbaa !12
%20 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 3
%21 = load ptr, ptr %3, align 8, !tbaa !5
store ptr %21, ptr %20, align 8, !tbaa !14
%22 = getelementptr inbounds %struct.hook_data_s, ptr %6, i32 0, i32 4
%23 = load ptr, ptr %4, align 8, !tbaa !5
store ptr %23, ptr %22, align 8, !tbaa !15
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_retain_hook_data, ptr align 8 %6, i64 40, i1 false), !tbaa.struct !13
store ptr @_swift_retain_hook, ptr @_swift_retain, align 8, !tbaa !5
store ptr @_swift_tryRetain_hook, ptr @_swift_tryRetain, align 8, !tbaa !5
store ptr @_swift_retain_n_hook, ptr @_swift_retain_n, align 8, !tbaa !5
call void @llvm.lifetime.end.p0(i64 40, ptr %6) #4
br label %24
24: ; preds = %13, %9
ret void
}
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_retain_hook(ptr noundef) #3
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_tryRetain_hook(ptr noundef) #3
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_retain_n_hook(ptr noundef, i32 noundef) #3
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 ([email protected]: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, !6, i64 0}
!10 = !{!"hook_data_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!10, !6, i64 8}
!12 = !{!10, !6, i64 16}
!13 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32}
| 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"
%STRUCT0 = type { ptr, ptr, ptr, ptr, ptr }
@_swift_retain_hook_data = external hidden global %STRUCT0, align 8
@_swift_retain = external global ptr, align 8
@_swift_tryRetain = external global ptr, align 8
@_swift_retain_n = external global ptr, align 8
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0
; Function Attrs: nounwind uwtable
define dso_local void @swift_runtime_set_retain_hook(ptr noundef %0, ptr noundef %1) #3 {
B0:
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca %STRUCT0, align 8
%5 = alloca %STRUCT0, align 8
store ptr %0, ptr %2, align 8, !tbaa !5
store ptr %1, ptr %3, align 8, !tbaa !5
%6 = load ptr, ptr %2, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %B1, label %B2
B1:
%8 = load ptr, ptr @_swift_retain_hook_data, align 8, !tbaa !9
store ptr %8, ptr @_swift_retain, align 8, !tbaa !5
%9 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @_swift_retain_hook_data, i32 0, i32 1), align 8, !tbaa !11
store ptr %9, ptr @_swift_tryRetain, align 8, !tbaa !5
%10 = load ptr, ptr getelementptr inbounds (%STRUCT0, ptr @_swift_retain_hook_data, i32 0, i32 2), align 8, !tbaa !12
store ptr %10, ptr @_swift_retain_n, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 40, ptr %4) #4
call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_retain_hook_data, ptr align 8 %4, i64 40, i1 false), !tbaa.struct !13
call void @llvm.lifetime.end.p0(i64 40, ptr %4) #4
br label %B3
B2:
call void @llvm.lifetime.start.p0(i64 40, ptr %5) #4
%11 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 0
%12 = load ptr, ptr @_swift_retain, align 8, !tbaa !5
store ptr %12, ptr %11, align 8, !tbaa !9
%13 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 1
%14 = load ptr, ptr @_swift_tryRetain, align 8, !tbaa !5
store ptr %14, ptr %13, align 8, !tbaa !11
%15 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 2
%16 = load ptr, ptr @_swift_retain_n, align 8, !tbaa !5
store ptr %16, ptr %15, align 8, !tbaa !12
%17 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 3
%18 = load ptr, ptr %2, align 8, !tbaa !5
store ptr %18, ptr %17, align 8, !tbaa !14
%19 = getelementptr inbounds %STRUCT0, ptr %5, i32 0, i32 4
%20 = load ptr, ptr %3, align 8, !tbaa !5
store ptr %20, ptr %19, align 8, !tbaa !15
call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_swift_retain_hook_data, ptr align 8 %5, i64 40, i1 false), !tbaa.struct !13
store ptr @_swift_retain_hook, ptr @_swift_retain, align 8, !tbaa !5
store ptr @_swift_tryRetain_hook, ptr @_swift_tryRetain, align 8, !tbaa !5
store ptr @_swift_retain_n_hook, ptr @_swift_retain_n, align 8, !tbaa !5
call void @llvm.lifetime.end.p0(i64 40, ptr %5) #4
br label %B3
B3:
ret void
}
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_retain_hook(ptr noundef) #3
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_tryRetain_hook(ptr noundef) #3
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_retain_n_hook(ptr noundef, i32 noundef) #3
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 ([email protected]: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, !6, i64 0}
!10 = !{!"hook_data_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!10, !6, i64 8}
!12 = !{!10, !6, i64 16}
!13 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32} | 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.hook_data_s = type { ptr, ptr, ptr, ptr, ptr }
@_swift_retain_hook_data = external hidden local_unnamed_addr global %struct.hook_data_s, align 8
@_swift_retain = external local_unnamed_addr global ptr, align 8
@_swift_tryRetain = external local_unnamed_addr global ptr, align 8
@_swift_retain_n = external local_unnamed_addr global ptr, align 8
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @swift_runtime_set_retain_hook(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
%3 = icmp eq ptr %0, null
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = load ptr, ptr @_swift_retain_hook_data, align 8, !tbaa !5
%6 = load ptr, ptr getelementptr inbounds (i8, ptr @_swift_retain_hook_data, i64 8), align 8, !tbaa !10
%7 = load ptr, ptr getelementptr inbounds (i8, ptr @_swift_retain_hook_data, i64 16), align 8, !tbaa !11
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) @_swift_retain_hook_data, i8 0, i64 40, i1 false)
br label %12
8: ; preds = %2
%9 = load ptr, ptr @_swift_retain, align 8, !tbaa !12
%10 = load ptr, ptr @_swift_tryRetain, align 8, !tbaa !12
%11 = load ptr, ptr @_swift_retain_n, align 8, !tbaa !12
store ptr %9, ptr @_swift_retain_hook_data, align 8, !tbaa !12
store ptr %10, ptr getelementptr inbounds (i8, ptr @_swift_retain_hook_data, i64 8), align 8, !tbaa !12
store ptr %11, ptr getelementptr inbounds (i8, ptr @_swift_retain_hook_data, i64 16), align 8, !tbaa !12
store ptr %0, ptr getelementptr inbounds (i8, ptr @_swift_retain_hook_data, i64 24), align 8, !tbaa !12
store ptr %1, ptr getelementptr inbounds (i8, ptr @_swift_retain_hook_data, i64 32), align 8, !tbaa !12
br label %12
12: ; preds = %8, %4
%_swift_retain_hook.sink = phi ptr [ %5, %4 ], [ @_swift_retain_hook, %8 ]
%_swift_tryRetain_hook.sink = phi ptr [ %6, %4 ], [ @_swift_tryRetain_hook, %8 ]
%_swift_retain_n_hook.sink = phi ptr [ %7, %4 ], [ @_swift_retain_n_hook, %8 ]
store ptr %_swift_retain_hook.sink, ptr @_swift_retain, align 8
store ptr %_swift_tryRetain_hook.sink, ptr @_swift_tryRetain, align 8
store ptr %_swift_retain_n_hook.sink, ptr @_swift_retain_n, align 8
ret void
}
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_retain_hook(ptr noundef) #2
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_tryRetain_hook(ptr noundef) #2
; Function Attrs: nounwind uwtable
declare hidden ptr @_swift_retain_n_hook(ptr noundef, i32 noundef) #2
attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) 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 #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"hook_data_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!7, !7, i64 0}
| CorrelatedValuePropagationPass,DSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass | 929ffb32267fb4d | ordo-one/package-benchmark | Sources/SwiftRuntimeHooks | shims | Apache-2.0 |
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"
@prime = external dso_local global i8, align 1
; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_Z5checki(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = srem i32 %3, 5
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i8 0, ptr @prime, align 1, !tbaa !9
br label %7
7: ; preds = %6, %1
%8 = load i8, ptr @prime, align 1, !tbaa !9, !range !11, !noundef !12
%9 = trunc i8 %8 to i1
ret i1 %9
}
attributes #0 = { mustprogress 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" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
| 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"
@prime = external dso_local global i8, align 1
; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_Z5checki(i32 noundef %0) #0 {
B0:
%1 = alloca i32, align 4
store i32 %0, ptr %1, align 4, !tbaa !5
%2 = load i32, ptr %1, align 4, !tbaa !5
%3 = srem i32 %2, 5
%4 = icmp eq i32 %3, 0
br i1 %4, label %B1, label %B2
B1:
store i8 0, ptr @prime, align 1, !tbaa !9
br label %B2
B2:
%5 = load i8, ptr @prime, align 1, !tbaa !9, !range !11, !noundef !12
%6 = trunc i8 %5 to i1
ret i1 %6
}
attributes #0 = { mustprogress 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" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{} | 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"
@prime = external dso_local local_unnamed_addr global i8, align 1
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local noundef zeroext i1 @_Z5checki(i32 noundef %0) local_unnamed_addr #0 {
%2 = srem i32 %0, 5
%3 = icmp eq i32 %2, 0
br i1 %3, label %5, label %._crit_edge
._crit_edge: ; preds = %1
%.pre = load i8, ptr @prime, align 1, !tbaa !5, !range !9
%4 = trunc nuw i8 %.pre to i1
br label %6
5: ; preds = %1
store i8 0, ptr @prime, align 1, !tbaa !5
br label %6
6: ; preds = %._crit_edge, %5
%7 = phi i1 [ %4, %._crit_edge ], [ false, %5 ]
ret i1 %7
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) 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" }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
| GVNPass,GlobalOptPass,IPSCCPPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass | 46501633b649235c | shreyamalogi/CP-practice | codechef/A_ATM.ll | Z5checki | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %7
7: ; preds = %43, %0
%8 = load i32, ptr %2, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %2, align 4, !tbaa !5
%10 = icmp ne i32 %8, 0
br i1 %10, label %11, label %45
11: ; preds = %7
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %4)
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
%14 = load i32, ptr %3, align 4, !tbaa !5
%15 = load i32, ptr %4, align 4, !tbaa !5
%16 = load i32, ptr %4, align 4, !tbaa !5
%17 = mul nsw i32 %15, %16
%18 = sdiv i32 %14, %17
store i32 %18, ptr %5, align 4, !tbaa !5
%19 = load i32, ptr %5, align 4, !tbaa !5
%20 = icmp sle i32 %19, 18
br i1 %20, label %21, label %23
21: ; preds = %11
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
br label %43
23: ; preds = %11
%24 = load i32, ptr %5, align 4, !tbaa !5
%25 = icmp sge i32 %24, 19
br i1 %25, label %26, label %31
26: ; preds = %23
%27 = load i32, ptr %5, align 4, !tbaa !5
%28 = icmp sle i32 %27, 24
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
br label %42
31: ; preds = %26, %23
%32 = load i32, ptr %5, align 4, !tbaa !5
%33 = icmp sge i32 %32, 25
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = load i32, ptr %5, align 4, !tbaa !5
%36 = icmp sle i32 %35, 29
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 3)
br label %41
39: ; preds = %34, %31
%40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 4)
br label %41
41: ; preds = %39, %37
br label %42
42: ; preds = %41, %29
br label %43
43: ; preds = %42, %21
%44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
br label %7, !llvm.loop !9
45: ; preds = %7
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
%5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%6 = load i32, ptr %1, align 4, !tbaa !5
%7 = add nsw i32 %6, -1
store i32 %7, ptr %1, align 4, !tbaa !5
%8 = icmp ne i32 %6, 0
br i1 %8, label %B2, label %B14
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = load i32, ptr %3, align 4, !tbaa !5
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = mul nsw i32 %12, %13
%15 = sdiv i32 %11, %14
store i32 %15, ptr %4, align 4, !tbaa !5
%16 = load i32, ptr %4, align 4, !tbaa !5
%17 = icmp sle i32 %16, 18
br i1 %17, label %B3, label %B4
B3:
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
br label %B13
B4:
%19 = load i32, ptr %4, align 4, !tbaa !5
%20 = icmp sge i32 %19, 19
br i1 %20, label %B5, label %B7
B5:
%21 = load i32, ptr %4, align 4, !tbaa !5
%22 = icmp sle i32 %21, 24
br i1 %22, label %B6, label %B7
B6:
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
br label %B12
B7:
%24 = load i32, ptr %4, align 4, !tbaa !5
%25 = icmp sge i32 %24, 25
br i1 %25, label %B8, label %B10
B8:
%26 = load i32, ptr %4, align 4, !tbaa !5
%27 = icmp sle i32 %26, 29
br i1 %27, label %B9, label %B10
B9:
%28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 3)
br label %B11
B10:
%29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 4)
br label %B11
B11:
br label %B12
B12:
br label %B13
B13:
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
br label %B1, !llvm.loop !9
B14:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = add nsw i32 %5, -1
store i32 %6, ptr %1, align 4, !tbaa !5
%.not8 = icmp eq i32 %5, 0
br i1 %.not8, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %18
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
%9 = load i32, ptr %2, align 4, !tbaa !5
%10 = load i32, ptr %3, align 4, !tbaa !5
%11 = mul nsw i32 %10, %10
%12 = sdiv i32 %9, %11
%13 = icmp slt i32 %12, 19
br i1 %13, label %18, label %14
14: ; preds = %.lr.ph
%15 = icmp ult i32 %12, 25
br i1 %15, label %18, label %16
16: ; preds = %14
%17 = icmp ult i32 %12, 30
%. = select i1 %17, i32 3, i32 4
br label %18
18: ; preds = %16, %14, %.lr.ph
%.sink = phi i32 [ 1, %.lr.ph ], [ 2, %14 ], [ %., %16 ]
%19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sink)
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
%21 = load i32, ptr %1, align 4, !tbaa !5
%22 = add nsw i32 %21, -1
store i32 %22, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %21, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %18, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) 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) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | b0df960b837d360e | shreyamalogi/CP-practice | codechef | B_BMI | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %"class.std::vector", align 8
%10 = alloca %"class.std::allocator", align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %15
15: ; preds = %111, %0
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = add nsw i32 %16, -1
store i32 %17, ptr %2, align 4, !tbaa !5
%18 = icmp ne i32 %16, 0
br i1 %18, label %19, label %120
19: ; preds = %15
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
%20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
%21 = load i32, ptr %3, align 4, !tbaa !5
%22 = sext i32 %21 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %23 unwind label %29
23: ; preds = %19
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
store i32 0, ptr %8, align 4, !tbaa !5
br label %24
24: ; preds = %39, %23
%25 = load i32, ptr %8, align 4, !tbaa !5
%26 = load i32, ptr %3, align 4, !tbaa !5
%27 = icmp slt i32 %25, %26
br i1 %27, label %33, label %28
28: ; preds = %24
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
br label %46
29: ; preds = %19
%30 = landingpad { ptr, i32 }
cleanup
%31 = extractvalue { ptr, i32 } %30, 0
store ptr %31, ptr %6, align 8
%32 = extractvalue { ptr, i32 } %30, 1
store i32 %32, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
br label %119
33: ; preds = %24
%34 = load i32, ptr %8, align 4, !tbaa !5
%35 = sext i32 %34 to i64
%36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %35) #7
%37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %36)
to label %38 unwind label %42
38: ; preds = %33
br label %39
39: ; preds = %38
%40 = load i32, ptr %8, align 4, !tbaa !5
%41 = add nsw i32 %40, 1
store i32 %41, ptr %8, align 4, !tbaa !5
br label %24, !llvm.loop !9
42: ; preds = %33
%43 = landingpad { ptr, i32 }
cleanup
%44 = extractvalue { ptr, i32 } %43, 0
store ptr %44, ptr %6, align 8
%45 = extractvalue { ptr, i32 } %43, 1
store i32 %45, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
br label %118
46: ; preds = %28
call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
%47 = load i32, ptr %3, align 4, !tbaa !5
%48 = sext i32 %47 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %48, ptr noundef nonnull align 1 dereferenceable(1) %10)
to label %49 unwind label %58
49: ; preds = %46
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
%50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
%51 = load i32, ptr %50, align 4, !tbaa !5
%52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #7
store i32 %51, ptr %52, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
store i32 1, ptr %11, align 4, !tbaa !5
br label %53
53: ; preds = %76, %49
%54 = load i32, ptr %11, align 4, !tbaa !5
%55 = load i32, ptr %3, align 4, !tbaa !5
%56 = icmp slt i32 %54, %55
br i1 %56, label %62, label %57
57: ; preds = %53
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
br label %83
58: ; preds = %46
%59 = landingpad { ptr, i32 }
cleanup
%60 = extractvalue { ptr, i32 } %59, 0
store ptr %60, ptr %6, align 8
%61 = extractvalue { ptr, i32 } %59, 1
store i32 %61, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
br label %117
62: ; preds = %53
%63 = load i32, ptr %11, align 4, !tbaa !5
%64 = sext i32 %63 to i64
%65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %64) #7
%66 = load i32, ptr %11, align 4, !tbaa !5
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %68) #7
%70 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %69)
to label %71 unwind label %79
71: ; preds = %62
%72 = load i32, ptr %70, align 4, !tbaa !5
%73 = load i32, ptr %11, align 4, !tbaa !5
%74 = sext i32 %73 to i64
%75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %74) #7
store i32 %72, ptr %75, align 4, !tbaa !5
br label %76
76: ; preds = %71
%77 = load i32, ptr %11, align 4, !tbaa !5
%78 = add nsw i32 %77, 1
store i32 %78, ptr %11, align 4, !tbaa !5
br label %53, !llvm.loop !11
79: ; preds = %62
%80 = landingpad { ptr, i32 }
cleanup
%81 = extractvalue { ptr, i32 } %80, 0
store ptr %81, ptr %6, align 8
%82 = extractvalue { ptr, i32 } %80, 1
store i32 %82, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
br label %116
83: ; preds = %57
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
store i32 0, ptr %12, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
store i32 0, ptr %13, align 4, !tbaa !5
br label %84
84: ; preds = %103, %83
%85 = load i32, ptr %13, align 4, !tbaa !5
%86 = load i32, ptr %3, align 4, !tbaa !5
%87 = icmp slt i32 %85, %86
br i1 %87, label %89, label %88
88: ; preds = %84
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
br label %106
89: ; preds = %84
%90 = load i32, ptr %13, align 4, !tbaa !5
%91 = sext i32 %90 to i64
%92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %91) #7
%93 = load i32, ptr %92, align 4, !tbaa !5
%94 = load i32, ptr %13, align 4, !tbaa !5
%95 = sext i32 %94 to i64
%96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %95) #7
%97 = load i32, ptr %96, align 4, !tbaa !5
%98 = icmp eq i32 %93, %97
br i1 %98, label %99, label %102
99: ; preds = %89
%100 = load i32, ptr %12, align 4, !tbaa !5
%101 = add nsw i32 %100, 1
store i32 %101, ptr %12, align 4, !tbaa !5
br label %102
102: ; preds = %99, %89
br label %103
103: ; preds = %102
%104 = load i32, ptr %13, align 4, !tbaa !5
%105 = add nsw i32 %104, 1
store i32 %105, ptr %13, align 4, !tbaa !5
br label %84, !llvm.loop !12
106: ; preds = %88
%107 = load i32, ptr %12, align 4, !tbaa !5
%108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %107)
to label %109 unwind label %112
109: ; preds = %106
%110 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %111 unwind label %112
111: ; preds = %109
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
br label %15, !llvm.loop !13
112: ; preds = %109, %106
%113 = landingpad { ptr, i32 }
cleanup
%114 = extractvalue { ptr, i32 } %113, 0
store ptr %114, ptr %6, align 8
%115 = extractvalue { ptr, i32 } %113, 1
store i32 %115, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
br label %116
116: ; preds = %112, %79
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
br label %117
117: ; preds = %116, %58
call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
br label %118
118: ; preds = %117, %42
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
br label %119
119: ; preds = %118, %29
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
br label %121
120: ; preds = %15
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
ret i32 0
121: ; preds = %119
%122 = load ptr, ptr %6, align 8
%123 = load i32, ptr %7, align 4
%124 = insertvalue { ptr, i32 } poison, ptr %122, 0
%125 = insertvalue { ptr, i32 } %124, i32 %123, 1
resume { ptr, i32 } %125
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %"class.std::vector", align 8
%9 = alloca %"class.std::allocator", align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%14 = load i32, ptr %1, align 4, !tbaa !5
%15 = add nsw i32 %14, -1
store i32 %15, ptr %1, align 4, !tbaa !5
%16 = icmp ne i32 %14, 0
br i1 %16, label %B2, label %B35
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
%17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #7
%18 = load i32, ptr %2, align 4, !tbaa !5
%19 = sext i32 %18 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %B3 unwind label %B6
B3:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
store i32 0, ptr %7, align 4, !tbaa !5
br label %B4
B4:
%20 = load i32, ptr %7, align 4, !tbaa !5
%21 = load i32, ptr %2, align 4, !tbaa !5
%22 = icmp slt i32 %20, %21
br i1 %22, label %B7, label %B5
B5:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
br label %B11
B6:
%23 = landingpad { ptr, i32 }
cleanup
%24 = extractvalue { ptr, i32 } %23, 0
store ptr %24, ptr %5, align 8
%25 = extractvalue { ptr, i32 } %23, 1
store i32 %25, ptr %6, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
br label %B34
B7:
%26 = load i32, ptr %7, align 4, !tbaa !5
%27 = sext i32 %26 to i64
%28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %27) #7
%29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %28)
to label %B8 unwind label %B10
B8:
br label %B9
B9:
%30 = load i32, ptr %7, align 4, !tbaa !5
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4, !tbaa !5
br label %B4, !llvm.loop !9
B10:
%32 = landingpad { ptr, i32 }
cleanup
%33 = extractvalue { ptr, i32 } %32, 0
store ptr %33, ptr %5, align 8
%34 = extractvalue { ptr, i32 } %32, 1
store i32 %34, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
br label %B33
B11:
call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
%35 = load i32, ptr %2, align 4, !tbaa !5
%36 = sext i32 %35 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %36, ptr noundef nonnull align 1 dereferenceable(1) %9)
to label %B12 unwind label %B15
B12:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
%37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
%38 = load i32, ptr %37, align 4, !tbaa !5
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #7
store i32 %38, ptr %39, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
store i32 1, ptr %10, align 4, !tbaa !5
br label %B13
B13:
%40 = load i32, ptr %10, align 4, !tbaa !5
%41 = load i32, ptr %2, align 4, !tbaa !5
%42 = icmp slt i32 %40, %41
br i1 %42, label %B16, label %B14
B14:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
br label %B20
B15:
%43 = landingpad { ptr, i32 }
cleanup
%44 = extractvalue { ptr, i32 } %43, 0
store ptr %44, ptr %5, align 8
%45 = extractvalue { ptr, i32 } %43, 1
store i32 %45, ptr %6, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
br label %B32
B16:
%46 = load i32, ptr %10, align 4, !tbaa !5
%47 = sext i32 %46 to i64
%48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %47) #7
%49 = load i32, ptr %10, align 4, !tbaa !5
%50 = sub nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %51) #7
%53 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %52)
to label %B17 unwind label %B19
B17:
%54 = load i32, ptr %53, align 4, !tbaa !5
%55 = load i32, ptr %10, align 4, !tbaa !5
%56 = sext i32 %55 to i64
%57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %56) #7
store i32 %54, ptr %57, align 4, !tbaa !5
br label %B18
B18:
%58 = load i32, ptr %10, align 4, !tbaa !5
%59 = add nsw i32 %58, 1
store i32 %59, ptr %10, align 4, !tbaa !5
br label %B13, !llvm.loop !11
B19:
%60 = landingpad { ptr, i32 }
cleanup
%61 = extractvalue { ptr, i32 } %60, 0
store ptr %61, ptr %5, align 8
%62 = extractvalue { ptr, i32 } %60, 1
store i32 %62, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
br label %B31
B20:
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
store i32 0, ptr %11, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
store i32 0, ptr %12, align 4, !tbaa !5
br label %B21
B21:
%63 = load i32, ptr %12, align 4, !tbaa !5
%64 = load i32, ptr %2, align 4, !tbaa !5
%65 = icmp slt i32 %63, %64
br i1 %65, label %B23, label %B22
B22:
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
br label %B27
B23:
%66 = load i32, ptr %12, align 4, !tbaa !5
%67 = sext i32 %66 to i64
%68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %67) #7
%69 = load i32, ptr %68, align 4, !tbaa !5
%70 = load i32, ptr %12, align 4, !tbaa !5
%71 = sext i32 %70 to i64
%72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %71) #7
%73 = load i32, ptr %72, align 4, !tbaa !5
%74 = icmp eq i32 %69, %73
br i1 %74, label %B24, label %B25
B24:
%75 = load i32, ptr %11, align 4, !tbaa !5
%76 = add nsw i32 %75, 1
store i32 %76, ptr %11, align 4, !tbaa !5
br label %B25
B25:
br label %B26
B26:
%77 = load i32, ptr %12, align 4, !tbaa !5
%78 = add nsw i32 %77, 1
store i32 %78, ptr %12, align 4, !tbaa !5
br label %B21, !llvm.loop !12
B27:
%79 = load i32, ptr %11, align 4, !tbaa !5
%80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %79)
to label %B28 unwind label %B30
B28:
%81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B29 unwind label %B30
B29:
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
br label %B1, !llvm.loop !13
B30:
%82 = landingpad { ptr, i32 }
cleanup
%83 = extractvalue { ptr, i32 } %82, 0
store ptr %83, ptr %5, align 8
%84 = extractvalue { ptr, i32 } %82, 1
store i32 %84, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
br label %B31
B31:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
br label %B32
B32:
call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
br label %B33
B33:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
br label %B34
B34:
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
br label %B36
B35:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
ret i32 0
B36:
%85 = load ptr, ptr %5, align 8
%86 = load i32, ptr %6, align 4
%87 = insertvalue { ptr, i32 } poison, ptr %85, 0
%88 = insertvalue { ptr, i32 } %87, i32 %86, 1
resume { ptr, i32 } %88
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca %"class.std::vector", align 8
%6 = alloca %"class.std::allocator", align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%.not37 = icmp eq i32 %8, 0
br i1 %.not37, label %._crit_edge40, label %.lr.ph39
.lr.ph39: ; preds = %0, %57
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = sext i32 %11 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %13 unwind label %16
13: ; preds = %.lr.ph39
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = icmp sgt i32 %14, 0
br i1 %15, label %.lr.ph, label %.._crit_edge_crit_edge
.._crit_edge_crit_edge: ; preds = %13
%.pre = sext i32 %14 to i64
br label %._crit_edge
._crit_edge: ; preds = %20, %.._crit_edge_crit_edge
%.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %22, %20 ]
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.pre-phi, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %26 unwind label %34
16: ; preds = %.lr.ph39
%17 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
br label %64
.lr.ph: ; preds = %13, %20
%indvars.iv = phi i64 [ %indvars.iv.next, %20 ], [ 0, %13 ]
%18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #7
%19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %18)
to label %20 unwind label %24
20: ; preds = %.lr.ph
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%21 = load i32, ptr %2, align 4, !tbaa !5
%22 = sext i32 %21 to i64
%23 = icmp slt i64 %indvars.iv.next, %22
br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !9
24: ; preds = %.lr.ph
%25 = landingpad { ptr, i32 }
cleanup
br label %63
26: ; preds = %._crit_edge
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
%27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
%28 = load i32, ptr %27, align 4, !tbaa !5
%29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #7
store i32 %28, ptr %29, align 4, !tbaa !5
%30 = load i32, ptr %2, align 4, !tbaa !5
%31 = icmp sgt i32 %30, 1
br i1 %31, label %.lr.ph31, label %.preheader
.preheader: ; preds = %.lr.ph31, %26
%32 = phi i32 [ %30, %26 ], [ %42, %.lr.ph31 ]
%33 = icmp sgt i32 %32, 0
br i1 %33, label %.lr.ph34, label %._crit_edge35
34: ; preds = %._crit_edge
%35 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
br label %62
.lr.ph31: ; preds = %26, %.lr.ph31
%indvars.iv43 = phi i64 [ %indvars.iv.next44, %.lr.ph31 ], [ 1, %26 ]
%36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv43) #7
%37 = add nsw i64 %indvars.iv43, -1
%38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %37) #7
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %38)
%40 = load i32, ptr %39, align 4, !tbaa !5
%41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv43) #7
store i32 %40, ptr %41, align 4, !tbaa !5
%indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
%42 = load i32, ptr %2, align 4, !tbaa !5
%43 = sext i32 %42 to i64
%44 = icmp slt i64 %indvars.iv.next44, %43
br i1 %44, label %.lr.ph31, label %.preheader, !llvm.loop !11
._crit_edge35: ; preds = %.lr.ph34, %.preheader
%.015.lcssa = phi i32 [ 0, %.preheader ], [ %spec.select, %.lr.ph34 ]
%45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.015.lcssa)
to label %55 unwind label %60
.lr.ph34: ; preds = %.preheader, %.lr.ph34
%indvars.iv46 = phi i64 [ %indvars.iv.next47, %.lr.ph34 ], [ 0, %.preheader ]
%.01532 = phi i32 [ %spec.select, %.lr.ph34 ], [ 0, %.preheader ]
%46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv46) #7
%47 = load i32, ptr %46, align 4, !tbaa !5
%48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv46) #7
%49 = load i32, ptr %48, align 4, !tbaa !5
%50 = icmp eq i32 %47, %49
%51 = zext i1 %50 to i32
%spec.select = add nuw nsw i32 %.01532, %51
%indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
%52 = load i32, ptr %2, align 4, !tbaa !5
%53 = sext i32 %52 to i64
%54 = icmp slt i64 %indvars.iv.next47, %53
br i1 %54, label %.lr.ph34, label %._crit_edge35, !llvm.loop !12
55: ; preds = %._crit_edge35
%56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %57 unwind label %60
57: ; preds = %55
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
%58 = load i32, ptr %1, align 4, !tbaa !5
%59 = add nsw i32 %58, -1
store i32 %59, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %58, 0
br i1 %.not, label %._crit_edge40, label %.lr.ph39, !llvm.loop !13
60: ; preds = %55, %._crit_edge35
%61 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
br label %62
62: ; preds = %60, %34
%.pn = phi { ptr, i32 } [ %61, %60 ], [ %35, %34 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
br label %63
63: ; preds = %62, %24
%.pn24 = phi { ptr, i32 } [ %25, %24 ], [ %.pn, %62 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
br label %64
64: ; preds = %63, %16
%.pn24.pn = phi { ptr, i32 } [ %.pn24, %63 ], [ %17, %16 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
resume { ptr, i32 } %.pn24.pn
._crit_edge40: ; preds = %57, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
| BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 7c56ce60f3b58e8e | shreyamalogi/CP-practice | codechef | C_CARVANS | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::__cxx11::basic_string", align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %10
10: ; preds = %66, %0
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = add nsw i32 %11, -1
store i32 %12, ptr %2, align 4, !tbaa !5
%13 = icmp ne i32 %11, 0
br i1 %13, label %14, label %73
14: ; preds = %10
call void @llvm.lifetime.start.p0(i64 32, ptr %3) #5
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
%15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
to label %16 unwind label %23
16: ; preds = %14
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
store i32 0, ptr %8, align 4, !tbaa !5
br label %17
17: ; preds = %50, %16
%18 = load i32, ptr %8, align 4, !tbaa !5
%19 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
%20 = trunc i64 %19 to i32
%21 = icmp slt i32 %18, %20
br i1 %21, label %27, label %22
22: ; preds = %17
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
br label %53
23: ; preds = %14
%24 = landingpad { ptr, i32 }
cleanup
%25 = extractvalue { ptr, i32 } %24, 0
store ptr %25, ptr %4, align 8
%26 = extractvalue { ptr, i32 } %24, 1
store i32 %26, ptr %5, align 4
br label %72
27: ; preds = %17
%28 = load i32, ptr %8, align 4, !tbaa !5
%29 = sext i32 %28 to i64
%30 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %29)
to label %31 unwind label %38
31: ; preds = %27
%32 = load i8, ptr %30, align 1, !tbaa !9
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 49
br i1 %34, label %35, label %42
35: ; preds = %31
%36 = load i32, ptr %7, align 4, !tbaa !5
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4, !tbaa !5
br label %49
38: ; preds = %27
%39 = landingpad { ptr, i32 }
cleanup
%40 = extractvalue { ptr, i32 } %39, 0
store ptr %40, ptr %4, align 8
%41 = extractvalue { ptr, i32 } %39, 1
store i32 %41, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
br label %71
42: ; preds = %31
%43 = load i32, ptr %7, align 4, !tbaa !5
%44 = icmp sge i32 %43, 1
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, ptr %6, align 4, !tbaa !5
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4, !tbaa !5
br label %48
48: ; preds = %45, %42
store i32 0, ptr %7, align 4, !tbaa !5
br label %49
49: ; preds = %48, %35
br label %50
50: ; preds = %49
%51 = load i32, ptr %8, align 4, !tbaa !5
%52 = add nsw i32 %51, 1
store i32 %52, ptr %8, align 4, !tbaa !5
br label %17, !llvm.loop !10
53: ; preds = %22
%54 = load i32, ptr %7, align 4, !tbaa !5
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = load i32, ptr %6, align 4, !tbaa !5
%58 = add nsw i32 %57, 1
br label %61
59: ; preds = %53
%60 = load i32, ptr %6, align 4, !tbaa !5
br label %61
61: ; preds = %59, %56
%62 = phi i32 [ %58, %56 ], [ %60, %59 ]
%63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %62)
to label %64 unwind label %67
64: ; preds = %61
%65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %63, i8 noundef signext 10)
to label %66 unwind label %67
66: ; preds = %64
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
br label %10, !llvm.loop !12
67: ; preds = %64, %61
%68 = landingpad { ptr, i32 }
cleanup
%69 = extractvalue { ptr, i32 } %68, 0
store ptr %69, ptr %4, align 8
%70 = extractvalue { ptr, i32 } %68, 1
store i32 %70, ptr %5, align 4
br label %71
71: ; preds = %67, %38
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
br label %72
72: ; preds = %71, %23
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
br label %74
73: ; preds = %10
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
74: ; preds = %72
%75 = load ptr, ptr %4, align 8
%76 = load i32, ptr %5, align 4
%77 = insertvalue { ptr, i32 } poison, ptr %75, 0
%78 = insertvalue { ptr, i32 } %77, i32 %76, 1
resume { ptr, i32 } %78
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %STRUCT0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%STRUCT0 = type { i64, [8 x i8] }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca %"class.std::__cxx11::basic_string", align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = add nsw i32 %9, -1
store i32 %10, ptr %1, align 4, !tbaa !5
%11 = icmp ne i32 %9, 0
br i1 %11, label %B2, label %B25
B2:
call void @llvm.lifetime.start.p0(i64 32, ptr %2) #5
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
%12 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %B3 unwind label %B6
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
store i32 0, ptr %5, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !5
br label %B4
B4:
%13 = load i32, ptr %7, align 4, !tbaa !5
%14 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %13, %15
br i1 %16, label %B7, label %B5
B5:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
br label %B16
B6:
%17 = landingpad { ptr, i32 }
cleanup
%18 = extractvalue { ptr, i32 } %17, 0
store ptr %18, ptr %3, align 8
%19 = extractvalue { ptr, i32 } %17, 1
store i32 %19, ptr %4, align 4
br label %B24
B7:
%20 = load i32, ptr %7, align 4, !tbaa !5
%21 = sext i32 %20 to i64
%22 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %21)
to label %B8 unwind label %B10
B8:
%23 = load i8, ptr %22, align 1, !tbaa !9
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 49
br i1 %25, label %B9, label %B11
B9:
%26 = load i32, ptr %6, align 4, !tbaa !5
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4, !tbaa !5
br label %B14
B10:
%28 = landingpad { ptr, i32 }
cleanup
%29 = extractvalue { ptr, i32 } %28, 0
store ptr %29, ptr %3, align 8
%30 = extractvalue { ptr, i32 } %28, 1
store i32 %30, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
br label %B23
B11:
%31 = load i32, ptr %6, align 4, !tbaa !5
%32 = icmp sge i32 %31, 1
br i1 %32, label %B12, label %B13
B12:
%33 = load i32, ptr %5, align 4, !tbaa !5
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4, !tbaa !5
br label %B13
B13:
store i32 0, ptr %6, align 4, !tbaa !5
br label %B14
B14:
br label %B15
B15:
%35 = load i32, ptr %7, align 4, !tbaa !5
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4, !tbaa !5
br label %B4, !llvm.loop !10
B16:
%37 = load i32, ptr %6, align 4, !tbaa !5
%38 = icmp sgt i32 %37, 0
br i1 %38, label %B17, label %B18
B17:
%39 = load i32, ptr %5, align 4, !tbaa !5
%40 = add nsw i32 %39, 1
br label %B19
B18:
%41 = load i32, ptr %5, align 4, !tbaa !5
br label %B19
B19:
%42 = phi i32 [ %40, %B17 ], [ %41, %B18 ]
%43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %42)
to label %B20 unwind label %B22
B20:
%44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %43, i8 noundef signext 10)
to label %B21 unwind label %B22
B21:
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #5
br label %B1, !llvm.loop !12
B22:
%45 = landingpad { ptr, i32 }
cleanup
%46 = extractvalue { ptr, i32 } %45, 0
store ptr %46, ptr %3, align 8
%47 = extractvalue { ptr, i32 } %45, 1
store i32 %47, ptr %4, align 4
br label %B23
B23:
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
br label %B24
B24:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
br label %B26
B25:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
B26:
%48 = load ptr, ptr %3, align 8
%49 = load i32, ptr %4, align 4
%50 = insertvalue { ptr, i32 } poison, ptr %48, 0
%51 = insertvalue { ptr, i32 } %50, i32 %49, 1
resume { ptr, i32 } %51
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca %"class.std::__cxx11::basic_string", align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
%3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = add nsw i32 %4, -1
store i32 %5, ptr %1, align 4, !tbaa !5
%.not20 = icmp eq i32 %4, 0
br i1 %.not20, label %._crit_edge23, label %.lr.ph22
.lr.ph22: ; preds = %0, %26
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
%6 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %.preheader unwind label %14
.preheader: ; preds = %.lr.ph22
%7 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
%8 = trunc i64 %7 to i32
%9 = icmp sgt i32 %8, 0
br i1 %9, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %.preheader
%.011.lcssa = phi i32 [ 0, %.preheader ], [ %.2, %.lr.ph ]
%.010.lcssa = phi i32 [ 0, %.preheader ], [ %.1, %.lr.ph ]
%10 = icmp sgt i32 %.010.lcssa, 0
%11 = zext i1 %10 to i32
%12 = add nsw i32 %.011.lcssa, %11
%13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %12)
to label %24 unwind label %29
14: ; preds = %.lr.ph22
%15 = landingpad { ptr, i32 }
cleanup
br label %31
.lr.ph: ; preds = %.preheader, %.lr.ph
%indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
%.01017 = phi i32 [ %.1, %.lr.ph ], [ 0, %.preheader ]
%.01116 = phi i32 [ %.2, %.lr.ph ], [ 0, %.preheader ]
%16 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
%17 = load i8, ptr %16, align 1, !tbaa !9
%18 = icmp ne i8 %17, 49
%19 = add nsw i32 %.01017, 1
%20 = icmp sgt i32 %.01017, 0
%narrow = select i1 %18, i1 %20, i1 false
%spec.select = zext i1 %narrow to i32
%.2 = add nuw nsw i32 %.01116, %spec.select
%.1 = select i1 %18, i32 0, i32 %19
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%21 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
%sext = shl i64 %21, 32
%22 = ashr exact i64 %sext, 32
%23 = icmp slt i64 %indvars.iv.next, %22
br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !10
24: ; preds = %._crit_edge
%25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %13, i8 noundef signext 10)
to label %26 unwind label %29
26: ; preds = %24
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
%27 = load i32, ptr %1, align 4, !tbaa !5
%28 = add nsw i32 %27, -1
store i32 %28, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %27, 0
br i1 %.not, label %._crit_edge23, label %.lr.ph22, !llvm.loop !12
29: ; preds = %24, %._crit_edge
%30 = landingpad { ptr, i32 }
cleanup
br label %31
31: ; preds = %29, %14
%.pn = phi { ptr, i32 } [ %30, %29 ], [ %15, %14 ]
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
resume { ptr, i32 } %.pn
._crit_edge23: ; preds = %26, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
| GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | faa31e0912edc17 | shreyamalogi/CP-practice | codechef | C_CHEF AND GROUPS | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::__cxx11::basic_string", align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%10 = alloca i8, align 1
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %12
12: ; preds = %39, %0
%13 = load i32, ptr %2, align 4, !tbaa !5
%14 = add nsw i32 %13, -1
store i32 %14, ptr %2, align 4, !tbaa !5
%15 = icmp ne i32 %13, 0
br i1 %15, label %16, label %54
16: ; preds = %12
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
%17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
to label %18 unwind label %40
18: ; preds = %16
%19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(32) %4)
to label %20 unwind label %40
20: ; preds = %18
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
%21 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
%22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
store ptr %21, ptr %22, align 8
%23 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
%24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
store ptr %23, ptr %24, align 8
call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
store i8 49, ptr %10, align 1, !tbaa !9
%25 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
%26 = load ptr, ptr %25, align 8
%27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
%28 = load ptr, ptr %27, align 8
%29 = invoke noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr %26, ptr %28, ptr noundef nonnull align 1 dereferenceable(1) %10)
to label %30 unwind label %44
30: ; preds = %20
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
store i64 %29, ptr %7, align 8, !tbaa !10
%31 = load i64, ptr %7, align 8, !tbaa !10
%32 = load i64, ptr %7, align 8, !tbaa !10
%33 = add nsw i64 %32, 1
%34 = mul nsw i64 %31, %33
%35 = sdiv i64 %34, 2
%36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %35)
to label %37 unwind label %48
37: ; preds = %30
%38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %39 unwind label %48
39: ; preds = %37
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
br label %12, !llvm.loop !12
40: ; preds = %18, %16
%41 = landingpad { ptr, i32 }
cleanup
%42 = extractvalue { ptr, i32 } %41, 0
store ptr %42, ptr %5, align 8
%43 = extractvalue { ptr, i32 } %41, 1
store i32 %43, ptr %6, align 4
br label %53
44: ; preds = %20
%45 = landingpad { ptr, i32 }
cleanup
%46 = extractvalue { ptr, i32 } %45, 0
store ptr %46, ptr %5, align 8
%47 = extractvalue { ptr, i32 } %45, 1
store i32 %47, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
br label %52
48: ; preds = %37, %30
%49 = landingpad { ptr, i32 }
cleanup
%50 = extractvalue { ptr, i32 } %49, 0
store ptr %50, ptr %5, align 8
%51 = extractvalue { ptr, i32 } %49, 1
store i32 %51, ptr %6, align 4
br label %52
52: ; preds = %48, %44
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
br label %53
53: ; preds = %52, %40
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %56
54: ; preds = %12
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
%55 = load i32, ptr %1, align 4
ret i32 %55
56: ; preds = %53
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %6, align 4
%59 = insertvalue { ptr, i32 } poison, ptr %57, 0
%60 = insertvalue { ptr, i32 } %59, i32 %58, 1
resume { ptr, i32 } %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr, ptr, ptr noundef nonnull align 1 dereferenceable(1)) #4
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %STRUCT0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%STRUCT0 = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::__cxx11::basic_string", align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%9 = alloca i8, align 1
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%11 = load i32, ptr %1, align 4, !tbaa !5
%12 = add nsw i32 %11, -1
store i32 %12, ptr %1, align 4, !tbaa !5
%13 = icmp ne i32 %11, 0
br i1 %13, label %B2, label %B13
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 32, ptr %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%14 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
to label %B3 unwind label %B8
B3:
%15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(32) %3)
to label %B4 unwind label %B8
B4:
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
%16 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
store ptr %16, ptr %17, align 8
%18 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%19 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
store ptr %18, ptr %19, align 8
call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
store i8 49, ptr %9, align 1, !tbaa !9
%20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
%21 = load ptr, ptr %20, align 8
%22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
%23 = load ptr, ptr %22, align 8
%24 = invoke noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr %21, ptr %23, ptr noundef nonnull align 1 dereferenceable(1) %9)
to label %B5 unwind label %B9
B5:
call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
store i64 %24, ptr %6, align 8, !tbaa !10
%25 = load i64, ptr %6, align 8, !tbaa !10
%26 = load i64, ptr %6, align 8, !tbaa !10
%27 = add nsw i64 %26, 1
%28 = mul nsw i64 %25, %27
%29 = sdiv i64 %28, 2
%30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %29)
to label %B6 unwind label %B10
B6:
%31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B7 unwind label %B10
B7:
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %B1, !llvm.loop !12
B8:
%32 = landingpad { ptr, i32 }
cleanup
%33 = extractvalue { ptr, i32 } %32, 0
store ptr %33, ptr %4, align 8
%34 = extractvalue { ptr, i32 } %32, 1
store i32 %34, ptr %5, align 4
br label %B12
B9:
%35 = landingpad { ptr, i32 }
cleanup
%36 = extractvalue { ptr, i32 } %35, 0
store ptr %36, ptr %4, align 8
%37 = extractvalue { ptr, i32 } %35, 1
store i32 %37, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
br label %B11
B10:
%38 = landingpad { ptr, i32 }
cleanup
%39 = extractvalue { ptr, i32 } %38, 0
store ptr %39, ptr %4, align 8
%40 = extractvalue { ptr, i32 } %38, 1
store i32 %40, ptr %5, align 4
br label %B11
B11:
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
br label %B12
B12:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B14
B13:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
%41 = load i32, ptr %0, align 4
ret i32 %41
B14:
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %5, align 4
%44 = insertvalue { ptr, i32 } poison, ptr %42, 0
%45 = insertvalue { ptr, i32 } %44, i32 %43, 1
resume { ptr, i32 } %45
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr, ptr, ptr noundef nonnull align 1 dereferenceable(1)) #4
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::__cxx11::basic_string", align 8
%4 = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%6 = load i32, ptr %1, align 4, !tbaa !5
%7 = add nsw i32 %6, -1
store i32 %7, ptr %1, align 4, !tbaa !5
%.not9 = icmp eq i32 %6, 0
br i1 %.not9, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %22
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%8 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
to label %9 unwind label %25
9: ; preds = %.lr.ph
%10 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(32) %3)
to label %11 unwind label %25
11: ; preds = %9
%12 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%13 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
store i8 49, ptr %4, align 1, !tbaa !9
%14 = invoke noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr %12, ptr %13, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %15 unwind label %27
15: ; preds = %11
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
%16 = add nsw i64 %14, 1
%17 = mul nsw i64 %16, %14
%18 = sdiv i64 %17, 2
%19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %18)
to label %20 unwind label %29
20: ; preds = %15
%21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %22 unwind label %29
22: ; preds = %20
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
%23 = load i32, ptr %1, align 4, !tbaa !5
%24 = add nsw i32 %23, -1
store i32 %24, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %23, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !10
25: ; preds = %9, %.lr.ph
%26 = landingpad { ptr, i32 }
cleanup
br label %31
27: ; preds = %11
%28 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
br label %31
29: ; preds = %20, %15
%30 = landingpad { ptr, i32 }
cleanup
br label %31
31: ; preds = %27, %29, %25
%.pn.pn = phi { ptr, i32 } [ %26, %25 ], [ %30, %29 ], [ %28, %27 ]
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %.pn.pn
._crit_edge: ; preds = %22, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr, ptr, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #5 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { inlinehint mustprogress 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 = { mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 101f8ab9bd6a1061 | shreyamalogi/CP-practice | codechef | C_COUNT SUBSTRINGS | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
store i32 0, ptr %5, align 4, !tbaa !5
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %4)
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !5
br label %10
10: ; preds = %25, %0
%11 = load i32, ptr %6, align 4, !tbaa !5
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = icmp slt i32 %11, %12
br i1 %13, label %15, label %14
14: ; preds = %10
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
br label %28
15: ; preds = %10
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
%17 = load i32, ptr %3, align 4, !tbaa !5
%18 = load i32, ptr %4, align 4, !tbaa !5
%19 = srem i32 %17, %18
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i32, ptr %5, align 4, !tbaa !5
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4, !tbaa !5
br label %24
24: ; preds = %21, %15
br label %25
25: ; preds = %24
%26 = load i32, ptr %6, align 4, !tbaa !5
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4, !tbaa !5
br label %10, !llvm.loop !9
28: ; preds = %14
%29 = load i32, ptr %5, align 4, !tbaa !5
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %29)
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
store i32 0, ptr %4, align 4, !tbaa !5
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %2)
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
store i32 0, ptr %5, align 4, !tbaa !5
br label %B1
B1:
%9 = load i32, ptr %5, align 4, !tbaa !5
%10 = load i32, ptr %1, align 4, !tbaa !5
%11 = icmp slt i32 %9, %10
br i1 %11, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
br label %B7
B3:
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%13 = load i32, ptr %2, align 4, !tbaa !5
%14 = load i32, ptr %3, align 4, !tbaa !5
%15 = srem i32 %13, %14
%16 = icmp eq i32 %15, 0
br i1 %16, label %B4, label %B5
B4:
%17 = load i32, ptr %4, align 4, !tbaa !5
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4, !tbaa !5
br label %B5
B5:
br label %B6
B6:
%19 = load i32, ptr %5, align 4, !tbaa !5
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4, !tbaa !5
br label %B1, !llvm.loop !9
B7:
%21 = load i32, ptr %4, align 4, !tbaa !5
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %21)
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = icmp sgt i32 %7, 0
br i1 %8, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %0
%.04.lcssa = phi i32 [ 0, %0 ], [ %spec.select, %.lr.ph ]
%9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.04.lcssa)
%10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
.lr.ph: ; preds = %0, %.lr.ph
%.06 = phi i32 [ %17, %.lr.ph ], [ 0, %0 ]
%.045 = phi i32 [ %spec.select, %.lr.ph ], [ 0, %0 ]
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = srem i32 %12, %13
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
%spec.select = add nuw nsw i32 %.045, %16
%17 = add nuw nsw i32 %.06, 1
%18 = load i32, ptr %1, align 4, !tbaa !5
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !9
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
attributes #0 = { mustprogress norecurse 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 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 31dd48d221324add | shreyamalogi/CP-practice | codechef | E_ENORMOUS INPUT TEST | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %5
5: ; preds = %9, %0
%6 = load i32, ptr %2, align 4, !tbaa !5
%7 = add nsw i32 %6, -1
store i32 %7, ptr %2, align 4, !tbaa !5
%8 = icmp ne i32 %6, 0
br i1 %8, label %9, label %14
9: ; preds = %5
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
%11 = load i64, ptr %3, align 8, !tbaa !9
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %11)
%13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %12, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
br label %5, !llvm.loop !11
14: ; preds = %5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
%3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = add nsw i32 %4, -1
store i32 %5, ptr %1, align 4, !tbaa !5
%6 = icmp ne i32 %4, 0
br i1 %6, label %B2, label %B3
B2:
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
%8 = load i64, ptr %2, align 8, !tbaa !9
%9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %8)
%10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %9, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
br label %B1, !llvm.loop !11
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
%3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = add nsw i32 %4, -1
store i32 %5, ptr %1, align 4, !tbaa !5
%.not1 = icmp eq i32 %4, 0
br i1 %.not1, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %.lr.ph
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
%7 = load i64, ptr %2, align 8, !tbaa !9
%8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %7)
%9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %8, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
%10 = load i32, ptr %1, align 4, !tbaa !5
%11 = add nsw i32 %10, -1
store i32 %11, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %10, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11
._crit_edge: ; preds = %.lr.ph, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 4a8e41148e6bd18c | shreyamalogi/CP-practice | codechef | L_LUCKY BOUNDARIES | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %10
10: ; preds = %48, %0
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = add nsw i32 %11, -1
store i32 %12, ptr %2, align 4, !tbaa !5
%13 = icmp ne i32 %11, 0
br i1 %13, label %14, label %53
14: ; preds = %10
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %4)
%17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %5)
%18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %6)
%19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %7)
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
store i32 0, ptr %8, align 4, !tbaa !5
%20 = load i32, ptr %3, align 4, !tbaa !5
%21 = load i32, ptr %4, align 4, !tbaa !5
%22 = mul nsw i32 %20, %21
%23 = icmp sge i32 %22, 10
br i1 %23, label %24, label %26
24: ; preds = %14
%25 = load i32, ptr %5, align 4, !tbaa !5
br label %28
26: ; preds = %14
%27 = load i32, ptr %8, align 4, !tbaa !5
br label %28
28: ; preds = %26, %24
%29 = phi i32 [ %25, %24 ], [ %27, %26 ]
store i32 %29, ptr %8, align 4, !tbaa !5
%30 = load i32, ptr %3, align 4, !tbaa !5
%31 = load i32, ptr %4, align 4, !tbaa !5
%32 = mul nsw i32 %30, %31
%33 = icmp sge i32 %32, 21
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = load i32, ptr %6, align 4, !tbaa !5
br label %38
36: ; preds = %28
%37 = load i32, ptr %8, align 4, !tbaa !5
br label %38
38: ; preds = %36, %34
%39 = phi i32 [ %35, %34 ], [ %37, %36 ]
store i32 %39, ptr %8, align 4, !tbaa !5
%40 = load i32, ptr %3, align 4, !tbaa !5
%41 = load i32, ptr %4, align 4, !tbaa !5
%42 = mul nsw i32 %40, %41
%43 = icmp sge i32 %42, 42
br i1 %43, label %44, label %46
44: ; preds = %38
%45 = load i32, ptr %7, align 4, !tbaa !5
br label %48
46: ; preds = %38
%47 = load i32, ptr %8, align 4, !tbaa !5
br label %48
48: ; preds = %46, %44
%49 = phi i32 [ %45, %44 ], [ %47, %46 ]
store i32 %49, ptr %8, align 4, !tbaa !5
%50 = load i32, ptr %8, align 4, !tbaa !5
%51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %50)
%52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
br label %10, !llvm.loop !9
53: ; preds = %10
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = add nsw i32 %9, -1
store i32 %10, ptr %1, align 4, !tbaa !5
%11 = icmp ne i32 %9, 0
br i1 %11, label %B2, label %B12
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %3)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %4)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %5)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %6)
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !5
%17 = load i32, ptr %2, align 4, !tbaa !5
%18 = load i32, ptr %3, align 4, !tbaa !5
%19 = mul nsw i32 %17, %18
%20 = icmp sge i32 %19, 10
br i1 %20, label %B3, label %B4
B3:
%21 = load i32, ptr %4, align 4, !tbaa !5
br label %B5
B4:
%22 = load i32, ptr %7, align 4, !tbaa !5
br label %B5
B5:
%23 = phi i32 [ %21, %B3 ], [ %22, %B4 ]
store i32 %23, ptr %7, align 4, !tbaa !5
%24 = load i32, ptr %2, align 4, !tbaa !5
%25 = load i32, ptr %3, align 4, !tbaa !5
%26 = mul nsw i32 %24, %25
%27 = icmp sge i32 %26, 21
br i1 %27, label %B6, label %B7
B6:
%28 = load i32, ptr %5, align 4, !tbaa !5
br label %B8
B7:
%29 = load i32, ptr %7, align 4, !tbaa !5
br label %B8
B8:
%30 = phi i32 [ %28, %B6 ], [ %29, %B7 ]
store i32 %30, ptr %7, align 4, !tbaa !5
%31 = load i32, ptr %2, align 4, !tbaa !5
%32 = load i32, ptr %3, align 4, !tbaa !5
%33 = mul nsw i32 %31, %32
%34 = icmp sge i32 %33, 42
br i1 %34, label %B9, label %B10
B9:
%35 = load i32, ptr %6, align 4, !tbaa !5
br label %B11
B10:
%36 = load i32, ptr %7, align 4, !tbaa !5
br label %B11
B11:
%37 = phi i32 [ %35, %B9 ], [ %36, %B10 ]
store i32 %37, ptr %7, align 4, !tbaa !5
%38 = load i32, ptr %7, align 4, !tbaa !5
%39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %38)
%40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
br label %B1, !llvm.loop !9
B12:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%.not4 = icmp eq i32 %8, 0
br i1 %.not4, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %.lr.ph
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %4)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %5)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %6)
%15 = load i32, ptr %2, align 4, !tbaa !5
%16 = load i32, ptr %3, align 4, !tbaa !5
%17 = mul nsw i32 %16, %15
%18 = icmp sgt i32 %17, 9
%19 = load i32, ptr %4, align 4
%20 = select i1 %18, i32 %19, i32 0
%21 = icmp sgt i32 %17, 20
%22 = load i32, ptr %5, align 4
%23 = select i1 %21, i32 %22, i32 %20
%24 = icmp sgt i32 %17, 41
%25 = load i32, ptr %6, align 4
%26 = select i1 %24, i32 %25, i32 %23
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %26)
%28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
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 4, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
%29 = load i32, ptr %1, align 4, !tbaa !5
%30 = add nsw i32 %29, -1
store i32 %30, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %29, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %.lr.ph, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | ff99b295ee04174c | shreyamalogi/CP-practice | codechef | M_MARATHON | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %"class.std::set", align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca %"struct.std::pair", align 8
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %17
17: ; preds = %76, %0
%18 = load i32, ptr %2, align 4, !tbaa !5
%19 = add nsw i32 %18, -1
store i32 %19, ptr %2, align 4, !tbaa !5
%20 = icmp ne i32 %18, 0
br i1 %20, label %21, label %83
21: ; preds = %17
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
%22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %4)
call void @llvm.lifetime.start.p0(i64 48, ptr %5) #6
call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
store i32 0, ptr %6, align 4, !tbaa !5
br label %24
24: ; preds = %38, %21
%25 = load i32, ptr %6, align 4, !tbaa !5
%26 = load i32, ptr %3, align 4, !tbaa !5
%27 = icmp slt i32 %25, %26
br i1 %27, label %29, label %28
28: ; preds = %24
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %45
29: ; preds = %24
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
%30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %31 unwind label %41
31: ; preds = %29
%32 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %33 unwind label %41
33: ; preds = %31
%34 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 0
%35 = extractvalue { ptr, i8 } %32, 0
store ptr %35, ptr %34, align 8
%36 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 1
%37 = extractvalue { ptr, i8 } %32, 1
store i8 %37, ptr %36, align 8
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
br label %38
38: ; preds = %33
%39 = load i32, ptr %6, align 4, !tbaa !5
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4, !tbaa !5
br label %24, !llvm.loop !9
41: ; preds = %31, %29
%42 = landingpad { ptr, i32 }
cleanup
%43 = extractvalue { ptr, i32 } %42, 0
store ptr %43, ptr %8, align 8
%44 = extractvalue { ptr, i32 } %42, 1
store i32 %44, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %82
45: ; preds = %28
call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
store i8 0, ptr %11, align 1, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
store i32 1, ptr %12, align 4, !tbaa !5
br label %46
46: ; preds = %64, %45
%47 = load i32, ptr %12, align 4, !tbaa !5
%48 = load i32, ptr %4, align 4, !tbaa !5
%49 = icmp sle i32 %47, %48
br i1 %49, label %51, label %50
50: ; preds = %46
store i32 7, ptr %13, align 4
br label %67
51: ; preds = %46
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
%52 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %53 unwind label %59
53: ; preds = %51
%54 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
store ptr %52, ptr %54, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
%55 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
%56 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
store ptr %55, ptr %56, align 8
%57 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
br i1 %57, label %58, label %63
58: ; preds = %53
store i8 1, ptr %11, align 1, !tbaa !11
store i32 7, ptr %13, align 4
br label %67
59: ; preds = %51
%60 = landingpad { ptr, i32 }
cleanup
%61 = extractvalue { ptr, i32 } %60, 0
store ptr %61, ptr %8, align 8
%62 = extractvalue { ptr, i32 } %60, 1
store i32 %62, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %81
63: ; preds = %53
br label %64
64: ; preds = %63
%65 = load i32, ptr %12, align 4, !tbaa !5
%66 = add nsw i32 %65, 1
store i32 %66, ptr %12, align 4, !tbaa !5
br label %46, !llvm.loop !13
67: ; preds = %58, %50
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %68
68: ; preds = %67
%69 = load i8, ptr %11, align 1, !tbaa !11, !range !14, !noundef !15
%70 = trunc i8 %69 to i1
%71 = zext i1 %70 to i64
%72 = select i1 %70, ptr @.str, ptr @.str.1
%73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %72)
to label %74 unwind label %77
74: ; preds = %68
%75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %73, i8 noundef signext 10)
to label %76 unwind label %77
76: ; preds = %74
call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
br label %17, !llvm.loop !16
77: ; preds = %74, %68
%78 = landingpad { ptr, i32 }
cleanup
%79 = extractvalue { ptr, i32 } %78, 0
store ptr %79, ptr %8, align 8
%80 = extractvalue { ptr, i32 } %78, 1
store i32 %80, ptr %9, align 4
br label %81
81: ; preds = %77, %59
call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
br label %82
82: ; preds = %81, %41
call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %85
83: ; preds = %17
store i32 0, ptr %1, align 4
store i32 1, ptr %13, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
%84 = load i32, ptr %1, align 4
ret i32 %84
85: ; preds = %82
%86 = load ptr, ptr %8, align 8
%87 = load i32, ptr %9, align 4
%88 = insertvalue { ptr, i32 } poison, ptr %86, 0
%89 = insertvalue { ptr, i32 } %88, i32 %87, 1
resume { ptr, i32 } %89
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::set", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca %"struct.std::pair", align 8
%10 = alloca i8, align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%16 = load i32, ptr %1, align 4, !tbaa !5
%17 = add nsw i32 %16, -1
store i32 %17, ptr %1, align 4, !tbaa !5
%18 = icmp ne i32 %16, 0
br i1 %18, label %B2, label %B26
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
%19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 48, ptr %4) #6
call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
store i32 0, ptr %5, align 4, !tbaa !5
br label %B3
B3:
%21 = load i32, ptr %5, align 4, !tbaa !5
%22 = load i32, ptr %2, align 4, !tbaa !5
%23 = icmp slt i32 %21, %22
br i1 %23, label %B5, label %B4
B4:
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %B10
B5:
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
%24 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %B6 unwind label %B9
B6:
%25 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %B7 unwind label %B9
B7:
%26 = getelementptr inbounds { ptr, i8 }, ptr %9, i32 0, i32 0
%27 = extractvalue { ptr, i8 } %25, 0
store ptr %27, ptr %26, align 8
%28 = getelementptr inbounds { ptr, i8 }, ptr %9, i32 0, i32 1
%29 = extractvalue { ptr, i8 } %25, 1
store i8 %29, ptr %28, align 8
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %B8
B8:
%30 = load i32, ptr %5, align 4, !tbaa !5
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4, !tbaa !5
br label %B3, !llvm.loop !9
B9:
%32 = landingpad { ptr, i32 }
cleanup
%33 = extractvalue { ptr, i32 } %32, 0
store ptr %33, ptr %7, align 8
%34 = extractvalue { ptr, i32 } %32, 1
store i32 %34, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %B25
B10:
call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
store i8 0, ptr %10, align 1, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
store i32 1, ptr %11, align 4, !tbaa !5
br label %B11
B11:
%35 = load i32, ptr %11, align 4, !tbaa !5
%36 = load i32, ptr %3, align 4, !tbaa !5
%37 = icmp sle i32 %35, %36
br i1 %37, label %B13, label %B12
B12:
store i32 7, ptr %12, align 4
br label %B19
B13:
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
%38 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %B14 unwind label %B16
B14:
%39 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %13, i32 0, i32 0
store ptr %38, ptr %39, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
%40 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
%41 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
store ptr %40, ptr %41, align 8
%42 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
br i1 %42, label %B15, label %B17
B15:
store i8 1, ptr %10, align 1, !tbaa !11
store i32 7, ptr %12, align 4
br label %B19
B16:
%43 = landingpad { ptr, i32 }
cleanup
%44 = extractvalue { ptr, i32 } %43, 0
store ptr %44, ptr %7, align 8
%45 = extractvalue { ptr, i32 } %43, 1
store i32 %45, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %B24
B17:
br label %B18
B18:
%46 = load i32, ptr %11, align 4, !tbaa !5
%47 = add nsw i32 %46, 1
store i32 %47, ptr %11, align 4, !tbaa !5
br label %B11, !llvm.loop !13
B19:
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %B20
B20:
%48 = load i8, ptr %10, align 1, !tbaa !11, !range !14, !noundef !15
%49 = trunc i8 %48 to i1
%50 = zext i1 %49 to i64
%51 = select i1 %49, ptr @.str, ptr @.str.1
%52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %51)
to label %B21 unwind label %B23
B21:
%53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %52, i8 noundef signext 10)
to label %B22 unwind label %B23
B22:
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %B1, !llvm.loop !16
B23:
%54 = landingpad { ptr, i32 }
cleanup
%55 = extractvalue { ptr, i32 } %54, 0
store ptr %55, ptr %7, align 8
%56 = extractvalue { ptr, i32 } %54, 1
store i32 %56, ptr %8, align 4
br label %B24
B24:
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
br label %B25
B25:
call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B27
B26:
store i32 0, ptr %0, align 4
store i32 1, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
%57 = load i32, ptr %0, align 4
ret i32 %57
B27:
%58 = load ptr, ptr %7, align 8
%59 = load i32, ptr %8, align 4
%60 = insertvalue { ptr, i32 } poison, ptr %58, 0
%61 = insertvalue { ptr, i32 } %60, i32 %59, 1
resume { ptr, i32 } %61
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::set", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
%8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%10 = load i32, ptr %1, align 4, !tbaa !5
%11 = add nsw i32 %10, -1
store i32 %11, ptr %1, align 4, !tbaa !5
%.not20 = icmp eq i32 %10, 0
br i1 %.not20, label %._crit_edge23, label %.lr.ph22
.lr.ph22: ; preds = %0, %40
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = icmp sgt i32 %14, 0
br i1 %15, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %20, %.lr.ph22
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
store i32 1, ptr %6, align 4, !tbaa !5
%16 = load i32, ptr %3, align 4, !tbaa !5
%.not9.not14 = icmp slt i32 %16, 1
br i1 %.not9.not14, label %._crit_edge17, label %.lr.ph16
.lr.ph: ; preds = %.lr.ph22, %20
%.0513 = phi i32 [ %21, %20 ], [ 0, %.lr.ph22 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
%17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %18 unwind label %24
18: ; preds = %.lr.ph
%19 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %20 unwind label %24
20: ; preds = %18
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
%21 = add nuw nsw i32 %.0513, 1
%22 = load i32, ptr %2, align 4, !tbaa !5
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !9
24: ; preds = %18, %.lr.ph
%25 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
br label %45
.lr.ph16: ; preds = %._crit_edge, %32
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
%26 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %27 unwind label %30
27: ; preds = %.lr.ph16
store ptr %26, ptr %7, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
%28 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
store ptr %28, ptr %8, align 8
%29 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
br i1 %29, label %._crit_edge17, label %32
30: ; preds = %.lr.ph16
%31 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
br label %45
32: ; preds = %27
%33 = load i32, ptr %6, align 4, !tbaa !5
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4, !tbaa !5
%35 = load i32, ptr %3, align 4, !tbaa !5
%.not9.not.not = icmp slt i32 %33, %35
br i1 %.not9.not.not, label %.lr.ph16, label %._crit_edge17, !llvm.loop !11
._crit_edge17: ; preds = %32, %27, %._crit_edge
%36 = phi ptr [ @.str.1, %._crit_edge ], [ @.str, %27 ], [ @.str.1, %32 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
%37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %36)
to label %38 unwind label %43
38: ; preds = %._crit_edge17
%39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %37, i8 noundef signext 10)
to label %40 unwind label %43
40: ; preds = %38
call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
%41 = load i32, ptr %1, align 4, !tbaa !5
%42 = add nsw i32 %41, -1
store i32 %42, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %41, 0
br i1 %.not, label %._crit_edge23, label %.lr.ph22, !llvm.loop !12
43: ; preds = %38, %._crit_edge17
%44 = landingpad { ptr, i32 }
cleanup
br label %45
45: ; preds = %30, %43, %24
%.pn11 = phi { ptr, i32 } [ %25, %24 ], [ %44, %43 ], [ %31, %30 ]
call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %.pn11
._crit_edge23: ; preds = %40, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
| EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | e0214ea8b120fc8a | shreyamalogi/CP-practice | codechef | N_NOBEL PRIZE | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %"class.std::vector", align 8
%6 = alloca %"class.std::allocator", align 1
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %4)
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = sext i32 %16 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %17, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %18 unwind label %24
18: ; preds = %0
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !5
br label %19
19: ; preds = %34, %18
%20 = load i32, ptr %9, align 4, !tbaa !5
%21 = load i32, ptr %2, align 4, !tbaa !5
%22 = icmp slt i32 %20, %21
br i1 %22, label %28, label %23
23: ; preds = %19
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %41
24: ; preds = %0
%25 = landingpad { ptr, i32 }
cleanup
%26 = extractvalue { ptr, i32 } %25, 0
store ptr %26, ptr %7, align 8
%27 = extractvalue { ptr, i32 } %25, 1
store i32 %27, ptr %8, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
br label %77
28: ; preds = %19
%29 = load i32, ptr %9, align 4, !tbaa !5
%30 = sext i32 %29 to i64
%31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %30) #6
%32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %31)
to label %33 unwind label %37
33: ; preds = %28
br label %34
34: ; preds = %33
%35 = load i32, ptr %9, align 4, !tbaa !5
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4, !tbaa !5
br label %19, !llvm.loop !9
37: ; preds = %28
%38 = landingpad { ptr, i32 }
cleanup
%39 = extractvalue { ptr, i32 } %38, 0
store ptr %39, ptr %7, align 8
%40 = extractvalue { ptr, i32 } %38, 1
store i32 %40, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %76
41: ; preds = %23
call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
store i8 0, ptr %10, align 1, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
store i32 0, ptr %11, align 4, !tbaa !5
br label %42
42: ; preds = %58, %41
%43 = load i32, ptr %11, align 4, !tbaa !5
%44 = load i32, ptr %2, align 4, !tbaa !5
%45 = icmp slt i32 %43, %44
br i1 %45, label %47, label %46
46: ; preds = %42
store i32 5, ptr %12, align 4
br label %61
47: ; preds = %42
%48 = load i32, ptr %4, align 4, !tbaa !5
%49 = load i32, ptr %11, align 4, !tbaa !5
%50 = sext i32 %49 to i64
%51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %50) #6
%52 = load i32, ptr %51, align 4, !tbaa !5
%53 = add nsw i32 %48, %52
%54 = load i32, ptr %3, align 4, !tbaa !5
%55 = icmp sge i32 %53, %54
br i1 %55, label %56, label %57
56: ; preds = %47
store i8 1, ptr %10, align 1, !tbaa !11
store i32 5, ptr %12, align 4
br label %61
57: ; preds = %47
br label %58
58: ; preds = %57
%59 = load i32, ptr %11, align 4, !tbaa !5
%60 = add nsw i32 %59, 1
store i32 %60, ptr %11, align 4, !tbaa !5
br label %42, !llvm.loop !13
61: ; preds = %56, %46
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %62
62: ; preds = %61
%63 = load i8, ptr %10, align 1, !tbaa !11, !range !14, !noundef !15
%64 = trunc i8 %63 to i1
%65 = zext i1 %64 to i64
%66 = select i1 %64, ptr @.str, ptr @.str.1
%67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %66)
to label %68 unwind label %72
68: ; preds = %62
%69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %67, i8 noundef signext 10)
to label %70 unwind label %72
70: ; preds = %68
store i32 0, ptr %1, align 4
store i32 1, ptr %12, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
%71 = load i32, ptr %1, align 4
ret i32 %71
72: ; preds = %68, %62
%73 = landingpad { ptr, i32 }
cleanup
%74 = extractvalue { ptr, i32 } %73, 0
store ptr %74, ptr %7, align 8
%75 = extractvalue { ptr, i32 } %73, 1
store i32 %75, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
br label %76
76: ; preds = %72, %37
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
br label %77
77: ; preds = %76, %24
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %78
78: ; preds = %77
%79 = load ptr, ptr %7, align 8
%80 = load i32, ptr %8, align 4
%81 = insertvalue { ptr, i32 } poison, ptr %79, 0
%82 = insertvalue { ptr, i32 } %81, i32 %80, 1
resume { ptr, i32 } %82
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{i8 0, i8 2}
!15 = !{}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %2)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
%15 = load i32, ptr %1, align 4, !tbaa !5
%16 = sext i32 %15 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
store i32 0, ptr %8, align 4, !tbaa !5
br label %B2
B2:
%17 = load i32, ptr %8, align 4, !tbaa !5
%18 = load i32, ptr %1, align 4, !tbaa !5
%19 = icmp slt i32 %17, %18
br i1 %19, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %B9
B4:
%20 = landingpad { ptr, i32 }
cleanup
%21 = extractvalue { ptr, i32 } %20, 0
store ptr %21, ptr %6, align 8
%22 = extractvalue { ptr, i32 } %20, 1
store i32 %22, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
br label %B22
B5:
%23 = load i32, ptr %8, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %24) #6
%26 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
to label %B6 unwind label %B8
B6:
br label %B7
B7:
%27 = load i32, ptr %8, align 4, !tbaa !5
%28 = add nsw i32 %27, 1
store i32 %28, ptr %8, align 4, !tbaa !5
br label %B2, !llvm.loop !9
B8:
%29 = landingpad { ptr, i32 }
cleanup
%30 = extractvalue { ptr, i32 } %29, 0
store ptr %30, ptr %6, align 8
%31 = extractvalue { ptr, i32 } %29, 1
store i32 %31, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %B21
B9:
call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
store i8 0, ptr %9, align 1, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !5
br label %B10
B10:
%32 = load i32, ptr %10, align 4, !tbaa !5
%33 = load i32, ptr %1, align 4, !tbaa !5
%34 = icmp slt i32 %32, %33
br i1 %34, label %B12, label %B11
B11:
store i32 5, ptr %11, align 4
br label %B16
B12:
%35 = load i32, ptr %3, align 4, !tbaa !5
%36 = load i32, ptr %10, align 4, !tbaa !5
%37 = sext i32 %36 to i64
%38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %37) #6
%39 = load i32, ptr %38, align 4, !tbaa !5
%40 = add nsw i32 %35, %39
%41 = load i32, ptr %2, align 4, !tbaa !5
%42 = icmp sge i32 %40, %41
br i1 %42, label %B13, label %B14
B13:
store i8 1, ptr %9, align 1, !tbaa !11
store i32 5, ptr %11, align 4
br label %B16
B14:
br label %B15
B15:
%43 = load i32, ptr %10, align 4, !tbaa !5
%44 = add nsw i32 %43, 1
store i32 %44, ptr %10, align 4, !tbaa !5
br label %B10, !llvm.loop !13
B16:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B17
B17:
%45 = load i8, ptr %9, align 1, !tbaa !11, !range !14, !noundef !15
%46 = trunc i8 %45 to i1
%47 = zext i1 %46 to i64
%48 = select i1 %46, ptr @.str, ptr @.str.1
%49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %48)
to label %B18 unwind label %B20
B18:
%50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %49, i8 noundef signext 10)
to label %B19 unwind label %B20
B19:
store i32 0, ptr %0, align 4
store i32 1, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
%51 = load i32, ptr %0, align 4
ret i32 %51
B20:
%52 = landingpad { ptr, i32 }
cleanup
%53 = extractvalue { ptr, i32 } %52, 0
store ptr %53, ptr %6, align 8
%54 = extractvalue { ptr, i32 } %52, 1
store i32 %54, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
br label %B21
B21:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
br label %B22
B22:
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B23
B23:
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %7, align 4
%57 = insertvalue { ptr, i32 } poison, ptr %55, 0
%58 = insertvalue { ptr, i32 } %57, i32 %56, 1
resume { ptr, i32 } %58
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{i8 0, i8 2}
!15 = !{} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator", align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %2)
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = sext i32 %9 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %10, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %11 unwind label %15
11: ; preds = %0
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
%12 = load i32, ptr %1, align 4, !tbaa !5
%13 = icmp sgt i32 %12, 0
br i1 %13, label %.lr.ph, label %._crit_edge
.preheader: ; preds = %19
%14 = icmp sgt i32 %20, 0
br i1 %14, label %.lr.ph18, label %._crit_edge
15: ; preds = %0
%16 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
br label %42
.lr.ph: ; preds = %11, %19
%indvars.iv = phi i64 [ %indvars.iv.next, %19 ], [ 0, %11 ]
%17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
%18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %19 unwind label %23
19: ; preds = %.lr.ph
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%20 = load i32, ptr %1, align 4, !tbaa !5
%21 = sext i32 %20 to i64
%22 = icmp slt i64 %indvars.iv.next, %21
br i1 %22, label %.lr.ph, label %.preheader, !llvm.loop !9
23: ; preds = %.lr.ph
%24 = landingpad { ptr, i32 }
cleanup
br label %41
25: ; preds = %.lr.ph18
%indvars.iv.next23 = add nuw nsw i64 %indvars.iv22, 1
%26 = load i32, ptr %1, align 4, !tbaa !5
%27 = sext i32 %26 to i64
%28 = icmp slt i64 %indvars.iv.next23, %27
br i1 %28, label %.lr.ph18, label %._crit_edge, !llvm.loop !11
.lr.ph18: ; preds = %.preheader, %25
%indvars.iv22 = phi i64 [ %indvars.iv.next23, %25 ], [ 0, %.preheader ]
%29 = load i32, ptr %3, align 4, !tbaa !5
%30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv22) #6
%31 = load i32, ptr %30, align 4, !tbaa !5
%32 = add nsw i32 %31, %29
%33 = load i32, ptr %2, align 4, !tbaa !5
%.not = icmp slt i32 %32, %33
br i1 %.not, label %25, label %._crit_edge
._crit_edge: ; preds = %25, %.lr.ph18, %11, %.preheader
%34 = phi ptr [ @.str.1, %.preheader ], [ @.str.1, %11 ], [ @.str, %.lr.ph18 ], [ @.str.1, %25 ]
%35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %34)
to label %36 unwind label %39
36: ; preds = %._crit_edge
%37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %35, i8 noundef signext 10)
to label %38 unwind label %39
38: ; preds = %36
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
39: ; preds = %36, %._crit_edge
%40 = landingpad { ptr, i32 }
cleanup
br label %41
41: ; preds = %39, %23
%.pn = phi { ptr, i32 } [ %24, %23 ], [ %40, %39 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
br label %42
42: ; preds = %41, %15
%.pn.pn = phi { ptr, i32 } [ %.pn, %41 ], [ %16, %15 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %.pn.pn
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | d3d938926e7cf7a0 | shreyamalogi/CP-practice | codechef | N_NOTIME | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca %"class.std::vector", align 8
%6 = alloca i64, align 8
%7 = alloca %"class.std::allocator", align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%14 = alloca i64, align 8
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %3)
%17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %4)
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
%18 = load i64, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
store i64 0, ptr %6, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %18, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
to label %19 unwind label %26
19: ; preds = %0
call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !9
br label %20
20: ; preds = %42, %19
%21 = load i32, ptr %10, align 4, !tbaa !9
%22 = sext i32 %21 to i64
%23 = load i64, ptr %4, align 8, !tbaa !5
%24 = icmp slt i64 %22, %23
br i1 %24, label %30, label %25
25: ; preds = %20
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %45
26: ; preds = %0
%27 = landingpad { ptr, i32 }
cleanup
%28 = extractvalue { ptr, i32 } %27, 0
store ptr %28, ptr %8, align 8
%29 = extractvalue { ptr, i32 } %27, 1
store i32 %29, ptr %9, align 4
call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
br label %78
30: ; preds = %20
%31 = load i64, ptr %2, align 8, !tbaa !5
%32 = load i64, ptr %3, align 8, !tbaa !5
%33 = add nsw i64 %32, 1
%34 = srem i64 %31, %33
%35 = load i32, ptr %10, align 4, !tbaa !9
%36 = sext i32 %35 to i64
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %36) #6
store i64 %34, ptr %37, align 8, !tbaa !5
%38 = load i64, ptr %3, align 8, !tbaa !5
%39 = add nsw i64 %38, 1
%40 = load i64, ptr %2, align 8, !tbaa !5
%41 = sdiv i64 %40, %39
store i64 %41, ptr %2, align 8, !tbaa !5
br label %42
42: ; preds = %30
%43 = load i32, ptr %10, align 4, !tbaa !9
%44 = add nsw i32 %43, 1
store i32 %44, ptr %10, align 4, !tbaa !9
br label %20, !llvm.loop !11
45: ; preds = %25
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
store ptr %5, ptr %11, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
%46 = load ptr, ptr %11, align 8, !tbaa !13
%47 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
%48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
store ptr %47, ptr %48, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
%49 = load ptr, ptr %11, align 8, !tbaa !13
%50 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
%51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
store ptr %50, ptr %51, align 8
br label %52
52: ; preds = %63, %45
%53 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
br i1 %53, label %55, label %54
54: ; preds = %52
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
br label %69
55: ; preds = %52
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
%56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
%57 = load i64, ptr %56, align 8, !tbaa !5
store i64 %57, ptr %14, align 8, !tbaa !5
%58 = load i64, ptr %14, align 8, !tbaa !5
%59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %58)
to label %60 unwind label %65
60: ; preds = %55
%61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @.str)
to label %62 unwind label %65
62: ; preds = %60
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
br label %63
63: ; preds = %62
%64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
br label %52
65: ; preds = %60, %55
%66 = landingpad { ptr, i32 }
cleanup
%67 = extractvalue { ptr, i32 } %66, 0
store ptr %67, ptr %8, align 8
%68 = extractvalue { ptr, i32 } %66, 1
store i32 %68, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
br label %77
69: ; preds = %54
%70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
to label %71 unwind label %73
71: ; preds = %69
store i32 0, ptr %1, align 4
call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
%72 = load i32, ptr %1, align 4
ret i32 %72
73: ; preds = %69
%74 = landingpad { ptr, i32 }
cleanup
%75 = extractvalue { ptr, i32 } %74, 0
store ptr %75, ptr %8, align 8
%76 = extractvalue { ptr, i32 } %74, 1
store i32 %76, ptr %9, align 4
br label %77
77: ; preds = %73, %65
call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
br label %78
78: ; preds = %77, %26
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
br label %79
79: ; preds = %78
%80 = load ptr, ptr %8, align 8
%81 = load i32, ptr %9, align 4
%82 = insertvalue { ptr, i32 } poison, ptr %80, 0
%83 = insertvalue { ptr, i32 } %82, i32 %81, 1
resume { ptr, i32 } %83
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca %"class.std::vector", align 8
%5 = alloca i64, align 8
%6 = alloca %"class.std::allocator", align 1
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%13 = alloca i64, align 8
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %2)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
%17 = load i64, ptr %3, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
store i64 0, ptr %5, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %17, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !9
br label %B2
B2:
%18 = load i32, ptr %9, align 4, !tbaa !9
%19 = sext i32 %18 to i64
%20 = load i64, ptr %3, align 8, !tbaa !5
%21 = icmp slt i64 %19, %20
br i1 %21, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B7
B4:
%22 = landingpad { ptr, i32 }
cleanup
%23 = extractvalue { ptr, i32 } %22, 0
store ptr %23, ptr %7, align 8
%24 = extractvalue { ptr, i32 } %22, 1
store i32 %24, ptr %8, align 4
call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
br label %B19
B5:
%25 = load i64, ptr %1, align 8, !tbaa !5
%26 = load i64, ptr %2, align 8, !tbaa !5
%27 = add nsw i64 %26, 1
%28 = srem i64 %25, %27
%29 = load i32, ptr %9, align 4, !tbaa !9
%30 = sext i32 %29 to i64
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %30) #6
store i64 %28, ptr %31, align 8, !tbaa !5
%32 = load i64, ptr %2, align 8, !tbaa !5
%33 = add nsw i64 %32, 1
%34 = load i64, ptr %1, align 8, !tbaa !5
%35 = sdiv i64 %34, %33
store i64 %35, ptr %1, align 8, !tbaa !5
br label %B6
B6:
%36 = load i32, ptr %9, align 4, !tbaa !9
%37 = add nsw i32 %36, 1
store i32 %37, ptr %9, align 4, !tbaa !9
br label %B2, !llvm.loop !11
B7:
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
store ptr %4, ptr %10, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
%38 = load ptr, ptr %10, align 8, !tbaa !13
%39 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
%40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
store ptr %39, ptr %40, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
%41 = load ptr, ptr %10, align 8, !tbaa !13
%42 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
%43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
store ptr %42, ptr %43, align 8
br label %B8
B8:
%44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
br i1 %44, label %B10, label %B9
B9:
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
br label %B15
B10:
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
%45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
%46 = load i64, ptr %45, align 8, !tbaa !5
store i64 %46, ptr %13, align 8, !tbaa !5
%47 = load i64, ptr %13, align 8, !tbaa !5
%48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %47)
to label %B11 unwind label %B14
B11:
%49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @.str)
to label %B12 unwind label %B14
B12:
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
br label %B13
B13:
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
br label %B8
B14:
%51 = landingpad { ptr, i32 }
cleanup
%52 = extractvalue { ptr, i32 } %51, 0
store ptr %52, ptr %7, align 8
%53 = extractvalue { ptr, i32 } %51, 1
store i32 %53, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
br label %B18
B15:
%54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
to label %B16 unwind label %B17
B16:
store i32 0, ptr %0, align 4
call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
%55 = load i32, ptr %0, align 4
ret i32 %55
B17:
%56 = landingpad { ptr, i32 }
cleanup
%57 = extractvalue { ptr, i32 } %56, 0
store ptr %57, ptr %7, align 8
%58 = extractvalue { ptr, i32 } %56, 1
store i32 %58, ptr %8, align 4
br label %B18
B18:
call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
br label %B19
B19:
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
br label %B20
B20:
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %8, align 4
%61 = insertvalue { ptr, i32 } poison, ptr %59, 0
%62 = insertvalue { ptr, i32 } %61, i32 %60, 1
resume { ptr, i32 } %62
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca %"class.std::vector", align 8
%5 = alloca i64, align 8
%6 = alloca %"class.std::allocator", align 1
%7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %2)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
%12 = load i64, ptr %3, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
store i64 0, ptr %5, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %12, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %13 unwind label %19
13: ; preds = %0
call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
%14 = load i64, ptr %3, align 8, !tbaa !5
%15 = icmp sgt i64 %14, 0
br i1 %15, label %.lr.ph.preheader, label %._crit_edge
.lr.ph.preheader: ; preds = %13
%.pre = load i64, ptr %1, align 8, !tbaa !5
%.pre19 = load i64, ptr %2, align 8, !tbaa !5
br label %.lr.ph
._crit_edge: ; preds = %.lr.ph, %13
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
%16 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
store ptr %16, ptr %7, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
%17 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
store ptr %17, ptr %8, align 8
%18 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
br i1 %18, label %.lr.ph16, label %._crit_edge17
19: ; preds = %0
%20 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
br label %47
.lr.ph: ; preds = %.lr.ph.preheader, %.lr.ph
%21 = phi i64 [ %.pre19, %.lr.ph.preheader ], [ %26, %.lr.ph ]
%22 = phi i64 [ %.pre, %.lr.ph.preheader ], [ %29, %.lr.ph ]
%indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
%23 = add nsw i64 %21, 1
%24 = srem i64 %22, %23
%25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
store i64 %24, ptr %25, align 8, !tbaa !5
%26 = load i64, ptr %2, align 8, !tbaa !5
%27 = add nsw i64 %26, 1
%28 = load i64, ptr %1, align 8, !tbaa !5
%29 = sdiv i64 %28, %27
store i64 %29, ptr %1, align 8, !tbaa !5
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%30 = load i64, ptr %3, align 8, !tbaa !5
%31 = icmp sgt i64 %30, %indvars.iv.next
br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !9
._crit_edge17: ; preds = %38, %._crit_edge
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
%32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
to label %43 unwind label %44
.lr.ph16: ; preds = %._crit_edge, %38
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
%34 = load i64, ptr %33, align 8, !tbaa !5
%35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %34)
to label %36 unwind label %41
36: ; preds = %.lr.ph16
%37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @.str)
to label %38 unwind label %41
38: ; preds = %36
%39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
%40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
br i1 %40, label %.lr.ph16, label %._crit_edge17
41: ; preds = %36, %.lr.ph16
%42 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
br label %46
43: ; preds = %._crit_edge17
call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
ret i32 0
44: ; preds = %._crit_edge17
%45 = landingpad { ptr, i32 }
cleanup
br label %46
46: ; preds = %44, %41
%.pn = phi { ptr, i32 } [ %42, %41 ], [ %45, %44 ]
call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
br label %47
47: ; preds = %46, %19
%.pn.pn = phi { ptr, i32 } [ %.pn, %46 ], [ %20, %19 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
resume { ptr, i32 } %.pn.pn
}
; 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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | edc431975973b149 | shreyamalogi/CP-practice | codechef | N_NUCLEAR GENERATORS | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::__cxx11::basic_string", align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.std::__cxx11::basic_string", align 8
%7 = alloca %"class.std::allocator", align 1
%8 = alloca i32, align 4
%9 = alloca %"class.std::__cxx11::basic_string", align 8
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %11
11: ; preds = %73, %0
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = add nsw i32 %12, -1
store i32 %13, ptr %2, align 4, !tbaa !5
%14 = icmp ne i32 %12, 0
br i1 %14, label %15, label %81
15: ; preds = %11
call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
%16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
to label %17 unwind label %25
17: ; preds = %15
call void @llvm.lifetime.start.p0(i64 32, ptr %6) #7
call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %7)
to label %18 unwind label %29
18: ; preds = %17
call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
store i32 0, ptr %8, align 4, !tbaa !5
br label %19
19: ; preds = %65, %18
%20 = load i32, ptr %8, align 4, !tbaa !5
%21 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
%22 = trunc i64 %21 to i32
%23 = icmp slt i32 %20, %22
br i1 %23, label %33, label %24
24: ; preds = %19
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
br label %69
25: ; preds = %15
%26 = landingpad { ptr, i32 }
cleanup
%27 = extractvalue { ptr, i32 } %26, 0
store ptr %27, ptr %4, align 8
%28 = extractvalue { ptr, i32 } %26, 1
store i32 %28, ptr %5, align 4
br label %80
29: ; preds = %17
%30 = landingpad { ptr, i32 }
cleanup
%31 = extractvalue { ptr, i32 } %30, 0
store ptr %31, ptr %4, align 8
%32 = extractvalue { ptr, i32 } %30, 1
store i32 %32, ptr %5, align 4
call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
br label %79
33: ; preds = %19
call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
%34 = load i32, ptr %8, align 4, !tbaa !5
%35 = sext i32 %34 to i64
invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %35, i64 noundef 5)
to label %36 unwind label %44
36: ; preds = %33
%37 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.1)
to label %38 unwind label %48
38: ; preds = %36
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
br i1 %37, label %39, label %57
39: ; preds = %38
%40 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.2)
to label %41 unwind label %53
41: ; preds = %39
%42 = load i32, ptr %8, align 4, !tbaa !5
%43 = add nsw i32 %42, 4
store i32 %43, ptr %8, align 4, !tbaa !5
br label %65
44: ; preds = %33
%45 = landingpad { ptr, i32 }
cleanup
%46 = extractvalue { ptr, i32 } %45, 0
store ptr %46, ptr %4, align 8
%47 = extractvalue { ptr, i32 } %45, 1
store i32 %47, ptr %5, align 4
br label %52
48: ; preds = %36
%49 = landingpad { ptr, i32 }
cleanup
%50 = extractvalue { ptr, i32 } %49, 0
store ptr %50, ptr %4, align 8
%51 = extractvalue { ptr, i32 } %49, 1
store i32 %51, ptr %5, align 4
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
br label %52
52: ; preds = %48, %44
call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
br label %68
53: ; preds = %61, %57, %39
%54 = landingpad { ptr, i32 }
cleanup
%55 = extractvalue { ptr, i32 } %54, 0
store ptr %55, ptr %4, align 8
%56 = extractvalue { ptr, i32 } %54, 1
store i32 %56, ptr %5, align 4
br label %68
57: ; preds = %38
%58 = load i32, ptr %8, align 4, !tbaa !5
%59 = sext i32 %58 to i64
%60 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %59)
to label %61 unwind label %53
61: ; preds = %57
%62 = load i8, ptr %60, align 1, !tbaa !9
%63 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 noundef signext %62)
to label %64 unwind label %53
64: ; preds = %61
br label %65
65: ; preds = %64, %41
%66 = load i32, ptr %8, align 4, !tbaa !5
%67 = add nsw i32 %66, 1
store i32 %67, ptr %8, align 4, !tbaa !5
br label %19, !llvm.loop !10
68: ; preds = %53, %52
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
br label %78
69: ; preds = %24
%70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %6)
to label %71 unwind label %74
71: ; preds = %69
%72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %70, i8 noundef signext 10)
to label %73 unwind label %74
73: ; preds = %71
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
br label %11, !llvm.loop !12
74: ; preds = %71, %69
%75 = landingpad { ptr, i32 }
cleanup
%76 = extractvalue { ptr, i32 } %75, 0
store ptr %76, ptr %4, align 8
%77 = extractvalue { ptr, i32 } %75, 1
store i32 %77, ptr %5, align 4
br label %78
78: ; preds = %74, %68
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
br label %79
79: ; preds = %78, %29
call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
br label %80
80: ; preds = %79, %25
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
br label %82
81: ; preds = %11
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
ret i32 0
82: ; preds = %80
%83 = load ptr, ptr %4, align 8
%84 = load i32, ptr %5, align 4
%85 = insertvalue { ptr, i32 } poison, ptr %83, 0
%86 = insertvalue { ptr, i32 } %85, i32 %84, 1
resume { ptr, i32 } %86
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5
; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %STRUCT0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%STRUCT0 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca %"class.std::__cxx11::basic_string", align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %"class.std::__cxx11::basic_string", align 8
%6 = alloca %"class.std::allocator", align 1
%7 = alloca i32, align 4
%8 = alloca %"class.std::__cxx11::basic_string", align 8
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%10 = load i32, ptr %1, align 4, !tbaa !5
%11 = add nsw i32 %10, -1
store i32 %11, ptr %1, align 4, !tbaa !5
%12 = icmp ne i32 %10, 0
br i1 %12, label %B2, label %B30
B2:
call void @llvm.lifetime.start.p0(i64 32, ptr %2) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
%13 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %B3 unwind label %B7
B3:
call void @llvm.lifetime.start.p0(i64 32, ptr %5) #7
call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %B4 unwind label %B8
B4:
call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
store i32 0, ptr %7, align 4, !tbaa !5
br label %B5
B5:
%14 = load i32, ptr %7, align 4, !tbaa !5
%15 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
%16 = trunc i64 %15 to i32
%17 = icmp slt i32 %14, %16
br i1 %17, label %B9, label %B6
B6:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
br label %B23
B7:
%18 = landingpad { ptr, i32 }
cleanup
%19 = extractvalue { ptr, i32 } %18, 0
store ptr %19, ptr %3, align 8
%20 = extractvalue { ptr, i32 } %18, 1
store i32 %20, ptr %4, align 4
br label %B29
B8:
%21 = landingpad { ptr, i32 }
cleanup
%22 = extractvalue { ptr, i32 } %21, 0
store ptr %22, ptr %3, align 8
%23 = extractvalue { ptr, i32 } %21, 1
store i32 %23, ptr %4, align 4
call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
br label %B28
B9:
call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
%24 = load i32, ptr %7, align 4, !tbaa !5
%25 = sext i32 %24 to i64
invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %25, i64 noundef 5)
to label %B10 unwind label %B14
B10:
%26 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.1)
to label %B11 unwind label %B15
B11:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
br i1 %26, label %B12, label %B18
B12:
%27 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.2)
to label %B13 unwind label %B17
B13:
%28 = load i32, ptr %7, align 4, !tbaa !5
%29 = add nsw i32 %28, 4
store i32 %29, ptr %7, align 4, !tbaa !5
br label %B21
B14:
%30 = landingpad { ptr, i32 }
cleanup
%31 = extractvalue { ptr, i32 } %30, 0
store ptr %31, ptr %3, align 8
%32 = extractvalue { ptr, i32 } %30, 1
store i32 %32, ptr %4, align 4
br label %B16
B15:
%33 = landingpad { ptr, i32 }
cleanup
%34 = extractvalue { ptr, i32 } %33, 0
store ptr %34, ptr %3, align 8
%35 = extractvalue { ptr, i32 } %33, 1
store i32 %35, ptr %4, align 4
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
br label %B16
B16:
call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
br label %B22
B17:
%36 = landingpad { ptr, i32 }
cleanup
%37 = extractvalue { ptr, i32 } %36, 0
store ptr %37, ptr %3, align 8
%38 = extractvalue { ptr, i32 } %36, 1
store i32 %38, ptr %4, align 4
br label %B22
B18:
%39 = load i32, ptr %7, align 4, !tbaa !5
%40 = sext i32 %39 to i64
%41 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %40)
to label %B19 unwind label %B17
B19:
%42 = load i8, ptr %41, align 1, !tbaa !9
%43 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext %42)
to label %B20 unwind label %B17
B20:
br label %B21
B21:
%44 = load i32, ptr %7, align 4, !tbaa !5
%45 = add nsw i32 %44, 1
store i32 %45, ptr %7, align 4, !tbaa !5
br label %B5, !llvm.loop !10
B22:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
br label %B27
B23:
%46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %5)
to label %B24 unwind label %B26
B24:
%47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %46, i8 noundef signext 10)
to label %B25 unwind label %B26
B25:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
br label %B1, !llvm.loop !12
B26:
%48 = landingpad { ptr, i32 }
cleanup
%49 = extractvalue { ptr, i32 } %48, 0
store ptr %49, ptr %3, align 8
%50 = extractvalue { ptr, i32 } %48, 1
store i32 %50, ptr %4, align 4
br label %B27
B27:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
br label %B28
B28:
call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
br label %B29
B29:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
br label %B31
B30:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
ret i32 0
B31:
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %4, align 4
%53 = insertvalue { ptr, i32 } poison, ptr %51, 0
%54 = insertvalue { ptr, i32 } %53, i32 %52, 1
resume { ptr, i32 } %54
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5
; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca %"class.std::__cxx11::basic_string", align 8
%3 = alloca %"class.std::__cxx11::basic_string", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca %"class.std::__cxx11::basic_string", align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %1, align 4, !tbaa !5
%.not17 = icmp eq i32 %7, 0
br i1 %.not17, label %._crit_edge20, label %.lr.ph19
.lr.ph19: ; preds = %0, %42
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
%9 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %10 unwind label %16
10: ; preds = %.lr.ph19
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %11 unwind label %18
11: ; preds = %10
call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
%12 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
%13 = trunc i64 %12 to i32
%14 = icmp sgt i32 %13, 0
br i1 %14, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %35, %11
%15 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %3)
to label %40 unwind label %45
16: ; preds = %.lr.ph19
%17 = landingpad { ptr, i32 }
cleanup
br label %49
18: ; preds = %10
%19 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
br label %48
.lr.ph: ; preds = %11, %35
%.016 = phi i32 [ %36, %35 ], [ 0, %11 ]
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
%20 = sext i32 %.016 to i64
invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %20, i64 noundef 5)
to label %21 unwind label %27
21: ; preds = %.lr.ph
%22 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.1)
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
br i1 %22, label %23, label %31
23: ; preds = %21
%24 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.2)
to label %25 unwind label %29
25: ; preds = %23
%26 = add nsw i32 %.016, 4
br label %35
27: ; preds = %.lr.ph
%28 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
br label %47
29: ; preds = %31, %23
%30 = landingpad { ptr, i32 }
cleanup
br label %47
31: ; preds = %21
%32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %20)
%33 = load i8, ptr %32, align 1, !tbaa !9
%34 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %3, i8 noundef signext %33)
to label %35 unwind label %29
35: ; preds = %31, %25
%.1 = phi i32 [ %26, %25 ], [ %.016, %31 ]
%36 = add nsw i32 %.1, 1
%37 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
%38 = trunc i64 %37 to i32
%39 = icmp slt i32 %36, %38
br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !10
40: ; preds = %._crit_edge
%41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %15, i8 noundef signext 10)
to label %42 unwind label %45
42: ; preds = %40
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
%43 = load i32, ptr %1, align 4, !tbaa !5
%44 = add nsw i32 %43, -1
store i32 %44, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %43, 0
br i1 %.not, label %._crit_edge20, label %.lr.ph19, !llvm.loop !12
45: ; preds = %40, %._crit_edge
%46 = landingpad { ptr, i32 }
cleanup
br label %47
47: ; preds = %27, %29, %45
%.pn.pn = phi { ptr, i32 } [ %46, %45 ], [ %30, %29 ], [ %28, %27 ]
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
br label %48
48: ; preds = %47, %18
%.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %47 ], [ %19, %18 ]
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
br label %49
49: ; preds = %48, %16
%.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %48 ], [ %17, %16 ]
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
resume { ptr, i32 } %.pn.pn.pn.pn
._crit_edge20: ; preds = %42, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5
; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 8b235fcd5588d8c3 | shreyamalogi/CP-practice | codechef | P_PAWRI MEME | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::__cxx11::basic_string", align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %9
9: ; preds = %32, %0
%10 = load i32, ptr %2, align 4, !tbaa !5
%11 = add nsw i32 %10, -1
store i32 %11, ptr %2, align 4, !tbaa !5
%12 = icmp ne i32 %10, 0
br i1 %12, label %13, label %37
13: ; preds = %9
call void @llvm.lifetime.start.p0(i64 32, ptr %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%14 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
to label %15 unwind label %33
15: ; preds = %13
%16 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
store ptr %16, ptr %17, align 8
%18 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%19 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
store ptr %18, ptr %19, align 8
%20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
%21 = load ptr, ptr %20, align 8
%22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
%23 = load ptr, ptr %22, align 8
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %21, ptr %23)
to label %24 unwind label %33
24: ; preds = %15
%25 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef @.str)
to label %26 unwind label %33
26: ; preds = %24
%27 = zext i1 %25 to i64
%28 = select i1 %25, ptr @.str.1, ptr @.str.2
%29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %28)
to label %30 unwind label %33
30: ; preds = %26
%31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %29, i8 noundef signext 10)
to label %32 unwind label %33
32: ; preds = %30
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
br label %9, !llvm.loop !9
33: ; preds = %30, %26, %24, %15, %13
%34 = landingpad { ptr, i32 }
cleanup
%35 = extractvalue { ptr, i32 } %34, 0
store ptr %35, ptr %4, align 8
%36 = extractvalue { ptr, i32 } %34, 1
store i32 %36, ptr %5, align 4
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %38
37: ; preds = %9
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
ret i32 0
38: ; preds = %33
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %5, align 4
%41 = insertvalue { ptr, i32 } poison, ptr %39, 0
%42 = insertvalue { ptr, i32 } %41, i32 %40, 1
resume { ptr, i32 } %42
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) #4
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %STRUCT0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%STRUCT0 = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca %"class.std::__cxx11::basic_string", align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%10 = icmp ne i32 %8, 0
br i1 %10, label %B2, label %B9
B2:
call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
%11 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %B3 unwind label %B8
B3:
%12 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
%13 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
store ptr %12, ptr %13, align 8
%14 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
%15 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
store ptr %14, ptr %15, align 8
%16 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
%17 = load ptr, ptr %16, align 8
%18 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
%19 = load ptr, ptr %18, align 8
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %17, ptr %19)
to label %B4 unwind label %B8
B4:
%20 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef @.str)
to label %B5 unwind label %B8
B5:
%21 = zext i1 %20 to i64
%22 = select i1 %20, ptr @.str.1, ptr @.str.2
%23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %22)
to label %B6 unwind label %B8
B6:
%24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %23, i8 noundef signext 10)
to label %B7 unwind label %B8
B7:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
br label %B1, !llvm.loop !9
B8:
%25 = landingpad { ptr, i32 }
cleanup
%26 = extractvalue { ptr, i32 } %25, 0
store ptr %26, ptr %3, align 8
%27 = extractvalue { ptr, i32 } %25, 1
store i32 %27, ptr %4, align 4
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B10
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
ret i32 0
B10:
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %4, align 4
%30 = insertvalue { ptr, i32 } poison, ptr %28, 0
%31 = insertvalue { ptr, i32 } %30, i32 %29, 1
resume { ptr, i32 } %31
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) #4
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca %"class.std::__cxx11::basic_string", align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = add nsw i32 %4, -1
store i32 %5, ptr %1, align 4, !tbaa !5
%.not2 = icmp eq i32 %4, 0
br i1 %.not2, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %16
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
%6 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %7 unwind label %19
7: ; preds = %.lr.ph
%8 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
%9 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %8, ptr %9)
to label %10 unwind label %19
10: ; preds = %7
%11 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str)
%12 = select i1 %11, ptr @.str.1, ptr @.str.2
%13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %12)
to label %14 unwind label %19
14: ; preds = %10
%15 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %13, i8 noundef signext 10)
to label %16 unwind label %19
16: ; preds = %14
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
%17 = load i32, ptr %1, align 4, !tbaa !5
%18 = add nsw i32 %17, -1
store i32 %18, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %17, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
19: ; preds = %14, %10, %7, %.lr.ph
%20 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %20
._crit_edge: ; preds = %16, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 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 #4 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 326b9750fdf7b361 | shreyamalogi/CP-practice | codechef | P_PCM DILLEMA | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_Z6decodev() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
store i32 0, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
store i32 0, ptr %4, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
store i32 1, ptr %5, align 4, !tbaa !5
br label %10
10: ; preds = %31, %0
%11 = load i32, ptr %5, align 4, !tbaa !5
%12 = load i32, ptr %1, align 4, !tbaa !5
%13 = icmp sle i32 %11, %12
br i1 %13, label %15, label %14
14: ; preds = %10
store i32 2, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
br label %34
15: ; preds = %10
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
store i32 1, ptr %7, align 4, !tbaa !5
br label %16
16: ; preds = %26, %15
%17 = load i32, ptr %7, align 4, !tbaa !5
%18 = load i32, ptr %2, align 4, !tbaa !5
%19 = icmp sle i32 %17, %18
br i1 %19, label %21, label %20
20: ; preds = %16
store i32 5, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
br label %29
21: ; preds = %16
%22 = load i32, ptr %3, align 4, !tbaa !5
%23 = load i32, ptr %7, align 4, !tbaa !5
%24 = add nsw i32 %22, %23
store i32 %24, ptr %3, align 4, !tbaa !5
%25 = load i32, ptr %3, align 4, !tbaa !5
store i32 %25, ptr %4, align 4, !tbaa !5
br label %26
26: ; preds = %21
%27 = load i32, ptr %7, align 4, !tbaa !5
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4, !tbaa !5
br label %16, !llvm.loop !9
29: ; preds = %20
%30 = load i32, ptr %3, align 4, !tbaa !5
store i32 %30, ptr %2, align 4, !tbaa !5
store i32 0, ptr %3, align 4, !tbaa !5
br label %31
31: ; preds = %29
%32 = load i32, ptr %5, align 4, !tbaa !5
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4, !tbaa !5
br label %10, !llvm.loop !11
34: ; preds = %14
%35 = load i32, ptr %4, align 4, !tbaa !5
%36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %35)
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_Z6decodev() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %0) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %0)
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
store i32 0, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
store i32 0, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
store i32 1, ptr %4, align 4, !tbaa !5
br label %B1
B1:
%9 = load i32, ptr %4, align 4, !tbaa !5
%10 = load i32, ptr %0, align 4, !tbaa !5
%11 = icmp sle i32 %9, %10
br i1 %11, label %B3, label %B2
B2:
store i32 2, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
br label %B10
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
store i32 1, ptr %6, align 4, !tbaa !5
br label %B4
B4:
%12 = load i32, ptr %6, align 4, !tbaa !5
%13 = load i32, ptr %1, align 4, !tbaa !5
%14 = icmp sle i32 %12, %13
br i1 %14, label %B6, label %B5
B5:
store i32 5, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
br label %B8
B6:
%15 = load i32, ptr %2, align 4, !tbaa !5
%16 = load i32, ptr %6, align 4, !tbaa !5
%17 = add nsw i32 %15, %16
store i32 %17, ptr %2, align 4, !tbaa !5
%18 = load i32, ptr %2, align 4, !tbaa !5
store i32 %18, ptr %3, align 4, !tbaa !5
br label %B7
B7:
%19 = load i32, ptr %6, align 4, !tbaa !5
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4, !tbaa !5
br label %B4, !llvm.loop !9
B8:
%21 = load i32, ptr %2, align 4, !tbaa !5
store i32 %21, ptr %1, align 4, !tbaa !5
store i32 0, ptr %2, align 4, !tbaa !5
br label %B9
B9:
%22 = load i32, ptr %4, align 4, !tbaa !5
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4, !tbaa !5
br label %B1, !llvm.loop !11
B10:
%24 = load i32, ptr %3, align 4, !tbaa !5
%25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %24)
%26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %0) #4
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress uwtable
define dso_local void @_Z6decodev() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
%3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) %2)
%5 = load i32, ptr %1, align 4, !tbaa !5
%.not19 = icmp slt i32 %5, 1
br i1 %.not19, label %27, label %.preheader.preheader
.preheader.preheader: ; preds = %0
%.promoted = load i32, ptr %2, align 4, !tbaa !5
%xtraiter = and i32 %5, 1
%6 = icmp eq i32 %5, 1
br i1 %6, label %._crit_edge23.unr-lcssa, label %.preheader.preheader.new
.preheader.preheader.new: ; preds = %.preheader.preheader
%unroll_iter = and i32 %5, 2147483646
br label %.preheader
.preheader: ; preds = %._crit_edge.1, %.preheader.preheader.new
%.01021 = phi i32 [ 0, %.preheader.preheader.new ], [ %.1.lcssa.1, %._crit_edge.1 ]
%.112.lcssa1820 = phi i32 [ %.promoted, %.preheader.preheader.new ], [ %.112.lcssa.1, %._crit_edge.1 ]
%niter = phi i32 [ 0, %.preheader.preheader.new ], [ %niter.next.1, %._crit_edge.1 ]
%.not1314 = icmp slt i32 %.112.lcssa1820, 1
br i1 %.not1314, label %._crit_edge, label %.lr.ph.preheader
.lr.ph.preheader: ; preds = %.preheader
%7 = shl nuw i32 %.112.lcssa1820, 1
%8 = add nsw i32 %.112.lcssa1820, -1
%9 = zext nneg i32 %8 to i33
%10 = add nsw i32 %.112.lcssa1820, -2
%11 = zext i32 %10 to i33
%12 = mul i33 %9, %11
%13 = lshr i33 %12, 1
%14 = trunc nuw i33 %13 to i32
%15 = add i32 %7, -1
%16 = add i32 %15, %14
br label %._crit_edge
._crit_edge23.unr-lcssa: ; preds = %._crit_edge.1, %.preheader.preheader
%.112.lcssa.lcssa.ph = phi i32 [ poison, %.preheader.preheader ], [ %.112.lcssa.1, %._crit_edge.1 ]
%.1.lcssa.lcssa.ph = phi i32 [ poison, %.preheader.preheader ], [ %.1.lcssa.1, %._crit_edge.1 ]
%.01021.unr = phi i32 [ 0, %.preheader.preheader ], [ %.1.lcssa.1, %._crit_edge.1 ]
%.112.lcssa1820.unr = phi i32 [ %.promoted, %.preheader.preheader ], [ %.112.lcssa.1, %._crit_edge.1 ]
%lcmp.mod.not = icmp eq i32 %xtraiter, 0
br i1 %lcmp.mod.not, label %._crit_edge23, label %.preheader.epil
.preheader.epil: ; preds = %._crit_edge23.unr-lcssa
%.not1314.epil = icmp slt i32 %.112.lcssa1820.unr, 1
br i1 %.not1314.epil, label %._crit_edge23, label %.lr.ph.preheader.epil
.lr.ph.preheader.epil: ; preds = %.preheader.epil
%17 = shl nuw i32 %.112.lcssa1820.unr, 1
%18 = add nsw i32 %.112.lcssa1820.unr, -1
%19 = zext nneg i32 %18 to i33
%20 = add nsw i32 %.112.lcssa1820.unr, -2
%21 = zext i32 %20 to i33
%22 = mul i33 %19, %21
%23 = lshr i33 %22, 1
%24 = trunc nuw i33 %23 to i32
%25 = add i32 %17, -1
%26 = add i32 %25, %24
br label %._crit_edge23
._crit_edge23: ; preds = %.preheader.epil, %.lr.ph.preheader.epil, %._crit_edge23.unr-lcssa
%.112.lcssa.lcssa = phi i32 [ %.112.lcssa.lcssa.ph, %._crit_edge23.unr-lcssa ], [ 0, %.preheader.epil ], [ %26, %.lr.ph.preheader.epil ]
%.1.lcssa.lcssa = phi i32 [ %.1.lcssa.lcssa.ph, %._crit_edge23.unr-lcssa ], [ %.01021.unr, %.preheader.epil ], [ %26, %.lr.ph.preheader.epil ]
store i32 %.112.lcssa.lcssa, ptr %2, align 4, !tbaa !5
br label %27
27: ; preds = %._crit_edge23, %0
%.010.lcssa = phi i32 [ %.1.lcssa.lcssa, %._crit_edge23 ], [ 0, %0 ]
%28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.010.lcssa)
%29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
ret void
._crit_edge: ; preds = %.lr.ph.preheader, %.preheader
%.112.lcssa = phi i32 [ 0, %.preheader ], [ %16, %.lr.ph.preheader ]
%.1.lcssa = phi i32 [ %.01021, %.preheader ], [ %16, %.lr.ph.preheader ]
%.not1314.1 = icmp slt i32 %.112.lcssa, 1
br i1 %.not1314.1, label %._crit_edge.1, label %.lr.ph.preheader.1
.lr.ph.preheader.1: ; preds = %._crit_edge
%30 = shl nuw i32 %.112.lcssa, 1
%31 = add nsw i32 %.112.lcssa, -1
%32 = zext nneg i32 %31 to i33
%33 = add nsw i32 %.112.lcssa, -2
%34 = zext i32 %33 to i33
%35 = mul i33 %32, %34
%36 = lshr i33 %35, 1
%37 = trunc nuw i33 %36 to i32
%38 = add i32 %30, -1
%39 = add i32 %38, %37
br label %._crit_edge.1
._crit_edge.1: ; preds = %.lr.ph.preheader.1, %._crit_edge
%.112.lcssa.1 = phi i32 [ 0, %._crit_edge ], [ %39, %.lr.ph.preheader.1 ]
%.1.lcssa.1 = phi i32 [ %.1.lcssa, %._crit_edge ], [ %39, %.lr.ph.preheader.1 ]
%niter.next.1 = add i32 %niter, 2
%niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
br i1 %niter.ncmp.1, label %._crit_edge23.unr-lcssa, label %.preheader, !llvm.loop !9
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass | 79fe0d9f140fca0f | shreyamalogi/CP-practice | codechef/P_PUPPY AND SUM.ll | Z6decodev | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6decodev() #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
%3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %4
4: ; preds = %8, %0
%5 = load i32, ptr %2, align 4, !tbaa !5
%6 = add nsw i32 %5, -1
store i32 %6, ptr %2, align 4, !tbaa !5
%7 = icmp ne i32 %5, 0
br i1 %7, label %8, label %9
8: ; preds = %4
call void @_Z6decodev()
br label %4, !llvm.loop !9
9: ; preds = %4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
ret i32 0
}
attributes #0 = { mustprogress 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 = { mustprogress norecurse 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6decodev() #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
%2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = add nsw i32 %3, -1
store i32 %4, ptr %1, align 4, !tbaa !5
%5 = icmp ne i32 %3, 0
br i1 %5, label %B2, label %B3
B2:
call void @_Z6decodev()
br label %B1, !llvm.loop !9
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
ret i32 0
}
attributes #0 = { mustprogress 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 = { mustprogress norecurse 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6decodev() 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
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
%2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = add nsw i32 %3, -1
store i32 %4, ptr %1, align 4, !tbaa !5
%.not1 = icmp eq i32 %3, 0
br i1 %.not1, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %.lr.ph
call void @_Z6decodev()
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = add nsw i32 %5, -1
store i32 %6, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %5, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %.lr.ph, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
ret i32 0
}
attributes #0 = { mustprogress 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 norecurse 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | b2021146b34a712b | shreyamalogi/CP-practice | codechef | P_PUPPY AND SUM | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %8
8: ; preds = %12, %0
%9 = load i32, ptr %2, align 4, !tbaa !5
%10 = add nsw i32 %9, -1
store i32 %10, ptr %2, align 4, !tbaa !5
%11 = icmp ne i32 %9, 0
br i1 %11, label %12, label %29
12: ; preds = %8
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %4)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %5)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %6)
%17 = load i32, ptr %3, align 4, !tbaa !5
%18 = load i32, ptr %4, align 4, !tbaa !5
%19 = load i32, ptr %5, align 4, !tbaa !5
%20 = sdiv i32 %19, 2
%21 = add nsw i32 %18, %20
%22 = mul nsw i32 %17, %21
%23 = load i32, ptr %6, align 4, !tbaa !5
%24 = icmp slt i32 %22, %23
%25 = zext i1 %24 to i64
%26 = select i1 %24, ptr @.str, ptr @.str.1
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %26)
%28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
br label %8, !llvm.loop !9
29: ; preds = %8
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %1, align 4, !tbaa !5
%9 = icmp ne i32 %7, 0
br i1 %9, label %B2, label %B3
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %4)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %5)
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = load i32, ptr %3, align 4, !tbaa !5
%16 = load i32, ptr %4, align 4, !tbaa !5
%17 = sdiv i32 %16, 2
%18 = add nsw i32 %15, %17
%19 = mul nsw i32 %14, %18
%20 = load i32, ptr %5, align 4, !tbaa !5
%21 = icmp slt i32 %19, %20
%22 = zext i1 %21 to i64
%23 = select i1 %21, ptr @.str, ptr @.str.1
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %23)
%25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
br label %B1, !llvm.loop !9
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %1, align 4, !tbaa !5
%.not1 = icmp eq i32 %7, 0
br i1 %.not1, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %.lr.ph
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %5)
%13 = load i32, ptr %2, align 4, !tbaa !5
%14 = load i32, ptr %3, align 4, !tbaa !5
%15 = load i32, ptr %4, align 4, !tbaa !5
%16 = sdiv i32 %15, 2
%17 = add nsw i32 %16, %14
%18 = mul nsw i32 %17, %13
%19 = load i32, ptr %5, align 4, !tbaa !5
%20 = icmp slt i32 %18, %19
%21 = select i1 %20, ptr @.str, ptr @.str.1
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %21)
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
%24 = load i32, ptr %1, align 4, !tbaa !5
%25 = add nsw i32 %24, -1
store i32 %25, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %24, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %.lr.ph, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | a3193c811fe7d74d | shreyamalogi/CP-practice | codechef | S_SAVE WATER SAVE LIFE | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !5
br label %8
8: ; preds = %30, %0
%9 = load i32, ptr %6, align 4, !tbaa !5
%10 = load i32, ptr %2, align 4, !tbaa !5
%11 = icmp slt i32 %9, %10
br i1 %11, label %13, label %12
12: ; preds = %8
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
br label %33
13: ; preds = %8
store i32 0, ptr %5, align 4, !tbaa !5
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
br label %15
15: ; preds = %18, %13
%16 = load i32, ptr %3, align 4, !tbaa !5
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %26
18: ; preds = %15
%19 = load i32, ptr %3, align 4, !tbaa !5
%20 = srem i32 %19, 10
store i32 %20, ptr %4, align 4, !tbaa !5
%21 = load i32, ptr %3, align 4, !tbaa !5
%22 = sdiv i32 %21, 10
store i32 %22, ptr %3, align 4, !tbaa !5
%23 = load i32, ptr %5, align 4, !tbaa !5
%24 = load i32, ptr %4, align 4, !tbaa !5
%25 = add nsw i32 %23, %24
store i32 %25, ptr %5, align 4, !tbaa !5
br label %15, !llvm.loop !9
26: ; preds = %15
%27 = load i32, ptr %5, align 4, !tbaa !5
%28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %27)
%29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %30
30: ; preds = %26
%31 = load i32, ptr %6, align 4, !tbaa !5
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4, !tbaa !5
br label %8, !llvm.loop !11
33: ; preds = %12
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
store i32 0, ptr %5, align 4, !tbaa !5
br label %B1
B1:
%7 = load i32, ptr %5, align 4, !tbaa !5
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = icmp slt i32 %7, %8
br i1 %9, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
br label %B8
B3:
store i32 0, ptr %4, align 4, !tbaa !5
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %B4
B4:
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = icmp ne i32 %11, 0
br i1 %12, label %B5, label %B6
B5:
%13 = load i32, ptr %2, align 4, !tbaa !5
%14 = srem i32 %13, 10
store i32 %14, ptr %3, align 4, !tbaa !5
%15 = load i32, ptr %2, align 4, !tbaa !5
%16 = sdiv i32 %15, 10
store i32 %16, ptr %2, align 4, !tbaa !5
%17 = load i32, ptr %4, align 4, !tbaa !5
%18 = load i32, ptr %3, align 4, !tbaa !5
%19 = add nsw i32 %17, %18
store i32 %19, ptr %4, align 4, !tbaa !5
br label %B4, !llvm.loop !9
B6:
%20 = load i32, ptr %4, align 4, !tbaa !5
%21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %20)
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
br label %B7
B7:
%23 = load i32, ptr %5, align 4, !tbaa !5
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4, !tbaa !5
br label %B1, !llvm.loop !11
B8:
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
%3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = icmp sgt i32 %4, 0
br i1 %5, label %.lr.ph11, label %._crit_edge12
._crit_edge12: ; preds = %11, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
.lr.ph11: ; preds = %0, %11
%.09 = phi i32 [ %14, %11 ], [ 0, %0 ]
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%.pr = load i32, ptr %2, align 4, !tbaa !5
%.not7 = icmp eq i32 %.pr, 0
br i1 %.not7, label %11, label %.lr.ph
.lr.ph: ; preds = %.lr.ph11, %.lr.ph
%.058 = phi i32 [ %10, %.lr.ph ], [ 0, %.lr.ph11 ]
%7 = phi i32 [ %9, %.lr.ph ], [ %.pr, %.lr.ph11 ]
%8 = srem i32 %7, 10
%9 = sdiv i32 %7, 10
%10 = add nsw i32 %.058, %8
%.off = add i32 %7, 9
%.not = icmp ult i32 %.off, 19
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %.lr.ph
store i32 %9, ptr %2, align 4, !tbaa !5
br label %11
11: ; preds = %._crit_edge, %.lr.ph11
%.05.lcssa = phi i32 [ %10, %._crit_edge ], [ 0, %.lr.ph11 ]
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.05.lcssa)
%13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
%14 = add nuw nsw i32 %.09, 1
%15 = load i32, ptr %1, align 4, !tbaa !5
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph11, label %._crit_edge12, !llvm.loop !11
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 52801b536534406c | shreyamalogi/CP-practice | codechef | S_SUM OF DIGITS | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
store i32 0, ptr %5, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
store i32 0, ptr %8, align 4, !tbaa !5
br label %11
11: ; preds = %39, %0
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = add nsw i32 %12, -1
store i32 %13, ptr %2, align 4, !tbaa !5
%14 = icmp ne i32 %12, 0
br i1 %14, label %15, label %40
15: ; preds = %11
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %4)
%18 = load i32, ptr %3, align 4, !tbaa !5
%19 = load i32, ptr %5, align 4, !tbaa !5
%20 = add nsw i32 %19, %18
store i32 %20, ptr %5, align 4, !tbaa !5
%21 = load i32, ptr %4, align 4, !tbaa !5
%22 = load i32, ptr %6, align 4, !tbaa !5
%23 = add nsw i32 %22, %21
store i32 %23, ptr %6, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
store i32 0, ptr %9, align 4, !tbaa !5
%24 = load i32, ptr %5, align 4, !tbaa !5
%25 = load i32, ptr %6, align 4, !tbaa !5
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %33
27: ; preds = %15
%28 = load i32, ptr %5, align 4, !tbaa !5
%29 = load i32, ptr %6, align 4, !tbaa !5
%30 = sub nsw i32 %28, %29
store i32 %30, ptr %9, align 4, !tbaa !5
%31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %9)
%32 = load i32, ptr %31, align 4, !tbaa !5
store i32 %32, ptr %7, align 4, !tbaa !5
br label %39
33: ; preds = %15
%34 = load i32, ptr %6, align 4, !tbaa !5
%35 = load i32, ptr %5, align 4, !tbaa !5
%36 = sub nsw i32 %34, %35
store i32 %36, ptr %9, align 4, !tbaa !5
%37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
%38 = load i32, ptr %37, align 4, !tbaa !5
store i32 %38, ptr %8, align 4, !tbaa !5
br label %39
39: ; preds = %33, %27
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
br label %11, !llvm.loop !9
40: ; preds = %11
%41 = load i32, ptr %7, align 4, !tbaa !5
%42 = load i32, ptr %8, align 4, !tbaa !5
%43 = icmp sgt i32 %41, %42
br i1 %43, label %44, label %49
44: ; preds = %40
%45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
%46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @.str)
%47 = load i32, ptr %7, align 4, !tbaa !5
%48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %47)
br label %54
49: ; preds = %40
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
%51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str)
%52 = load i32, ptr %8, align 4, !tbaa !5
%53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %51, i32 noundef %52)
br label %54
54: ; preds = %49, %44
%55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
store i32 0, ptr %4, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
store i32 0, ptr %5, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
store i32 0, ptr %6, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
store i32 0, ptr %7, align 4, !tbaa !5
br label %B1
B1:
%10 = load i32, ptr %1, align 4, !tbaa !5
%11 = add nsw i32 %10, -1
store i32 %11, ptr %1, align 4, !tbaa !5
%12 = icmp ne i32 %10, 0
br i1 %12, label %B2, label %B6
B2:
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
%15 = load i32, ptr %2, align 4, !tbaa !5
%16 = load i32, ptr %4, align 4, !tbaa !5
%17 = add nsw i32 %16, %15
store i32 %17, ptr %4, align 4, !tbaa !5
%18 = load i32, ptr %3, align 4, !tbaa !5
%19 = load i32, ptr %5, align 4, !tbaa !5
%20 = add nsw i32 %19, %18
store i32 %20, ptr %5, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
store i32 0, ptr %8, align 4, !tbaa !5
%21 = load i32, ptr %4, align 4, !tbaa !5
%22 = load i32, ptr %5, align 4, !tbaa !5
%23 = icmp sgt i32 %21, %22
br i1 %23, label %B3, label %B4
B3:
%24 = load i32, ptr %4, align 4, !tbaa !5
%25 = load i32, ptr %5, align 4, !tbaa !5
%26 = sub nsw i32 %24, %25
store i32 %26, ptr %8, align 4, !tbaa !5
%27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %8)
%28 = load i32, ptr %27, align 4, !tbaa !5
store i32 %28, ptr %6, align 4, !tbaa !5
br label %B5
B4:
%29 = load i32, ptr %5, align 4, !tbaa !5
%30 = load i32, ptr %4, align 4, !tbaa !5
%31 = sub nsw i32 %29, %30
store i32 %31, ptr %8, align 4, !tbaa !5
%32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
%33 = load i32, ptr %32, align 4, !tbaa !5
store i32 %33, ptr %7, align 4, !tbaa !5
br label %B5
B5:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
br label %B1, !llvm.loop !9
B6:
%34 = load i32, ptr %6, align 4, !tbaa !5
%35 = load i32, ptr %7, align 4, !tbaa !5
%36 = icmp sgt i32 %34, %35
br i1 %36, label %B7, label %B8
B7:
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
%38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @.str)
%39 = load i32, ptr %6, align 4, !tbaa !5
%40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %38, i32 noundef %39)
br label %B9
B8:
%41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
%42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @.str)
%43 = load i32, ptr %7, align 4, !tbaa !5
%44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %42, i32 noundef %43)
br label %B9
B9:
%45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
store i32 0, ptr %4, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
store i32 0, ptr %5, align 4, !tbaa !5
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%.not12 = icmp eq i32 %8, 0
br i1 %.not12, label %._crit_edge.thread, label %.lr.ph
.lr.ph: ; preds = %0, %25
%.014 = phi i32 [ %15, %25 ], [ 0, %0 ]
%.0813 = phi i32 [ %13, %25 ], [ 0, %0 ]
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = add nsw i32 %12, %.0813
%14 = load i32, ptr %3, align 4, !tbaa !5
%15 = add nsw i32 %14, %.014
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
%16 = icmp sgt i32 %13, %15
br i1 %16, label %17, label %21
17: ; preds = %.lr.ph
%18 = sub nsw i32 %13, %15
store i32 %18, ptr %6, align 4, !tbaa !5
%19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
%20 = load i32, ptr %19, align 4, !tbaa !5
store i32 %20, ptr %4, align 4, !tbaa !5
br label %25
21: ; preds = %.lr.ph
%22 = sub nsw i32 %15, %13
store i32 %22, ptr %6, align 4, !tbaa !5
%23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
%24 = load i32, ptr %23, align 4, !tbaa !5
store i32 %24, ptr %5, align 4, !tbaa !5
br label %25
25: ; preds = %21, %17
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
%26 = load i32, ptr %1, align 4, !tbaa !5
%27 = add nsw i32 %26, -1
store i32 %27, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %26, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %25
%.pre = load i32, ptr %4, align 4, !tbaa !5
%.pre15 = load i32, ptr %5, align 4, !tbaa !5
%28 = icmp sgt i32 %.pre, %.pre15
br i1 %28, label %29, label %._crit_edge.thread
29: ; preds = %._crit_edge
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str)
%32 = load i32, ptr %4, align 4, !tbaa !5
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef %32)
br label %38
._crit_edge.thread: ; preds = %0, %._crit_edge
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
%35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @.str)
%36 = load i32, ptr %5, align 4, !tbaa !5
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 noundef %36)
br label %38
38: ; preds = %._crit_edge.thread, %29
%39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) 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) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| DSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | bfa7ba8638f62179 | shreyamalogi/CP-practice | codechef | T_THE LEAD GAME | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %13
13: ; preds = %73, %0
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4, !tbaa !5
%16 = icmp ne i32 %14, 0
br i1 %16, label %17, label %80
17: ; preds = %13
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
%18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
%19 = load i32, ptr %3, align 4, !tbaa !5
%20 = sext i32 %19 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %21 unwind label %27
21: ; preds = %17
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
store i32 2147483647, ptr %8, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
store i32 0, ptr %9, align 4, !tbaa !5
br label %22
22: ; preds = %43, %21
%23 = load i32, ptr %9, align 4, !tbaa !5
%24 = load i32, ptr %3, align 4, !tbaa !5
%25 = icmp slt i32 %23, %24
br i1 %25, label %31, label %26
26: ; preds = %22
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
br label %50
27: ; preds = %17
%28 = landingpad { ptr, i32 }
cleanup
%29 = extractvalue { ptr, i32 } %28, 0
store ptr %29, ptr %6, align 8
%30 = extractvalue { ptr, i32 } %28, 1
store i32 %30, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
br label %79
31: ; preds = %22
%32 = load i32, ptr %9, align 4, !tbaa !5
%33 = sext i32 %32 to i64
%34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %33) #7
%35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %34)
to label %36 unwind label %46
36: ; preds = %31
%37 = load i32, ptr %9, align 4, !tbaa !5
%38 = sext i32 %37 to i64
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %38) #7
%40 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %39)
to label %41 unwind label %46
41: ; preds = %36
%42 = load i32, ptr %40, align 4, !tbaa !5
store i32 %42, ptr %8, align 4, !tbaa !5
br label %43
43: ; preds = %41
%44 = load i32, ptr %9, align 4, !tbaa !5
%45 = add nsw i32 %44, 1
store i32 %45, ptr %9, align 4, !tbaa !5
br label %22, !llvm.loop !9
46: ; preds = %36, %31
%47 = landingpad { ptr, i32 }
cleanup
%48 = extractvalue { ptr, i32 } %47, 0
store ptr %48, ptr %6, align 8
%49 = extractvalue { ptr, i32 } %47, 1
store i32 %49, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
br label %78
50: ; preds = %26
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
store i32 0, ptr %10, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
store i32 0, ptr %11, align 4, !tbaa !5
br label %51
51: ; preds = %65, %50
%52 = load i32, ptr %11, align 4, !tbaa !5
%53 = load i32, ptr %3, align 4, !tbaa !5
%54 = icmp slt i32 %52, %53
br i1 %54, label %56, label %55
55: ; preds = %51
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
br label %68
56: ; preds = %51
%57 = load i32, ptr %11, align 4, !tbaa !5
%58 = sext i32 %57 to i64
%59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %58) #7
%60 = load i32, ptr %59, align 4, !tbaa !5
%61 = load i32, ptr %8, align 4, !tbaa !5
%62 = sub nsw i32 %60, %61
%63 = load i32, ptr %10, align 4, !tbaa !5
%64 = add nsw i32 %63, %62
store i32 %64, ptr %10, align 4, !tbaa !5
br label %65
65: ; preds = %56
%66 = load i32, ptr %11, align 4, !tbaa !5
%67 = add nsw i32 %66, 1
store i32 %67, ptr %11, align 4, !tbaa !5
br label %51, !llvm.loop !11
68: ; preds = %55
%69 = load i32, ptr %10, align 4, !tbaa !5
%70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %69)
to label %71 unwind label %74
71: ; preds = %68
%72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %73 unwind label %74
73: ; preds = %71
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
br label %13, !llvm.loop !12
74: ; preds = %71, %68
%75 = landingpad { ptr, i32 }
cleanup
%76 = extractvalue { ptr, i32 } %75, 0
store ptr %76, ptr %6, align 8
%77 = extractvalue { ptr, i32 } %75, 1
store i32 %77, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
br label %78
78: ; preds = %74, %46
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
br label %79
79: ; preds = %78, %27
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
br label %81
80: ; preds = %13
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
ret i32 0
81: ; preds = %79
%82 = load ptr, ptr %6, align 8
%83 = load i32, ptr %7, align 4
%84 = insertvalue { ptr, i32 } poison, ptr %82, 0
%85 = insertvalue { ptr, i32 } %84, i32 %83, 1
resume { ptr, i32 } %85
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%12 = load i32, ptr %1, align 4, !tbaa !5
%13 = add nsw i32 %12, -1
store i32 %13, ptr %1, align 4, !tbaa !5
%14 = icmp ne i32 %12, 0
br i1 %14, label %B2, label %B23
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #7
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = sext i32 %16 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %17, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %B3 unwind label %B6
B3:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
store i32 2147483647, ptr %7, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
store i32 0, ptr %8, align 4, !tbaa !5
br label %B4
B4:
%18 = load i32, ptr %8, align 4, !tbaa !5
%19 = load i32, ptr %2, align 4, !tbaa !5
%20 = icmp slt i32 %18, %19
br i1 %20, label %B7, label %B5
B5:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
br label %B12
B6:
%21 = landingpad { ptr, i32 }
cleanup
%22 = extractvalue { ptr, i32 } %21, 0
store ptr %22, ptr %5, align 8
%23 = extractvalue { ptr, i32 } %21, 1
store i32 %23, ptr %6, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
br label %B22
B7:
%24 = load i32, ptr %8, align 4, !tbaa !5
%25 = sext i32 %24 to i64
%26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %25) #7
%27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %26)
to label %B8 unwind label %B11
B8:
%28 = load i32, ptr %8, align 4, !tbaa !5
%29 = sext i32 %28 to i64
%30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %29) #7
%31 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %30)
to label %B9 unwind label %B11
B9:
%32 = load i32, ptr %31, align 4, !tbaa !5
store i32 %32, ptr %7, align 4, !tbaa !5
br label %B10
B10:
%33 = load i32, ptr %8, align 4, !tbaa !5
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4, !tbaa !5
br label %B4, !llvm.loop !9
B11:
%35 = landingpad { ptr, i32 }
cleanup
%36 = extractvalue { ptr, i32 } %35, 0
store ptr %36, ptr %5, align 8
%37 = extractvalue { ptr, i32 } %35, 1
store i32 %37, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
br label %B21
B12:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
store i32 0, ptr %9, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
store i32 0, ptr %10, align 4, !tbaa !5
br label %B13
B13:
%38 = load i32, ptr %10, align 4, !tbaa !5
%39 = load i32, ptr %2, align 4, !tbaa !5
%40 = icmp slt i32 %38, %39
br i1 %40, label %B15, label %B14
B14:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
br label %B17
B15:
%41 = load i32, ptr %10, align 4, !tbaa !5
%42 = sext i32 %41 to i64
%43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %42) #7
%44 = load i32, ptr %43, align 4, !tbaa !5
%45 = load i32, ptr %7, align 4, !tbaa !5
%46 = sub nsw i32 %44, %45
%47 = load i32, ptr %9, align 4, !tbaa !5
%48 = add nsw i32 %47, %46
store i32 %48, ptr %9, align 4, !tbaa !5
br label %B16
B16:
%49 = load i32, ptr %10, align 4, !tbaa !5
%50 = add nsw i32 %49, 1
store i32 %50, ptr %10, align 4, !tbaa !5
br label %B13, !llvm.loop !11
B17:
%51 = load i32, ptr %9, align 4, !tbaa !5
%52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %51)
to label %B18 unwind label %B20
B18:
%53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B19 unwind label %B20
B19:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
br label %B1, !llvm.loop !12
B20:
%54 = landingpad { ptr, i32 }
cleanup
%55 = extractvalue { ptr, i32 } %54, 0
store ptr %55, ptr %5, align 8
%56 = extractvalue { ptr, i32 } %54, 1
store i32 %56, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
br label %B21
B21:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
br label %B22
B22:
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
br label %B24
B23:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
ret i32 0
B24:
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %6, align 4
%59 = insertvalue { ptr, i32 } poison, ptr %57, 0
%60 = insertvalue { ptr, i32 } %59, i32 %58, 1
resume { ptr, i32 } %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %1, align 4, !tbaa !5
%.not21 = icmp eq i32 %7, 0
br i1 %.not21, label %._crit_edge24, label %.lr.ph23
.lr.ph23: ; preds = %0, %40
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
%10 = load i32, ptr %2, align 4, !tbaa !5
%11 = sext i32 %10 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %12 unwind label %16
12: ; preds = %.lr.ph23
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
store i32 2147483647, ptr %5, align 4, !tbaa !5
%13 = load i32, ptr %2, align 4, !tbaa !5
%14 = icmp sgt i32 %13, 0
br i1 %14, label %.lr.ph, label %._crit_edge
.preheader: ; preds = %20
%15 = icmp sgt i32 %24, 0
br i1 %15, label %.lr.ph20, label %._crit_edge
16: ; preds = %.lr.ph23
%17 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
br label %46
.lr.ph: ; preds = %12, %20
%indvars.iv = phi i64 [ %indvars.iv.next, %20 ], [ 0, %12 ]
%18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #7
%19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %18)
to label %20 unwind label %27
20: ; preds = %.lr.ph
%21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #7
%22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %21)
%23 = load i32, ptr %22, align 4, !tbaa !5
store i32 %23, ptr %5, align 4, !tbaa !5
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%24 = load i32, ptr %2, align 4, !tbaa !5
%25 = sext i32 %24 to i64
%26 = icmp slt i64 %indvars.iv.next, %25
br i1 %26, label %.lr.ph, label %.preheader, !llvm.loop !9
27: ; preds = %.lr.ph
%28 = landingpad { ptr, i32 }
cleanup
br label %45
._crit_edge: ; preds = %.lr.ph20, %12, %.preheader
%.010.lcssa = phi i32 [ 0, %.preheader ], [ 0, %12 ], [ %34, %.lr.ph20 ]
%29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.010.lcssa)
to label %38 unwind label %43
.lr.ph20: ; preds = %.preheader, %.lr.ph20
%indvars.iv26 = phi i64 [ %indvars.iv.next27, %.lr.ph20 ], [ 0, %.preheader ]
%.01018 = phi i32 [ %34, %.lr.ph20 ], [ 0, %.preheader ]
%30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv26) #7
%31 = load i32, ptr %30, align 4, !tbaa !5
%32 = load i32, ptr %5, align 4, !tbaa !5
%33 = add i32 %31, %.01018
%34 = sub i32 %33, %32
%indvars.iv.next27 = add nuw nsw i64 %indvars.iv26, 1
%35 = load i32, ptr %2, align 4, !tbaa !5
%36 = sext i32 %35 to i64
%37 = icmp slt i64 %indvars.iv.next27, %36
br i1 %37, label %.lr.ph20, label %._crit_edge, !llvm.loop !11
38: ; preds = %._crit_edge
%39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %40 unwind label %43
40: ; preds = %38
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
%41 = load i32, ptr %1, align 4, !tbaa !5
%42 = add nsw i32 %41, -1
store i32 %42, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %41, 0
br i1 %.not, label %._crit_edge24, label %.lr.ph23, !llvm.loop !12
43: ; preds = %38, %._crit_edge
%44 = landingpad { ptr, i32 }
cleanup
br label %45
45: ; preds = %43, %27
%.pn = phi { ptr, i32 } [ %28, %27 ], [ %44, %43 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
br label %46
46: ; preds = %45, %16
%.pn.pn = phi { ptr, i32 } [ %.pn, %45 ], [ %17, %16 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
resume { ptr, i32 } %.pn.pn
._crit_edge24: ; preds = %40, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | c5bb0f942c628f6b | shreyamalogi/CP-practice | codechef | T_THE MINIMUM OF THE MOVES | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %9
9: ; preds = %13, %0
%10 = load i32, ptr %2, align 4, !tbaa !5
%11 = add nsw i32 %10, -1
store i32 %11, ptr %2, align 4, !tbaa !5
%12 = icmp ne i32 %10, 0
br i1 %12, label %13, label %35
13: ; preds = %9
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %4)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %5)
%17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %6)
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
%18 = load i32, ptr %3, align 4, !tbaa !5
%19 = load i32, ptr %3, align 4, !tbaa !5
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %5, align 4, !tbaa !5
%22 = mul nsw i32 2, %21
%23 = load i32, ptr %6, align 4, !tbaa !5
%24 = mul nsw i32 %22, %23
%25 = sub nsw i32 %20, %24
store i32 %25, ptr %7, align 4, !tbaa !5
%26 = load i32, ptr %7, align 4, !tbaa !5
%27 = load i32, ptr %4, align 4, !tbaa !5
%28 = load i32, ptr %4, align 4, !tbaa !5
%29 = mul nsw i32 %27, %28
%30 = icmp sle i32 %26, %29
%31 = zext i1 %30 to i64
%32 = select i1 %30, ptr @.str, ptr @.str.1
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %32)
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
br label %9, !llvm.loop !9
35: ; preds = %9
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%10 = icmp ne i32 %8, 0
br i1 %10, label %B2, label %B3
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %3)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %4)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %5)
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
%15 = load i32, ptr %2, align 4, !tbaa !5
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = mul nsw i32 %15, %16
%18 = load i32, ptr %4, align 4, !tbaa !5
%19 = mul nsw i32 2, %18
%20 = load i32, ptr %5, align 4, !tbaa !5
%21 = mul nsw i32 %19, %20
%22 = sub nsw i32 %17, %21
store i32 %22, ptr %6, align 4, !tbaa !5
%23 = load i32, ptr %6, align 4, !tbaa !5
%24 = load i32, ptr %3, align 4, !tbaa !5
%25 = load i32, ptr %3, align 4, !tbaa !5
%26 = mul nsw i32 %24, %25
%27 = icmp sle i32 %23, %26
%28 = zext i1 %27 to i64
%29 = select i1 %27, ptr @.str, ptr @.str.1
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %29)
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
br label %B1, !llvm.loop !9
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %1, align 4, !tbaa !5
%.not2 = icmp eq i32 %7, 0
br i1 %.not2, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %.lr.ph
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %5)
%13 = load i32, ptr %2, align 4, !tbaa !5
%14 = mul nsw i32 %13, %13
%15 = load i32, ptr %4, align 4, !tbaa !5
%16 = shl nsw i32 %15, 1
%17 = load i32, ptr %5, align 4, !tbaa !5
%18 = mul nsw i32 %16, %17
%19 = sub nsw i32 %14, %18
%20 = load i32, ptr %3, align 4, !tbaa !5
%21 = mul nsw i32 %20, %20
%.not1 = icmp sgt i32 %19, %21
%22 = select i1 %.not1, ptr @.str.1, ptr @.str
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %22)
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
%25 = load i32, ptr %1, align 4, !tbaa !5
%26 = add nsw i32 %25, -1
store i32 %26, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %25, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %.lr.ph, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 28a4cb1f0cd21671 | shreyamalogi/CP-practice | codechef | T_TURN IT | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %9
9: ; preds = %34, %0
%10 = load i32, ptr %2, align 4, !tbaa !5
%11 = add nsw i32 %10, -1
store i32 %11, ptr %2, align 4, !tbaa !5
%12 = icmp ne i32 %10, 0
br i1 %12, label %13, label %40
13: ; preds = %9
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %4)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %5)
%17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %6)
%18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %7)
%19 = load i32, ptr %4, align 4, !tbaa !5
%20 = load i32, ptr %3, align 4, !tbaa !5
%21 = sub nsw i32 %19, %20
%22 = load i32, ptr %5, align 4, !tbaa !5
%23 = load i32, ptr %7, align 4, !tbaa !5
%24 = mul nsw i32 %22, %23
%25 = icmp sge i32 %21, %24
br i1 %25, label %26, label %34
26: ; preds = %13
%27 = load i32, ptr %4, align 4, !tbaa !5
%28 = load i32, ptr %3, align 4, !tbaa !5
%29 = sub nsw i32 %27, %28
%30 = load i32, ptr %6, align 4, !tbaa !5
%31 = load i32, ptr %7, align 4, !tbaa !5
%32 = mul nsw i32 %30, %31
%33 = icmp sle i32 %29, %32
br label %34
34: ; preds = %26, %13
%35 = phi i1 [ false, %13 ], [ %33, %26 ]
%36 = zext i1 %35 to i64
%37 = select i1 %35, i32 1, i32 0
%38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %37)
%39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %38, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
br label %9, !llvm.loop !9
40: ; preds = %9
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%10 = icmp ne i32 %8, 0
br i1 %10, label %B2, label %B5
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %3)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %4)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %5)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %6)
%16 = load i32, ptr %3, align 4, !tbaa !5
%17 = load i32, ptr %2, align 4, !tbaa !5
%18 = sub nsw i32 %16, %17
%19 = load i32, ptr %4, align 4, !tbaa !5
%20 = load i32, ptr %6, align 4, !tbaa !5
%21 = mul nsw i32 %19, %20
%22 = icmp sge i32 %18, %21
br i1 %22, label %B3, label %B4
B3:
%23 = load i32, ptr %3, align 4, !tbaa !5
%24 = load i32, ptr %2, align 4, !tbaa !5
%25 = sub nsw i32 %23, %24
%26 = load i32, ptr %5, align 4, !tbaa !5
%27 = load i32, ptr %6, align 4, !tbaa !5
%28 = mul nsw i32 %26, %27
%29 = icmp sle i32 %25, %28
br label %B4
B4:
%30 = phi i1 [ false, %B2 ], [ %29, %B3 ]
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 1, i32 0
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %32)
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %33, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
br label %B1, !llvm.loop !9
B5:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%.not2 = icmp eq i32 %8, 0
br i1 %.not2, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %.lr.ph
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %4)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %5)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %6)
%15 = load i32, ptr %3, align 4, !tbaa !5
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = sub nsw i32 %15, %16
%18 = load i32, ptr %4, align 4, !tbaa !5
%19 = load i32, ptr %6, align 4, !tbaa !5
%20 = mul nsw i32 %19, %18
%.not1 = icmp sge i32 %17, %20
%21 = load i32, ptr %5, align 4
%22 = mul nsw i32 %21, %19
%23 = icmp sle i32 %17, %22
%24 = select i1 %.not1, i1 %23, i1 false
%25 = zext i1 %24 to i32
%26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %25)
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %26, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
%28 = load i32, ptr %1, align 4, !tbaa !5
%29 = add nsw i32 %28, -1
store i32 %29, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %28, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %.lr.ph, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 15e9e2240d6b8477 | shreyamalogi/CP-practice | codechef | W_WEIGHT BALANCE | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<char, std::pair<const char, long long>, std::_Select1st<std::pair<const char, long long>>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, std::pair<const char, long long>, std::_Select1st<std::pair<const char, long long>>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i8, i64 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca %"class.std::__cxx11::basic_string", align 8
%2 = alloca %"class.std::__cxx11::basic_string", align 8
%3 = alloca %"class.std::__cxx11::basic_string", align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.std::map", align 8
%7 = alloca %"class.std::map", align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca %"struct.std::_Rb_tree_iterator", align 8
%14 = alloca %"struct.std::_Rb_tree_iterator", align 8
%15 = alloca %"struct.std::pair", align 8
call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.start.p0(i64 32, ptr %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
to label %17 unwind label %29
17: ; preds = %0
%18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %19 unwind label %29
19: ; preds = %17
%20 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(32) %3)
to label %21 unwind label %29
21: ; preds = %19
call void @llvm.lifetime.start.p0(i64 48, ptr %6) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.start.p0(i64 48, ptr %7) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
store i64 0, ptr %8, align 8, !tbaa !5
br label %22
22: ; preds = %45, %21
%23 = load i64, ptr %8, align 8, !tbaa !5
%24 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
to label %25 unwind label %33
25: ; preds = %22
%26 = load i8, ptr %24, align 1, !tbaa !9
%27 = icmp ne i8 %26, 0
br i1 %27, label %37, label %28
28: ; preds = %25
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
br label %48
29: ; preds = %19, %17, %0
%30 = landingpad { ptr, i32 }
cleanup
%31 = extractvalue { ptr, i32 } %30, 0
store ptr %31, ptr %4, align 8
%32 = extractvalue { ptr, i32 } %30, 1
store i32 %32, ptr %5, align 4
br label %146
33: ; preds = %40, %37, %22
%34 = landingpad { ptr, i32 }
cleanup
%35 = extractvalue { ptr, i32 } %34, 0
store ptr %35, ptr %4, align 8
%36 = extractvalue { ptr, i32 } %34, 1
store i32 %36, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
br label %145
37: ; preds = %25
%38 = load i64, ptr %8, align 8, !tbaa !5
%39 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %38)
to label %40 unwind label %33
40: ; preds = %37
%41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 1 dereferenceable(1) %39)
to label %42 unwind label %33
42: ; preds = %40
%43 = load i64, ptr %41, align 8, !tbaa !5
%44 = add nsw i64 %43, 1
store i64 %44, ptr %41, align 8, !tbaa !5
br label %45
45: ; preds = %42
%46 = load i64, ptr %8, align 8, !tbaa !5
%47 = add nsw i64 %46, 1
store i64 %47, ptr %8, align 8, !tbaa !5
br label %22, !llvm.loop !10
48: ; preds = %28
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
store i64 0, ptr %9, align 8, !tbaa !5
br label %49
49: ; preds = %68, %48
%50 = load i64, ptr %9, align 8, !tbaa !5
%51 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %50)
to label %52 unwind label %56
52: ; preds = %49
%53 = load i8, ptr %51, align 1, !tbaa !9
%54 = icmp ne i8 %53, 0
br i1 %54, label %60, label %55
55: ; preds = %52
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
br label %71
56: ; preds = %63, %60, %49
%57 = landingpad { ptr, i32 }
cleanup
%58 = extractvalue { ptr, i32 } %57, 0
store ptr %58, ptr %4, align 8
%59 = extractvalue { ptr, i32 } %57, 1
store i32 %59, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
br label %145
60: ; preds = %52
%61 = load i64, ptr %9, align 8, !tbaa !5
%62 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %61)
to label %63 unwind label %56
63: ; preds = %60
%64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 1 dereferenceable(1) %62)
to label %65 unwind label %56
65: ; preds = %63
%66 = load i64, ptr %64, align 8, !tbaa !5
%67 = add nsw i64 %66, 1
store i64 %67, ptr %64, align 8, !tbaa !5
br label %68
68: ; preds = %65
%69 = load i64, ptr %9, align 8, !tbaa !5
%70 = add nsw i64 %69, 1
store i64 %70, ptr %9, align 8, !tbaa !5
br label %49, !llvm.loop !12
71: ; preds = %55
call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
store i64 0, ptr %10, align 8, !tbaa !5
br label %72
72: ; preds = %91, %71
%73 = load i64, ptr %10, align 8, !tbaa !5
%74 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %73)
to label %75 unwind label %79
75: ; preds = %72
%76 = load i8, ptr %74, align 1, !tbaa !9
%77 = icmp ne i8 %76, 0
br i1 %77, label %83, label %78
78: ; preds = %75
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
br label %94
79: ; preds = %86, %83, %72
%80 = landingpad { ptr, i32 }
cleanup
%81 = extractvalue { ptr, i32 } %80, 0
store ptr %81, ptr %4, align 8
%82 = extractvalue { ptr, i32 } %80, 1
store i32 %82, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
br label %145
83: ; preds = %75
%84 = load i64, ptr %10, align 8, !tbaa !5
%85 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %84)
to label %86 unwind label %79
86: ; preds = %83
%87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 1 dereferenceable(1) %85)
to label %88 unwind label %79
88: ; preds = %86
%89 = load i64, ptr %87, align 8, !tbaa !5
%90 = add nsw i64 %89, 1
store i64 %90, ptr %87, align 8, !tbaa !5
br label %91
91: ; preds = %88
%92 = load i64, ptr %10, align 8, !tbaa !5
%93 = add nsw i64 %92, 1
store i64 %93, ptr %10, align 8, !tbaa !5
br label %72, !llvm.loop !13
94: ; preds = %78
%95 = call noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
%96 = call noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
%97 = icmp ne i64 %95, %96
br i1 %97, label %98, label %105
98: ; preds = %94
%99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
to label %100 unwind label %101
100: ; preds = %98
store i32 1, ptr %11, align 4
br label %142
101: ; preds = %139, %98
%102 = landingpad { ptr, i32 }
cleanup
%103 = extractvalue { ptr, i32 } %102, 0
store ptr %103, ptr %4, align 8
%104 = extractvalue { ptr, i32 } %102, 1
store i32 %104, ptr %5, align 4
br label %145
105: ; preds = %94
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
store ptr %6, ptr %12, align 8, !tbaa !14
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
%106 = load ptr, ptr %12, align 8, !tbaa !14
%107 = call ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %106) #6
%108 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
store ptr %107, ptr %108, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
%109 = load ptr, ptr %12, align 8, !tbaa !14
%110 = call ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %109) #6
%111 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
store ptr %110, ptr %111, align 8
br label %112
112: ; preds = %135, %105
%113 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKcxEES5_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
br i1 %113, label %115, label %114
114: ; preds = %112
store i32 11, ptr %11, align 4
br label %137
115: ; preds = %112
call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
%116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKcxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %116, i64 16, i1 false)
%117 = getelementptr inbounds %"struct.std::pair", ptr %15, i32 0, i32 1
%118 = load i64, ptr %117, align 8, !tbaa !16
%119 = getelementptr inbounds %"struct.std::pair", ptr %15, i32 0, i32 0
%120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 1 dereferenceable(1) %119)
to label %121 unwind label %127
121: ; preds = %115
%122 = load i64, ptr %120, align 8, !tbaa !5
%123 = icmp ne i64 %118, %122
br i1 %123, label %124, label %131
124: ; preds = %121
%125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
to label %126 unwind label %127
126: ; preds = %124
store i32 1, ptr %11, align 4
br label %132
127: ; preds = %124, %115
%128 = landingpad { ptr, i32 }
cleanup
%129 = extractvalue { ptr, i32 } %128, 0
store ptr %129, ptr %4, align 8
%130 = extractvalue { ptr, i32 } %128, 1
store i32 %130, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
br label %145
131: ; preds = %121
store i32 0, ptr %11, align 4
br label %132
132: ; preds = %131, %126
call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
%133 = load i32, ptr %11, align 4
switch i32 %133, label %137 [
i32 0, label %134
]
134: ; preds = %132
br label %135
135: ; preds = %134
%136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKcxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
br label %112
137: ; preds = %132, %114
call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
%138 = load i32, ptr %11, align 4
switch i32 %138, label %142 [
i32 11, label %139
]
139: ; preds = %137
%140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
to label %141 unwind label %101
141: ; preds = %139
store i32 0, ptr %11, align 4
br label %142
142: ; preds = %141, %137, %100
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %6) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
%143 = load i32, ptr %11, align 4
switch i32 %143, label %152 [
i32 0, label %144
i32 1, label %144
]
144: ; preds = %142, %142
ret void
145: ; preds = %127, %101, %79, %56, %33
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %6) #6
br label %146
146: ; preds = %145, %29
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
br label %147
147: ; preds = %146
%148 = load ptr, ptr %4, align 8
%149 = load i32, ptr %5, align 4
%150 = insertvalue { ptr, i32 } poison, ptr %148, 0
%151 = insertvalue { ptr, i32 } %150, i32 %149, 1
resume { ptr, i32 } %151
152: ; preds = %142
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKcxEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKcxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKcxEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
attributes #0 = { mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { inlinehint mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSSt4pairIKcxE", !7, i64 0, !6, i64 8}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %STRUCT0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%STRUCT0 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<char, std::pair<const char, long long>, std::_Select1st<std::pair<const char, long long>>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, std::pair<const char, long long>, std::_Select1st<std::pair<const char, long long>>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i8, i64 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca %"class.std::__cxx11::basic_string", align 8
%1 = alloca %"class.std::__cxx11::basic_string", align 8
%2 = alloca %"class.std::__cxx11::basic_string", align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %"class.std::map", align 8
%6 = alloca %"class.std::map", align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca %"struct.std::_Rb_tree_iterator", align 8
%13 = alloca %"struct.std::_Rb_tree_iterator", align 8
%14 = alloca %"struct.std::pair", align 8
call void @llvm.lifetime.start.p0(i64 32, ptr %0) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
%15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
to label %B1 unwind label %B7
B1:
%16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(32) %1)
to label %B2 unwind label %B7
B2:
%17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %B3 unwind label %B7
B3:
call void @llvm.lifetime.start.p0(i64 48, ptr %5) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.start.p0(i64 48, ptr %6) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
store i64 0, ptr %7, align 8, !tbaa !5
br label %B4
B4:
%18 = load i64, ptr %7, align 8, !tbaa !5
%19 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %18)
to label %B5 unwind label %B8
B5:
%20 = load i8, ptr %19, align 1, !tbaa !9
%21 = icmp ne i8 %20, 0
br i1 %21, label %B9, label %B6
B6:
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
br label %B13
B7:
%22 = landingpad { ptr, i32 }
cleanup
%23 = extractvalue { ptr, i32 } %22, 0
store ptr %23, ptr %3, align 8
%24 = extractvalue { ptr, i32 } %22, 1
store i32 %24, ptr %4, align 4
br label %B53
B8:
%25 = landingpad { ptr, i32 }
cleanup
%26 = extractvalue { ptr, i32 } %25, 0
store ptr %26, ptr %3, align 8
%27 = extractvalue { ptr, i32 } %25, 1
store i32 %27, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
br label %B52
B9:
%28 = load i64, ptr %7, align 8, !tbaa !5
%29 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %28)
to label %B10 unwind label %B8
B10:
%30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 1 dereferenceable(1) %29)
to label %B11 unwind label %B8
B11:
%31 = load i64, ptr %30, align 8, !tbaa !5
%32 = add nsw i64 %31, 1
store i64 %32, ptr %30, align 8, !tbaa !5
br label %B12
B12:
%33 = load i64, ptr %7, align 8, !tbaa !5
%34 = add nsw i64 %33, 1
store i64 %34, ptr %7, align 8, !tbaa !5
br label %B4, !llvm.loop !10
B13:
call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
store i64 0, ptr %8, align 8, !tbaa !5
br label %B14
B14:
%35 = load i64, ptr %8, align 8, !tbaa !5
%36 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %35)
to label %B15 unwind label %B17
B15:
%37 = load i8, ptr %36, align 1, !tbaa !9
%38 = icmp ne i8 %37, 0
br i1 %38, label %B18, label %B16
B16:
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
br label %B22
B17:
%39 = landingpad { ptr, i32 }
cleanup
%40 = extractvalue { ptr, i32 } %39, 0
store ptr %40, ptr %3, align 8
%41 = extractvalue { ptr, i32 } %39, 1
store i32 %41, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
br label %B52
B18:
%42 = load i64, ptr %8, align 8, !tbaa !5
%43 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %42)
to label %B19 unwind label %B17
B19:
%44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 1 dereferenceable(1) %43)
to label %B20 unwind label %B17
B20:
%45 = load i64, ptr %44, align 8, !tbaa !5
%46 = add nsw i64 %45, 1
store i64 %46, ptr %44, align 8, !tbaa !5
br label %B21
B21:
%47 = load i64, ptr %8, align 8, !tbaa !5
%48 = add nsw i64 %47, 1
store i64 %48, ptr %8, align 8, !tbaa !5
br label %B14, !llvm.loop !12
B22:
call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
store i64 0, ptr %9, align 8, !tbaa !5
br label %B23
B23:
%49 = load i64, ptr %9, align 8, !tbaa !5
%50 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %49)
to label %B24 unwind label %B26
B24:
%51 = load i8, ptr %50, align 1, !tbaa !9
%52 = icmp ne i8 %51, 0
br i1 %52, label %B27, label %B25
B25:
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
br label %B31
B26:
%53 = landingpad { ptr, i32 }
cleanup
%54 = extractvalue { ptr, i32 } %53, 0
store ptr %54, ptr %3, align 8
%55 = extractvalue { ptr, i32 } %53, 1
store i32 %55, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
br label %B52
B27:
%56 = load i64, ptr %9, align 8, !tbaa !5
%57 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %56)
to label %B28 unwind label %B26
B28:
%58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 1 dereferenceable(1) %57)
to label %B29 unwind label %B26
B29:
%59 = load i64, ptr %58, align 8, !tbaa !5
%60 = add nsw i64 %59, 1
store i64 %60, ptr %58, align 8, !tbaa !5
br label %B30
B30:
%61 = load i64, ptr %9, align 8, !tbaa !5
%62 = add nsw i64 %61, 1
store i64 %62, ptr %9, align 8, !tbaa !5
br label %B23, !llvm.loop !13
B31:
%63 = call noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
%64 = call noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
%65 = icmp ne i64 %63, %64
br i1 %65, label %B32, label %B35
B32:
%66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
to label %B33 unwind label %B34
B33:
store i32 1, ptr %10, align 4
br label %B50
B34:
%67 = landingpad { ptr, i32 }
cleanup
%68 = extractvalue { ptr, i32 } %67, 0
store ptr %68, ptr %3, align 8
%69 = extractvalue { ptr, i32 } %67, 1
store i32 %69, ptr %4, align 4
br label %B52
B35:
call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
store ptr %5, ptr %11, align 8, !tbaa !14
call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
%70 = load ptr, ptr %11, align 8, !tbaa !14
%71 = call ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %70) #6
%72 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %12, i32 0, i32 0
store ptr %71, ptr %72, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
%73 = load ptr, ptr %11, align 8, !tbaa !14
%74 = call ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %73) #6
%75 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
store ptr %74, ptr %75, align 8
br label %B36
B36:
%76 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKcxEES5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
br i1 %76, label %B38, label %B37
B37:
store i32 11, ptr %10, align 4
br label %B47
B38:
call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
%77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKcxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %77, i64 16, i1 false)
%78 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 1
%79 = load i64, ptr %78, align 8, !tbaa !16
%80 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
%81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 1 dereferenceable(1) %80)
to label %B39 unwind label %B42
B39:
%82 = load i64, ptr %81, align 8, !tbaa !5
%83 = icmp ne i64 %79, %82
br i1 %83, label %B40, label %B43
B40:
%84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
to label %B41 unwind label %B42
B41:
store i32 1, ptr %10, align 4
br label %B44
B42:
%85 = landingpad { ptr, i32 }
cleanup
%86 = extractvalue { ptr, i32 } %85, 0
store ptr %86, ptr %3, align 8
%87 = extractvalue { ptr, i32 } %85, 1
store i32 %87, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
br label %B52
B43:
store i32 0, ptr %10, align 4
br label %B44
B44:
call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
%88 = load i32, ptr %10, align 4
switch i32 %88, label %B47 [
i32 0, label %B45
]
B45:
br label %B46
B46:
%89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKcxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
br label %B36
B47:
call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
%90 = load i32, ptr %10, align 4
switch i32 %90, label %B50 [
i32 11, label %B48
]
B48:
%91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
to label %B49 unwind label %B34
B49:
store i32 0, ptr %10, align 4
br label %B50
B50:
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %6) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %0) #6
%92 = load i32, ptr %10, align 4
switch i32 %92, label %B55 [
i32 0, label %B51
i32 1, label %B51
]
B51:
ret void
B52:
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %6) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
br label %B53
B53:
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
call void @llvm.lifetime.end.p0(i64 32, ptr %0) #6
br label %B54
B54:
%93 = load ptr, ptr %3, align 8
%94 = load i32, ptr %4, align 4
%95 = insertvalue { ptr, i32 } poison, ptr %93, 0
%96 = insertvalue { ptr, i32 } %95, i32 %94, 1
resume { ptr, i32 } %96
B55:
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKcxEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKcxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKcxEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
attributes #0 = { mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { inlinehint mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSSt4pairIKcxE", !7, i64 0, !6, i64 8} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<char, std::pair<const char, long long>, std::_Select1st<std::pair<const char, long long>>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, std::pair<const char, long long>, std::_Select1st<std::pair<const char, long long>>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i8, i64 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca %"class.std::__cxx11::basic_string", align 8
%2 = alloca %"class.std::__cxx11::basic_string", align 8
%3 = alloca %"class.std::__cxx11::basic_string", align 8
%4 = alloca %"class.std::map", align 8
%5 = alloca %"class.std::map", align 8
%6 = alloca %"struct.std::_Rb_tree_iterator", align 8
%7 = alloca %"struct.std::_Rb_tree_iterator", align 8
%8 = alloca %"struct.std::pair", align 8
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
%9 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
to label %10 unwind label %19
10: ; preds = %0
%11 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(32) %2)
to label %12 unwind label %19
12: ; preds = %10
%13 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(32) %3)
to label %14 unwind label %19
14: ; preds = %12
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
%15 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
%16 = load i8, ptr %15, align 1, !tbaa !5
%.not31 = icmp eq i8 %16, 0
br i1 %.not31, label %.preheader30, label %.lr.ph
.preheader30: ; preds = %25, %14
%17 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
%18 = load i8, ptr %17, align 1, !tbaa !5
%.not2233 = icmp eq i8 %18, 0
br i1 %.not2233, label %.preheader, label %.lr.ph35
19: ; preds = %12, %10, %0
%20 = landingpad { ptr, i32 }
cleanup
br label %79
21: ; preds = %.lr.ph
%22 = landingpad { ptr, i32 }
cleanup
br label %78
.lr.ph: ; preds = %14, %25
%.01932 = phi i64 [ %28, %25 ], [ 0, %14 ]
%23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.01932)
%24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 1 dereferenceable(1) %23)
to label %25 unwind label %21
25: ; preds = %.lr.ph
%26 = load i64, ptr %24, align 8, !tbaa !8
%27 = add nsw i64 %26, 1
store i64 %27, ptr %24, align 8, !tbaa !8
%28 = add nuw nsw i64 %.01932, 1
%29 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %28)
%30 = load i8, ptr %29, align 1, !tbaa !5
%.not = icmp eq i8 %30, 0
br i1 %.not, label %.preheader30, label %.lr.ph, !llvm.loop !10
.preheader: ; preds = %37, %.preheader30
%31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0)
%32 = load i8, ptr %31, align 1, !tbaa !5
%.not2336 = icmp eq i8 %32, 0
br i1 %.not2336, label %._crit_edge, label %.lr.ph38
33: ; preds = %.lr.ph35
%34 = landingpad { ptr, i32 }
cleanup
br label %78
.lr.ph35: ; preds = %.preheader30, %37
%.01834 = phi i64 [ %40, %37 ], [ 0, %.preheader30 ]
%35 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.01834)
%36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 1 dereferenceable(1) %35)
to label %37 unwind label %33
37: ; preds = %.lr.ph35
%38 = load i64, ptr %36, align 8, !tbaa !8
%39 = add nsw i64 %38, 1
store i64 %39, ptr %36, align 8, !tbaa !8
%40 = add nuw nsw i64 %.01834, 1
%41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %40)
%42 = load i8, ptr %41, align 1, !tbaa !5
%.not22 = icmp eq i8 %42, 0
br i1 %.not22, label %.preheader, label %.lr.ph35, !llvm.loop !12
._crit_edge: ; preds = %49, %.preheader
%43 = call noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
%44 = call noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
%.not24 = icmp eq i64 %43, %44
br i1 %.not24, label %57, label %._crit_edge41.invoke
45: ; preds = %.lr.ph38
%46 = landingpad { ptr, i32 }
cleanup
br label %78
.lr.ph38: ; preds = %.preheader, %49
%.01737 = phi i64 [ %52, %49 ], [ 0, %.preheader ]
%47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.01737)
%48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 1 dereferenceable(1) %47)
to label %49 unwind label %45
49: ; preds = %.lr.ph38
%50 = load i64, ptr %48, align 8, !tbaa !8
%51 = add nsw i64 %50, 1
store i64 %51, ptr %48, align 8, !tbaa !8
%52 = add nuw nsw i64 %.01737, 1
%53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %52)
%54 = load i8, ptr %53, align 1, !tbaa !5
%.not23 = icmp eq i8 %54, 0
br i1 %.not23, label %._crit_edge, label %.lr.ph38, !llvm.loop !13
55: ; preds = %._crit_edge41.invoke
%56 = landingpad { ptr, i32 }
cleanup
br label %78
57: ; preds = %._crit_edge
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
%58 = call ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
store ptr %58, ptr %6, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
%59 = call ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
store ptr %59, ptr %7, align 8
%60 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKcxEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
br i1 %60, label %.lr.ph40, label %._crit_edge41
.lr.ph40: ; preds = %57
%61 = getelementptr inbounds i8, ptr %8, i64 8
br label %62
62: ; preds = %.lr.ph40, %71
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
%63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKcxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %63, i64 16, i1 false)
%64 = load i64, ptr %61, align 8, !tbaa !14
%65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 1 dereferenceable(1) %8)
to label %66 unwind label %.loopexit
66: ; preds = %62
%67 = load i64, ptr %65, align 8, !tbaa !8
%.not25 = icmp eq i64 %64, %67
br i1 %.not25, label %71, label %68
68: ; preds = %66
%69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
to label %74 unwind label %.loopexit.split-lp
.loopexit: ; preds = %62
%lpad.loopexit = landingpad { ptr, i32 }
cleanup
br label %70
.loopexit.split-lp: ; preds = %68
%lpad.loopexit.split-lp = landingpad { ptr, i32 }
cleanup
br label %70
70: ; preds = %.loopexit.split-lp, %.loopexit
%lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
br label %78
71: ; preds = %66
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
%72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKcxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
%73 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKcxEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
br i1 %73, label %62, label %._crit_edge41
74: ; preds = %68
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
br label %77
._crit_edge41: ; preds = %71, %57
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
br label %._crit_edge41.invoke
._crit_edge41.invoke: ; preds = %._crit_edge, %._crit_edge41
%75 = phi ptr [ @.str.1, %._crit_edge41 ], [ @.str, %._crit_edge ]
%76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %75)
to label %77 unwind label %55
77: ; preds = %._crit_edge41.invoke, %74
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
ret void
78: ; preds = %70, %55, %45, %33, %21
%.pn = phi { ptr, i32 } [ %22, %21 ], [ %34, %33 ], [ %46, %45 ], [ %56, %55 ], [ %lpad.phi, %70 ]
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
call void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
br label %79
79: ; preds = %78, %19
%.pn.pn = phi { ptr, i32 } [ %.pn, %78 ], [ %20, %19 ]
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
resume { ptr, i32 } %.pn.pn
}
; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIcxSt4lessIcESaISt4pairIKcxEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKcxEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKcxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKcxEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIcxSt4lessIcESaISt4pairIKcxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2
; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2
attributes #0 = { mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { inlinehint mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = !{!15, !9, i64 8}
!15 = !{!"_ZTSSt4pairIKcxE", !6, i64 0, !9, i64 8}
| EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 27ed82cd2e2d7409 | shreyamalogi/CP-practice | codeforces/A_AMUSING JOKE.ll | Z5solvev | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5solvev() #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
%4 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
%5 = getelementptr i8, ptr %4, i64 -24
%6 = load i64, ptr %5, align 8
%7 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %6
%8 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %7, ptr noundef null)
%9 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
%10 = getelementptr i8, ptr %9, i64 -24
%11 = load i64, ptr %10, align 8
%12 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %11
%13 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
store i32 1, ptr %2, align 4, !tbaa !8
br label %14
14: ; preds = %18, %0
%15 = load i32, ptr %2, align 4, !tbaa !8
%16 = add nsw i32 %15, -1
store i32 %16, ptr %2, align 4, !tbaa !8
%17 = icmp ne i32 %15, 0
br i1 %17, label %18, label %19
18: ; preds = %14
call void @_Z5solvev()
br label %14, !llvm.loop !11
19: ; preds = %14
call void @exit(i32 noundef 0) #7
unreachable
}
declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3
; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #4 align 2
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5
attributes #0 = { mustprogress 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 = { 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 #6 = { nounwind }
attributes #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5solvev() #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
store i32 0, ptr %0, align 4
%2 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
%3 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
%4 = getelementptr i8, ptr %3, i64 -24
%5 = load i64, ptr %4, align 8
%6 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %5
%7 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %6, ptr noundef null)
%8 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
%9 = getelementptr i8, ptr %8, i64 -24
%10 = load i64, ptr %9, align 8
%11 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %10
%12 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %11, ptr noundef null)
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
store i32 1, ptr %1, align 4, !tbaa !8
br label %B1
B1:
%13 = load i32, ptr %1, align 4, !tbaa !8
%14 = add nsw i32 %13, -1
store i32 %14, ptr %1, align 4, !tbaa !8
%15 = icmp ne i32 %13, 0
br i1 %15, label %B2, label %B3
B2:
call void @_Z5solvev()
br label %B1, !llvm.loop !11
B3:
call void @exit(i32 noundef 0) #7
unreachable
}
declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3
; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #4 align 2
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5
attributes #0 = { mustprogress 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 = { 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 #6 = { nounwind }
attributes #7 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5solvev() local_unnamed_addr #0
; Function Attrs: mustprogress norecurse noreturn uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
%1 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
%2 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
%3 = getelementptr i8, ptr %2, i64 -24
%4 = load i64, ptr %3, align 8
%5 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %4
%6 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %5, ptr noundef null)
%7 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
%8 = getelementptr i8, ptr %7, i64 -24
%9 = load i64, ptr %8, align 8
%10 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %9
%11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
tail call void @_Z5solvev()
tail call void @exit(i32 noundef 0) #5
unreachable
}
declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #3 align 2
; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4
attributes #0 = { mustprogress 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 norecurse noreturn 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 #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 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 #4 = { 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 #5 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
| GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass | 8fc1936281faa6be | shreyamalogi/CP-practice | codeforces | A_AMUSING JOKE | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %8
8: ; preds = %53, %0
%9 = load i32, ptr %2, align 4, !tbaa !5
%10 = add nsw i32 %9, -1
store i32 %10, ptr %2, align 4, !tbaa !5
%11 = icmp ne i32 %9, 0
br i1 %11, label %12, label %64
12: ; preds = %8
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %4)
%15 = load i32, ptr %3, align 4, !tbaa !5
%16 = load i32, ptr %4, align 4, !tbaa !5
%17 = sub nsw i32 %15, %16
%18 = load i32, ptr %4, align 4, !tbaa !5
%19 = sdiv i32 %18, 2
%20 = add nsw i32 %17, %19
%21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %20)
%22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %21, i8 noundef signext 10)
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
%23 = load i32, ptr %4, align 4, !tbaa !5
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4, !tbaa !5
br label %25
25: ; preds = %34, %12
%26 = load i32, ptr %5, align 4, !tbaa !5
%27 = load i32, ptr %3, align 4, !tbaa !5
%28 = icmp sle i32 %26, %27
br i1 %28, label %30, label %29
29: ; preds = %25
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
br label %37
30: ; preds = %25
%31 = load i32, ptr %5, align 4, !tbaa !5
%32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %31)
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef @.str)
br label %34
34: ; preds = %30
%35 = load i32, ptr %5, align 4, !tbaa !5
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4, !tbaa !5
br label %25, !llvm.loop !9
37: ; preds = %29
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
%38 = load i32, ptr %4, align 4, !tbaa !5
%39 = add nsw i32 %38, 1
%40 = sdiv i32 %39, 2
store i32 %40, ptr %6, align 4, !tbaa !5
br label %41
41: ; preds = %50, %37
%42 = load i32, ptr %6, align 4, !tbaa !5
%43 = load i32, ptr %4, align 4, !tbaa !5
%44 = icmp slt i32 %42, %43
br i1 %44, label %46, label %45
45: ; preds = %41
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
br label %53
46: ; preds = %41
%47 = load i32, ptr %6, align 4, !tbaa !5
%48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %47)
%49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @.str)
br label %50
50: ; preds = %46
%51 = load i32, ptr %6, align 4, !tbaa !5
%52 = add nsw i32 %51, 1
store i32 %52, ptr %6, align 4, !tbaa !5
br label %41, !llvm.loop !11
53: ; preds = %45
%54 = load i32, ptr %3, align 4, !tbaa !5
%55 = load i32, ptr %4, align 4, !tbaa !5
%56 = sub nsw i32 %54, %55
%57 = load i32, ptr %4, align 4, !tbaa !5
%58 = sdiv i32 %57, 2
%59 = add nsw i32 %56, %58
%60 = icmp eq i32 %59, 0
%61 = zext i1 %60 to i64
%62 = select i1 %60, ptr @.str.1, ptr @.str.2
%63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %62)
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
br label %8, !llvm.loop !12
64: ; preds = %8
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %1, align 4, !tbaa !5
%9 = icmp ne i32 %7, 0
br i1 %9, label %B2, label %B13
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = sub nsw i32 %12, %13
%15 = load i32, ptr %3, align 4, !tbaa !5
%16 = sdiv i32 %15, 2
%17 = add nsw i32 %14, %16
%18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %17)
%19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %18, i8 noundef signext 10)
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
%20 = load i32, ptr %3, align 4, !tbaa !5
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4, !tbaa !5
br label %B3
B3:
%22 = load i32, ptr %4, align 4, !tbaa !5
%23 = load i32, ptr %2, align 4, !tbaa !5
%24 = icmp sle i32 %22, %23
br i1 %24, label %B5, label %B4
B4:
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
br label %B7
B5:
%25 = load i32, ptr %4, align 4, !tbaa !5
%26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %25)
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef @.str)
br label %B6
B6:
%28 = load i32, ptr %4, align 4, !tbaa !5
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4, !tbaa !5
br label %B3, !llvm.loop !9
B7:
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
%30 = load i32, ptr %3, align 4, !tbaa !5
%31 = add nsw i32 %30, 1
%32 = sdiv i32 %31, 2
store i32 %32, ptr %5, align 4, !tbaa !5
br label %B8
B8:
%33 = load i32, ptr %5, align 4, !tbaa !5
%34 = load i32, ptr %3, align 4, !tbaa !5
%35 = icmp slt i32 %33, %34
br i1 %35, label %B10, label %B9
B9:
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
br label %B12
B10:
%36 = load i32, ptr %5, align 4, !tbaa !5
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %36)
%38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @.str)
br label %B11
B11:
%39 = load i32, ptr %5, align 4, !tbaa !5
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4, !tbaa !5
br label %B8, !llvm.loop !11
B12:
%41 = load i32, ptr %2, align 4, !tbaa !5
%42 = load i32, ptr %3, align 4, !tbaa !5
%43 = sub nsw i32 %41, %42
%44 = load i32, ptr %3, align 4, !tbaa !5
%45 = sdiv i32 %44, 2
%46 = add nsw i32 %43, %45
%47 = icmp eq i32 %46, 0
%48 = zext i1 %47 to i64
%49 = select i1 %47, ptr @.str.1, ptr @.str.2
%50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %49)
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
br label %B1, !llvm.loop !12
B13:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = add nsw i32 %5, -1
store i32 %6, ptr %1, align 4, !tbaa !5
%.not16 = icmp eq i32 %5, 0
br i1 %.not16, label %._crit_edge19, label %.lr.ph18
.lr.ph18: ; preds = %0, %._crit_edge15
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
%9 = load i32, ptr %2, align 4, !tbaa !5
%10 = load i32, ptr %3, align 4, !tbaa !5
%11 = sub i32 %9, %10
%12 = sdiv i32 %10, 2
%13 = add nsw i32 %11, %12
%14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %13)
%15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %14, i8 noundef signext 10)
%16 = load i32, ptr %3, align 4, !tbaa !5
%17 = load i32, ptr %2, align 4, !tbaa !5
%.not8.not10 = icmp slt i32 %16, %17
br i1 %.not8.not10, label %.lr.ph, label %._crit_edge
._crit_edge.loopexit: ; preds = %.lr.ph
%.pre = load i32, ptr %3, align 4, !tbaa !5
br label %._crit_edge
._crit_edge: ; preds = %._crit_edge.loopexit, %.lr.ph18
%18 = phi i32 [ %25, %._crit_edge.loopexit ], [ %17, %.lr.ph18 ]
%19 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %16, %.lr.ph18 ]
%20 = add nsw i32 %19, 1
%21 = sdiv i32 %20, 2
%22 = icmp slt i32 %21, %19
br i1 %22, label %.lr.ph14, label %._crit_edge15
.lr.ph: ; preds = %.lr.ph18, %.lr.ph
%.06.in11 = phi i32 [ %.06, %.lr.ph ], [ %16, %.lr.ph18 ]
%.06 = add nsw i32 %.06.in11, 1
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.06)
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @.str)
%25 = load i32, ptr %2, align 4, !tbaa !5
%.not8.not = icmp slt i32 %.06, %25
br i1 %.not8.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !9
._crit_edge15.loopexit: ; preds = %.lr.ph14
%.pre21 = load i32, ptr %2, align 4, !tbaa !5
br label %._crit_edge15
._crit_edge15: ; preds = %._crit_edge15.loopexit, %._crit_edge
%26 = phi i32 [ %18, %._crit_edge ], [ %.pre21, %._crit_edge15.loopexit ]
%.lcssa = phi i32 [ %19, %._crit_edge ], [ %36, %._crit_edge15.loopexit ]
%27 = sub nsw i32 %26, %.lcssa
%.neg = sdiv i32 %.lcssa, -2
%28 = icmp eq i32 %27, %.neg
%29 = select i1 %28, ptr @.str.1, ptr @.str.2
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %29)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
%31 = load i32, ptr %1, align 4, !tbaa !5
%32 = add nsw i32 %31, -1
store i32 %32, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %31, 0
br i1 %.not, label %._crit_edge19, label %.lr.ph18, !llvm.loop !11
.lr.ph14: ; preds = %._crit_edge, %.lr.ph14
%.012 = phi i32 [ %35, %.lr.ph14 ], [ %21, %._crit_edge ]
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.012)
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str)
%35 = add nsw i32 %.012, 1
%36 = load i32, ptr %3, align 4, !tbaa !5
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph14, label %._crit_edge15.loopexit, !llvm.loop !12
._crit_edge19: ; preds = %._crit_edge15, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #3
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) 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) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 6a694b5ea651f2b9 | shreyamalogi/CP-practice | codeforces | A_ANTI KNAPSACK | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::vector", align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %13
13: ; preds = %92, %0
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4, !tbaa !5
%16 = icmp ne i32 %14, 0
br i1 %16, label %17, label %98
17: ; preds = %13
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
%18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
store i32 0, ptr %6, align 4, !tbaa !5
br label %19
19: ; preds = %41, %17
%20 = load i32, ptr %6, align 4, !tbaa !5
%21 = load i32, ptr %3, align 4, !tbaa !5
%22 = icmp slt i32 %20, %21
br i1 %22, label %24, label %23
23: ; preds = %19
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %44
24: ; preds = %19
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
%25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %26 unwind label %33
26: ; preds = %24
%27 = load i32, ptr %7, align 4, !tbaa !5
%28 = srem i32 %27, 2
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJRiEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %32 unwind label %33
32: ; preds = %30
br label %40
33: ; preds = %37, %30, %24
%34 = landingpad { ptr, i32 }
cleanup
%35 = extractvalue { ptr, i32 } %34, 0
store ptr %35, ptr %8, align 8
%36 = extractvalue { ptr, i32 } %34, 1
store i32 %36, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %97
37: ; preds = %26
%38 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJRiEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
to label %39 unwind label %33
39: ; preds = %37
br label %40
40: ; preds = %39, %32
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4, !tbaa !5
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4, !tbaa !5
br label %19, !llvm.loop !9
44: ; preds = %23
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !5
br label %45
45: ; preds = %60, %44
%46 = load i32, ptr %10, align 4, !tbaa !5
%47 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
%48 = trunc i64 %47 to i32
%49 = icmp slt i32 %46, %48
br i1 %49, label %51, label %50
50: ; preds = %45
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %67
51: ; preds = %45
%52 = load i32, ptr %10, align 4, !tbaa !5
%53 = sext i32 %52 to i64
%54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %53) #6
%55 = load i32, ptr %54, align 4, !tbaa !5
%56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %55)
to label %57 unwind label %63
57: ; preds = %51
%58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef @.str)
to label %59 unwind label %63
59: ; preds = %57
br label %60
60: ; preds = %59
%61 = load i32, ptr %10, align 4, !tbaa !5
%62 = add nsw i32 %61, 1
store i32 %62, ptr %10, align 4, !tbaa !5
br label %45, !llvm.loop !11
63: ; preds = %57, %51
%64 = landingpad { ptr, i32 }
cleanup
%65 = extractvalue { ptr, i32 } %64, 0
store ptr %65, ptr %8, align 8
%66 = extractvalue { ptr, i32 } %64, 1
store i32 %66, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %97
67: ; preds = %50
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
store i32 0, ptr %11, align 4, !tbaa !5
br label %68
68: ; preds = %83, %67
%69 = load i32, ptr %11, align 4, !tbaa !5
%70 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
%71 = trunc i64 %70 to i32
%72 = icmp slt i32 %69, %71
br i1 %72, label %74, label %73
73: ; preds = %68
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %90
74: ; preds = %68
%75 = load i32, ptr %11, align 4, !tbaa !5
%76 = sext i32 %75 to i64
%77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %76) #6
%78 = load i32, ptr %77, align 4, !tbaa !5
%79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %78)
to label %80 unwind label %86
80: ; preds = %74
%81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef @.str)
to label %82 unwind label %86
82: ; preds = %80
br label %83
83: ; preds = %82
%84 = load i32, ptr %11, align 4, !tbaa !5
%85 = add nsw i32 %84, 1
store i32 %85, ptr %11, align 4, !tbaa !5
br label %68, !llvm.loop !12
86: ; preds = %80, %74
%87 = landingpad { ptr, i32 }
cleanup
%88 = extractvalue { ptr, i32 } %87, 0
store ptr %88, ptr %8, align 8
%89 = extractvalue { ptr, i32 } %87, 1
store i32 %89, ptr %9, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %97
90: ; preds = %73
%91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
to label %92 unwind label %93
92: ; preds = %90
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
br label %13, !llvm.loop !13
93: ; preds = %90
%94 = landingpad { ptr, i32 }
cleanup
%95 = extractvalue { ptr, i32 } %94, 0
store ptr %95, ptr %8, align 8
%96 = extractvalue { ptr, i32 } %94, 1
store i32 %96, ptr %9, align 4
br label %97
97: ; preds = %93, %86, %63, %33
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %99
98: ; preds = %13
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
ret i32 0
99: ; preds = %97
%100 = load ptr, ptr %8, align 8
%101 = load i32, ptr %9, align 4
%102 = insertvalue { ptr, i32 } poison, ptr %100, 0
%103 = insertvalue { ptr, i32 } %102, i32 %101, 1
resume { ptr, i32 } %103
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJRiEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::vector", align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%12 = load i32, ptr %1, align 4, !tbaa !5
%13 = add nsw i32 %12, -1
store i32 %13, ptr %1, align 4, !tbaa !5
%14 = icmp ne i32 %12, 0
br i1 %14, label %B2, label %B34
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
store i32 0, ptr %5, align 4, !tbaa !5
br label %B3
B3:
%16 = load i32, ptr %5, align 4, !tbaa !5
%17 = load i32, ptr %2, align 4, !tbaa !5
%18 = icmp slt i32 %16, %17
br i1 %18, label %B5, label %B4
B4:
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %B14
B5:
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
%19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %B6 unwind label %B9
B6:
%20 = load i32, ptr %6, align 4, !tbaa !5
%21 = srem i32 %20, 2
%22 = icmp eq i32 %21, 0
br i1 %22, label %B7, label %B10
B7:
%23 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJRiEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %B8 unwind label %B9
B8:
br label %B12
B9:
%24 = landingpad { ptr, i32 }
cleanup
%25 = extractvalue { ptr, i32 } %24, 0
store ptr %25, ptr %7, align 8
%26 = extractvalue { ptr, i32 } %24, 1
store i32 %26, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %B33
B10:
%27 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJRiEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %B11 unwind label %B9
B11:
br label %B12
B12:
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %B13
B13:
%28 = load i32, ptr %5, align 4, !tbaa !5
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4, !tbaa !5
br label %B3, !llvm.loop !9
B14:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !5
br label %B15
B15:
%30 = load i32, ptr %9, align 4, !tbaa !5
%31 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%32 = trunc i64 %31 to i32
%33 = icmp slt i32 %30, %32
br i1 %33, label %B17, label %B16
B16:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B22
B17:
%34 = load i32, ptr %9, align 4, !tbaa !5
%35 = sext i32 %34 to i64
%36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %35) #6
%37 = load i32, ptr %36, align 4, !tbaa !5
%38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %37)
to label %B18 unwind label %B21
B18:
%39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str)
to label %B19 unwind label %B21
B19:
br label %B20
B20:
%40 = load i32, ptr %9, align 4, !tbaa !5
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4, !tbaa !5
br label %B15, !llvm.loop !11
B21:
%42 = landingpad { ptr, i32 }
cleanup
%43 = extractvalue { ptr, i32 } %42, 0
store ptr %43, ptr %7, align 8
%44 = extractvalue { ptr, i32 } %42, 1
store i32 %44, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B33
B22:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !5
br label %B23
B23:
%45 = load i32, ptr %10, align 4, !tbaa !5
%46 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
%47 = trunc i64 %46 to i32
%48 = icmp slt i32 %45, %47
br i1 %48, label %B25, label %B24
B24:
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B30
B25:
%49 = load i32, ptr %10, align 4, !tbaa !5
%50 = sext i32 %49 to i64
%51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %50) #6
%52 = load i32, ptr %51, align 4, !tbaa !5
%53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %52)
to label %B26 unwind label %B29
B26:
%54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef @.str)
to label %B27 unwind label %B29
B27:
br label %B28
B28:
%55 = load i32, ptr %10, align 4, !tbaa !5
%56 = add nsw i32 %55, 1
store i32 %56, ptr %10, align 4, !tbaa !5
br label %B23, !llvm.loop !12
B29:
%57 = landingpad { ptr, i32 }
cleanup
%58 = extractvalue { ptr, i32 } %57, 0
store ptr %58, ptr %7, align 8
%59 = extractvalue { ptr, i32 } %57, 1
store i32 %59, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B33
B30:
%60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
to label %B31 unwind label %B32
B31:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %B1, !llvm.loop !13
B32:
%61 = landingpad { ptr, i32 }
cleanup
%62 = extractvalue { ptr, i32 } %61, 0
store ptr %62, ptr %7, align 8
%63 = extractvalue { ptr, i32 } %61, 1
store i32 %63, ptr %8, align 4
br label %B33
B33:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B35
B34:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
ret i32 0
B35:
%64 = load ptr, ptr %7, align 8
%65 = load i32, ptr %8, align 4
%66 = insertvalue { ptr, i32 } poison, ptr %64, 0
%67 = insertvalue { ptr, i32 } %66, i32 %65, 1
resume { ptr, i32 } %67
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJRiEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::vector", align 8
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %1, align 4, !tbaa !5
%.not20 = icmp eq i32 %7, 0
br i1 %.not20, label %._crit_edge23, label %.lr.ph22
.lr.ph22: ; preds = %0, %53
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
%10 = load i32, ptr %2, align 4, !tbaa !5
%11 = icmp sgt i32 %10, 0
br i1 %11, label %.lr.ph, label %.preheader14
.preheader14: ; preds = %23, %.lr.ph22
%12 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%13 = trunc i64 %12 to i32
%14 = icmp sgt i32 %13, 0
br i1 %14, label %.lr.ph17, label %.preheader
.lr.ph: ; preds = %.lr.ph22, %23
%.01215 = phi i32 [ %24, %23 ], [ 0, %.lr.ph22 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
%15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %.invoke unwind label %21
.invoke: ; preds = %.lr.ph
%16 = load i32, ptr %5, align 4, !tbaa !5
%17 = and i32 %16, 1
%18 = icmp eq i32 %17, 0
%19 = select i1 %18, ptr %3, ptr %4
%20 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJRiEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(4) %5)
to label %23 unwind label %21
21: ; preds = %.invoke, %.lr.ph
%22 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
br label %58
23: ; preds = %.invoke
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
%24 = add nuw nsw i32 %.01215, 1
%25 = load i32, ptr %2, align 4, !tbaa !5
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %.preheader14, !llvm.loop !9
.preheader: ; preds = %35, %.preheader14
%27 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
%28 = trunc i64 %27 to i32
%29 = icmp sgt i32 %28, 0
br i1 %29, label %.lr.ph19, label %._crit_edge
.lr.ph17: ; preds = %.preheader14, %35
%indvars.iv = phi i64 [ %indvars.iv.next, %35 ], [ 0, %.preheader14 ]
%30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
%31 = load i32, ptr %30, align 4, !tbaa !5
%32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %31)
to label %33 unwind label %39
33: ; preds = %.lr.ph17
%34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str)
to label %35 unwind label %39
35: ; preds = %33
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%36 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%sext = shl i64 %36, 32
%37 = ashr exact i64 %sext, 32
%38 = icmp slt i64 %indvars.iv.next, %37
br i1 %38, label %.lr.ph17, label %.preheader, !llvm.loop !11
39: ; preds = %33, %.lr.ph17
%40 = landingpad { ptr, i32 }
cleanup
br label %58
._crit_edge: ; preds = %47, %.preheader
%41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
to label %53 unwind label %56
.lr.ph19: ; preds = %.preheader, %47
%indvars.iv25 = phi i64 [ %indvars.iv.next26, %47 ], [ 0, %.preheader ]
%42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv25) #6
%43 = load i32, ptr %42, align 4, !tbaa !5
%44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %43)
to label %45 unwind label %51
45: ; preds = %.lr.ph19
%46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str)
to label %47 unwind label %51
47: ; preds = %45
%indvars.iv.next26 = add nuw nsw i64 %indvars.iv25, 1
%48 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
%sext28 = shl i64 %48, 32
%49 = ashr exact i64 %sext28, 32
%50 = icmp slt i64 %indvars.iv.next26, %49
br i1 %50, label %.lr.ph19, label %._crit_edge, !llvm.loop !12
51: ; preds = %45, %.lr.ph19
%52 = landingpad { ptr, i32 }
cleanup
br label %58
53: ; preds = %._crit_edge
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
%54 = load i32, ptr %1, align 4, !tbaa !5
%55 = add nsw i32 %54, -1
store i32 %55, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %54, 0
br i1 %.not, label %._crit_edge23, label %.lr.ph22, !llvm.loop !13
56: ; preds = %._crit_edge
%57 = landingpad { ptr, i32 }
cleanup
br label %58
58: ; preds = %56, %51, %39, %21
%.pn = phi { ptr, i32 } [ %22, %21 ], [ %40, %39 ], [ %52, %51 ], [ %57, %56 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %.pn
._crit_edge23: ; preds = %53, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJRiEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
| GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | bc63d759f4a52ec8 | shreyamalogi/CP-practice | codeforces | A_AVERAGE HEIGHT | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<float, float, std::_Identity<float>, std::less<float>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<float, float, std::_Identity<float>, std::less<float>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %"class.std::set", align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca %"struct.std::pair", align 8
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %16
16: ; preds = %103, %0
%17 = load i32, ptr %2, align 4, !tbaa !5
%18 = add nsw i32 %17, -1
store i32 %18, ptr %2, align 4, !tbaa !5
%19 = icmp ne i32 %17, 0
br i1 %19, label %20, label %106
20: ; preds = %16
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
%21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
%22 = load i32, ptr %3, align 4, !tbaa !5
%23 = sext i32 %22 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %23, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %24 unwind label %30
24: ; preds = %20
call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
store i32 0, ptr %8, align 4, !tbaa !5
br label %25
25: ; preds = %40, %24
%26 = load i32, ptr %8, align 4, !tbaa !5
%27 = load i32, ptr %3, align 4, !tbaa !5
%28 = icmp slt i32 %26, %27
br i1 %28, label %34, label %29
29: ; preds = %25
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %47
30: ; preds = %20
%31 = landingpad { ptr, i32 }
cleanup
%32 = extractvalue { ptr, i32 } %31, 0
store ptr %32, ptr %6, align 8
%33 = extractvalue { ptr, i32 } %31, 1
store i32 %33, ptr %7, align 4
call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
br label %105
34: ; preds = %25
%35 = load i32, ptr %8, align 4, !tbaa !5
%36 = sext i32 %35 to i64
%37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %36) #6
%38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERf(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %37)
to label %39 unwind label %43
39: ; preds = %34
br label %40
40: ; preds = %39
%41 = load i32, ptr %8, align 4, !tbaa !5
%42 = add nsw i32 %41, 1
store i32 %42, ptr %8, align 4, !tbaa !5
br label %25, !llvm.loop !9
43: ; preds = %34
%44 = landingpad { ptr, i32 }
cleanup
%45 = extractvalue { ptr, i32 } %44, 0
store ptr %45, ptr %6, align 8
%46 = extractvalue { ptr, i32 } %44, 1
store i32 %46, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %104
47: ; preds = %29
call void @llvm.lifetime.start.p0(i64 48, ptr %9) #6
call void @_ZNSt3setIfSt4lessIfESaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !5
br label %48
48: ; preds = %95, %47
%49 = load i32, ptr %10, align 4, !tbaa !5
%50 = load i32, ptr %3, align 4, !tbaa !5
%51 = icmp slt i32 %49, %50
br i1 %51, label %53, label %52
52: ; preds = %48
store i32 7, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %103
53: ; preds = %48
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
store i32 0, ptr %12, align 4, !tbaa !5
br label %54
54: ; preds = %86, %53
%55 = load i32, ptr %12, align 4, !tbaa !5
%56 = load i32, ptr %3, align 4, !tbaa !5
%57 = icmp slt i32 %55, %56
br i1 %57, label %59, label %58
58: ; preds = %54
store i32 10, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %89
59: ; preds = %54
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
%60 = load i32, ptr %12, align 4, !tbaa !5
%61 = sext i32 %60 to i64
%62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %61) #6
%63 = load float, ptr %62, align 4, !tbaa !11
%64 = load i32, ptr %10, align 4, !tbaa !5
%65 = sext i32 %64 to i64
%66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %65) #6
%67 = load float, ptr %66, align 4, !tbaa !11
%68 = fsub float %63, %67
%69 = fpext float %68 to double
%70 = fmul double 5.000000e-01, %69
%71 = fptrunc double %70 to float
store float %71, ptr %13, align 4, !tbaa !11
%72 = load float, ptr %13, align 4, !tbaa !11
%73 = fcmp ogt float %72, 0.000000e+00
br i1 %73, label %74, label %85
74: ; preds = %59
%75 = invoke { ptr, i8 } @_ZNSt3setIfSt4lessIfESaIfEE6insertERKf(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %13)
to label %76 unwind label %81
76: ; preds = %74
%77 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
%78 = extractvalue { ptr, i8 } %75, 0
store ptr %78, ptr %77, align 8
%79 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
%80 = extractvalue { ptr, i8 } %75, 1
store i8 %80, ptr %79, align 8
br label %85
81: ; preds = %74
%82 = landingpad { ptr, i32 }
cleanup
%83 = extractvalue { ptr, i32 } %82, 0
store ptr %83, ptr %6, align 8
%84 = extractvalue { ptr, i32 } %82, 1
store i32 %84, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %102
85: ; preds = %76, %59
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
br label %86
86: ; preds = %85
%87 = load i32, ptr %12, align 4, !tbaa !5
%88 = add nsw i32 %87, 1
store i32 %88, ptr %12, align 4, !tbaa !5
br label %54, !llvm.loop !13
89: ; preds = %58
%90 = call noundef i64 @_ZNKSt3setIfSt4lessIfESaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
%91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %90)
to label %92 unwind label %98
92: ; preds = %89
%93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %94 unwind label %98
94: ; preds = %92
br label %95
95: ; preds = %94
%96 = load i32, ptr %10, align 4, !tbaa !5
%97 = add nsw i32 %96, 1
store i32 %97, ptr %10, align 4, !tbaa !5
br label %48, !llvm.loop !14
98: ; preds = %92, %89
%99 = landingpad { ptr, i32 }
cleanup
%100 = extractvalue { ptr, i32 } %99, 0
store ptr %100, ptr %6, align 8
%101 = extractvalue { ptr, i32 } %99, 1
store i32 %101, ptr %7, align 4
br label %102
102: ; preds = %98, %81
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
call void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %9) #6
br label %104
103: ; preds = %52
call void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %9) #6
call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
br label %16, !llvm.loop !15
104: ; preds = %102, %43
call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
br label %105
105: ; preds = %104, %30
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %108
106: ; preds = %16
store i32 0, ptr %1, align 4
store i32 1, ptr %11, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
%107 = load i32, ptr %1, align 4
ret i32 %107
108: ; preds = %105
%109 = load ptr, ptr %6, align 8
%110 = load i32, ptr %7, align 4
%111 = insertvalue { ptr, i32 } poison, ptr %109, 0
%112 = insertvalue { ptr, i32 } %111, i32 %110, 1
resume { ptr, i32 } %112
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERf(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIfSt4lessIfESaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIfSt4lessIfESaIfEE6insertERKf(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setIfSt4lessIfESaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<float, float, std::_Identity<float>, std::less<float>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<float, float, std::_Identity<float>, std::less<float>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %"class.std::set", align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
%13 = alloca %"struct.std::pair", align 8
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%15 = load i32, ptr %1, align 4, !tbaa !5
%16 = add nsw i32 %15, -1
store i32 %16, ptr %1, align 4, !tbaa !5
%17 = icmp ne i32 %15, 0
br i1 %17, label %B2, label %B32
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
%19 = load i32, ptr %2, align 4, !tbaa !5
%20 = sext i32 %19 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %B3 unwind label %B6
B3:
call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
store i32 0, ptr %7, align 4, !tbaa !5
br label %B4
B4:
%21 = load i32, ptr %7, align 4, !tbaa !5
%22 = load i32, ptr %2, align 4, !tbaa !5
%23 = icmp slt i32 %21, %22
br i1 %23, label %B7, label %B5
B5:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
br label %B11
B6:
%24 = landingpad { ptr, i32 }
cleanup
%25 = extractvalue { ptr, i32 } %24, 0
store ptr %25, ptr %5, align 8
%26 = extractvalue { ptr, i32 } %24, 1
store i32 %26, ptr %6, align 4
call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
br label %B31
B7:
%27 = load i32, ptr %7, align 4, !tbaa !5
%28 = sext i32 %27 to i64
%29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %28) #6
%30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERf(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %29)
to label %B8 unwind label %B10
B8:
br label %B9
B9:
%31 = load i32, ptr %7, align 4, !tbaa !5
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4, !tbaa !5
br label %B4, !llvm.loop !9
B10:
%33 = landingpad { ptr, i32 }
cleanup
%34 = extractvalue { ptr, i32 } %33, 0
store ptr %34, ptr %5, align 8
%35 = extractvalue { ptr, i32 } %33, 1
store i32 %35, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
br label %B30
B11:
call void @llvm.lifetime.start.p0(i64 48, ptr %8) #6
call void @_ZNSt3setIfSt4lessIfESaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !5
br label %B12
B12:
%36 = load i32, ptr %9, align 4, !tbaa !5
%37 = load i32, ptr %2, align 4, !tbaa !5
%38 = icmp slt i32 %36, %37
br i1 %38, label %B14, label %B13
B13:
store i32 7, ptr %10, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B29
B14:
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
store i32 0, ptr %11, align 4, !tbaa !5
br label %B15
B15:
%39 = load i32, ptr %11, align 4, !tbaa !5
%40 = load i32, ptr %2, align 4, !tbaa !5
%41 = icmp slt i32 %39, %40
br i1 %41, label %B17, label %B16
B16:
store i32 10, ptr %10, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %B23
B17:
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
%42 = load i32, ptr %11, align 4, !tbaa !5
%43 = sext i32 %42 to i64
%44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %43) #6
%45 = load float, ptr %44, align 4, !tbaa !11
%46 = load i32, ptr %9, align 4, !tbaa !5
%47 = sext i32 %46 to i64
%48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %47) #6
%49 = load float, ptr %48, align 4, !tbaa !11
%50 = fsub float %45, %49
%51 = fpext float %50 to double
%52 = fmul double 5.000000e-01, %51
%53 = fptrunc double %52 to float
store float %53, ptr %12, align 4, !tbaa !11
%54 = load float, ptr %12, align 4, !tbaa !11
%55 = fcmp ogt float %54, 0.000000e+00
br i1 %55, label %B18, label %B21
B18:
%56 = invoke { ptr, i8 } @_ZNSt3setIfSt4lessIfESaIfEE6insertERKf(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %B19 unwind label %B20
B19:
%57 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
%58 = extractvalue { ptr, i8 } %56, 0
store ptr %58, ptr %57, align 8
%59 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
%60 = extractvalue { ptr, i8 } %56, 1
store i8 %60, ptr %59, align 8
br label %B21
B20:
%61 = landingpad { ptr, i32 }
cleanup
%62 = extractvalue { ptr, i32 } %61, 0
store ptr %62, ptr %5, align 8
%63 = extractvalue { ptr, i32 } %61, 1
store i32 %63, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %B28
B21:
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %B22
B22:
%64 = load i32, ptr %11, align 4, !tbaa !5
%65 = add nsw i32 %64, 1
store i32 %65, ptr %11, align 4, !tbaa !5
br label %B15, !llvm.loop !13
B23:
%66 = call noundef i64 @_ZNKSt3setIfSt4lessIfESaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
%67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %66)
to label %B24 unwind label %B27
B24:
%68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %B25 unwind label %B27
B25:
br label %B26
B26:
%69 = load i32, ptr %9, align 4, !tbaa !5
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4, !tbaa !5
br label %B12, !llvm.loop !14
B27:
%71 = landingpad { ptr, i32 }
cleanup
%72 = extractvalue { ptr, i32 } %71, 0
store ptr %72, ptr %5, align 8
%73 = extractvalue { ptr, i32 } %71, 1
store i32 %73, ptr %6, align 4
br label %B28
B28:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
call void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %8) #6
br label %B30
B29:
call void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
call void @llvm.lifetime.end.p0(i64 48, ptr %8) #6
call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %B1, !llvm.loop !15
B30:
call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
br label %B31
B31:
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B33
B32:
store i32 0, ptr %0, align 4
store i32 1, ptr %10, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
%74 = load i32, ptr %0, align 4
ret i32 %74
B33:
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %6, align 4
%77 = insertvalue { ptr, i32 } poison, ptr %75, 0
%78 = insertvalue { ptr, i32 } %77, i32 %76, 1
resume { ptr, i32 } %78
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERf(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIfSt4lessIfESaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIfSt4lessIfESaIfEE6insertERKf(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setIfSt4lessIfESaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<float, float, std::_Identity<float>, std::less<float>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<float, float, std::_Identity<float>, std::less<float>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca %"class.std::set", align 8
%6 = alloca float, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%.not27 = icmp eq i32 %8, 0
br i1 %.not27, label %._crit_edge30, label %.lr.ph29
.lr.ph29: ; preds = %0, %._crit_edge26
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = sext i32 %11 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %13 unwind label %18
13: ; preds = %.lr.ph29
call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = icmp sgt i32 %14, 0
br i1 %15, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %22, %13
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
call void @_ZNSt3setIfSt4lessIfESaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = icmp sgt i32 %16, 0
br i1 %17, label %.preheader, label %._crit_edge26
18: ; preds = %.lr.ph29
%19 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
br label %59
.lr.ph: ; preds = %13, %22
%indvars.iv = phi i64 [ %indvars.iv.next, %22 ], [ 0, %13 ]
%20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
%21 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERf(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
to label %22 unwind label %26
22: ; preds = %.lr.ph
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%23 = load i32, ptr %2, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%25 = icmp slt i64 %indvars.iv.next, %24
br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !9
26: ; preds = %.lr.ph
%27 = landingpad { ptr, i32 }
cleanup
br label %58
.preheader: ; preds = %._crit_edge, %51
%28 = phi i32 [ %52, %51 ], [ %16, %._crit_edge ]
%indvars.iv35 = phi i64 [ %indvars.iv.next36, %51 ], [ 0, %._crit_edge ]
%29 = icmp sgt i32 %28, 0
br i1 %29, label %.lr.ph23, label %._crit_edge24
._crit_edge26: ; preds = %51, %._crit_edge
call void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
%30 = load i32, ptr %1, align 4, !tbaa !5
%31 = add nsw i32 %30, -1
store i32 %31, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %30, 0
br i1 %.not, label %._crit_edge30, label %.lr.ph29, !llvm.loop !11
._crit_edge24: ; preds = %45, %.preheader
%32 = call noundef i64 @_ZNKSt3setIfSt4lessIfESaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
%33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %32)
to label %49 unwind label %55
.lr.ph23: ; preds = %.preheader, %45
%indvars.iv32 = phi i64 [ %indvars.iv.next33, %45 ], [ 0, %.preheader ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
%34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv32) #6
%35 = load float, ptr %34, align 4, !tbaa !12
%36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv35) #6
%37 = load float, ptr %36, align 4, !tbaa !12
%38 = fsub float %35, %37
%39 = fmul float %38, 5.000000e-01
store float %39, ptr %6, align 4, !tbaa !12
%40 = fcmp ogt float %39, 0.000000e+00
br i1 %40, label %41, label %45
41: ; preds = %.lr.ph23
%42 = invoke { ptr, i8 } @_ZNSt3setIfSt4lessIfESaIfEE6insertERKf(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
to label %45 unwind label %43
43: ; preds = %41
%44 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
br label %57
45: ; preds = %41, %.lr.ph23
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
%indvars.iv.next33 = add nuw nsw i64 %indvars.iv32, 1
%46 = load i32, ptr %2, align 4, !tbaa !5
%47 = sext i32 %46 to i64
%48 = icmp slt i64 %indvars.iv.next33, %47
br i1 %48, label %.lr.ph23, label %._crit_edge24, !llvm.loop !14
49: ; preds = %._crit_edge24
%50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
to label %51 unwind label %55
51: ; preds = %49
%indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
%52 = load i32, ptr %2, align 4, !tbaa !5
%53 = sext i32 %52 to i64
%54 = icmp slt i64 %indvars.iv.next36, %53
br i1 %54, label %.preheader, label %._crit_edge26, !llvm.loop !15
55: ; preds = %49, %._crit_edge24
%56 = landingpad { ptr, i32 }
cleanup
br label %57
57: ; preds = %55, %43
%.pn = phi { ptr, i32 } [ %44, %43 ], [ %56, %55 ]
call void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
br label %58
58: ; preds = %57, %26
%.pn18 = phi { ptr, i32 } [ %27, %26 ], [ %.pn, %57 ]
call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
br label %59
59: ; preds = %58, %18
%.pn18.pn = phi { ptr, i32 } [ %.pn18, %58 ], [ %19, %18 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %.pn18.pn
._crit_edge30: ; preds = %._crit_edge26, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERf(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIfSt4lessIfESaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIfSt4lessIfESaIfEE6insertERKf(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setIfSt4lessIfESaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIfSt4lessIfESaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
| EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 296e51f7ff73a771 | shreyamalogi/CP-practice | codeforces | B_BOVINE DILEMMA | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %"class.std::vector", align 8
%6 = alloca %"class.std::allocator", align 1
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %4)
call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = sext i32 %16 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %17, ptr noundef nonnull align 1 dereferenceable(1) %6)
to label %18 unwind label %24
18: ; preds = %0
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !5
br label %19
19: ; preds = %34, %18
%20 = load i32, ptr %9, align 4, !tbaa !5
%21 = load i32, ptr %2, align 4, !tbaa !5
%22 = icmp slt i32 %20, %21
br i1 %22, label %28, label %23
23: ; preds = %19
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %41
24: ; preds = %0
%25 = landingpad { ptr, i32 }
cleanup
%26 = extractvalue { ptr, i32 } %25, 0
store ptr %26, ptr %7, align 8
%27 = extractvalue { ptr, i32 } %25, 1
store i32 %27, ptr %8, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
br label %90
28: ; preds = %19
%29 = load i32, ptr %9, align 4, !tbaa !5
%30 = sext i32 %29 to i64
%31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %30) #6
%32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %31)
to label %33 unwind label %37
33: ; preds = %28
br label %34
34: ; preds = %33
%35 = load i32, ptr %9, align 4, !tbaa !5
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4, !tbaa !5
br label %19, !llvm.loop !9
37: ; preds = %28
%38 = landingpad { ptr, i32 }
cleanup
%39 = extractvalue { ptr, i32 } %38, 0
store ptr %39, ptr %7, align 8
%40 = extractvalue { ptr, i32 } %38, 1
store i32 %40, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %89
41: ; preds = %23
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
%42 = load i32, ptr %2, align 4, !tbaa !5
%43 = sub nsw i32 %42, 1
store i32 %43, ptr %10, align 4, !tbaa !5
br label %44
44: ; preds = %59, %41
%45 = load i32, ptr %10, align 4, !tbaa !5
%46 = icmp sge i32 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %44
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %62
48: ; preds = %44
%49 = load i32, ptr %3, align 4, !tbaa !5
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %58
51: ; preds = %48
%52 = load i32, ptr %4, align 4, !tbaa !5
%53 = load i32, ptr %10, align 4, !tbaa !5
%54 = sext i32 %53 to i64
%55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %54) #6
store i32 %52, ptr %55, align 4, !tbaa !5
%56 = load i32, ptr %3, align 4, !tbaa !5
%57 = add nsw i32 %56, -1
store i32 %57, ptr %3, align 4, !tbaa !5
br label %58
58: ; preds = %51, %48
br label %59
59: ; preds = %58
%60 = load i32, ptr %10, align 4, !tbaa !5
%61 = add nsw i32 %60, -1
store i32 %61, ptr %10, align 4, !tbaa !5
br label %44, !llvm.loop !11
62: ; preds = %47
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
store i32 0, ptr %11, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
store i32 0, ptr %12, align 4, !tbaa !5
br label %63
63: ; preds = %75, %62
%64 = load i32, ptr %12, align 4, !tbaa !5
%65 = load i32, ptr %2, align 4, !tbaa !5
%66 = icmp slt i32 %64, %65
br i1 %66, label %68, label %67
67: ; preds = %63
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %78
68: ; preds = %63
%69 = load i32, ptr %12, align 4, !tbaa !5
%70 = sext i32 %69 to i64
%71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %70) #6
%72 = load i32, ptr %71, align 4, !tbaa !5
%73 = load i32, ptr %11, align 4, !tbaa !5
%74 = add nsw i32 %73, %72
store i32 %74, ptr %11, align 4, !tbaa !5
br label %75
75: ; preds = %68
%76 = load i32, ptr %12, align 4, !tbaa !5
%77 = add nsw i32 %76, 1
store i32 %77, ptr %12, align 4, !tbaa !5
br label %63, !llvm.loop !12
78: ; preds = %67
%79 = load i32, ptr %11, align 4, !tbaa !5
%80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %79)
to label %81 unwind label %85
81: ; preds = %78
%82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %80, i8 noundef signext 10)
to label %83 unwind label %85
83: ; preds = %81
store i32 0, ptr %1, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
%84 = load i32, ptr %1, align 4
ret i32 %84
85: ; preds = %81, %78
%86 = landingpad { ptr, i32 }
cleanup
%87 = extractvalue { ptr, i32 } %86, 0
store ptr %87, ptr %7, align 8
%88 = extractvalue { ptr, i32 } %86, 1
store i32 %88, ptr %8, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %89
89: ; preds = %85, %37
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
br label %90
90: ; preds = %89, %24
call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %91
91: ; preds = %90
%92 = load ptr, ptr %7, align 8
%93 = load i32, ptr %8, align 4
%94 = insertvalue { ptr, i32 } poison, ptr %92, 0
%95 = insertvalue { ptr, i32 } %94, i32 %93, 1
resume { ptr, i32 } %95
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %2)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
%15 = load i32, ptr %1, align 4, !tbaa !5
%16 = sext i32 %15 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
store i32 0, ptr %8, align 4, !tbaa !5
br label %B2
B2:
%17 = load i32, ptr %8, align 4, !tbaa !5
%18 = load i32, ptr %1, align 4, !tbaa !5
%19 = icmp slt i32 %17, %18
br i1 %19, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %B9
B4:
%20 = landingpad { ptr, i32 }
cleanup
%21 = extractvalue { ptr, i32 } %20, 0
store ptr %21, ptr %6, align 8
%22 = extractvalue { ptr, i32 } %20, 1
store i32 %22, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
br label %B26
B5:
%23 = load i32, ptr %8, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %24) #6
%26 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
to label %B6 unwind label %B8
B6:
br label %B7
B7:
%27 = load i32, ptr %8, align 4, !tbaa !5
%28 = add nsw i32 %27, 1
store i32 %28, ptr %8, align 4, !tbaa !5
br label %B2, !llvm.loop !9
B8:
%29 = landingpad { ptr, i32 }
cleanup
%30 = extractvalue { ptr, i32 } %29, 0
store ptr %30, ptr %6, align 8
%31 = extractvalue { ptr, i32 } %29, 1
store i32 %31, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %B25
B9:
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
%32 = load i32, ptr %1, align 4, !tbaa !5
%33 = sub nsw i32 %32, 1
store i32 %33, ptr %9, align 4, !tbaa !5
br label %B10
B10:
%34 = load i32, ptr %9, align 4, !tbaa !5
%35 = icmp sge i32 %34, 0
br i1 %35, label %B12, label %B11
B11:
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %B16
B12:
%36 = load i32, ptr %2, align 4, !tbaa !5
%37 = icmp sgt i32 %36, 0
br i1 %37, label %B13, label %B14
B13:
%38 = load i32, ptr %3, align 4, !tbaa !5
%39 = load i32, ptr %9, align 4, !tbaa !5
%40 = sext i32 %39 to i64
%41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %40) #6
store i32 %38, ptr %41, align 4, !tbaa !5
%42 = load i32, ptr %2, align 4, !tbaa !5
%43 = add nsw i32 %42, -1
store i32 %43, ptr %2, align 4, !tbaa !5
br label %B14
B14:
br label %B15
B15:
%44 = load i32, ptr %9, align 4, !tbaa !5
%45 = add nsw i32 %44, -1
store i32 %45, ptr %9, align 4, !tbaa !5
br label %B10, !llvm.loop !11
B16:
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
store i32 0, ptr %11, align 4, !tbaa !5
br label %B17
B17:
%46 = load i32, ptr %11, align 4, !tbaa !5
%47 = load i32, ptr %1, align 4, !tbaa !5
%48 = icmp slt i32 %46, %47
br i1 %48, label %B19, label %B18
B18:
call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
br label %B21
B19:
%49 = load i32, ptr %11, align 4, !tbaa !5
%50 = sext i32 %49 to i64
%51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %50) #6
%52 = load i32, ptr %51, align 4, !tbaa !5
%53 = load i32, ptr %10, align 4, !tbaa !5
%54 = add nsw i32 %53, %52
store i32 %54, ptr %10, align 4, !tbaa !5
br label %B20
B20:
%55 = load i32, ptr %11, align 4, !tbaa !5
%56 = add nsw i32 %55, 1
store i32 %56, ptr %11, align 4, !tbaa !5
br label %B17, !llvm.loop !12
B21:
%57 = load i32, ptr %10, align 4, !tbaa !5
%58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %57)
to label %B22 unwind label %B24
B22:
%59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %58, i8 noundef signext 10)
to label %B23 unwind label %B24
B23:
store i32 0, ptr %0, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
%60 = load i32, ptr %0, align 4
ret i32 %60
B24:
%61 = landingpad { ptr, i32 }
cleanup
%62 = extractvalue { ptr, i32 } %61, 0
store ptr %62, ptr %6, align 8
%63 = extractvalue { ptr, i32 } %61, 1
store i32 %63, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
br label %B25
B25:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
br label %B26
B26:
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B27
B27:
%64 = load ptr, ptr %6, align 8
%65 = load i32, ptr %7, align 4
%66 = insertvalue { ptr, i32 } poison, ptr %64, 0
%67 = insertvalue { ptr, i32 } %66, i32 %65, 1
resume { ptr, i32 } %67
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator", align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %2)
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = sext i32 %9 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %10, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %11 unwind label %18
11: ; preds = %0
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
%12 = load i32, ptr %1, align 4, !tbaa !5
%13 = icmp sgt i32 %12, 0
br i1 %13, label %.lr.ph, label %._crit_edge
.preheader22: ; preds = %22
%14 = icmp sgt i32 %23, 0
br i1 %14, label %.lr.ph27, label %._crit_edge
.lr.ph27: ; preds = %.preheader22
%15 = load i32, ptr %2, align 4, !tbaa !5
%16 = icmp sgt i32 %15, 0
br i1 %16, label %.lr.ph27.split.preheader, label %.lr.ph30.preheader
.lr.ph27.split.preheader: ; preds = %.lr.ph27
%.01425 = add nsw i32 %23, -1
%17 = zext nneg i32 %.01425 to i64
br label %.lr.ph27.split
18: ; preds = %0
%19 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
br label %52
.lr.ph: ; preds = %11, %22
%indvars.iv = phi i64 [ %indvars.iv.next, %22 ], [ 0, %11 ]
%20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
%21 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
to label %22 unwind label %26
22: ; preds = %.lr.ph
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%23 = load i32, ptr %1, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%25 = icmp slt i64 %indvars.iv.next, %24
br i1 %25, label %.lr.ph, label %.preheader22, !llvm.loop !9
26: ; preds = %.lr.ph
%27 = landingpad { ptr, i32 }
cleanup
br label %51
.preheader: ; preds = %36
%.pre = load i32, ptr %1, align 4, !tbaa !5
%28 = icmp sgt i32 %.pre, 0
br i1 %28, label %.lr.ph30.preheader, label %._crit_edge
.lr.ph30.preheader: ; preds = %.lr.ph27, %.preheader
br label %.lr.ph30
.lr.ph27.split: ; preds = %.lr.ph27.split.preheader, %36
%29 = phi i32 [ %15, %.lr.ph27.split.preheader ], [ %37, %36 ]
%indvars.iv36 = phi i64 [ %17, %.lr.ph27.split.preheader ], [ %indvars.iv.next37, %36 ]
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %.lr.ph27.split
%32 = load i32, ptr %3, align 4, !tbaa !5
%33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv36) #6
store i32 %32, ptr %33, align 4, !tbaa !5
%34 = load i32, ptr %2, align 4, !tbaa !5
%35 = add nsw i32 %34, -1
store i32 %35, ptr %2, align 4, !tbaa !5
br label %36
36: ; preds = %.lr.ph27.split, %31
%37 = phi i32 [ %29, %.lr.ph27.split ], [ %35, %31 ]
%indvars.iv.next37 = add nsw i64 %indvars.iv36, -1
%38 = icmp sgt i64 %indvars.iv36, 0
br i1 %38, label %.lr.ph27.split, label %.preheader, !llvm.loop !11
._crit_edge: ; preds = %.lr.ph30, %11, %.preheader22, %.preheader
%.013.lcssa = phi i32 [ 0, %.preheader ], [ 0, %.preheader22 ], [ 0, %11 ], [ %42, %.lr.ph30 ]
%39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.013.lcssa)
to label %46 unwind label %49
.lr.ph30: ; preds = %.lr.ph30.preheader, %.lr.ph30
%indvars.iv39 = phi i64 [ %indvars.iv.next40, %.lr.ph30 ], [ 0, %.lr.ph30.preheader ]
%.01328 = phi i32 [ %42, %.lr.ph30 ], [ 0, %.lr.ph30.preheader ]
%40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv39) #6
%41 = load i32, ptr %40, align 4, !tbaa !5
%42 = add nsw i32 %41, %.01328
%indvars.iv.next40 = add nuw nsw i64 %indvars.iv39, 1
%43 = load i32, ptr %1, align 4, !tbaa !5
%44 = sext i32 %43 to i64
%45 = icmp slt i64 %indvars.iv.next40, %44
br i1 %45, label %.lr.ph30, label %._crit_edge, !llvm.loop !13
46: ; preds = %._crit_edge
%47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %39, i8 noundef signext 10)
to label %48 unwind label %49
48: ; preds = %46
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
49: ; preds = %46, %._crit_edge
%50 = landingpad { ptr, i32 }
cleanup
br label %51
51: ; preds = %49, %26
%.pn = phi { ptr, i32 } [ %27, %26 ], [ %50, %49 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
br label %52
52: ; preds = %51, %18
%.pn.pn = phi { ptr, i32 } [ %.pn, %51 ], [ %19, %18 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %.pn.pn
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12}
!12 = !{!"llvm.loop.unswitch.partial.disable"}
!13 = distinct !{!13, !10}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass | 2c9cb7f173266389 | shreyamalogi/CP-practice | codeforces | C_CHORES | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
store i32 2147483647, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
store i32 1, ptr %4, align 4, !tbaa !5
br label %9
9: ; preds = %41, %0
%10 = load i32, ptr %4, align 4, !tbaa !5
%11 = sitofp i32 %10 to double
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %12)
%14 = fcmp ole double %11, %13
br i1 %14, label %16, label %15
15: ; preds = %9
store i32 2, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
br label %44
16: ; preds = %9
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
store i32 1, ptr %6, align 4, !tbaa !5
br label %17
17: ; preds = %37, %16
%18 = load i32, ptr %6, align 4, !tbaa !5
%19 = load i32, ptr %2, align 4, !tbaa !5
%20 = icmp sle i32 %18, %19
br i1 %20, label %22, label %21
21: ; preds = %17
store i32 5, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %40
22: ; preds = %17
%23 = load i32, ptr %4, align 4, !tbaa !5
%24 = load i32, ptr %6, align 4, !tbaa !5
%25 = mul nsw i32 %23, %24
%26 = load i32, ptr %2, align 4, !tbaa !5
%27 = icmp eq i32 %25, %26
br i1 %27, label %28, label %36
28: ; preds = %22
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
%29 = load i32, ptr %4, align 4, !tbaa !5
%30 = mul nsw i32 2, %29
%31 = load i32, ptr %6, align 4, !tbaa !5
%32 = mul nsw i32 2, %31
%33 = add nsw i32 %30, %32
store i32 %33, ptr %7, align 4, !tbaa !5
%34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %7)
%35 = load i32, ptr %34, align 4, !tbaa !5
store i32 %35, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
br label %36
36: ; preds = %28, %22
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4, !tbaa !5
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4, !tbaa !5
br label %17, !llvm.loop !9
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %4, align 4, !tbaa !5
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4, !tbaa !5
br label %9, !llvm.loop !11
44: ; preds = %15
%45 = load i32, ptr %3, align 4, !tbaa !5
%46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %45)
%47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
store i32 0, ptr %1, align 4
store i32 1, ptr %5, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
%48 = load i32, ptr %1, align 4
ret i32 %48
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #3
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
store i32 2147483647, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
store i32 1, ptr %3, align 4, !tbaa !5
br label %B1
B1:
%8 = load i32, ptr %3, align 4, !tbaa !5
%9 = sitofp i32 %8 to double
%10 = load i32, ptr %1, align 4, !tbaa !5
%11 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %10)
%12 = fcmp ole double %9, %11
br i1 %12, label %B3, label %B2
B2:
store i32 2, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
br label %B12
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
store i32 1, ptr %5, align 4, !tbaa !5
br label %B4
B4:
%13 = load i32, ptr %5, align 4, !tbaa !5
%14 = load i32, ptr %1, align 4, !tbaa !5
%15 = icmp sle i32 %13, %14
br i1 %15, label %B6, label %B5
B5:
store i32 5, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %B10
B6:
%16 = load i32, ptr %3, align 4, !tbaa !5
%17 = load i32, ptr %5, align 4, !tbaa !5
%18 = mul nsw i32 %16, %17
%19 = load i32, ptr %1, align 4, !tbaa !5
%20 = icmp eq i32 %18, %19
br i1 %20, label %B7, label %B8
B7:
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
%21 = load i32, ptr %3, align 4, !tbaa !5
%22 = mul nsw i32 2, %21
%23 = load i32, ptr %5, align 4, !tbaa !5
%24 = mul nsw i32 2, %23
%25 = add nsw i32 %22, %24
store i32 %25, ptr %6, align 4, !tbaa !5
%26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %6)
%27 = load i32, ptr %26, align 4, !tbaa !5
store i32 %27, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %B8
B8:
br label %B9
B9:
%28 = load i32, ptr %5, align 4, !tbaa !5
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4, !tbaa !5
br label %B4, !llvm.loop !9
B10:
br label %B11
B11:
%30 = load i32, ptr %3, align 4, !tbaa !5
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4, !tbaa !5
br label %B1, !llvm.loop !11
B12:
%32 = load i32, ptr %2, align 4, !tbaa !5
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %32)
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
store i32 0, ptr %0, align 4
store i32 1, ptr %4, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
%35 = load i32, ptr %0, align 4
ret i32 %35
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #3
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
store i32 2147483647, ptr %2, align 4, !tbaa !5
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %5)
%7 = fcmp ult double %6, 1.000000e+00
br i1 %7, label %._crit_edge14, label %.preheader
.preheader: ; preds = %0, %._crit_edge
%.0913 = phi i32 [ %13, %._crit_edge ], [ 1, %0 ]
%8 = load i32, ptr %1, align 4, !tbaa !5
%.not11 = icmp slt i32 %8, 1
br i1 %.not11, label %._crit_edge, label %.lr.ph
._crit_edge14.loopexit: ; preds = %._crit_edge
%.pre15 = load i32, ptr %2, align 4, !tbaa !5
br label %._crit_edge14
._crit_edge14: ; preds = %._crit_edge14.loopexit, %0
%9 = phi i32 [ %.pre15, %._crit_edge14.loopexit ], [ 2147483647, %0 ]
%10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %9)
%11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
._crit_edge: ; preds = %25, %.preheader
%12 = phi i32 [ %8, %.preheader ], [ %26, %25 ]
%13 = add nuw nsw i32 %.0913, 1
%14 = uitofp nneg i32 %13 to double
%15 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %12)
%16 = fcmp ult double %15, %14
br i1 %16, label %._crit_edge14.loopexit, label %.preheader, !llvm.loop !9
.lr.ph: ; preds = %.preheader, %25
%17 = phi i32 [ %26, %25 ], [ %8, %.preheader ]
%.012 = phi i32 [ %27, %25 ], [ 1, %.preheader ]
%18 = mul nuw nsw i32 %.012, %.0913
%19 = icmp eq i32 %18, %17
br i1 %19, label %20, label %25
20: ; preds = %.lr.ph
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
%21 = add nuw i32 %.012, %.0913
%22 = shl i32 %21, 1
store i32 %22, ptr %3, align 4, !tbaa !5
%23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
%24 = load i32, ptr %23, align 4, !tbaa !5
store i32 %24, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
%.pre = load i32, ptr %1, align 4, !tbaa !5
br label %25
25: ; preds = %.lr.ph, %20
%26 = phi i32 [ %17, %.lr.ph ], [ %.pre, %20 ]
%27 = add nuw nsw i32 %.012, 1
%.not.not = icmp slt i32 %.012, %26
br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #3
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) 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) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 4daeddad728a889c | shreyamalogi/CP-practice | codeforces | D_DATA CENTER | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
%6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
store i32 -2147483648, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
store i32 0, ptr %4, align 4, !tbaa !5
br label %7
7: ; preds = %16, %0
%8 = load i32, ptr %4, align 4, !tbaa !5
%9 = load i32, ptr %2, align 4, !tbaa !5
%10 = icmp slt i32 %8, %9
br i1 %10, label %12, label %11
11: ; preds = %7
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
br label %19
12: ; preds = %7
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
%14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
%15 = load i32, ptr %14, align 4, !tbaa !5
store i32 %15, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
br label %16
16: ; preds = %12
%17 = load i32, ptr %4, align 4, !tbaa !5
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4, !tbaa !5
br label %7, !llvm.loop !9
19: ; preds = %11
%20 = load i32, ptr %3, align 4, !tbaa !5
%21 = icmp sle i32 %20, 25
br i1 %21, label %22, label %23
22: ; preds = %19
br label %26
23: ; preds = %19
%24 = load i32, ptr %3, align 4, !tbaa !5
%25 = sub nsw i32 %24, 25
br label %26
26: ; preds = %23, %22
%27 = phi i32 [ 0, %22 ], [ %25, %23 ]
%28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %27)
%29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %28, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
%5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
store i32 -2147483648, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
store i32 0, ptr %3, align 4, !tbaa !5
br label %B1
B1:
%6 = load i32, ptr %3, align 4, !tbaa !5
%7 = load i32, ptr %1, align 4, !tbaa !5
%8 = icmp slt i32 %6, %7
br i1 %8, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
br label %B5
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
%10 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4)
%11 = load i32, ptr %10, align 4, !tbaa !5
store i32 %11, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
br label %B4
B4:
%12 = load i32, ptr %3, align 4, !tbaa !5
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4, !tbaa !5
br label %B1, !llvm.loop !9
B5:
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = icmp sle i32 %14, 25
br i1 %15, label %B6, label %B7
B6:
br label %B8
B7:
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = sub nsw i32 %16, 25
br label %B8
B8:
%18 = phi i32 [ 0, %B6 ], [ %17, %B7 ]
%19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %18)
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %19, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
store i32 -2147483648, ptr %2, align 4, !tbaa !5
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = icmp sgt i32 %5, 0
br i1 %6, label %.lr.ph, label %._crit_edge.thread
._crit_edge: ; preds = %.lr.ph
%7 = icmp slt i32 %.fr, 26
%8 = add nsw i32 %.fr, -25
br i1 %7, label %._crit_edge.thread, label %9
._crit_edge.thread: ; preds = %0, %._crit_edge
br label %9
9: ; preds = %._crit_edge, %._crit_edge.thread
%10 = phi i32 [ 0, %._crit_edge.thread ], [ %8, %._crit_edge ]
%11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %10)
%12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %11, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
.lr.ph: ; preds = %0, %.lr.ph
%.02 = phi i32 [ %16, %.lr.ph ], [ 0, %0 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
%15 = load i32, ptr %14, align 4, !tbaa !5
%.fr = freeze i32 %15
store i32 %.fr, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
%16 = add nuw nsw i32 %.02, 1
%17 = load i32, ptr %1, align 4, !tbaa !5
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %._crit_edge, !llvm.loop !9
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) 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) #1
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | 8e0ccf20b979cd6d | shreyamalogi/CP-practice | codeforces | D_DECLINED FINALISTS | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
%5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %6
6: ; preds = %30, %0
%7 = load i32, ptr %2, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %2, align 4, !tbaa !5
%9 = icmp ne i32 %7, 0
br i1 %9, label %10, label %32
10: ; preds = %6
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %4)
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = load i32, ptr %4, align 4, !tbaa !5
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %21
16: ; preds = %10
%17 = load i32, ptr %4, align 4, !tbaa !5
%18 = load i32, ptr %3, align 4, !tbaa !5
%19 = sub nsw i32 %17, %18
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %19)
br label %30
21: ; preds = %10
%22 = load i32, ptr %3, align 4, !tbaa !5
%23 = srem i32 %22, 2
%24 = load i32, ptr %4, align 4, !tbaa !5
%25 = srem i32 %24, 2
%26 = icmp eq i32 %23, %25
%27 = zext i1 %26 to i64
%28 = select i1 %26, i32 0, i32 1
%29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %28)
br label %30
30: ; preds = %21, %16
%31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
br label %6, !llvm.loop !9
32: ; preds = %6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = add nsw i32 %5, -1
store i32 %6, ptr %1, align 4, !tbaa !5
%7 = icmp ne i32 %5, 0
br i1 %7, label %B2, label %B6
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %3)
%10 = load i32, ptr %2, align 4, !tbaa !5
%11 = load i32, ptr %3, align 4, !tbaa !5
%12 = icmp slt i32 %10, %11
br i1 %12, label %B3, label %B4
B3:
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = sub nsw i32 %13, %14
%16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %15)
br label %B5
B4:
%17 = load i32, ptr %2, align 4, !tbaa !5
%18 = srem i32 %17, 2
%19 = load i32, ptr %3, align 4, !tbaa !5
%20 = srem i32 %19, 2
%21 = icmp eq i32 %18, %20
%22 = zext i1 %21 to i64
%23 = select i1 %21, i32 0, i32 1
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %23)
br label %B5
B5:
%25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
br label %B1, !llvm.loop !9
B6:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = add nsw i32 %5, -1
store i32 %6, ptr %1, align 4, !tbaa !5
%.not3 = icmp eq i32 %5, 0
br i1 %.not3, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %19
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
%9 = load i32, ptr %2, align 4, !tbaa !5
%10 = load i32, ptr %3, align 4, !tbaa !5
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %.lr.ph
%13 = sub nsw i32 %10, %9
br label %19
14: ; preds = %.lr.ph
%15 = srem i32 %9, 2
%16 = srem i32 %10, 2
%17 = icmp ne i32 %15, %16
%18 = zext i1 %17 to i32
br label %19
19: ; preds = %14, %12
%.sink = phi i32 [ %18, %14 ], [ %13, %12 ]
%20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sink)
%21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
%22 = load i32, ptr %1, align 4, !tbaa !5
%23 = add nsw i32 %22, -1
store i32 %23, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %22, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %19, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 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 #4 = { inlinehint mustprogress 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 }
!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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass | fc22a07df51b8163 | shreyamalogi/CP-practice | codeforces | D_DISTANCE AND AXIS | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %9
9: ; preds = %40, %0
%10 = load i32, ptr %2, align 4, !tbaa !5
%11 = add nsw i32 %10, -1
store i32 %11, ptr %2, align 4, !tbaa !5
%12 = icmp ne i32 %10, 0
br i1 %12, label %13, label %42
13: ; preds = %9
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %4)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %5)
%17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %6)
%18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %7)
%19 = load i32, ptr %4, align 4, !tbaa !5
%20 = load i32, ptr %5, align 4, !tbaa !5
%21 = add nsw i32 %19, %20
%22 = sdiv i32 %21, 2
%23 = load i32, ptr %6, align 4, !tbaa !5
%24 = icmp sge i32 %22, %23
br i1 %24, label %25, label %38
25: ; preds = %13
%26 = load i32, ptr %3, align 4, !tbaa !5
%27 = load i32, ptr %4, align 4, !tbaa !5
%28 = sub nsw i32 %26, %27
%29 = load i32, ptr %3, align 4, !tbaa !5
%30 = load i32, ptr %5, align 4, !tbaa !5
%31 = sub nsw i32 %29, %30
%32 = add nsw i32 %28, %31
%33 = sdiv i32 %32, 2
%34 = load i32, ptr %7, align 4, !tbaa !5
%35 = icmp sge i32 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %25
%37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
br label %40
38: ; preds = %25, %13
%39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
br label %40
40: ; preds = %38, %36
%41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
br label %9, !llvm.loop !9
42: ; preds = %9
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%10 = icmp ne i32 %8, 0
br i1 %10, label %B2, label %B7
B2:
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %3)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %4)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %5)
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %6)
%16 = load i32, ptr %3, align 4, !tbaa !5
%17 = load i32, ptr %4, align 4, !tbaa !5
%18 = add nsw i32 %16, %17
%19 = sdiv i32 %18, 2
%20 = load i32, ptr %5, align 4, !tbaa !5
%21 = icmp sge i32 %19, %20
br i1 %21, label %B3, label %B5
B3:
%22 = load i32, ptr %2, align 4, !tbaa !5
%23 = load i32, ptr %3, align 4, !tbaa !5
%24 = sub nsw i32 %22, %23
%25 = load i32, ptr %2, align 4, !tbaa !5
%26 = load i32, ptr %4, align 4, !tbaa !5
%27 = sub nsw i32 %25, %26
%28 = add nsw i32 %24, %27
%29 = sdiv i32 %28, 2
%30 = load i32, ptr %6, align 4, !tbaa !5
%31 = icmp sge i32 %29, %30
br i1 %31, label %B4, label %B5
B4:
%32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
br label %B6
B5:
%33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
br label %B6
B6:
%34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
br label %B1, !llvm.loop !9
B7:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = add nsw i32 %8, -1
store i32 %9, ptr %1, align 4, !tbaa !5
%.not4 = icmp eq i32 %8, 0
br i1 %.not4, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %26
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %4)
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %5)
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %6)
%15 = load i32, ptr %3, align 4, !tbaa !5
%16 = load i32, ptr %4, align 4, !tbaa !5
%17 = add i32 %16, %15
%18 = sdiv i32 %17, 2
%19 = load i32, ptr %5, align 4, !tbaa !5
%.not1 = icmp slt i32 %18, %19
br i1 %.not1, label %25, label %20
20: ; preds = %.lr.ph
%21 = load i32, ptr %2, align 4, !tbaa !5
%factor = shl i32 %21, 1
%22 = sub i32 %factor, %17
%23 = sdiv i32 %22, 2
%24 = load i32, ptr %6, align 4, !tbaa !5
%.not2 = icmp slt i32 %23, %24
br i1 %.not2, label %25, label %26
25: ; preds = %20, %.lr.ph
br label %26
26: ; preds = %20, %25
%.str.1.sink = phi ptr [ @.str.1, %25 ], [ @.str, %20 ]
%27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.1.sink)
%28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
%29 = load i32, ptr %1, align 4, !tbaa !5
%30 = add nsw i32 %29, -1
store i32 %30, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %29, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
._crit_edge: ; preds = %26, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) 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) #1
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | fccd6a2a8b5cdaf1 | shreyamalogi/CP-practice | codeforces | D_DOMINO | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
store i32 0, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
store i32 2147483647, ptr %4, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
store i32 0, ptr %5, align 4, !tbaa !5
br label %9
9: ; preds = %24, %0
%10 = load i32, ptr %5, align 4, !tbaa !5
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = icmp slt i32 %10, %11
br i1 %12, label %14, label %13
13: ; preds = %9
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %27
14: ; preds = %9
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
%15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
%16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %7)
%17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
%18 = load i32, ptr %17, align 4, !tbaa !5
store i32 %18, ptr %4, align 4, !tbaa !5
%19 = load i32, ptr %4, align 4, !tbaa !5
%20 = load i32, ptr %6, align 4, !tbaa !5
%21 = mul nsw i32 %19, %20
%22 = load i32, ptr %3, align 4, !tbaa !5
%23 = add nsw i32 %22, %21
store i32 %23, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
br label %24
24: ; preds = %14
%25 = load i32, ptr %5, align 4, !tbaa !5
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4, !tbaa !5
br label %9, !llvm.loop !9
27: ; preds = %13
%28 = load i32, ptr %3, align 4, !tbaa !5
%29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %28)
%30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
store i32 0, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
store i32 2147483647, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
store i32 0, ptr %4, align 4, !tbaa !5
br label %B1
B1:
%8 = load i32, ptr %4, align 4, !tbaa !5
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = icmp slt i32 %8, %9
br i1 %10, label %B3, label %B2
B2:
call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
br label %B5
B3:
call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
%12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %6)
%13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
%14 = load i32, ptr %13, align 4, !tbaa !5
store i32 %14, ptr %3, align 4, !tbaa !5
%15 = load i32, ptr %3, align 4, !tbaa !5
%16 = load i32, ptr %5, align 4, !tbaa !5
%17 = mul nsw i32 %15, %16
%18 = load i32, ptr %2, align 4, !tbaa !5
%19 = add nsw i32 %18, %17
store i32 %19, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
br label %B4
B4:
%20 = load i32, ptr %4, align 4, !tbaa !5
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4, !tbaa !5
br label %B1, !llvm.loop !9
B5:
%22 = load i32, ptr %2, align 4, !tbaa !5
%23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %22)
%24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
store i32 2147483647, ptr %2, align 4, !tbaa !5
%6 = load i32, ptr %1, align 4, !tbaa !5
%7 = icmp sgt i32 %6, 0
br i1 %7, label %.lr.ph, label %._crit_edge
._crit_edge: ; preds = %.lr.ph, %0
%.04.lcssa = phi i32 [ 0, %0 ], [ %16, %.lr.ph ]
%8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.04.lcssa)
%9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
.lr.ph: ; preds = %0, %.lr.ph
%.06 = phi i32 [ %17, %.lr.ph ], [ 0, %0 ]
%.045 = phi i32 [ %16, %.lr.ph ], [ 0, %0 ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
%10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
%11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
%12 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4)
%13 = load i32, ptr %12, align 4, !tbaa !5
store i32 %13, ptr %2, align 4, !tbaa !5
%14 = load i32, ptr %3, align 4, !tbaa !5
%15 = mul nsw i32 %14, %13
%16 = add nsw i32 %15, %.045
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
%17 = add nuw nsw i32 %.06, 1
%18 = load i32, ptr %1, align 4, !tbaa !5
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !9
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) 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) #1
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5
attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | cbee809f5b99a4c1 | shreyamalogi/CP-practice | codeforces | D_DUFF AND MEET | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %"class.std::vector", align 8
%5 = alloca %"class.std::allocator", align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
%15 = load i32, ptr %2, align 4, !tbaa !5
%16 = sub nsw i32 %15, 1
store i32 %16, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
%17 = load i32, ptr %3, align 4, !tbaa !5
%18 = sext i32 %17 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %18, ptr noundef nonnull align 1 dereferenceable(1) %5)
to label %19 unwind label %25
19: ; preds = %0
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
store i32 0, ptr %8, align 4, !tbaa !5
br label %20
20: ; preds = %35, %19
%21 = load i32, ptr %8, align 4, !tbaa !5
%22 = load i32, ptr %3, align 4, !tbaa !5
%23 = icmp slt i32 %21, %22
br i1 %23, label %29, label %24
24: ; preds = %20
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %42
25: ; preds = %0
%26 = landingpad { ptr, i32 }
cleanup
%27 = extractvalue { ptr, i32 } %26, 0
store ptr %27, ptr %6, align 8
%28 = extractvalue { ptr, i32 } %26, 1
store i32 %28, ptr %7, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
br label %84
29: ; preds = %20
%30 = load i32, ptr %8, align 4, !tbaa !5
%31 = sext i32 %30 to i64
%32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %31) #6
%33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %32)
to label %34 unwind label %38
34: ; preds = %29
br label %35
35: ; preds = %34
%36 = load i32, ptr %8, align 4, !tbaa !5
%37 = add nsw i32 %36, 1
store i32 %37, ptr %8, align 4, !tbaa !5
br label %20, !llvm.loop !9
38: ; preds = %29
%39 = landingpad { ptr, i32 }
cleanup
%40 = extractvalue { ptr, i32 } %39, 0
store ptr %40, ptr %6, align 8
%41 = extractvalue { ptr, i32 } %39, 1
store i32 %41, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %83
42: ; preds = %24
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
store i32 0, ptr %10, align 4, !tbaa !5
%43 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
%44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
store ptr %43, ptr %44, align 8
%45 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
%46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
store ptr %45, ptr %46, align 8
%47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
%50 = load ptr, ptr %49, align 8
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %48, ptr %50)
to label %51 unwind label %57
51: ; preds = %42
call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
store i32 0, ptr %13, align 4, !tbaa !5
br label %52
52: ; preds = %73, %51
%53 = load i32, ptr %13, align 4, !tbaa !5
%54 = load i32, ptr %2, align 4, !tbaa !5
%55 = icmp sle i32 %53, %54
br i1 %55, label %61, label %56
56: ; preds = %52
call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
br label %76
57: ; preds = %79, %76, %42
%58 = landingpad { ptr, i32 }
cleanup
%59 = extractvalue { ptr, i32 } %58, 0
store ptr %59, ptr %6, align 8
%60 = extractvalue { ptr, i32 } %58, 1
store i32 %60, ptr %7, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
br label %83
61: ; preds = %52
%62 = load i32, ptr %10, align 4, !tbaa !5
%63 = sext i32 %62 to i64
%64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %63) #6
%65 = load i32, ptr %64, align 4, !tbaa !5
%66 = load i32, ptr %13, align 4, !tbaa !5
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %71
68: ; preds = %61
%69 = load i32, ptr %10, align 4, !tbaa !5
%70 = add nsw i32 %69, 1
store i32 %70, ptr %10, align 4, !tbaa !5
br label %73
71: ; preds = %61
%72 = load i32, ptr %13, align 4, !tbaa !5
store i32 %72, ptr %9, align 4, !tbaa !5
br label %73
73: ; preds = %71, %68
%74 = load i32, ptr %13, align 4, !tbaa !5
%75 = add nsw i32 %74, 1
store i32 %75, ptr %13, align 4, !tbaa !5
br label %52, !llvm.loop !11
76: ; preds = %56
%77 = load i32, ptr %9, align 4, !tbaa !5
%78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %77)
to label %79 unwind label %57
79: ; preds = %76
%80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @.str)
to label %81 unwind label %57
81: ; preds = %79
store i32 0, ptr %1, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
%82 = load i32, ptr %1, align 4
ret i32 %82
83: ; preds = %57, %38
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
br label %84
84: ; preds = %83, %25
call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %85
85: ; preds = %84
%86 = load ptr, ptr %6, align 8
%87 = load i32, ptr %7, align 4
%88 = insertvalue { ptr, i32 } poison, ptr %86, 0
%89 = insertvalue { ptr, i32 } %88, i32 %87, 1
resume { ptr, i32 } %89
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%12 = alloca i32, align 4
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%14 = load i32, ptr %1, align 4, !tbaa !5
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = sext i32 %16 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %17, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %B1 unwind label %B4
B1:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
store i32 0, ptr %7, align 4, !tbaa !5
br label %B2
B2:
%18 = load i32, ptr %7, align 4, !tbaa !5
%19 = load i32, ptr %2, align 4, !tbaa !5
%20 = icmp slt i32 %18, %19
br i1 %20, label %B5, label %B3
B3:
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
br label %B9
B4:
%21 = landingpad { ptr, i32 }
cleanup
%22 = extractvalue { ptr, i32 } %21, 0
store ptr %22, ptr %5, align 8
%23 = extractvalue { ptr, i32 } %21, 1
store i32 %23, ptr %6, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
br label %B22
B5:
%24 = load i32, ptr %7, align 4, !tbaa !5
%25 = sext i32 %24 to i64
%26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %25) #6
%27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %26)
to label %B6 unwind label %B8
B6:
br label %B7
B7:
%28 = load i32, ptr %7, align 4, !tbaa !5
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4, !tbaa !5
br label %B2, !llvm.loop !9
B8:
%30 = landingpad { ptr, i32 }
cleanup
%31 = extractvalue { ptr, i32 } %30, 0
store ptr %31, ptr %5, align 8
%32 = extractvalue { ptr, i32 } %30, 1
store i32 %32, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
br label %B21
B9:
call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
store i32 0, ptr %8, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
store i32 0, ptr %9, align 4, !tbaa !5
%33 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
store ptr %33, ptr %34, align 8
%35 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
store ptr %35, ptr %36, align 8
%37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
%38 = load ptr, ptr %37, align 8
%39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
%40 = load ptr, ptr %39, align 8
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %38, ptr %40)
to label %B10 unwind label %B13
B10:
call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
store i32 0, ptr %12, align 4, !tbaa !5
br label %B11
B11:
%41 = load i32, ptr %12, align 4, !tbaa !5
%42 = load i32, ptr %1, align 4, !tbaa !5
%43 = icmp sle i32 %41, %42
br i1 %43, label %B14, label %B12
B12:
call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
br label %B18
B13:
%44 = landingpad { ptr, i32 }
cleanup
%45 = extractvalue { ptr, i32 } %44, 0
store ptr %45, ptr %5, align 8
%46 = extractvalue { ptr, i32 } %44, 1
store i32 %46, ptr %6, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
br label %B21
B14:
%47 = load i32, ptr %9, align 4, !tbaa !5
%48 = sext i32 %47 to i64
%49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %48) #6
%50 = load i32, ptr %49, align 4, !tbaa !5
%51 = load i32, ptr %12, align 4, !tbaa !5
%52 = icmp eq i32 %50, %51
br i1 %52, label %B15, label %B16
B15:
%53 = load i32, ptr %9, align 4, !tbaa !5
%54 = add nsw i32 %53, 1
store i32 %54, ptr %9, align 4, !tbaa !5
br label %B17
B16:
%55 = load i32, ptr %12, align 4, !tbaa !5
store i32 %55, ptr %8, align 4, !tbaa !5
br label %B17
B17:
%56 = load i32, ptr %12, align 4, !tbaa !5
%57 = add nsw i32 %56, 1
store i32 %57, ptr %12, align 4, !tbaa !5
br label %B11, !llvm.loop !11
B18:
%58 = load i32, ptr %8, align 4, !tbaa !5
%59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %58)
to label %B19 unwind label %B13
B19:
%60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @.str)
to label %B20 unwind label %B13
B20:
store i32 0, ptr %0, align 4
call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
%61 = load i32, ptr %0, align 4
ret i32 %61
B21:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
br label %B22
B22:
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B23
B23:
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %6, align 4
%64 = insertvalue { ptr, i32 } poison, ptr %62, 0
%65 = insertvalue { ptr, i32 } %64, i32 %63, 1
resume { ptr, i32 } %65
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca %"class.std::vector", align 8
%3 = alloca %"class.std::allocator", align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = add i32 %5, -1
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
%7 = sext i32 %6 to i64
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %7, ptr noundef nonnull align 1 dereferenceable(1) %3)
to label %8 unwind label %13
8: ; preds = %0
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
%9 = icmp sgt i32 %5, 1
br i1 %9, label %.lr.ph.preheader, label %._crit_edge
.lr.ph.preheader: ; preds = %8
%wide.trip.count = zext nneg i32 %6 to i64
br label %.lr.ph
._crit_edge: ; preds = %17, %8
%10 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
%11 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %10, ptr %11)
to label %.preheader unwind label %21
.preheader: ; preds = %._crit_edge
%12 = load i32, ptr %1, align 4, !tbaa !5
%.not26 = icmp slt i32 %12, 0
br i1 %.not26, label %._crit_edge31, label %.lr.ph30
13: ; preds = %0
%14 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
br label %34
.lr.ph: ; preds = %.lr.ph.preheader, %17
%indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %17 ]
%15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #6
%16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %15)
to label %17 unwind label %18
17: ; preds = %.lr.ph
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
18: ; preds = %.lr.ph
%19 = landingpad { ptr, i32 }
cleanup
br label %33
._crit_edge31: ; preds = %.lr.ph30, %.preheader
%.018.lcssa = phi i32 [ 0, %.preheader ], [ %.119, %.lr.ph30 ]
%20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.018.lcssa)
to label %30 unwind label %21
21: ; preds = %30, %._crit_edge31, %._crit_edge
%22 = landingpad { ptr, i32 }
cleanup
br label %33
.lr.ph30: ; preds = %.preheader, %.lr.ph30
%.029 = phi i32 [ %28, %.lr.ph30 ], [ 0, %.preheader ]
%.01628 = phi i32 [ %.117, %.lr.ph30 ], [ 0, %.preheader ]
%.01827 = phi i32 [ %.119, %.lr.ph30 ], [ 0, %.preheader ]
%23 = zext nneg i32 %.01628 to i64
%24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %23) #6
%25 = load i32, ptr %24, align 4, !tbaa !5
%26 = icmp eq i32 %25, %.029
%.119 = select i1 %26, i32 %.01827, i32 %.029
%27 = zext i1 %26 to i32
%.117 = add nuw nsw i32 %.01628, %27
%28 = add nuw nsw i32 %.029, 1
%29 = load i32, ptr %1, align 4, !tbaa !5
%.not.not = icmp slt i32 %.029, %29
br i1 %.not.not, label %.lr.ph30, label %._crit_edge31, !llvm.loop !11
30: ; preds = %._crit_edge31
%31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @.str)
to label %32 unwind label %21
32: ; preds = %30
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
33: ; preds = %21, %18
%.pn = phi { ptr, i32 } [ %19, %18 ], [ %22, %21 ]
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
br label %34
34: ; preds = %33, %13
%.pn.pn = phi { ptr, i32 } [ %.pn, %33 ], [ %14, %13 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %.pn.pn
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 9e2d912314cc2819 | shreyamalogi/CP-practice | codeforces | F_FORGOTTEN EPISODE | MIT |
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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %"class.std::vector", align 8
%4 = alloca %"class.std::allocator", align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store i32 0, ptr %1, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
%9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
br label %10
10: ; preds = %45, %0
%11 = load i32, ptr %2, align 4, !tbaa !5
%12 = add nsw i32 %11, -1
store i32 %12, ptr %2, align 4, !tbaa !5
%13 = icmp ne i32 %11, 0
br i1 %13, label %14, label %55
14: ; preds = %10
call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 4, ptr noundef nonnull align 1 dereferenceable(1) %4)
to label %15 unwind label %46
15: ; preds = %14
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
%16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %16)
to label %18 unwind label %50
18: ; preds = %15
%19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
%20 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %19)
to label %21 unwind label %50
21: ; preds = %18
%22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
%23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %22)
to label %24 unwind label %50
24: ; preds = %21
%25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3) #6
%26 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) %25)
to label %27 unwind label %50
27: ; preds = %24
%28 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
store ptr %28, ptr %29, align 8
%30 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
%31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
store ptr %30, ptr %31, align 8
%32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
%33 = load ptr, ptr %32, align 8
%34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
%35 = load ptr, ptr %34, align 8
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %33, ptr %35)
to label %36 unwind label %50
36: ; preds = %27
%37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
%38 = load i32, ptr %37, align 4, !tbaa !5
%39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
%40 = load i32, ptr %39, align 4, !tbaa !5
%41 = mul nsw i32 %38, %40
%42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %41)
to label %43 unwind label %50
43: ; preds = %36
%44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %42, i8 noundef signext 10)
to label %45 unwind label %50
45: ; preds = %43
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
br label %10, !llvm.loop !9
46: ; preds = %14
%47 = landingpad { ptr, i32 }
cleanup
%48 = extractvalue { ptr, i32 } %47, 0
store ptr %48, ptr %5, align 8
%49 = extractvalue { ptr, i32 } %47, 1
store i32 %49, ptr %6, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
br label %54
50: ; preds = %43, %36, %27, %24, %21, %18, %15
%51 = landingpad { ptr, i32 }
cleanup
%52 = extractvalue { ptr, i32 } %51, 0
store ptr %52, ptr %5, align 8
%53 = extractvalue { ptr, i32 } %51, 1
store i32 %53, ptr %6, align 4
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
br label %54
54: ; preds = %50, %46
call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
br label %56
55: ; preds = %10
call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
ret i32 0
56: ; preds = %54
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %6, align 4
%59 = insertvalue { ptr, i32 } poison, ptr %57, 0
%60 = insertvalue { ptr, i32 } %59, i32 %58, 1
resume { ptr, i32 } %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
B0:
%0 = alloca i32, align 4
%1 = alloca i32, align 4
%2 = alloca %"class.std::vector", align 8
%3 = alloca %"class.std::allocator", align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
%7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
store i32 0, ptr %0, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
%8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
br label %B1
B1:
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = add nsw i32 %9, -1
store i32 %10, ptr %1, align 4, !tbaa !5
%11 = icmp ne i32 %9, 0
br i1 %11, label %B2, label %B14
B2:
call void @llvm.lifetime.start.p0(i64 24, ptr %2) #6
call void @llvm.lifetime.start.p0(i64 1, ptr %3) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 4, ptr noundef nonnull align 1 dereferenceable(1) %3)
to label %B3 unwind label %B11
B3:
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
%12 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
%13 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
to label %B4 unwind label %B12
B4:
%14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
%15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
to label %B5 unwind label %B12
B5:
%16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #6
%17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
to label %B6 unwind label %B12
B6:
%18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 3) #6
%19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
to label %B7 unwind label %B12
B7:
%20 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
%21 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
store ptr %20, ptr %21, align 8
%22 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
%23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
store ptr %22, ptr %23, align 8
%24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
%27 = load ptr, ptr %26, align 8
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %25, ptr %27)
to label %B8 unwind label %B12
B8:
%28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
%29 = load i32, ptr %28, align 4, !tbaa !5
%30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #6
%31 = load i32, ptr %30, align 4, !tbaa !5
%32 = mul nsw i32 %29, %31
%33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %32)
to label %B9 unwind label %B12
B9:
%34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %33, i8 noundef signext 10)
to label %B10 unwind label %B12
B10:
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
br label %B1, !llvm.loop !9
B11:
%35 = landingpad { ptr, i32 }
cleanup
%36 = extractvalue { ptr, i32 } %35, 0
store ptr %36, ptr %4, align 8
%37 = extractvalue { ptr, i32 } %35, 1
store i32 %37, ptr %5, align 4
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
br label %B13
B12:
%38 = landingpad { ptr, i32 }
cleanup
%39 = extractvalue { ptr, i32 } %38, 0
store ptr %39, ptr %4, align 8
%40 = extractvalue { ptr, i32 } %38, 1
store i32 %40, ptr %5, align 4
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
br label %B13
B13:
call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
br label %B15
B14:
call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
ret i32 0
B15:
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %5, align 4
%43 = insertvalue { ptr, i32 } poison, ptr %41, 0
%44 = insertvalue { ptr, i32 } %43, i32 %42, 1
resume { ptr, i32 } %44
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"} | 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"
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
%1 = alloca i32, align 4
%2 = alloca %"class.std::vector", align 8
%3 = alloca %"class.std::allocator", align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
%4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = add nsw i32 %5, -1
store i32 %6, ptr %1, align 4, !tbaa !5
%.not4 = icmp eq i32 %5, 0
br i1 %.not4, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %0, %31
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 4, ptr noundef nonnull align 1 dereferenceable(1) %3)
to label %7 unwind label %34
7: ; preds = %.lr.ph
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
%8 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
%9 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
to label %10 unwind label %36
10: ; preds = %7
%11 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
%12 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
to label %13 unwind label %36
13: ; preds = %10
%14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #6
%15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %14)
to label %16 unwind label %36
16: ; preds = %13
%17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 3) #6
%18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %17)
to label %19 unwind label %36
19: ; preds = %16
%20 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
%21 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %20, ptr %21)
to label %22 unwind label %36
22: ; preds = %19
%23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
%24 = load i32, ptr %23, align 4, !tbaa !5
%25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #6
%26 = load i32, ptr %25, align 4, !tbaa !5
%27 = mul nsw i32 %26, %24
%28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %27)
to label %29 unwind label %36
29: ; preds = %22
%30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %28, i8 noundef signext 10)
to label %31 unwind label %36
31: ; preds = %29
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
%32 = load i32, ptr %1, align 4, !tbaa !5
%33 = add nsw i32 %32, -1
store i32 %33, ptr %1, align 4, !tbaa !5
%.not = icmp eq i32 %32, 0
br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
34: ; preds = %.lr.ph
%35 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
br label %38
36: ; preds = %29, %22, %19, %16, %13, %10, %7
%37 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
br label %38
38: ; preds = %36, %34
%.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
resume { ptr, i32 } %.pn
._crit_edge: ; preds = %31, %0
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #5
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2
; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2
; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2
attributes #0 = { mustprogress norecurse 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 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 #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { 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 ([email protected]:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass | 6ac610e837e79368 | shreyamalogi/CP-practice | codeforces | F_FOUR SEGMENTS | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.