Dataset Viewer
Auto-converted to Parquet
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
End of preview. Expand in Data Studio

Dataset Card for IR-OptSet

IR-OptSet is a publicly available dataset designed to advance the use of large language models (LLMs) in compiler optimization. It leverages LLVM—one of the most widely adopted modern compilers—and focuses on its intermediate representation (IR) as the foundation of the dataset. IR-OptSet contains 170,000 IR samples curated from 1,704 GitHub repositories across diverse domains. The dataset provides a comprehensive resource for training and evaluating models in the field of IR-level compiler optimizations.


Dataset Details

Description

  • Languages: LLVM Intermediate Representation (LLVM IR)
  • Size: ~170,000 IR samples
  • Effective Optimizations: >4.3 million annotations

Source


Intended Uses

IR-OptSet is suitable for the following use cases:

  1. IR Understanding: Train models to extract structural and semantic information from LLVM IR code.
  2. IR Analysis: Evaluate model ability to understand and analyze basic properties of LLVM IR, such as dominator trees, loop structures, and memory dependencies.
  3. Optimized Code Generation: Use LLMs to generate optimized IR from unoptimized input.

Out-of-Scope Uses

  • Non-Compiler Tasks: The dataset is specifically tailored to IR-level optimization tasks and may not generalize well to unrelated domains.

Dataset Structure

Each record in IR-OptSet includes:

  • original_ir: Unoptimized LLVM IR (via clang/clang++ -Xclang -disable-llvm-passes)
  • preprocessed_ir: Cleaned version of the original IR
  • o3_ir: Optimized IR generated via opt -passes='default<O3>'
  • o3_active_passes: Effective passes during O3 compiling
  • structural_hash: Unique structurehash of the IR, via opt -passes='print<structural-hash><detailed>
  • repo_name: Source GitHub repository
  • repo_file_path: File path within the repository
  • function_name: IR function name
  • repo_license: Associated license

Each .parquet file contains ~8,500 examples.


Dataset Creation

Collection and Preprocessing

  • Selection: Repositories were manually filtered for compilation relevance and diversity across domains.
  • Preprocessing:
    • Local variable renaming
    • Basic block renaming
    • Struct name normalization
    • Whitespace and comment removal
    • Insertion of missing basic block headers where needed

All transformations preserve the semantic and structural fidelity of the IR.

  • Domains:
    • High-Performance Computing (HPC)
    • Machine Learning
    • Multimedia
    • Embedded Systems
    • System Software
    • Security
    • Reusable Libraries
    • Algorithms
Domain Description #Repos #LLVM IR #Total Eff. Opt. Avg. Eff. Opt. Steps
High-Performance Computing (HPC) Loop-intensive, memory-bound workloads; key targets for vectorization, parallelism, and memory locality optimizations. 275 17,145 399,110 23.28
Machine Learning Compute-bound code; used for parallel execution. 95 9,366 249,467 26.64
Multimedia SIMD-intensive, throughput-sensitive workloads; targets loop optimizations. 174 15,019 338,699 22.55
Embedded Systems Resource-constrained (size, energy, real-time); compilers optimize for minimal footprint and energy efficiency. 108 5,942 129,449 21.79
System Software Includes OS kernels, runtime systems, allocators; requires low-level control, safety, and instruction-level optimization. 93 6,581 136,688 20.77
Security Demands high performance and strict constant-time behavior; requires careful register use, vectorization, and avoidance of side-channel vulnerabilities during optimization. 94 9,252 184,329 19.92
Reusable Libraries Common code reused across domains; compilers apply inlining, and target-specific tuning. 106 7,664 157,162 20.51
Algorithms Classical algorithms (e.g., sorting); compiler optimizations target computation and memory. 759 99,595 2,754,505 27.66
Total - 1,704 170,564 4,349,409 Avg: 22.89

Citation

BibTeX

@misc{iropti2025,
  title={IR-Optset: An Optimization-Sensitive Dataset for Advancing LLM-Based IR Optimizer},
  author={Zi Yang, Lei Qiu, Fang Lyu, Ming Zhong, Zhilei Chai, Haojie Zhou, Huimin Cui, Xiaobing Feng},
  year={2025},
  url={https://huggingface.co/datasets/YangziResearch/IR-OptSet}
}

We also provide an open-source toolchain for building similar datasets. If you're interested in generating your own optimization corpus, feel free to use our tools. (https://github.com/yilingqinghan/IR-OptSet)

Downloads last month
18