IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/reactos/dll/directx/ddraw/Ddraw/extr_ddraw_main.c_internal_directdraw_int_alloc.c'
source_filename = "AnghaBench/reactos/dll/directx/ddraw/Ddraw/extr_ddraw_main.c_internal_directdraw_int_alloc.c"
target datalayout = "e-m:e-p270:32:32-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: noreturn nounwind uwtable
define dso_local noalias noundef nonnull ptr @internal_directdraw_int_alloc(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = tail call i32 @DxHeapMemAlloc(ptr noundef undef, i32 noundef 4) #2
unreachable
}
declare i32 @DxHeapMemAlloc(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/reactos/dll/directx/ddraw/Ddraw/extr_ddraw_main.c_internal_directdraw_int_alloc.c'
source_filename = "AnghaBench/reactos/dll/directx/ddraw/Ddraw/extr_ddraw_main.c_internal_directdraw_int_alloc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: noreturn nounwind ssp uwtable(sync)
define noalias noundef nonnull ptr @internal_directdraw_int_alloc(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = tail call i32 @DxHeapMemAlloc(ptr noundef undef, i32 noundef 4) #2
unreachable
}
declare i32 @DxHeapMemAlloc(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { noreturn nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| reactos_dll_directx_ddraw_Ddraw_extr_ddraw_main.c_internal_directdraw_int_alloc |
; ModuleID = 'AnghaBench/sumatrapdf/mupdf/source/pdf/extr_pdf-op-run.c_pdf_run_gs_begin.c'
source_filename = "AnghaBench/sumatrapdf/mupdf/source/pdf/extr_pdf-op-run.c_pdf_run_gs_begin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @pdf_run_gs_begin], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @pdf_run_gs_begin(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2, ptr nocapture readnone %3) #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/sumatrapdf/mupdf/source/pdf/extr_pdf-op-run.c_pdf_run_gs_begin.c'
source_filename = "AnghaBench/sumatrapdf/mupdf/source/pdf/extr_pdf-op-run.c_pdf_run_gs_begin.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @pdf_run_gs_begin], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @pdf_run_gs_begin(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2, ptr nocapture readnone %3) #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| sumatrapdf_mupdf_source_pdf_extr_pdf-op-run.c_pdf_run_gs_begin |
; ModuleID = 'AnghaBench/timescaledb/src/extr_with_clause_parser.c_parse_arg.c'
source_filename = "AnghaBench/timescaledb/src/extr_with_clause_parser.c_parse_arg.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_9__ = type { i32, i32, ptr }
@ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"argument \22%s.%s\22 not implemented\00", align 1
@BOOLOID = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@ERRCODE_INVALID_PARAMETER_VALUE = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [36 x i8] c"parameter \22%s.%s\22 must have a value\00", align 1
@TYPEOID = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"cache lookup failed for type of %s.%s '%u'\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"invalid value for %s.%s '%s'\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"%s.%s must be a valid %s\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @parse_arg], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @parse_arg(i64 %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = tail call i32 @OidIsValid(i64 noundef %0) #3
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, ptr @ERROR, align 4, !tbaa !5
%9 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
%10 = load i32, ptr %9, align 4, !tbaa !9
%11 = load i32, ptr %1, align 8, !tbaa !12
%12 = tail call i32 (i32, ptr, i32, i32, ...) @elog(i32 noundef %8, ptr noundef nonnull @.str, i32 noundef %10, i32 noundef %11) #3
br label %13
13: ; preds = %7, %2
%14 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 2
%15 = load ptr, ptr %14, align 8, !tbaa !13
%16 = icmp eq ptr %15, null
br i1 %16, label %19, label %17
17: ; preds = %13
%18 = tail call ptr @defGetString(ptr noundef nonnull %1) #3
br label %31
19: ; preds = %13
%20 = load i64, ptr @BOOLOID, align 8, !tbaa !14
%21 = icmp eq i64 %20, %0
br i1 %21, label %31, label %22
22: ; preds = %19
%23 = load i32, ptr @ERROR, align 4, !tbaa !5
%24 = load i32, ptr @ERRCODE_INVALID_PARAMETER_VALUE, align 4, !tbaa !5
%25 = tail call i32 @errcode(i32 noundef %24) #3
%26 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
%27 = load i32, ptr %26, align 4, !tbaa !9
%28 = load i32, ptr %1, align 8, !tbaa !12
%29 = tail call i32 (ptr, i32, i32, ...) @errmsg(ptr noundef nonnull @.str.2, i32 noundef %27, i32 noundef %28) #3
%30 = tail call i32 @ereport(i32 noundef %23, i32 noundef %29) #3
br label %31
31: ; preds = %19, %22, %17
%32 = phi ptr [ %18, %17 ], [ undef, %22 ], [ @.str.1, %19 ]
%33 = call i32 @getTypeInputInfo(i64 noundef %0, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
%34 = load i64, ptr %3, align 8, !tbaa !14
%35 = call i32 @OidIsValid(i64 noundef %34) #3
%36 = call i32 @Assert(i32 noundef %35) #3
%37 = call i32 (...) @PG_TRY() #3
%38 = load i64, ptr %3, align 8, !tbaa !14
%39 = load i64, ptr %4, align 8, !tbaa !14
%40 = call i32 @OidInputFunctionCall(i64 noundef %38, ptr noundef %32, i64 noundef %39, i32 noundef -1) #3
%41 = call i32 (...) @PG_CATCH() #3
%42 = load i32, ptr @TYPEOID, align 4, !tbaa !5
%43 = call i32 @ObjectIdGetDatum(i64 noundef %0) #3
%44 = call i32 @SearchSysCache1(i32 noundef %42, i32 noundef %43) #3
%45 = call i32 @HeapTupleIsValid(i32 noundef %44) #3
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %53
47: ; preds = %31
%48 = load i32, ptr @ERROR, align 4, !tbaa !5
%49 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
%50 = load i32, ptr %49, align 4, !tbaa !9
%51 = load i32, ptr %1, align 8, !tbaa !12
%52 = call i32 (i32, ptr, i32, i32, ...) @elog(i32 noundef %48, ptr noundef nonnull @.str.3, i32 noundef %50, i32 noundef %51, i64 noundef %0) #3
br label %53
53: ; preds = %47, %31
%54 = call i64 @GETSTRUCT(i32 noundef %44) #3
%55 = inttoptr i64 %54 to ptr
%56 = load i32, ptr @ERROR, align 4, !tbaa !5
%57 = load i32, ptr @ERRCODE_INVALID_PARAMETER_VALUE, align 4, !tbaa !5
%58 = call i32 @errcode(i32 noundef %57) #3
%59 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
%60 = load i32, ptr %59, align 4, !tbaa !9
%61 = load i32, ptr %1, align 8, !tbaa !12
%62 = call i32 (ptr, i32, i32, ...) @errmsg(ptr noundef nonnull @.str.4, i32 noundef %60, i32 noundef %61, ptr noundef %32) #3
%63 = load i32, ptr %59, align 4, !tbaa !9
%64 = load i32, ptr %1, align 8, !tbaa !12
%65 = load i32, ptr %55, align 4, !tbaa !16
%66 = call i32 @NameStr(i32 noundef %65) #3
%67 = call i32 @errhint(ptr noundef nonnull @.str.5, i32 noundef %63, i32 noundef %64, i32 noundef %66) #3
%68 = call i32 @ereport(i32 noundef %56, i32 noundef %67) #3
%69 = call i32 (...) @PG_END_TRY() #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %40
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @OidIsValid(i64 noundef) local_unnamed_addr #2
declare i32 @elog(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #2
declare ptr @defGetString(ptr noundef) local_unnamed_addr #2
declare i32 @ereport(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @errcode(i32 noundef) local_unnamed_addr #2
declare i32 @errmsg(ptr noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #2
declare i32 @getTypeInputInfo(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @Assert(i32 noundef) local_unnamed_addr #2
declare i32 @PG_TRY(...) local_unnamed_addr #2
declare i32 @OidInputFunctionCall(i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @PG_CATCH(...) local_unnamed_addr #2
declare i32 @SearchSysCache1(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ObjectIdGetDatum(i64 noundef) local_unnamed_addr #2
declare i32 @HeapTupleIsValid(i32 noundef) local_unnamed_addr #2
declare i64 @GETSTRUCT(i32 noundef) local_unnamed_addr #2
declare i32 @errhint(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @NameStr(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @PG_END_TRY(...) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 4}
!10 = !{!"TYPE_9__", !6, i64 0, !6, i64 4, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"TYPE_8__", !6, i64 0}
| ; ModuleID = 'AnghaBench/timescaledb/src/extr_with_clause_parser.c_parse_arg.c'
source_filename = "AnghaBench/timescaledb/src/extr_with_clause_parser.c_parse_arg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ERROR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"argument \22%s.%s\22 not implemented\00", align 1
@BOOLOID = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@ERRCODE_INVALID_PARAMETER_VALUE = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [36 x i8] c"parameter \22%s.%s\22 must have a value\00", align 1
@TYPEOID = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"cache lookup failed for type of %s.%s '%u'\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"invalid value for %s.%s '%s'\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"%s.%s must be a valid %s\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @parse_arg], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @parse_arg(i64 %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = tail call i32 @OidIsValid(i64 noundef %0) #3
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, ptr @ERROR, align 4, !tbaa !6
%9 = getelementptr inbounds i8, ptr %1, i64 4
%10 = load i32, ptr %9, align 4, !tbaa !10
%11 = load i32, ptr %1, align 8, !tbaa !13
%12 = tail call i32 (i32, ptr, i32, i32, ...) @elog(i32 noundef %8, ptr noundef nonnull @.str, i32 noundef %10, i32 noundef %11) #3
br label %13
13: ; preds = %7, %2
%14 = getelementptr inbounds i8, ptr %1, i64 8
%15 = load ptr, ptr %14, align 8, !tbaa !14
%16 = icmp eq ptr %15, null
br i1 %16, label %19, label %17
17: ; preds = %13
%18 = tail call ptr @defGetString(ptr noundef nonnull %1) #3
br label %31
19: ; preds = %13
%20 = load i64, ptr @BOOLOID, align 8, !tbaa !15
%21 = icmp eq i64 %20, %0
br i1 %21, label %31, label %22
22: ; preds = %19
%23 = load i32, ptr @ERROR, align 4, !tbaa !6
%24 = load i32, ptr @ERRCODE_INVALID_PARAMETER_VALUE, align 4, !tbaa !6
%25 = tail call i32 @errcode(i32 noundef %24) #3
%26 = getelementptr inbounds i8, ptr %1, i64 4
%27 = load i32, ptr %26, align 4, !tbaa !10
%28 = load i32, ptr %1, align 8, !tbaa !13
%29 = tail call i32 (ptr, i32, i32, ...) @errmsg(ptr noundef nonnull @.str.2, i32 noundef %27, i32 noundef %28) #3
%30 = tail call i32 @ereport(i32 noundef %23, i32 noundef %29) #3
br label %31
31: ; preds = %19, %22, %17
%32 = phi ptr [ %18, %17 ], [ undef, %22 ], [ @.str.1, %19 ]
%33 = call i32 @getTypeInputInfo(i64 noundef %0, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
%34 = load i64, ptr %3, align 8, !tbaa !15
%35 = call i32 @OidIsValid(i64 noundef %34) #3
%36 = call i32 @Assert(i32 noundef %35) #3
%37 = call i32 @PG_TRY() #3
%38 = load i64, ptr %3, align 8, !tbaa !15
%39 = load i64, ptr %4, align 8, !tbaa !15
%40 = call i32 @OidInputFunctionCall(i64 noundef %38, ptr noundef %32, i64 noundef %39, i32 noundef -1) #3
%41 = call i32 @PG_CATCH() #3
%42 = load i32, ptr @TYPEOID, align 4, !tbaa !6
%43 = call i32 @ObjectIdGetDatum(i64 noundef %0) #3
%44 = call i32 @SearchSysCache1(i32 noundef %42, i32 noundef %43) #3
%45 = call i32 @HeapTupleIsValid(i32 noundef %44) #3
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %53
47: ; preds = %31
%48 = load i32, ptr @ERROR, align 4, !tbaa !6
%49 = getelementptr inbounds i8, ptr %1, i64 4
%50 = load i32, ptr %49, align 4, !tbaa !10
%51 = load i32, ptr %1, align 8, !tbaa !13
%52 = call i32 (i32, ptr, i32, i32, ...) @elog(i32 noundef %48, ptr noundef nonnull @.str.3, i32 noundef %50, i32 noundef %51, i64 noundef %0) #3
br label %53
53: ; preds = %47, %31
%54 = call i64 @GETSTRUCT(i32 noundef %44) #3
%55 = inttoptr i64 %54 to ptr
%56 = load i32, ptr @ERROR, align 4, !tbaa !6
%57 = load i32, ptr @ERRCODE_INVALID_PARAMETER_VALUE, align 4, !tbaa !6
%58 = call i32 @errcode(i32 noundef %57) #3
%59 = getelementptr inbounds i8, ptr %1, i64 4
%60 = load i32, ptr %59, align 4, !tbaa !10
%61 = load i32, ptr %1, align 8, !tbaa !13
%62 = call i32 (ptr, i32, i32, ...) @errmsg(ptr noundef nonnull @.str.4, i32 noundef %60, i32 noundef %61, ptr noundef %32) #3
%63 = load i32, ptr %59, align 4, !tbaa !10
%64 = load i32, ptr %1, align 8, !tbaa !13
%65 = load i32, ptr %55, align 4, !tbaa !17
%66 = call i32 @NameStr(i32 noundef %65) #3
%67 = call i32 @errhint(ptr noundef nonnull @.str.5, i32 noundef %63, i32 noundef %64, i32 noundef %66) #3
%68 = call i32 @ereport(i32 noundef %56, i32 noundef %67) #3
%69 = call i32 @PG_END_TRY() #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %40
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @OidIsValid(i64 noundef) local_unnamed_addr #2
declare i32 @elog(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #2
declare ptr @defGetString(ptr noundef) local_unnamed_addr #2
declare i32 @ereport(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @errcode(i32 noundef) local_unnamed_addr #2
declare i32 @errmsg(ptr noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #2
declare i32 @getTypeInputInfo(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @Assert(i32 noundef) local_unnamed_addr #2
declare i32 @PG_TRY(...) local_unnamed_addr #2
declare i32 @OidInputFunctionCall(i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @PG_CATCH(...) local_unnamed_addr #2
declare i32 @SearchSysCache1(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ObjectIdGetDatum(i64 noundef) local_unnamed_addr #2
declare i32 @HeapTupleIsValid(i32 noundef) local_unnamed_addr #2
declare i64 @GETSTRUCT(i32 noundef) local_unnamed_addr #2
declare i32 @errhint(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @NameStr(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @PG_END_TRY(...) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 4}
!11 = !{!"TYPE_9__", !7, i64 0, !7, i64 4, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !7, i64 0}
!14 = !{!11, !12, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_8__", !7, i64 0}
| timescaledb_src_extr_with_clause_parser.c_parse_arg |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/panel/extr_panel-orisetech-otm8009a.c_otm8009a_unprepare.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/panel/extr_panel-orisetech-otm8009a.c_otm8009a_unprepare.c"
target datalayout = "e-m:e-p270:32:32-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.otm8009a = type { i32, i32, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @otm8009a_unprepare], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @otm8009a_unprepare(ptr noundef %0) #0 {
%2 = tail call ptr @panel_to_otm8009a(ptr noundef %0) #2
%3 = load i32, ptr %2, align 8, !tbaa !5
%4 = icmp eq i32 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.otm8009a, ptr %2, i64 0, i32 2
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = tail call i32 @gpiod_set_value_cansleep(i64 noundef %7, i32 noundef 1) #2
%11 = tail call i32 @msleep(i32 noundef 20) #2
br label %12
12: ; preds = %9, %5
%13 = getelementptr inbounds %struct.otm8009a, ptr %2, i64 0, i32 1
%14 = load i32, ptr %13, align 4, !tbaa !12
%15 = tail call i32 @regulator_disable(i32 noundef %14) #2
store i32 0, ptr %2, align 8, !tbaa !5
br label %16
16: ; preds = %1, %12
ret i32 0
}
declare ptr @panel_to_otm8009a(ptr noundef) local_unnamed_addr #1
declare i32 @gpiod_set_value_cansleep(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
declare i32 @regulator_disable(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"otm8009a", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/panel/extr_panel-orisetech-otm8009a.c_otm8009a_unprepare.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/panel/extr_panel-orisetech-otm8009a.c_otm8009a_unprepare.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @otm8009a_unprepare], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @otm8009a_unprepare(ptr noundef %0) #0 {
%2 = tail call ptr @panel_to_otm8009a(ptr noundef %0) #2
%3 = load i32, ptr %2, align 8, !tbaa !6
%4 = icmp eq i32 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %2, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = tail call i32 @gpiod_set_value_cansleep(i64 noundef %7, i32 noundef 1) #2
%11 = tail call i32 @msleep(i32 noundef 20) #2
br label %12
12: ; preds = %9, %5
%13 = getelementptr inbounds i8, ptr %2, i64 4
%14 = load i32, ptr %13, align 4, !tbaa !13
%15 = tail call i32 @regulator_disable(i32 noundef %14) #2
store i32 0, ptr %2, align 8, !tbaa !6
br label %16
16: ; preds = %1, %12
ret i32 0
}
declare ptr @panel_to_otm8009a(ptr noundef) local_unnamed_addr #1
declare i32 @gpiod_set_value_cansleep(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
declare i32 @regulator_disable(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"otm8009a", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!7, !8, i64 4}
| linux_drivers_gpu_drm_panel_extr_panel-orisetech-otm8009a.c_otm8009a_unprepare |
; ModuleID = 'AnghaBench/linux/drivers/mmc/host/extr_usdhi6rol0.c_usdhi6_stop_cmd.c'
source_filename = "AnghaBench/linux/drivers/mmc/host/extr_usdhi6rol0.c_usdhi6_stop_cmd.c"
target datalayout = "e-m:e-p270:32:32-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.usdhi6_host = type { i32, i32, ptr }
%struct.mmc_request = type { ptr, ptr }
%struct.TYPE_4__ = type { i32, i32 }
@MMC_STOP_TRANSMISSION = dso_local local_unnamed_addr global i32 0, align 4
@USDHI6_WAIT_FOR_STOP = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"unsupported stop CMD%d for CMD%d\0A\00", align 1
@EOPNOTSUPP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @usdhi6_stop_cmd], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @usdhi6_stop_cmd(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds %struct.usdhi6_host, ptr %0, i64 0, i32 2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.mmc_request, ptr %3, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load i32, ptr %5, align 4, !tbaa !13
%7 = and i32 %6, -2
%8 = icmp eq i32 %7, 128
br i1 %8, label %9, label %18
9: ; preds = %1
%10 = load ptr, ptr %3, align 8, !tbaa !15
%11 = getelementptr inbounds %struct.TYPE_4__, ptr %10, i64 0, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !16
%13 = load i32, ptr @MMC_STOP_TRANSMISSION, align 4, !tbaa !18
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %9
%16 = load i32, ptr @USDHI6_WAIT_FOR_STOP, align 4, !tbaa !18
%17 = getelementptr inbounds %struct.usdhi6_host, ptr %0, i64 0, i32 1
store i32 %16, ptr %17, align 4, !tbaa !19
br label %32
18: ; preds = %1, %9
%19 = load i32, ptr %0, align 8, !tbaa !20
%20 = tail call i32 @mmc_dev(i32 noundef %19) #2
%21 = load ptr, ptr %3, align 8, !tbaa !15
%22 = getelementptr inbounds %struct.TYPE_4__, ptr %21, i64 0, i32 1
%23 = load i32, ptr %22, align 4, !tbaa !16
%24 = load ptr, ptr %4, align 8, !tbaa !11
%25 = load i32, ptr %24, align 4, !tbaa !13
%26 = tail call i32 @dev_err(i32 noundef %20, ptr noundef nonnull @.str, i32 noundef %23, i32 noundef %25) #2
%27 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !18
%28 = sub nsw i32 0, %27
%29 = load ptr, ptr %3, align 8, !tbaa !15
store i32 %28, ptr %29, align 4, !tbaa !21
%30 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !18
%31 = sub nsw i32 0, %30
br label %32
32: ; preds = %18, %15
%33 = phi i32 [ %31, %18 ], [ 0, %15 ]
ret i32 %33
}
declare i32 @dev_err(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mmc_dev(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"usdhi6_host", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"mmc_request", !10, i64 0, !10, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_3__", !7, i64 0}
!15 = !{!12, !10, i64 0}
!16 = !{!17, !7, i64 4}
!17 = !{!"TYPE_4__", !7, i64 0, !7, i64 4}
!18 = !{!7, !7, i64 0}
!19 = !{!6, !7, i64 4}
!20 = !{!6, !7, i64 0}
!21 = !{!17, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/mmc/host/extr_usdhi6rol0.c_usdhi6_stop_cmd.c'
source_filename = "AnghaBench/linux/drivers/mmc/host/extr_usdhi6rol0.c_usdhi6_stop_cmd.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MMC_STOP_TRANSMISSION = common local_unnamed_addr global i32 0, align 4
@USDHI6_WAIT_FOR_STOP = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"unsupported stop CMD%d for CMD%d\0A\00", align 1
@EOPNOTSUPP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @usdhi6_stop_cmd], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @usdhi6_stop_cmd(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %3, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = load i32, ptr %5, align 4, !tbaa !14
%7 = and i32 %6, -2
%8 = icmp eq i32 %7, 128
br i1 %8, label %9, label %18
9: ; preds = %1
%10 = load ptr, ptr %3, align 8, !tbaa !16
%11 = getelementptr inbounds i8, ptr %10, i64 4
%12 = load i32, ptr %11, align 4, !tbaa !17
%13 = load i32, ptr @MMC_STOP_TRANSMISSION, align 4, !tbaa !19
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %9
%16 = load i32, ptr @USDHI6_WAIT_FOR_STOP, align 4, !tbaa !19
%17 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %16, ptr %17, align 4, !tbaa !20
br label %32
18: ; preds = %1, %9
%19 = load i32, ptr %0, align 8, !tbaa !21
%20 = tail call i32 @mmc_dev(i32 noundef %19) #2
%21 = load ptr, ptr %3, align 8, !tbaa !16
%22 = getelementptr inbounds i8, ptr %21, i64 4
%23 = load i32, ptr %22, align 4, !tbaa !17
%24 = load ptr, ptr %4, align 8, !tbaa !12
%25 = load i32, ptr %24, align 4, !tbaa !14
%26 = tail call i32 @dev_err(i32 noundef %20, ptr noundef nonnull @.str, i32 noundef %23, i32 noundef %25) #2
%27 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !19
%28 = sub nsw i32 0, %27
%29 = load ptr, ptr %3, align 8, !tbaa !16
store i32 %28, ptr %29, align 4, !tbaa !22
%30 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !19
%31 = sub nsw i32 0, %30
br label %32
32: ; preds = %18, %15
%33 = phi i32 [ %31, %18 ], [ 0, %15 ]
ret i32 %33
}
declare i32 @dev_err(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mmc_dev(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"usdhi6_host", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"mmc_request", !11, i64 0, !11, i64 8}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_3__", !8, i64 0}
!16 = !{!13, !11, i64 0}
!17 = !{!18, !8, i64 4}
!18 = !{!"TYPE_4__", !8, i64 0, !8, i64 4}
!19 = !{!8, !8, i64 0}
!20 = !{!7, !8, i64 4}
!21 = !{!7, !8, i64 0}
!22 = !{!18, !8, i64 0}
| linux_drivers_mmc_host_extr_usdhi6rol0.c_usdhi6_stop_cmd |
; ModuleID = 'AnghaBench/fastsocket/kernel/scripts/kconfig/lxdialog/extr_inputbox.c_print_buttons.c'
source_filename = "AnghaBench/fastsocket/kernel/scripts/kconfig/lxdialog/extr_inputbox.c_print_buttons.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c" Ok \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" Help \00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @print_buttons], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @print_buttons(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = sdiv i32 %2, 2
%6 = add nsw i32 %5, -11
%7 = add nsw i32 %1, -2
%8 = tail call i32 @gettext(ptr noundef nonnull @.str) #2
%9 = icmp eq i32 %3, 0
%10 = zext i1 %9 to i32
%11 = tail call i32 @print_button(ptr noundef %0, i32 noundef %8, i32 noundef %7, i32 noundef %6, i32 noundef %10) #2
%12 = tail call i32 @gettext(ptr noundef nonnull @.str.1) #2
%13 = add nsw i32 %5, 3
%14 = icmp eq i32 %3, 1
%15 = zext i1 %14 to i32
%16 = tail call i32 @print_button(ptr noundef %0, i32 noundef %12, i32 noundef %7, i32 noundef %13, i32 noundef %15) #2
%17 = add nsw i32 %5, -10
%18 = mul nsw i32 %3, 14
%19 = add nsw i32 %17, %18
%20 = tail call i32 @wmove(ptr noundef %0, i32 noundef %7, i32 noundef %19) #2
%21 = tail call i32 @wrefresh(ptr noundef %0) #2
ret void
}
declare i32 @print_button(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @gettext(ptr noundef) local_unnamed_addr #1
declare i32 @wmove(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wrefresh(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/scripts/kconfig/lxdialog/extr_inputbox.c_print_buttons.c'
source_filename = "AnghaBench/fastsocket/kernel/scripts/kconfig/lxdialog/extr_inputbox.c_print_buttons.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [7 x i8] c" Ok \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" Help \00", align 1
@llvm.used = appending global [1 x ptr] [ptr @print_buttons], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @print_buttons(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = sdiv i32 %2, 2
%6 = add nsw i32 %5, -11
%7 = add nsw i32 %1, -2
%8 = tail call i32 @gettext(ptr noundef nonnull @.str) #2
%9 = icmp eq i32 %3, 0
%10 = zext i1 %9 to i32
%11 = tail call i32 @print_button(ptr noundef %0, i32 noundef %8, i32 noundef %7, i32 noundef %6, i32 noundef %10) #2
%12 = tail call i32 @gettext(ptr noundef nonnull @.str.1) #2
%13 = add nsw i32 %5, 3
%14 = icmp eq i32 %3, 1
%15 = zext i1 %14 to i32
%16 = tail call i32 @print_button(ptr noundef %0, i32 noundef %12, i32 noundef %7, i32 noundef %13, i32 noundef %15) #2
%17 = add nsw i32 %5, -10
%18 = mul nsw i32 %3, 14
%19 = add nsw i32 %17, %18
%20 = tail call i32 @wmove(ptr noundef %0, i32 noundef %7, i32 noundef %19) #2
%21 = tail call i32 @wrefresh(ptr noundef %0) #2
ret void
}
declare i32 @print_button(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @gettext(ptr noundef) local_unnamed_addr #1
declare i32 @wmove(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wrefresh(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_scripts_kconfig_lxdialog_extr_inputbox.c_print_buttons |
; ModuleID = 'AnghaBench/sway/sway/desktop/extr_layer_shell.c_apply_exclusive.c'
source_filename = "AnghaBench/sway/sway/desktop/extr_layer_shell.c_apply_exclusive.c"
target datalayout = "e-m:e-p270:32:32-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.wlr_box = type { i32, i32, i32, i32 }
@ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT = dso_local local_unnamed_addr global i32 0, align 4
@ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT = dso_local local_unnamed_addr global i32 0, align 4
@ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP = dso_local local_unnamed_addr global i32 0, align 4
@ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @apply_exclusive], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define internal void @apply_exclusive(ptr noundef %0, i32 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6) #0 {
%8 = icmp slt i64 %2, 1
br i1 %8, label %84, label %9
9: ; preds = %7
%10 = load i32, ptr @ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT, align 4, !tbaa !5
%11 = load i32, ptr @ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT, align 4, !tbaa !5
%12 = or i32 %11, %10
%13 = load i32, ptr @ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP, align 4, !tbaa !5
%14 = or i32 %12, %13
%15 = getelementptr inbounds %struct.wlr_box, ptr %0, i64 0, i32 1
%16 = trunc i64 %3 to i32
%17 = load i32, ptr @ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM, align 4, !tbaa !5
%18 = or i32 %17, %12
%19 = trunc i64 %5 to i32
%20 = or i32 %17, %13
%21 = or i32 %20, %10
%22 = getelementptr inbounds %struct.wlr_box, ptr %0, i64 0, i32 2
%23 = getelementptr inbounds %struct.wlr_box, ptr %0, i64 0, i32 3
%24 = trunc i64 %6 to i32
%25 = or i32 %20, %11
%26 = trunc i64 %4 to i32
%27 = trunc i64 %2 to i32
%28 = and i32 %14, %1
%29 = icmp eq i32 %28, %14
br i1 %29, label %30, label %45
30: ; preds = %9
%31 = shl i64 %3, 32
%32 = ashr exact i64 %31, 32
%33 = add nsw i64 %32, %2
%34 = icmp sgt i64 %33, 0
br i1 %34, label %35, label %45
35: ; preds = %30
%36 = icmp eq ptr %0, null
br i1 %36, label %41, label %37
37: ; preds = %35
%38 = load i32, ptr %0, align 4, !tbaa !5
%39 = trunc i64 %33 to i32
%40 = add i32 %38, %39
store i32 %40, ptr %0, align 4, !tbaa !5
br label %41
41: ; preds = %35, %37
%42 = load i32, ptr %15, align 4, !tbaa !5
%43 = add i32 %16, %27
%44 = sub i32 %42, %43
store i32 %44, ptr %15, align 4, !tbaa !5
br label %45
45: ; preds = %9, %30, %41
%46 = and i32 %18, %1
%47 = icmp eq i32 %46, %18
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = shl i64 %5, 32
%50 = ashr exact i64 %49, 32
%51 = add nsw i64 %50, %2
%52 = icmp sgt i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %48
%54 = load i32, ptr %15, align 4, !tbaa !5
%55 = add i32 %19, %27
%56 = sub i32 %54, %55
store i32 %56, ptr %15, align 4, !tbaa !5
br label %57
57: ; preds = %53, %48, %45
%58 = and i32 %21, %1
%59 = icmp eq i32 %58, %21
br i1 %59, label %60, label %72
60: ; preds = %57
%61 = shl i64 %6, 32
%62 = ashr exact i64 %61, 32
%63 = add nsw i64 %62, %2
%64 = icmp sgt i64 %63, 0
br i1 %64, label %65, label %72
65: ; preds = %60
%66 = load i32, ptr %22, align 4, !tbaa !5
%67 = trunc i64 %63 to i32
%68 = add i32 %66, %67
store i32 %68, ptr %22, align 4, !tbaa !5
%69 = load i32, ptr %23, align 4, !tbaa !5
%70 = add i32 %24, %27
%71 = sub i32 %69, %70
store i32 %71, ptr %23, align 4, !tbaa !5
br label %72
72: ; preds = %65, %60, %57
%73 = and i32 %25, %1
%74 = icmp eq i32 %73, %25
br i1 %74, label %75, label %84
75: ; preds = %72
%76 = shl i64 %4, 32
%77 = ashr exact i64 %76, 32
%78 = add nsw i64 %77, %2
%79 = icmp sgt i64 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %75
%81 = load i32, ptr %23, align 4, !tbaa !5
%82 = add i32 %26, %27
%83 = sub i32 %81, %82
store i32 %83, ptr %23, align 4, !tbaa !5
br label %84
84: ; preds = %72, %75, %80, %7
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: 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" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/sway/sway/desktop/extr_layer_shell.c_apply_exclusive.c'
source_filename = "AnghaBench/sway/sway/desktop/extr_layer_shell.c_apply_exclusive.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT = common local_unnamed_addr global i32 0, align 4
@ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT = common local_unnamed_addr global i32 0, align 4
@ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP = common local_unnamed_addr global i32 0, align 4
@ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @apply_exclusive], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define internal void @apply_exclusive(ptr noundef %0, i32 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6) #0 {
%8 = icmp slt i64 %2, 1
br i1 %8, label %84, label %9
9: ; preds = %7
%10 = load i32, ptr @ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT, align 4, !tbaa !6
%11 = load i32, ptr @ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT, align 4, !tbaa !6
%12 = or i32 %11, %10
%13 = load i32, ptr @ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP, align 4, !tbaa !6
%14 = or i32 %12, %13
%15 = getelementptr inbounds i8, ptr %0, i64 4
%16 = trunc i64 %3 to i32
%17 = load i32, ptr @ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM, align 4, !tbaa !6
%18 = or i32 %17, %12
%19 = trunc i64 %5 to i32
%20 = or i32 %17, %13
%21 = or i32 %20, %10
%22 = getelementptr inbounds i8, ptr %0, i64 8
%23 = getelementptr inbounds i8, ptr %0, i64 12
%24 = trunc i64 %6 to i32
%25 = or i32 %20, %11
%26 = trunc i64 %4 to i32
%27 = trunc i64 %2 to i32
%28 = and i32 %14, %1
%29 = icmp eq i32 %28, %14
br i1 %29, label %30, label %45
30: ; preds = %9
%31 = shl i64 %3, 32
%32 = ashr exact i64 %31, 32
%33 = add nsw i64 %32, %2
%34 = icmp sgt i64 %33, 0
br i1 %34, label %35, label %45
35: ; preds = %30
%36 = icmp eq ptr %0, null
br i1 %36, label %41, label %37
37: ; preds = %35
%38 = load i32, ptr %0, align 4, !tbaa !6
%39 = trunc i64 %33 to i32
%40 = add i32 %38, %39
store i32 %40, ptr %0, align 4, !tbaa !6
br label %41
41: ; preds = %35, %37
%42 = load i32, ptr %15, align 4, !tbaa !6
%43 = add i32 %16, %27
%44 = sub i32 %42, %43
store i32 %44, ptr %15, align 4, !tbaa !6
br label %45
45: ; preds = %9, %30, %41
%46 = and i32 %18, %1
%47 = icmp eq i32 %46, %18
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = shl i64 %5, 32
%50 = ashr exact i64 %49, 32
%51 = add nsw i64 %50, %2
%52 = icmp sgt i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %48
%54 = load i32, ptr %15, align 4, !tbaa !6
%55 = add i32 %19, %27
%56 = sub i32 %54, %55
store i32 %56, ptr %15, align 4, !tbaa !6
br label %57
57: ; preds = %53, %48, %45
%58 = and i32 %21, %1
%59 = icmp eq i32 %58, %21
br i1 %59, label %60, label %72
60: ; preds = %57
%61 = shl i64 %6, 32
%62 = ashr exact i64 %61, 32
%63 = add nsw i64 %62, %2
%64 = icmp sgt i64 %63, 0
br i1 %64, label %65, label %72
65: ; preds = %60
%66 = load i32, ptr %22, align 4, !tbaa !6
%67 = trunc i64 %63 to i32
%68 = add i32 %66, %67
store i32 %68, ptr %22, align 4, !tbaa !6
%69 = load i32, ptr %23, align 4, !tbaa !6
%70 = add i32 %24, %27
%71 = sub i32 %69, %70
store i32 %71, ptr %23, align 4, !tbaa !6
br label %72
72: ; preds = %65, %60, %57
%73 = and i32 %25, %1
%74 = icmp eq i32 %73, %25
br i1 %74, label %75, label %84
75: ; preds = %72
%76 = shl i64 %4, 32
%77 = ashr exact i64 %76, 32
%78 = add nsw i64 %77, %2
%79 = icmp sgt i64 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %75
%81 = load i32, ptr %23, align 4, !tbaa !6
%82 = add i32 %26, %27
%83 = sub i32 %81, %82
store i32 %83, ptr %23, align 4, !tbaa !6
br label %84
84: ; preds = %72, %75, %80, %7
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| sway_sway_desktop_extr_layer_shell.c_apply_exclusive |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/kern/extr_kpi_socketfilter.c_sflt_detach.c'
source_filename = "AnghaBench/darwin-xnu/bsd/kern/extr_kpi_socketfilter.c_sflt_detach.c"
target datalayout = "e-m:e-p270:32:32-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.socket_filter_entry = type { i32, ptr, ptr }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@sock_filter_lock = dso_local local_unnamed_addr global i32 0, align 4
@SFEF_ATTACHED = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @sflt_detach(ptr noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %0, null
%4 = icmp eq i64 %1, 0
%5 = or i1 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = load i32, ptr @EINVAL, align 4, !tbaa !5
br label %34
8: ; preds = %2
%9 = load i32, ptr @sock_filter_lock, align 4, !tbaa !5
%10 = tail call i32 @lck_rw_lock_exclusive(i32 noundef %9) #2
%11 = load ptr, ptr %0, align 8, !tbaa !9
%12 = icmp eq ptr %11, null
br i1 %12, label %31, label %13
13: ; preds = %8
%14 = load i32, ptr @SFEF_ATTACHED, align 4
br label %15
15: ; preds = %13, %25
%16 = phi ptr [ %11, %13 ], [ %27, %25 ]
%17 = getelementptr inbounds %struct.socket_filter_entry, ptr %16, i64 0, i32 1
%18 = load ptr, ptr %17, align 8, !tbaa !11
%19 = load i64, ptr %18, align 8, !tbaa !13
%20 = icmp eq i64 %19, %1
br i1 %20, label %21, label %25
21: ; preds = %15
%22 = load i32, ptr %16, align 8, !tbaa !17
%23 = and i32 %14, %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %15, %21
%26 = getelementptr inbounds %struct.socket_filter_entry, ptr %16, i64 0, i32 2
%27 = load ptr, ptr %26, align 8, !tbaa !9
%28 = icmp eq ptr %27, null
br i1 %28, label %31, label %15, !llvm.loop !18
29: ; preds = %21
%30 = tail call i32 @sflt_detach_locked(ptr noundef nonnull %16) #2
br label %31
31: ; preds = %25, %8, %29
%32 = load i32, ptr @sock_filter_lock, align 4, !tbaa !5
%33 = tail call i32 @lck_rw_unlock_exclusive(i32 noundef %32) #2
br label %34
34: ; preds = %31, %6
%35 = phi i32 [ %7, %6 ], [ 0, %31 ]
ret i32 %35
}
declare i32 @lck_rw_lock_exclusive(i32 noundef) local_unnamed_addr #1
declare i32 @sflt_detach_locked(ptr noundef) local_unnamed_addr #1
declare i32 @lck_rw_unlock_exclusive(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"socket_filter_entry", !6, i64 0, !10, i64 8, !10, i64 16}
!13 = !{!14, !16, i64 0}
!14 = !{!"TYPE_6__", !15, i64 0}
!15 = !{!"TYPE_5__", !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!12, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/kern/extr_kpi_socketfilter.c_sflt_detach.c'
source_filename = "AnghaBench/darwin-xnu/bsd/kern/extr_kpi_socketfilter.c_sflt_detach.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@sock_filter_lock = common local_unnamed_addr global i32 0, align 4
@SFEF_ATTACHED = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @sflt_detach(ptr noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %0, null
%4 = icmp eq i64 %1, 0
%5 = or i1 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = load i32, ptr @EINVAL, align 4, !tbaa !6
br label %34
8: ; preds = %2
%9 = load i32, ptr @sock_filter_lock, align 4, !tbaa !6
%10 = tail call i32 @lck_rw_lock_exclusive(i32 noundef %9) #2
%11 = load ptr, ptr %0, align 8, !tbaa !10
%12 = icmp eq ptr %11, null
br i1 %12, label %31, label %13
13: ; preds = %8
%14 = load i32, ptr @SFEF_ATTACHED, align 4
br label %15
15: ; preds = %13, %25
%16 = phi ptr [ %11, %13 ], [ %27, %25 ]
%17 = getelementptr inbounds i8, ptr %16, i64 8
%18 = load ptr, ptr %17, align 8, !tbaa !12
%19 = load i64, ptr %18, align 8, !tbaa !14
%20 = icmp eq i64 %19, %1
br i1 %20, label %21, label %25
21: ; preds = %15
%22 = load i32, ptr %16, align 8, !tbaa !18
%23 = and i32 %14, %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %15, %21
%26 = getelementptr inbounds i8, ptr %16, i64 16
%27 = load ptr, ptr %26, align 8, !tbaa !10
%28 = icmp eq ptr %27, null
br i1 %28, label %31, label %15, !llvm.loop !19
29: ; preds = %21
%30 = tail call i32 @sflt_detach_locked(ptr noundef nonnull %16) #2
br label %31
31: ; preds = %25, %8, %29
%32 = load i32, ptr @sock_filter_lock, align 4, !tbaa !6
%33 = tail call i32 @lck_rw_unlock_exclusive(i32 noundef %32) #2
br label %34
34: ; preds = %31, %6
%35 = phi i32 [ %7, %6 ], [ 0, %31 ]
ret i32 %35
}
declare i32 @lck_rw_lock_exclusive(i32 noundef) local_unnamed_addr #1
declare i32 @sflt_detach_locked(ptr noundef) local_unnamed_addr #1
declare i32 @lck_rw_unlock_exclusive(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"socket_filter_entry", !7, i64 0, !11, i64 8, !11, i64 16}
!14 = !{!15, !17, i64 0}
!15 = !{!"TYPE_6__", !16, i64 0}
!16 = !{!"TYPE_5__", !17, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!13, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
| darwin-xnu_bsd_kern_extr_kpi_socketfilter.c_sflt_detach |
; ModuleID = 'AnghaBench/linux/drivers/staging/fbtft/extr_fb_ili9163.c_set_var.c'
source_filename = "AnghaBench/linux/drivers/staging/fbtft/extr_fb_ili9163.c_set_var.c"
target datalayout = "e-m:e-p270:32:32-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.fbtft_par = type { i64, ptr }
@MIPI_DCS_SET_ADDRESS_MODE = dso_local local_unnamed_addr global i32 0, align 4
@MIPI_DCS_WRITE_MEMORY_START = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @set_var], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @set_var(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.fbtft_par, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr %3, align 4, !tbaa !11
switch i32 %4, label %9 [
i32 0, label %5
i32 180, label %6
i32 270, label %7
i32 90, label %8
]
5: ; preds = %1
br label %9
6: ; preds = %1
br label %9
7: ; preds = %1
br label %9
8: ; preds = %1
br label %9
9: ; preds = %1, %8, %7, %6, %5
%10 = phi i32 [ 0, %1 ], [ 104, %8 ], [ 168, %7 ], [ 200, %6 ], [ 8, %5 ]
%11 = load i64, ptr %0, align 8, !tbaa !15
%12 = icmp eq i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %9
%14 = tail call i32 @BIT(i32 noundef 2) #2
%15 = or i32 %14, %10
br label %16
16: ; preds = %13, %9
%17 = phi i32 [ %15, %13 ], [ %10, %9 ]
%18 = load i32, ptr @MIPI_DCS_SET_ADDRESS_MODE, align 4, !tbaa !16
%19 = tail call i32 (ptr, i32, ...) @write_reg(ptr noundef nonnull %0, i32 noundef %18, i32 noundef %17) #2
%20 = load i32, ptr @MIPI_DCS_WRITE_MEMORY_START, align 4, !tbaa !16
%21 = tail call i32 (ptr, i32, ...) @write_reg(ptr noundef nonnull %0, i32 noundef %20) #2
ret i32 0
}
declare i32 @BIT(i32 noundef) local_unnamed_addr #1
declare i32 @write_reg(ptr noundef, i32 noundef, ...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"fbtft_par", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !14, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!6, !7, i64 0}
!16 = !{!14, !14, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/fbtft/extr_fb_ili9163.c_set_var.c'
source_filename = "AnghaBench/linux/drivers/staging/fbtft/extr_fb_ili9163.c_set_var.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MIPI_DCS_SET_ADDRESS_MODE = common local_unnamed_addr global i32 0, align 4
@MIPI_DCS_WRITE_MEMORY_START = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @set_var], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @set_var(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr %3, align 4, !tbaa !12
switch i32 %4, label %9 [
i32 0, label %5
i32 180, label %6
i32 270, label %7
i32 90, label %8
]
5: ; preds = %1
br label %9
6: ; preds = %1
br label %9
7: ; preds = %1
br label %9
8: ; preds = %1
br label %9
9: ; preds = %1, %8, %7, %6, %5
%10 = phi i32 [ 0, %1 ], [ 104, %8 ], [ 168, %7 ], [ 200, %6 ], [ 8, %5 ]
%11 = load i64, ptr %0, align 8, !tbaa !16
%12 = icmp eq i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %9
%14 = tail call i32 @BIT(i32 noundef 2) #2
%15 = or i32 %14, %10
br label %16
16: ; preds = %13, %9
%17 = phi i32 [ %15, %13 ], [ %10, %9 ]
%18 = load i32, ptr @MIPI_DCS_SET_ADDRESS_MODE, align 4, !tbaa !17
%19 = tail call i32 (ptr, i32, ...) @write_reg(ptr noundef nonnull %0, i32 noundef %18, i32 noundef %17) #2
%20 = load i32, ptr @MIPI_DCS_WRITE_MEMORY_START, align 4, !tbaa !17
%21 = tail call i32 (ptr, i32, ...) @write_reg(ptr noundef nonnull %0, i32 noundef %20) #2
ret i32 0
}
declare i32 @BIT(i32 noundef) local_unnamed_addr #1
declare i32 @write_reg(ptr noundef, i32 noundef, ...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"fbtft_par", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !15, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"TYPE_3__", !15, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!7, !8, i64 0}
!17 = !{!15, !15, i64 0}
| linux_drivers_staging_fbtft_extr_fb_ili9163.c_set_var |
; ModuleID = 'AnghaBench/freebsd/lib/libc/gen/extr_getnetgrent.c_endnetgrent.c'
source_filename = "AnghaBench/freebsd/lib/libc/gen/extr_getnetgrent.c_endnetgrent.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@endnetgrent_dtab = dso_local local_unnamed_addr global i32 0, align 4
@NSDB_NETGROUP = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"endnetgrent\00", align 1
@defaultsrc = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @endnetgrent() local_unnamed_addr #0 {
%1 = load i32, ptr @endnetgrent_dtab, align 4, !tbaa !5
%2 = load i32, ptr @NSDB_NETGROUP, align 4, !tbaa !5
%3 = load i32, ptr @defaultsrc, align 4, !tbaa !5
%4 = tail call i32 @_nsdispatch(ptr noundef null, i32 noundef %1, i32 noundef %2, ptr noundef nonnull @.str, i32 noundef %3) #2
ret void
}
declare i32 @_nsdispatch(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/lib/libc/gen/extr_getnetgrent.c_endnetgrent.c'
source_filename = "AnghaBench/freebsd/lib/libc/gen/extr_getnetgrent.c_endnetgrent.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@endnetgrent_dtab = common local_unnamed_addr global i32 0, align 4
@NSDB_NETGROUP = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"endnetgrent\00", align 1
@defaultsrc = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @endnetgrent() local_unnamed_addr #0 {
%1 = load i32, ptr @endnetgrent_dtab, align 4, !tbaa !6
%2 = load i32, ptr @NSDB_NETGROUP, align 4, !tbaa !6
%3 = load i32, ptr @defaultsrc, align 4, !tbaa !6
%4 = tail call i32 @_nsdispatch(ptr noundef null, i32 noundef %1, i32 noundef %2, ptr noundef nonnull @.str, i32 noundef %3) #2
ret void
}
declare i32 @_nsdispatch(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_lib_libc_gen_extr_getnetgrent.c_endnetgrent |
; ModuleID = 'AnghaBench/kphp-kdb/dns/extr_dns-binlog-diff.c_dns_record_txt.c'
source_filename = "AnghaBench/kphp-kdb/dns/extr_dns-binlog-diff.c_dns_record_txt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@dns_type_txt = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dns_record_txt], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @dns_record_txt(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @dns_type_txt, align 4, !tbaa !5
%4 = load i32, ptr %0, align 4, !tbaa !9
%5 = tail call i32 @add_record(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %3, i32 noundef %4) #2
ret i32 %5
}
declare i32 @add_record(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"lev_dns_record_txt", !6, i64 0}
| ; ModuleID = 'AnghaBench/kphp-kdb/dns/extr_dns-binlog-diff.c_dns_record_txt.c'
source_filename = "AnghaBench/kphp-kdb/dns/extr_dns-binlog-diff.c_dns_record_txt.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@dns_type_txt = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dns_record_txt], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @dns_record_txt(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @dns_type_txt, align 4, !tbaa !6
%4 = load i32, ptr %0, align 4, !tbaa !10
%5 = tail call i32 @add_record(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %3, i32 noundef %4) #2
ret i32 %5
}
declare i32 @add_record(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"lev_dns_record_txt", !7, i64 0}
| kphp-kdb_dns_extr_dns-binlog-diff.c_dns_record_txt |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_e2100.c_mem_off.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_e2100.c_mem_off.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@E21_MEM_ENABLE = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @mem_off], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @mem_off(i16 noundef signext %0) #0 {
%2 = sext i16 %0 to i64
%3 = load i64, ptr @E21_MEM_ENABLE, align 8, !tbaa !5
%4 = add nsw i64 %3, %2
%5 = tail call i32 @inb(i64 noundef %4) #2
%6 = load i64, ptr @E21_MEM_ENABLE, align 8, !tbaa !5
%7 = add nsw i64 %6, %2
%8 = tail call i32 @outb(i32 noundef 0, i64 noundef %7) #2
ret void
}
declare i32 @inb(i64 noundef) local_unnamed_addr #1
declare i32 @outb(i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_e2100.c_mem_off.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_e2100.c_mem_off.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@E21_MEM_ENABLE = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @mem_off], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @mem_off(i16 noundef signext %0) #0 {
%2 = sext i16 %0 to i64
%3 = load i64, ptr @E21_MEM_ENABLE, align 8, !tbaa !6
%4 = add nsw i64 %3, %2
%5 = tail call i32 @inb(i64 noundef %4) #2
%6 = load i64, ptr @E21_MEM_ENABLE, align 8, !tbaa !6
%7 = add nsw i64 %6, %2
%8 = tail call i32 @outb(i32 noundef 0, i64 noundef %7) #2
ret void
}
declare i32 @inb(i64 noundef) local_unnamed_addr #1
declare i32 @outb(i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_net_extr_e2100.c_mem_off |
; ModuleID = 'AnghaBench/linux/net/vmw_vsock/extr_vmci_transport_notify_qstate.c_vmci_transport_notify_pkt_send_init.c'
source_filename = "AnghaBench/linux/net/vmw_vsock/extr_vmci_transport_notify_qstate.c_vmci_transport_notify_pkt_send_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @vmci_transport_notify_pkt_send_init], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal noundef i32 @vmci_transport_notify_pkt_send_init(ptr nocapture readnone %0, ptr nocapture noundef writeonly %1) #0 {
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %1, i8 0, i64 16, i1 false)
ret i32 0
}
; 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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/net/vmw_vsock/extr_vmci_transport_notify_qstate.c_vmci_transport_notify_pkt_send_init.c'
source_filename = "AnghaBench/linux/net/vmw_vsock/extr_vmci_transport_notify_qstate.c_vmci_transport_notify_pkt_send_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @vmci_transport_notify_pkt_send_init], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal noundef i32 @vmci_transport_notify_pkt_send_init(ptr nocapture readnone %0, ptr nocapture noundef writeonly %1) #0 {
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %1, i8 0, i64 16, i1 false)
ret i32 0
}
; 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 ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_net_vmw_vsock_extr_vmci_transport_notify_qstate.c_vmci_transport_notify_pkt_send_init |
; ModuleID = 'AnghaBench/freebsd/sys/dev/iicbus/extr_ads111x.c_ads111x_probe.c'
source_filename = "AnghaBench/freebsd/sys/dev/iicbus/extr_ads111x.c_ads111x_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@BUS_PROBE_DEFAULT = dso_local local_unnamed_addr global i32 0, align 4
@ENXIO = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ads111x_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ads111x_probe(i32 noundef %0) #0 {
%2 = tail call ptr @ads111x_find_chipinfo(i32 noundef %0) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, ptr %2, align 4, !tbaa !5
%6 = tail call i32 @device_set_desc(i32 noundef %0, i32 noundef %5) #2
br label %7
7: ; preds = %1, %4
%8 = phi ptr [ @BUS_PROBE_DEFAULT, %4 ], [ @ENXIO, %1 ]
%9 = load i32, ptr %8, align 4, !tbaa !10
ret i32 %9
}
declare ptr @ads111x_find_chipinfo(i32 noundef) local_unnamed_addr #1
declare i32 @device_set_desc(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ads111x_chipinfo", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/iicbus/extr_ads111x.c_ads111x_probe.c'
source_filename = "AnghaBench/freebsd/sys/dev/iicbus/extr_ads111x.c_ads111x_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BUS_PROBE_DEFAULT = common local_unnamed_addr global i32 0, align 4
@ENXIO = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ads111x_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ads111x_probe(i32 noundef %0) #0 {
%2 = tail call ptr @ads111x_find_chipinfo(i32 noundef %0) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, ptr %2, align 4, !tbaa !6
%6 = tail call i32 @device_set_desc(i32 noundef %0, i32 noundef %5) #2
br label %7
7: ; preds = %1, %4
%8 = phi ptr [ @BUS_PROBE_DEFAULT, %4 ], [ @ENXIO, %1 ]
%9 = load i32, ptr %8, align 4, !tbaa !11
ret i32 %9
}
declare ptr @ads111x_find_chipinfo(i32 noundef) local_unnamed_addr #1
declare i32 @device_set_desc(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ads111x_chipinfo", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| freebsd_sys_dev_iicbus_extr_ads111x.c_ads111x_probe |
; ModuleID = 'AnghaBench/postgres/contrib/pgcrypto/extr_pgp-armor.c_pg_base64_encode.c'
source_filename = "AnghaBench/postgres/contrib/pgcrypto/extr_pgp-armor.c_pg_base64_encode.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@_base64 = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @pg_base64_encode], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define internal i32 @pg_base64_encode(ptr noundef readonly %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = zext i32 %1 to i64
%5 = getelementptr inbounds i32, ptr %0, i64 %4
%6 = icmp eq i32 %1, 0
br i1 %6, label %87, label %7
7: ; preds = %3
%8 = getelementptr inbounds i32, ptr %2, i64 76
%9 = load ptr, ptr @_base64, align 8
br label %10
10: ; preds = %7, %56
%11 = phi i64 [ 0, %7 ], [ %51, %56 ]
%12 = phi i32 [ 2, %7 ], [ %50, %56 ]
%13 = phi ptr [ %2, %7 ], [ %58, %56 ]
%14 = phi ptr [ %0, %7 ], [ %22, %56 ]
%15 = phi ptr [ %8, %7 ], [ %57, %56 ]
%16 = load i32, ptr %14, align 4, !tbaa !5
%17 = shl nuw nsw i32 %12, 3
%18 = shl i32 %16, %17
%19 = zext i32 %18 to i64
%20 = or i64 %11, %19
%21 = add nsw i32 %12, -1
%22 = getelementptr inbounds i32, ptr %14, i64 1
%23 = icmp slt i32 %12, 1
br i1 %23, label %24, label %48
24: ; preds = %10
%25 = lshr i64 %20, 18
%26 = and i64 %25, 63
%27 = getelementptr inbounds i8, ptr %9, i64 %26
%28 = load i8, ptr %27, align 1, !tbaa !9
%29 = sext i8 %28 to i32
%30 = getelementptr inbounds i32, ptr %13, i64 1
store i32 %29, ptr %13, align 4, !tbaa !5
%31 = lshr i64 %20, 12
%32 = and i64 %31, 63
%33 = getelementptr inbounds i8, ptr %9, i64 %32
%34 = load i8, ptr %33, align 1, !tbaa !9
%35 = sext i8 %34 to i32
%36 = getelementptr inbounds i32, ptr %13, i64 2
store i32 %35, ptr %30, align 4, !tbaa !5
%37 = lshr i64 %20, 6
%38 = and i64 %37, 63
%39 = getelementptr inbounds i8, ptr %9, i64 %38
%40 = load i8, ptr %39, align 1, !tbaa !9
%41 = sext i8 %40 to i32
%42 = getelementptr inbounds i32, ptr %13, i64 3
store i32 %41, ptr %36, align 4, !tbaa !5
%43 = and i64 %20, 63
%44 = getelementptr inbounds i8, ptr %9, i64 %43
%45 = load i8, ptr %44, align 1, !tbaa !9
%46 = sext i8 %45 to i32
%47 = getelementptr inbounds i32, ptr %13, i64 4
store i32 %46, ptr %42, align 4, !tbaa !5
br label %48
48: ; preds = %24, %10
%49 = phi ptr [ %47, %24 ], [ %13, %10 ]
%50 = phi i32 [ 2, %24 ], [ %21, %10 ]
%51 = phi i64 [ 0, %24 ], [ %20, %10 ]
%52 = icmp ult ptr %49, %15
br i1 %52, label %56, label %53
53: ; preds = %48
%54 = getelementptr inbounds i32, ptr %49, i64 1
store i32 10, ptr %49, align 4, !tbaa !5
%55 = getelementptr inbounds i32, ptr %49, i64 77
br label %56
56: ; preds = %53, %48
%57 = phi ptr [ %55, %53 ], [ %15, %48 ]
%58 = phi ptr [ %54, %53 ], [ %49, %48 ]
%59 = icmp ult ptr %22, %5
br i1 %59, label %10, label %60, !llvm.loop !10
60: ; preds = %56
%61 = icmp eq i32 %50, 2
br i1 %61, label %87, label %62
62: ; preds = %60
%63 = load ptr, ptr @_base64, align 8, !tbaa !12
%64 = lshr i64 %51, 18
%65 = and i64 %64, 63
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = load i8, ptr %66, align 1, !tbaa !9
%68 = sext i8 %67 to i32
%69 = getelementptr inbounds i32, ptr %58, i64 1
store i32 %68, ptr %58, align 4, !tbaa !5
%70 = lshr i64 %51, 12
%71 = and i64 %70, 63
%72 = getelementptr inbounds i8, ptr %63, i64 %71
%73 = load i8, ptr %72, align 1, !tbaa !9
%74 = sext i8 %73 to i32
%75 = getelementptr inbounds i32, ptr %58, i64 2
store i32 %74, ptr %69, align 4, !tbaa !5
%76 = icmp eq i32 %50, 0
br i1 %76, label %77, label %83
77: ; preds = %62
%78 = lshr i64 %51, 6
%79 = and i64 %78, 63
%80 = getelementptr inbounds i8, ptr %63, i64 %79
%81 = load i8, ptr %80, align 1, !tbaa !9
%82 = sext i8 %81 to i32
br label %83
83: ; preds = %62, %77
%84 = phi i32 [ %82, %77 ], [ 61, %62 ]
%85 = getelementptr inbounds i32, ptr %58, i64 3
store i32 %84, ptr %75, align 4, !tbaa !5
%86 = getelementptr inbounds i32, ptr %58, i64 4
store i32 61, ptr %85, align 4, !tbaa !5
br label %87
87: ; preds = %3, %83, %60
%88 = phi ptr [ %86, %83 ], [ %58, %60 ], [ %2, %3 ]
%89 = ptrtoint ptr %88 to i64
%90 = ptrtoint ptr %2 to i64
%91 = sub i64 %89, %90
%92 = lshr exact i64 %91, 2
%93 = trunc i64 %92 to i32
ret i32 %93
}
attributes #0 = { nofree norecurse nosync nounwind 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" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/postgres/contrib/pgcrypto/extr_pgp-armor.c_pg_base64_encode.c'
source_filename = "AnghaBench/postgres/contrib/pgcrypto/extr_pgp-armor.c_pg_base64_encode.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@_base64 = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @pg_base64_encode], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync)
define internal i32 @pg_base64_encode(ptr noundef readonly %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = zext i32 %1 to i64
%5 = getelementptr inbounds i32, ptr %0, i64 %4
%6 = icmp eq i32 %1, 0
br i1 %6, label %87, label %7
7: ; preds = %3
%8 = getelementptr inbounds i8, ptr %2, i64 304
%9 = load ptr, ptr @_base64, align 8
br label %10
10: ; preds = %7, %56
%11 = phi i64 [ 0, %7 ], [ %51, %56 ]
%12 = phi i32 [ 2, %7 ], [ %50, %56 ]
%13 = phi ptr [ %2, %7 ], [ %58, %56 ]
%14 = phi ptr [ %0, %7 ], [ %22, %56 ]
%15 = phi ptr [ %8, %7 ], [ %57, %56 ]
%16 = load i32, ptr %14, align 4, !tbaa !6
%17 = shl nuw nsw i32 %12, 3
%18 = shl i32 %16, %17
%19 = zext i32 %18 to i64
%20 = or i64 %11, %19
%21 = add nsw i32 %12, -1
%22 = getelementptr inbounds i8, ptr %14, i64 4
%23 = icmp slt i32 %12, 1
br i1 %23, label %24, label %48
24: ; preds = %10
%25 = lshr i64 %20, 18
%26 = and i64 %25, 63
%27 = getelementptr inbounds i8, ptr %9, i64 %26
%28 = load i8, ptr %27, align 1, !tbaa !10
%29 = sext i8 %28 to i32
%30 = getelementptr inbounds i8, ptr %13, i64 4
store i32 %29, ptr %13, align 4, !tbaa !6
%31 = lshr i64 %20, 12
%32 = and i64 %31, 63
%33 = getelementptr inbounds i8, ptr %9, i64 %32
%34 = load i8, ptr %33, align 1, !tbaa !10
%35 = sext i8 %34 to i32
%36 = getelementptr inbounds i8, ptr %13, i64 8
store i32 %35, ptr %30, align 4, !tbaa !6
%37 = lshr i64 %20, 6
%38 = and i64 %37, 63
%39 = getelementptr inbounds i8, ptr %9, i64 %38
%40 = load i8, ptr %39, align 1, !tbaa !10
%41 = sext i8 %40 to i32
%42 = getelementptr inbounds i8, ptr %13, i64 12
store i32 %41, ptr %36, align 4, !tbaa !6
%43 = and i64 %20, 63
%44 = getelementptr inbounds i8, ptr %9, i64 %43
%45 = load i8, ptr %44, align 1, !tbaa !10
%46 = sext i8 %45 to i32
%47 = getelementptr inbounds i8, ptr %13, i64 16
store i32 %46, ptr %42, align 4, !tbaa !6
br label %48
48: ; preds = %24, %10
%49 = phi ptr [ %47, %24 ], [ %13, %10 ]
%50 = phi i32 [ 2, %24 ], [ %21, %10 ]
%51 = phi i64 [ 0, %24 ], [ %20, %10 ]
%52 = icmp ult ptr %49, %15
br i1 %52, label %56, label %53
53: ; preds = %48
%54 = getelementptr inbounds i8, ptr %49, i64 4
store i32 10, ptr %49, align 4, !tbaa !6
%55 = getelementptr inbounds i8, ptr %49, i64 308
br label %56
56: ; preds = %53, %48
%57 = phi ptr [ %55, %53 ], [ %15, %48 ]
%58 = phi ptr [ %54, %53 ], [ %49, %48 ]
%59 = icmp ult ptr %22, %5
br i1 %59, label %10, label %60, !llvm.loop !11
60: ; preds = %56
%61 = icmp eq i32 %50, 2
br i1 %61, label %87, label %62
62: ; preds = %60
%63 = load ptr, ptr @_base64, align 8, !tbaa !13
%64 = lshr i64 %51, 18
%65 = and i64 %64, 63
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = load i8, ptr %66, align 1, !tbaa !10
%68 = sext i8 %67 to i32
%69 = getelementptr inbounds i8, ptr %58, i64 4
store i32 %68, ptr %58, align 4, !tbaa !6
%70 = lshr i64 %51, 12
%71 = and i64 %70, 63
%72 = getelementptr inbounds i8, ptr %63, i64 %71
%73 = load i8, ptr %72, align 1, !tbaa !10
%74 = sext i8 %73 to i32
%75 = getelementptr inbounds i8, ptr %58, i64 8
store i32 %74, ptr %69, align 4, !tbaa !6
%76 = icmp eq i32 %50, 0
br i1 %76, label %77, label %83
77: ; preds = %62
%78 = lshr i64 %51, 6
%79 = and i64 %78, 63
%80 = getelementptr inbounds i8, ptr %63, i64 %79
%81 = load i8, ptr %80, align 1, !tbaa !10
%82 = sext i8 %81 to i32
br label %83
83: ; preds = %62, %77
%84 = phi i32 [ %82, %77 ], [ 61, %62 ]
%85 = getelementptr inbounds i8, ptr %58, i64 12
store i32 %84, ptr %75, align 4, !tbaa !6
%86 = getelementptr inbounds i8, ptr %58, i64 16
store i32 61, ptr %85, align 4, !tbaa !6
br label %87
87: ; preds = %3, %83, %60
%88 = phi ptr [ %86, %83 ], [ %58, %60 ], [ %2, %3 ]
%89 = ptrtoint ptr %88 to i64
%90 = ptrtoint ptr %2 to i64
%91 = sub i64 %89, %90
%92 = lshr exact i64 %91, 2
%93 = trunc i64 %92 to i32
ret i32 %93
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
| postgres_contrib_pgcrypto_extr_pgp-armor.c_pg_base64_encode |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hv/extr_hv_balloon.c_balloon_probe.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hv/extr_hv_balloon.c_balloon_probe.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_16__ = type { i64, i32, i32, i32, %struct.TYPE_11__, %struct.TYPE_10__, i32, i32, i32, ptr }
%struct.TYPE_11__ = type { i32 }
%struct.TYPE_10__ = type { i32 }
%struct.dm_version_request = type { i32, i64, %struct.TYPE_15__, %struct.TYPE_13__, i64, %struct.TYPE_12__ }
%struct.TYPE_15__ = type { %struct.TYPE_14__ }
%struct.TYPE_14__ = type { i32, i32, i32 }
%struct.TYPE_13__ = type { i32, ptr, i32 }
%struct.TYPE_12__ = type { i32 }
%struct.dm_capabilities = type { i32, i64, %struct.TYPE_15__, %struct.TYPE_13__, i64, %struct.TYPE_12__ }
@hot_add = dso_local local_unnamed_addr global i32 0, align 4
@do_hot_add = dso_local local_unnamed_addr global i32 0, align 4
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@send_buffer = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@dm_ring_size = dso_local local_unnamed_addr global i32 0, align 4
@balloon_onchannelcallback = dso_local local_unnamed_addr global i32 0, align 4
@dm_device = dso_local global %struct.TYPE_16__ zeroinitializer, align 8
@DM_INITIALIZING = dso_local local_unnamed_addr global i64 0, align 8
@DYNMEM_PROTOCOL_VERSION_WIN7 = dso_local local_unnamed_addr global i32 0, align 4
@balloon_up = dso_local local_unnamed_addr global i32 0, align 4
@hot_add_req = dso_local local_unnamed_addr global i32 0, align 4
@dm_thread_func = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"hv_balloon\00", align 1
@DM_VERSION_REQUEST = dso_local local_unnamed_addr global i32 0, align 4
@trans_id = dso_local global i32 0, align 4
@DYNMEM_PROTOCOL_VERSION_WIN8 = dso_local local_unnamed_addr global i32 0, align 4
@VM_PKT_DATA_INBAND = dso_local local_unnamed_addr global i32 0, align 4
@HZ = dso_local local_unnamed_addr global i32 0, align 4
@ETIMEDOUT = dso_local local_unnamed_addr global i32 0, align 4
@DM_INIT_ERROR = dso_local local_unnamed_addr global i64 0, align 8
@DM_CAPABILITIES_REPORT = dso_local local_unnamed_addr global i32 0, align 4
@DM_INITIALIZED = dso_local local_unnamed_addr global i64 0, align 8
@hv_online_page = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @balloon_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @balloon_probe(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = alloca %struct.dm_version_request, align 8
%4 = alloca %struct.dm_capabilities, align 8
call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #3
%5 = load i32, ptr @hot_add, align 4, !tbaa !5
store i32 %5, ptr @do_hot_add, align 4, !tbaa !5
%6 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !5
%7 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%8 = tail call i32 @kmalloc(i32 noundef %6, i32 noundef %7) #3
store i32 %8, ptr @send_buffer, align 4, !tbaa !5
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%12 = sub nsw i32 0, %11
br label %110
13: ; preds = %2
%14 = load i32, ptr %0, align 4, !tbaa !9
%15 = load i32, ptr @dm_ring_size, align 4, !tbaa !5
%16 = load i32, ptr @balloon_onchannelcallback, align 4, !tbaa !5
%17 = tail call i32 @vmbus_open(i32 noundef %14, i32 noundef %15, i32 noundef %15, ptr noundef null, i32 noundef 0, i32 noundef %16, ptr noundef nonnull %0) #3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %106
19: ; preds = %13
store ptr %0, ptr getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 9), align 8, !tbaa !11
%20 = load i64, ptr @DM_INITIALIZING, align 8, !tbaa !17
store i64 %20, ptr @dm_device, align 8, !tbaa !18
%21 = load i32, ptr @DYNMEM_PROTOCOL_VERSION_WIN7, align 4, !tbaa !5
store i32 %21, ptr getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 8), align 4, !tbaa !19
%22 = tail call i32 @init_completion(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 3)) #3
%23 = tail call i32 @init_completion(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 7)) #3
%24 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 6)) #3
%25 = load i32, ptr @balloon_up, align 4, !tbaa !5
%26 = tail call i32 @INIT_WORK(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 5), i32 noundef %25) #3
%27 = load i32, ptr @hot_add_req, align 4, !tbaa !5
%28 = tail call i32 @INIT_WORK(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 4), i32 noundef %27) #3
store i32 0, ptr getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 1), align 8, !tbaa !20
%29 = load i32, ptr @dm_thread_func, align 4, !tbaa !5
%30 = tail call i32 @kthread_run(i32 noundef %29, ptr noundef nonnull @dm_device, ptr noundef nonnull @.str) #3
store i32 %30, ptr getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 2), align 4, !tbaa !21
%31 = tail call i64 @IS_ERR(i32 noundef %30) #3
%32 = icmp eq i64 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %19
%34 = load i32, ptr getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 2), align 4, !tbaa !21
%35 = tail call i32 @PTR_ERR(i32 noundef %34) #3
br label %102
36: ; preds = %19
%37 = tail call i32 @hv_set_drvdata(ptr noundef nonnull %0, ptr noundef nonnull @dm_device) #3
%38 = call i32 @memset(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 72) #3
%39 = load i32, ptr @DM_VERSION_REQUEST, align 4, !tbaa !5
%40 = getelementptr inbounds %struct.dm_version_request, ptr %3, i64 0, i32 3
%41 = getelementptr inbounds %struct.dm_version_request, ptr %3, i64 0, i32 3, i32 2
store i32 %39, ptr %41, align 8, !tbaa !22
store i32 72, ptr %40, align 8, !tbaa !28
%42 = call ptr @atomic_inc_return(ptr noundef nonnull @trans_id) #3
%43 = getelementptr inbounds %struct.dm_version_request, ptr %3, i64 0, i32 3, i32 1
store ptr %42, ptr %43, align 8, !tbaa !29
%44 = load i32, ptr @DYNMEM_PROTOCOL_VERSION_WIN8, align 4, !tbaa !5
%45 = getelementptr inbounds %struct.dm_version_request, ptr %3, i64 0, i32 5
store i32 %44, ptr %45, align 8, !tbaa !30
%46 = getelementptr inbounds %struct.dm_version_request, ptr %3, i64 0, i32 4
store i64 0, ptr %46, align 8, !tbaa !31
%47 = load i32, ptr %0, align 4, !tbaa !9
%48 = load i32, ptr @VM_PKT_DATA_INBAND, align 4, !tbaa !5
%49 = call i32 @vmbus_sendpacket(i32 noundef %47, ptr noundef nonnull %3, i32 noundef 72, i64 noundef 0, i32 noundef %48, i32 noundef 0) #3
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %98
51: ; preds = %36
%52 = load i32, ptr @HZ, align 4, !tbaa !5
%53 = mul nsw i32 %52, 5
%54 = call i32 @wait_for_completion_timeout(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 3), i32 noundef %53) #3
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %51
%57 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !5
%58 = sub nsw i32 0, %57
br label %98
59: ; preds = %51
%60 = load i64, ptr @dm_device, align 8, !tbaa !18
%61 = load i64, ptr @DM_INIT_ERROR, align 8, !tbaa !17
%62 = icmp eq i64 %60, %61
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !5
%65 = sub nsw i32 0, %64
br label %98
66: ; preds = %59
%67 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 72) #3
%68 = load i32, ptr @DM_CAPABILITIES_REPORT, align 4, !tbaa !5
%69 = getelementptr inbounds %struct.dm_capabilities, ptr %4, i64 0, i32 3
%70 = getelementptr inbounds %struct.dm_capabilities, ptr %4, i64 0, i32 3, i32 2
store i32 %68, ptr %70, align 8, !tbaa !32
store i32 72, ptr %69, align 8, !tbaa !34
%71 = call ptr @atomic_inc_return(ptr noundef nonnull @trans_id) #3
%72 = getelementptr inbounds %struct.dm_capabilities, ptr %4, i64 0, i32 3, i32 1
store ptr %71, ptr %72, align 8, !tbaa !35
%73 = getelementptr inbounds %struct.dm_capabilities, ptr %4, i64 0, i32 2
store i32 1, ptr %73, align 8, !tbaa !36
%74 = getelementptr inbounds %struct.dm_capabilities, ptr %4, i64 0, i32 2, i32 0, i32 1
store i32 1, ptr %74, align 4, !tbaa !37
%75 = getelementptr inbounds %struct.dm_capabilities, ptr %4, i64 0, i32 2, i32 0, i32 2
store i32 7, ptr %75, align 8, !tbaa !38
%76 = getelementptr inbounds %struct.dm_capabilities, ptr %4, i64 0, i32 1
store i64 0, ptr %76, align 8, !tbaa !39
store i32 -1, ptr %4, align 8, !tbaa !40
%77 = load i32, ptr %0, align 4, !tbaa !9
%78 = load i32, ptr @VM_PKT_DATA_INBAND, align 4, !tbaa !5
%79 = call i32 @vmbus_sendpacket(i32 noundef %77, ptr noundef nonnull %4, i32 noundef 72, i64 noundef 0, i32 noundef %78, i32 noundef 0) #3
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %98
81: ; preds = %66
%82 = load i32, ptr @HZ, align 4, !tbaa !5
%83 = mul nsw i32 %82, 5
%84 = call i32 @wait_for_completion_timeout(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 3), i32 noundef %83) #3
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %81
%87 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !5
%88 = sub nsw i32 0, %87
br label %98
89: ; preds = %81
%90 = load i64, ptr @dm_device, align 8, !tbaa !18
%91 = load i64, ptr @DM_INIT_ERROR, align 8, !tbaa !17
%92 = icmp eq i64 %90, %91
br i1 %92, label %93, label %96
93: ; preds = %89
%94 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !5
%95 = sub nsw i32 0, %94
br label %98
96: ; preds = %89
%97 = load i64, ptr @DM_INITIALIZED, align 8, !tbaa !17
store i64 %97, ptr @dm_device, align 8, !tbaa !18
br label %110
98: ; preds = %66, %36, %93, %86, %63, %56
%99 = phi i32 [ %49, %36 ], [ %58, %56 ], [ %65, %63 ], [ %79, %66 ], [ %88, %86 ], [ %95, %93 ]
%100 = load i32, ptr getelementptr inbounds (%struct.TYPE_16__, ptr @dm_device, i64 0, i32 2), align 4, !tbaa !21
%101 = call i32 @kthread_stop(i32 noundef %100) #3
br label %102
102: ; preds = %98, %33
%103 = phi i32 [ %35, %33 ], [ %99, %98 ]
%104 = load i32, ptr %0, align 4, !tbaa !9
%105 = call i32 @vmbus_close(i32 noundef %104) #3
br label %106
106: ; preds = %13, %102
%107 = phi i32 [ %17, %13 ], [ %103, %102 ]
%108 = load i32, ptr @send_buffer, align 4, !tbaa !5
%109 = call i32 @kfree(i32 noundef %108) #3
br label %110
110: ; preds = %106, %96, %10
%111 = phi i32 [ %107, %106 ], [ 0, %96 ], [ %12, %10 ]
call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #3
ret i32 %111
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @kmalloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vmbus_open(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @init_completion(ptr noundef) local_unnamed_addr #2
declare i32 @INIT_LIST_HEAD(ptr noundef) local_unnamed_addr #2
declare i32 @INIT_WORK(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kthread_run(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @hv_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @atomic_inc_return(ptr noundef) local_unnamed_addr #2
declare i32 @vmbus_sendpacket(i32 noundef, ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @wait_for_completion_timeout(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kthread_stop(i32 noundef) local_unnamed_addr #2
declare i32 @vmbus_close(i32 noundef) local_unnamed_addr #2
declare i32 @kfree(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"hv_device", !6, i64 0}
!11 = !{!12, !16, i64 40}
!12 = !{!"TYPE_16__", !13, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !14, i64 20, !15, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !16, i64 40}
!13 = !{!"long", !7, i64 0}
!14 = !{!"TYPE_11__", !6, i64 0}
!15 = !{!"TYPE_10__", !6, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !13, i64 0}
!19 = !{!12, !6, i64 36}
!20 = !{!12, !6, i64 8}
!21 = !{!12, !6, i64 12}
!22 = !{!23, !6, i64 48}
!23 = !{!"dm_version_request", !6, i64 0, !13, i64 8, !24, i64 16, !26, i64 32, !13, i64 56, !27, i64 64}
!24 = !{!"TYPE_15__", !25, i64 0}
!25 = !{!"TYPE_14__", !6, i64 0, !6, i64 4, !6, i64 8}
!26 = !{!"TYPE_13__", !6, i64 0, !16, i64 8, !6, i64 16}
!27 = !{!"TYPE_12__", !6, i64 0}
!28 = !{!23, !6, i64 32}
!29 = !{!23, !16, i64 40}
!30 = !{!23, !6, i64 64}
!31 = !{!23, !13, i64 56}
!32 = !{!33, !6, i64 48}
!33 = !{!"dm_capabilities", !6, i64 0, !13, i64 8, !24, i64 16, !26, i64 32, !13, i64 56, !27, i64 64}
!34 = !{!33, !6, i64 32}
!35 = !{!33, !16, i64 40}
!36 = !{!33, !6, i64 16}
!37 = !{!33, !6, i64 20}
!38 = !{!33, !6, i64 24}
!39 = !{!33, !13, i64 8}
!40 = !{!33, !6, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hv/extr_hv_balloon.c_balloon_probe.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hv/extr_hv_balloon.c_balloon_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_16__ = type { i64, i32, i32, i32, %struct.TYPE_11__, %struct.TYPE_10__, i32, i32, i32, ptr }
%struct.TYPE_11__ = type { i32 }
%struct.TYPE_10__ = type { i32 }
%struct.dm_version_request = type { i32, i64, %struct.TYPE_15__, %struct.TYPE_13__, i64, %struct.TYPE_12__ }
%struct.TYPE_15__ = type { %struct.TYPE_14__ }
%struct.TYPE_14__ = type { i32, i32, i32 }
%struct.TYPE_13__ = type { i32, ptr, i32 }
%struct.TYPE_12__ = type { i32 }
%struct.dm_capabilities = type { i32, i64, %struct.TYPE_15__, %struct.TYPE_13__, i64, %struct.TYPE_12__ }
@hot_add = common local_unnamed_addr global i32 0, align 4
@do_hot_add = common local_unnamed_addr global i32 0, align 4
@PAGE_SIZE = common local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@send_buffer = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@dm_ring_size = common local_unnamed_addr global i32 0, align 4
@balloon_onchannelcallback = common local_unnamed_addr global i32 0, align 4
@dm_device = common global %struct.TYPE_16__ zeroinitializer, align 8
@DM_INITIALIZING = common local_unnamed_addr global i64 0, align 8
@DYNMEM_PROTOCOL_VERSION_WIN7 = common local_unnamed_addr global i32 0, align 4
@balloon_up = common local_unnamed_addr global i32 0, align 4
@hot_add_req = common local_unnamed_addr global i32 0, align 4
@dm_thread_func = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"hv_balloon\00", align 1
@DM_VERSION_REQUEST = common local_unnamed_addr global i32 0, align 4
@trans_id = common global i32 0, align 4
@DYNMEM_PROTOCOL_VERSION_WIN8 = common local_unnamed_addr global i32 0, align 4
@VM_PKT_DATA_INBAND = common local_unnamed_addr global i32 0, align 4
@HZ = common local_unnamed_addr global i32 0, align 4
@ETIMEDOUT = common local_unnamed_addr global i32 0, align 4
@DM_INIT_ERROR = common local_unnamed_addr global i64 0, align 8
@DM_CAPABILITIES_REPORT = common local_unnamed_addr global i32 0, align 4
@DM_INITIALIZED = common local_unnamed_addr global i64 0, align 8
@hv_online_page = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @balloon_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @balloon_probe(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = alloca %struct.dm_version_request, align 8
%4 = alloca %struct.dm_capabilities, align 8
call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #3
%5 = load i32, ptr @hot_add, align 4, !tbaa !6
store i32 %5, ptr @do_hot_add, align 4, !tbaa !6
%6 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !6
%7 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%8 = tail call i32 @kmalloc(i32 noundef %6, i32 noundef %7) #3
store i32 %8, ptr @send_buffer, align 4, !tbaa !6
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%12 = sub nsw i32 0, %11
br label %109
13: ; preds = %2
%14 = load i32, ptr %0, align 4, !tbaa !10
%15 = load i32, ptr @dm_ring_size, align 4, !tbaa !6
%16 = load i32, ptr @balloon_onchannelcallback, align 4, !tbaa !6
%17 = tail call i32 @vmbus_open(i32 noundef %14, i32 noundef %15, i32 noundef %15, ptr noundef null, i32 noundef 0, i32 noundef %16, ptr noundef nonnull %0) #3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %105
19: ; preds = %13
store ptr %0, ptr getelementptr inbounds (i8, ptr @dm_device, i64 40), align 8, !tbaa !12
%20 = load i64, ptr @DM_INITIALIZING, align 8, !tbaa !18
store i64 %20, ptr @dm_device, align 8, !tbaa !19
%21 = load i32, ptr @DYNMEM_PROTOCOL_VERSION_WIN7, align 4, !tbaa !6
store i32 %21, ptr getelementptr inbounds (i8, ptr @dm_device, i64 36), align 4, !tbaa !20
%22 = tail call i32 @init_completion(ptr noundef nonnull getelementptr inbounds (i8, ptr @dm_device, i64 16)) #3
%23 = tail call i32 @init_completion(ptr noundef nonnull getelementptr inbounds (i8, ptr @dm_device, i64 32)) #3
%24 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull getelementptr inbounds (i8, ptr @dm_device, i64 28)) #3
%25 = load i32, ptr @balloon_up, align 4, !tbaa !6
%26 = tail call i32 @INIT_WORK(ptr noundef nonnull getelementptr inbounds (i8, ptr @dm_device, i64 24), i32 noundef %25) #3
%27 = load i32, ptr @hot_add_req, align 4, !tbaa !6
%28 = tail call i32 @INIT_WORK(ptr noundef nonnull getelementptr inbounds (i8, ptr @dm_device, i64 20), i32 noundef %27) #3
store i32 0, ptr getelementptr inbounds (i8, ptr @dm_device, i64 8), align 8, !tbaa !21
%29 = load i32, ptr @dm_thread_func, align 4, !tbaa !6
%30 = tail call i32 @kthread_run(i32 noundef %29, ptr noundef nonnull @dm_device, ptr noundef nonnull @.str) #3
store i32 %30, ptr getelementptr inbounds (i8, ptr @dm_device, i64 12), align 4, !tbaa !22
%31 = tail call i64 @IS_ERR(i32 noundef %30) #3
%32 = icmp eq i64 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %19
%34 = load i32, ptr getelementptr inbounds (i8, ptr @dm_device, i64 12), align 4, !tbaa !22
%35 = tail call i32 @PTR_ERR(i32 noundef %34) #3
br label %101
36: ; preds = %19
%37 = tail call i32 @hv_set_drvdata(ptr noundef nonnull %0, ptr noundef nonnull @dm_device) #3
%38 = call i32 @memset(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 72) #3
%39 = load i32, ptr @DM_VERSION_REQUEST, align 4, !tbaa !6
%40 = getelementptr inbounds i8, ptr %3, i64 32
%41 = getelementptr inbounds i8, ptr %3, i64 48
store i32 %39, ptr %41, align 8, !tbaa !23
store i32 72, ptr %40, align 8, !tbaa !29
%42 = call ptr @atomic_inc_return(ptr noundef nonnull @trans_id) #3
%43 = getelementptr inbounds i8, ptr %3, i64 40
store ptr %42, ptr %43, align 8, !tbaa !30
%44 = load i32, ptr @DYNMEM_PROTOCOL_VERSION_WIN8, align 4, !tbaa !6
%45 = getelementptr inbounds i8, ptr %3, i64 64
store i32 %44, ptr %45, align 8, !tbaa !31
%46 = getelementptr inbounds i8, ptr %3, i64 56
store i64 0, ptr %46, align 8, !tbaa !32
%47 = load i32, ptr %0, align 4, !tbaa !10
%48 = load i32, ptr @VM_PKT_DATA_INBAND, align 4, !tbaa !6
%49 = call i32 @vmbus_sendpacket(i32 noundef %47, ptr noundef nonnull %3, i32 noundef 72, i64 noundef 0, i32 noundef %48, i32 noundef 0) #3
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %97
51: ; preds = %36
%52 = load i32, ptr @HZ, align 4, !tbaa !6
%53 = mul nsw i32 %52, 5
%54 = call i32 @wait_for_completion_timeout(ptr noundef nonnull getelementptr inbounds (i8, ptr @dm_device, i64 16), i32 noundef %53) #3
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %51
%57 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !6
%58 = sub nsw i32 0, %57
br label %97
59: ; preds = %51
%60 = load i64, ptr @dm_device, align 8, !tbaa !19
%61 = load i64, ptr @DM_INIT_ERROR, align 8, !tbaa !18
%62 = icmp eq i64 %60, %61
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !6
%65 = sub nsw i32 0, %64
br label %97
66: ; preds = %59
%67 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 72) #3
%68 = load i32, ptr @DM_CAPABILITIES_REPORT, align 4, !tbaa !6
%69 = getelementptr inbounds i8, ptr %4, i64 32
%70 = getelementptr inbounds i8, ptr %4, i64 48
store i32 %68, ptr %70, align 8, !tbaa !33
store i32 72, ptr %69, align 8, !tbaa !35
%71 = call ptr @atomic_inc_return(ptr noundef nonnull @trans_id) #3
%72 = getelementptr inbounds i8, ptr %4, i64 40
store ptr %71, ptr %72, align 8, !tbaa !36
%73 = getelementptr inbounds i8, ptr %4, i64 16
store <2 x i32> <i32 1, i32 1>, ptr %73, align 8, !tbaa !6
%74 = getelementptr inbounds i8, ptr %4, i64 24
store i32 7, ptr %74, align 8, !tbaa !37
%75 = getelementptr inbounds i8, ptr %4, i64 8
store i64 0, ptr %75, align 8, !tbaa !38
store i32 -1, ptr %4, align 8, !tbaa !39
%76 = load i32, ptr %0, align 4, !tbaa !10
%77 = load i32, ptr @VM_PKT_DATA_INBAND, align 4, !tbaa !6
%78 = call i32 @vmbus_sendpacket(i32 noundef %76, ptr noundef nonnull %4, i32 noundef 72, i64 noundef 0, i32 noundef %77, i32 noundef 0) #3
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %97
80: ; preds = %66
%81 = load i32, ptr @HZ, align 4, !tbaa !6
%82 = mul nsw i32 %81, 5
%83 = call i32 @wait_for_completion_timeout(ptr noundef nonnull getelementptr inbounds (i8, ptr @dm_device, i64 16), i32 noundef %82) #3
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %80
%86 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !6
%87 = sub nsw i32 0, %86
br label %97
88: ; preds = %80
%89 = load i64, ptr @dm_device, align 8, !tbaa !19
%90 = load i64, ptr @DM_INIT_ERROR, align 8, !tbaa !18
%91 = icmp eq i64 %89, %90
br i1 %91, label %92, label %95
92: ; preds = %88
%93 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !6
%94 = sub nsw i32 0, %93
br label %97
95: ; preds = %88
%96 = load i64, ptr @DM_INITIALIZED, align 8, !tbaa !18
store i64 %96, ptr @dm_device, align 8, !tbaa !19
br label %109
97: ; preds = %66, %36, %92, %85, %63, %56
%98 = phi i32 [ %49, %36 ], [ %58, %56 ], [ %65, %63 ], [ %78, %66 ], [ %87, %85 ], [ %94, %92 ]
%99 = load i32, ptr getelementptr inbounds (i8, ptr @dm_device, i64 12), align 4, !tbaa !22
%100 = call i32 @kthread_stop(i32 noundef %99) #3
br label %101
101: ; preds = %97, %33
%102 = phi i32 [ %35, %33 ], [ %98, %97 ]
%103 = load i32, ptr %0, align 4, !tbaa !10
%104 = call i32 @vmbus_close(i32 noundef %103) #3
br label %105
105: ; preds = %13, %101
%106 = phi i32 [ %17, %13 ], [ %102, %101 ]
%107 = load i32, ptr @send_buffer, align 4, !tbaa !6
%108 = call i32 @kfree(i32 noundef %107) #3
br label %109
109: ; preds = %105, %95, %10
%110 = phi i32 [ %106, %105 ], [ 0, %95 ], [ %12, %10 ]
call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #3
ret i32 %110
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @kmalloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vmbus_open(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @init_completion(ptr noundef) local_unnamed_addr #2
declare i32 @INIT_LIST_HEAD(ptr noundef) local_unnamed_addr #2
declare i32 @INIT_WORK(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kthread_run(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @hv_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @atomic_inc_return(ptr noundef) local_unnamed_addr #2
declare i32 @vmbus_sendpacket(i32 noundef, ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @wait_for_completion_timeout(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kthread_stop(i32 noundef) local_unnamed_addr #2
declare i32 @vmbus_close(i32 noundef) local_unnamed_addr #2
declare i32 @kfree(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"hv_device", !7, i64 0}
!12 = !{!13, !17, i64 40}
!13 = !{!"TYPE_16__", !14, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !15, i64 20, !16, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !17, i64 40}
!14 = !{!"long", !8, i64 0}
!15 = !{!"TYPE_11__", !7, i64 0}
!16 = !{!"TYPE_10__", !7, i64 0}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!14, !14, i64 0}
!19 = !{!13, !14, i64 0}
!20 = !{!13, !7, i64 36}
!21 = !{!13, !7, i64 8}
!22 = !{!13, !7, i64 12}
!23 = !{!24, !7, i64 48}
!24 = !{!"dm_version_request", !7, i64 0, !14, i64 8, !25, i64 16, !27, i64 32, !14, i64 56, !28, i64 64}
!25 = !{!"TYPE_15__", !26, i64 0}
!26 = !{!"TYPE_14__", !7, i64 0, !7, i64 4, !7, i64 8}
!27 = !{!"TYPE_13__", !7, i64 0, !17, i64 8, !7, i64 16}
!28 = !{!"TYPE_12__", !7, i64 0}
!29 = !{!24, !7, i64 32}
!30 = !{!24, !17, i64 40}
!31 = !{!24, !7, i64 64}
!32 = !{!24, !14, i64 56}
!33 = !{!34, !7, i64 48}
!34 = !{!"dm_capabilities", !7, i64 0, !14, i64 8, !25, i64 16, !27, i64 32, !14, i64 56, !28, i64 64}
!35 = !{!34, !7, i64 32}
!36 = !{!34, !17, i64 40}
!37 = !{!34, !7, i64 24}
!38 = !{!34, !14, i64 8}
!39 = !{!34, !7, i64 0}
| fastsocket_kernel_drivers_hv_extr_hv_balloon.c_balloon_probe |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/pci/extr_iov.c_virtfn_devfn.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/pci/extr_iov.c_virtfn_devfn.c"
target datalayout = "e-m:e-p270:32:32-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.pci_dev = type { i32, ptr }
%struct.TYPE_2__ = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @virtfn_devfn], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal i32 @virtfn_devfn(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.pci_dev, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load i32, ptr %5, align 4, !tbaa !12
%7 = add nsw i32 %6, %3
%8 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i64 0, i32 1
%9 = load i32, ptr %8, align 4, !tbaa !14
%10 = mul nsw i32 %9, %1
%11 = add nsw i32 %7, %10
%12 = and i32 %11, 255
ret i32 %12
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"pci_dev", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_2__", !7, i64 0, !7, i64 4}
!14 = !{!13, !7, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/pci/extr_iov.c_virtfn_devfn.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/pci/extr_iov.c_virtfn_devfn.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @virtfn_devfn], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal range(i32 0, 256) i32 @virtfn_devfn(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = load i32, ptr %5, align 4, !tbaa !13
%7 = add nsw i32 %6, %3
%8 = getelementptr inbounds i8, ptr %5, i64 4
%9 = load i32, ptr %8, align 4, !tbaa !15
%10 = mul nsw i32 %9, %1
%11 = add nsw i32 %7, %10
%12 = and i32 %11, 255
ret i32 %12
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"pci_dev", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_2__", !8, i64 0, !8, i64 4}
!15 = !{!14, !8, i64 4}
| fastsocket_kernel_drivers_pci_extr_iov.c_virtfn_devfn |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/radius/extr_radius.c_radius_copy_class.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/radius/extr_radius.c_radius_copy_class.c"
target datalayout = "e-m:e-p270:32:32-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.radius_class_data = type { i64, ptr }
%struct.TYPE_2__ = type { i32, ptr }
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @radius_copy_class(ptr nocapture noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.radius_class_data, ptr %1, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %37, label %6
6: ; preds = %2
%7 = load i64, ptr %1, align 8, !tbaa !11
%8 = tail call ptr @os_calloc(i64 noundef %7, i32 noundef 4) #2
%9 = getelementptr inbounds %struct.radius_class_data, ptr %0, i64 0, i32 1
store ptr %8, ptr %9, align 8, !tbaa !5
%10 = icmp eq ptr %8, null
br i1 %10, label %37, label %11
11: ; preds = %6
store i64 0, ptr %0, align 8, !tbaa !11
%12 = load i64, ptr %1, align 8, !tbaa !11
%13 = icmp eq i64 %12, 0
br i1 %13, label %37, label %14
14: ; preds = %11
%15 = load ptr, ptr %3, align 8, !tbaa !5
br label %16
16: ; preds = %14, %27
%17 = phi ptr [ %30, %27 ], [ %15, %14 ]
%18 = phi i64 [ %34, %27 ], [ 0, %14 ]
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %17, i64 %18
%20 = getelementptr inbounds %struct.TYPE_2__, ptr %17, i64 %18, i32 1
%21 = load ptr, ptr %20, align 8, !tbaa !12
%22 = load i32, ptr %19, align 8, !tbaa !15
%23 = tail call ptr @os_memdup(ptr noundef %21, i32 noundef %22) #2
%24 = load ptr, ptr %9, align 8, !tbaa !5
%25 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i64 %18, i32 1
store ptr %23, ptr %25, align 8, !tbaa !12
%26 = icmp eq ptr %23, null
br i1 %26, label %37, label %27
27: ; preds = %16
%28 = load i64, ptr %0, align 8, !tbaa !11
%29 = add i64 %28, 1
store i64 %29, ptr %0, align 8, !tbaa !11
%30 = load ptr, ptr %3, align 8, !tbaa !5
%31 = getelementptr inbounds %struct.TYPE_2__, ptr %30, i64 %18
%32 = load i32, ptr %31, align 8, !tbaa !15
%33 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i64 %18
store i32 %32, ptr %33, align 8, !tbaa !15
%34 = add nuw i64 %18, 1
%35 = load i64, ptr %1, align 8, !tbaa !11
%36 = icmp ult i64 %34, %35
br i1 %36, label %16, label %37, !llvm.loop !16
37: ; preds = %16, %27, %11, %6, %2
%38 = phi i32 [ 0, %2 ], [ -1, %6 ], [ 0, %11 ], [ 0, %27 ], [ 0, %16 ]
ret i32 %38
}
declare ptr @os_calloc(i64 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @os_memdup(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"radius_class_data", !7, i64 0, !10, i64 8}
!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 0}
!12 = !{!13, !10, i64 8}
!13 = !{!"TYPE_2__", !14, i64 0, !10, i64 8}
!14 = !{!"int", !8, i64 0}
!15 = !{!13, !14, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/radius/extr_radius.c_radius_copy_class.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/radius/extr_radius.c_radius_copy_class.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_2__ = type { i32, ptr }
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -1, 1) i32 @radius_copy_class(ptr nocapture noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %37, label %6
6: ; preds = %2
%7 = load i64, ptr %1, align 8, !tbaa !12
%8 = tail call ptr @os_calloc(i64 noundef %7, i32 noundef 4) #2
%9 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %8, ptr %9, align 8, !tbaa !6
%10 = icmp eq ptr %8, null
br i1 %10, label %37, label %11
11: ; preds = %6
store i64 0, ptr %0, align 8, !tbaa !12
%12 = load i64, ptr %1, align 8, !tbaa !12
%13 = icmp eq i64 %12, 0
br i1 %13, label %37, label %14
14: ; preds = %11
%15 = load ptr, ptr %3, align 8, !tbaa !6
br label %16
16: ; preds = %14, %27
%17 = phi ptr [ %30, %27 ], [ %15, %14 ]
%18 = phi i64 [ %34, %27 ], [ 0, %14 ]
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %17, i64 %18
%20 = getelementptr inbounds i8, ptr %19, i64 8
%21 = load ptr, ptr %20, align 8, !tbaa !13
%22 = load i32, ptr %19, align 8, !tbaa !16
%23 = tail call ptr @os_memdup(ptr noundef %21, i32 noundef %22) #2
%24 = load ptr, ptr %9, align 8, !tbaa !6
%25 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i64 %18, i32 1
store ptr %23, ptr %25, align 8, !tbaa !13
%26 = icmp eq ptr %23, null
br i1 %26, label %37, label %27
27: ; preds = %16
%28 = load i64, ptr %0, align 8, !tbaa !12
%29 = add i64 %28, 1
store i64 %29, ptr %0, align 8, !tbaa !12
%30 = load ptr, ptr %3, align 8, !tbaa !6
%31 = getelementptr inbounds %struct.TYPE_2__, ptr %30, i64 %18
%32 = load i32, ptr %31, align 8, !tbaa !16
%33 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i64 %18
store i32 %32, ptr %33, align 8, !tbaa !16
%34 = add nuw i64 %18, 1
%35 = load i64, ptr %1, align 8, !tbaa !12
%36 = icmp ult i64 %34, %35
br i1 %36, label %16, label %37, !llvm.loop !17
37: ; preds = %16, %27, %11, %6, %2
%38 = phi i32 [ 0, %2 ], [ -1, %6 ], [ 0, %11 ], [ 0, %27 ], [ 0, %16 ]
ret i32 %38
}
declare ptr @os_calloc(i64 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @os_memdup(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"radius_class_data", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 0}
!13 = !{!14, !11, i64 8}
!14 = !{!"TYPE_2__", !15, i64 0, !11, i64 8}
!15 = !{!"int", !9, i64 0}
!16 = !{!14, !15, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| freebsd_contrib_wpa_src_radius_extr_radius.c_radius_copy_class |
; ModuleID = 'AnghaBench/kphp-kdb/storage/extr_storage-data.c_find_max_clique.c'
source_filename = "AnghaBench/kphp-kdb/storage/extr_storage-data.c_find_max_clique.c"
target datalayout = "e-m:e-p270:32:32-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 i32 @find_max_clique(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
store i32 0, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
store i32 -1, ptr %4, align 4, !tbaa !5
%5 = call i32 @rec_max_clique(i32 noundef %0, ptr noundef %1, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
%6 = load i32, ptr %4, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %6
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @rec_max_clique(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/kphp-kdb/storage/extr_storage-data.c_find_max_clique.c'
source_filename = "AnghaBench/kphp-kdb/storage/extr_storage-data.c_find_max_clique.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @find_max_clique(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
store i32 0, ptr %3, align 4, !tbaa !6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
store i32 -1, ptr %4, align 4, !tbaa !6
%5 = call i32 @rec_max_clique(i32 noundef %0, ptr noundef %1, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
%6 = load i32, ptr %4, align 4, !tbaa !6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %6
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @rec_max_clique(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| kphp-kdb_storage_extr_storage-data.c_find_max_clique |
; ModuleID = 'AnghaBench/linux/net/wireless/extr_reg.c_reg_set_request_processed.c'
source_filename = "AnghaBench/linux/net/wireless/extr_reg.c_reg_set_request_processed.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@reg_requests_lock = dso_local global i32 0, align 4
@reg_requests_list = dso_local global i32 0, align 4
@reg_work = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @reg_set_request_processed], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @reg_set_request_processed() #0 {
%1 = tail call ptr (...) @get_last_request() #2
store i32 1, ptr %1, align 4, !tbaa !5
%2 = tail call i32 @spin_lock(ptr noundef nonnull @reg_requests_lock) #2
%3 = tail call i32 @list_empty(ptr noundef nonnull @reg_requests_list) #2
%4 = icmp eq i32 %3, 0
%5 = tail call i32 @spin_unlock(ptr noundef nonnull @reg_requests_lock) #2
%6 = tail call i32 (...) @cancel_crda_timeout() #2
br i1 %4, label %7, label %9
7: ; preds = %0
%8 = tail call i32 @schedule_work(ptr noundef nonnull @reg_work) #2
br label %9
9: ; preds = %7, %0
ret void
}
declare ptr @get_last_request(...) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @list_empty(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @cancel_crda_timeout(...) local_unnamed_addr #1
declare i32 @schedule_work(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"regulatory_request", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/net/wireless/extr_reg.c_reg_set_request_processed.c'
source_filename = "AnghaBench/linux/net/wireless/extr_reg.c_reg_set_request_processed.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@reg_requests_lock = common global i32 0, align 4
@reg_requests_list = common global i32 0, align 4
@reg_work = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @reg_set_request_processed], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @reg_set_request_processed() #0 {
%1 = tail call ptr @get_last_request() #2
store i32 1, ptr %1, align 4, !tbaa !6
%2 = tail call i32 @spin_lock(ptr noundef nonnull @reg_requests_lock) #2
%3 = tail call i32 @list_empty(ptr noundef nonnull @reg_requests_list) #2
%4 = icmp eq i32 %3, 0
%5 = tail call i32 @spin_unlock(ptr noundef nonnull @reg_requests_lock) #2
%6 = tail call i32 @cancel_crda_timeout() #2
br i1 %4, label %7, label %9
7: ; preds = %0
%8 = tail call i32 @schedule_work(ptr noundef nonnull @reg_work) #2
br label %9
9: ; preds = %7, %0
ret void
}
declare ptr @get_last_request(...) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @list_empty(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @cancel_crda_timeout(...) local_unnamed_addr #1
declare i32 @schedule_work(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"regulatory_request", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_net_wireless_extr_reg.c_reg_set_request_processed |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_iceland_smumgr.c_iceland_convert_mc_reg_table_entry_to_smc.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_iceland_smumgr.c_iceland_convert_mc_reg_table_entry_to_smc.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_3__ = type { i64, i32, i32, ptr }
%struct.TYPE_4__ = type { i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @iceland_convert_mc_reg_table_entry_to_smc], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @iceland_convert_mc_reg_table_entry_to_smc(ptr nocapture noundef readonly %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = inttoptr i64 %4 to ptr
%6 = load i64, ptr %5, align 8, !tbaa !10
%7 = icmp eq i64 %6, 0
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 0, i32 3
%9 = load ptr, ptr %8, align 8, !tbaa !15
br i1 %7, label %18, label %10
10: ; preds = %3, %15
%11 = phi i64 [ %16, %15 ], [ 0, %3 ]
%12 = getelementptr inbounds %struct.TYPE_4__, ptr %9, i64 %11
%13 = load i64, ptr %12, align 8, !tbaa !16
%14 = icmp ult i64 %13, %1
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = add nuw i64 %11, 1
%17 = icmp eq i64 %16, %6
br i1 %17, label %18, label %10, !llvm.loop !18
18: ; preds = %15, %10, %3
%19 = phi i64 [ 0, %3 ], [ %11, %10 ], [ %6, %15 ]
%20 = icmp eq i64 %19, %6
%21 = icmp ne i64 %19, 0
%22 = and i1 %21, %20
%23 = sext i1 %22 to i64
%24 = getelementptr %struct.TYPE_4__, ptr %9, i64 %19
%25 = getelementptr %struct.TYPE_4__, ptr %24, i64 %23
%26 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 0, i32 2
%27 = load i32, ptr %26, align 4, !tbaa !20
%28 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 0, i32 1
%29 = load i32, ptr %28, align 8, !tbaa !21
%30 = tail call i32 @iceland_convert_mc_registers(ptr noundef %25, ptr noundef %2, i32 noundef %27, i32 noundef %29) #2
ret i32 0
}
declare i32 @iceland_convert_mc_registers(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"pp_hwmgr", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"iceland_smumgr", !12, i64 0}
!12 = !{!"TYPE_3__", !7, i64 0, !13, i64 8, !13, i64 12, !14, i64 16}
!13 = !{!"int", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!11, !14, i64 16}
!16 = !{!17, !7, i64 0}
!17 = !{!"TYPE_4__", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!11, !13, i64 12}
!21 = !{!11, !13, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_iceland_smumgr.c_iceland_convert_mc_reg_table_entry_to_smc.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_iceland_smumgr.c_iceland_convert_mc_reg_table_entry_to_smc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i64 }
@llvm.used = appending global [1 x ptr] [ptr @iceland_convert_mc_reg_table_entry_to_smc], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @iceland_convert_mc_reg_table_entry_to_smc(ptr nocapture noundef readonly %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = inttoptr i64 %4 to ptr
%6 = load i64, ptr %5, align 8, !tbaa !11
%7 = icmp eq i64 %6, 0
%8 = getelementptr inbounds i8, ptr %5, i64 16
%9 = load ptr, ptr %8, align 8, !tbaa !16
br i1 %7, label %18, label %10
10: ; preds = %3, %15
%11 = phi i64 [ %16, %15 ], [ 0, %3 ]
%12 = getelementptr inbounds %struct.TYPE_4__, ptr %9, i64 %11
%13 = load i64, ptr %12, align 8, !tbaa !17
%14 = icmp ult i64 %13, %1
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = add nuw i64 %11, 1
%17 = icmp eq i64 %16, %6
br i1 %17, label %18, label %10, !llvm.loop !19
18: ; preds = %15, %10, %3
%19 = phi i64 [ 0, %3 ], [ %11, %10 ], [ %6, %15 ]
%20 = icmp eq i64 %19, %6
%21 = icmp ne i64 %19, 0
%22 = and i1 %21, %20
%23 = sext i1 %22 to i64
%24 = getelementptr %struct.TYPE_4__, ptr %9, i64 %19
%25 = getelementptr %struct.TYPE_4__, ptr %24, i64 %23
%26 = getelementptr inbounds i8, ptr %5, i64 12
%27 = load i32, ptr %26, align 4, !tbaa !21
%28 = getelementptr inbounds i8, ptr %5, i64 8
%29 = load i32, ptr %28, align 8, !tbaa !22
%30 = tail call i32 @iceland_convert_mc_registers(ptr noundef %25, ptr noundef %2, i32 noundef %27, i32 noundef %29) #2
ret i32 0
}
declare i32 @iceland_convert_mc_registers(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"pp_hwmgr", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"iceland_smumgr", !13, i64 0}
!13 = !{!"TYPE_3__", !8, i64 0, !14, i64 8, !14, i64 12, !15, i64 16}
!14 = !{!"int", !9, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!12, !15, i64 16}
!17 = !{!18, !8, i64 0}
!18 = !{!"TYPE_4__", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !14, i64 12}
!22 = !{!12, !14, i64 8}
| linux_drivers_gpu_drm_amd_powerplay_smumgr_extr_iceland_smumgr.c_iceland_convert_mc_reg_table_entry_to_smc |
; ModuleID = 'AnghaBench/vlc/modules/video_filter/deinterlace/extr_algo_x.c_XDeint8x8DetectC.c'
source_filename = "AnghaBench/vlc/modules/video_filter/deinterlace/extr_algo_x.c_XDeint8x8DetectC.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @XDeint8x8DetectC], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @XDeint8x8DetectC(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = shl nsw i32 %1, 1
%4 = mul nsw i32 %1, 3
%5 = sext i32 %3 to i64
%6 = sext i32 %1 to i64
%7 = sext i32 %4 to i64
br label %8
8: ; preds = %2, %47
%9 = phi i32 [ 0, %2 ], [ %54, %47 ]
%10 = phi i32 [ 0, %2 ], [ %56, %47 ]
%11 = phi ptr [ %0, %2 ], [ %55, %47 ]
br label %12
12: ; preds = %8, %12
%13 = phi i64 [ 0, %8 ], [ %45, %12 ]
%14 = phi i32 [ 0, %8 ], [ %31, %12 ]
%15 = phi i32 [ 0, %8 ], [ %44, %12 ]
%16 = getelementptr inbounds i64, ptr %11, i64 %13
%17 = load i64, ptr %16, align 8, !tbaa !5
%18 = add nsw i64 %13, %6
%19 = getelementptr inbounds i64, ptr %11, i64 %18
%20 = load i64, ptr %19, align 8, !tbaa !5
%21 = sub nsw i64 %17, %20
%22 = tail call i64 @ssd(i64 noundef %21) #2
%23 = load i64, ptr %19, align 8, !tbaa !5
%24 = add nsw i64 %13, %5
%25 = getelementptr inbounds i64, ptr %11, i64 %24
%26 = load i64, ptr %25, align 8, !tbaa !5
%27 = sub nsw i64 %23, %26
%28 = tail call i64 @ssd(i64 noundef %27) #2
%29 = add nsw i64 %28, %22
%30 = trunc i64 %29 to i32
%31 = add i32 %14, %30
%32 = load i64, ptr %16, align 8, !tbaa !5
%33 = load i64, ptr %25, align 8, !tbaa !5
%34 = sub nsw i64 %32, %33
%35 = tail call i64 @ssd(i64 noundef %34) #2
%36 = load i64, ptr %19, align 8, !tbaa !5
%37 = add nsw i64 %13, %7
%38 = getelementptr inbounds i64, ptr %11, i64 %37
%39 = load i64, ptr %38, align 8, !tbaa !5
%40 = sub nsw i64 %36, %39
%41 = tail call i64 @ssd(i64 noundef %40) #2
%42 = add nsw i64 %41, %35
%43 = trunc i64 %42 to i32
%44 = add i32 %15, %43
%45 = add nuw nsw i64 %13, 1
%46 = icmp eq i64 %45, 8
br i1 %46, label %47, label %12, !llvm.loop !9
47: ; preds = %12
%48 = mul nsw i32 %31, 6
%49 = sdiv i32 %48, 8
%50 = icmp slt i32 %44, %49
%51 = icmp sgt i32 %31, 32
%52 = select i1 %50, i1 %51, i1 false
%53 = zext i1 %52 to i32
%54 = add nuw nsw i32 %9, %53
%55 = getelementptr inbounds i64, ptr %11, i64 %5
%56 = add nuw nsw i32 %10, 2
%57 = icmp ult i32 %10, 5
br i1 %57, label %8, label %58, !llvm.loop !11
58: ; preds = %47
%59 = icmp ne i32 %54, 0
%60 = zext i1 %59 to i32
ret i32 %60
}
declare i64 @ssd(i64 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| ; ModuleID = 'AnghaBench/vlc/modules/video_filter/deinterlace/extr_algo_x.c_XDeint8x8DetectC.c'
source_filename = "AnghaBench/vlc/modules/video_filter/deinterlace/extr_algo_x.c_XDeint8x8DetectC.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @XDeint8x8DetectC], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @XDeint8x8DetectC(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = shl nsw i32 %1, 1
%4 = mul nsw i32 %1, 3
%5 = sext i32 %3 to i64
%6 = sext i32 %1 to i64
%7 = sext i32 %4 to i64
br label %8
8: ; preds = %2, %47
%9 = phi i32 [ 0, %2 ], [ %54, %47 ]
%10 = phi i32 [ 0, %2 ], [ %56, %47 ]
%11 = phi ptr [ %0, %2 ], [ %55, %47 ]
br label %12
12: ; preds = %8, %12
%13 = phi i64 [ 0, %8 ], [ %45, %12 ]
%14 = phi i32 [ 0, %8 ], [ %31, %12 ]
%15 = phi i32 [ 0, %8 ], [ %44, %12 ]
%16 = getelementptr inbounds i64, ptr %11, i64 %13
%17 = load i64, ptr %16, align 8, !tbaa !6
%18 = add nsw i64 %13, %6
%19 = getelementptr inbounds i64, ptr %11, i64 %18
%20 = load i64, ptr %19, align 8, !tbaa !6
%21 = sub nsw i64 %17, %20
%22 = tail call i64 @ssd(i64 noundef %21) #2
%23 = load i64, ptr %19, align 8, !tbaa !6
%24 = add nsw i64 %13, %5
%25 = getelementptr inbounds i64, ptr %11, i64 %24
%26 = load i64, ptr %25, align 8, !tbaa !6
%27 = sub nsw i64 %23, %26
%28 = tail call i64 @ssd(i64 noundef %27) #2
%29 = add nsw i64 %28, %22
%30 = trunc i64 %29 to i32
%31 = add i32 %14, %30
%32 = load i64, ptr %16, align 8, !tbaa !6
%33 = load i64, ptr %25, align 8, !tbaa !6
%34 = sub nsw i64 %32, %33
%35 = tail call i64 @ssd(i64 noundef %34) #2
%36 = load i64, ptr %19, align 8, !tbaa !6
%37 = add nsw i64 %13, %7
%38 = getelementptr inbounds i64, ptr %11, i64 %37
%39 = load i64, ptr %38, align 8, !tbaa !6
%40 = sub nsw i64 %36, %39
%41 = tail call i64 @ssd(i64 noundef %40) #2
%42 = add nsw i64 %41, %35
%43 = trunc i64 %42 to i32
%44 = add i32 %15, %43
%45 = add nuw nsw i64 %13, 1
%46 = icmp eq i64 %45, 8
br i1 %46, label %47, label %12, !llvm.loop !10
47: ; preds = %12
%48 = mul nsw i32 %31, 6
%49 = sdiv i32 %48, 8
%50 = icmp slt i32 %44, %49
%51 = icmp sgt i32 %31, 32
%52 = select i1 %50, i1 %51, i1 false
%53 = zext i1 %52 to i32
%54 = add nuw nsw i32 %9, %53
%55 = getelementptr inbounds i64, ptr %11, i64 %5
%56 = add nuw nsw i32 %10, 2
%57 = icmp ult i32 %10, 5
br i1 %57, label %8, label %58, !llvm.loop !12
58: ; preds = %47
%59 = icmp ne i32 %54, 0
%60 = zext i1 %59 to i32
ret i32 %60
}
declare i64 @ssd(i64 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
| vlc_modules_video_filter_deinterlace_extr_algo_x.c_XDeint8x8DetectC |
; ModuleID = 'AnghaBench/freebsd/lib/libprocstat/extr_libprocstat.c_procstat_getpathname_core.c'
source_filename = "AnghaBench/freebsd/lib/libprocstat/extr_libprocstat.c_procstat_getpathname_core.c"
target datalayout = "e-m:e-p270:32:32-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.kinfo_file = type { i64, i32 }
@KF_FD_TYPE_TEXT = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @procstat_getpathname_core], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @procstat_getpathname_core(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = call ptr @kinfo_getfile_core(ptr noundef %0, ptr noundef nonnull %4) #3
%6 = icmp eq ptr %5, null
br i1 %6, label %28, label %7
7: ; preds = %3
%8 = load i32, ptr %4, align 4, !tbaa !5
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %25
10: ; preds = %7
%11 = load i64, ptr @KF_FD_TYPE_TEXT, align 8, !tbaa !9
%12 = zext nneg i32 %8 to i64
br label %16
13: ; preds = %16
%14 = add nuw nsw i64 %17, 1
%15 = icmp eq i64 %14, %12
br i1 %15, label %25, label %16, !llvm.loop !11
16: ; preds = %10, %13
%17 = phi i64 [ 0, %10 ], [ %14, %13 ]
%18 = getelementptr inbounds %struct.kinfo_file, ptr %5, i64 %17
%19 = load i64, ptr %18, align 8, !tbaa !13
%20 = icmp eq i64 %19, %11
br i1 %20, label %21, label %13
21: ; preds = %16
%22 = getelementptr inbounds %struct.kinfo_file, ptr %5, i64 %17, i32 1
%23 = load i32, ptr %22, align 8, !tbaa !15
%24 = call i32 @strncpy(ptr noundef %1, i32 noundef %23, i64 noundef %2) #3
br label %25
25: ; preds = %13, %7, %21
%26 = phi i32 [ 0, %21 ], [ -1, %7 ], [ -1, %13 ]
%27 = call i32 @free(ptr noundef nonnull %5) #3
br label %28
28: ; preds = %3, %25
%29 = phi i32 [ %26, %25 ], [ -1, %3 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @kinfo_getfile_core(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @strncpy(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"kinfo_file", !10, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/lib/libprocstat/extr_libprocstat.c_procstat_getpathname_core.c'
source_filename = "AnghaBench/freebsd/lib/libprocstat/extr_libprocstat.c_procstat_getpathname_core.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.kinfo_file = type { i64, i32 }
@KF_FD_TYPE_TEXT = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @procstat_getpathname_core], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, 1) i32 @procstat_getpathname_core(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = call ptr @kinfo_getfile_core(ptr noundef %0, ptr noundef nonnull %4) #3
%6 = icmp eq ptr %5, null
br i1 %6, label %28, label %7
7: ; preds = %3
%8 = load i32, ptr %4, align 4, !tbaa !6
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %25
10: ; preds = %7
%11 = load i64, ptr @KF_FD_TYPE_TEXT, align 8, !tbaa !10
%12 = zext nneg i32 %8 to i64
br label %16
13: ; preds = %16
%14 = add nuw nsw i64 %17, 1
%15 = icmp eq i64 %14, %12
br i1 %15, label %25, label %16, !llvm.loop !12
16: ; preds = %10, %13
%17 = phi i64 [ 0, %10 ], [ %14, %13 ]
%18 = getelementptr inbounds %struct.kinfo_file, ptr %5, i64 %17
%19 = load i64, ptr %18, align 8, !tbaa !14
%20 = icmp eq i64 %19, %11
br i1 %20, label %21, label %13
21: ; preds = %16
%22 = getelementptr inbounds %struct.kinfo_file, ptr %5, i64 %17, i32 1
%23 = load i32, ptr %22, align 8, !tbaa !16
%24 = call i32 @strncpy(ptr noundef %1, i32 noundef %23, i64 noundef %2) #3
br label %25
25: ; preds = %13, %7, %21
%26 = phi i32 [ 0, %21 ], [ -1, %7 ], [ -1, %13 ]
%27 = call i32 @free(ptr noundef nonnull %5) #3
br label %28
28: ; preds = %3, %25
%29 = phi i32 [ %26, %25 ], [ -1, %3 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @kinfo_getfile_core(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @strncpy(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !11, i64 0}
!15 = !{!"kinfo_file", !11, i64 0, !7, i64 8}
!16 = !{!15, !7, i64 8}
| freebsd_lib_libprocstat_extr_libprocstat.c_procstat_getpathname_core |
; ModuleID = 'AnghaBench/fastsocket/kernel/kernel/extr_capability.c_cap_validate_magic.c'
source_filename = "AnghaBench/fastsocket/kernel/kernel/extr_capability.c_cap_validate_magic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EFAULT = dso_local local_unnamed_addr global i32 0, align 4
@_LINUX_CAPABILITY_U32S_1 = dso_local local_unnamed_addr global i32 0, align 4
@_LINUX_CAPABILITY_U32S_3 = dso_local local_unnamed_addr global i32 0, align 4
@_KERNEL_CAPABILITY_VERSION = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cap_validate_magic], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @cap_validate_magic(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = tail call i64 @get_user(i32 noundef undef, ptr noundef %0) #3
%4 = icmp ne i64 %3, 0
tail call void @llvm.assume(i1 %4)
%5 = load i32, ptr @EFAULT, align 4, !tbaa !5
%6 = sub nsw i32 0, %5
ret i32 %6
}
declare i64 @get_user(i32 noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/kernel/extr_capability.c_cap_validate_magic.c'
source_filename = "AnghaBench/fastsocket/kernel/kernel/extr_capability.c_cap_validate_magic.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EFAULT = common local_unnamed_addr global i32 0, align 4
@_LINUX_CAPABILITY_U32S_1 = common local_unnamed_addr global i32 0, align 4
@_LINUX_CAPABILITY_U32S_3 = common local_unnamed_addr global i32 0, align 4
@_KERNEL_CAPABILITY_VERSION = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cap_validate_magic], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @cap_validate_magic(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = tail call i64 @get_user(i32 noundef undef, ptr noundef %0) #3
%4 = icmp ne i64 %3, 0
tail call void @llvm.assume(i1 %4)
%5 = load i32, ptr @EFAULT, align 4, !tbaa !6
%6 = sub nsw i32 0, %5
ret i32 %6
}
declare i64 @get_user(i32 noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_kernel_extr_capability.c_cap_validate_magic |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_ci_dpm.c_ci_enable_spread_spectrum.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_ci_dpm.c_ci_enable_spread_spectrum.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@GENERAL_PWRMGT = dso_local local_unnamed_addr global i32 0, align 4
@DYN_SPREAD_SPECTRUM_EN = dso_local local_unnamed_addr global i32 0, align 4
@CG_SPLL_SPREAD_SPECTRUM = dso_local local_unnamed_addr global i32 0, align 4
@SSEN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ci_enable_spread_spectrum], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ci_enable_spread_spectrum(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @ci_get_pi(ptr noundef %0) #2
%4 = icmp eq i32 %1, 0
br i1 %4, label %13, label %5
5: ; preds = %2
%6 = load i64, ptr %3, align 8, !tbaa !5
%7 = icmp eq i64 %6, 0
br i1 %7, label %30, label %8
8: ; preds = %5
%9 = load i32, ptr @GENERAL_PWRMGT, align 4, !tbaa !10
%10 = tail call i32 @RREG32_SMC(i32 noundef %9) #2
%11 = load i32, ptr @DYN_SPREAD_SPECTRUM_EN, align 4, !tbaa !10
%12 = or i32 %11, %10
br label %26
13: ; preds = %2
%14 = load i32, ptr @CG_SPLL_SPREAD_SPECTRUM, align 4, !tbaa !10
%15 = tail call i32 @RREG32_SMC(i32 noundef %14) #2
%16 = load i32, ptr @SSEN, align 4, !tbaa !10
%17 = xor i32 %16, -1
%18 = and i32 %15, %17
%19 = load i32, ptr @CG_SPLL_SPREAD_SPECTRUM, align 4, !tbaa !10
%20 = tail call i32 @WREG32_SMC(i32 noundef %19, i32 noundef %18) #2
%21 = load i32, ptr @GENERAL_PWRMGT, align 4, !tbaa !10
%22 = tail call i32 @RREG32_SMC(i32 noundef %21) #2
%23 = load i32, ptr @DYN_SPREAD_SPECTRUM_EN, align 4, !tbaa !10
%24 = xor i32 %23, -1
%25 = and i32 %22, %24
br label %26
26: ; preds = %13, %8
%27 = phi i32 [ %12, %8 ], [ %25, %13 ]
%28 = load i32, ptr @GENERAL_PWRMGT, align 4, !tbaa !10
%29 = tail call i32 @WREG32_SMC(i32 noundef %28, i32 noundef %27) #2
br label %30
30: ; preds = %26, %5
ret void
}
declare ptr @ci_get_pi(ptr noundef) local_unnamed_addr #1
declare i32 @RREG32_SMC(i32 noundef) local_unnamed_addr #1
declare i32 @WREG32_SMC(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ci_power_info", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_ci_dpm.c_ci_enable_spread_spectrum.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_ci_dpm.c_ci_enable_spread_spectrum.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GENERAL_PWRMGT = common local_unnamed_addr global i32 0, align 4
@DYN_SPREAD_SPECTRUM_EN = common local_unnamed_addr global i32 0, align 4
@CG_SPLL_SPREAD_SPECTRUM = common local_unnamed_addr global i32 0, align 4
@SSEN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ci_enable_spread_spectrum], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ci_enable_spread_spectrum(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @ci_get_pi(ptr noundef %0) #2
%4 = icmp eq i32 %1, 0
br i1 %4, label %13, label %5
5: ; preds = %2
%6 = load i64, ptr %3, align 8, !tbaa !6
%7 = icmp eq i64 %6, 0
br i1 %7, label %30, label %8
8: ; preds = %5
%9 = load i32, ptr @GENERAL_PWRMGT, align 4, !tbaa !11
%10 = tail call i32 @RREG32_SMC(i32 noundef %9) #2
%11 = load i32, ptr @DYN_SPREAD_SPECTRUM_EN, align 4, !tbaa !11
%12 = or i32 %11, %10
br label %26
13: ; preds = %2
%14 = load i32, ptr @CG_SPLL_SPREAD_SPECTRUM, align 4, !tbaa !11
%15 = tail call i32 @RREG32_SMC(i32 noundef %14) #2
%16 = load i32, ptr @SSEN, align 4, !tbaa !11
%17 = xor i32 %16, -1
%18 = and i32 %15, %17
%19 = load i32, ptr @CG_SPLL_SPREAD_SPECTRUM, align 4, !tbaa !11
%20 = tail call i32 @WREG32_SMC(i32 noundef %19, i32 noundef %18) #2
%21 = load i32, ptr @GENERAL_PWRMGT, align 4, !tbaa !11
%22 = tail call i32 @RREG32_SMC(i32 noundef %21) #2
%23 = load i32, ptr @DYN_SPREAD_SPECTRUM_EN, align 4, !tbaa !11
%24 = xor i32 %23, -1
%25 = and i32 %22, %24
br label %26
26: ; preds = %13, %8
%27 = phi i32 [ %12, %8 ], [ %25, %13 ]
%28 = load i32, ptr @GENERAL_PWRMGT, align 4, !tbaa !11
%29 = tail call i32 @WREG32_SMC(i32 noundef %28, i32 noundef %27) #2
br label %30
30: ; preds = %26, %5
ret void
}
declare ptr @ci_get_pi(ptr noundef) local_unnamed_addr #1
declare i32 @RREG32_SMC(i32 noundef) local_unnamed_addr #1
declare i32 @WREG32_SMC(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ci_power_info", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
| linux_drivers_gpu_drm_radeon_extr_ci_dpm.c_ci_enable_spread_spectrum |
; ModuleID = 'AnghaBench/libgit2/src/win32/extr_map.c_p_munmap.c'
source_filename = "AnghaBench/libgit2/src/win32/extr_map.c_p_munmap.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_3__ = type { ptr, ptr }
@GIT_ERROR_OS = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"failed to munmap. Could not unmap view of file\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"failed to munmap. Could not close handle\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @p_munmap(ptr noundef %0) local_unnamed_addr #0 {
%2 = icmp ne ptr %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 noundef %3) #2
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %16, label %8
8: ; preds = %1
%9 = tail call i32 @UnmapViewOfFile(ptr noundef nonnull %6) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr @GIT_ERROR_OS, align 4, !tbaa !10
%13 = tail call i32 @git_error_set(i32 noundef %12, ptr noundef nonnull @.str) #2
br label %14
14: ; preds = %11, %8
%15 = phi i32 [ 0, %8 ], [ -1, %11 ]
store ptr null, ptr %5, align 8, !tbaa !5
br label %16
16: ; preds = %14, %1
%17 = phi i32 [ %15, %14 ], [ 0, %1 ]
%18 = load ptr, ptr %0, align 8, !tbaa !12
%19 = icmp eq ptr %18, null
br i1 %19, label %28, label %20
20: ; preds = %16
%21 = tail call i32 @CloseHandle(ptr noundef nonnull %18) #2
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, ptr @GIT_ERROR_OS, align 4, !tbaa !10
%25 = tail call i32 @git_error_set(i32 noundef %24, ptr noundef nonnull @.str.1) #2
br label %26
26: ; preds = %23, %20
%27 = phi i32 [ %17, %20 ], [ -1, %23 ]
store ptr null, ptr %0, align 8, !tbaa !12
br label %28
28: ; preds = %26, %16
%29 = phi i32 [ %27, %26 ], [ %17, %16 ]
ret i32 %29
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @UnmapViewOfFile(ptr noundef) local_unnamed_addr #1
declare i32 @git_error_set(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @CloseHandle(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"TYPE_3__", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/libgit2/src/win32/extr_map.c_p_munmap.c'
source_filename = "AnghaBench/libgit2/src/win32/extr_map.c_p_munmap.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GIT_ERROR_OS = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"failed to munmap. Could not unmap view of file\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"failed to munmap. Could not close handle\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -1, 1) i32 @p_munmap(ptr noundef %0) local_unnamed_addr #0 {
%2 = icmp ne ptr %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 noundef %3) #2
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = icmp eq ptr %6, null
br i1 %7, label %16, label %8
8: ; preds = %1
%9 = tail call i32 @UnmapViewOfFile(ptr noundef nonnull %6) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr @GIT_ERROR_OS, align 4, !tbaa !11
%13 = tail call i32 @git_error_set(i32 noundef %12, ptr noundef nonnull @.str) #2
br label %14
14: ; preds = %11, %8
%15 = phi i32 [ 0, %8 ], [ -1, %11 ]
store ptr null, ptr %5, align 8, !tbaa !6
br label %16
16: ; preds = %14, %1
%17 = phi i32 [ %15, %14 ], [ 0, %1 ]
%18 = load ptr, ptr %0, align 8, !tbaa !13
%19 = icmp eq ptr %18, null
br i1 %19, label %28, label %20
20: ; preds = %16
%21 = tail call i32 @CloseHandle(ptr noundef nonnull %18) #2
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, ptr @GIT_ERROR_OS, align 4, !tbaa !11
%25 = tail call i32 @git_error_set(i32 noundef %24, ptr noundef nonnull @.str.1) #2
br label %26
26: ; preds = %23, %20
%27 = phi i32 [ %17, %20 ], [ -1, %23 ]
store ptr null, ptr %0, align 8, !tbaa !13
br label %28
28: ; preds = %26, %16
%29 = phi i32 [ %27, %26 ], [ %17, %16 ]
ret i32 %29
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @UnmapViewOfFile(ptr noundef) local_unnamed_addr #1
declare i32 @git_error_set(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @CloseHandle(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"TYPE_3__", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!7, !8, i64 0}
| libgit2_src_win32_extr_map.c_p_munmap |
; ModuleID = 'AnghaBench/linux/drivers/scsi/ibmvscsi_tgt/extr_ibmvscsi_tgt.c_ibmvscsis_post_disconnect.c'
source_filename = "AnghaBench/linux/drivers/scsi/ibmvscsi_tgt/extr_ibmvscsi_tgt.c_ibmvscsis_post_disconnect.c"
target datalayout = "e-m:e-p270:32:32-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.scsi_info = type { i32, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [39 x i8] c"post_disconnect: Invalid new state %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [79 x i8] c"post_disconnect: new_state 0x%x, flag_bits 0x%x, vscsi->flags 0x%x, state %hx\0A\00", align 1
@DISCONNECT_SCHEDULED = dso_local local_unnamed_addr global i32 0, align 4
@SCHEDULE_DISCONNECT = dso_local local_unnamed_addr global i32 0, align 4
@ibmvscsis_disconnect = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [53 x i8] c"Leaving post_disconnect: flags 0x%x, new_state 0x%x\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @ibmvscsis_post_disconnect], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ibmvscsis_post_disconnect(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
switch i32 %1, label %4 [
i32 132, label %7
i32 137, label %7
i32 135, label %7
i32 128, label %7
]
4: ; preds = %3
%5 = getelementptr inbounds %struct.scsi_info, ptr %0, i64 0, i32 3
%6 = tail call i32 @dev_err(ptr noundef nonnull %5, ptr noundef nonnull @.str, i32 noundef %1) #2
br label %49
7: ; preds = %3, %3, %3, %3
%8 = load i32, ptr %0, align 4, !tbaa !5
%9 = or i32 %8, %2
store i32 %9, ptr %0, align 4, !tbaa !5
%10 = getelementptr inbounds %struct.scsi_info, ptr %0, i64 0, i32 3
%11 = getelementptr inbounds %struct.scsi_info, ptr %0, i64 0, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !10
%13 = tail call i32 (ptr, ptr, i32, i32, ...) @dev_dbg(ptr noundef nonnull %10, ptr noundef nonnull @.str.1, i32 noundef %1, i32 noundef %2, i32 noundef %9, i32 noundef %12) #2
%14 = load i32, ptr %0, align 4, !tbaa !5
%15 = load i32, ptr @DISCONNECT_SCHEDULED, align 4, !tbaa !11
%16 = load i32, ptr @SCHEDULE_DISCONNECT, align 4, !tbaa !11
%17 = or i32 %16, %15
%18 = and i32 %17, %14
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %31
20: ; preds = %7
%21 = or i32 %16, %14
store i32 %21, ptr %0, align 4, !tbaa !5
%22 = getelementptr inbounds %struct.scsi_info, ptr %0, i64 0, i32 2
store i32 %1, ptr %22, align 4, !tbaa !12
%23 = getelementptr inbounds %struct.scsi_info, ptr %0, i64 0, i32 4
%24 = load i32, ptr @ibmvscsis_disconnect, align 4, !tbaa !11
%25 = tail call i32 @INIT_WORK(ptr noundef nonnull %23, i32 noundef %24) #2
%26 = getelementptr inbounds %struct.scsi_info, ptr %0, i64 0, i32 5
%27 = load i32, ptr %26, align 4, !tbaa !13
%28 = tail call i32 @queue_work(i32 noundef %27, ptr noundef nonnull %23) #2
%29 = load i32, ptr %0, align 4, !tbaa !5
%30 = load i32, ptr %22, align 4, !tbaa !12
br label %45
31: ; preds = %7
%32 = getelementptr inbounds %struct.scsi_info, ptr %0, i64 0, i32 2
%33 = load i32, ptr %32, align 4, !tbaa !12
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32, ptr %11, align 4, !tbaa !10
br label %37
37: ; preds = %31, %35
%38 = phi i32 [ %36, %35 ], [ %33, %31 ]
switch i32 %38, label %45 [
i32 133, label %44
i32 138, label %44
i32 136, label %39
i32 137, label %39
i32 131, label %39
i32 135, label %42
i32 129, label %44
i32 128, label %44
i32 130, label %44
]
39: ; preds = %37, %37, %37
%40 = icmp eq i32 %1, 132
br i1 %40, label %41, label %45
41: ; preds = %39
store i32 132, ptr %32, align 4, !tbaa !12
br label %45
42: ; preds = %37
switch i32 %1, label %45 [
i32 132, label %43
i32 137, label %43
]
43: ; preds = %42, %42
store i32 %1, ptr %32, align 4, !tbaa !12
br label %45
44: ; preds = %37, %37, %37, %37, %37
store i32 %1, ptr %32, align 4, !tbaa !12
br label %45
45: ; preds = %44, %41, %39, %42, %43, %37, %20
%46 = phi i32 [ %1, %44 ], [ 132, %41 ], [ %33, %39 ], [ %33, %42 ], [ %1, %43 ], [ %33, %37 ], [ %30, %20 ]
%47 = phi i32 [ %14, %44 ], [ %14, %41 ], [ %14, %39 ], [ %14, %42 ], [ %14, %43 ], [ %14, %37 ], [ %29, %20 ]
%48 = tail call i32 (ptr, ptr, i32, i32, ...) @dev_dbg(ptr noundef nonnull %10, ptr noundef nonnull @.str.2, i32 noundef %47, i32 noundef %46) #2
br label %49
49: ; preds = %45, %4
ret void
}
declare i32 @dev_err(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @INIT_WORK(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @queue_work(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"scsi_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 20}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/ibmvscsi_tgt/extr_ibmvscsi_tgt.c_ibmvscsis_post_disconnect.c'
source_filename = "AnghaBench/linux/drivers/scsi/ibmvscsi_tgt/extr_ibmvscsi_tgt.c_ibmvscsis_post_disconnect.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [39 x i8] c"post_disconnect: Invalid new state %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [79 x i8] c"post_disconnect: new_state 0x%x, flag_bits 0x%x, vscsi->flags 0x%x, state %hx\0A\00", align 1
@DISCONNECT_SCHEDULED = common local_unnamed_addr global i32 0, align 4
@SCHEDULE_DISCONNECT = common local_unnamed_addr global i32 0, align 4
@ibmvscsis_disconnect = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [53 x i8] c"Leaving post_disconnect: flags 0x%x, new_state 0x%x\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @ibmvscsis_post_disconnect], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ibmvscsis_post_disconnect(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
switch i32 %1, label %4 [
i32 132, label %7
i32 137, label %7
i32 135, label %7
i32 128, label %7
]
4: ; preds = %3
%5 = getelementptr inbounds i8, ptr %0, i64 12
%6 = tail call i32 @dev_err(ptr noundef nonnull %5, ptr noundef nonnull @.str, i32 noundef %1) #2
br label %49
7: ; preds = %3, %3, %3, %3
%8 = load i32, ptr %0, align 4, !tbaa !6
%9 = or i32 %8, %2
store i32 %9, ptr %0, align 4, !tbaa !6
%10 = getelementptr inbounds i8, ptr %0, i64 12
%11 = getelementptr inbounds i8, ptr %0, i64 4
%12 = load i32, ptr %11, align 4, !tbaa !11
%13 = tail call i32 (ptr, ptr, i32, i32, ...) @dev_dbg(ptr noundef nonnull %10, ptr noundef nonnull @.str.1, i32 noundef %1, i32 noundef %2, i32 noundef %9, i32 noundef %12) #2
%14 = load i32, ptr %0, align 4, !tbaa !6
%15 = load i32, ptr @DISCONNECT_SCHEDULED, align 4, !tbaa !12
%16 = load i32, ptr @SCHEDULE_DISCONNECT, align 4, !tbaa !12
%17 = or i32 %16, %15
%18 = and i32 %17, %14
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %31
20: ; preds = %7
%21 = or i32 %16, %14
store i32 %21, ptr %0, align 4, !tbaa !6
%22 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %1, ptr %22, align 4, !tbaa !13
%23 = getelementptr inbounds i8, ptr %0, i64 16
%24 = load i32, ptr @ibmvscsis_disconnect, align 4, !tbaa !12
%25 = tail call i32 @INIT_WORK(ptr noundef nonnull %23, i32 noundef %24) #2
%26 = getelementptr inbounds i8, ptr %0, i64 20
%27 = load i32, ptr %26, align 4, !tbaa !14
%28 = tail call i32 @queue_work(i32 noundef %27, ptr noundef nonnull %23) #2
%29 = load i32, ptr %0, align 4, !tbaa !6
%30 = load i32, ptr %22, align 4, !tbaa !13
br label %45
31: ; preds = %7
%32 = getelementptr inbounds i8, ptr %0, i64 8
%33 = load i32, ptr %32, align 4, !tbaa !13
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32, ptr %11, align 4, !tbaa !11
br label %37
37: ; preds = %31, %35
%38 = phi i32 [ %36, %35 ], [ %33, %31 ]
switch i32 %38, label %45 [
i32 133, label %44
i32 138, label %44
i32 136, label %39
i32 137, label %39
i32 131, label %39
i32 135, label %42
i32 129, label %44
i32 128, label %44
i32 130, label %44
]
39: ; preds = %37, %37, %37
%40 = icmp eq i32 %1, 132
br i1 %40, label %41, label %45
41: ; preds = %39
store i32 132, ptr %32, align 4, !tbaa !13
br label %45
42: ; preds = %37
switch i32 %1, label %45 [
i32 132, label %43
i32 137, label %43
]
43: ; preds = %42, %42
store i32 %1, ptr %32, align 4, !tbaa !13
br label %45
44: ; preds = %37, %37, %37, %37, %37
store i32 %1, ptr %32, align 4, !tbaa !13
br label %45
45: ; preds = %44, %41, %39, %42, %43, %37, %20
%46 = phi i32 [ %1, %44 ], [ 132, %41 ], [ %33, %39 ], [ %33, %42 ], [ %1, %43 ], [ %33, %37 ], [ %30, %20 ]
%47 = phi i32 [ %14, %44 ], [ %14, %41 ], [ %14, %39 ], [ %14, %42 ], [ %14, %43 ], [ %14, %37 ], [ %29, %20 ]
%48 = tail call i32 (ptr, ptr, i32, i32, ...) @dev_dbg(ptr noundef nonnull %10, ptr noundef nonnull @.str.2, i32 noundef %47, i32 noundef %46) #2
br label %49
49: ; preds = %45, %4
ret void
}
declare i32 @dev_err(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @INIT_WORK(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @queue_work(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"scsi_info", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 4}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !8, i64 8}
!14 = !{!7, !8, i64 20}
| linux_drivers_scsi_ibmvscsi_tgt_extr_ibmvscsi_tgt.c_ibmvscsis_post_disconnect |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_kv_dpm.c_kv_convert_8bit_index_to_voltage.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_kv_dpm.c_kv_convert_8bit_index_to_voltage.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @kv_convert_8bit_index_to_voltage], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @kv_convert_8bit_index_to_voltage(ptr nocapture readnone %0, i32 noundef %1) #0 {
%3 = mul i32 %1, -25
%4 = add i32 %3, 6200
ret i32 %4
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_kv_dpm.c_kv_convert_8bit_index_to_voltage.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_kv_dpm.c_kv_convert_8bit_index_to_voltage.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @kv_convert_8bit_index_to_voltage], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal range(i32 -2147477447, -2147483648) i32 @kv_convert_8bit_index_to_voltage(ptr nocapture readnone %0, i32 noundef %1) #0 {
%3 = mul i32 %1, -25
%4 = add i32 %3, 6200
ret i32 %4
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_gpu_drm_amd_amdgpu_extr_kv_dpm.c_kv_convert_8bit_index_to_voltage |
; ModuleID = 'AnghaBench/qmk_firmware/keyboards/mechmini/v2/keymaps/ortho/extr_keymap.c_action_function.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/mechmini/v2/keymaps/ortho/extr_keymap.c_action_function.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@MODS_CTRL_MASK = dso_local local_unnamed_addr global i32 0, align 4
@KC_GRV = dso_local local_unnamed_addr global i32 0, align 4
@KC_ESC = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @action_function(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = icmp eq i32 %1, 128
br i1 %4, label %5, label %28
5: ; preds = %3
%6 = tail call i32 (...) @get_mods() #2
%7 = load i32, ptr @MODS_CTRL_MASK, align 4, !tbaa !5
%8 = and i32 %7, %6
%9 = load i32, ptr %0, align 4, !tbaa !9
%10 = icmp eq i32 %9, 0
%11 = icmp eq i32 %8, 0
br i1 %10, label %19, label %12
12: ; preds = %5
br i1 %11, label %16, label %13
13: ; preds = %12
%14 = load i32, ptr @KC_GRV, align 4, !tbaa !5
%15 = tail call i32 @add_key(i32 noundef %14) #2
br label %26
16: ; preds = %12
%17 = load i32, ptr @KC_ESC, align 4, !tbaa !5
%18 = tail call i32 @add_key(i32 noundef %17) #2
br label %26
19: ; preds = %5
br i1 %11, label %23, label %20
20: ; preds = %19
%21 = load i32, ptr @KC_GRV, align 4, !tbaa !5
%22 = tail call i32 @del_key(i32 noundef %21) #2
br label %26
23: ; preds = %19
%24 = load i32, ptr @KC_ESC, align 4, !tbaa !5
%25 = tail call i32 @del_key(i32 noundef %24) #2
br label %26
26: ; preds = %20, %23, %13, %16
%27 = tail call i32 (...) @send_keyboard_report() #2
br label %28
28: ; preds = %26, %3
ret void
}
declare i32 @get_mods(...) local_unnamed_addr #1
declare i32 @add_key(i32 noundef) local_unnamed_addr #1
declare i32 @send_keyboard_report(...) local_unnamed_addr #1
declare i32 @del_key(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_5__", !11, i64 0}
!11 = !{!"TYPE_4__", !6, i64 0}
| ; ModuleID = 'AnghaBench/qmk_firmware/keyboards/mechmini/v2/keymaps/ortho/extr_keymap.c_action_function.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/mechmini/v2/keymaps/ortho/extr_keymap.c_action_function.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MODS_CTRL_MASK = common local_unnamed_addr global i32 0, align 4
@KC_GRV = common local_unnamed_addr global i32 0, align 4
@KC_ESC = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @action_function(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = icmp eq i32 %1, 128
br i1 %4, label %5, label %28
5: ; preds = %3
%6 = tail call i32 @get_mods() #2
%7 = load i32, ptr @MODS_CTRL_MASK, align 4, !tbaa !6
%8 = and i32 %7, %6
%9 = load i32, ptr %0, align 4, !tbaa !10
%10 = icmp eq i32 %9, 0
%11 = icmp eq i32 %8, 0
br i1 %10, label %19, label %12
12: ; preds = %5
br i1 %11, label %16, label %13
13: ; preds = %12
%14 = load i32, ptr @KC_GRV, align 4, !tbaa !6
%15 = tail call i32 @add_key(i32 noundef %14) #2
br label %26
16: ; preds = %12
%17 = load i32, ptr @KC_ESC, align 4, !tbaa !6
%18 = tail call i32 @add_key(i32 noundef %17) #2
br label %26
19: ; preds = %5
br i1 %11, label %23, label %20
20: ; preds = %19
%21 = load i32, ptr @KC_GRV, align 4, !tbaa !6
%22 = tail call i32 @del_key(i32 noundef %21) #2
br label %26
23: ; preds = %19
%24 = load i32, ptr @KC_ESC, align 4, !tbaa !6
%25 = tail call i32 @del_key(i32 noundef %24) #2
br label %26
26: ; preds = %20, %23, %13, %16
%27 = tail call i32 @send_keyboard_report() #2
br label %28
28: ; preds = %26, %3
ret void
}
declare i32 @get_mods(...) local_unnamed_addr #1
declare i32 @add_key(i32 noundef) local_unnamed_addr #1
declare i32 @send_keyboard_report(...) local_unnamed_addr #1
declare i32 @del_key(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_5__", !12, i64 0}
!12 = !{!"TYPE_4__", !7, i64 0}
| qmk_firmware_keyboards_mechmini_v2_keymaps_ortho_extr_keymap.c_action_function |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_en_tc.c_mlx5e_delete_flower.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_en_tc.c_mlx5e_delete_flower.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@tc_ht_params = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@DELETED = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @mlx5e_delete_flower(ptr nocapture noundef readnone %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = tail call ptr @get_tc_ht(ptr noundef %1, i64 noundef %3) #2
%6 = tail call i32 (...) @rcu_read_lock() #2
%7 = load i32, ptr @tc_ht_params, align 4, !tbaa !5
%8 = tail call ptr @rhashtable_lookup_fast(ptr noundef %5, ptr noundef %2, i32 noundef %7) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %23, label %10
10: ; preds = %4
%11 = tail call i32 @same_flow_direction(ptr noundef nonnull %8, i64 noundef %3) #2
%12 = icmp eq i32 %11, 0
br i1 %12, label %23, label %13
13: ; preds = %10
%14 = load i32, ptr @DELETED, align 4, !tbaa !5
%15 = tail call i64 @flow_flag_test_and_set(ptr noundef nonnull %8, i32 noundef %14) #2
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %13
%18 = load i32, ptr @tc_ht_params, align 4, !tbaa !5
%19 = tail call i32 @rhashtable_remove_fast(ptr noundef %5, ptr noundef nonnull %8, i32 noundef %18) #2
%20 = tail call i32 (...) @rcu_read_unlock() #2
%21 = tail call i32 @trace_mlx5e_delete_flower(ptr noundef %2) #2
%22 = tail call i32 @mlx5e_flow_put(ptr noundef %1, ptr noundef nonnull %8) #2
br label %27
23: ; preds = %13, %4, %10
%24 = load i32, ptr @EINVAL, align 4, !tbaa !5
%25 = sub nsw i32 0, %24
%26 = tail call i32 (...) @rcu_read_unlock() #2
br label %27
27: ; preds = %23, %17
%28 = phi i32 [ %25, %23 ], [ 0, %17 ]
ret i32 %28
}
declare ptr @get_tc_ht(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @rcu_read_lock(...) local_unnamed_addr #1
declare ptr @rhashtable_lookup_fast(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @same_flow_direction(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @flow_flag_test_and_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rhashtable_remove_fast(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rcu_read_unlock(...) local_unnamed_addr #1
declare i32 @trace_mlx5e_delete_flower(ptr noundef) local_unnamed_addr #1
declare i32 @mlx5e_flow_put(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_en_tc.c_mlx5e_delete_flower.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_en_tc.c_mlx5e_delete_flower.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@tc_ht_params = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@DELETED = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @mlx5e_delete_flower(ptr nocapture noundef readnone %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = tail call ptr @get_tc_ht(ptr noundef %1, i64 noundef %3) #2
%6 = tail call i32 @rcu_read_lock() #2
%7 = load i32, ptr @tc_ht_params, align 4, !tbaa !6
%8 = tail call ptr @rhashtable_lookup_fast(ptr noundef %5, ptr noundef %2, i32 noundef %7) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %23, label %10
10: ; preds = %4
%11 = tail call i32 @same_flow_direction(ptr noundef nonnull %8, i64 noundef %3) #2
%12 = icmp eq i32 %11, 0
br i1 %12, label %23, label %13
13: ; preds = %10
%14 = load i32, ptr @DELETED, align 4, !tbaa !6
%15 = tail call i64 @flow_flag_test_and_set(ptr noundef nonnull %8, i32 noundef %14) #2
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %13
%18 = load i32, ptr @tc_ht_params, align 4, !tbaa !6
%19 = tail call i32 @rhashtable_remove_fast(ptr noundef %5, ptr noundef nonnull %8, i32 noundef %18) #2
%20 = tail call i32 @rcu_read_unlock() #2
%21 = tail call i32 @trace_mlx5e_delete_flower(ptr noundef %2) #2
%22 = tail call i32 @mlx5e_flow_put(ptr noundef %1, ptr noundef nonnull %8) #2
br label %27
23: ; preds = %13, %4, %10
%24 = load i32, ptr @EINVAL, align 4, !tbaa !6
%25 = sub nsw i32 0, %24
%26 = tail call i32 @rcu_read_unlock() #2
br label %27
27: ; preds = %23, %17
%28 = phi i32 [ %25, %23 ], [ 0, %17 ]
ret i32 %28
}
declare ptr @get_tc_ht(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @rcu_read_lock(...) local_unnamed_addr #1
declare ptr @rhashtable_lookup_fast(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @same_flow_direction(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @flow_flag_test_and_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rhashtable_remove_fast(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rcu_read_unlock(...) local_unnamed_addr #1
declare i32 @trace_mlx5e_delete_flower(ptr noundef) local_unnamed_addr #1
declare i32 @mlx5e_flow_put(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_ethernet_mellanox_mlx5_core_extr_en_tc.c_mlx5e_delete_flower |
; ModuleID = 'AnghaBench/linux/drivers/ide/extr_ide-atapi.c_ide_init_pc.c'
source_filename = "AnghaBench/linux/drivers/ide/extr_ide-atapi.c_ide_init_pc.c"
target datalayout = "e-m:e-p270:32:32-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 void @ide_init_pc(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @memset(ptr noundef %0, i32 noundef 0, i32 noundef 4) #2
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/ide/extr_ide-atapi.c_ide_init_pc.c'
source_filename = "AnghaBench/linux/drivers/ide/extr_ide-atapi.c_ide_init_pc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @ide_init_pc(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @memset(ptr noundef %0, i32 noundef 0, i32 noundef 4) #2
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_ide_extr_ide-atapi.c_ide_init_pc |
; ModuleID = 'AnghaBench/linux/drivers/gpio/extr_gpio-pca953x.c_pca953x_gpio_set_config.c'
source_filename = "AnghaBench/linux/drivers/gpio/extr_gpio-pca953x.c_pca953x_gpio_set_config.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ENOTSUPP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @pca953x_gpio_set_config], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pca953x_gpio_set_config(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = tail call ptr @gpiochip_get_data(ptr noundef %0) #2
%5 = and i64 %2, -2
%6 = icmp eq i64 %5, 128
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 @pca953x_gpio_set_pull_up_down(ptr noundef %4, i32 noundef %1, i64 noundef %2) #2
br label %12
9: ; preds = %3
%10 = load i32, ptr @ENOTSUPP, align 4, !tbaa !5
%11 = sub nsw i32 0, %10
br label %12
12: ; preds = %9, %7
%13 = phi i32 [ %11, %9 ], [ %8, %7 ]
ret i32 %13
}
declare ptr @gpiochip_get_data(ptr noundef) local_unnamed_addr #1
declare i32 @pca953x_gpio_set_pull_up_down(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpio/extr_gpio-pca953x.c_pca953x_gpio_set_config.c'
source_filename = "AnghaBench/linux/drivers/gpio/extr_gpio-pca953x.c_pca953x_gpio_set_config.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENOTSUPP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @pca953x_gpio_set_config], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @pca953x_gpio_set_config(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = tail call ptr @gpiochip_get_data(ptr noundef %0) #2
%5 = and i64 %2, -2
%6 = icmp eq i64 %5, 128
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 @pca953x_gpio_set_pull_up_down(ptr noundef %4, i32 noundef %1, i64 noundef %2) #2
br label %12
9: ; preds = %3
%10 = load i32, ptr @ENOTSUPP, align 4, !tbaa !6
%11 = sub nsw i32 0, %10
br label %12
12: ; preds = %9, %7
%13 = phi i32 [ %11, %9 ], [ %8, %7 ]
ret i32 %13
}
declare ptr @gpiochip_get_data(ptr noundef) local_unnamed_addr #1
declare i32 @pca953x_gpio_set_pull_up_down(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpio_extr_gpio-pca953x.c_pca953x_gpio_set_config |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/r128/extr_r128_cce.c_r128_do_cce_start.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/r128/extr_r128_cce.c_r128_do_cce_start.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_6__ = type { i32, i32, %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i32 }
@R128_PM4_BUFFER_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@R128_PM4_BUFFER_CNTL_NOUPDATE = dso_local local_unnamed_addr global i32 0, align 4
@R128_PM4_BUFFER_ADDR = dso_local local_unnamed_addr global i32 0, align 4
@R128_PM4_MICRO_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@R128_PM4_MICRO_FREERUN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @r128_do_cce_start], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @r128_do_cce_start(ptr noundef %0) #0 {
%2 = tail call i32 @r128_do_wait_for_idle(ptr noundef %0) #2
%3 = load i32, ptr @R128_PM4_BUFFER_CNTL, align 4, !tbaa !5
%4 = load i32, ptr %0, align 4, !tbaa !9
%5 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 2
%6 = load i32, ptr %5, align 4, !tbaa !12
%7 = or i32 %6, %4
%8 = load i32, ptr @R128_PM4_BUFFER_CNTL_NOUPDATE, align 4, !tbaa !5
%9 = or i32 %7, %8
%10 = tail call i32 @R128_WRITE(i32 noundef %3, i32 noundef %9) #2
%11 = load i32, ptr @R128_PM4_BUFFER_ADDR, align 4, !tbaa !5
%12 = tail call i32 @R128_READ(i32 noundef %11) #2
%13 = load i32, ptr @R128_PM4_MICRO_CNTL, align 4, !tbaa !5
%14 = load i32, ptr @R128_PM4_MICRO_FREERUN, align 4, !tbaa !5
%15 = tail call i32 @R128_WRITE(i32 noundef %13, i32 noundef %14) #2
%16 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 1
store i32 1, ptr %16, align 4, !tbaa !13
ret void
}
declare i32 @r128_do_wait_for_idle(ptr noundef) local_unnamed_addr #1
declare i32 @R128_WRITE(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @R128_READ(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_6__", !6, i64 0, !6, i64 4, !11, i64 8}
!11 = !{!"TYPE_5__", !6, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/r128/extr_r128_cce.c_r128_do_cce_start.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/r128/extr_r128_cce.c_r128_do_cce_start.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@R128_PM4_BUFFER_CNTL = common local_unnamed_addr global i32 0, align 4
@R128_PM4_BUFFER_CNTL_NOUPDATE = common local_unnamed_addr global i32 0, align 4
@R128_PM4_BUFFER_ADDR = common local_unnamed_addr global i32 0, align 4
@R128_PM4_MICRO_CNTL = common local_unnamed_addr global i32 0, align 4
@R128_PM4_MICRO_FREERUN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @r128_do_cce_start], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @r128_do_cce_start(ptr noundef %0) #0 {
%2 = tail call i32 @r128_do_wait_for_idle(ptr noundef %0) #2
%3 = load i32, ptr @R128_PM4_BUFFER_CNTL, align 4, !tbaa !6
%4 = load i32, ptr %0, align 4, !tbaa !10
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load i32, ptr %5, align 4, !tbaa !13
%7 = or i32 %6, %4
%8 = load i32, ptr @R128_PM4_BUFFER_CNTL_NOUPDATE, align 4, !tbaa !6
%9 = or i32 %7, %8
%10 = tail call i32 @R128_WRITE(i32 noundef %3, i32 noundef %9) #2
%11 = load i32, ptr @R128_PM4_BUFFER_ADDR, align 4, !tbaa !6
%12 = tail call i32 @R128_READ(i32 noundef %11) #2
%13 = load i32, ptr @R128_PM4_MICRO_CNTL, align 4, !tbaa !6
%14 = load i32, ptr @R128_PM4_MICRO_FREERUN, align 4, !tbaa !6
%15 = tail call i32 @R128_WRITE(i32 noundef %13, i32 noundef %14) #2
%16 = getelementptr inbounds i8, ptr %0, i64 4
store i32 1, ptr %16, align 4, !tbaa !14
ret void
}
declare i32 @r128_do_wait_for_idle(ptr noundef) local_unnamed_addr #1
declare i32 @R128_WRITE(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @R128_READ(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_6__", !7, i64 0, !7, i64 4, !12, i64 8}
!12 = !{!"TYPE_5__", !7, i64 0}
!13 = !{!11, !7, i64 8}
!14 = !{!11, !7, i64 4}
| fastsocket_kernel_drivers_gpu_drm_r128_extr_r128_cce.c_r128_do_cce_start |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_bt-load.c_branch_target_load_optimize.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_bt-load.c_branch_target_load_optimize.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_4__ = type { ptr, ptr, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { ptr }
@targetm = dso_local local_unnamed_addr global %struct.TYPE_4__ zeroinitializer, align 8
@NO_REGS = dso_local local_unnamed_addr global i32 0, align 4
@issue_rate = dso_local local_unnamed_addr global i32 0, align 4
@optimize = dso_local local_unnamed_addr global i64 0, align 8
@CLEANUP_EXPENSIVE = dso_local local_unnamed_addr global i32 0, align 4
@CDI_DOMINATORS = dso_local local_unnamed_addr global i32 0, align 4
@UPDATE_LIFE_GLOBAL_RM_NOTES = dso_local local_unnamed_addr global i32 0, align 4
@PROP_DEATH_NOTES = dso_local local_unnamed_addr global i32 0, align 4
@PROP_REG_INFO = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @branch_target_load_optimize(i32 noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr @targetm, align 8, !tbaa !5
%3 = tail call i32 (...) %2() #2
%4 = load i32, ptr @NO_REGS, align 4, !tbaa !11
%5 = icmp eq i32 %3, %4
br i1 %5, label %31, label %6
6: ; preds = %1
%7 = load ptr, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @targetm, i64 0, i32 2), align 8, !tbaa !13
%8 = icmp eq ptr %7, null
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 (...) %7() #2
br label %11
11: ; preds = %6, %9
%12 = phi i32 [ %10, %9 ], [ 1, %6 ]
store i32 %12, ptr @issue_rate, align 4, !tbaa !11
%13 = load i64, ptr @optimize, align 8, !tbaa !14
%14 = icmp eq i64 %13, 0
%15 = load i32, ptr @CLEANUP_EXPENSIVE, align 4
%16 = select i1 %14, i32 0, i32 %15
%17 = tail call i32 @cleanup_cfg(i32 noundef %16) #2
%18 = tail call i32 @life_analysis(i32 noundef 0) #2
%19 = load i32, ptr @CDI_DOMINATORS, align 4, !tbaa !11
%20 = tail call i32 @calculate_dominance_info(i32 noundef %19) #2
%21 = load ptr, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @targetm, i64 0, i32 1), align 8, !tbaa !16
%22 = tail call i32 %21(i32 noundef %0) #2
%23 = tail call i32 @migrate_btr_defs(i32 noundef %3, i32 noundef %22) #2
%24 = load i32, ptr @CDI_DOMINATORS, align 4, !tbaa !11
%25 = tail call i32 @free_dominance_info(i32 noundef %24) #2
%26 = load i32, ptr @UPDATE_LIFE_GLOBAL_RM_NOTES, align 4, !tbaa !11
%27 = load i32, ptr @PROP_DEATH_NOTES, align 4, !tbaa !11
%28 = load i32, ptr @PROP_REG_INFO, align 4, !tbaa !11
%29 = or i32 %28, %27
%30 = tail call i32 @update_life_info(ptr noundef null, i32 noundef %26, i32 noundef %29) #2
br label %31
31: ; preds = %11, %1
ret void
}
declare i32 @cleanup_cfg(i32 noundef) local_unnamed_addr #1
declare i32 @life_analysis(i32 noundef) local_unnamed_addr #1
declare i32 @calculate_dominance_info(i32 noundef) local_unnamed_addr #1
declare i32 @migrate_btr_defs(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @free_dominance_info(i32 noundef) local_unnamed_addr #1
declare i32 @update_life_info(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_4__", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_3__", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!6, !7, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !7, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_bt-load.c_branch_target_load_optimize.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_bt-load.c_branch_target_load_optimize.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { ptr, ptr, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { ptr }
@targetm = common local_unnamed_addr global %struct.TYPE_4__ zeroinitializer, align 8
@NO_REGS = common local_unnamed_addr global i32 0, align 4
@issue_rate = common local_unnamed_addr global i32 0, align 4
@optimize = common local_unnamed_addr global i64 0, align 8
@CLEANUP_EXPENSIVE = common local_unnamed_addr global i32 0, align 4
@CDI_DOMINATORS = common local_unnamed_addr global i32 0, align 4
@UPDATE_LIFE_GLOBAL_RM_NOTES = common local_unnamed_addr global i32 0, align 4
@PROP_DEATH_NOTES = common local_unnamed_addr global i32 0, align 4
@PROP_REG_INFO = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @branch_target_load_optimize(i32 noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr @targetm, align 8, !tbaa !6
%3 = tail call i32 %2() #2
%4 = load i32, ptr @NO_REGS, align 4, !tbaa !12
%5 = icmp eq i32 %3, %4
br i1 %5, label %31, label %6
6: ; preds = %1
%7 = load ptr, ptr getelementptr inbounds (i8, ptr @targetm, i64 16), align 8, !tbaa !14
%8 = icmp eq ptr %7, null
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 %7() #2
br label %11
11: ; preds = %6, %9
%12 = phi i32 [ %10, %9 ], [ 1, %6 ]
store i32 %12, ptr @issue_rate, align 4, !tbaa !12
%13 = load i64, ptr @optimize, align 8, !tbaa !15
%14 = icmp eq i64 %13, 0
%15 = load i32, ptr @CLEANUP_EXPENSIVE, align 4
%16 = select i1 %14, i32 0, i32 %15
%17 = tail call i32 @cleanup_cfg(i32 noundef %16) #2
%18 = tail call i32 @life_analysis(i32 noundef 0) #2
%19 = load i32, ptr @CDI_DOMINATORS, align 4, !tbaa !12
%20 = tail call i32 @calculate_dominance_info(i32 noundef %19) #2
%21 = load ptr, ptr getelementptr inbounds (i8, ptr @targetm, i64 8), align 8, !tbaa !17
%22 = tail call i32 %21(i32 noundef %0) #2
%23 = tail call i32 @migrate_btr_defs(i32 noundef %3, i32 noundef %22) #2
%24 = load i32, ptr @CDI_DOMINATORS, align 4, !tbaa !12
%25 = tail call i32 @free_dominance_info(i32 noundef %24) #2
%26 = load i32, ptr @UPDATE_LIFE_GLOBAL_RM_NOTES, align 4, !tbaa !12
%27 = load i32, ptr @PROP_DEATH_NOTES, align 4, !tbaa !12
%28 = load i32, ptr @PROP_REG_INFO, align 4, !tbaa !12
%29 = or i32 %28, %27
%30 = tail call i32 @update_life_info(ptr noundef null, i32 noundef %26, i32 noundef %29) #2
br label %31
31: ; preds = %11, %1
ret void
}
declare i32 @cleanup_cfg(i32 noundef) local_unnamed_addr #1
declare i32 @life_analysis(i32 noundef) local_unnamed_addr #1
declare i32 @calculate_dominance_info(i32 noundef) local_unnamed_addr #1
declare i32 @migrate_btr_defs(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @free_dominance_info(i32 noundef) local_unnamed_addr #1
declare i32 @update_life_info(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_3__", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!7, !8, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = !{!7, !8, i64 8}
| freebsd_contrib_gcc_extr_bt-load.c_branch_target_load_optimize |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/pensando/ionic/extr_ionic_lif.c_ionic_qcq_free.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/pensando/ionic/extr_ionic_lif.c_ionic_qcq_free.c"
target datalayout = "e-m:e-p270:32:32-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.ionic_qcq = type { i32, %struct.TYPE_7__, %struct.TYPE_6__, %struct.TYPE_5__, i32, ptr, i32 }
%struct.TYPE_7__ = type { ptr }
%struct.TYPE_6__ = type { ptr }
%struct.TYPE_5__ = type { i32 }
@IONIC_QCQ_F_INTR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ionic_qcq_free], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ionic_qcq_free(ptr noundef %0, ptr noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = icmp eq ptr %1, null
br i1 %5, label %30, label %6
6: ; preds = %2
%7 = getelementptr inbounds %struct.ionic_qcq, ptr %1, i64 0, i32 6
%8 = load i32, ptr %7, align 8, !tbaa !12
%9 = getelementptr inbounds %struct.ionic_qcq, ptr %1, i64 0, i32 5
%10 = load ptr, ptr %9, align 8, !tbaa !18
%11 = getelementptr inbounds %struct.ionic_qcq, ptr %1, i64 0, i32 4
%12 = load i32, ptr %11, align 4, !tbaa !19
%13 = tail call i32 @dma_free_coherent(ptr noundef %4, i32 noundef %8, ptr noundef %10, i32 noundef %12) #2
store ptr null, ptr %9, align 8, !tbaa !18
store i32 0, ptr %11, align 4, !tbaa !19
%14 = load i32, ptr %1, align 8, !tbaa !20
%15 = load i32, ptr @IONIC_QCQ_F_INTR, align 4, !tbaa !21
%16 = and i32 %15, %14
%17 = icmp eq i32 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %6
%19 = getelementptr inbounds %struct.ionic_qcq, ptr %1, i64 0, i32 3
%20 = load i32, ptr %19, align 8, !tbaa !22
%21 = tail call i32 @ionic_intr_free(ptr noundef nonnull %0, i32 noundef %20) #2
br label %22
22: ; preds = %18, %6
%23 = getelementptr inbounds %struct.ionic_qcq, ptr %1, i64 0, i32 2
%24 = load ptr, ptr %23, align 8, !tbaa !23
%25 = tail call i32 @devm_kfree(ptr noundef %4, ptr noundef %24) #2
store ptr null, ptr %23, align 8, !tbaa !23
%26 = getelementptr inbounds %struct.ionic_qcq, ptr %1, i64 0, i32 1
%27 = load ptr, ptr %26, align 8, !tbaa !24
%28 = tail call i32 @devm_kfree(ptr noundef %4, ptr noundef %27) #2
store ptr null, ptr %26, align 8, !tbaa !24
%29 = tail call i32 @devm_kfree(ptr noundef %4, ptr noundef nonnull %1) #2
br label %30
30: ; preds = %2, %22
ret void
}
declare i32 @dma_free_coherent(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ionic_intr_free(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @devm_kfree(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ionic_lif", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_8__", !7, i64 0}
!12 = !{!13, !14, i64 40}
!13 = !{!"ionic_qcq", !14, i64 0, !15, i64 8, !16, i64 16, !17, i64 24, !14, i64 28, !7, i64 32, !14, i64 40}
!14 = !{!"int", !8, i64 0}
!15 = !{!"TYPE_7__", !7, i64 0}
!16 = !{!"TYPE_6__", !7, i64 0}
!17 = !{!"TYPE_5__", !14, i64 0}
!18 = !{!13, !7, i64 32}
!19 = !{!13, !14, i64 28}
!20 = !{!13, !14, i64 0}
!21 = !{!14, !14, i64 0}
!22 = !{!13, !14, i64 24}
!23 = !{!13, !7, i64 16}
!24 = !{!13, !7, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/pensando/ionic/extr_ionic_lif.c_ionic_qcq_free.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/pensando/ionic/extr_ionic_lif.c_ionic_qcq_free.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IONIC_QCQ_F_INTR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ionic_qcq_free], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ionic_qcq_free(ptr noundef %0, ptr noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = icmp eq ptr %1, null
br i1 %5, label %30, label %6
6: ; preds = %2
%7 = getelementptr inbounds i8, ptr %1, i64 40
%8 = load i32, ptr %7, align 8, !tbaa !13
%9 = getelementptr inbounds i8, ptr %1, i64 32
%10 = load ptr, ptr %9, align 8, !tbaa !19
%11 = getelementptr inbounds i8, ptr %1, i64 28
%12 = load i32, ptr %11, align 4, !tbaa !20
%13 = tail call i32 @dma_free_coherent(ptr noundef %4, i32 noundef %8, ptr noundef %10, i32 noundef %12) #2
store ptr null, ptr %9, align 8, !tbaa !19
store i32 0, ptr %11, align 4, !tbaa !20
%14 = load i32, ptr %1, align 8, !tbaa !21
%15 = load i32, ptr @IONIC_QCQ_F_INTR, align 4, !tbaa !22
%16 = and i32 %15, %14
%17 = icmp eq i32 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %6
%19 = getelementptr inbounds i8, ptr %1, i64 24
%20 = load i32, ptr %19, align 8, !tbaa !23
%21 = tail call i32 @ionic_intr_free(ptr noundef nonnull %0, i32 noundef %20) #2
br label %22
22: ; preds = %18, %6
%23 = getelementptr inbounds i8, ptr %1, i64 16
%24 = load ptr, ptr %23, align 8, !tbaa !24
%25 = tail call i32 @devm_kfree(ptr noundef %4, ptr noundef %24) #2
store ptr null, ptr %23, align 8, !tbaa !24
%26 = getelementptr inbounds i8, ptr %1, i64 8
%27 = load ptr, ptr %26, align 8, !tbaa !25
%28 = tail call i32 @devm_kfree(ptr noundef %4, ptr noundef %27) #2
store ptr null, ptr %26, align 8, !tbaa !25
%29 = tail call i32 @devm_kfree(ptr noundef %4, ptr noundef nonnull %1) #2
br label %30
30: ; preds = %2, %22
ret void
}
declare i32 @dma_free_coherent(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ionic_intr_free(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @devm_kfree(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ionic_lif", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_8__", !8, i64 0}
!13 = !{!14, !15, i64 40}
!14 = !{!"ionic_qcq", !15, i64 0, !16, i64 8, !17, i64 16, !18, i64 24, !15, i64 28, !8, i64 32, !15, i64 40}
!15 = !{!"int", !9, i64 0}
!16 = !{!"TYPE_7__", !8, i64 0}
!17 = !{!"TYPE_6__", !8, i64 0}
!18 = !{!"TYPE_5__", !15, i64 0}
!19 = !{!14, !8, i64 32}
!20 = !{!14, !15, i64 28}
!21 = !{!14, !15, i64 0}
!22 = !{!15, !15, i64 0}
!23 = !{!14, !15, i64 24}
!24 = !{!14, !8, i64 16}
!25 = !{!14, !8, i64 8}
| linux_drivers_net_ethernet_pensando_ionic_extr_ionic_lif.c_ionic_qcq_free |
; ModuleID = 'AnghaBench/freebsd/contrib/unbound/sldns/extr_wire2str.c_print_remainder_hex.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/sldns/extr_wire2str.c_print_remainder_hex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @print_remainder_hex], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @print_remainder_hex(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = tail call i64 @sldns_str_print(ptr noundef %3, ptr noundef %4, ptr noundef nonnull @.str, ptr noundef %0) #2
%7 = load ptr, ptr %1, align 8, !tbaa !5
%8 = load i64, ptr %2, align 8, !tbaa !9
%9 = tail call i64 @print_hex_buf(ptr noundef %3, ptr noundef %4, ptr noundef %7, i64 noundef %8) #2
%10 = add i64 %9, %6
%11 = trunc i64 %10 to i32
%12 = load i64, ptr %2, align 8, !tbaa !9
%13 = load ptr, ptr %1, align 8, !tbaa !5
%14 = getelementptr inbounds i32, ptr %13, i64 %12
store ptr %14, ptr %1, align 8, !tbaa !5
store i64 0, ptr %2, align 8, !tbaa !9
ret i32 %11
}
declare i64 @sldns_str_print(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @print_hex_buf(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!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}
| ; ModuleID = 'AnghaBench/freebsd/contrib/unbound/sldns/extr_wire2str.c_print_remainder_hex.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/sldns/extr_wire2str.c_print_remainder_hex.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @print_remainder_hex], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @print_remainder_hex(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = tail call i64 @sldns_str_print(ptr noundef %3, ptr noundef %4, ptr noundef nonnull @.str, ptr noundef %0) #2
%7 = load ptr, ptr %1, align 8, !tbaa !6
%8 = load i64, ptr %2, align 8, !tbaa !10
%9 = tail call i64 @print_hex_buf(ptr noundef %3, ptr noundef %4, ptr noundef %7, i64 noundef %8) #2
%10 = add i64 %9, %6
%11 = trunc i64 %10 to i32
%12 = load i64, ptr %2, align 8, !tbaa !10
%13 = load ptr, ptr %1, align 8, !tbaa !6
%14 = getelementptr inbounds i32, ptr %13, i64 %12
store ptr %14, ptr %1, align 8, !tbaa !6
store i64 0, ptr %2, align 8, !tbaa !10
ret i32 %11
}
declare i64 @sldns_str_print(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @print_hex_buf(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
| freebsd_contrib_unbound_sldns_extr_wire2str.c_print_remainder_hex |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_els.c_lpfc_cmpl_els_logo_acc.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_els.c_lpfc_cmpl_els_logo_acc.c"
target datalayout = "e-m:e-p270:32:32-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.lpfc_iocbq = type { ptr, %struct.TYPE_4__, ptr }
%struct.TYPE_4__ = type { %struct.TYPE_3__, i32 }
%struct.TYPE_3__ = type { ptr }
%struct.lpfc_nodelist = type { i64, i32, i32, i32, i32 }
@LPFC_DISC_TRC_ELS_RSP = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [40 x i8] c"ACC LOGO cmpl: status:x%x/x%x did:x%x\00", align 1
@KERN_INFO = dso_local local_unnamed_addr global i32 0, align 4
@LOG_ELS = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [59 x i8] c"0109 ACC to LOGO completes to NPort x%x Data: x%x x%x x%x\0A\00", align 1
@NLP_STE_NPR_NODE = dso_local local_unnamed_addr global i64 0, align 8
@NLP_FABRIC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @lpfc_cmpl_els_logo_acc], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @lpfc_cmpl_els_logo_acc(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = load ptr, ptr %1, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.lpfc_iocbq, ptr %1, i64 0, i32 2
%6 = load ptr, ptr %5, align 8, !tbaa !13
%7 = getelementptr inbounds %struct.lpfc_iocbq, ptr %2, i64 0, i32 1
%8 = load i32, ptr @LPFC_DISC_TRC_ELS_RSP, align 4, !tbaa !14
%9 = getelementptr inbounds %struct.lpfc_iocbq, ptr %2, i64 0, i32 1, i32 1
%10 = load i32, ptr %9, align 8, !tbaa !15
%11 = load ptr, ptr %7, align 8, !tbaa !16
%12 = getelementptr inbounds i32, ptr %11, i64 4
%13 = load i32, ptr %12, align 4, !tbaa !14
%14 = getelementptr inbounds %struct.lpfc_nodelist, ptr %4, i64 0, i32 4
%15 = load i32, ptr %14, align 4, !tbaa !17
%16 = tail call i32 @lpfc_debugfs_disc_trc(ptr noundef %6, i32 noundef %8, ptr noundef nonnull @.str, i32 noundef %10, i32 noundef %13, i32 noundef %15) #2
%17 = load i32, ptr @KERN_INFO, align 4, !tbaa !14
%18 = load i32, ptr @LOG_ELS, align 4, !tbaa !14
%19 = load i32, ptr %14, align 4, !tbaa !17
%20 = getelementptr inbounds %struct.lpfc_nodelist, ptr %4, i64 0, i32 3
%21 = load i32, ptr %20, align 8, !tbaa !20
%22 = load i64, ptr %4, align 8, !tbaa !21
%23 = getelementptr inbounds %struct.lpfc_nodelist, ptr %4, i64 0, i32 2
%24 = load i32, ptr %23, align 4, !tbaa !22
%25 = tail call i32 @lpfc_printf_vlog(ptr noundef %6, i32 noundef %17, i32 noundef %18, ptr noundef nonnull @.str.1, i32 noundef %19, i32 noundef %21, i64 noundef %22, i32 noundef %24) #2
%26 = load i64, ptr %4, align 8, !tbaa !21
%27 = load i64, ptr @NLP_STE_NPR_NODE, align 8, !tbaa !23
%28 = icmp eq i64 %26, %27
br i1 %28, label %29, label %35
29: ; preds = %3
%30 = tail call i32 @lpfc_nlp_not_used(ptr noundef nonnull %4) #2
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = tail call i32 @lpfc_unreg_rpi(ptr noundef %6, ptr noundef nonnull %4) #2
br label %35
34: ; preds = %29
store ptr null, ptr %1, align 8, !tbaa !5
br label %35
35: ; preds = %32, %34, %3
%36 = tail call i32 @lpfc_els_free_iocb(ptr noundef %0, ptr noundef nonnull %1) #2
%37 = getelementptr inbounds %struct.lpfc_nodelist, ptr %4, i64 0, i32 1
%38 = load i32, ptr %37, align 8, !tbaa !24
%39 = load i32, ptr @NLP_FABRIC, align 4, !tbaa !14
%40 = and i32 %39, %38
%41 = icmp eq i32 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %35
%43 = tail call i32 @lpfc_nlp_put(ptr noundef nonnull %4) #2
br label %44
44: ; preds = %42, %35
ret void
}
declare i32 @lpfc_debugfs_disc_trc(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_printf_vlog(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_nlp_not_used(ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_unreg_rpi(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_els_free_iocb(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_nlp_put(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"lpfc_iocbq", !7, i64 0, !10, i64 8, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_4__", !11, i64 0, !12, i64 8}
!11 = !{!"TYPE_3__", !7, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 8}
!16 = !{!10, !7, i64 0}
!17 = !{!18, !12, i64 20}
!18 = !{!"lpfc_nodelist", !19, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!19 = !{!"long", !8, i64 0}
!20 = !{!18, !12, i64 16}
!21 = !{!18, !19, i64 0}
!22 = !{!18, !12, i64 12}
!23 = !{!19, !19, i64 0}
!24 = !{!18, !12, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_els.c_lpfc_cmpl_els_logo_acc.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_els.c_lpfc_cmpl_els_logo_acc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LPFC_DISC_TRC_ELS_RSP = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [40 x i8] c"ACC LOGO cmpl: status:x%x/x%x did:x%x\00", align 1
@KERN_INFO = common local_unnamed_addr global i32 0, align 4
@LOG_ELS = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [59 x i8] c"0109 ACC to LOGO completes to NPort x%x Data: x%x x%x x%x\0A\00", align 1
@NLP_STE_NPR_NODE = common local_unnamed_addr global i64 0, align 8
@NLP_FABRIC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @lpfc_cmpl_els_logo_acc], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @lpfc_cmpl_els_logo_acc(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = load ptr, ptr %1, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %1, i64 24
%6 = load ptr, ptr %5, align 8, !tbaa !14
%7 = getelementptr inbounds i8, ptr %2, i64 8
%8 = load i32, ptr @LPFC_DISC_TRC_ELS_RSP, align 4, !tbaa !15
%9 = getelementptr inbounds i8, ptr %2, i64 16
%10 = load i32, ptr %9, align 8, !tbaa !16
%11 = load ptr, ptr %7, align 8, !tbaa !17
%12 = getelementptr inbounds i8, ptr %11, i64 16
%13 = load i32, ptr %12, align 4, !tbaa !15
%14 = getelementptr inbounds i8, ptr %4, i64 20
%15 = load i32, ptr %14, align 4, !tbaa !18
%16 = tail call i32 @lpfc_debugfs_disc_trc(ptr noundef %6, i32 noundef %8, ptr noundef nonnull @.str, i32 noundef %10, i32 noundef %13, i32 noundef %15) #2
%17 = load i32, ptr @KERN_INFO, align 4, !tbaa !15
%18 = load i32, ptr @LOG_ELS, align 4, !tbaa !15
%19 = load i32, ptr %14, align 4, !tbaa !18
%20 = getelementptr inbounds i8, ptr %4, i64 16
%21 = load i32, ptr %20, align 8, !tbaa !21
%22 = load i64, ptr %4, align 8, !tbaa !22
%23 = getelementptr inbounds i8, ptr %4, i64 12
%24 = load i32, ptr %23, align 4, !tbaa !23
%25 = tail call i32 @lpfc_printf_vlog(ptr noundef %6, i32 noundef %17, i32 noundef %18, ptr noundef nonnull @.str.1, i32 noundef %19, i32 noundef %21, i64 noundef %22, i32 noundef %24) #2
%26 = load i64, ptr %4, align 8, !tbaa !22
%27 = load i64, ptr @NLP_STE_NPR_NODE, align 8, !tbaa !24
%28 = icmp eq i64 %26, %27
br i1 %28, label %29, label %35
29: ; preds = %3
%30 = tail call i32 @lpfc_nlp_not_used(ptr noundef nonnull %4) #2
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = tail call i32 @lpfc_unreg_rpi(ptr noundef %6, ptr noundef nonnull %4) #2
br label %35
34: ; preds = %29
store ptr null, ptr %1, align 8, !tbaa !6
br label %35
35: ; preds = %32, %34, %3
%36 = tail call i32 @lpfc_els_free_iocb(ptr noundef %0, ptr noundef nonnull %1) #2
%37 = getelementptr inbounds i8, ptr %4, i64 8
%38 = load i32, ptr %37, align 8, !tbaa !25
%39 = load i32, ptr @NLP_FABRIC, align 4, !tbaa !15
%40 = and i32 %39, %38
%41 = icmp eq i32 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %35
%43 = tail call i32 @lpfc_nlp_put(ptr noundef nonnull %4) #2
br label %44
44: ; preds = %42, %35
ret void
}
declare i32 @lpfc_debugfs_disc_trc(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_printf_vlog(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_nlp_not_used(ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_unreg_rpi(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_els_free_iocb(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_nlp_put(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"lpfc_iocbq", !8, i64 0, !11, i64 8, !8, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_4__", !12, i64 0, !13, i64 8}
!12 = !{!"TYPE_3__", !8, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!7, !8, i64 24}
!15 = !{!13, !13, i64 0}
!16 = !{!11, !13, i64 8}
!17 = !{!11, !8, i64 0}
!18 = !{!19, !13, i64 20}
!19 = !{!"lpfc_nodelist", !20, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!20 = !{!"long", !9, i64 0}
!21 = !{!19, !13, i64 16}
!22 = !{!19, !20, i64 0}
!23 = !{!19, !13, i64 12}
!24 = !{!20, !20, i64 0}
!25 = !{!19, !13, i64 8}
| fastsocket_kernel_drivers_scsi_lpfc_extr_lpfc_els.c_lpfc_cmpl_els_logo_acc |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/et61x251/extr_et61x251_core.c_et61x251_release.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/et61x251/extr_et61x251_core.c_et61x251_release.c"
target datalayout = "e-m:e-p270:32:32-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.et61x251_device = type { i32, ptr, i32, i32 }
@et61x251_dev_lock = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"Video device /dev/video%d closed\00", align 1
@et61x251_release_resources = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @et61x251_release], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @et61x251_release(ptr noundef %0) #0 {
%2 = tail call i32 @down_write(ptr noundef nonnull @et61x251_dev_lock) #2
%3 = tail call ptr @video_drvdata(ptr noundef %0) #2
%4 = tail call i32 @et61x251_stop_transfer(ptr noundef %3) #2
%5 = tail call i32 @et61x251_release_buffers(ptr noundef %3) #2
%6 = getelementptr inbounds %struct.et61x251_device, ptr %3, i64 0, i32 3
%7 = load i32, ptr %6, align 4, !tbaa !5
%8 = add nsw i32 %7, -1
store i32 %8, ptr %6, align 4, !tbaa !5
%9 = getelementptr inbounds %struct.et61x251_device, ptr %3, i64 0, i32 2
%10 = tail call i32 @wake_up_interruptible_nr(ptr noundef nonnull %9, i32 noundef 1) #2
%11 = getelementptr inbounds %struct.et61x251_device, ptr %3, i64 0, i32 1
%12 = load ptr, ptr %11, align 8, !tbaa !11
%13 = load i32, ptr %12, align 4, !tbaa !12
%14 = tail call i32 @DBG(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef %13) #2
%15 = load i32, ptr @et61x251_release_resources, align 4, !tbaa !14
%16 = tail call i32 @kref_put(ptr noundef %3, i32 noundef %15) #2
%17 = tail call i32 @up_write(ptr noundef nonnull @et61x251_dev_lock) #2
ret i32 0
}
declare i32 @down_write(ptr noundef) local_unnamed_addr #1
declare ptr @video_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @et61x251_stop_transfer(ptr noundef) local_unnamed_addr #1
declare i32 @et61x251_release_buffers(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up_interruptible_nr(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @DBG(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kref_put(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @up_write(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 20}
!6 = !{!"et61x251_device", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_2__", !7, i64 0}
!14 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/et61x251/extr_et61x251_core.c_et61x251_release.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/et61x251/extr_et61x251_core.c_et61x251_release.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@et61x251_dev_lock = common global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"Video device /dev/video%d closed\00", align 1
@et61x251_release_resources = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @et61x251_release], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @et61x251_release(ptr noundef %0) #0 {
%2 = tail call i32 @down_write(ptr noundef nonnull @et61x251_dev_lock) #2
%3 = tail call ptr @video_drvdata(ptr noundef %0) #2
%4 = tail call i32 @et61x251_stop_transfer(ptr noundef %3) #2
%5 = tail call i32 @et61x251_release_buffers(ptr noundef %3) #2
%6 = getelementptr inbounds i8, ptr %3, i64 20
%7 = load i32, ptr %6, align 4, !tbaa !6
%8 = add nsw i32 %7, -1
store i32 %8, ptr %6, align 4, !tbaa !6
%9 = getelementptr inbounds i8, ptr %3, i64 16
%10 = tail call i32 @wake_up_interruptible_nr(ptr noundef nonnull %9, i32 noundef 1) #2
%11 = getelementptr inbounds i8, ptr %3, i64 8
%12 = load ptr, ptr %11, align 8, !tbaa !12
%13 = load i32, ptr %12, align 4, !tbaa !13
%14 = tail call i32 @DBG(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef %13) #2
%15 = load i32, ptr @et61x251_release_resources, align 4, !tbaa !15
%16 = tail call i32 @kref_put(ptr noundef %3, i32 noundef %15) #2
%17 = tail call i32 @up_write(ptr noundef nonnull @et61x251_dev_lock) #2
ret i32 0
}
declare i32 @down_write(ptr noundef) local_unnamed_addr #1
declare ptr @video_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @et61x251_stop_transfer(ptr noundef) local_unnamed_addr #1
declare i32 @et61x251_release_buffers(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up_interruptible_nr(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @DBG(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kref_put(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @up_write(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 20}
!7 = !{!"et61x251_device", !8, i64 0, !11, i64 8, !8, i64 16, !8, i64 20}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_2__", !8, i64 0}
!15 = !{!8, !8, i64 0}
| fastsocket_kernel_drivers_media_video_et61x251_extr_et61x251_core.c_et61x251_release |
; ModuleID = 'AnghaBench/linux/drivers/media/platform/vsp1/extr_vsp1_lut.c_lut_enum_mbus_code.c'
source_filename = "AnghaBench/linux/drivers/media/platform/vsp1/extr_vsp1_lut.c_lut_enum_mbus_code.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@lut_codes = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @lut_enum_mbus_code], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @lut_enum_mbus_code(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = load i32, ptr @lut_codes, align 4, !tbaa !5
%5 = tail call i32 @ARRAY_SIZE(i32 noundef %4) #2
%6 = tail call i32 @vsp1_subdev_enum_mbus_code(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %4, i32 noundef %5) #2
ret i32 %6
}
declare i32 @vsp1_subdev_enum_mbus_code(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/media/platform/vsp1/extr_vsp1_lut.c_lut_enum_mbus_code.c'
source_filename = "AnghaBench/linux/drivers/media/platform/vsp1/extr_vsp1_lut.c_lut_enum_mbus_code.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@lut_codes = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @lut_enum_mbus_code], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @lut_enum_mbus_code(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = load i32, ptr @lut_codes, align 4, !tbaa !6
%5 = tail call i32 @ARRAY_SIZE(i32 noundef %4) #2
%6 = tail call i32 @vsp1_subdev_enum_mbus_code(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %4, i32 noundef %5) #2
ret i32 %6
}
declare i32 @vsp1_subdev_enum_mbus_code(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_media_platform_vsp1_extr_vsp1_lut.c_lut_enum_mbus_code |
; ModuleID = 'AnghaBench/linux/drivers/infiniband/ulp/ipoib/extr_ipoib.h_ipoib_cm_dev_init.c'
source_filename = "AnghaBench/linux/drivers/infiniband/ulp/ipoib/extr_ipoib.h_ipoib_cm_dev_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EOPNOTSUPP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ipoib_cm_dev_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @ipoib_cm_dev_init(ptr nocapture readnone %0) #0 {
%2 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !5
%3 = sub nsw i32 0, %2
ret i32 %3
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/infiniband/ulp/ipoib/extr_ipoib.h_ipoib_cm_dev_init.c'
source_filename = "AnghaBench/linux/drivers/infiniband/ulp/ipoib/extr_ipoib.h_ipoib_cm_dev_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EOPNOTSUPP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ipoib_cm_dev_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @ipoib_cm_dev_init(ptr nocapture readnone %0) #0 {
%2 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !6
%3 = sub nsw i32 0, %2
ret i32 %3
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_infiniband_ulp_ipoib_extr_ipoib.h_ipoib_cm_dev_init |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/cavium/liquidio/extr_cn23xx_pf_device.c_cn23xx_get_vf_stats.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/cavium/liquidio/extr_cn23xx_pf_device.c_cn23xx_get_vf_stats.c"
target datalayout = "e-m:e-p270:32:32-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.octeon_mbox_cmd = type { i32, i32, ptr, i64, i64, i64, %struct.TYPE_6__ }
%struct.TYPE_6__ = type { %struct.TYPE_5__, i64 }
%struct.TYPE_5__ = type { i32, i32, i32, i32 }
%struct.oct_vf_stats_ctx = type { i32, ptr }
%struct.octeon_device = type { ptr, %struct.TYPE_7__ }
%struct.TYPE_7__ = type { i64, i32 }
@HZ = dso_local local_unnamed_addr global i64 0, align 8
@OCTEON_MBOX_REQUEST = dso_local local_unnamed_addr global i32 0, align 4
@OCTEON_GET_VF_STATS = dso_local local_unnamed_addr global i32 0, align 4
@cn23xx_get_vf_stats_callback = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [42 x i8] c"Unable to get stats from VF-%d, timedout\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @cn23xx_get_vf_stats(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca %struct.octeon_mbox_cmd, align 8
%5 = alloca %struct.oct_vf_stats_ctx, align 8
%6 = load i64, ptr @HZ, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
%7 = getelementptr inbounds %struct.octeon_device, ptr %0, i64 0, i32 1
%8 = load i64, ptr %7, align 8, !tbaa !9
%9 = zext nneg i32 %1 to i64
%10 = shl nuw i64 1, %9
%11 = and i64 %8, %10
%12 = icmp eq i64 %11, 0
br i1 %12, label %47, label %13
13: ; preds = %3
%14 = getelementptr inbounds %struct.octeon_mbox_cmd, ptr %4, i64 0, i32 6
%15 = getelementptr inbounds %struct.octeon_mbox_cmd, ptr %4, i64 0, i32 6, i32 1
store i64 0, ptr %15, align 8, !tbaa !15
%16 = load i32, ptr @OCTEON_MBOX_REQUEST, align 4, !tbaa !19
%17 = getelementptr inbounds %struct.octeon_mbox_cmd, ptr %4, i64 0, i32 6, i32 0, i32 3
store i32 %16, ptr %17, align 4, !tbaa !20
store i32 1, ptr %14, align 8, !tbaa !21
%18 = load i32, ptr @OCTEON_GET_VF_STATS, align 4, !tbaa !19
%19 = getelementptr inbounds %struct.octeon_mbox_cmd, ptr %4, i64 0, i32 6, i32 0, i32 2
store i32 %18, ptr %19, align 8, !tbaa !22
%20 = getelementptr inbounds %struct.octeon_mbox_cmd, ptr %4, i64 0, i32 6, i32 0, i32 1
store i32 1, ptr %20, align 4, !tbaa !23
%21 = getelementptr inbounds %struct.octeon_device, ptr %0, i64 0, i32 1, i32 1
%22 = load i32, ptr %21, align 8, !tbaa !24
%23 = mul nsw i32 %22, %1
store i32 %23, ptr %4, align 8, !tbaa !25
%24 = getelementptr inbounds %struct.octeon_mbox_cmd, ptr %4, i64 0, i32 4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
%25 = load i64, ptr @cn23xx_get_vf_stats_callback, align 8, !tbaa !5
%26 = getelementptr inbounds %struct.octeon_mbox_cmd, ptr %4, i64 0, i32 3
store i64 %25, ptr %26, align 8, !tbaa !26
%27 = getelementptr inbounds %struct.oct_vf_stats_ctx, ptr %5, i64 0, i32 1
store ptr %2, ptr %27, align 8, !tbaa !27
%28 = call i32 @atomic_set(ptr noundef nonnull %5, i32 noundef 0) #4
%29 = getelementptr inbounds %struct.octeon_mbox_cmd, ptr %4, i64 0, i32 2
store ptr %5, ptr %29, align 8, !tbaa !29
%30 = call i32 @memset(i32 noundef undef, i32 noundef 0, i32 noundef 4) #4
%31 = call i32 @octeon_mbox_write(ptr noundef nonnull %0, ptr noundef nonnull %4) #4
br label %32
32: ; preds = %32, %13
%33 = phi i64 [ 0, %13 ], [ %37, %32 ]
%34 = call i32 @schedule_timeout_uninterruptible(i32 noundef 1) #4
%35 = call i64 @atomic_read(ptr noundef nonnull %5) #4
%36 = icmp eq i64 %35, 0
%37 = add nuw nsw i64 %33, 1
%38 = icmp slt i64 %33, %6
%39 = select i1 %36, i1 %38, i1 false
br i1 %39, label %32, label %40, !llvm.loop !30
40: ; preds = %32
%41 = call i64 @atomic_read(ptr noundef nonnull %5) #4
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %40
%44 = call i32 @octeon_mbox_cancel(ptr noundef %0, i32 noundef 0) #4
%45 = load ptr, ptr %0, align 8, !tbaa !32
%46 = call i32 @dev_err(ptr noundef %45, ptr noundef nonnull @.str, i32 noundef %1) #4
br label %47
47: ; preds = %40, %3, %43
%48 = phi i32 [ -1, %43 ], [ -1, %3 ], [ 0, %40 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
ret i32 %48
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @atomic_set(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memset(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @octeon_mbox_write(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @schedule_timeout_uninterruptible(i32 noundef) local_unnamed_addr #2
declare i64 @atomic_read(ptr noundef) local_unnamed_addr #2
declare i32 @octeon_mbox_cancel(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @dev_err(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 8}
!10 = !{!"octeon_device", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"TYPE_7__", !13, i64 0, !14, i64 8}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 56}
!16 = !{!"octeon_mbox_cmd", !14, i64 0, !14, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !17, i64 40}
!17 = !{!"TYPE_6__", !18, i64 0, !6, i64 16}
!18 = !{!"TYPE_5__", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!19 = !{!14, !14, i64 0}
!20 = !{!16, !14, i64 52}
!21 = !{!16, !14, i64 40}
!22 = !{!16, !14, i64 48}
!23 = !{!16, !14, i64 44}
!24 = !{!10, !14, i64 16}
!25 = !{!16, !14, i64 0}
!26 = !{!16, !6, i64 16}
!27 = !{!28, !11, i64 8}
!28 = !{!"oct_vf_stats_ctx", !14, i64 0, !11, i64 8}
!29 = !{!16, !11, i64 8}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/cavium/liquidio/extr_cn23xx_pf_device.c_cn23xx_get_vf_stats.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/cavium/liquidio/extr_cn23xx_pf_device.c_cn23xx_get_vf_stats.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.octeon_mbox_cmd = type { i32, i32, ptr, i64, i64, i64, %struct.TYPE_6__ }
%struct.TYPE_6__ = type { %struct.TYPE_5__, i64 }
%struct.TYPE_5__ = type { i32, i32, i32, i32 }
%struct.oct_vf_stats_ctx = type { i32, ptr }
@HZ = common local_unnamed_addr global i64 0, align 8
@OCTEON_MBOX_REQUEST = common local_unnamed_addr global i32 0, align 4
@OCTEON_GET_VF_STATS = common local_unnamed_addr global i32 0, align 4
@cn23xx_get_vf_stats_callback = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [42 x i8] c"Unable to get stats from VF-%d, timedout\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -1, 1) i32 @cn23xx_get_vf_stats(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca %struct.octeon_mbox_cmd, align 8
%5 = alloca %struct.oct_vf_stats_ctx, align 8
%6 = load i64, ptr @HZ, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load i64, ptr %7, align 8, !tbaa !10
%9 = zext nneg i32 %1 to i64
%10 = shl nuw i64 1, %9
%11 = and i64 %8, %10
%12 = icmp eq i64 %11, 0
br i1 %12, label %46, label %13
13: ; preds = %3
%14 = getelementptr inbounds i8, ptr %4, i64 40
%15 = getelementptr inbounds i8, ptr %4, i64 56
store i64 0, ptr %15, align 8, !tbaa !16
%16 = load i32, ptr @OCTEON_MBOX_REQUEST, align 4, !tbaa !20
%17 = getelementptr inbounds i8, ptr %4, i64 52
store i32 %16, ptr %17, align 4, !tbaa !21
%18 = load i32, ptr @OCTEON_GET_VF_STATS, align 4, !tbaa !20
%19 = getelementptr inbounds i8, ptr %4, i64 48
store i32 %18, ptr %19, align 8, !tbaa !22
store <2 x i32> <i32 1, i32 1>, ptr %14, align 8, !tbaa !20
%20 = getelementptr inbounds i8, ptr %0, i64 16
%21 = load i32, ptr %20, align 8, !tbaa !23
%22 = mul nsw i32 %21, %1
store i32 %22, ptr %4, align 8, !tbaa !24
%23 = getelementptr inbounds i8, ptr %4, i64 24
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, i8 0, i64 16, i1 false)
%24 = load i64, ptr @cn23xx_get_vf_stats_callback, align 8, !tbaa !6
%25 = getelementptr inbounds i8, ptr %4, i64 16
store i64 %24, ptr %25, align 8, !tbaa !25
%26 = getelementptr inbounds i8, ptr %5, i64 8
store ptr %2, ptr %26, align 8, !tbaa !26
%27 = call i32 @atomic_set(ptr noundef nonnull %5, i32 noundef 0) #4
%28 = getelementptr inbounds i8, ptr %4, i64 8
store ptr %5, ptr %28, align 8, !tbaa !28
%29 = call i32 @memset(i32 noundef undef, i32 noundef 0, i32 noundef 4) #4
%30 = call i32 @octeon_mbox_write(ptr noundef nonnull %0, ptr noundef nonnull %4) #4
br label %31
31: ; preds = %31, %13
%32 = phi i64 [ 0, %13 ], [ %36, %31 ]
%33 = call i32 @schedule_timeout_uninterruptible(i32 noundef 1) #4
%34 = call i64 @atomic_read(ptr noundef nonnull %5) #4
%35 = icmp eq i64 %34, 0
%36 = add nuw nsw i64 %32, 1
%37 = icmp slt i64 %32, %6
%38 = select i1 %35, i1 %37, i1 false
br i1 %38, label %31, label %39, !llvm.loop !29
39: ; preds = %31
%40 = call i64 @atomic_read(ptr noundef nonnull %5) #4
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %46
42: ; preds = %39
%43 = call i32 @octeon_mbox_cancel(ptr noundef %0, i32 noundef 0) #4
%44 = load ptr, ptr %0, align 8, !tbaa !31
%45 = call i32 @dev_err(ptr noundef %44, ptr noundef nonnull @.str, i32 noundef %1) #4
br label %46
46: ; preds = %39, %3, %42
%47 = phi i32 [ -1, %42 ], [ -1, %3 ], [ 0, %39 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
ret i32 %47
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @atomic_set(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memset(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @octeon_mbox_write(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @schedule_timeout_uninterruptible(i32 noundef) local_unnamed_addr #2
declare i64 @atomic_read(ptr noundef) local_unnamed_addr #2
declare i32 @octeon_mbox_cancel(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @dev_err(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !14, i64 8}
!11 = !{!"octeon_device", !12, i64 0, !13, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"TYPE_7__", !14, i64 0, !15, i64 8}
!14 = !{!"long long", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !7, i64 56}
!17 = !{!"octeon_mbox_cmd", !15, i64 0, !15, i64 4, !12, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !18, i64 40}
!18 = !{!"TYPE_6__", !19, i64 0, !7, i64 16}
!19 = !{!"TYPE_5__", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!20 = !{!15, !15, i64 0}
!21 = !{!17, !15, i64 52}
!22 = !{!17, !15, i64 48}
!23 = !{!11, !15, i64 16}
!24 = !{!17, !15, i64 0}
!25 = !{!17, !7, i64 16}
!26 = !{!27, !12, i64 8}
!27 = !{!"oct_vf_stats_ctx", !15, i64 0, !12, i64 8}
!28 = !{!17, !12, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!11, !12, i64 0}
| linux_drivers_net_ethernet_cavium_liquidio_extr_cn23xx_pf_device.c_cn23xx_get_vf_stats |
; ModuleID = 'AnghaBench/linux/drivers/clk/ingenic/extr_cgu.c_to_clk_info.c'
source_filename = "AnghaBench/linux/drivers/clk/ingenic/extr_cgu.c_to_clk_info.c"
target datalayout = "e-m:e-p270:32:32-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.ingenic_clk = type { i64, ptr }
%struct.ingenic_cgu_clk_info = type { i64 }
@CGU_CLK_PLL = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @to_clk_info], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal noundef ptr @to_clk_info(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.ingenic_clk, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = load i64, ptr %0, align 8, !tbaa !13
%6 = getelementptr inbounds %struct.ingenic_cgu_clk_info, ptr %4, i64 %5
%7 = load i64, ptr %6, align 8, !tbaa !14
%8 = load i64, ptr @CGU_CLK_PLL, align 8, !tbaa !16
%9 = icmp ne i64 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @BUG_ON(i32 noundef %10) #2
ret ptr %6
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"ingenic_clk", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"ingenic_cgu", !10, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"ingenic_cgu_clk_info", !7, i64 0}
!16 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/clk/ingenic/extr_cgu.c_to_clk_info.c'
source_filename = "AnghaBench/linux/drivers/clk/ingenic/extr_cgu.c_to_clk_info.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ingenic_cgu_clk_info = type { i64 }
@CGU_CLK_PLL = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @to_clk_info], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal noundef ptr @to_clk_info(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !12
%5 = load i64, ptr %0, align 8, !tbaa !14
%6 = getelementptr inbounds %struct.ingenic_cgu_clk_info, ptr %4, i64 %5
%7 = load i64, ptr %6, align 8, !tbaa !15
%8 = load i64, ptr @CGU_CLK_PLL, align 8, !tbaa !17
%9 = icmp ne i64 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @BUG_ON(i32 noundef %10) #2
ret ptr %6
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"ingenic_clk", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"ingenic_cgu", !11, i64 0}
!14 = !{!7, !8, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"ingenic_cgu_clk_info", !8, i64 0}
!17 = !{!8, !8, i64 0}
| linux_drivers_clk_ingenic_extr_cgu.c_to_clk_info |
; ModuleID = 'AnghaBench/skynet/3rd/lua/extr_lgc.c_sweepstep.c'
source_filename = "AnghaBench/skynet/3rd/lua/extr_lgc.c_sweepstep.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_3__ = type { i32, ptr, i64, i32 }
@GCSWEEPMAX = dso_local local_unnamed_addr global i32 0, align 4
@GCSWEEPCOST = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sweepstep], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sweepstep(ptr noundef %0, ptr nocapture noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %23, label %8
8: ; preds = %4
%9 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 2
%10 = load i64, ptr %9, align 8, !tbaa !12
%11 = load i32, ptr @GCSWEEPMAX, align 4, !tbaa !13
%12 = tail call ptr @sweeplist(ptr noundef %0, ptr noundef nonnull %6, i32 noundef %11) #2
store ptr %12, ptr %5, align 8, !tbaa !5
%13 = load i64, ptr %9, align 8, !tbaa !12
%14 = sub nsw i64 %13, %10
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 3
%16 = load i32, ptr %15, align 8, !tbaa !14
%17 = trunc i64 %14 to i32
%18 = add i32 %16, %17
store i32 %18, ptr %15, align 8, !tbaa !14
%19 = icmp eq ptr %12, null
%20 = load i32, ptr @GCSWEEPMAX, align 4
%21 = load i32, ptr @GCSWEEPCOST, align 4
%22 = mul nsw i32 %21, %20
br i1 %19, label %23, label %24
23: ; preds = %8, %4
store i32 %2, ptr %1, align 8, !tbaa !15
store ptr %3, ptr %5, align 8, !tbaa !5
br label %24
24: ; preds = %8, %23
%25 = phi i32 [ %22, %8 ], [ 0, %23 ]
ret i32 %25
}
declare ptr @sweeplist(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"TYPE_3__", !7, i64 0, !10, i64 8, !11, i64 16, !7, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !11, i64 16}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/skynet/3rd/lua/extr_lgc.c_sweepstep.c'
source_filename = "AnghaBench/skynet/3rd/lua/extr_lgc.c_sweepstep.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GCSWEEPMAX = common local_unnamed_addr global i32 0, align 4
@GCSWEEPCOST = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sweepstep], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @sweepstep(ptr noundef %0, ptr nocapture noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = getelementptr inbounds i8, ptr %1, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = icmp eq ptr %6, null
br i1 %7, label %23, label %8
8: ; preds = %4
%9 = getelementptr inbounds i8, ptr %1, i64 16
%10 = load i64, ptr %9, align 8, !tbaa !13
%11 = load i32, ptr @GCSWEEPMAX, align 4, !tbaa !14
%12 = tail call ptr @sweeplist(ptr noundef %0, ptr noundef nonnull %6, i32 noundef %11) #2
store ptr %12, ptr %5, align 8, !tbaa !6
%13 = load i64, ptr %9, align 8, !tbaa !13
%14 = sub nsw i64 %13, %10
%15 = getelementptr inbounds i8, ptr %1, i64 24
%16 = load i32, ptr %15, align 8, !tbaa !15
%17 = trunc i64 %14 to i32
%18 = add i32 %16, %17
store i32 %18, ptr %15, align 8, !tbaa !15
%19 = icmp eq ptr %12, null
%20 = load i32, ptr @GCSWEEPMAX, align 4
%21 = load i32, ptr @GCSWEEPCOST, align 4
%22 = mul nsw i32 %21, %20
br i1 %19, label %23, label %24
23: ; preds = %8, %4
store i32 %2, ptr %1, align 8, !tbaa !16
store ptr %3, ptr %5, align 8, !tbaa !6
br label %24
24: ; preds = %8, %23
%25 = phi i32 [ %22, %8 ], [ 0, %23 ]
ret i32 %25
}
declare ptr @sweeplist(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"TYPE_3__", !8, i64 0, !11, i64 8, !12, i64 16, !8, i64 24}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!7, !12, i64 16}
!14 = !{!8, !8, i64 0}
!15 = !{!7, !8, i64 24}
!16 = !{!7, !8, i64 0}
| skynet_3rd_lua_extr_lgc.c_sweepstep |
; ModuleID = 'AnghaBench/linux/drivers/media/platform/extr_aspeed-video.c_aspeed_video_off.c'
source_filename = "AnghaBench/linux/drivers/media/platform/extr_aspeed-video.c_aspeed_video_off.c"
target datalayout = "e-m:e-p270:32:32-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.aspeed_video = type { i32, i32, i32 }
@VIDEO_CLOCKS_ON = dso_local local_unnamed_addr global i32 0, align 4
@VE_INTERRUPT_CTRL = dso_local local_unnamed_addr global i32 0, align 4
@VE_INTERRUPT_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @aspeed_video_off], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @aspeed_video_off(ptr noundef %0) #0 {
%2 = load i32, ptr @VIDEO_CLOCKS_ON, align 4, !tbaa !5
%3 = tail call i32 @test_bit(i32 noundef %2, ptr noundef %0) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %18, label %5
5: ; preds = %1
%6 = load i32, ptr @VE_INTERRUPT_CTRL, align 4, !tbaa !5
%7 = tail call i32 @aspeed_video_write(ptr noundef %0, i32 noundef %6, i32 noundef 0) #2
%8 = load i32, ptr @VE_INTERRUPT_STATUS, align 4, !tbaa !5
%9 = tail call i32 @aspeed_video_write(ptr noundef %0, i32 noundef %8, i32 noundef -1) #2
%10 = getelementptr inbounds %struct.aspeed_video, ptr %0, i64 0, i32 2
%11 = load i32, ptr %10, align 4, !tbaa !9
%12 = tail call i32 @clk_disable(i32 noundef %11) #2
%13 = getelementptr inbounds %struct.aspeed_video, ptr %0, i64 0, i32 1
%14 = load i32, ptr %13, align 4, !tbaa !11
%15 = tail call i32 @clk_disable(i32 noundef %14) #2
%16 = load i32, ptr @VIDEO_CLOCKS_ON, align 4, !tbaa !5
%17 = tail call i32 @clear_bit(i32 noundef %16, ptr noundef %0) #2
br label %18
18: ; preds = %1, %5
ret void
}
declare i32 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @aspeed_video_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @clk_disable(i32 noundef) local_unnamed_addr #1
declare i32 @clear_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"aspeed_video", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/media/platform/extr_aspeed-video.c_aspeed_video_off.c'
source_filename = "AnghaBench/linux/drivers/media/platform/extr_aspeed-video.c_aspeed_video_off.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VIDEO_CLOCKS_ON = common local_unnamed_addr global i32 0, align 4
@VE_INTERRUPT_CTRL = common local_unnamed_addr global i32 0, align 4
@VE_INTERRUPT_STATUS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @aspeed_video_off], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @aspeed_video_off(ptr noundef %0) #0 {
%2 = load i32, ptr @VIDEO_CLOCKS_ON, align 4, !tbaa !6
%3 = tail call i32 @test_bit(i32 noundef %2, ptr noundef %0) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %18, label %5
5: ; preds = %1
%6 = load i32, ptr @VE_INTERRUPT_CTRL, align 4, !tbaa !6
%7 = tail call i32 @aspeed_video_write(ptr noundef %0, i32 noundef %6, i32 noundef 0) #2
%8 = load i32, ptr @VE_INTERRUPT_STATUS, align 4, !tbaa !6
%9 = tail call i32 @aspeed_video_write(ptr noundef %0, i32 noundef %8, i32 noundef -1) #2
%10 = getelementptr inbounds i8, ptr %0, i64 8
%11 = load i32, ptr %10, align 4, !tbaa !10
%12 = tail call i32 @clk_disable(i32 noundef %11) #2
%13 = getelementptr inbounds i8, ptr %0, i64 4
%14 = load i32, ptr %13, align 4, !tbaa !12
%15 = tail call i32 @clk_disable(i32 noundef %14) #2
%16 = load i32, ptr @VIDEO_CLOCKS_ON, align 4, !tbaa !6
%17 = tail call i32 @clear_bit(i32 noundef %16, ptr noundef %0) #2
br label %18
18: ; preds = %1, %5
ret void
}
declare i32 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @aspeed_video_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @clk_disable(i32 noundef) local_unnamed_addr #1
declare i32 @clear_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"aspeed_video", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!11, !7, i64 4}
| linux_drivers_media_platform_extr_aspeed-video.c_aspeed_video_off |
; ModuleID = 'AnghaBench/linux/drivers/video/fbdev/extr_asiliantfb.c_asiliant_calc_dclk2.c'
source_filename = "AnghaBench/linux/drivers/video/fbdev/extr_asiliantfb.c_asiliant_calc_dclk2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@Fref = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @asiliant_calc_dclk2], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define internal void @asiliant_calc_dclk2(ptr nocapture noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) #0 {
%5 = load i32, ptr %0, align 4, !tbaa !5
%6 = udiv i32 1000000, %5
%7 = urem i32 1000000, %5
%8 = mul i32 %6, 1000000
%9 = mul i32 %7, 1000000
%10 = udiv i32 %9, %5
%11 = add i32 %10, %8
%12 = icmp ult i32 %11, 100000000
br i1 %12, label %13, label %19
13: ; preds = %4, %13
%14 = phi i32 [ %17, %13 ], [ %11, %4 ]
%15 = phi i8 [ %16, %13 ], [ 0, %4 ]
%16 = add i8 %15, 16
%17 = shl nuw nsw i32 %14, 1
%18 = icmp ult i32 %14, 50000000
br i1 %18, label %13, label %19, !llvm.loop !9
19: ; preds = %13, %4
%20 = phi i8 [ 0, %4 ], [ %16, %13 ]
%21 = phi i32 [ %11, %4 ], [ %17, %13 ]
%22 = load i32, ptr @Fref, align 4, !tbaa !5
%23 = udiv i32 %21, %22
%24 = urem i32 %21, %22
br label %25
25: ; preds = %19, %61
%26 = phi i32 [ 3, %19 ], [ %65, %61 ]
%27 = phi i32 [ -1, %19 ], [ %64, %61 ]
%28 = phi i32 [ -1, %19 ], [ %63, %61 ]
%29 = phi i32 [ -1, %19 ], [ %62, %61 ]
%30 = mul i32 %26, %23
%31 = mul i32 %26, %24
%32 = udiv i32 %31, %22
%33 = add i32 %32, %30
%34 = add i32 %33, -3
%35 = icmp ult i32 %34, 255
br i1 %35, label %36, label %47
36: ; preds = %25
%37 = mul i32 %26, %21
%38 = mul i32 %33, %22
%39 = icmp ult i32 %37, %38
%40 = sub i32 %37, %38
%41 = sub i32 %38, %37
%42 = select i1 %39, i32 %41, i32 %40
%43 = icmp ult i32 %42, %27
%44 = select i1 %43, i32 %33, i32 %29
%45 = select i1 %43, i32 %26, i32 %28
%46 = tail call i32 @llvm.umin.i32(i32 %42, i32 %27)
br label %61
47: ; preds = %25
%48 = icmp ult i32 %33, 1029
br i1 %48, label %49, label %61
49: ; preds = %47
%50 = mul i32 %26, %21
%51 = and i32 %33, 2044
%52 = mul i32 %51, %22
%53 = icmp ult i32 %50, %52
%54 = sub i32 %50, %52
%55 = sub i32 %52, %50
%56 = select i1 %53, i32 %55, i32 %54
%57 = icmp ult i32 %56, %27
%58 = select i1 %57, i32 %33, i32 %29
%59 = select i1 %57, i32 %26, i32 %28
%60 = tail call i32 @llvm.umin.i32(i32 %56, i32 %27)
br label %61
61: ; preds = %47, %49, %36
%62 = phi i32 [ %44, %36 ], [ %58, %49 ], [ %29, %47 ]
%63 = phi i32 [ %45, %36 ], [ %59, %49 ], [ %28, %47 ]
%64 = phi i32 [ %46, %36 ], [ %60, %49 ], [ %27, %47 ]
%65 = add nuw nsw i32 %26, 1
%66 = icmp eq i32 %65, 258
br i1 %66, label %67, label %25, !llvm.loop !11
67: ; preds = %61
%68 = icmp ugt i32 %62, 257
%69 = lshr i32 %62, 2
%70 = or disjoint i8 %20, 4
%71 = select i1 %68, i32 %69, i32 %62
%72 = select i1 %68, i8 %20, i8 %70
%73 = trunc i32 %71 to i8
%74 = add i8 %73, -2
store i8 %74, ptr %1, align 1, !tbaa !12
%75 = trunc i32 %63 to i8
%76 = add i8 %75, -2
store i8 %76, ptr %2, align 1, !tbaa !12
store i8 %72, ptr %3, align 1, !tbaa !12
store i32 %5, ptr %0, align 4, !tbaa !5
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #1
attributes #0 = { nofree norecurse nosync nounwind memory(read, argmem: 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 nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/video/fbdev/extr_asiliantfb.c_asiliant_calc_dclk2.c'
source_filename = "AnghaBench/linux/drivers/video/fbdev/extr_asiliantfb.c_asiliant_calc_dclk2.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@Fref = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @asiliant_calc_dclk2], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define internal void @asiliant_calc_dclk2(ptr nocapture noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) #0 {
%5 = load i32, ptr %0, align 4, !tbaa !6
%6 = freeze i32 %5
%7 = udiv i32 1000000, %6
%8 = mul i32 %7, %6
%9 = sub i32 1000000, %8
%10 = mul i32 %7, 1000000
%11 = mul i32 %9, 1000000
%12 = udiv i32 %11, %5
%13 = add i32 %12, %10
%14 = icmp ult i32 %13, 100000000
br i1 %14, label %15, label %21
15: ; preds = %4, %15
%16 = phi i32 [ %19, %15 ], [ %13, %4 ]
%17 = phi i8 [ %18, %15 ], [ 0, %4 ]
%18 = add i8 %17, 16
%19 = shl nuw nsw i32 %16, 1
%20 = icmp ult i32 %16, 50000000
br i1 %20, label %15, label %21, !llvm.loop !10
21: ; preds = %15, %4
%22 = phi i8 [ 0, %4 ], [ %18, %15 ]
%23 = phi i32 [ %13, %4 ], [ %19, %15 ]
%24 = load i32, ptr @Fref, align 4, !tbaa !6
%25 = freeze i32 %23
%26 = freeze i32 %24
%27 = udiv i32 %25, %26
%28 = mul i32 %27, %26
%29 = sub i32 %25, %28
br label %30
30: ; preds = %21, %66
%31 = phi i32 [ 3, %21 ], [ %70, %66 ]
%32 = phi i32 [ -1, %21 ], [ %69, %66 ]
%33 = phi i32 [ -1, %21 ], [ %68, %66 ]
%34 = phi i32 [ -1, %21 ], [ %67, %66 ]
%35 = mul i32 %31, %27
%36 = mul i32 %31, %29
%37 = udiv i32 %36, %24
%38 = add i32 %37, %35
%39 = add i32 %38, -3
%40 = icmp ult i32 %39, 255
br i1 %40, label %41, label %52
41: ; preds = %30
%42 = mul i32 %31, %23
%43 = mul i32 %38, %24
%44 = icmp ult i32 %42, %43
%45 = sub i32 %42, %43
%46 = sub i32 %43, %42
%47 = select i1 %44, i32 %46, i32 %45
%48 = icmp ult i32 %47, %32
%49 = select i1 %48, i32 %38, i32 %34
%50 = select i1 %48, i32 %31, i32 %33
%51 = tail call i32 @llvm.umin.i32(i32 %47, i32 %32)
br label %66
52: ; preds = %30
%53 = icmp ult i32 %38, 1029
br i1 %53, label %54, label %66
54: ; preds = %52
%55 = mul i32 %31, %23
%56 = and i32 %38, 2044
%57 = mul i32 %56, %24
%58 = icmp ult i32 %55, %57
%59 = sub i32 %55, %57
%60 = sub i32 %57, %55
%61 = select i1 %58, i32 %60, i32 %59
%62 = icmp ult i32 %61, %32
%63 = select i1 %62, i32 %38, i32 %34
%64 = select i1 %62, i32 %31, i32 %33
%65 = tail call i32 @llvm.umin.i32(i32 %61, i32 %32)
br label %66
66: ; preds = %52, %54, %41
%67 = phi i32 [ %49, %41 ], [ %63, %54 ], [ %34, %52 ]
%68 = phi i32 [ %50, %41 ], [ %64, %54 ], [ %33, %52 ]
%69 = phi i32 [ %51, %41 ], [ %65, %54 ], [ %32, %52 ]
%70 = add nuw nsw i32 %31, 1
%71 = icmp eq i32 %70, 258
br i1 %71, label %72, label %30, !llvm.loop !12
72: ; preds = %66
%73 = icmp ugt i32 %67, 257
%74 = lshr i32 %67, 2
%75 = or disjoint i8 %22, 4
%76 = select i1 %73, i32 %74, i32 %67
%77 = select i1 %73, i8 %22, i8 %75
%78 = trunc i32 %76 to i8
%79 = add i8 %78, -2
store i8 %79, ptr %1, align 1, !tbaa !13
%80 = trunc i32 %68 to i8
%81 = add i8 %80, -2
store i8 %81, ptr %2, align 1, !tbaa !13
store i8 %77, ptr %3, align 1, !tbaa !13
store i32 %5, ptr %0, align 4, !tbaa !6
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #1
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!8, !8, i64 0}
| linux_drivers_video_fbdev_extr_asiliantfb.c_asiliant_calc_dclk2 |
; ModuleID = 'AnghaBench/exploitdb/exploits/linux/remote/extr_19458.c_probe.c'
source_filename = "AnghaBench/exploitdb/exploits/linux/remote/extr_19458.c_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@spoofed_port = dso_local local_unnamed_addr global i32 0, align 4
@target_port = dso_local local_unnamed_addr global i32 0, align 4
@IP_H = dso_local local_unnamed_addr global i32 0, align 4
@TCP_H = dso_local local_unnamed_addr global i32 0, align 4
@packid = dso_local local_unnamed_addr global i32 0, align 4
@IPPROTO_TCP = dso_local local_unnamed_addr global i32 0, align 4
@spoofed = dso_local local_unnamed_addr global i32 0, align 4
@target = dso_local local_unnamed_addr global i32 0, align 4
@sock = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @probe(i32 noundef %0) local_unnamed_addr #0 {
%2 = alloca [200 x i8], align 16
call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %2) #3
%3 = tail call i32 @usleep(i32 noundef 10000) #3
%4 = load i32, ptr @spoofed_port, align 4, !tbaa !5
%5 = load i32, ptr @target_port, align 4, !tbaa !5
%6 = load i32, ptr @IP_H, align 4, !tbaa !5
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %2, i64 %7
%9 = call i32 @build_tcp(i32 noundef %4, i32 noundef %5, i32 noundef 2, i32 noundef %0, i32 noundef 16, i32 noundef 32000, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8) #3
%10 = load i32, ptr @TCP_H, align 4, !tbaa !5
%11 = load i32, ptr @packid, align 4, !tbaa !5
%12 = add nsw i32 %11, 1
store i32 %12, ptr @packid, align 4, !tbaa !5
%13 = load i32, ptr @IPPROTO_TCP, align 4, !tbaa !5
%14 = load i32, ptr @spoofed, align 4, !tbaa !5
%15 = load i32, ptr @target, align 4, !tbaa !5
%16 = call i32 @build_ip(i32 noundef %10, i32 noundef 0, i32 noundef %11, i32 noundef 0, i32 noundef 64, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %2) #3
%17 = load i32, ptr @IPPROTO_TCP, align 4, !tbaa !5
%18 = load i32, ptr @TCP_H, align 4, !tbaa !5
%19 = call i32 @do_checksum(ptr noundef nonnull %2, i32 noundef %17, i32 noundef %18) #3
%20 = load i32, ptr @sock, align 4, !tbaa !5
%21 = load i32, ptr @IP_H, align 4, !tbaa !5
%22 = load i32, ptr @TCP_H, align 4, !tbaa !5
%23 = add nsw i32 %22, %21
%24 = call i32 @write_ip(i32 noundef %20, ptr noundef nonnull %2, i32 noundef %23) #3
call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @usleep(i32 noundef) local_unnamed_addr #2
declare i32 @build_tcp(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @build_ip(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @do_checksum(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @write_ip(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/linux/remote/extr_19458.c_probe.c'
source_filename = "AnghaBench/exploitdb/exploits/linux/remote/extr_19458.c_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@spoofed_port = common local_unnamed_addr global i32 0, align 4
@target_port = common local_unnamed_addr global i32 0, align 4
@IP_H = common local_unnamed_addr global i32 0, align 4
@TCP_H = common local_unnamed_addr global i32 0, align 4
@packid = common local_unnamed_addr global i32 0, align 4
@IPPROTO_TCP = common local_unnamed_addr global i32 0, align 4
@spoofed = common local_unnamed_addr global i32 0, align 4
@target = common local_unnamed_addr global i32 0, align 4
@sock = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @probe(i32 noundef %0) local_unnamed_addr #0 {
%2 = alloca [200 x i8], align 1
call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %2) #3
%3 = tail call i32 @usleep(i32 noundef 10000) #3
%4 = load i32, ptr @spoofed_port, align 4, !tbaa !6
%5 = load i32, ptr @target_port, align 4, !tbaa !6
%6 = load i32, ptr @IP_H, align 4, !tbaa !6
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %2, i64 %7
%9 = call i32 @build_tcp(i32 noundef %4, i32 noundef %5, i32 noundef 2, i32 noundef %0, i32 noundef 16, i32 noundef 32000, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8) #3
%10 = load i32, ptr @TCP_H, align 4, !tbaa !6
%11 = load i32, ptr @packid, align 4, !tbaa !6
%12 = add nsw i32 %11, 1
store i32 %12, ptr @packid, align 4, !tbaa !6
%13 = load i32, ptr @IPPROTO_TCP, align 4, !tbaa !6
%14 = load i32, ptr @spoofed, align 4, !tbaa !6
%15 = load i32, ptr @target, align 4, !tbaa !6
%16 = call i32 @build_ip(i32 noundef %10, i32 noundef 0, i32 noundef %11, i32 noundef 0, i32 noundef 64, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %2) #3
%17 = load i32, ptr @IPPROTO_TCP, align 4, !tbaa !6
%18 = load i32, ptr @TCP_H, align 4, !tbaa !6
%19 = call i32 @do_checksum(ptr noundef nonnull %2, i32 noundef %17, i32 noundef %18) #3
%20 = load i32, ptr @sock, align 4, !tbaa !6
%21 = load i32, ptr @IP_H, align 4, !tbaa !6
%22 = load i32, ptr @TCP_H, align 4, !tbaa !6
%23 = add nsw i32 %22, %21
%24 = call i32 @write_ip(i32 noundef %20, ptr noundef nonnull %2, i32 noundef %23) #3
call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @usleep(i32 noundef) local_unnamed_addr #2
declare i32 @build_tcp(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @build_ip(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @do_checksum(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @write_ip(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| exploitdb_exploits_linux_remote_extr_19458.c_probe |
; ModuleID = 'AnghaBench/linux/kernel/sched/extr_wait.c_is_kthread_should_stop.c'
source_filename = "AnghaBench/linux/kernel/sched/extr_wait.c_is_kthread_should_stop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@current = dso_local local_unnamed_addr global ptr null, align 8
@PF_KTHREAD = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @is_kthread_should_stop], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @is_kthread_should_stop() #0 {
%1 = load ptr, ptr @current, align 8, !tbaa !5
%2 = load i32, ptr %1, align 4, !tbaa !9
%3 = load i32, ptr @PF_KTHREAD, align 4, !tbaa !12
%4 = and i32 %3, %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %0
%7 = tail call i64 (...) @kthread_should_stop() #2
%8 = icmp ne i64 %7, 0
%9 = zext i1 %8 to i32
br label %10
10: ; preds = %6, %0
%11 = phi i32 [ 0, %0 ], [ %9, %6 ]
ret i32 %11
}
declare i64 @kthread_should_stop(...) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!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 = !{!"TYPE_2__", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/kernel/sched/extr_wait.c_is_kthread_should_stop.c'
source_filename = "AnghaBench/linux/kernel/sched/extr_wait.c_is_kthread_should_stop.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@current = common local_unnamed_addr global ptr null, align 8
@PF_KTHREAD = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @is_kthread_should_stop], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @is_kthread_should_stop() #0 {
%1 = load ptr, ptr @current, align 8, !tbaa !6
%2 = load i32, ptr %1, align 4, !tbaa !10
%3 = load i32, ptr @PF_KTHREAD, align 4, !tbaa !13
%4 = and i32 %3, %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %0
%7 = tail call i64 @kthread_should_stop() #2
%8 = icmp ne i64 %7, 0
%9 = zext i1 %8 to i32
br label %10
10: ; preds = %6, %0
%11 = phi i32 [ 0, %0 ], [ %9, %6 ]
ret i32 %11
}
declare i64 @kthread_should_stop(...) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!12, !12, i64 0}
| linux_kernel_sched_extr_wait.c_is_kthread_should_stop |
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_dwarfread.c_lookup_utype.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_dwarfread.c_lookup_utype.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@dbroff = dso_local local_unnamed_addr global i32 0, align 4
@numutypes = dso_local local_unnamed_addr global i32 0, align 4
@DIE_ID = dso_local local_unnamed_addr global i32 0, align 4
@DIE_NAME = dso_local local_unnamed_addr global i32 0, align 4
@utypes = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @lookup_utype], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @lookup_utype(i32 noundef %0) #0 {
%2 = load i32, ptr @dbroff, align 4, !tbaa !5
%3 = sub nsw i32 %0, %2
%4 = sdiv i32 %3, 4
%5 = icmp sgt i32 %3, -4
%6 = load i32, ptr @numutypes, align 4
%7 = icmp slt i32 %4, %6
%8 = select i1 %5, i1 %7, i1 false
br i1 %8, label %13, label %9
9: ; preds = %1
%10 = load i32, ptr @DIE_ID, align 4, !tbaa !5
%11 = load i32, ptr @DIE_NAME, align 4, !tbaa !5
%12 = tail call i32 @bad_die_ref_complaint(i32 noundef %10, i32 noundef %11, i32 noundef %0) #2
br label %18
13: ; preds = %1
%14 = load ptr, ptr @utypes, align 8, !tbaa !9
%15 = zext nneg i32 %4 to i64
%16 = getelementptr inbounds ptr, ptr %14, i64 %15
%17 = load ptr, ptr %16, align 8, !tbaa !9
br label %18
18: ; preds = %13, %9
%19 = phi ptr [ null, %9 ], [ %17, %13 ]
ret ptr %19
}
declare i32 @bad_die_ref_complaint(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_dwarfread.c_lookup_utype.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_dwarfread.c_lookup_utype.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@dbroff = common local_unnamed_addr global i32 0, align 4
@numutypes = common local_unnamed_addr global i32 0, align 4
@DIE_ID = common local_unnamed_addr global i32 0, align 4
@DIE_NAME = common local_unnamed_addr global i32 0, align 4
@utypes = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @lookup_utype], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @lookup_utype(i32 noundef %0) #0 {
%2 = load i32, ptr @dbroff, align 4, !tbaa !6
%3 = sub nsw i32 %0, %2
%4 = sdiv i32 %3, 4
%5 = icmp sgt i32 %3, -4
%6 = load i32, ptr @numutypes, align 4
%7 = icmp slt i32 %4, %6
%8 = select i1 %5, i1 %7, i1 false
br i1 %8, label %13, label %9
9: ; preds = %1
%10 = load i32, ptr @DIE_ID, align 4, !tbaa !6
%11 = load i32, ptr @DIE_NAME, align 4, !tbaa !6
%12 = tail call i32 @bad_die_ref_complaint(i32 noundef %10, i32 noundef %11, i32 noundef %0) #2
br label %18
13: ; preds = %1
%14 = load ptr, ptr @utypes, align 8, !tbaa !10
%15 = zext nneg i32 %4 to i64
%16 = getelementptr inbounds ptr, ptr %14, i64 %15
%17 = load ptr, ptr %16, align 8, !tbaa !10
br label %18
18: ; preds = %13, %9
%19 = phi ptr [ null, %9 ], [ %17, %13 ]
ret ptr %19
}
declare i32 @bad_die_ref_complaint(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
| freebsd_contrib_gdb_gdb_extr_dwarfread.c_lookup_utype |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/video/omap/extr_lcdc.c_alloc_palette_ram.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/video/omap/extr_lcdc.c_alloc_palette_ram.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_4__ = type { ptr, ptr, i32 }
@lcdc = dso_local global %struct.TYPE_4__ zeroinitializer, align 8
@MAX_PALETTE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"failed to alloc palette memory\0A\00", align 1
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @alloc_palette_ram], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @alloc_palette_ram() #0 {
%1 = load ptr, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @lcdc, i64 0, i32 1), align 8, !tbaa !5
%2 = load i32, ptr %1, align 4, !tbaa !11
%3 = load i32, ptr @MAX_PALETTE_SIZE, align 4, !tbaa !13
%4 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !13
%5 = tail call ptr @dma_alloc_writecombine(i32 noundef %2, i32 noundef %3, ptr noundef nonnull getelementptr inbounds (%struct.TYPE_4__, ptr @lcdc, i64 0, i32 2), i32 noundef %4) #2
store ptr %5, ptr @lcdc, align 8, !tbaa !14
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %13
7: ; preds = %0
%8 = load ptr, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @lcdc, i64 0, i32 1), align 8, !tbaa !5
%9 = load i32, ptr %8, align 4, !tbaa !11
%10 = tail call i32 @dev_err(i32 noundef %9, ptr noundef nonnull @.str) #2
%11 = load i32, ptr @ENOMEM, align 4, !tbaa !13
%12 = sub nsw i32 0, %11
br label %16
13: ; preds = %0
%14 = load i32, ptr @MAX_PALETTE_SIZE, align 4, !tbaa !13
%15 = tail call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef %14) #2
br label %16
16: ; preds = %13, %7
%17 = phi i32 [ %12, %7 ], [ 0, %13 ]
ret i32 %17
}
declare ptr @dma_alloc_writecombine(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"TYPE_4__", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"TYPE_3__", !10, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/video/omap/extr_lcdc.c_alloc_palette_ram.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/video/omap/extr_lcdc.c_alloc_palette_ram.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { ptr, ptr, i32 }
@lcdc = common global %struct.TYPE_4__ zeroinitializer, align 8
@MAX_PALETTE_SIZE = common local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"failed to alloc palette memory\0A\00", align 1
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @alloc_palette_ram], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @alloc_palette_ram() #0 {
%1 = load ptr, ptr getelementptr inbounds (i8, ptr @lcdc, i64 8), align 8, !tbaa !6
%2 = load i32, ptr %1, align 4, !tbaa !12
%3 = load i32, ptr @MAX_PALETTE_SIZE, align 4, !tbaa !14
%4 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !14
%5 = tail call ptr @dma_alloc_writecombine(i32 noundef %2, i32 noundef %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @lcdc, i64 16), i32 noundef %4) #2
store ptr %5, ptr @lcdc, align 8, !tbaa !15
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %13
7: ; preds = %0
%8 = load ptr, ptr getelementptr inbounds (i8, ptr @lcdc, i64 8), align 8, !tbaa !6
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = tail call i32 @dev_err(i32 noundef %9, ptr noundef nonnull @.str) #2
%11 = load i32, ptr @ENOMEM, align 4, !tbaa !14
%12 = sub nsw i32 0, %11
br label %16
13: ; preds = %0
%14 = load i32, ptr @MAX_PALETTE_SIZE, align 4, !tbaa !14
%15 = tail call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef %14) #2
br label %16
16: ; preds = %13, %7
%17 = phi i32 [ %12, %7 ], [ 0, %13 ]
ret i32 %17
}
declare ptr @dma_alloc_writecombine(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"TYPE_4__", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_3__", !11, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!7, !8, i64 0}
| fastsocket_kernel_drivers_video_omap_extr_lcdc.c_alloc_palette_ram |
; ModuleID = 'AnghaBench/linux/drivers/media/firewire/extr_firedtv.h_fdtv_unregister_rc.c'
source_filename = "AnghaBench/linux/drivers/media/firewire/extr_firedtv.h_fdtv_unregister_rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @fdtv_unregister_rc], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @fdtv_unregister_rc(ptr nocapture readnone %0) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/media/firewire/extr_firedtv.h_fdtv_unregister_rc.c'
source_filename = "AnghaBench/linux/drivers/media/firewire/extr_firedtv.h_fdtv_unregister_rc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @fdtv_unregister_rc], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @fdtv_unregister_rc(ptr nocapture readnone %0) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_media_firewire_extr_firedtv.h_fdtv_unregister_rc |
; ModuleID = 'AnghaBench/linux/arch/x86/kernel/cpu/mce/extr_core.c_smca_ctl_reg.c'
source_filename = "AnghaBench/linux/arch/x86/kernel/cpu/mce/extr_core.c_smca_ctl_reg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @smca_ctl_reg], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @smca_ctl_reg(i32 noundef %0) #0 {
%2 = tail call i32 @MSR_AMD64_SMCA_MCx_CTL(i32 noundef %0) #2
ret i32 %2
}
declare i32 @MSR_AMD64_SMCA_MCx_CTL(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/arch/x86/kernel/cpu/mce/extr_core.c_smca_ctl_reg.c'
source_filename = "AnghaBench/linux/arch/x86/kernel/cpu/mce/extr_core.c_smca_ctl_reg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @smca_ctl_reg], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @smca_ctl_reg(i32 noundef %0) #0 {
%2 = tail call i32 @MSR_AMD64_SMCA_MCx_CTL(i32 noundef %0) #2
ret i32 %2
}
declare i32 @MSR_AMD64_SMCA_MCx_CTL(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_arch_x86_kernel_cpu_mce_extr_core.c_smca_ctl_reg |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ubifs/extr_file.c_ubifs_set_page_dirty.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ubifs/extr_file.c_ubifs_set_page_dirty.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @ubifs_set_page_dirty], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ubifs_set_page_dirty(ptr noundef %0) #0 {
%2 = tail call i32 @__set_page_dirty_nobuffers(ptr noundef %0) #2
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @ubifs_assert(i32 noundef %4) #2
ret i32 %2
}
declare i32 @__set_page_dirty_nobuffers(ptr noundef) local_unnamed_addr #1
declare i32 @ubifs_assert(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ubifs/extr_file.c_ubifs_set_page_dirty.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ubifs/extr_file.c_ubifs_set_page_dirty.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @ubifs_set_page_dirty], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ubifs_set_page_dirty(ptr noundef %0) #0 {
%2 = tail call i32 @__set_page_dirty_nobuffers(ptr noundef %0) #2
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @ubifs_assert(i32 noundef %4) #2
ret i32 %2
}
declare i32 @__set_page_dirty_nobuffers(ptr noundef) local_unnamed_addr #1
declare i32 @ubifs_assert(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_fs_ubifs_extr_file.c_ubifs_set_page_dirty |
; ModuleID = 'AnghaBench/reactos/base/applications/mplay32/extr_mplay32.c_ResizeClientArea.c'
source_filename = "AnghaBench/reactos/base/applications/mplay32/extr_mplay32.c_ResizeClientArea.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_5__ = type { i64, i64, i64, i64 }
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @ResizeClientArea(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = alloca %struct.TYPE_5__, align 8
%5 = alloca %struct.TYPE_5__, align 8
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #3
%6 = call i32 @GetClientRect(i32 noundef %0, ptr noundef nonnull %4) #3
%7 = call i32 @GetWindowRect(i32 noundef %0, ptr noundef nonnull %5) #3
%8 = getelementptr inbounds %struct.TYPE_5__, ptr %5, i64 0, i32 3
%9 = load i64, ptr %8, align 8, !tbaa !5
%10 = getelementptr inbounds %struct.TYPE_5__, ptr %5, i64 0, i32 1
%11 = load i64, ptr %10, align 8, !tbaa !10
%12 = getelementptr inbounds %struct.TYPE_5__, ptr %4, i64 0, i32 3
%13 = load i64, ptr %12, align 8, !tbaa !5
%14 = getelementptr inbounds %struct.TYPE_5__, ptr %5, i64 0, i32 2
%15 = load i64, ptr %14, align 8, !tbaa !11
%16 = load i64, ptr %5, align 8, !tbaa !12
%17 = getelementptr inbounds %struct.TYPE_5__, ptr %4, i64 0, i32 2
%18 = load i64, ptr %17, align 8, !tbaa !11
%19 = sext i32 %1 to i64
%20 = add i64 %9, %19
%21 = add i64 %11, %13
%22 = sub i64 %20, %21
%23 = sext i32 %2 to i64
%24 = add i64 %15, %23
%25 = add i64 %16, %18
%26 = sub i64 %24, %25
%27 = load i32, ptr @TRUE, align 4, !tbaa !13
%28 = call i32 @MoveWindow(i32 noundef %0, i64 noundef %11, i64 noundef %16, i64 noundef %22, i64 noundef %26, i32 noundef %27) #3
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @GetClientRect(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GetWindowRect(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @MoveWindow(i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 24}
!6 = !{!"TYPE_5__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/reactos/base/applications/mplay32/extr_mplay32.c_ResizeClientArea.c'
source_filename = "AnghaBench/reactos/base/applications/mplay32/extr_mplay32.c_ResizeClientArea.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_5__ = type { i64, i64, i64, i64 }
@TRUE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @ResizeClientArea(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = alloca %struct.TYPE_5__, align 8
%5 = alloca %struct.TYPE_5__, align 8
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #3
%6 = call i32 @GetClientRect(i32 noundef %0, ptr noundef nonnull %4) #3
%7 = call i32 @GetWindowRect(i32 noundef %0, ptr noundef nonnull %5) #3
%8 = getelementptr inbounds i8, ptr %5, i64 24
%9 = load i64, ptr %8, align 8, !tbaa !6
%10 = getelementptr inbounds i8, ptr %5, i64 8
%11 = load i64, ptr %10, align 8, !tbaa !11
%12 = getelementptr inbounds i8, ptr %4, i64 24
%13 = load i64, ptr %12, align 8, !tbaa !6
%14 = getelementptr inbounds i8, ptr %5, i64 16
%15 = load i64, ptr %14, align 8, !tbaa !12
%16 = load i64, ptr %5, align 8, !tbaa !13
%17 = getelementptr inbounds i8, ptr %4, i64 16
%18 = load i64, ptr %17, align 8, !tbaa !12
%19 = sext i32 %1 to i64
%20 = add i64 %9, %19
%21 = add i64 %11, %13
%22 = sub i64 %20, %21
%23 = sext i32 %2 to i64
%24 = add i64 %15, %23
%25 = add i64 %16, %18
%26 = sub i64 %24, %25
%27 = load i32, ptr @TRUE, align 4, !tbaa !14
%28 = call i32 @MoveWindow(i32 noundef %0, i64 noundef %11, i64 noundef %16, i64 noundef %22, i64 noundef %26, i32 noundef %27) #3
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @GetClientRect(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GetWindowRect(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @MoveWindow(i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 24}
!7 = !{!"TYPE_5__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 8}
!12 = !{!7, !8, i64 16}
!13 = !{!7, !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !9, i64 0}
| reactos_base_applications_mplay32_extr_mplay32.c_ResizeClientArea |
; ModuleID = 'AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/QM/extr_qm_portal_fqr.c_LoopDequeueRingOptimized.c'
source_filename = "AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/QM/extr_qm_portal_fqr.c_LoopDequeueRingOptimized.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_9__ = type { i32, i32, ptr }
%struct.qm_dqrr_entry = type { i32, i32, i32, i32 }
%struct.qman_fq = type { i64, i32, i32, i32, %struct.TYPE_7__, i32 }
%struct.TYPE_7__ = type { ptr }
@qman_cb_dqrr_consume = dso_local local_unnamed_addr global i32 0, align 4
@qman_cb_dqrr_pause = dso_local local_unnamed_addr global i32 0, align 4
@QM_DQRR_STAT_UNSCHEDULED = dso_local local_unnamed_addr global i32 0, align 4
@e_RX_STORE_RESPONSE_PAUSE = dso_local local_unnamed_addr global i64 0, align 8
@QM_DQRR_STAT_DQCR_EXPIRED = dso_local local_unnamed_addr global i32 0, align 4
@QMAN_FQ_STATE_VDQCR = dso_local local_unnamed_addr global i32 0, align 4
@QM_DQRR_STAT_FQ_EMPTY = dso_local local_unnamed_addr global i32 0, align 4
@QMAN_FQ_STATE_NE = dso_local local_unnamed_addr global i32 0, align 4
@qman_fq_state_waiting_parked = dso_local local_unnamed_addr global i64 0, align 8
@qman_cb_dqrr_park = dso_local local_unnamed_addr global i32 0, align 4
@QM_DQRR_STAT_FQ_HELDACTIVE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @LoopDequeueRingOptimized], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @LoopDequeueRingOptimized(i64 noundef %0) #0 {
%2 = load i32, ptr @qman_cb_dqrr_consume, align 4, !tbaa !5
%3 = inttoptr i64 %0 to ptr
%4 = load i32, ptr @qman_cb_dqrr_pause, align 4, !tbaa !5
%5 = icmp eq i32 %2, %4
br i1 %5, label %120, label %6
6: ; preds = %1
%7 = getelementptr inbounds %struct.TYPE_9__, ptr %3, i64 0, i32 2
%8 = getelementptr inbounds %struct.TYPE_9__, ptr %3, i64 0, i32 1
br label %9
9: ; preds = %6, %113
%10 = phi i32 [ %2, %6 ], [ %98, %113 ]
%11 = load i32, ptr %3, align 8, !tbaa !9
%12 = tail call i32 @qmPortalDqrrPvbUpdate(i32 noundef %11) #2
%13 = load i32, ptr %3, align 8, !tbaa !9
%14 = tail call ptr @qm_dqrr_current(i32 noundef %13) #2
%15 = icmp eq ptr %14, null
br i1 %15, label %120, label %16
16: ; preds = %9
%17 = getelementptr inbounds %struct.qm_dqrr_entry, ptr %14, i64 0, i32 3
%18 = load i32, ptr %17, align 4, !tbaa !12
%19 = tail call ptr @ptr_from_aligned_int(i32 noundef %18) #2
%20 = load i32, ptr %14, align 4, !tbaa !14
%21 = load i32, ptr @QM_DQRR_STAT_UNSCHEDULED, align 4, !tbaa !5
%22 = and i32 %21, %20
%23 = icmp eq i32 %22, 0
br i1 %23, label %60, label %24
24: ; preds = %16
%25 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 4
%26 = load ptr, ptr %25, align 8, !tbaa !15
%27 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 3
%28 = load i32, ptr %27, align 8, !tbaa !19
%29 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 2
%30 = load i32, ptr %29, align 4, !tbaa !20
%31 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 1
%32 = load i32, ptr %31, align 8, !tbaa !21
%33 = getelementptr inbounds %struct.qm_dqrr_entry, ptr %14, i64 0, i32 2
%34 = tail call i64 %26(i32 noundef %28, i32 noundef %30, ptr noundef nonnull %3, i32 noundef %32, ptr noundef nonnull %33) #2
%35 = load i64, ptr @e_RX_STORE_RESPONSE_PAUSE, align 8, !tbaa !22
%36 = icmp eq i64 %34, %35
%37 = load i32, ptr @qman_cb_dqrr_pause, align 4
%38 = select i1 %36, i32 %37, i32 %10
%39 = load i32, ptr %14, align 4, !tbaa !14
%40 = load i32, ptr @QM_DQRR_STAT_DQCR_EXPIRED, align 4, !tbaa !5
%41 = and i32 %40, %39
%42 = icmp eq i32 %41, 0
br i1 %42, label %49, label %43
43: ; preds = %24
%44 = load i32, ptr @QMAN_FQ_STATE_VDQCR, align 4, !tbaa !5
%45 = xor i32 %44, -1
%46 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 5
%47 = load i32, ptr %46, align 8, !tbaa !23
%48 = and i32 %47, %45
store i32 %48, ptr %46, align 8, !tbaa !23
br label %49
49: ; preds = %43, %24
%50 = load i32, ptr @QM_DQRR_STAT_FQ_EMPTY, align 4, !tbaa !5
%51 = and i32 %50, %39
%52 = icmp eq i32 %51, 0
br i1 %52, label %97, label %53
53: ; preds = %49
%54 = load i32, ptr @QMAN_FQ_STATE_NE, align 4, !tbaa !5
%55 = xor i32 %54, -1
%56 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 5
%57 = load i32, ptr %56, align 8, !tbaa !23
%58 = and i32 %57, %55
store i32 %58, ptr %56, align 8, !tbaa !23
%59 = tail call i32 @freeDrainedFq(ptr noundef nonnull %19) #2
br label %97
60: ; preds = %16
%61 = getelementptr inbounds %struct.qm_dqrr_entry, ptr %14, i64 0, i32 1
%62 = load i32, ptr %61, align 4, !tbaa !24
%63 = tail call i32 @ASSERT_COND(i32 noundef %62) #2
%64 = icmp eq ptr %19, null
br i1 %64, label %86, label %65
65: ; preds = %60
%66 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 4
%67 = load ptr, ptr %66, align 8, !tbaa !15
%68 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 3
%69 = load i32, ptr %68, align 8, !tbaa !19
%70 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 2
%71 = load i32, ptr %70, align 4, !tbaa !20
%72 = getelementptr inbounds %struct.qman_fq, ptr %19, i64 0, i32 1
%73 = load i32, ptr %72, align 8, !tbaa !21
%74 = getelementptr inbounds %struct.qm_dqrr_entry, ptr %14, i64 0, i32 2
%75 = tail call i64 %67(i32 noundef %69, i32 noundef %71, ptr noundef nonnull %3, i32 noundef %73, ptr noundef nonnull %74) #2
%76 = load i64, ptr @e_RX_STORE_RESPONSE_PAUSE, align 8, !tbaa !22
%77 = icmp eq i64 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %65
%79 = load i32, ptr @qman_cb_dqrr_pause, align 4, !tbaa !5
br label %97
80: ; preds = %65
%81 = load i64, ptr %19, align 8, !tbaa !25
%82 = load i64, ptr @qman_fq_state_waiting_parked, align 8, !tbaa !22
%83 = icmp eq i64 %81, %82
%84 = load i32, ptr @qman_cb_dqrr_park, align 4
%85 = select i1 %83, i32 %84, i32 %10
br label %97
86: ; preds = %60
%87 = load ptr, ptr %7, align 8, !tbaa !26
%88 = load ptr, ptr %87, align 8, !tbaa !27
%89 = load i32, ptr %8, align 4, !tbaa !29
%90 = load i32, ptr %61, align 4, !tbaa !24
%91 = getelementptr inbounds %struct.qm_dqrr_entry, ptr %14, i64 0, i32 2
%92 = tail call i64 %88(i32 noundef %89, ptr noundef null, ptr noundef nonnull %3, i32 noundef %90, ptr noundef nonnull %91) #2
%93 = load i64, ptr @e_RX_STORE_RESPONSE_PAUSE, align 8, !tbaa !22
%94 = icmp eq i64 %92, %93
%95 = load i32, ptr @qman_cb_dqrr_pause, align 4
%96 = select i1 %94, i32 %95, i32 %10
br label %97
97: ; preds = %86, %80, %78, %49, %53
%98 = phi i32 [ %38, %53 ], [ %38, %49 ], [ %79, %78 ], [ %85, %80 ], [ %96, %86 ]
%99 = load i32, ptr %14, align 4, !tbaa !14
%100 = load i32, ptr @QM_DQRR_STAT_FQ_HELDACTIVE, align 4, !tbaa !5
%101 = and i32 %100, %99
%102 = icmp ne i32 %101, 0
%103 = load i32, ptr @qman_cb_dqrr_park, align 4
%104 = icmp ne i32 %98, %103
%105 = select i1 %102, i1 true, i1 %104
%106 = zext i1 %105 to i32
%107 = tail call i32 @ASSERT_COND(i32 noundef %106) #2
%108 = load i32, ptr @qman_cb_dqrr_park, align 4, !tbaa !5
%109 = icmp eq i32 %98, %108
br i1 %109, label %110, label %113
110: ; preds = %97
%111 = load i32, ptr %3, align 8, !tbaa !9
%112 = tail call i32 @qm_dqrr_park_ci(i32 noundef %111) #2
br label %113
113: ; preds = %110, %97
%114 = load i32, ptr %3, align 8, !tbaa !9
%115 = tail call i32 @qm_dqrr_next(i32 noundef %114) #2
%116 = load i32, ptr %3, align 8, !tbaa !9
%117 = tail call i32 @qmPortalDqrrCciConsume(i32 noundef %116, i32 noundef 1) #2
%118 = load i32, ptr @qman_cb_dqrr_pause, align 4, !tbaa !5
%119 = icmp eq i32 %98, %118
br i1 %119, label %120, label %9, !llvm.loop !30
120: ; preds = %113, %9, %1
ret void
}
declare i32 @qmPortalDqrrPvbUpdate(i32 noundef) local_unnamed_addr #1
declare ptr @qm_dqrr_current(i32 noundef) local_unnamed_addr #1
declare ptr @ptr_from_aligned_int(i32 noundef) local_unnamed_addr #1
declare i32 @freeDrainedFq(ptr noundef) local_unnamed_addr #1
declare i32 @ASSERT_COND(i32 noundef) local_unnamed_addr #1
declare i32 @qm_dqrr_park_ci(i32 noundef) local_unnamed_addr #1
declare i32 @qm_dqrr_next(i32 noundef) local_unnamed_addr #1
declare i32 @qmPortalDqrrCciConsume(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_9__", !6, i64 0, !6, i64 4, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 12}
!13 = !{!"qm_dqrr_entry", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!14 = !{!13, !6, i64 0}
!15 = !{!16, !11, i64 24}
!16 = !{!"qman_fq", !17, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !18, i64 24, !6, i64 32}
!17 = !{!"long", !7, i64 0}
!18 = !{!"TYPE_7__", !11, i64 0}
!19 = !{!16, !6, i64 16}
!20 = !{!16, !6, i64 12}
!21 = !{!16, !6, i64 8}
!22 = !{!17, !17, i64 0}
!23 = !{!16, !6, i64 32}
!24 = !{!13, !6, i64 4}
!25 = !{!16, !17, i64 0}
!26 = !{!10, !11, i64 8}
!27 = !{!28, !11, i64 0}
!28 = !{!"TYPE_8__", !11, i64 0}
!29 = !{!10, !6, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/QM/extr_qm_portal_fqr.c_LoopDequeueRingOptimized.c'
source_filename = "AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/QM/extr_qm_portal_fqr.c_LoopDequeueRingOptimized.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@qman_cb_dqrr_consume = common local_unnamed_addr global i32 0, align 4
@qman_cb_dqrr_pause = common local_unnamed_addr global i32 0, align 4
@QM_DQRR_STAT_UNSCHEDULED = common local_unnamed_addr global i32 0, align 4
@e_RX_STORE_RESPONSE_PAUSE = common local_unnamed_addr global i64 0, align 8
@QM_DQRR_STAT_DQCR_EXPIRED = common local_unnamed_addr global i32 0, align 4
@QMAN_FQ_STATE_VDQCR = common local_unnamed_addr global i32 0, align 4
@QM_DQRR_STAT_FQ_EMPTY = common local_unnamed_addr global i32 0, align 4
@QMAN_FQ_STATE_NE = common local_unnamed_addr global i32 0, align 4
@qman_fq_state_waiting_parked = common local_unnamed_addr global i64 0, align 8
@qman_cb_dqrr_park = common local_unnamed_addr global i32 0, align 4
@QM_DQRR_STAT_FQ_HELDACTIVE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @LoopDequeueRingOptimized], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @LoopDequeueRingOptimized(i64 noundef %0) #0 {
%2 = load i32, ptr @qman_cb_dqrr_consume, align 4, !tbaa !6
%3 = inttoptr i64 %0 to ptr
%4 = load i32, ptr @qman_cb_dqrr_pause, align 4, !tbaa !6
%5 = icmp eq i32 %2, %4
br i1 %5, label %120, label %6
6: ; preds = %1
%7 = getelementptr inbounds i8, ptr %3, i64 8
%8 = getelementptr inbounds i8, ptr %3, i64 4
br label %9
9: ; preds = %6, %113
%10 = phi i32 [ %2, %6 ], [ %98, %113 ]
%11 = load i32, ptr %3, align 8, !tbaa !10
%12 = tail call i32 @qmPortalDqrrPvbUpdate(i32 noundef %11) #2
%13 = load i32, ptr %3, align 8, !tbaa !10
%14 = tail call ptr @qm_dqrr_current(i32 noundef %13) #2
%15 = icmp eq ptr %14, null
br i1 %15, label %120, label %16
16: ; preds = %9
%17 = getelementptr inbounds i8, ptr %14, i64 12
%18 = load i32, ptr %17, align 4, !tbaa !13
%19 = tail call ptr @ptr_from_aligned_int(i32 noundef %18) #2
%20 = load i32, ptr %14, align 4, !tbaa !15
%21 = load i32, ptr @QM_DQRR_STAT_UNSCHEDULED, align 4, !tbaa !6
%22 = and i32 %21, %20
%23 = icmp eq i32 %22, 0
br i1 %23, label %60, label %24
24: ; preds = %16
%25 = getelementptr inbounds i8, ptr %19, i64 24
%26 = load ptr, ptr %25, align 8, !tbaa !16
%27 = getelementptr inbounds i8, ptr %19, i64 16
%28 = load i32, ptr %27, align 8, !tbaa !20
%29 = getelementptr inbounds i8, ptr %19, i64 12
%30 = load i32, ptr %29, align 4, !tbaa !21
%31 = getelementptr inbounds i8, ptr %19, i64 8
%32 = load i32, ptr %31, align 8, !tbaa !22
%33 = getelementptr inbounds i8, ptr %14, i64 8
%34 = tail call i64 %26(i32 noundef %28, i32 noundef %30, ptr noundef nonnull %3, i32 noundef %32, ptr noundef nonnull %33) #2
%35 = load i64, ptr @e_RX_STORE_RESPONSE_PAUSE, align 8, !tbaa !23
%36 = icmp eq i64 %34, %35
%37 = load i32, ptr @qman_cb_dqrr_pause, align 4
%38 = select i1 %36, i32 %37, i32 %10
%39 = load i32, ptr %14, align 4, !tbaa !15
%40 = load i32, ptr @QM_DQRR_STAT_DQCR_EXPIRED, align 4, !tbaa !6
%41 = and i32 %40, %39
%42 = icmp eq i32 %41, 0
br i1 %42, label %49, label %43
43: ; preds = %24
%44 = load i32, ptr @QMAN_FQ_STATE_VDQCR, align 4, !tbaa !6
%45 = xor i32 %44, -1
%46 = getelementptr inbounds i8, ptr %19, i64 32
%47 = load i32, ptr %46, align 8, !tbaa !24
%48 = and i32 %47, %45
store i32 %48, ptr %46, align 8, !tbaa !24
br label %49
49: ; preds = %43, %24
%50 = load i32, ptr @QM_DQRR_STAT_FQ_EMPTY, align 4, !tbaa !6
%51 = and i32 %50, %39
%52 = icmp eq i32 %51, 0
br i1 %52, label %97, label %53
53: ; preds = %49
%54 = load i32, ptr @QMAN_FQ_STATE_NE, align 4, !tbaa !6
%55 = xor i32 %54, -1
%56 = getelementptr inbounds i8, ptr %19, i64 32
%57 = load i32, ptr %56, align 8, !tbaa !24
%58 = and i32 %57, %55
store i32 %58, ptr %56, align 8, !tbaa !24
%59 = tail call i32 @freeDrainedFq(ptr noundef nonnull %19) #2
br label %97
60: ; preds = %16
%61 = getelementptr inbounds i8, ptr %14, i64 4
%62 = load i32, ptr %61, align 4, !tbaa !25
%63 = tail call i32 @ASSERT_COND(i32 noundef %62) #2
%64 = icmp eq ptr %19, null
br i1 %64, label %86, label %65
65: ; preds = %60
%66 = getelementptr inbounds i8, ptr %19, i64 24
%67 = load ptr, ptr %66, align 8, !tbaa !16
%68 = getelementptr inbounds i8, ptr %19, i64 16
%69 = load i32, ptr %68, align 8, !tbaa !20
%70 = getelementptr inbounds i8, ptr %19, i64 12
%71 = load i32, ptr %70, align 4, !tbaa !21
%72 = getelementptr inbounds i8, ptr %19, i64 8
%73 = load i32, ptr %72, align 8, !tbaa !22
%74 = getelementptr inbounds i8, ptr %14, i64 8
%75 = tail call i64 %67(i32 noundef %69, i32 noundef %71, ptr noundef nonnull %3, i32 noundef %73, ptr noundef nonnull %74) #2
%76 = load i64, ptr @e_RX_STORE_RESPONSE_PAUSE, align 8, !tbaa !23
%77 = icmp eq i64 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %65
%79 = load i32, ptr @qman_cb_dqrr_pause, align 4, !tbaa !6
br label %97
80: ; preds = %65
%81 = load i64, ptr %19, align 8, !tbaa !26
%82 = load i64, ptr @qman_fq_state_waiting_parked, align 8, !tbaa !23
%83 = icmp eq i64 %81, %82
%84 = load i32, ptr @qman_cb_dqrr_park, align 4
%85 = select i1 %83, i32 %84, i32 %10
br label %97
86: ; preds = %60
%87 = load ptr, ptr %7, align 8, !tbaa !27
%88 = load ptr, ptr %87, align 8, !tbaa !28
%89 = load i32, ptr %8, align 4, !tbaa !30
%90 = load i32, ptr %61, align 4, !tbaa !25
%91 = getelementptr inbounds i8, ptr %14, i64 8
%92 = tail call i64 %88(i32 noundef %89, ptr noundef null, ptr noundef nonnull %3, i32 noundef %90, ptr noundef nonnull %91) #2
%93 = load i64, ptr @e_RX_STORE_RESPONSE_PAUSE, align 8, !tbaa !23
%94 = icmp eq i64 %92, %93
%95 = load i32, ptr @qman_cb_dqrr_pause, align 4
%96 = select i1 %94, i32 %95, i32 %10
br label %97
97: ; preds = %86, %80, %78, %49, %53
%98 = phi i32 [ %38, %53 ], [ %38, %49 ], [ %79, %78 ], [ %85, %80 ], [ %96, %86 ]
%99 = load i32, ptr %14, align 4, !tbaa !15
%100 = load i32, ptr @QM_DQRR_STAT_FQ_HELDACTIVE, align 4, !tbaa !6
%101 = and i32 %100, %99
%102 = icmp ne i32 %101, 0
%103 = load i32, ptr @qman_cb_dqrr_park, align 4
%104 = icmp ne i32 %98, %103
%105 = select i1 %102, i1 true, i1 %104
%106 = zext i1 %105 to i32
%107 = tail call i32 @ASSERT_COND(i32 noundef %106) #2
%108 = load i32, ptr @qman_cb_dqrr_park, align 4, !tbaa !6
%109 = icmp eq i32 %98, %108
br i1 %109, label %110, label %113
110: ; preds = %97
%111 = load i32, ptr %3, align 8, !tbaa !10
%112 = tail call i32 @qm_dqrr_park_ci(i32 noundef %111) #2
br label %113
113: ; preds = %110, %97
%114 = load i32, ptr %3, align 8, !tbaa !10
%115 = tail call i32 @qm_dqrr_next(i32 noundef %114) #2
%116 = load i32, ptr %3, align 8, !tbaa !10
%117 = tail call i32 @qmPortalDqrrCciConsume(i32 noundef %116, i32 noundef 1) #2
%118 = load i32, ptr @qman_cb_dqrr_pause, align 4, !tbaa !6
%119 = icmp eq i32 %98, %118
br i1 %119, label %120, label %9, !llvm.loop !31
120: ; preds = %113, %9, %1
ret void
}
declare i32 @qmPortalDqrrPvbUpdate(i32 noundef) local_unnamed_addr #1
declare ptr @qm_dqrr_current(i32 noundef) local_unnamed_addr #1
declare ptr @ptr_from_aligned_int(i32 noundef) local_unnamed_addr #1
declare i32 @freeDrainedFq(ptr noundef) local_unnamed_addr #1
declare i32 @ASSERT_COND(i32 noundef) local_unnamed_addr #1
declare i32 @qm_dqrr_park_ci(i32 noundef) local_unnamed_addr #1
declare i32 @qm_dqrr_next(i32 noundef) local_unnamed_addr #1
declare i32 @qmPortalDqrrCciConsume(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_9__", !7, i64 0, !7, i64 4, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 12}
!14 = !{!"qm_dqrr_entry", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!15 = !{!14, !7, i64 0}
!16 = !{!17, !12, i64 24}
!17 = !{!"qman_fq", !18, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !19, i64 24, !7, i64 32}
!18 = !{!"long", !8, i64 0}
!19 = !{!"TYPE_7__", !12, i64 0}
!20 = !{!17, !7, i64 16}
!21 = !{!17, !7, i64 12}
!22 = !{!17, !7, i64 8}
!23 = !{!18, !18, i64 0}
!24 = !{!17, !7, i64 32}
!25 = !{!14, !7, i64 4}
!26 = !{!17, !18, i64 0}
!27 = !{!11, !12, i64 8}
!28 = !{!29, !12, i64 0}
!29 = !{!"TYPE_8__", !12, i64 0}
!30 = !{!11, !7, i64 4}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_contrib_ncsw_Peripherals_QM_extr_qm_portal_fqr.c_LoopDequeueRingOptimized |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/radeon/extr_evergreen_blit_kms.c_set_shaders.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/radeon/extr_evergreen_blit_kms.c_set_shaders.c"
target datalayout = "e-m:e-p270:32:32-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.radeon_device = type { %struct.TYPE_2__, ptr }
%struct.TYPE_2__ = type { i32, i32, i32 }
%struct.radeon_ring = type { i32 }
@RADEON_RING_TYPE_GFX_INDEX = dso_local local_unnamed_addr global i64 0, align 8
@PACKET3_SET_CONTEXT_REG = dso_local local_unnamed_addr global i32 0, align 4
@SQ_PGM_START_VS = dso_local local_unnamed_addr global i32 0, align 4
@PACKET3_SET_CONTEXT_REG_START = dso_local local_unnamed_addr global i32 0, align 4
@SQ_PGM_START_PS = dso_local local_unnamed_addr global i32 0, align 4
@PACKET3_SH_ACTION_ENA = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @set_shaders], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @set_shaders(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.radeon_device, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i64, ptr @RADEON_RING_TYPE_GFX_INDEX, align 8, !tbaa !12
%5 = getelementptr inbounds %struct.radeon_ring, ptr %3, i64 %4
%6 = load i32, ptr %0, align 8, !tbaa !14
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 1
%8 = load i32, ptr %7, align 4, !tbaa !15
%9 = add nsw i32 %8, %6
%10 = load i32, ptr @PACKET3_SET_CONTEXT_REG, align 4, !tbaa !16
%11 = tail call i32 @PACKET3(i32 noundef %10, i32 noundef 3) #2
%12 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %11) #2
%13 = load i32, ptr @SQ_PGM_START_VS, align 4, !tbaa !16
%14 = load i32, ptr @PACKET3_SET_CONTEXT_REG_START, align 4, !tbaa !16
%15 = sub nsw i32 %13, %14
%16 = ashr i32 %15, 2
%17 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %16) #2
%18 = ashr i32 %9, 8
%19 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %18) #2
%20 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 2) #2
%21 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 0) #2
%22 = load i32, ptr %0, align 8, !tbaa !14
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 2
%24 = load i32, ptr %23, align 8, !tbaa !17
%25 = add nsw i32 %24, %22
%26 = load i32, ptr @PACKET3_SET_CONTEXT_REG, align 4, !tbaa !16
%27 = tail call i32 @PACKET3(i32 noundef %26, i32 noundef 4) #2
%28 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %27) #2
%29 = load i32, ptr @SQ_PGM_START_PS, align 4, !tbaa !16
%30 = load i32, ptr @PACKET3_SET_CONTEXT_REG_START, align 4, !tbaa !16
%31 = sub nsw i32 %29, %30
%32 = ashr i32 %31, 2
%33 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %32) #2
%34 = ashr i32 %25, 8
%35 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %34) #2
%36 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 1) #2
%37 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 0) #2
%38 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 2) #2
%39 = load i32, ptr %0, align 8, !tbaa !14
%40 = load i32, ptr %7, align 4, !tbaa !15
%41 = add nsw i32 %40, %39
%42 = load i32, ptr @PACKET3_SH_ACTION_ENA, align 4, !tbaa !16
%43 = tail call i32 @cp_set_surface_sync(ptr noundef nonnull %0, i32 noundef %42, i32 noundef 512, i32 noundef %41) #2
ret void
}
declare i32 @radeon_ring_write(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PACKET3(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @cp_set_surface_sync(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"radeon_device", !7, i64 0, !11, i64 16}
!7 = !{!"TYPE_2__", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!6, !8, i64 0}
!15 = !{!6, !8, i64 4}
!16 = !{!8, !8, i64 0}
!17 = !{!6, !8, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/radeon/extr_evergreen_blit_kms.c_set_shaders.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/radeon/extr_evergreen_blit_kms.c_set_shaders.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.radeon_ring = type { i32 }
@RADEON_RING_TYPE_GFX_INDEX = common local_unnamed_addr global i64 0, align 8
@PACKET3_SET_CONTEXT_REG = common local_unnamed_addr global i32 0, align 4
@SQ_PGM_START_VS = common local_unnamed_addr global i32 0, align 4
@PACKET3_SET_CONTEXT_REG_START = common local_unnamed_addr global i32 0, align 4
@SQ_PGM_START_PS = common local_unnamed_addr global i32 0, align 4
@PACKET3_SH_ACTION_ENA = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @set_shaders], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @set_shaders(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i64, ptr @RADEON_RING_TYPE_GFX_INDEX, align 8, !tbaa !13
%5 = getelementptr inbounds %struct.radeon_ring, ptr %3, i64 %4
%6 = load i32, ptr %0, align 8, !tbaa !15
%7 = getelementptr inbounds i8, ptr %0, i64 4
%8 = load i32, ptr %7, align 4, !tbaa !16
%9 = add nsw i32 %8, %6
%10 = load i32, ptr @PACKET3_SET_CONTEXT_REG, align 4, !tbaa !17
%11 = tail call i32 @PACKET3(i32 noundef %10, i32 noundef 3) #2
%12 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %11) #2
%13 = load i32, ptr @SQ_PGM_START_VS, align 4, !tbaa !17
%14 = load i32, ptr @PACKET3_SET_CONTEXT_REG_START, align 4, !tbaa !17
%15 = sub nsw i32 %13, %14
%16 = ashr i32 %15, 2
%17 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %16) #2
%18 = ashr i32 %9, 8
%19 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %18) #2
%20 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 2) #2
%21 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 0) #2
%22 = load i32, ptr %0, align 8, !tbaa !15
%23 = getelementptr inbounds i8, ptr %0, i64 8
%24 = load i32, ptr %23, align 8, !tbaa !18
%25 = add nsw i32 %24, %22
%26 = load i32, ptr @PACKET3_SET_CONTEXT_REG, align 4, !tbaa !17
%27 = tail call i32 @PACKET3(i32 noundef %26, i32 noundef 4) #2
%28 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %27) #2
%29 = load i32, ptr @SQ_PGM_START_PS, align 4, !tbaa !17
%30 = load i32, ptr @PACKET3_SET_CONTEXT_REG_START, align 4, !tbaa !17
%31 = sub nsw i32 %29, %30
%32 = ashr i32 %31, 2
%33 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %32) #2
%34 = ashr i32 %25, 8
%35 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef %34) #2
%36 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 1) #2
%37 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 0) #2
%38 = tail call i32 @radeon_ring_write(ptr noundef %5, i32 noundef 2) #2
%39 = load i32, ptr %0, align 8, !tbaa !15
%40 = load i32, ptr %7, align 4, !tbaa !16
%41 = add nsw i32 %40, %39
%42 = load i32, ptr @PACKET3_SH_ACTION_ENA, align 4, !tbaa !17
%43 = tail call i32 @cp_set_surface_sync(ptr noundef nonnull %0, i32 noundef %42, i32 noundef 512, i32 noundef %41) #2
ret void
}
declare i32 @radeon_ring_write(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PACKET3(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @cp_set_surface_sync(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 16}
!7 = !{!"radeon_device", !8, i64 0, !12, i64 16}
!8 = !{!"TYPE_2__", !9, i64 0, !9, i64 4, !9, i64 8}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !10, i64 0}
!15 = !{!7, !9, i64 0}
!16 = !{!7, !9, i64 4}
!17 = !{!9, !9, i64 0}
!18 = !{!7, !9, i64 8}
| fastsocket_kernel_drivers_gpu_drm_radeon_extr_evergreen_blit_kms.c_set_shaders |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/jbd/extr_commit.c_journal_end_buffer_io_sync.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/jbd/extr_commit.c_journal_end_buffer_io_sync.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @journal_end_buffer_io_sync], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @journal_end_buffer_io_sync(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @BUFFER_TRACE(ptr noundef %0, ptr noundef nonnull @.str) #2
%4 = icmp eq i32 %1, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @set_buffer_uptodate(ptr noundef %0) #2
br label %9
7: ; preds = %2
%8 = tail call i32 @clear_buffer_uptodate(ptr noundef %0) #2
br label %9
9: ; preds = %7, %5
%10 = tail call i32 @unlock_buffer(ptr noundef %0) #2
ret void
}
declare i32 @BUFFER_TRACE(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @set_buffer_uptodate(ptr noundef) local_unnamed_addr #1
declare i32 @clear_buffer_uptodate(ptr noundef) local_unnamed_addr #1
declare i32 @unlock_buffer(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/jbd/extr_commit.c_journal_end_buffer_io_sync.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/jbd/extr_commit.c_journal_end_buffer_io_sync.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@llvm.used = appending global [1 x ptr] [ptr @journal_end_buffer_io_sync], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @journal_end_buffer_io_sync(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @BUFFER_TRACE(ptr noundef %0, ptr noundef nonnull @.str) #2
%4 = icmp eq i32 %1, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @set_buffer_uptodate(ptr noundef %0) #2
br label %9
7: ; preds = %2
%8 = tail call i32 @clear_buffer_uptodate(ptr noundef %0) #2
br label %9
9: ; preds = %7, %5
%10 = tail call i32 @unlock_buffer(ptr noundef %0) #2
ret void
}
declare i32 @BUFFER_TRACE(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @set_buffer_uptodate(ptr noundef) local_unnamed_addr #1
declare i32 @clear_buffer_uptodate(ptr noundef) local_unnamed_addr #1
declare i32 @unlock_buffer(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_fs_jbd_extr_commit.c_journal_end_buffer_io_sync |
; ModuleID = 'AnghaBench/Provenance/Cores/FCEU/FCEU/lua/src/extr_lstrlib.c_end_capture.c'
source_filename = "AnghaBench/Provenance/Cores/FCEU/FCEU/lua/src/extr_lstrlib.c_end_capture.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_6__ = type { ptr, i32 }
@CAP_UNFINISHED = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @end_capture], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @end_capture(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call i32 @capture_to_close(ptr noundef %0) #2
%5 = load ptr, ptr %0, align 8, !tbaa !5
%6 = sext i32 %4 to i64
%7 = getelementptr inbounds %struct.TYPE_6__, ptr %5, i64 %6
%8 = getelementptr inbounds %struct.TYPE_6__, ptr %5, i64 %6, i32 1
%9 = load i32, ptr %8, align 8, !tbaa !10
%10 = sext i32 %9 to i64
%11 = sub nsw i64 0, %10
%12 = getelementptr inbounds i8, ptr %1, i64 %11
store ptr %12, ptr %7, align 8, !tbaa !13
%13 = tail call ptr @match(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %19
15: ; preds = %3
%16 = load ptr, ptr @CAP_UNFINISHED, align 8, !tbaa !14
%17 = load ptr, ptr %0, align 8, !tbaa !5
%18 = getelementptr inbounds %struct.TYPE_6__, ptr %17, i64 %6
store ptr %16, ptr %18, align 8, !tbaa !13
br label %19
19: ; preds = %15, %3
ret ptr %13
}
declare i32 @capture_to_close(ptr noundef) local_unnamed_addr #1
declare ptr @match(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_7__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"TYPE_6__", !7, i64 0, !12, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !7, i64 0}
!14 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/Provenance/Cores/FCEU/FCEU/lua/src/extr_lstrlib.c_end_capture.c'
source_filename = "AnghaBench/Provenance/Cores/FCEU/FCEU/lua/src/extr_lstrlib.c_end_capture.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_6__ = type { ptr, i32 }
@CAP_UNFINISHED = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @end_capture], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @end_capture(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call i32 @capture_to_close(ptr noundef %0) #2
%5 = load ptr, ptr %0, align 8, !tbaa !6
%6 = sext i32 %4 to i64
%7 = getelementptr inbounds %struct.TYPE_6__, ptr %5, i64 %6
%8 = getelementptr inbounds i8, ptr %7, i64 8
%9 = load i32, ptr %8, align 8, !tbaa !11
%10 = sext i32 %9 to i64
%11 = sub nsw i64 0, %10
%12 = getelementptr inbounds i8, ptr %1, i64 %11
store ptr %12, ptr %7, align 8, !tbaa !14
%13 = tail call ptr @match(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %19
15: ; preds = %3
%16 = load ptr, ptr @CAP_UNFINISHED, align 8, !tbaa !15
%17 = load ptr, ptr %0, align 8, !tbaa !6
%18 = getelementptr inbounds %struct.TYPE_6__, ptr %17, i64 %6
store ptr %16, ptr %18, align 8, !tbaa !14
br label %19
19: ; preds = %15, %3
ret ptr %13
}
declare i32 @capture_to_close(ptr noundef) local_unnamed_addr #1
declare ptr @match(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_7__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 8}
!12 = !{!"TYPE_6__", !8, i64 0, !13, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !8, i64 0}
!15 = !{!8, !8, i64 0}
| Provenance_Cores_FCEU_FCEU_lua_src_extr_lstrlib.c_end_capture |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/ap/extr_ieee802_1x.c_add_common_radius_sta_attr.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/ap/extr_ieee802_1x.c_add_common_radius_sta_attr.c"
target datalayout = "e-m:e-p270:32:32-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.sta_info = type { i64, i32, i64, i64, ptr, i64, i32 }
%struct.TYPE_4__ = type { i32, i64, i32, i32, i32 }
@RADIUS_ATTR_SERVICE_TYPE = dso_local local_unnamed_addr global i32 0, align 4
@RADIUS_SERVICE_TYPE_FRAMED = dso_local local_unnamed_addr global i64 0, align 8
@MSG_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"Could not add Service-Type\00", align 1
@RADIUS_ATTR_NAS_PORT = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Could not add NAS-Port\00", align 1
@RADIUS_802_1X_ADDR_FORMAT = dso_local local_unnamed_addr global ptr null, align 8
@RADIUS_ATTR_CALLING_STATION_ID = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"Could not add Calling-Station-Id\00", align 1
@WLAN_STA_PREAUTH = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [32 x i8] c"IEEE 802.11i Pre-Authentication\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"CONNECT %d%sMbps %s\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c".5\00", align 1
@.str.6 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@RADIUS_ATTR_CONNECT_INFO = dso_local local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [27 x i8] c"Could not add Connect-Info\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"%016llX\00", align 1
@RADIUS_ATTR_ACCT_SESSION_ID = dso_local local_unnamed_addr global i32 0, align 4
@.str.9 = private unnamed_addr constant [30 x i8] c"Could not add Acct-Session-Id\00", align 1
@RADIUS_ATTR_ACCT_MULTI_SESSION_ID = dso_local local_unnamed_addr global i32 0, align 4
@MSG_INFO = dso_local local_unnamed_addr global i32 0, align 4
@.str.10 = private unnamed_addr constant [36 x i8] c"Could not add Acct-Multi-Session-Id\00", align 1
@RADIUS_ATTR_MOBILITY_DOMAIN_ID = dso_local local_unnamed_addr global i32 0, align 4
@WLAN_AUTH_FT = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @add_common_radius_sta_attr], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @add_common_radius_sta_attr(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca [128 x i8], align 16
call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #3
%6 = load i32, ptr @RADIUS_ATTR_SERVICE_TYPE, align 4, !tbaa !5
%7 = tail call i32 @hostapd_config_get_radius_attr(ptr noundef %1, i32 noundef %6) #3
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %17
9: ; preds = %4
%10 = load i32, ptr @RADIUS_ATTR_SERVICE_TYPE, align 4, !tbaa !5
%11 = load i64, ptr @RADIUS_SERVICE_TYPE_FRAMED, align 8, !tbaa !9
%12 = tail call i32 @radius_msg_add_attr_int32(ptr noundef %3, i32 noundef %10, i64 noundef %11) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%16 = tail call i32 @wpa_printf(i32 noundef %15, ptr noundef nonnull @.str) #3
br label %132
17: ; preds = %9, %4
%18 = load i32, ptr @RADIUS_ATTR_NAS_PORT, align 4, !tbaa !5
%19 = tail call i32 @hostapd_config_get_radius_attr(ptr noundef %1, i32 noundef %18) #3
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %31
21: ; preds = %17
%22 = load i64, ptr %2, align 8, !tbaa !11
%23 = icmp sgt i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %21
%25 = load i32, ptr @RADIUS_ATTR_NAS_PORT, align 4, !tbaa !5
%26 = tail call i32 @radius_msg_add_attr_int32(ptr noundef %3, i32 noundef %25, i64 noundef %22) #3
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%30 = tail call i32 @wpa_printf(i32 noundef %29, ptr noundef nonnull @.str.1) #3
br label %132
31: ; preds = %24, %21, %17
%32 = load ptr, ptr @RADIUS_802_1X_ADDR_FORMAT, align 8, !tbaa !14
%33 = getelementptr inbounds %struct.sta_info, ptr %2, i64 0, i32 6
%34 = load i32, ptr %33, align 8, !tbaa !15
%35 = tail call i64 @MAC2STR(i32 noundef %34) #3
%36 = call i32 (ptr, i32, ptr, i64, ...) @os_snprintf(ptr noundef nonnull %5, i32 noundef 128, ptr noundef %32, i64 noundef %35) #3
%37 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 127
store i8 0, ptr %37, align 1, !tbaa !16
%38 = load i32, ptr @RADIUS_ATTR_CALLING_STATION_ID, align 4, !tbaa !5
%39 = call i32 @os_strlen(ptr noundef nonnull %5) #3
%40 = call i32 @radius_msg_add_attr(ptr noundef %3, i32 noundef %38, ptr noundef nonnull %5, i32 noundef %39) #3
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %31
%43 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%44 = call i32 @wpa_printf(i32 noundef %43, ptr noundef nonnull @.str.2) #3
br label %132
45: ; preds = %31
%46 = getelementptr inbounds %struct.sta_info, ptr %2, i64 0, i32 1
%47 = load i32, ptr %46, align 8, !tbaa !17
%48 = load i32, ptr @WLAN_STA_PREAUTH, align 4, !tbaa !5
%49 = and i32 %48, %47
%50 = icmp eq i32 %49, 0
br i1 %50, label %53, label %51
51: ; preds = %45
%52 = call i32 @os_strlcpy(ptr noundef nonnull %5, ptr noundef nonnull @.str.3, i32 noundef 128) #3
br label %63
53: ; preds = %45
%54 = call i32 @radius_sta_rate(ptr noundef %0, ptr noundef nonnull %2) #3
%55 = sdiv i32 %54, 2
%56 = sext i32 %55 to i64
%57 = call i32 @radius_sta_rate(ptr noundef %0, ptr noundef nonnull %2) #3
%58 = and i32 %57, 1
%59 = icmp eq i32 %58, 0
%60 = select i1 %59, ptr @.str.6, ptr @.str.5
%61 = call i32 @radius_mode_txt(ptr noundef %0) #3
%62 = call i32 (ptr, i32, ptr, i64, ...) @os_snprintf(ptr noundef nonnull %5, i32 noundef 128, ptr noundef nonnull @.str.4, i64 noundef %56, ptr noundef nonnull %60, i32 noundef %61) #3
store i8 0, ptr %37, align 1, !tbaa !16
br label %63
63: ; preds = %53, %51
%64 = load i32, ptr @RADIUS_ATTR_CONNECT_INFO, align 4, !tbaa !5
%65 = call i32 @hostapd_config_get_radius_attr(ptr noundef %1, i32 noundef %64) #3
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %75
67: ; preds = %63
%68 = load i32, ptr @RADIUS_ATTR_CONNECT_INFO, align 4, !tbaa !5
%69 = call i32 @os_strlen(ptr noundef nonnull %5) #3
%70 = call i32 @radius_msg_add_attr(ptr noundef %3, i32 noundef %68, ptr noundef nonnull %5, i32 noundef %69) #3
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %67
%73 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%74 = call i32 @wpa_printf(i32 noundef %73, ptr noundef nonnull @.str.7) #3
br label %132
75: ; preds = %67, %63
%76 = getelementptr inbounds %struct.sta_info, ptr %2, i64 0, i32 5
%77 = load i64, ptr %76, align 8, !tbaa !18
%78 = icmp eq i64 %77, 0
br i1 %78, label %88, label %79
79: ; preds = %75
%80 = call i32 (ptr, i32, ptr, i64, ...) @os_snprintf(ptr noundef nonnull %5, i32 noundef 128, ptr noundef nonnull @.str.8, i64 noundef %77) #3
%81 = load i32, ptr @RADIUS_ATTR_ACCT_SESSION_ID, align 4, !tbaa !5
%82 = call i32 @os_strlen(ptr noundef nonnull %5) #3
%83 = call i32 @radius_msg_add_attr(ptr noundef %3, i32 noundef %81, ptr noundef nonnull %5, i32 noundef %82) #3
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %79
%86 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%87 = call i32 @wpa_printf(i32 noundef %86, ptr noundef nonnull @.str.9) #3
br label %132
88: ; preds = %79, %75
%89 = load ptr, ptr %0, align 8, !tbaa !19
%90 = load i32, ptr %89, align 8, !tbaa !21
%91 = and i32 %90, 2
%92 = icmp eq i32 %91, 0
br i1 %92, label %116, label %93
93: ; preds = %88
%94 = getelementptr inbounds %struct.TYPE_4__, ptr %89, i64 0, i32 4
%95 = load i32, ptr %94, align 8, !tbaa !23
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %124
97: ; preds = %93
%98 = getelementptr inbounds %struct.sta_info, ptr %2, i64 0, i32 4
%99 = load ptr, ptr %98, align 8, !tbaa !24
%100 = icmp eq ptr %99, null
br i1 %100, label %124, label %101
101: ; preds = %97
%102 = load i64, ptr %99, align 8, !tbaa !25
%103 = icmp eq i64 %102, 0
br i1 %103, label %124, label %104
104: ; preds = %101
%105 = call i32 (ptr, i32, ptr, i64, ...) @os_snprintf(ptr noundef nonnull %5, i32 noundef 128, ptr noundef nonnull @.str.8, i64 noundef %102) #3
%106 = load i32, ptr @RADIUS_ATTR_ACCT_MULTI_SESSION_ID, align 4, !tbaa !5
%107 = call i32 @os_strlen(ptr noundef nonnull %5) #3
%108 = call i32 @radius_msg_add_attr(ptr noundef %3, i32 noundef %106, ptr noundef nonnull %5, i32 noundef %107) #3
%109 = icmp eq i32 %108, 0
br i1 %109, label %113, label %110
110: ; preds = %104
%111 = load ptr, ptr %0, align 8, !tbaa !19
%112 = load i32, ptr %111, align 8, !tbaa !21
br label %116
113: ; preds = %104
%114 = load i32, ptr @MSG_INFO, align 4, !tbaa !5
%115 = call i32 @wpa_printf(i32 noundef %114, ptr noundef nonnull @.str.10) #3
br label %132
116: ; preds = %110, %88
%117 = phi i32 [ %112, %110 ], [ %90, %88 ]
%118 = phi ptr [ %111, %110 ], [ %89, %88 ]
%119 = icmp eq i32 %117, 0
br i1 %119, label %120, label %124
120: ; preds = %116
%121 = getelementptr inbounds %struct.TYPE_4__, ptr %118, i64 0, i32 1
%122 = load i64, ptr %121, align 8, !tbaa !27
%123 = icmp eq i64 %122, 0
br i1 %123, label %131, label %124
124: ; preds = %93, %97, %101, %120, %116
%125 = getelementptr inbounds %struct.sta_info, ptr %2, i64 0, i32 3
%126 = load i64, ptr %125, align 8, !tbaa !28
%127 = icmp eq i64 %126, 0
br i1 %127, label %131, label %128
128: ; preds = %124
%129 = call i64 @add_common_radius_sta_attr_rsn(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3) #3
%130 = icmp slt i64 %129, 0
br i1 %130, label %132, label %131
131: ; preds = %128, %124, %120
br label %132
132: ; preds = %128, %131, %113, %85, %72, %42, %28, %14
%133 = phi i32 [ 0, %131 ], [ -1, %113 ], [ -1, %85 ], [ -1, %72 ], [ -1, %42 ], [ -1, %28 ], [ -1, %14 ], [ -1, %128 ]
call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #3
ret i32 %133
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @hostapd_config_get_radius_attr(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @radius_msg_add_attr_int32(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @wpa_printf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @os_snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ...) local_unnamed_addr #2
declare i64 @MAC2STR(i32 noundef) local_unnamed_addr #2
declare i32 @radius_msg_add_attr(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @os_strlen(ptr noundef) local_unnamed_addr #2
declare i32 @os_strlcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @radius_sta_rate(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @radius_mode_txt(ptr noundef) local_unnamed_addr #2
declare i64 @add_common_radius_sta_attr_rsn(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"sta_info", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !10, i64 40, !6, i64 48}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !6, i64 48}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !6, i64 8}
!18 = !{!12, !10, i64 40}
!19 = !{!20, !13, i64 0}
!20 = !{!"hostapd_data", !13, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"TYPE_4__", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !6, i64 24}
!23 = !{!22, !6, i64 24}
!24 = !{!12, !13, i64 32}
!25 = !{!26, !10, i64 0}
!26 = !{!"TYPE_3__", !10, i64 0}
!27 = !{!22, !10, i64 8}
!28 = !{!12, !10, i64 24}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/ap/extr_ieee802_1x.c_add_common_radius_sta_attr.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/ap/extr_ieee802_1x.c_add_common_radius_sta_attr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RADIUS_ATTR_SERVICE_TYPE = common local_unnamed_addr global i32 0, align 4
@RADIUS_SERVICE_TYPE_FRAMED = common local_unnamed_addr global i64 0, align 8
@MSG_ERROR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"Could not add Service-Type\00", align 1
@RADIUS_ATTR_NAS_PORT = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Could not add NAS-Port\00", align 1
@RADIUS_802_1X_ADDR_FORMAT = common local_unnamed_addr global ptr null, align 8
@RADIUS_ATTR_CALLING_STATION_ID = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"Could not add Calling-Station-Id\00", align 1
@WLAN_STA_PREAUTH = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [32 x i8] c"IEEE 802.11i Pre-Authentication\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"CONNECT %d%sMbps %s\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c".5\00", align 1
@.str.6 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@RADIUS_ATTR_CONNECT_INFO = common local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [27 x i8] c"Could not add Connect-Info\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"%016llX\00", align 1
@RADIUS_ATTR_ACCT_SESSION_ID = common local_unnamed_addr global i32 0, align 4
@.str.9 = private unnamed_addr constant [30 x i8] c"Could not add Acct-Session-Id\00", align 1
@RADIUS_ATTR_ACCT_MULTI_SESSION_ID = common local_unnamed_addr global i32 0, align 4
@MSG_INFO = common local_unnamed_addr global i32 0, align 4
@.str.10 = private unnamed_addr constant [36 x i8] c"Could not add Acct-Multi-Session-Id\00", align 1
@RADIUS_ATTR_MOBILITY_DOMAIN_ID = common local_unnamed_addr global i32 0, align 4
@WLAN_AUTH_FT = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @add_common_radius_sta_attr], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, 1) i32 @add_common_radius_sta_attr(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca [128 x i8], align 1
call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #3
%6 = load i32, ptr @RADIUS_ATTR_SERVICE_TYPE, align 4, !tbaa !6
%7 = tail call i32 @hostapd_config_get_radius_attr(ptr noundef %1, i32 noundef %6) #3
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %17
9: ; preds = %4
%10 = load i32, ptr @RADIUS_ATTR_SERVICE_TYPE, align 4, !tbaa !6
%11 = load i64, ptr @RADIUS_SERVICE_TYPE_FRAMED, align 8, !tbaa !10
%12 = tail call i32 @radius_msg_add_attr_int32(ptr noundef %3, i32 noundef %10, i64 noundef %11) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = load i32, ptr @MSG_ERROR, align 4, !tbaa !6
%16 = tail call i32 @wpa_printf(i32 noundef %15, ptr noundef nonnull @.str) #3
br label %132
17: ; preds = %9, %4
%18 = load i32, ptr @RADIUS_ATTR_NAS_PORT, align 4, !tbaa !6
%19 = tail call i32 @hostapd_config_get_radius_attr(ptr noundef %1, i32 noundef %18) #3
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %31
21: ; preds = %17
%22 = load i64, ptr %2, align 8, !tbaa !12
%23 = icmp sgt i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %21
%25 = load i32, ptr @RADIUS_ATTR_NAS_PORT, align 4, !tbaa !6
%26 = tail call i32 @radius_msg_add_attr_int32(ptr noundef %3, i32 noundef %25, i64 noundef %22) #3
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load i32, ptr @MSG_ERROR, align 4, !tbaa !6
%30 = tail call i32 @wpa_printf(i32 noundef %29, ptr noundef nonnull @.str.1) #3
br label %132
31: ; preds = %24, %21, %17
%32 = load ptr, ptr @RADIUS_802_1X_ADDR_FORMAT, align 8, !tbaa !15
%33 = getelementptr inbounds i8, ptr %2, i64 48
%34 = load i32, ptr %33, align 8, !tbaa !16
%35 = tail call i64 @MAC2STR(i32 noundef %34) #3
%36 = call i32 (ptr, i32, ptr, i64, ...) @os_snprintf(ptr noundef nonnull %5, i32 noundef 128, ptr noundef %32, i64 noundef %35) #3
%37 = getelementptr inbounds i8, ptr %5, i64 127
store i8 0, ptr %37, align 1, !tbaa !17
%38 = load i32, ptr @RADIUS_ATTR_CALLING_STATION_ID, align 4, !tbaa !6
%39 = call i32 @os_strlen(ptr noundef nonnull %5) #3
%40 = call i32 @radius_msg_add_attr(ptr noundef %3, i32 noundef %38, ptr noundef nonnull %5, i32 noundef %39) #3
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %31
%43 = load i32, ptr @MSG_ERROR, align 4, !tbaa !6
%44 = call i32 @wpa_printf(i32 noundef %43, ptr noundef nonnull @.str.2) #3
br label %132
45: ; preds = %31
%46 = getelementptr inbounds i8, ptr %2, i64 8
%47 = load i32, ptr %46, align 8, !tbaa !18
%48 = load i32, ptr @WLAN_STA_PREAUTH, align 4, !tbaa !6
%49 = and i32 %48, %47
%50 = icmp eq i32 %49, 0
br i1 %50, label %53, label %51
51: ; preds = %45
%52 = call i32 @os_strlcpy(ptr noundef nonnull %5, ptr noundef nonnull @.str.3, i32 noundef 128) #3
br label %63
53: ; preds = %45
%54 = call i32 @radius_sta_rate(ptr noundef %0, ptr noundef nonnull %2) #3
%55 = sdiv i32 %54, 2
%56 = sext i32 %55 to i64
%57 = call i32 @radius_sta_rate(ptr noundef %0, ptr noundef nonnull %2) #3
%58 = and i32 %57, 1
%59 = icmp eq i32 %58, 0
%60 = select i1 %59, ptr @.str.6, ptr @.str.5
%61 = call i32 @radius_mode_txt(ptr noundef %0) #3
%62 = call i32 (ptr, i32, ptr, i64, ...) @os_snprintf(ptr noundef nonnull %5, i32 noundef 128, ptr noundef nonnull @.str.4, i64 noundef %56, ptr noundef nonnull %60, i32 noundef %61) #3
store i8 0, ptr %37, align 1, !tbaa !17
br label %63
63: ; preds = %53, %51
%64 = load i32, ptr @RADIUS_ATTR_CONNECT_INFO, align 4, !tbaa !6
%65 = call i32 @hostapd_config_get_radius_attr(ptr noundef %1, i32 noundef %64) #3
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %75
67: ; preds = %63
%68 = load i32, ptr @RADIUS_ATTR_CONNECT_INFO, align 4, !tbaa !6
%69 = call i32 @os_strlen(ptr noundef nonnull %5) #3
%70 = call i32 @radius_msg_add_attr(ptr noundef %3, i32 noundef %68, ptr noundef nonnull %5, i32 noundef %69) #3
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %67
%73 = load i32, ptr @MSG_ERROR, align 4, !tbaa !6
%74 = call i32 @wpa_printf(i32 noundef %73, ptr noundef nonnull @.str.7) #3
br label %132
75: ; preds = %67, %63
%76 = getelementptr inbounds i8, ptr %2, i64 40
%77 = load i64, ptr %76, align 8, !tbaa !19
%78 = icmp eq i64 %77, 0
br i1 %78, label %88, label %79
79: ; preds = %75
%80 = call i32 (ptr, i32, ptr, i64, ...) @os_snprintf(ptr noundef nonnull %5, i32 noundef 128, ptr noundef nonnull @.str.8, i64 noundef %77) #3
%81 = load i32, ptr @RADIUS_ATTR_ACCT_SESSION_ID, align 4, !tbaa !6
%82 = call i32 @os_strlen(ptr noundef nonnull %5) #3
%83 = call i32 @radius_msg_add_attr(ptr noundef %3, i32 noundef %81, ptr noundef nonnull %5, i32 noundef %82) #3
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %79
%86 = load i32, ptr @MSG_ERROR, align 4, !tbaa !6
%87 = call i32 @wpa_printf(i32 noundef %86, ptr noundef nonnull @.str.9) #3
br label %132
88: ; preds = %79, %75
%89 = load ptr, ptr %0, align 8, !tbaa !20
%90 = load i32, ptr %89, align 8, !tbaa !22
%91 = and i32 %90, 2
%92 = icmp eq i32 %91, 0
br i1 %92, label %116, label %93
93: ; preds = %88
%94 = getelementptr inbounds i8, ptr %89, i64 24
%95 = load i32, ptr %94, align 8, !tbaa !24
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %124
97: ; preds = %93
%98 = getelementptr inbounds i8, ptr %2, i64 32
%99 = load ptr, ptr %98, align 8, !tbaa !25
%100 = icmp eq ptr %99, null
br i1 %100, label %124, label %101
101: ; preds = %97
%102 = load i64, ptr %99, align 8, !tbaa !26
%103 = icmp eq i64 %102, 0
br i1 %103, label %124, label %104
104: ; preds = %101
%105 = call i32 (ptr, i32, ptr, i64, ...) @os_snprintf(ptr noundef nonnull %5, i32 noundef 128, ptr noundef nonnull @.str.8, i64 noundef %102) #3
%106 = load i32, ptr @RADIUS_ATTR_ACCT_MULTI_SESSION_ID, align 4, !tbaa !6
%107 = call i32 @os_strlen(ptr noundef nonnull %5) #3
%108 = call i32 @radius_msg_add_attr(ptr noundef %3, i32 noundef %106, ptr noundef nonnull %5, i32 noundef %107) #3
%109 = icmp eq i32 %108, 0
br i1 %109, label %113, label %110
110: ; preds = %104
%111 = load ptr, ptr %0, align 8, !tbaa !20
%112 = load i32, ptr %111, align 8, !tbaa !22
br label %116
113: ; preds = %104
%114 = load i32, ptr @MSG_INFO, align 4, !tbaa !6
%115 = call i32 @wpa_printf(i32 noundef %114, ptr noundef nonnull @.str.10) #3
br label %132
116: ; preds = %110, %88
%117 = phi i32 [ %112, %110 ], [ %90, %88 ]
%118 = phi ptr [ %111, %110 ], [ %89, %88 ]
%119 = icmp eq i32 %117, 0
br i1 %119, label %120, label %124
120: ; preds = %116
%121 = getelementptr inbounds i8, ptr %118, i64 8
%122 = load i64, ptr %121, align 8, !tbaa !28
%123 = icmp eq i64 %122, 0
br i1 %123, label %131, label %124
124: ; preds = %93, %97, %101, %120, %116
%125 = getelementptr inbounds i8, ptr %2, i64 24
%126 = load i64, ptr %125, align 8, !tbaa !29
%127 = icmp eq i64 %126, 0
br i1 %127, label %131, label %128
128: ; preds = %124
%129 = call i64 @add_common_radius_sta_attr_rsn(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3) #3
%130 = icmp slt i64 %129, 0
br i1 %130, label %132, label %131
131: ; preds = %128, %124, %120
br label %132
132: ; preds = %128, %131, %113, %85, %72, %42, %28, %14
%133 = phi i32 [ 0, %131 ], [ -1, %113 ], [ -1, %85 ], [ -1, %72 ], [ -1, %42 ], [ -1, %28 ], [ -1, %14 ], [ -1, %128 ]
call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #3
ret i32 %133
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @hostapd_config_get_radius_attr(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @radius_msg_add_attr_int32(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @wpa_printf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @os_snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ...) local_unnamed_addr #2
declare i64 @MAC2STR(i32 noundef) local_unnamed_addr #2
declare i32 @radius_msg_add_attr(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @os_strlen(ptr noundef) local_unnamed_addr #2
declare i32 @os_strlcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @radius_sta_rate(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @radius_mode_txt(ptr noundef) local_unnamed_addr #2
declare i64 @add_common_radius_sta_attr_rsn(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"sta_info", !11, i64 0, !7, i64 8, !11, i64 16, !11, i64 24, !14, i64 32, !11, i64 40, !7, i64 48}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!13, !7, i64 48}
!17 = !{!8, !8, i64 0}
!18 = !{!13, !7, i64 8}
!19 = !{!13, !11, i64 40}
!20 = !{!21, !14, i64 0}
!21 = !{!"hostapd_data", !14, i64 0}
!22 = !{!23, !7, i64 0}
!23 = !{!"TYPE_4__", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 20, !7, i64 24}
!24 = !{!23, !7, i64 24}
!25 = !{!13, !14, i64 32}
!26 = !{!27, !11, i64 0}
!27 = !{!"TYPE_3__", !11, i64 0}
!28 = !{!23, !11, i64 8}
!29 = !{!13, !11, i64 24}
| freebsd_contrib_wpa_src_ap_extr_ieee802_1x.c_add_common_radius_sta_attr |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/ctld/extr_kernel.c_kernel_lun_remove.c'
source_filename = "AnghaBench/freebsd/usr.sbin/ctld/extr_kernel.c_kernel_lun_remove.c"
target datalayout = "e-m:e-p270:32:32-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.ctl_lun_req = type { i32, i32, %struct.TYPE_4__, i32, i32 }
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
%struct.lun = type { i32, i32 }
@CTL_LUNREQ_RM = dso_local local_unnamed_addr global i32 0, align 4
@ctl_fd = dso_local local_unnamed_addr global i32 0, align 4
@CTL_LUN_REQ = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"error issuing CTL_LUN_REQ ioctl\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"LUN removal error: %s\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"LUN removal warning: %s\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"unknown LUN removal status: %d\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @kernel_lun_remove(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = alloca %struct.ctl_lun_req, align 4
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #3
%3 = call i32 @bzero(ptr noundef nonnull %2, i32 noundef 20) #3
%4 = getelementptr inbounds %struct.ctl_lun_req, ptr %2, i64 0, i32 4
%5 = load i32, ptr %4, align 4, !tbaa !5
%6 = getelementptr inbounds %struct.lun, ptr %0, i64 0, i32 1
%7 = load i32, ptr %6, align 4, !tbaa !12
%8 = call i32 @strlcpy(i32 noundef %5, i32 noundef %7, i32 noundef 4) #3
%9 = load i32, ptr @CTL_LUNREQ_RM, align 4, !tbaa !14
%10 = getelementptr inbounds %struct.ctl_lun_req, ptr %2, i64 0, i32 3
store i32 %9, ptr %10, align 4, !tbaa !15
%11 = load i32, ptr %0, align 4, !tbaa !16
%12 = getelementptr inbounds %struct.ctl_lun_req, ptr %2, i64 0, i32 2
store i32 %11, ptr %12, align 4, !tbaa !17
%13 = load i32, ptr @ctl_fd, align 4, !tbaa !14
%14 = load i32, ptr @CTL_LUN_REQ, align 4, !tbaa !14
%15 = call i32 @ioctl(i32 noundef %13, i32 noundef %14, ptr noundef nonnull %2) #3
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %1
%18 = call i32 @log_warn(ptr noundef nonnull @.str) #3
br label %31
19: ; preds = %1
%20 = load i32, ptr %2, align 4, !tbaa !18
switch i32 %20, label %29 [
i32 130, label %21
i32 128, label %25
i32 129, label %31
]
21: ; preds = %19
%22 = getelementptr inbounds %struct.ctl_lun_req, ptr %2, i64 0, i32 1
%23 = load i32, ptr %22, align 4, !tbaa !19
%24 = call i32 @log_warnx(ptr noundef nonnull @.str.1, i32 noundef %23) #3
br label %31
25: ; preds = %19
%26 = getelementptr inbounds %struct.ctl_lun_req, ptr %2, i64 0, i32 1
%27 = load i32, ptr %26, align 4, !tbaa !19
%28 = call i32 @log_warnx(ptr noundef nonnull @.str.2, i32 noundef %27) #3
br label %31
29: ; preds = %19
%30 = call i32 @log_warnx(ptr noundef nonnull @.str.3, i32 noundef %20) #3
br label %31
31: ; preds = %25, %19, %29, %21, %17
%32 = phi i32 [ 1, %17 ], [ 1, %29 ], [ 1, %21 ], [ 0, %19 ], [ 0, %25 ]
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #3
ret i32 %32
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @bzero(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strlcpy(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @log_warn(ptr noundef) local_unnamed_addr #2
declare i32 @log_warnx(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 16}
!6 = !{!"ctl_lun_req", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 12, !7, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_4__", !11, i64 0}
!11 = !{!"TYPE_3__", !7, i64 0}
!12 = !{!13, !7, i64 4}
!13 = !{!"lun", !7, i64 0, !7, i64 4}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !7, i64 12}
!16 = !{!13, !7, i64 0}
!17 = !{!6, !7, i64 8}
!18 = !{!6, !7, i64 0}
!19 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/ctld/extr_kernel.c_kernel_lun_remove.c'
source_filename = "AnghaBench/freebsd/usr.sbin/ctld/extr_kernel.c_kernel_lun_remove.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ctl_lun_req = type { i32, i32, %struct.TYPE_4__, i32, i32 }
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
@CTL_LUNREQ_RM = common local_unnamed_addr global i32 0, align 4
@ctl_fd = common local_unnamed_addr global i32 0, align 4
@CTL_LUN_REQ = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"error issuing CTL_LUN_REQ ioctl\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"LUN removal error: %s\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"LUN removal warning: %s\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"unknown LUN removal status: %d\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @kernel_lun_remove(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = alloca %struct.ctl_lun_req, align 4
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #3
%3 = call i32 @bzero(ptr noundef nonnull %2, i32 noundef 20) #3
%4 = getelementptr inbounds i8, ptr %2, i64 16
%5 = load i32, ptr %4, align 4, !tbaa !6
%6 = getelementptr inbounds i8, ptr %0, i64 4
%7 = load i32, ptr %6, align 4, !tbaa !13
%8 = call i32 @strlcpy(i32 noundef %5, i32 noundef %7, i32 noundef 4) #3
%9 = load i32, ptr @CTL_LUNREQ_RM, align 4, !tbaa !15
%10 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %9, ptr %10, align 4, !tbaa !16
%11 = load i32, ptr %0, align 4, !tbaa !17
%12 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %11, ptr %12, align 4, !tbaa !18
%13 = load i32, ptr @ctl_fd, align 4, !tbaa !15
%14 = load i32, ptr @CTL_LUN_REQ, align 4, !tbaa !15
%15 = call i32 @ioctl(i32 noundef %13, i32 noundef %14, ptr noundef nonnull %2) #3
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %1
%18 = call i32 @log_warn(ptr noundef nonnull @.str) #3
br label %31
19: ; preds = %1
%20 = load i32, ptr %2, align 4, !tbaa !19
switch i32 %20, label %29 [
i32 130, label %21
i32 128, label %25
i32 129, label %31
]
21: ; preds = %19
%22 = getelementptr inbounds i8, ptr %2, i64 4
%23 = load i32, ptr %22, align 4, !tbaa !20
%24 = call i32 @log_warnx(ptr noundef nonnull @.str.1, i32 noundef %23) #3
br label %31
25: ; preds = %19
%26 = getelementptr inbounds i8, ptr %2, i64 4
%27 = load i32, ptr %26, align 4, !tbaa !20
%28 = call i32 @log_warnx(ptr noundef nonnull @.str.2, i32 noundef %27) #3
br label %31
29: ; preds = %19
%30 = call i32 @log_warnx(ptr noundef nonnull @.str.3, i32 noundef %20) #3
br label %31
31: ; preds = %25, %19, %29, %21, %17
%32 = phi i32 [ 1, %17 ], [ 1, %29 ], [ 1, %21 ], [ 0, %19 ], [ 0, %25 ]
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #3
ret i32 %32
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @bzero(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strlcpy(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @log_warn(ptr noundef) local_unnamed_addr #2
declare i32 @log_warnx(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 16}
!7 = !{!"ctl_lun_req", !8, i64 0, !8, i64 4, !11, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"TYPE_3__", !8, i64 0}
!13 = !{!14, !8, i64 4}
!14 = !{!"lun", !8, i64 0, !8, i64 4}
!15 = !{!8, !8, i64 0}
!16 = !{!7, !8, i64 12}
!17 = !{!14, !8, i64 0}
!18 = !{!7, !8, i64 8}
!19 = !{!7, !8, i64 0}
!20 = !{!7, !8, i64 4}
| freebsd_usr.sbin_ctld_extr_kernel.c_kernel_lun_remove |
; ModuleID = 'AnghaBench/SoftEtherVPN/src/Mayaqua/extr_Str.c_JsonValidate.c'
source_filename = "AnghaBench/SoftEtherVPN/src/Mayaqua/extr_Str.c_JsonValidate.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@JSON_RET_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@JSON_RET_OK = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @JsonValidate(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %0, null
%4 = icmp eq ptr %1, null
%5 = or i1 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !5
br label %75
8: ; preds = %2
%9 = tail call i32 @JsonValueGetType(ptr noundef nonnull %0) #2
%10 = tail call i32 @JsonValueGetType(ptr noundef nonnull %1) #2
%11 = icmp ne i32 %9, %10
%12 = icmp ne i32 %9, 131
%13 = and i1 %12, %11
br i1 %13, label %14, label %16
14: ; preds = %8
%15 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !5
br label %75
16: ; preds = %8
switch i32 %9, label %73 [
i32 134, label %17
i32 129, label %40
i32 128, label %71
i32 130, label %71
i32 133, label %71
i32 131, label %71
]
17: ; preds = %16
%18 = tail call ptr @JsonValueGetArray(ptr noundef nonnull %0) #2
%19 = tail call ptr @JsonValueGetArray(ptr noundef nonnull %1) #2
%20 = tail call i32 @JsonArrayGetCount(ptr noundef %18) #2
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !5
br label %75
24: ; preds = %17
%25 = tail call ptr @JsonArrayGet(ptr noundef %18, i32 noundef 0) #2
%26 = tail call i32 @JsonArrayGetCount(ptr noundef %19) #2
%27 = icmp sgt i32 %26, 0
br i1 %27, label %32, label %38
28: ; preds = %32
%29 = add nuw nsw i32 %33, 1
%30 = tail call i32 @JsonArrayGetCount(ptr noundef %19) #2
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %38, !llvm.loop !9
32: ; preds = %24, %28
%33 = phi i32 [ %29, %28 ], [ 0, %24 ]
%34 = tail call ptr @JsonArrayGet(ptr noundef %19, i32 noundef %33) #2
%35 = tail call i32 @JsonValidate(ptr noundef %25, ptr noundef %34)
%36 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !5
%37 = icmp eq i32 %35, %36
br i1 %37, label %75, label %28
38: ; preds = %28, %24
%39 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !5
br label %75
40: ; preds = %16
%41 = tail call ptr @JsonValueGetObject(ptr noundef nonnull %0) #2
%42 = tail call ptr @JsonValueGetObject(ptr noundef nonnull %1) #2
%43 = tail call i32 @JsonGetCount(ptr noundef %41) #2
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %40
%46 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !5
br label %75
47: ; preds = %40
%48 = tail call i32 @JsonGetCount(ptr noundef %42) #2
%49 = icmp slt i32 %48, %43
br i1 %49, label %52, label %50
50: ; preds = %47
%51 = icmp sgt i32 %43, 0
br i1 %51, label %57, label %69
52: ; preds = %47
%53 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !5
br label %75
54: ; preds = %65
%55 = add nuw nsw i32 %58, 1
%56 = icmp eq i32 %55, %43
br i1 %56, label %69, label %57, !llvm.loop !11
57: ; preds = %50, %54
%58 = phi i32 [ %55, %54 ], [ 0, %50 ]
%59 = tail call ptr @JsonGetName(ptr noundef %41, i32 noundef %58) #2
%60 = tail call ptr @JsonGet(ptr noundef %41, ptr noundef %59) #2
%61 = tail call ptr @JsonGet(ptr noundef %42, ptr noundef %59) #2
%62 = icmp eq ptr %61, null
br i1 %62, label %63, label %65
63: ; preds = %57
%64 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !5
br label %75
65: ; preds = %57
%66 = tail call i32 @JsonValidate(ptr noundef %60, ptr noundef nonnull %61)
%67 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !5
%68 = icmp eq i32 %66, %67
br i1 %68, label %75, label %54
69: ; preds = %54, %50
%70 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !5
br label %75
71: ; preds = %16, %16, %16, %16
%72 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !5
br label %75
73: ; preds = %16
%74 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !5
br label %75
75: ; preds = %65, %32, %73, %71, %69, %63, %52, %45, %38, %22, %14, %6
%76 = phi i32 [ %7, %6 ], [ %15, %14 ], [ %74, %73 ], [ %72, %71 ], [ %46, %45 ], [ %53, %52 ], [ %64, %63 ], [ %70, %69 ], [ %23, %22 ], [ %39, %38 ], [ %35, %32 ], [ %66, %65 ]
ret i32 %76
}
declare i32 @JsonValueGetType(ptr noundef) local_unnamed_addr #1
declare ptr @JsonValueGetArray(ptr noundef) local_unnamed_addr #1
declare i32 @JsonArrayGetCount(ptr noundef) local_unnamed_addr #1
declare ptr @JsonArrayGet(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @JsonValueGetObject(ptr noundef) local_unnamed_addr #1
declare i32 @JsonGetCount(ptr noundef) local_unnamed_addr #1
declare ptr @JsonGetName(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @JsonGet(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| ; ModuleID = 'AnghaBench/SoftEtherVPN/src/Mayaqua/extr_Str.c_JsonValidate.c'
source_filename = "AnghaBench/SoftEtherVPN/src/Mayaqua/extr_Str.c_JsonValidate.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@JSON_RET_ERROR = common local_unnamed_addr global i32 0, align 4
@JSON_RET_OK = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @JsonValidate(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %0, null
%4 = icmp eq ptr %1, null
%5 = or i1 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !6
br label %75
8: ; preds = %2
%9 = tail call i32 @JsonValueGetType(ptr noundef nonnull %0) #2
%10 = tail call i32 @JsonValueGetType(ptr noundef nonnull %1) #2
%11 = icmp ne i32 %9, %10
%12 = icmp ne i32 %9, 131
%13 = and i1 %12, %11
br i1 %13, label %14, label %16
14: ; preds = %8
%15 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !6
br label %75
16: ; preds = %8
switch i32 %9, label %73 [
i32 134, label %17
i32 129, label %40
i32 128, label %71
i32 130, label %71
i32 133, label %71
i32 131, label %71
]
17: ; preds = %16
%18 = tail call ptr @JsonValueGetArray(ptr noundef nonnull %0) #2
%19 = tail call ptr @JsonValueGetArray(ptr noundef nonnull %1) #2
%20 = tail call i32 @JsonArrayGetCount(ptr noundef %18) #2
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !6
br label %75
24: ; preds = %17
%25 = tail call ptr @JsonArrayGet(ptr noundef %18, i32 noundef 0) #2
%26 = tail call i32 @JsonArrayGetCount(ptr noundef %19) #2
%27 = icmp sgt i32 %26, 0
br i1 %27, label %32, label %38
28: ; preds = %32
%29 = add nuw nsw i32 %33, 1
%30 = tail call i32 @JsonArrayGetCount(ptr noundef %19) #2
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %38, !llvm.loop !10
32: ; preds = %24, %28
%33 = phi i32 [ %29, %28 ], [ 0, %24 ]
%34 = tail call ptr @JsonArrayGet(ptr noundef %19, i32 noundef %33) #2
%35 = tail call i32 @JsonValidate(ptr noundef %25, ptr noundef %34)
%36 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !6
%37 = icmp eq i32 %35, %36
br i1 %37, label %75, label %28
38: ; preds = %28, %24
%39 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !6
br label %75
40: ; preds = %16
%41 = tail call ptr @JsonValueGetObject(ptr noundef nonnull %0) #2
%42 = tail call ptr @JsonValueGetObject(ptr noundef nonnull %1) #2
%43 = tail call i32 @JsonGetCount(ptr noundef %41) #2
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %40
%46 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !6
br label %75
47: ; preds = %40
%48 = tail call i32 @JsonGetCount(ptr noundef %42) #2
%49 = icmp slt i32 %48, %43
br i1 %49, label %52, label %50
50: ; preds = %47
%51 = icmp sgt i32 %43, 0
br i1 %51, label %57, label %69
52: ; preds = %47
%53 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !6
br label %75
54: ; preds = %65
%55 = add nuw nsw i32 %58, 1
%56 = icmp eq i32 %55, %43
br i1 %56, label %69, label %57, !llvm.loop !12
57: ; preds = %50, %54
%58 = phi i32 [ %55, %54 ], [ 0, %50 ]
%59 = tail call ptr @JsonGetName(ptr noundef %41, i32 noundef %58) #2
%60 = tail call ptr @JsonGet(ptr noundef %41, ptr noundef %59) #2
%61 = tail call ptr @JsonGet(ptr noundef %42, ptr noundef %59) #2
%62 = icmp eq ptr %61, null
br i1 %62, label %63, label %65
63: ; preds = %57
%64 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !6
br label %75
65: ; preds = %57
%66 = tail call i32 @JsonValidate(ptr noundef %60, ptr noundef nonnull %61)
%67 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !6
%68 = icmp eq i32 %66, %67
br i1 %68, label %75, label %54
69: ; preds = %54, %50
%70 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !6
br label %75
71: ; preds = %16, %16, %16, %16
%72 = load i32, ptr @JSON_RET_OK, align 4, !tbaa !6
br label %75
73: ; preds = %16
%74 = load i32, ptr @JSON_RET_ERROR, align 4, !tbaa !6
br label %75
75: ; preds = %65, %32, %73, %71, %69, %63, %52, %45, %38, %22, %14, %6
%76 = phi i32 [ %7, %6 ], [ %15, %14 ], [ %74, %73 ], [ %72, %71 ], [ %46, %45 ], [ %53, %52 ], [ %64, %63 ], [ %70, %69 ], [ %23, %22 ], [ %39, %38 ], [ %35, %32 ], [ %66, %65 ]
ret i32 %76
}
declare i32 @JsonValueGetType(ptr noundef) local_unnamed_addr #1
declare ptr @JsonValueGetArray(ptr noundef) local_unnamed_addr #1
declare i32 @JsonArrayGetCount(ptr noundef) local_unnamed_addr #1
declare ptr @JsonArrayGet(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @JsonValueGetObject(ptr noundef) local_unnamed_addr #1
declare i32 @JsonGetCount(ptr noundef) local_unnamed_addr #1
declare ptr @JsonGetName(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @JsonGet(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
| SoftEtherVPN_src_Mayaqua_extr_Str.c_JsonValidate |
; ModuleID = 'AnghaBench/freebsd/sys/dev/ata/chipsets/extr_ata-promise.c_ata_promise_queue_hpkt.c'
source_filename = "AnghaBench/freebsd/sys/dev/ata/chipsets/extr_ata-promise.c_ata_promise_queue_hpkt.c"
target datalayout = "e-m:e-p270:32:32-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.ata_pci_controller = type { i32, ptr }
%struct.ata_promise_sx4 = type { i32, i32, i32 }
@M_TEMP = dso_local local_unnamed_addr global i32 0, align 4
@M_NOWAIT = dso_local local_unnamed_addr global i32 0, align 4
@M_ZERO = dso_local local_unnamed_addr global i32 0, align 4
@chain = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ata_promise_queue_hpkt], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ata_promise_queue_hpkt(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds %struct.ata_pci_controller, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.ata_promise_sx4, ptr %4, i64 0, i32 1
%6 = tail call i32 @mtx_lock(ptr noundef nonnull %5) #2
%7 = load i32, ptr %4, align 4, !tbaa !11
%8 = icmp eq i32 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %2
%10 = load i32, ptr @M_TEMP, align 4, !tbaa !13
%11 = load i32, ptr @M_NOWAIT, align 4, !tbaa !13
%12 = load i32, ptr @M_ZERO, align 4, !tbaa !13
%13 = or i32 %12, %11
%14 = tail call ptr @malloc(i32 noundef 4, i32 noundef %10, i32 noundef %13) #2
store i32 %1, ptr %14, align 4, !tbaa !14
%15 = getelementptr inbounds %struct.ata_promise_sx4, ptr %4, i64 0, i32 2
%16 = load i32, ptr @chain, align 4, !tbaa !13
%17 = tail call i32 @TAILQ_INSERT_TAIL(ptr noundef nonnull %15, ptr noundef nonnull %14, i32 noundef %16) #2
br label %21
18: ; preds = %2
store i32 1, ptr %4, align 4, !tbaa !11
%19 = load i32, ptr %0, align 8, !tbaa !16
%20 = tail call i32 @ATA_OUTL(i32 noundef %19, i32 noundef 786688, i32 noundef %1) #2
br label %21
21: ; preds = %18, %9
%22 = tail call i32 @mtx_unlock(ptr noundef nonnull %5) #2
ret void
}
declare i32 @mtx_lock(ptr noundef) local_unnamed_addr #1
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TAILQ_INSERT_TAIL(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ATA_OUTL(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mtx_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"ata_pci_controller", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"ata_promise_sx4", !7, i64 0, !7, i64 4, !7, i64 8}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"host_packet", !7, i64 0}
!16 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/ata/chipsets/extr_ata-promise.c_ata_promise_queue_hpkt.c'
source_filename = "AnghaBench/freebsd/sys/dev/ata/chipsets/extr_ata-promise.c_ata_promise_queue_hpkt.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@M_TEMP = common local_unnamed_addr global i32 0, align 4
@M_NOWAIT = common local_unnamed_addr global i32 0, align 4
@M_ZERO = common local_unnamed_addr global i32 0, align 4
@chain = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ata_promise_queue_hpkt], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ata_promise_queue_hpkt(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = tail call i32 @mtx_lock(ptr noundef nonnull %5) #2
%7 = load i32, ptr %4, align 4, !tbaa !12
%8 = icmp eq i32 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %2
%10 = load i32, ptr @M_TEMP, align 4, !tbaa !14
%11 = load i32, ptr @M_NOWAIT, align 4, !tbaa !14
%12 = load i32, ptr @M_ZERO, align 4, !tbaa !14
%13 = or i32 %12, %11
%14 = tail call ptr @malloc(i32 noundef 4, i32 noundef %10, i32 noundef %13) #2
store i32 %1, ptr %14, align 4, !tbaa !15
%15 = getelementptr inbounds i8, ptr %4, i64 8
%16 = load i32, ptr @chain, align 4, !tbaa !14
%17 = tail call i32 @TAILQ_INSERT_TAIL(ptr noundef nonnull %15, ptr noundef nonnull %14, i32 noundef %16) #2
br label %21
18: ; preds = %2
store i32 1, ptr %4, align 4, !tbaa !12
%19 = load i32, ptr %0, align 8, !tbaa !17
%20 = tail call i32 @ATA_OUTL(i32 noundef %19, i32 noundef 786688, i32 noundef %1) #2
br label %21
21: ; preds = %18, %9
%22 = tail call i32 @mtx_unlock(ptr noundef nonnull %5) #2
ret void
}
declare i32 @mtx_lock(ptr noundef) local_unnamed_addr #1
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TAILQ_INSERT_TAIL(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ATA_OUTL(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mtx_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"ata_pci_controller", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 0}
!13 = !{!"ata_promise_sx4", !8, i64 0, !8, i64 4, !8, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"host_packet", !8, i64 0}
!17 = !{!7, !8, i64 0}
| freebsd_sys_dev_ata_chipsets_extr_ata-promise.c_ata_promise_queue_hpkt |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/isdn/mISDN/extr_layer2.c_IsDM.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/isdn/mISDN/extr_layer2.c_IsDM.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DM = dso_local local_unnamed_addr global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/isdn/mISDN/extr_layer2.c_IsDM.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/isdn/mISDN/extr_layer2.c_IsDM.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DM = common local_unnamed_addr global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_drivers_isdn_mISDN_extr_layer2.c_IsDM |
; ModuleID = 'AnghaBench/git/extr_read-cache.c_should_validate_cache_entries.c'
source_filename = "AnghaBench/git/extr_read-cache.c_should_validate_cache_entries.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@should_validate_cache_entries.validate_index_cache_entries = internal unnamed_addr global i32 -1, align 4
@.str = private unnamed_addr constant [38 x i8] c"GIT_TEST_VALIDATE_INDEX_CACHE_ENTRIES\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @should_validate_cache_entries() local_unnamed_addr #0 {
%1 = load i32, ptr @should_validate_cache_entries.validate_index_cache_entries, align 4, !tbaa !5
%2 = icmp slt i32 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i64 @getenv(ptr noundef nonnull @.str) #2
%5 = icmp ne i64 %4, 0
%6 = zext i1 %5 to i32
store i32 %6, ptr @should_validate_cache_entries.validate_index_cache_entries, align 4, !tbaa !5
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ %1, %0 ], [ %6, %3 ]
ret i32 %8
}
declare i64 @getenv(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/git/extr_read-cache.c_should_validate_cache_entries.c'
source_filename = "AnghaBench/git/extr_read-cache.c_should_validate_cache_entries.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@should_validate_cache_entries.validate_index_cache_entries = internal unnamed_addr global i32 -1, align 4
@.str = private unnamed_addr constant [38 x i8] c"GIT_TEST_VALIDATE_INDEX_CACHE_ENTRIES\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -1, 2) i32 @should_validate_cache_entries() local_unnamed_addr #0 {
%1 = load i32, ptr @should_validate_cache_entries.validate_index_cache_entries, align 4, !tbaa !6
%2 = icmp slt i32 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i64 @getenv(ptr noundef nonnull @.str) #2
%5 = icmp ne i64 %4, 0
%6 = zext i1 %5 to i32
store i32 %6, ptr @should_validate_cache_entries.validate_index_cache_entries, align 4, !tbaa !6
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ %1, %0 ], [ %6, %3 ]
ret i32 %8
}
declare i64 @getenv(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| git_extr_read-cache.c_should_validate_cache_entries |
; ModuleID = 'AnghaBench/linux/drivers/media/common/siano/extr_smscoreapi.c_smscore_register_hotplug.c'
source_filename = "AnghaBench/linux/drivers/media/common/siano/extr_smscoreapi.c_smscore_register_hotplug.c"
target datalayout = "e-m:e-p270:32:32-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.list_head = type { ptr }
%struct.smscore_device_notifyee_t = type { ptr, i32 }
@g_smscore_deviceslock = dso_local global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@g_smscore_devices = dso_local global %struct.list_head zeroinitializer, align 8
@g_smscore_notifyees = dso_local global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @smscore_register_hotplug(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @kmutex_lock(ptr noundef nonnull @g_smscore_deviceslock) #2
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%4 = tail call ptr @kmalloc(i32 noundef 16, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %25, label %6
6: ; preds = %1
%7 = load ptr, ptr @g_smscore_devices, align 8, !tbaa !9
%8 = icmp eq ptr %7, @g_smscore_devices
br i1 %8, label %19, label %9
9: ; preds = %6, %9
%10 = phi ptr [ %13, %9 ], [ %7, %6 ]
%11 = load i32, ptr %10, align 4, !tbaa !12
%12 = tail call i32 %0(ptr noundef nonnull %10, i32 noundef %11, i32 noundef 1) #2
%13 = load ptr, ptr %10, align 8, !tbaa !9
%14 = icmp ne ptr %13, @g_smscore_devices
%15 = icmp eq i32 %12, 0
%16 = select i1 %14, i1 %15, i1 false
br i1 %16, label %9, label %17, !llvm.loop !14
17: ; preds = %9
%18 = icmp sgt i32 %12, -1
br i1 %18, label %19, label %23
19: ; preds = %6, %17
%20 = phi i32 [ %12, %17 ], [ 0, %6 ]
store ptr %0, ptr %4, align 8, !tbaa !16
%21 = getelementptr inbounds %struct.smscore_device_notifyee_t, ptr %4, i64 0, i32 1
%22 = tail call i32 @list_add(ptr noundef nonnull %21, ptr noundef nonnull @g_smscore_notifyees) #2
br label %28
23: ; preds = %17
%24 = tail call i32 @kfree(ptr noundef nonnull %4) #2
br label %28
25: ; preds = %1
%26 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%27 = sub nsw i32 0, %26
br label %28
28: ; preds = %19, %23, %25
%29 = phi i32 [ %20, %19 ], [ %12, %23 ], [ %27, %25 ]
%30 = tail call i32 @kmutex_unlock(ptr noundef nonnull @g_smscore_deviceslock) #2
ret i32 %29
}
declare i32 @kmutex_lock(ptr noundef) local_unnamed_addr #1
declare ptr @kmalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @list_add(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @kmutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"list_head", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"smscore_device_t", !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !11, i64 0}
!17 = !{!"smscore_device_notifyee_t", !11, i64 0, !6, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/media/common/siano/extr_smscoreapi.c_smscore_register_hotplug.c'
source_filename = "AnghaBench/linux/drivers/media/common/siano/extr_smscoreapi.c_smscore_register_hotplug.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.list_head = type { ptr }
@g_smscore_deviceslock = common global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@g_smscore_devices = common global %struct.list_head zeroinitializer, align 8
@g_smscore_notifyees = common global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @smscore_register_hotplug(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @kmutex_lock(ptr noundef nonnull @g_smscore_deviceslock) #2
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%4 = tail call ptr @kmalloc(i32 noundef 16, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %25, label %6
6: ; preds = %1
%7 = load ptr, ptr @g_smscore_devices, align 8, !tbaa !10
%8 = icmp eq ptr %7, @g_smscore_devices
br i1 %8, label %19, label %9
9: ; preds = %6, %9
%10 = phi ptr [ %13, %9 ], [ %7, %6 ]
%11 = load i32, ptr %10, align 4, !tbaa !13
%12 = tail call i32 %0(ptr noundef nonnull %10, i32 noundef %11, i32 noundef 1) #2
%13 = load ptr, ptr %10, align 8, !tbaa !10
%14 = icmp ne ptr %13, @g_smscore_devices
%15 = icmp eq i32 %12, 0
%16 = select i1 %14, i1 %15, i1 false
br i1 %16, label %9, label %17, !llvm.loop !15
17: ; preds = %9
%18 = icmp sgt i32 %12, -1
br i1 %18, label %19, label %23
19: ; preds = %6, %17
%20 = phi i32 [ %12, %17 ], [ 0, %6 ]
store ptr %0, ptr %4, align 8, !tbaa !17
%21 = getelementptr inbounds i8, ptr %4, i64 8
%22 = tail call i32 @list_add(ptr noundef nonnull %21, ptr noundef nonnull @g_smscore_notifyees) #2
br label %28
23: ; preds = %17
%24 = tail call i32 @kfree(ptr noundef nonnull %4) #2
br label %28
25: ; preds = %1
%26 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%27 = sub nsw i32 0, %26
br label %28
28: ; preds = %19, %23, %25
%29 = phi i32 [ %20, %19 ], [ %12, %23 ], [ %27, %25 ]
%30 = tail call i32 @kmutex_unlock(ptr noundef nonnull @g_smscore_deviceslock) #2
ret i32 %29
}
declare i32 @kmutex_lock(ptr noundef) local_unnamed_addr #1
declare ptr @kmalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @list_add(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @kmutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"list_head", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"smscore_device_t", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !12, i64 0}
!18 = !{!"smscore_device_notifyee_t", !12, i64 0, !7, i64 8}
| linux_drivers_media_common_siano_extr_smscoreapi.c_smscore_register_hotplug |
; ModuleID = 'AnghaBench/kphp-kdb/common/extr_suffix-array.c_ss_bucket_sort.c'
source_filename = "AnghaBench/kphp-kdb/common/extr_suffix-array.c_ss_bucket_sort.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_3__ = type { ptr, ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ss_bucket_sort], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ss_bucket_sort(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) #0 {
%6 = icmp sgt i32 %2, -1
br i1 %6, label %7, label %79
7: ; preds = %5
%8 = load ptr, ptr %0, align 8, !tbaa !5
%9 = getelementptr i8, ptr %8, i64 -4
%10 = add nuw i32 %2, 1
%11 = zext i32 %10 to i64
%12 = shl nuw nsw i64 %11, 2
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %9, i8 -1, i64 %12, i1 false), !tbaa !10
%13 = icmp eq i32 %2, 0
br i1 %13, label %43, label %14
14: ; preds = %7
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%16 = load ptr, ptr %15, align 8, !tbaa !12
%17 = load ptr, ptr %0, align 8, !tbaa !5
%18 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 2
%19 = load ptr, ptr %18, align 8, !tbaa !13
%20 = zext nneg i32 %2 to i64
br label %21
21: ; preds = %14, %31
%22 = phi i64 [ 0, %14 ], [ %39, %31 ]
%23 = getelementptr inbounds i32, ptr %1, i64 %22
%24 = load i32, ptr %23, align 4, !tbaa !10
%25 = add nsw i32 %24, %4
%26 = icmp slt i32 %25, %2
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = sext i32 %25 to i64
%29 = getelementptr inbounds i32, ptr %3, i64 %28
%30 = load i32, ptr %29, align 4, !tbaa !10
br label %31
31: ; preds = %21, %27
%32 = phi i32 [ %30, %27 ], [ -1, %21 ]
%33 = getelementptr inbounds i32, ptr %16, i64 %22
store i32 %24, ptr %33, align 4, !tbaa !10
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds i32, ptr %17, i64 %34
%36 = load i32, ptr %35, align 4, !tbaa !10
%37 = getelementptr inbounds i32, ptr %19, i64 %22
store i32 %36, ptr %37, align 4, !tbaa !10
%38 = trunc i64 %22 to i32
store i32 %38, ptr %35, align 4, !tbaa !10
%39 = add nuw nsw i64 %22, 1
%40 = icmp eq i64 %39, %20
br i1 %40, label %41, label %21, !llvm.loop !14
41: ; preds = %31
%42 = add nsw i32 %2, -1
br i1 %6, label %43, label %79
43: ; preds = %7, %41
%44 = phi i32 [ %42, %41 ], [ -1, %7 ]
%45 = load ptr, ptr %0, align 8, !tbaa !5
%46 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%47 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 2
%48 = zext nneg i32 %2 to i64
br label %49
49: ; preds = %43, %73
%50 = phi i64 [ %48, %43 ], [ %52, %73 ]
%51 = phi i32 [ %44, %43 ], [ %74, %73 ]
%52 = add nsw i64 %50, -1
%53 = getelementptr inbounds i32, ptr %45, i64 %52
%54 = load i32, ptr %53, align 4, !tbaa !10
%55 = icmp sgt i32 %54, -1
br i1 %55, label %56, label %73
56: ; preds = %49
%57 = load ptr, ptr %46, align 8, !tbaa !12
%58 = load ptr, ptr %47, align 8, !tbaa !13
%59 = sext i32 %51 to i64
br label %60
60: ; preds = %56, %60
%61 = phi i64 [ %59, %56 ], [ %67, %60 ]
%62 = phi i32 [ %54, %56 ], [ %69, %60 ]
%63 = zext nneg i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %57, i64 %63
%65 = load i32, ptr %64, align 4, !tbaa !10
%66 = getelementptr inbounds i32, ptr %1, i64 %61
store i32 %65, ptr %66, align 4, !tbaa !10
%67 = add i64 %61, -1
%68 = getelementptr inbounds i32, ptr %58, i64 %63
%69 = load i32, ptr %68, align 4, !tbaa !10
%70 = icmp sgt i32 %69, -1
br i1 %70, label %60, label %71, !llvm.loop !16
71: ; preds = %60
%72 = trunc i64 %67 to i32
br label %73
73: ; preds = %71, %49
%74 = phi i32 [ %51, %49 ], [ %72, %71 ]
%75 = icmp sgt i64 %50, 0
br i1 %75, label %49, label %76, !llvm.loop !17
76: ; preds = %73
%77 = icmp eq i32 %74, -1
%78 = zext i1 %77 to i32
br label %79
79: ; preds = %5, %76, %41
%80 = phi i32 [ 0, %41 ], [ %78, %76 ], [ 0, %5 ]
%81 = tail call i32 @assert(i32 noundef %80) #3
ret void
}
declare i32 @assert(i32 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 = { "no-trapping-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) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_3__", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
| ; ModuleID = 'AnghaBench/kphp-kdb/common/extr_suffix-array.c_ss_bucket_sort.c'
source_filename = "AnghaBench/kphp-kdb/common/extr_suffix-array.c_ss_bucket_sort.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @ss_bucket_sort], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ss_bucket_sort(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) #0 {
%6 = icmp sgt i32 %2, -1
br i1 %6, label %7, label %79
7: ; preds = %5
%8 = load ptr, ptr %0, align 8, !tbaa !6
%9 = getelementptr i8, ptr %8, i64 -4
%10 = add nuw i32 %2, 1
%11 = zext i32 %10 to i64
%12 = shl nuw nsw i64 %11, 2
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %9, i8 -1, i64 %12, i1 false), !tbaa !11
%13 = icmp eq i32 %2, 0
br i1 %13, label %43, label %14
14: ; preds = %7
%15 = getelementptr inbounds i8, ptr %0, i64 8
%16 = load ptr, ptr %15, align 8, !tbaa !13
%17 = load ptr, ptr %0, align 8, !tbaa !6
%18 = getelementptr inbounds i8, ptr %0, i64 16
%19 = load ptr, ptr %18, align 8, !tbaa !14
%20 = zext nneg i32 %2 to i64
br label %21
21: ; preds = %14, %31
%22 = phi i64 [ 0, %14 ], [ %39, %31 ]
%23 = getelementptr inbounds i32, ptr %1, i64 %22
%24 = load i32, ptr %23, align 4, !tbaa !11
%25 = add nsw i32 %24, %4
%26 = icmp slt i32 %25, %2
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = sext i32 %25 to i64
%29 = getelementptr inbounds i32, ptr %3, i64 %28
%30 = load i32, ptr %29, align 4, !tbaa !11
br label %31
31: ; preds = %21, %27
%32 = phi i32 [ %30, %27 ], [ -1, %21 ]
%33 = getelementptr inbounds i32, ptr %16, i64 %22
store i32 %24, ptr %33, align 4, !tbaa !11
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds i32, ptr %17, i64 %34
%36 = load i32, ptr %35, align 4, !tbaa !11
%37 = getelementptr inbounds i32, ptr %19, i64 %22
store i32 %36, ptr %37, align 4, !tbaa !11
%38 = trunc nuw nsw i64 %22 to i32
store i32 %38, ptr %35, align 4, !tbaa !11
%39 = add nuw nsw i64 %22, 1
%40 = icmp eq i64 %39, %20
br i1 %40, label %41, label %21, !llvm.loop !15
41: ; preds = %31
%42 = add nsw i32 %2, -1
br label %43
43: ; preds = %41, %7
%44 = phi i32 [ %42, %41 ], [ -1, %7 ]
%45 = load ptr, ptr %0, align 8, !tbaa !6
%46 = getelementptr inbounds i8, ptr %0, i64 8
%47 = getelementptr inbounds i8, ptr %0, i64 16
%48 = zext nneg i32 %2 to i64
br label %49
49: ; preds = %43, %73
%50 = phi i64 [ %48, %43 ], [ %52, %73 ]
%51 = phi i32 [ %44, %43 ], [ %74, %73 ]
%52 = add nsw i64 %50, -1
%53 = getelementptr inbounds i32, ptr %45, i64 %52
%54 = load i32, ptr %53, align 4, !tbaa !11
%55 = icmp sgt i32 %54, -1
br i1 %55, label %56, label %73
56: ; preds = %49
%57 = load ptr, ptr %46, align 8, !tbaa !13
%58 = load ptr, ptr %47, align 8, !tbaa !14
%59 = sext i32 %51 to i64
br label %60
60: ; preds = %56, %60
%61 = phi i64 [ %59, %56 ], [ %67, %60 ]
%62 = phi i32 [ %54, %56 ], [ %69, %60 ]
%63 = zext nneg i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %57, i64 %63
%65 = load i32, ptr %64, align 4, !tbaa !11
%66 = getelementptr inbounds i32, ptr %1, i64 %61
store i32 %65, ptr %66, align 4, !tbaa !11
%67 = add nsw i64 %61, -1
%68 = getelementptr inbounds i32, ptr %58, i64 %63
%69 = load i32, ptr %68, align 4, !tbaa !11
%70 = icmp sgt i32 %69, -1
br i1 %70, label %60, label %71, !llvm.loop !17
71: ; preds = %60
%72 = trunc nsw i64 %67 to i32
br label %73
73: ; preds = %71, %49
%74 = phi i32 [ %51, %49 ], [ %72, %71 ]
%75 = icmp sgt i64 %50, 0
br i1 %75, label %49, label %76, !llvm.loop !18
76: ; preds = %73
%77 = icmp eq i32 %74, -1
%78 = zext i1 %77 to i32
br label %79
79: ; preds = %5, %76
%80 = phi i32 [ %78, %76 ], [ 0, %5 ]
%81 = tail call i32 @assert(i32 noundef %80) #3
ret void
}
declare i32 @assert(i32 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 ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_3__", !8, i64 0, !8, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!7, !8, i64 8}
!14 = !{!7, !8, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
| kphp-kdb_common_extr_suffix-array.c_ss_bucket_sort |
; ModuleID = 'AnghaBench/linux/drivers/platform/x86/extr_fujitsu-laptop.c_set_lcd_level.c'
source_filename = "AnghaBench/linux/drivers/platform/x86/extr_fujitsu-laptop.c_set_lcd_level.c"
target datalayout = "e-m:e-p270:32:32-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.fujitsu_bl = type { i32, i32 }
@use_alt_lcd_levels = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"SBL2\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"SBLL\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"set lcd level via %s [%d]\0A\00", align 1
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [23 x i8] c"Failed to evaluate %s\0A\00", align 1
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @set_lcd_level], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @set_lcd_level(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @acpi_driver_data(ptr noundef %0) #2
%4 = load i32, ptr @use_alt_lcd_levels, align 4, !tbaa !5
switch i32 %4, label %10 [
i32 -1, label %5
i32 1, label %11
]
5: ; preds = %2
%6 = load i32, ptr %0, align 4, !tbaa !9
%7 = tail call i32 @acpi_has_method(i32 noundef %6, ptr noundef nonnull @.str) #2
%8 = icmp eq i32 %7, 0
%9 = select i1 %8, ptr @.str.1, ptr @.str
br label %11
10: ; preds = %2
br label %11
11: ; preds = %2, %5, %10
%12 = phi ptr [ @.str.1, %10 ], [ %9, %5 ], [ @.str, %2 ]
%13 = load i32, ptr %0, align 4, !tbaa !9
%14 = tail call i32 @acpi_handle_debug(i32 noundef %13, ptr noundef nonnull @.str.2, ptr noundef nonnull %12, i32 noundef %1) #2
%15 = icmp slt i32 %1, 0
br i1 %15, label %19, label %16
16: ; preds = %11
%17 = load i32, ptr %3, align 4, !tbaa !11
%18 = icmp sgt i32 %17, %1
br i1 %18, label %22, label %19
19: ; preds = %16, %11
%20 = load i32, ptr @EINVAL, align 4, !tbaa !5
%21 = sub nsw i32 0, %20
br label %34
22: ; preds = %16
%23 = load i32, ptr %0, align 4, !tbaa !9
%24 = tail call i32 @acpi_execute_simple_method(i32 noundef %23, ptr noundef nonnull %12, i32 noundef %1) #2
%25 = tail call i64 @ACPI_FAILURE(i32 noundef %24) #2
%26 = icmp eq i64 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %22
%28 = load i32, ptr %0, align 4, !tbaa !9
%29 = tail call i32 @acpi_handle_err(i32 noundef %28, ptr noundef nonnull @.str.3, ptr noundef nonnull %12) #2
%30 = load i32, ptr @ENODEV, align 4, !tbaa !5
%31 = sub nsw i32 0, %30
br label %34
32: ; preds = %22
%33 = getelementptr inbounds %struct.fujitsu_bl, ptr %3, i64 0, i32 1
store i32 %1, ptr %33, align 4, !tbaa !13
br label %34
34: ; preds = %32, %27, %19
%35 = phi i32 [ %21, %19 ], [ %31, %27 ], [ 0, %32 ]
ret i32 %35
}
declare ptr @acpi_driver_data(ptr noundef) local_unnamed_addr #1
declare i32 @acpi_has_method(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @acpi_handle_debug(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @acpi_execute_simple_method(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @ACPI_FAILURE(i32 noundef) local_unnamed_addr #1
declare i32 @acpi_handle_err(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"acpi_device", !6, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"fujitsu_bl", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/platform/x86/extr_fujitsu-laptop.c_set_lcd_level.c'
source_filename = "AnghaBench/linux/drivers/platform/x86/extr_fujitsu-laptop.c_set_lcd_level.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@use_alt_lcd_levels = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"SBL2\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"SBLL\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"set lcd level via %s [%d]\0A\00", align 1
@EINVAL = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [23 x i8] c"Failed to evaluate %s\0A\00", align 1
@ENODEV = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @set_lcd_level], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @set_lcd_level(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @acpi_driver_data(ptr noundef %0) #2
%4 = load i32, ptr @use_alt_lcd_levels, align 4, !tbaa !6
switch i32 %4, label %10 [
i32 -1, label %5
i32 1, label %11
]
5: ; preds = %2
%6 = load i32, ptr %0, align 4, !tbaa !10
%7 = tail call i32 @acpi_has_method(i32 noundef %6, ptr noundef nonnull @.str) #2
%8 = icmp eq i32 %7, 0
%9 = select i1 %8, ptr @.str.1, ptr @.str
br label %11
10: ; preds = %2
br label %11
11: ; preds = %2, %5, %10
%12 = phi ptr [ @.str.1, %10 ], [ %9, %5 ], [ @.str, %2 ]
%13 = load i32, ptr %0, align 4, !tbaa !10
%14 = tail call i32 @acpi_handle_debug(i32 noundef %13, ptr noundef nonnull @.str.2, ptr noundef nonnull %12, i32 noundef %1) #2
%15 = icmp slt i32 %1, 0
br i1 %15, label %19, label %16
16: ; preds = %11
%17 = load i32, ptr %3, align 4, !tbaa !12
%18 = icmp sgt i32 %17, %1
br i1 %18, label %22, label %19
19: ; preds = %16, %11
%20 = load i32, ptr @EINVAL, align 4, !tbaa !6
%21 = sub nsw i32 0, %20
br label %34
22: ; preds = %16
%23 = load i32, ptr %0, align 4, !tbaa !10
%24 = tail call i32 @acpi_execute_simple_method(i32 noundef %23, ptr noundef nonnull %12, i32 noundef %1) #2
%25 = tail call i64 @ACPI_FAILURE(i32 noundef %24) #2
%26 = icmp eq i64 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %22
%28 = load i32, ptr %0, align 4, !tbaa !10
%29 = tail call i32 @acpi_handle_err(i32 noundef %28, ptr noundef nonnull @.str.3, ptr noundef nonnull %12) #2
%30 = load i32, ptr @ENODEV, align 4, !tbaa !6
%31 = sub nsw i32 0, %30
br label %34
32: ; preds = %22
%33 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %1, ptr %33, align 4, !tbaa !14
br label %34
34: ; preds = %32, %27, %19
%35 = phi i32 [ %21, %19 ], [ %31, %27 ], [ 0, %32 ]
ret i32 %35
}
declare ptr @acpi_driver_data(ptr noundef) local_unnamed_addr #1
declare i32 @acpi_has_method(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @acpi_handle_debug(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @acpi_execute_simple_method(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @ACPI_FAILURE(i32 noundef) local_unnamed_addr #1
declare i32 @acpi_handle_err(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"acpi_device", !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"fujitsu_bl", !7, i64 0, !7, i64 4}
!14 = !{!13, !7, i64 4}
| linux_drivers_platform_x86_extr_fujitsu-laptop.c_set_lcd_level |
; ModuleID = 'AnghaBench/linux/drivers/misc/vmw_vmci/extr_vmci_context.c_vmci_ctx_rcv_notifications_release.c'
source_filename = "AnghaBench/linux/drivers/misc/vmw_vmci/extr_vmci_context.c_vmci_ctx_rcv_notifications_release.c"
target datalayout = "e-m:e-p270:32:32-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.vmci_ctx = type { i32, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @vmci_ctx_rcv_notifications_release(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = alloca ptr, align 8
store ptr %1, ptr %5, align 8, !tbaa !5
%6 = tail call ptr @vmci_ctx_get(i32 noundef %0) #2
%7 = tail call i32 @spin_lock(ptr noundef %6) #2
%8 = icmp eq i32 %3, 0
br i1 %8, label %9, label %31
9: ; preds = %4
%10 = getelementptr inbounds %struct.vmci_ctx, ptr %6, i64 0, i32 1
%11 = load ptr, ptr %10, align 8, !tbaa !9
%12 = tail call i32 @vmci_handle_arr_remove_tail(ptr noundef %11) #2
%13 = tail call i32 @vmci_handle_is_invalid(i32 %12) #2
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %27
15: ; preds = %9, %22
%16 = phi i32 [ %24, %22 ], [ %12, %9 ]
%17 = load ptr, ptr %5, align 8, !tbaa !5
%18 = call i32 @vmci_handle_arr_has_entry(ptr noundef %17, i32 %16) #2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = call i32 @vmci_handle_arr_append_entry(ptr noundef nonnull %5, i32 %16) #2
br label %22
22: ; preds = %20, %15
%23 = load ptr, ptr %10, align 8, !tbaa !9
%24 = call i32 @vmci_handle_arr_remove_tail(ptr noundef %23) #2
%25 = call i32 @vmci_handle_is_invalid(i32 %24) #2
%26 = icmp eq i32 %25, 0
br i1 %26, label %15, label %27, !llvm.loop !12
27: ; preds = %22, %9
%28 = load ptr, ptr %10, align 8, !tbaa !9
%29 = call i32 @vmci_handle_arr_destroy(ptr noundef %28) #2
%30 = load ptr, ptr %5, align 8, !tbaa !5
store ptr %30, ptr %10, align 8, !tbaa !9
store ptr null, ptr %5, align 8, !tbaa !5
br label %33
31: ; preds = %4
%32 = tail call i32 @ctx_clear_notify_call(ptr noundef %6) #2
br label %33
33: ; preds = %31, %27
%34 = call i32 @spin_unlock(ptr noundef %6) #2
%35 = call i32 @vmci_ctx_put(ptr noundef %6) #2
%36 = load ptr, ptr %5, align 8, !tbaa !5
%37 = icmp eq ptr %36, null
br i1 %37, label %40, label %38
38: ; preds = %33
%39 = call i32 @vmci_handle_arr_destroy(ptr noundef nonnull %36) #2
br label %40
40: ; preds = %38, %33
%41 = icmp eq ptr %2, null
br i1 %41, label %44, label %42
42: ; preds = %40
%43 = call i32 @vmci_handle_arr_destroy(ptr noundef nonnull %2) #2
br label %44
44: ; preds = %42, %40
ret void
}
declare ptr @vmci_ctx_get(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @vmci_handle_arr_remove_tail(ptr noundef) local_unnamed_addr #1
declare i32 @vmci_handle_is_invalid(i32) local_unnamed_addr #1
declare i32 @vmci_handle_arr_has_entry(ptr noundef, i32) local_unnamed_addr #1
declare i32 @vmci_handle_arr_append_entry(ptr noundef, i32) local_unnamed_addr #1
declare i32 @vmci_handle_arr_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @ctx_clear_notify_call(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @vmci_ctx_put(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"vmci_ctx", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/misc/vmw_vmci/extr_vmci_context.c_vmci_ctx_rcv_notifications_release.c'
source_filename = "AnghaBench/linux/drivers/misc/vmw_vmci/extr_vmci_context.c_vmci_ctx_rcv_notifications_release.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @vmci_ctx_rcv_notifications_release(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = alloca ptr, align 8
store ptr %1, ptr %5, align 8, !tbaa !6
%6 = tail call ptr @vmci_ctx_get(i32 noundef %0) #2
%7 = tail call i32 @spin_lock(ptr noundef %6) #2
%8 = icmp eq i32 %3, 0
br i1 %8, label %9, label %33
9: ; preds = %4
%10 = getelementptr inbounds i8, ptr %6, i64 8
%11 = load ptr, ptr %10, align 8, !tbaa !10
%12 = tail call i32 @vmci_handle_arr_remove_tail(ptr noundef %11) #2
%13 = zext i32 %12 to i64
%14 = tail call i32 @vmci_handle_is_invalid(i64 %13) #2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %29
16: ; preds = %9, %23
%17 = phi i64 [ %26, %23 ], [ %13, %9 ]
%18 = load ptr, ptr %5, align 8, !tbaa !6
%19 = call i32 @vmci_handle_arr_has_entry(ptr noundef %18, i64 %17) #2
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 @vmci_handle_arr_append_entry(ptr noundef nonnull %5, i64 %17) #2
br label %23
23: ; preds = %21, %16
%24 = load ptr, ptr %10, align 8, !tbaa !10
%25 = call i32 @vmci_handle_arr_remove_tail(ptr noundef %24) #2
%26 = zext i32 %25 to i64
%27 = call i32 @vmci_handle_is_invalid(i64 %26) #2
%28 = icmp eq i32 %27, 0
br i1 %28, label %16, label %29, !llvm.loop !13
29: ; preds = %23, %9
%30 = load ptr, ptr %10, align 8, !tbaa !10
%31 = call i32 @vmci_handle_arr_destroy(ptr noundef %30) #2
%32 = load ptr, ptr %5, align 8, !tbaa !6
store ptr %32, ptr %10, align 8, !tbaa !10
store ptr null, ptr %5, align 8, !tbaa !6
br label %35
33: ; preds = %4
%34 = tail call i32 @ctx_clear_notify_call(ptr noundef %6) #2
br label %35
35: ; preds = %33, %29
%36 = call i32 @spin_unlock(ptr noundef %6) #2
%37 = call i32 @vmci_ctx_put(ptr noundef %6) #2
%38 = load ptr, ptr %5, align 8, !tbaa !6
%39 = icmp eq ptr %38, null
br i1 %39, label %42, label %40
40: ; preds = %35
%41 = call i32 @vmci_handle_arr_destroy(ptr noundef nonnull %38) #2
br label %42
42: ; preds = %40, %35
%43 = icmp eq ptr %2, null
br i1 %43, label %46, label %44
44: ; preds = %42
%45 = call i32 @vmci_handle_arr_destroy(ptr noundef nonnull %2) #2
br label %46
46: ; preds = %44, %42
ret void
}
declare ptr @vmci_ctx_get(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @vmci_handle_arr_remove_tail(ptr noundef) local_unnamed_addr #1
declare i32 @vmci_handle_is_invalid(i64) local_unnamed_addr #1
declare i32 @vmci_handle_arr_has_entry(ptr noundef, i64) local_unnamed_addr #1
declare i32 @vmci_handle_arr_append_entry(ptr noundef, i64) local_unnamed_addr #1
declare i32 @vmci_handle_arr_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @ctx_clear_notify_call(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @vmci_ctx_put(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"vmci_ctx", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| linux_drivers_misc_vmw_vmci_extr_vmci_context.c_vmci_ctx_rcv_notifications_release |
; ModuleID = 'AnghaBench/linux/net/ipv4/netfilter/extr_arp_tables.c_alloc_counters.c'
source_filename = "AnghaBench/linux/net/ipv4/netfilter/extr_arp_tables.c_alloc_counters.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @alloc_counters], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @alloc_counters(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !10
%4 = shl i32 %3, 2
%5 = tail call ptr @vzalloc(i32 noundef %4) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr @ENOMEM, align 4, !tbaa !13
%9 = sub nsw i32 0, %8
%10 = tail call ptr @ERR_PTR(i32 noundef %9) #2
br label %13
11: ; preds = %1
%12 = tail call i32 @get_counters(ptr noundef nonnull %2, ptr noundef nonnull %5) #2
br label %13
13: ; preds = %11, %7
%14 = phi ptr [ %10, %7 ], [ %5, %11 ]
ret ptr %14
}
declare ptr @vzalloc(i32 noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #1
declare i32 @get_counters(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"xt_table", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"xt_table_info", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!12, !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/ipv4/netfilter/extr_arp_tables.c_alloc_counters.c'
source_filename = "AnghaBench/linux/net/ipv4/netfilter/extr_arp_tables.c_alloc_counters.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @alloc_counters], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @alloc_counters(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr %2, align 4, !tbaa !11
%4 = shl i32 %3, 2
%5 = tail call ptr @vzalloc(i32 noundef %4) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr @ENOMEM, align 4, !tbaa !14
%9 = sub nsw i32 0, %8
%10 = tail call ptr @ERR_PTR(i32 noundef %9) #2
br label %13
11: ; preds = %1
%12 = tail call i32 @get_counters(ptr noundef nonnull %2, ptr noundef nonnull %5) #2
br label %13
13: ; preds = %11, %7
%14 = phi ptr [ %10, %7 ], [ %5, %11 ]
ret ptr %14
}
declare ptr @vzalloc(i32 noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #1
declare i32 @get_counters(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"xt_table", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"xt_table_info", !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!13, !13, i64 0}
| linux_net_ipv4_netfilter_extr_arp_tables.c_alloc_counters |
; ModuleID = 'AnghaBench/DOOM/linuxdoom-1.10/extr_p_tick.c_P_Ticker.c'
source_filename = "AnghaBench/DOOM/linuxdoom-1.10/extr_p_tick.c_P_Ticker.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_3__ = type { i32 }
@paused = dso_local local_unnamed_addr global i64 0, align 8
@netgame = dso_local local_unnamed_addr global i32 0, align 4
@menuactive = dso_local local_unnamed_addr global i64 0, align 8
@demoplayback = dso_local local_unnamed_addr global i32 0, align 4
@players = dso_local local_unnamed_addr global ptr null, align 8
@consoleplayer = dso_local local_unnamed_addr global i64 0, align 8
@MAXPLAYERS = dso_local local_unnamed_addr global i32 0, align 4
@playeringame = dso_local local_unnamed_addr global ptr null, align 8
@leveltime = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @P_Ticker() local_unnamed_addr #0 {
%1 = load i64, ptr @paused, align 8, !tbaa !5
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %48
3: ; preds = %0
%4 = load i32, ptr @netgame, align 4, !tbaa !9
%5 = icmp ne i32 %4, 0
%6 = load i64, ptr @menuactive, align 8
%7 = icmp eq i64 %6, 0
%8 = select i1 %5, i1 true, i1 %7
%9 = load i32, ptr @demoplayback, align 4
%10 = icmp ne i32 %9, 0
%11 = select i1 %8, i1 true, i1 %10
br i1 %11, label %18, label %12
12: ; preds = %3
%13 = load ptr, ptr @players, align 8, !tbaa !11
%14 = load i64, ptr @consoleplayer, align 8, !tbaa !5
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %13, i64 %14
%16 = load i32, ptr %15, align 4, !tbaa !13
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %48
18: ; preds = %12, %3
%19 = load i32, ptr @MAXPLAYERS, align 4, !tbaa !9
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %42
21: ; preds = %18
%22 = load ptr, ptr @playeringame, align 8, !tbaa !11
br label %23
23: ; preds = %21, %36
%24 = phi i32 [ %19, %21 ], [ %37, %36 ]
%25 = phi ptr [ %22, %21 ], [ %38, %36 ]
%26 = phi i64 [ 0, %21 ], [ %39, %36 ]
%27 = getelementptr inbounds i64, ptr %25, i64 %26
%28 = load i64, ptr %27, align 8, !tbaa !5
%29 = icmp eq i64 %28, 0
br i1 %29, label %36, label %30
30: ; preds = %23
%31 = load ptr, ptr @players, align 8, !tbaa !11
%32 = getelementptr inbounds %struct.TYPE_3__, ptr %31, i64 %26
%33 = tail call i32 @P_PlayerThink(ptr noundef %32) #2
%34 = load ptr, ptr @playeringame, align 8, !tbaa !11
%35 = load i32, ptr @MAXPLAYERS, align 4, !tbaa !9
br label %36
36: ; preds = %23, %30
%37 = phi i32 [ %24, %23 ], [ %35, %30 ]
%38 = phi ptr [ %25, %23 ], [ %34, %30 ]
%39 = add nuw nsw i64 %26, 1
%40 = sext i32 %37 to i64
%41 = icmp slt i64 %39, %40
br i1 %41, label %23, label %42, !llvm.loop !15
42: ; preds = %36, %18
%43 = tail call i32 (...) @P_RunThinkers() #2
%44 = tail call i32 (...) @P_UpdateSpecials() #2
%45 = tail call i32 (...) @P_RespawnSpecials() #2
%46 = load i32, ptr @leveltime, align 4, !tbaa !9
%47 = add nsw i32 %46, 1
store i32 %47, ptr @leveltime, align 4, !tbaa !9
br label %48
48: ; preds = %12, %0, %42
ret void
}
declare i32 @P_PlayerThink(ptr noundef) local_unnamed_addr #1
declare i32 @P_RunThinkers(...) local_unnamed_addr #1
declare i32 @P_UpdateSpecials(...) local_unnamed_addr #1
declare i32 @P_RespawnSpecials(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"TYPE_3__", !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/DOOM/linuxdoom-1.10/extr_p_tick.c_P_Ticker.c'
source_filename = "AnghaBench/DOOM/linuxdoom-1.10/extr_p_tick.c_P_Ticker.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_3__ = type { i32 }
@paused = common local_unnamed_addr global i64 0, align 8
@netgame = common local_unnamed_addr global i32 0, align 4
@menuactive = common local_unnamed_addr global i64 0, align 8
@demoplayback = common local_unnamed_addr global i32 0, align 4
@players = common local_unnamed_addr global ptr null, align 8
@consoleplayer = common local_unnamed_addr global i64 0, align 8
@MAXPLAYERS = common local_unnamed_addr global i32 0, align 4
@playeringame = common local_unnamed_addr global ptr null, align 8
@leveltime = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @P_Ticker() local_unnamed_addr #0 {
%1 = load i64, ptr @paused, align 8, !tbaa !6
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %48
3: ; preds = %0
%4 = load i32, ptr @netgame, align 4, !tbaa !10
%5 = icmp ne i32 %4, 0
%6 = load i64, ptr @menuactive, align 8
%7 = icmp eq i64 %6, 0
%8 = select i1 %5, i1 true, i1 %7
%9 = load i32, ptr @demoplayback, align 4
%10 = icmp ne i32 %9, 0
%11 = select i1 %8, i1 true, i1 %10
br i1 %11, label %18, label %12
12: ; preds = %3
%13 = load ptr, ptr @players, align 8, !tbaa !12
%14 = load i64, ptr @consoleplayer, align 8, !tbaa !6
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %13, i64 %14
%16 = load i32, ptr %15, align 4, !tbaa !14
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %48
18: ; preds = %12, %3
%19 = load i32, ptr @MAXPLAYERS, align 4, !tbaa !10
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %42
21: ; preds = %18
%22 = load ptr, ptr @playeringame, align 8, !tbaa !12
br label %23
23: ; preds = %21, %36
%24 = phi i32 [ %19, %21 ], [ %37, %36 ]
%25 = phi ptr [ %22, %21 ], [ %38, %36 ]
%26 = phi i64 [ 0, %21 ], [ %39, %36 ]
%27 = getelementptr inbounds i64, ptr %25, i64 %26
%28 = load i64, ptr %27, align 8, !tbaa !6
%29 = icmp eq i64 %28, 0
br i1 %29, label %36, label %30
30: ; preds = %23
%31 = load ptr, ptr @players, align 8, !tbaa !12
%32 = getelementptr inbounds %struct.TYPE_3__, ptr %31, i64 %26
%33 = tail call i32 @P_PlayerThink(ptr noundef %32) #2
%34 = load ptr, ptr @playeringame, align 8, !tbaa !12
%35 = load i32, ptr @MAXPLAYERS, align 4, !tbaa !10
br label %36
36: ; preds = %23, %30
%37 = phi i32 [ %24, %23 ], [ %35, %30 ]
%38 = phi ptr [ %25, %23 ], [ %34, %30 ]
%39 = add nuw nsw i64 %26, 1
%40 = sext i32 %37 to i64
%41 = icmp slt i64 %39, %40
br i1 %41, label %23, label %42, !llvm.loop !16
42: ; preds = %36, %18
%43 = tail call i32 @P_RunThinkers() #2
%44 = tail call i32 @P_UpdateSpecials() #2
%45 = tail call i32 @P_RespawnSpecials() #2
%46 = load i32, ptr @leveltime, align 4, !tbaa !10
%47 = add nsw i32 %46, 1
store i32 %47, ptr @leveltime, align 4, !tbaa !10
br label %48
48: ; preds = %12, %0, %42
ret void
}
declare i32 @P_PlayerThink(ptr noundef) local_unnamed_addr #1
declare i32 @P_RunThinkers(...) local_unnamed_addr #1
declare i32 @P_UpdateSpecials(...) local_unnamed_addr #1
declare i32 @P_RespawnSpecials(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"TYPE_3__", !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| DOOM_linuxdoom-1.10_extr_p_tick.c_P_Ticker |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/neterion/vxge/extr_vxge-config.c___vxge_hw_channel_initialize.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/neterion/vxge/extr_vxge-config.c___vxge_hw_channel_initialize.c"
target datalayout = "e-m:e-p270:32:32-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.__vxge_hw_channel = type { i64, i32, ptr, ptr, ptr, ptr }
%struct.__vxge_hw_virtualpath = type { ptr, ptr }
@VXGE_HW_OK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__vxge_hw_channel_initialize], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define internal i32 @__vxge_hw_channel_initialize(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.__vxge_hw_channel, ptr %0, i64 0, i32 5
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !12
%5 = getelementptr inbounds %struct.__vxge_hw_channel, ptr %0, i64 0, i32 3
%6 = load ptr, ptr %5, align 8, !tbaa !14
%7 = ptrtoint ptr %6 to i64
%8 = icmp eq ptr %6, null
br i1 %8, label %72, label %9
9: ; preds = %1
%10 = getelementptr inbounds %struct.__vxge_hw_channel, ptr %0, i64 0, i32 4
%11 = load ptr, ptr %10, align 8, !tbaa !15
%12 = ptrtoint ptr %11 to i64
%13 = icmp eq ptr %11, null
br i1 %13, label %72, label %14
14: ; preds = %9
%15 = load i64, ptr %0, align 8, !tbaa !16
%16 = icmp eq i64 %15, 0
br i1 %16, label %72, label %17
17: ; preds = %14
%18 = icmp ult i64 %15, 8
%19 = sub i64 %12, %7
%20 = icmp ult i64 %19, 32
%21 = or i1 %18, %20
br i1 %21, label %36, label %22
22: ; preds = %17
%23 = and i64 %15, -8
br label %24
24: ; preds = %24, %22
%25 = phi i64 [ 0, %22 ], [ %32, %24 ]
%26 = getelementptr inbounds i32, ptr %6, i64 %25
%27 = getelementptr inbounds i32, ptr %26, i64 4
%28 = load <4 x i32>, ptr %26, align 4, !tbaa !17
%29 = load <4 x i32>, ptr %27, align 4, !tbaa !17
%30 = getelementptr inbounds i32, ptr %11, i64 %25
%31 = getelementptr inbounds i32, ptr %30, i64 4
store <4 x i32> %28, ptr %30, align 4, !tbaa !17
store <4 x i32> %29, ptr %31, align 4, !tbaa !17
%32 = add nuw i64 %25, 8
%33 = icmp eq i64 %32, %23
br i1 %33, label %34, label %24, !llvm.loop !18
34: ; preds = %24
%35 = icmp eq i64 %15, %23
br i1 %35, label %72, label %36
36: ; preds = %17, %34
%37 = phi i64 [ 0, %17 ], [ %23, %34 ]
%38 = and i64 %15, 3
%39 = icmp eq i64 %38, 0
br i1 %39, label %49, label %40
40: ; preds = %36, %40
%41 = phi i64 [ %46, %40 ], [ %37, %36 ]
%42 = phi i64 [ %47, %40 ], [ 0, %36 ]
%43 = getelementptr inbounds i32, ptr %6, i64 %41
%44 = load i32, ptr %43, align 4, !tbaa !17
%45 = getelementptr inbounds i32, ptr %11, i64 %41
store i32 %44, ptr %45, align 4, !tbaa !17
%46 = add nuw i64 %41, 1
%47 = add i64 %42, 1
%48 = icmp eq i64 %47, %38
br i1 %48, label %49, label %40, !llvm.loop !22
49: ; preds = %40, %36
%50 = phi i64 [ %37, %36 ], [ %46, %40 ]
%51 = sub i64 %37, %15
%52 = icmp ugt i64 %51, -4
br i1 %52, label %72, label %53
53: ; preds = %49, %53
%54 = phi i64 [ %70, %53 ], [ %50, %49 ]
%55 = getelementptr inbounds i32, ptr %6, i64 %54
%56 = load i32, ptr %55, align 4, !tbaa !17
%57 = getelementptr inbounds i32, ptr %11, i64 %54
store i32 %56, ptr %57, align 4, !tbaa !17
%58 = add nuw i64 %54, 1
%59 = getelementptr inbounds i32, ptr %6, i64 %58
%60 = load i32, ptr %59, align 4, !tbaa !17
%61 = getelementptr inbounds i32, ptr %11, i64 %58
store i32 %60, ptr %61, align 4, !tbaa !17
%62 = add nuw i64 %54, 2
%63 = getelementptr inbounds i32, ptr %6, i64 %62
%64 = load i32, ptr %63, align 4, !tbaa !17
%65 = getelementptr inbounds i32, ptr %11, i64 %62
store i32 %64, ptr %65, align 4, !tbaa !17
%66 = add nuw i64 %54, 3
%67 = getelementptr inbounds i32, ptr %6, i64 %66
%68 = load i32, ptr %67, align 4, !tbaa !17
%69 = getelementptr inbounds i32, ptr %11, i64 %66
store i32 %68, ptr %69, align 4, !tbaa !17
%70 = add nuw i64 %54, 4
%71 = icmp eq i64 %70, %15
br i1 %71, label %72, label %53, !llvm.loop !24
72: ; preds = %49, %53, %34, %14, %9, %1
%73 = getelementptr inbounds %struct.__vxge_hw_channel, ptr %0, i64 0, i32 1
%74 = load i32, ptr %73, align 8, !tbaa !25
switch i32 %74, label %81 [
i32 129, label %75
i32 128, label %77
]
75: ; preds = %72
%76 = getelementptr inbounds %struct.__vxge_hw_virtualpath, ptr %4, i64 0, i32 1
br label %77
77: ; preds = %72, %75
%78 = phi ptr [ %76, %75 ], [ %4, %72 ]
store ptr %0, ptr %78, align 8, !tbaa !26
%79 = load ptr, ptr %0, align 8, !tbaa !26
%80 = getelementptr inbounds %struct.__vxge_hw_channel, ptr %0, i64 0, i32 2
store ptr %79, ptr %80, align 8, !tbaa !27
br label %81
81: ; preds = %77, %72
%82 = load i32, ptr @VXGE_HW_OK, align 4, !tbaa !17
ret i32 %82
}
attributes #0 = { nofree norecurse nosync nounwind 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" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 40}
!6 = !{!"__vxge_hw_channel", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_4__", !11, i64 0}
!14 = !{!6, !11, i64 24}
!15 = !{!6, !11, i64 32}
!16 = !{!6, !7, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !19, !20}
!25 = !{!6, !10, i64 8}
!26 = !{!11, !11, i64 0}
!27 = !{!6, !11, i64 16}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/neterion/vxge/extr_vxge-config.c___vxge_hw_channel_initialize.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/neterion/vxge/extr_vxge-config.c___vxge_hw_channel_initialize.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VXGE_HW_OK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @__vxge_hw_channel_initialize], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync)
define internal i32 @__vxge_hw_channel_initialize(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 40
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !13
%5 = getelementptr inbounds i8, ptr %0, i64 24
%6 = load ptr, ptr %5, align 8, !tbaa !15
%7 = ptrtoint ptr %6 to i64
%8 = icmp eq ptr %6, null
br i1 %8, label %51, label %9
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %0, i64 32
%11 = load ptr, ptr %10, align 8, !tbaa !16
%12 = ptrtoint ptr %11 to i64
%13 = icmp eq ptr %11, null
br i1 %13, label %51, label %14
14: ; preds = %9
%15 = load i64, ptr %0, align 8, !tbaa !17
%16 = icmp eq i64 %15, 0
br i1 %16, label %51, label %17
17: ; preds = %14
%18 = icmp ult i64 %15, 16
%19 = sub i64 %12, %7
%20 = icmp ult i64 %19, 64
%21 = or i1 %18, %20
br i1 %21, label %42, label %22
22: ; preds = %17
%23 = and i64 %15, -16
br label %24
24: ; preds = %24, %22
%25 = phi i64 [ 0, %22 ], [ %38, %24 ]
%26 = getelementptr inbounds i32, ptr %6, i64 %25
%27 = getelementptr inbounds i8, ptr %26, i64 16
%28 = getelementptr inbounds i8, ptr %26, i64 32
%29 = getelementptr inbounds i8, ptr %26, i64 48
%30 = load <4 x i32>, ptr %26, align 4, !tbaa !18
%31 = load <4 x i32>, ptr %27, align 4, !tbaa !18
%32 = load <4 x i32>, ptr %28, align 4, !tbaa !18
%33 = load <4 x i32>, ptr %29, align 4, !tbaa !18
%34 = getelementptr inbounds i32, ptr %11, i64 %25
%35 = getelementptr inbounds i8, ptr %34, i64 16
%36 = getelementptr inbounds i8, ptr %34, i64 32
%37 = getelementptr inbounds i8, ptr %34, i64 48
store <4 x i32> %30, ptr %34, align 4, !tbaa !18
store <4 x i32> %31, ptr %35, align 4, !tbaa !18
store <4 x i32> %32, ptr %36, align 4, !tbaa !18
store <4 x i32> %33, ptr %37, align 4, !tbaa !18
%38 = add nuw i64 %25, 16
%39 = icmp eq i64 %38, %23
br i1 %39, label %40, label %24, !llvm.loop !19
40: ; preds = %24
%41 = icmp eq i64 %15, %23
br i1 %41, label %51, label %42
42: ; preds = %40, %17
%43 = phi i64 [ 0, %17 ], [ %23, %40 ]
br label %44
44: ; preds = %42, %44
%45 = phi i64 [ %49, %44 ], [ %43, %42 ]
%46 = getelementptr inbounds i32, ptr %6, i64 %45
%47 = load i32, ptr %46, align 4, !tbaa !18
%48 = getelementptr inbounds i32, ptr %11, i64 %45
store i32 %47, ptr %48, align 4, !tbaa !18
%49 = add nuw i64 %45, 1
%50 = icmp eq i64 %49, %15
br i1 %50, label %51, label %44, !llvm.loop !23
51: ; preds = %44, %40, %14, %9, %1
%52 = getelementptr inbounds i8, ptr %0, i64 8
%53 = load i32, ptr %52, align 8, !tbaa !24
switch i32 %53, label %60 [
i32 129, label %54
i32 128, label %56
]
54: ; preds = %51
%55 = getelementptr inbounds i8, ptr %4, i64 8
br label %56
56: ; preds = %51, %54
%57 = phi ptr [ %55, %54 ], [ %4, %51 ]
store ptr %0, ptr %57, align 8, !tbaa !25
%58 = load ptr, ptr %0, align 8, !tbaa !25
%59 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %58, ptr %59, align 8, !tbaa !26
br label %60
60: ; preds = %56, %51
%61 = load i32, ptr @VXGE_HW_OK, align 4, !tbaa !18
ret i32 %61
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 40}
!7 = !{!"__vxge_hw_channel", !8, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_4__", !12, i64 0}
!15 = !{!7, !12, i64 24}
!16 = !{!7, !12, i64 32}
!17 = !{!7, !8, i64 0}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !20, !21}
!24 = !{!7, !11, i64 8}
!25 = !{!12, !12, i64 0}
!26 = !{!7, !12, i64 16}
| linux_drivers_net_ethernet_neterion_vxge_extr_vxge-config.c___vxge_hw_channel_initialize |
; ModuleID = 'AnghaBench/linux/drivers/regulator/extr_da9055-regulator.c_da9055_ldo5_6_oc_irq.c'
source_filename = "AnghaBench/linux/drivers/regulator/extr_da9055-regulator.c_da9055_ldo5_6_oc_irq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@REGULATOR_EVENT_OVER_CURRENT = dso_local local_unnamed_addr global i32 0, align 4
@IRQ_HANDLED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @da9055_ldo5_6_oc_irq], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @da9055_ldo5_6_oc_irq(i32 %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = tail call i32 @regulator_lock(i32 noundef %3) #2
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = load i32, ptr @REGULATOR_EVENT_OVER_CURRENT, align 4, !tbaa !10
%7 = tail call i32 @regulator_notifier_call_chain(i32 noundef %5, i32 noundef %6, ptr noundef null) #2
%8 = load i32, ptr %1, align 4, !tbaa !5
%9 = tail call i32 @regulator_unlock(i32 noundef %8) #2
%10 = load i32, ptr @IRQ_HANDLED, align 4, !tbaa !10
ret i32 %10
}
declare i32 @regulator_lock(i32 noundef) local_unnamed_addr #1
declare i32 @regulator_notifier_call_chain(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @regulator_unlock(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"da9055_regulator", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/regulator/extr_da9055-regulator.c_da9055_ldo5_6_oc_irq.c'
source_filename = "AnghaBench/linux/drivers/regulator/extr_da9055-regulator.c_da9055_ldo5_6_oc_irq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@REGULATOR_EVENT_OVER_CURRENT = common local_unnamed_addr global i32 0, align 4
@IRQ_HANDLED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @da9055_ldo5_6_oc_irq], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @da9055_ldo5_6_oc_irq(i32 %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !6
%4 = tail call i32 @regulator_lock(i32 noundef %3) #2
%5 = load i32, ptr %1, align 4, !tbaa !6
%6 = load i32, ptr @REGULATOR_EVENT_OVER_CURRENT, align 4, !tbaa !11
%7 = tail call i32 @regulator_notifier_call_chain(i32 noundef %5, i32 noundef %6, ptr noundef null) #2
%8 = load i32, ptr %1, align 4, !tbaa !6
%9 = tail call i32 @regulator_unlock(i32 noundef %8) #2
%10 = load i32, ptr @IRQ_HANDLED, align 4, !tbaa !11
ret i32 %10
}
declare i32 @regulator_lock(i32 noundef) local_unnamed_addr #1
declare i32 @regulator_notifier_call_chain(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @regulator_unlock(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"da9055_regulator", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| linux_drivers_regulator_extr_da9055-regulator.c_da9055_ldo5_6_oc_irq |
; ModuleID = 'AnghaBench/freebsd/sys/libkern/extr_flsll.c_flsll.c'
source_filename = "AnghaBench/freebsd/sys/libkern/extr_flsll.c_flsll.c"
target datalayout = "e-m:e-p270:32:32-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: nofree norecurse nosync nounwind memory(none) uwtable
define dso_local i32 @flsll(i64 noundef %0) local_unnamed_addr #0 {
switch i64 %0, label %2 [
i64 0, label %9
i64 1, label %8
]
2: ; preds = %1, %2
%3 = phi i32 [ %6, %2 ], [ 1, %1 ]
%4 = phi i64 [ %5, %2 ], [ %0, %1 ]
%5 = lshr i64 %4, 1
%6 = add nuw nsw i32 %3, 1
%7 = icmp eq i64 %5, 1
br i1 %7, label %9, label %2, !llvm.loop !5
8: ; preds = %1
br label %9
9: ; preds = %2, %1, %8
%10 = phi i32 [ 0, %1 ], [ 1, %8 ], [ %6, %2 ]
ret i32 %10
}
attributes #0 = { nofree norecurse nosync nounwind memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/libkern/extr_flsll.c_flsll.c'
source_filename = "AnghaBench/freebsd/sys/libkern/extr_flsll.c_flsll.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(none) uwtable(sync)
define i32 @flsll(i64 noundef %0) local_unnamed_addr #0 {
switch i64 %0, label %2 [
i64 0, label %10
i64 1, label %8
]
2: ; preds = %1, %2
%3 = phi i32 [ %6, %2 ], [ 1, %1 ]
%4 = phi i64 [ %5, %2 ], [ %0, %1 ]
%5 = lshr i64 %4, 1
%6 = add nuw nsw i32 %3, 1
%7 = icmp eq i64 %5, 1
br i1 %7, label %8, label %2, !llvm.loop !6
8: ; preds = %2, %1
%9 = phi i32 [ 1, %1 ], [ %6, %2 ]
br label %10
10: ; preds = %1, %8
%11 = phi i32 [ 0, %1 ], [ %9, %8 ]
ret i32 %11
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_libkern_extr_flsll.c_flsll |
; ModuleID = 'AnghaBench/reactos/dll/win32/rpcrt4/extr_ndr_typelib.c_write_type_tfs.c'
source_filename = "AnghaBench/reactos/dll/win32/rpcrt4/extr_ndr_typelib.c_write_type_tfs.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_7__ = type { i32, i32, i32, i32 }
@.str = private unnamed_addr constant [9 x i8] c"vt %d%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c" (toplevel)\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"unhandled kind %u\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"unhandled type %u\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @write_type_tfs], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @write_type_tfs(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, i64 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
%9 = load i32, ptr %3, align 4, !tbaa !5
%10 = icmp eq i64 %4, 0
%11 = select i1 %10, ptr @.str.2, ptr @.str.1
%12 = tail call i32 @TRACE(ptr noundef nonnull @.str, i32 noundef %9, ptr noundef nonnull %11) #3
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = tail call i64 @write_oleaut_tfs(i32 noundef %13) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %58
16: ; preds = %6
%17 = load i32, ptr %3, align 4, !tbaa !5
switch i32 %17, label %49 [
i32 129, label %18
i32 130, label %22
i32 128, label %26
]
18: ; preds = %16
%19 = getelementptr inbounds %struct.TYPE_7__, ptr %3, i64 0, i32 3
%20 = load i32, ptr %19, align 4, !tbaa !10
%21 = tail call i64 @write_pointer_tfs(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %20, i64 noundef %4, i64 noundef %5) #3
br label %58
22: ; preds = %16
%23 = getelementptr inbounds %struct.TYPE_7__, ptr %3, i64 0, i32 2
%24 = load i32, ptr %23, align 4, !tbaa !11
%25 = tail call i64 @write_array_tfs(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %24) #3
br label %58
26: ; preds = %16
%27 = getelementptr inbounds %struct.TYPE_7__, ptr %3, i64 0, i32 1
%28 = load i32, ptr %27, align 4, !tbaa !12
%29 = call i32 @ITypeInfo_GetRefTypeInfo(ptr noundef %0, i32 noundef %28, ptr noundef nonnull %7) #3
%30 = load ptr, ptr %7, align 8, !tbaa !13
%31 = call i32 @ITypeInfo_GetTypeAttr(ptr noundef %30, ptr noundef nonnull %8) #3
%32 = load ptr, ptr %8, align 8, !tbaa !13
%33 = load i32, ptr %32, align 4, !tbaa !15
%34 = icmp eq i32 %33, 131
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = load ptr, ptr %7, align 8, !tbaa !13
%37 = call i64 @write_struct_tfs(ptr noundef %36, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %32) #3
br label %42
38: ; preds = %26
%39 = call i32 @FIXME(ptr noundef nonnull @.str.3, i32 noundef %33) #3
%40 = load i64, ptr %2, align 8, !tbaa !17
%41 = call i32 @WRITE_SHORT(ptr noundef %1, i64 noundef %40, i32 noundef 0) #3
br label %42
42: ; preds = %38, %35
%43 = phi i64 [ %37, %35 ], [ %40, %38 ]
%44 = load ptr, ptr %7, align 8, !tbaa !13
%45 = load ptr, ptr %8, align 8, !tbaa !13
%46 = call i32 @ITypeInfo_ReleaseTypeAttr(ptr noundef %44, ptr noundef %45) #3
%47 = load ptr, ptr %7, align 8, !tbaa !13
%48 = call i32 @ITypeInfo_Release(ptr noundef %47) #3
br label %58
49: ; preds = %16
%50 = tail call i32 @get_base_type(i32 noundef %17) #3
%51 = icmp eq i32 %50, 0
%52 = zext i1 %51 to i32
%53 = tail call i32 @assert(i32 noundef %52) #3
%54 = load i32, ptr %3, align 4, !tbaa !5
%55 = tail call i32 @FIXME(ptr noundef nonnull @.str.4, i32 noundef %54) #3
%56 = load i64, ptr %2, align 8, !tbaa !17
%57 = tail call i32 @WRITE_SHORT(ptr noundef %1, i64 noundef %56, i32 noundef 0) #3
br label %58
58: ; preds = %42, %49, %6, %22, %18
%59 = phi i64 [ %25, %22 ], [ %21, %18 ], [ %14, %6 ], [ %56, %49 ], [ %43, %42 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
ret i64 %59
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @TRACE(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @write_oleaut_tfs(i32 noundef) local_unnamed_addr #2
declare i64 @write_pointer_tfs(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
declare i64 @write_array_tfs(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ITypeInfo_GetRefTypeInfo(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ITypeInfo_GetTypeAttr(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @write_struct_tfs(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @FIXME(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @WRITE_SHORT(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ITypeInfo_ReleaseTypeAttr(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ITypeInfo_Release(ptr noundef) local_unnamed_addr #2
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i32 @get_base_type(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_7__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 12}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 4}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"TYPE_8__", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !8, i64 0}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/rpcrt4/extr_ndr_typelib.c_write_type_tfs.c'
source_filename = "AnghaBench/reactos/dll/win32/rpcrt4/extr_ndr_typelib.c_write_type_tfs.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [9 x i8] c"vt %d%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c" (toplevel)\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"unhandled kind %u\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"unhandled type %u\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @write_type_tfs], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @write_type_tfs(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, i64 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
%9 = load i32, ptr %3, align 4, !tbaa !6
%10 = icmp eq i64 %4, 0
%11 = select i1 %10, ptr @.str.2, ptr @.str.1
%12 = tail call i32 @TRACE(ptr noundef nonnull @.str, i32 noundef %9, ptr noundef nonnull %11) #3
%13 = load i32, ptr %3, align 4, !tbaa !6
%14 = tail call i64 @write_oleaut_tfs(i32 noundef %13) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %58
16: ; preds = %6
%17 = load i32, ptr %3, align 4, !tbaa !6
switch i32 %17, label %49 [
i32 129, label %18
i32 130, label %22
i32 128, label %26
]
18: ; preds = %16
%19 = getelementptr inbounds i8, ptr %3, i64 12
%20 = load i32, ptr %19, align 4, !tbaa !11
%21 = tail call i64 @write_pointer_tfs(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %20, i64 noundef %4, i64 noundef %5) #3
br label %58
22: ; preds = %16
%23 = getelementptr inbounds i8, ptr %3, i64 8
%24 = load i32, ptr %23, align 4, !tbaa !12
%25 = tail call i64 @write_array_tfs(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %24) #3
br label %58
26: ; preds = %16
%27 = getelementptr inbounds i8, ptr %3, i64 4
%28 = load i32, ptr %27, align 4, !tbaa !13
%29 = call i32 @ITypeInfo_GetRefTypeInfo(ptr noundef %0, i32 noundef %28, ptr noundef nonnull %7) #3
%30 = load ptr, ptr %7, align 8, !tbaa !14
%31 = call i32 @ITypeInfo_GetTypeAttr(ptr noundef %30, ptr noundef nonnull %8) #3
%32 = load ptr, ptr %8, align 8, !tbaa !14
%33 = load i32, ptr %32, align 4, !tbaa !16
%34 = icmp eq i32 %33, 131
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = load ptr, ptr %7, align 8, !tbaa !14
%37 = call i64 @write_struct_tfs(ptr noundef %36, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %32) #3
br label %42
38: ; preds = %26
%39 = call i32 @FIXME(ptr noundef nonnull @.str.3, i32 noundef %33) #3
%40 = load i64, ptr %2, align 8, !tbaa !18
%41 = call i32 @WRITE_SHORT(ptr noundef %1, i64 noundef %40, i32 noundef 0) #3
br label %42
42: ; preds = %38, %35
%43 = phi i64 [ %37, %35 ], [ %40, %38 ]
%44 = load ptr, ptr %7, align 8, !tbaa !14
%45 = load ptr, ptr %8, align 8, !tbaa !14
%46 = call i32 @ITypeInfo_ReleaseTypeAttr(ptr noundef %44, ptr noundef %45) #3
%47 = load ptr, ptr %7, align 8, !tbaa !14
%48 = call i32 @ITypeInfo_Release(ptr noundef %47) #3
br label %58
49: ; preds = %16
%50 = tail call i32 @get_base_type(i32 noundef %17) #3
%51 = icmp eq i32 %50, 0
%52 = zext i1 %51 to i32
%53 = tail call i32 @assert(i32 noundef %52) #3
%54 = load i32, ptr %3, align 4, !tbaa !6
%55 = tail call i32 @FIXME(ptr noundef nonnull @.str.4, i32 noundef %54) #3
%56 = load i64, ptr %2, align 8, !tbaa !18
%57 = tail call i32 @WRITE_SHORT(ptr noundef %1, i64 noundef %56, i32 noundef 0) #3
br label %58
58: ; preds = %42, %49, %6, %22, %18
%59 = phi i64 [ %25, %22 ], [ %21, %18 ], [ %14, %6 ], [ %56, %49 ], [ %43, %42 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
ret i64 %59
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @TRACE(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @write_oleaut_tfs(i32 noundef) local_unnamed_addr #2
declare i64 @write_pointer_tfs(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
declare i64 @write_array_tfs(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ITypeInfo_GetRefTypeInfo(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ITypeInfo_GetTypeAttr(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @write_struct_tfs(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @FIXME(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @WRITE_SHORT(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ITypeInfo_ReleaseTypeAttr(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ITypeInfo_Release(ptr noundef) local_unnamed_addr #2
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i32 @get_base_type(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_7__", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 12}
!12 = !{!7, !8, i64 8}
!13 = !{!7, !8, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!17, !8, i64 0}
!17 = !{!"TYPE_8__", !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !9, i64 0}
| reactos_dll_win32_rpcrt4_extr_ndr_typelib.c_write_type_tfs |
; ModuleID = 'AnghaBench/libgit2/tests/object/extr_message.c_test_object_message__message_prettify.c'
source_filename = "AnghaBench/libgit2/tests/object/extr_message.c_test_object_message__message_prettify.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_5__ = type { ptr }
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Short\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Short\0A\00", align 1
@.str.3 = private unnamed_addr constant [60 x i8] c"This is longer\0AAnd multiline\0A# with some comments still in\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"This is longer\0AAnd multiline\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @test_object_message__message_prettify() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_5__, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
%2 = call i32 @memset(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 8) #3
%3 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str, i32 noundef 0, i8 noundef signext 35) #3
%4 = call i32 @cl_git_pass(i32 noundef %3) #3
%5 = load ptr, ptr %1, align 8, !tbaa !5
%6 = call i32 @cl_assert_equal_s(ptr noundef %5, ptr noundef nonnull @.str) #3
%7 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%8 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str, i32 noundef 1, i8 noundef signext 35) #3
%9 = call i32 @cl_git_pass(i32 noundef %8) #3
%10 = load ptr, ptr %1, align 8, !tbaa !5
%11 = call i32 @cl_assert_equal_s(ptr noundef %10, ptr noundef nonnull @.str) #3
%12 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%13 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str.1, i32 noundef 0, i8 noundef signext 35) #3
%14 = call i32 @cl_git_pass(i32 noundef %13) #3
%15 = load ptr, ptr %1, align 8, !tbaa !5
%16 = call i32 @cl_assert_equal_s(ptr noundef nonnull @.str.2, ptr noundef %15) #3
%17 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%18 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str.1, i32 noundef 1, i8 noundef signext 35) #3
%19 = call i32 @cl_git_pass(i32 noundef %18) #3
%20 = load ptr, ptr %1, align 8, !tbaa !5
%21 = call i32 @cl_assert_equal_s(ptr noundef nonnull @.str.2, ptr noundef %20) #3
%22 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%23 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str.3, i32 noundef 0, i8 noundef signext 35) #3
%24 = call i32 @cl_git_pass(i32 noundef %23) #3
%25 = load ptr, ptr %1, align 8, !tbaa !5
%26 = call i32 @cl_assert_equal_s(ptr noundef %25, ptr noundef nonnull @.str.3) #3
%27 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%28 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str.3, i32 noundef 1, i8 noundef signext 35) #3
%29 = call i32 @cl_git_pass(i32 noundef %28) #3
%30 = load ptr, ptr %1, align 8, !tbaa !5
%31 = call i32 @cl_assert_equal_s(ptr noundef %30, ptr noundef nonnull @.str.4) #3
%32 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cl_git_pass(i32 noundef) local_unnamed_addr #2
declare i32 @git_message_prettify(ptr noundef, ptr noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #2
declare i32 @cl_assert_equal_s(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @git_buf_dispose(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_5__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/libgit2/tests/object/extr_message.c_test_object_message__message_prettify.c'
source_filename = "AnghaBench/libgit2/tests/object/extr_message.c_test_object_message__message_prettify.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_5__ = type { ptr }
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Short\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Short\0A\00", align 1
@.str.3 = private unnamed_addr constant [60 x i8] c"This is longer\0AAnd multiline\0A# with some comments still in\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"This is longer\0AAnd multiline\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @test_object_message__message_prettify() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_5__, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
%2 = call i32 @memset(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 8) #3
%3 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str, i32 noundef 0, i8 noundef signext 35) #3
%4 = call i32 @cl_git_pass(i32 noundef %3) #3
%5 = load ptr, ptr %1, align 8, !tbaa !6
%6 = call i32 @cl_assert_equal_s(ptr noundef %5, ptr noundef nonnull @.str) #3
%7 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%8 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str, i32 noundef 1, i8 noundef signext 35) #3
%9 = call i32 @cl_git_pass(i32 noundef %8) #3
%10 = load ptr, ptr %1, align 8, !tbaa !6
%11 = call i32 @cl_assert_equal_s(ptr noundef %10, ptr noundef nonnull @.str) #3
%12 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%13 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str.1, i32 noundef 0, i8 noundef signext 35) #3
%14 = call i32 @cl_git_pass(i32 noundef %13) #3
%15 = load ptr, ptr %1, align 8, !tbaa !6
%16 = call i32 @cl_assert_equal_s(ptr noundef nonnull @.str.2, ptr noundef %15) #3
%17 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%18 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str.1, i32 noundef 1, i8 noundef signext 35) #3
%19 = call i32 @cl_git_pass(i32 noundef %18) #3
%20 = load ptr, ptr %1, align 8, !tbaa !6
%21 = call i32 @cl_assert_equal_s(ptr noundef nonnull @.str.2, ptr noundef %20) #3
%22 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%23 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str.3, i32 noundef 0, i8 noundef signext 35) #3
%24 = call i32 @cl_git_pass(i32 noundef %23) #3
%25 = load ptr, ptr %1, align 8, !tbaa !6
%26 = call i32 @cl_assert_equal_s(ptr noundef %25, ptr noundef nonnull @.str.3) #3
%27 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
%28 = call i32 @git_message_prettify(ptr noundef nonnull %1, ptr noundef nonnull @.str.3, i32 noundef 1, i8 noundef signext 35) #3
%29 = call i32 @cl_git_pass(i32 noundef %28) #3
%30 = load ptr, ptr %1, align 8, !tbaa !6
%31 = call i32 @cl_assert_equal_s(ptr noundef %30, ptr noundef nonnull @.str.4) #3
%32 = call i32 @git_buf_dispose(ptr noundef nonnull %1) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cl_git_pass(i32 noundef) local_unnamed_addr #2
declare i32 @git_message_prettify(ptr noundef, ptr noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #2
declare i32 @cl_assert_equal_s(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @git_buf_dispose(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_5__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| libgit2_tests_object_extr_message.c_test_object_message__message_prettify |
; ModuleID = 'AnghaBench/reactos/dll/directx/wine/wined3d/extr_surface.c_cliptobyte.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/wined3d/extr_surface.c_cliptobyte.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @cliptobyte], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @cliptobyte(i32 noundef %0) #0 {
%2 = tail call i32 @llvm.smin.i32(i32 %0, i32 255)
%3 = tail call i32 @llvm.smax.i32(i32 %2, i32 0)
ret i32 %3
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #1
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(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 nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/reactos/dll/directx/wine/wined3d/extr_surface.c_cliptobyte.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/wined3d/extr_surface.c_cliptobyte.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @cliptobyte], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @cliptobyte(i32 noundef %0) #0 {
%2 = tail call i32 @llvm.smin.i32(i32 %0, i32 255)
%3 = tail call i32 @llvm.smax.i32(i32 %2, i32 0)
ret i32 %3
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #1
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| reactos_dll_directx_wine_wined3d_extr_surface.c_cliptobyte |
; ModuleID = 'AnghaBench/linux/drivers/iio/temperature/extr_mlx90614.c_mlx90614_power_get.c'
source_filename = "AnghaBench/linux/drivers/iio/temperature/extr_mlx90614.c_mlx90614_power_get.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @mlx90614_power_get], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @mlx90614_power_get(ptr nocapture readnone %0, i32 %1) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/iio/temperature/extr_mlx90614.c_mlx90614_power_get.c'
source_filename = "AnghaBench/linux/drivers/iio/temperature/extr_mlx90614.c_mlx90614_power_get.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @mlx90614_power_get], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @mlx90614_power_get(ptr nocapture readnone %0, i32 %1) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_iio_temperature_extr_mlx90614.c_mlx90614_power_get |
; ModuleID = 'AnghaBench/reactos/drivers/bus/acpi/acpica/utilities/extr_utstrsuppt.c_AcpiUtInsertDigit.c'
source_filename = "AnghaBench/reactos/drivers/bus/acpi/acpica/utilities/extr_utstrsuppt.c_AcpiUtInsertDigit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @AcpiUtInsertDigit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @AcpiUtInsertDigit(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = load i32, ptr %0, align 4, !tbaa !5
%6 = call i32 @AcpiUtStrtoulMultiply64(i32 noundef %5, i32 noundef %1, ptr noundef nonnull %4) #3
%7 = call i64 @ACPI_FAILURE(i32 noundef %6) #3
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32, ptr %4, align 4, !tbaa !5
%11 = call i32 @AcpiUtAsciiCharToHex(i32 noundef %2) #3
%12 = call i32 @AcpiUtStrtoulAdd64(i32 noundef %10, i32 noundef %11, ptr noundef nonnull %0) #3
br label %13
13: ; preds = %3, %9
%14 = phi i32 [ %12, %9 ], [ %6, %3 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %14
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @AcpiUtStrtoulMultiply64(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ACPI_FAILURE(i32 noundef) local_unnamed_addr #2
declare i32 @AcpiUtStrtoulAdd64(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiUtAsciiCharToHex(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/reactos/drivers/bus/acpi/acpica/utilities/extr_utstrsuppt.c_AcpiUtInsertDigit.c'
source_filename = "AnghaBench/reactos/drivers/bus/acpi/acpica/utilities/extr_utstrsuppt.c_AcpiUtInsertDigit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @AcpiUtInsertDigit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @AcpiUtInsertDigit(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = load i32, ptr %0, align 4, !tbaa !6
%6 = call i32 @AcpiUtStrtoulMultiply64(i32 noundef %5, i32 noundef %1, ptr noundef nonnull %4) #3
%7 = call i64 @ACPI_FAILURE(i32 noundef %6) #3
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32, ptr %4, align 4, !tbaa !6
%11 = call i32 @AcpiUtAsciiCharToHex(i32 noundef %2) #3
%12 = call i32 @AcpiUtStrtoulAdd64(i32 noundef %10, i32 noundef %11, ptr noundef nonnull %0) #3
br label %13
13: ; preds = %3, %9
%14 = phi i32 [ %12, %9 ], [ %6, %3 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %14
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @AcpiUtStrtoulMultiply64(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ACPI_FAILURE(i32 noundef) local_unnamed_addr #2
declare i32 @AcpiUtStrtoulAdd64(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiUtAsciiCharToHex(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| reactos_drivers_bus_acpi_acpica_utilities_extr_utstrsuppt.c_AcpiUtInsertDigit |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_tuner-core.c_set_tv_freq.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_tuner-core.c_set_tv_freq.c"
target datalayout = "e-m:e-p270:32:32-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.analog_parameters = type { i32, i32, i32, i32 }
%struct.tuner = type { i64, i32, i32, %struct.TYPE_4__, i32, i32, i32 }
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { %struct.analog_demod_ops }
%struct.analog_demod_ops = type { ptr }
@UNSET = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [20 x i8] c"tuner type not set\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"Tuner has no way to set tv freq\0A\00", align 1
@tv_range = dso_local local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [40 x i8] c"TV freq (%d.%02d) out of range (%d-%d)\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"tv freq set to %d.%02d\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @set_tv_freq], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @set_tv_freq(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca %struct.analog_parameters, align 4
%4 = tail call i32 @i2c_get_clientdata(ptr noundef %0) #3
%5 = tail call ptr @to_tuner(i32 noundef %4) #3
%6 = getelementptr inbounds %struct.tuner, ptr %5, i64 0, i32 3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
%7 = getelementptr inbounds %struct.analog_parameters, ptr %3, i64 0, i32 1
%8 = getelementptr inbounds %struct.tuner, ptr %5, i64 0, i32 4
%9 = load <2 x i32>, ptr %8, align 8, !tbaa !5
store <2 x i32> %9, ptr %7, align 4, !tbaa !5
%10 = getelementptr inbounds %struct.analog_parameters, ptr %3, i64 0, i32 3
%11 = getelementptr inbounds %struct.tuner, ptr %5, i64 0, i32 6
%12 = load i32, ptr %11, align 8, !tbaa !9
store i32 %12, ptr %10, align 4, !tbaa !16
%13 = load i64, ptr %5, align 8, !tbaa !18
%14 = load i64, ptr @UNSET, align 8, !tbaa !19
%15 = icmp eq i64 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = tail call i32 @tuner_warn(ptr noundef nonnull @.str) #3
br label %58
18: ; preds = %2
%19 = load ptr, ptr %6, align 8, !tbaa !20
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 @tuner_warn(ptr noundef nonnull @.str.1) #3
br label %58
23: ; preds = %18
%24 = load ptr, ptr @tv_range, align 8, !tbaa !21
%25 = load i32, ptr %24, align 4, !tbaa !5
%26 = shl nsw i32 %25, 4
%27 = icmp ugt i32 %26, %1
%28 = getelementptr inbounds i32, ptr %24, i64 1
%29 = load i32, ptr %28, align 4, !tbaa !5
%30 = shl nsw i32 %29, 4
%31 = icmp ult i32 %30, %1
%32 = select i1 %27, i1 true, i1 %31
br i1 %32, label %33, label %47
33: ; preds = %23
%34 = lshr i32 %1, 4
%35 = and i32 %1, 15
%36 = mul nuw nsw i32 %35, 100
%37 = lshr i32 %36, 4
%38 = tail call i32 (ptr, i32, i32, ...) @tuner_dbg(ptr noundef nonnull @.str.2, i32 noundef %34, i32 noundef %37, i32 noundef %25, i32 noundef %29) #3
%39 = load ptr, ptr @tv_range, align 8, !tbaa !21
%40 = load i32, ptr %39, align 4, !tbaa !5
%41 = shl nsw i32 %40, 4
%42 = icmp ugt i32 %41, %1
br i1 %42, label %47, label %43
43: ; preds = %33
%44 = getelementptr inbounds i32, ptr %39, i64 1
%45 = load i32, ptr %44, align 4, !tbaa !5
%46 = shl nsw i32 %45, 4
br label %47
47: ; preds = %23, %33, %43
%48 = phi i32 [ %46, %43 ], [ %41, %33 ], [ %1, %23 ]
store i32 %48, ptr %3, align 4, !tbaa !22
%49 = lshr i32 %48, 4
%50 = and i32 %48, 15
%51 = mul nuw nsw i32 %50, 100
%52 = lshr i32 %51, 4
%53 = tail call i32 (ptr, i32, i32, ...) @tuner_dbg(ptr noundef nonnull @.str.3, i32 noundef %49, i32 noundef %52) #3
%54 = getelementptr inbounds %struct.tuner, ptr %5, i64 0, i32 1
store i32 %48, ptr %54, align 8, !tbaa !23
%55 = getelementptr inbounds %struct.tuner, ptr %5, i64 0, i32 2
store i32 0, ptr %55, align 4, !tbaa !24
%56 = load ptr, ptr %6, align 8, !tbaa !20
%57 = call i32 %56(ptr noundef nonnull %6, ptr noundef nonnull %3) #3
br label %58
58: ; preds = %47, %21, %16
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @to_tuner(i32 noundef) local_unnamed_addr #2
declare i32 @i2c_get_clientdata(ptr noundef) local_unnamed_addr #2
declare i32 @tuner_warn(ptr noundef) local_unnamed_addr #2
declare i32 @tuner_dbg(ptr noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"tuner", !11, i64 0, !6, i64 8, !6, i64 12, !12, i64 16, !6, i64 24, !6, i64 28, !6, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"analog_demod_ops", !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !6, i64 12}
!17 = !{!"analog_parameters", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!18 = !{!10, !11, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!14, !15, i64 0}
!21 = !{!15, !15, i64 0}
!22 = !{!17, !6, i64 0}
!23 = !{!10, !6, i64 8}
!24 = !{!10, !6, i64 12}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_tuner-core.c_set_tv_freq.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_tuner-core.c_set_tv_freq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.analog_parameters = type { i32, i32, i32, i32 }
@UNSET = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [20 x i8] c"tuner type not set\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"Tuner has no way to set tv freq\0A\00", align 1
@tv_range = common local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [40 x i8] c"TV freq (%d.%02d) out of range (%d-%d)\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"tv freq set to %d.%02d\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @set_tv_freq], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @set_tv_freq(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca %struct.analog_parameters, align 4
%4 = tail call i32 @i2c_get_clientdata(ptr noundef %0) #3
%5 = tail call ptr @to_tuner(i32 noundef %4) #3
%6 = getelementptr inbounds i8, ptr %5, i64 16
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
%7 = getelementptr inbounds i8, ptr %3, i64 4
%8 = getelementptr inbounds i8, ptr %5, i64 24
%9 = load <2 x i32>, ptr %8, align 8, !tbaa !6
store <2 x i32> %9, ptr %7, align 4, !tbaa !6
%10 = getelementptr inbounds i8, ptr %3, i64 12
%11 = getelementptr inbounds i8, ptr %5, i64 32
%12 = load i32, ptr %11, align 8, !tbaa !10
store i32 %12, ptr %10, align 4, !tbaa !17
%13 = load i64, ptr %5, align 8, !tbaa !19
%14 = load i64, ptr @UNSET, align 8, !tbaa !20
%15 = icmp eq i64 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = tail call i32 @tuner_warn(ptr noundef nonnull @.str) #3
br label %58
18: ; preds = %2
%19 = load ptr, ptr %6, align 8, !tbaa !21
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 @tuner_warn(ptr noundef nonnull @.str.1) #3
br label %58
23: ; preds = %18
%24 = load ptr, ptr @tv_range, align 8, !tbaa !22
%25 = load i32, ptr %24, align 4, !tbaa !6
%26 = shl nsw i32 %25, 4
%27 = icmp ugt i32 %26, %1
%28 = getelementptr inbounds i8, ptr %24, i64 4
%29 = load i32, ptr %28, align 4, !tbaa !6
%30 = shl nsw i32 %29, 4
%31 = icmp ult i32 %30, %1
%32 = select i1 %27, i1 true, i1 %31
br i1 %32, label %33, label %47
33: ; preds = %23
%34 = lshr i32 %1, 4
%35 = and i32 %1, 15
%36 = mul nuw nsw i32 %35, 100
%37 = lshr i32 %36, 4
%38 = tail call i32 (ptr, i32, i32, ...) @tuner_dbg(ptr noundef nonnull @.str.2, i32 noundef %34, i32 noundef %37, i32 noundef %25, i32 noundef %29) #3
%39 = load ptr, ptr @tv_range, align 8, !tbaa !22
%40 = load i32, ptr %39, align 4, !tbaa !6
%41 = shl nsw i32 %40, 4
%42 = icmp ugt i32 %41, %1
br i1 %42, label %47, label %43
43: ; preds = %33
%44 = getelementptr inbounds i8, ptr %39, i64 4
%45 = load i32, ptr %44, align 4, !tbaa !6
%46 = shl nsw i32 %45, 4
br label %47
47: ; preds = %23, %33, %43
%48 = phi i32 [ %46, %43 ], [ %41, %33 ], [ %1, %23 ]
store i32 %48, ptr %3, align 4, !tbaa !23
%49 = lshr i32 %48, 4
%50 = and i32 %48, 15
%51 = mul nuw nsw i32 %50, 100
%52 = lshr i32 %51, 4
%53 = tail call i32 (ptr, i32, i32, ...) @tuner_dbg(ptr noundef nonnull @.str.3, i32 noundef %49, i32 noundef %52) #3
%54 = getelementptr inbounds i8, ptr %5, i64 8
store i32 %48, ptr %54, align 8, !tbaa !24
%55 = getelementptr inbounds i8, ptr %5, i64 12
store i32 0, ptr %55, align 4, !tbaa !25
%56 = load ptr, ptr %6, align 8, !tbaa !21
%57 = call i32 %56(ptr noundef nonnull %6, ptr noundef nonnull %3) #3
br label %58
58: ; preds = %47, %21, %16
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @to_tuner(i32 noundef) local_unnamed_addr #2
declare i32 @i2c_get_clientdata(ptr noundef) local_unnamed_addr #2
declare i32 @tuner_warn(ptr noundef) local_unnamed_addr #2
declare i32 @tuner_dbg(ptr noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 32}
!11 = !{!"tuner", !12, i64 0, !7, i64 8, !7, i64 12, !13, i64 16, !7, i64 24, !7, i64 28, !7, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"TYPE_3__", !15, i64 0}
!15 = !{!"analog_demod_ops", !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!18, !7, i64 12}
!18 = !{!"analog_parameters", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!19 = !{!11, !12, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!15, !16, i64 0}
!22 = !{!16, !16, i64 0}
!23 = !{!18, !7, i64 0}
!24 = !{!11, !7, i64 8}
!25 = !{!11, !7, i64 12}
| fastsocket_kernel_drivers_media_video_extr_tuner-core.c_set_tv_freq |
; ModuleID = 'AnghaBench/mongoose/examples/PIC32/mqtt_client/firmware/src/system_config/mx795_CC3100_e16/framework/driver/spi/static/src/extr_drv_spi_static_sys_queue.c_DRV_SPI_SYS_QUEUE_QueueManagerStatus.c'
source_filename = "AnghaBench/mongoose/examples/PIC32/mqtt_client/firmware/src/system_config/mx795_CC3100_e16/framework/driver/spi/static/src/extr_drv_spi_static_sys_queue.c_DRV_SPI_SYS_QUEUE_QueueManagerStatus.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DRV_SPI_SYS_QUEUE_INVALID_PARAMETER = dso_local local_unnamed_addr global i32 0, align 4
@DRV_SPI_SYS_QUEUE_MAX_ERROR = dso_local local_unnamed_addr global i64 0, align 8
@DRV_SPI_SYS_QUEUE_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i32 @DRV_SPI_SYS_QUEUE_QueueManagerStatus(i64 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
%3 = load i32, ptr @DRV_SPI_SYS_QUEUE_INVALID_PARAMETER, align 4, !tbaa !5
ret i32 %3
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/mongoose/examples/PIC32/mqtt_client/firmware/src/system_config/mx795_CC3100_e16/framework/driver/spi/static/src/extr_drv_spi_static_sys_queue.c_DRV_SPI_SYS_QUEUE_QueueManagerStatus.c'
source_filename = "AnghaBench/mongoose/examples/PIC32/mqtt_client/firmware/src/system_config/mx795_CC3100_e16/framework/driver/spi/static/src/extr_drv_spi_static_sys_queue.c_DRV_SPI_SYS_QUEUE_QueueManagerStatus.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DRV_SPI_SYS_QUEUE_INVALID_PARAMETER = common local_unnamed_addr global i32 0, align 4
@DRV_SPI_SYS_QUEUE_MAX_ERROR = common local_unnamed_addr global i64 0, align 8
@DRV_SPI_SYS_QUEUE_SUCCESS = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define i32 @DRV_SPI_SYS_QUEUE_QueueManagerStatus(i64 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
%3 = load i32, ptr @DRV_SPI_SYS_QUEUE_INVALID_PARAMETER, align 4, !tbaa !6
ret i32 %3
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| mongoose_examples_PIC32_mqtt_client_firmware_src_system_config_mx795_CC3100_e16_framework_driver_spi_static_src_extr_drv_spi_static_sys_queue.c_DRV_SPI_SYS_QUEUE_QueueManagerStatus |
; ModuleID = 'AnghaBench/HandBrake/gtk/src/extr_presets.c_ghb_tree_path_get_index.c'
source_filename = "AnghaBench/HandBrake/gtk/src/extr_presets.c_ghb_tree_path_get_index.c"
target datalayout = "e-m:e-p270:32:32-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 ptr @ghb_tree_path_get_index(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @gtk_tree_path_get_indices(ptr noundef %0) #2
%3 = tail call i32 @gtk_tree_path_get_depth(ptr noundef %0) #2
%4 = tail call ptr @hb_preset_index_init(ptr noundef %2, i32 noundef %3) #2
ret ptr %4
}
declare ptr @gtk_tree_path_get_indices(ptr noundef) local_unnamed_addr #1
declare i32 @gtk_tree_path_get_depth(ptr noundef) local_unnamed_addr #1
declare ptr @hb_preset_index_init(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/HandBrake/gtk/src/extr_presets.c_ghb_tree_path_get_index.c'
source_filename = "AnghaBench/HandBrake/gtk/src/extr_presets.c_ghb_tree_path_get_index.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @ghb_tree_path_get_index(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @gtk_tree_path_get_indices(ptr noundef %0) #2
%3 = tail call i32 @gtk_tree_path_get_depth(ptr noundef %0) #2
%4 = tail call ptr @hb_preset_index_init(ptr noundef %2, i32 noundef %3) #2
ret ptr %4
}
declare ptr @gtk_tree_path_get_indices(ptr noundef) local_unnamed_addr #1
declare i32 @gtk_tree_path_get_depth(ptr noundef) local_unnamed_addr #1
declare ptr @hb_preset_index_init(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| HandBrake_gtk_src_extr_presets.c_ghb_tree_path_get_index |
; ModuleID = 'AnghaBench/linux/tools/testing/selftests/timers/extr_set-2038.c_do_tests.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/timers/extr_set-2038.c_do_tests.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"date\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"./inconsistency-check -c 0 -t 20\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"./nanosleep\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"./nsleep-lat\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @do_tests() local_unnamed_addr #0 {
%1 = tail call i32 @system(ptr noundef nonnull @.str) #2
%2 = tail call i32 @system(ptr noundef nonnull @.str.1) #2
%3 = tail call i32 @system(ptr noundef nonnull @.str.2) #2
%4 = or i32 %3, %2
%5 = tail call i32 @system(ptr noundef nonnull @.str.3) #2
%6 = or i32 %4, %5
ret i32 %6
}
; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #1
attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/tools/testing/selftests/timers/extr_set-2038.c_do_tests.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/timers/extr_set-2038.c_do_tests.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [5 x i8] c"date\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"./inconsistency-check -c 0 -t 20\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"./nanosleep\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"./nsleep-lat\00", align 1
; Function Attrs: nofree nounwind ssp uwtable(sync)
define noundef i32 @do_tests() local_unnamed_addr #0 {
%1 = tail call i32 @system(ptr noundef nonnull @.str) #2
%2 = tail call i32 @system(ptr noundef nonnull @.str.1) #2
%3 = tail call i32 @system(ptr noundef nonnull @.str.2) #2
%4 = or i32 %3, %2
%5 = tail call i32 @system(ptr noundef nonnull @.str.3) #2
%6 = or i32 %4, %5
ret i32 %6
}
; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #1
attributes #0 = { nofree nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nofree "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_tools_testing_selftests_timers_extr_set-2038.c_do_tests |
; ModuleID = 'AnghaBench/freebsd/sys/arm64/arm64/extr_vm_machdep.c_cpu_thread_alloc.c'
source_filename = "AnghaBench/freebsd/sys/arm64/arm64/extr_vm_machdep.c_cpu_thread_alloc.c"
target datalayout = "e-m:e-p270:32:32-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.thread = type { i32, ptr, ptr, i64 }
%struct.pcb = type { i32 }
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @cpu_thread_alloc(ptr nocapture noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.thread, ptr %0, i64 0, i32 3
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr %0, align 8, !tbaa !12
%5 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !13
%6 = mul nsw i32 %5, %4
%7 = sext i32 %6 to i64
%8 = add nsw i64 %3, %7
%9 = inttoptr i64 %8 to ptr
%10 = getelementptr inbounds %struct.pcb, ptr %9, i64 -1
%11 = getelementptr inbounds %struct.thread, ptr %0, i64 0, i32 1
store ptr %10, ptr %11, align 8, !tbaa !14
%12 = getelementptr inbounds %struct.pcb, ptr %9, i64 -2
%13 = tail call i64 @STACKALIGN(ptr noundef nonnull %12) #2
%14 = inttoptr i64 %13 to ptr
%15 = getelementptr inbounds %struct.thread, ptr %0, i64 0, i32 2
store ptr %14, ptr %15, align 8, !tbaa !15
ret void
}
declare i64 @STACKALIGN(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 24}
!6 = !{!"thread", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !10, i64 16}
| ; ModuleID = 'AnghaBench/freebsd/sys/arm64/arm64/extr_vm_machdep.c_cpu_thread_alloc.c'
source_filename = "AnghaBench/freebsd/sys/arm64/arm64/extr_vm_machdep.c_cpu_thread_alloc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGE_SIZE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @cpu_thread_alloc(ptr nocapture noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 24
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr %0, align 8, !tbaa !13
%5 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !14
%6 = mul nsw i32 %5, %4
%7 = sext i32 %6 to i64
%8 = add nsw i64 %3, %7
%9 = inttoptr i64 %8 to ptr
%10 = getelementptr inbounds i8, ptr %9, i64 -4
%11 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %10, ptr %11, align 8, !tbaa !15
%12 = getelementptr inbounds i8, ptr %9, i64 -8
%13 = tail call i64 @STACKALIGN(ptr noundef nonnull %12) #2
%14 = inttoptr i64 %13 to ptr
%15 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %14, ptr %15, align 8, !tbaa !16
ret void
}
declare i64 @STACKALIGN(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 24}
!7 = !{!"thread", !8, i64 0, !11, i64 8, !11, i64 16, !12, i64 24}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!7, !11, i64 8}
!16 = !{!7, !11, i64 16}
| freebsd_sys_arm64_arm64_extr_vm_machdep.c_cpu_thread_alloc |
; ModuleID = 'AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_pzl.c_pzl_qset_remove.c'
source_filename = "AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_pzl.c_pzl_qset_remove.c"
target datalayout = "e-m:e-p270:32:32-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.whc_qset = type { i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @pzl_qset_remove], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @pzl_qset_remove(ptr noundef %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds %struct.whc_qset, ptr %1, i64 0, i32 2
%4 = tail call i32 @list_move(ptr noundef nonnull %3, ptr noundef %0) #2
store i32 0, ptr %1, align 4, !tbaa !5
%5 = getelementptr inbounds %struct.whc_qset, ptr %1, i64 0, i32 1
store i32 0, ptr %5, align 4, !tbaa !10
ret void
}
declare i32 @list_move(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"whc_qset", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_pzl.c_pzl_qset_remove.c'
source_filename = "AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_pzl.c_pzl_qset_remove.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @pzl_qset_remove], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @pzl_qset_remove(ptr noundef %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 8
%4 = tail call i32 @list_move(ptr noundef nonnull %3, ptr noundef %0) #2
store <2 x i32> zeroinitializer, ptr %1, align 4, !tbaa !6
ret void
}
declare i32 @list_move(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_staging_wusbcore_host_whci_extr_pzl.c_pzl_qset_remove |
; ModuleID = 'AnghaBench/linux/drivers/usb/musb/extr_musb_gadget.c_musb_gadget_pullup.c'
source_filename = "AnghaBench/linux/drivers/usb/musb/extr_musb_gadget.c_musb_gadget_pullup.c"
target datalayout = "e-m:e-p270:32:32-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.musb = type { i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @musb_gadget_pullup], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @musb_gadget_pullup(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @gadget_to_musb(ptr noundef %0) #2
%4 = icmp ne i32 %1, 0
%5 = zext i1 %4 to i32
%6 = getelementptr inbounds %struct.musb, ptr %3, i64 0, i32 1
%7 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %6, i64 noundef undef) #2
%8 = load i32, ptr %3, align 4, !tbaa !5
%9 = icmp eq i32 %8, %5
br i1 %9, label %13, label %10
10: ; preds = %2
store i32 %5, ptr %3, align 4, !tbaa !5
%11 = getelementptr inbounds %struct.musb, ptr %3, i64 0, i32 2
%12 = tail call i32 @schedule_delayed_work(ptr noundef nonnull %11, i32 noundef 0) #2
br label %13
13: ; preds = %10, %2
%14 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %6, i64 noundef undef) #2
ret i32 0
}
declare ptr @gadget_to_musb(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @schedule_delayed_work(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"musb", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/musb/extr_musb_gadget.c_musb_gadget_pullup.c'
source_filename = "AnghaBench/linux/drivers/usb/musb/extr_musb_gadget.c_musb_gadget_pullup.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @musb_gadget_pullup], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @musb_gadget_pullup(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @gadget_to_musb(ptr noundef %0) #2
%4 = icmp ne i32 %1, 0
%5 = zext i1 %4 to i32
%6 = getelementptr inbounds i8, ptr %3, i64 4
%7 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %6, i64 noundef undef) #2
%8 = load i32, ptr %3, align 4, !tbaa !6
%9 = icmp eq i32 %8, %5
br i1 %9, label %13, label %10
10: ; preds = %2
store i32 %5, ptr %3, align 4, !tbaa !6
%11 = getelementptr inbounds i8, ptr %3, i64 8
%12 = tail call i32 @schedule_delayed_work(ptr noundef nonnull %11, i32 noundef 0) #2
br label %13
13: ; preds = %10, %2
%14 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %6, i64 noundef undef) #2
ret i32 0
}
declare ptr @gadget_to_musb(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @schedule_delayed_work(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"musb", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_usb_musb_extr_musb_gadget.c_musb_gadget_pullup |
; ModuleID = 'AnghaBench/Provenance/Cores/FCEU/FCEU/~attic/pc/extr_input.c_FCExp.c'
source_filename = "AnghaBench/Provenance/Cores/FCEU/FCEU/~attic/pc/extr_input.c_FCExp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"none\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"arkanoid\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"shadow\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"4player\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"fkb\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"hypershot\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"mahjong\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"quizking\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"ftrainera\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"ftrainerb\00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"oekakids\00", align 1
@UsrInputType = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @FCExp], section "llvm.metadata"
; Function Attrs: mustprogress nofree nounwind willreturn memory(readwrite, inaccessiblemem: none) uwtable
define internal void @FCExp(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr @UsrInputType, align 8
%3 = getelementptr inbounds i32, ptr %2, i64 2
%4 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(5) @.str, ptr noundef nonnull dereferenceable(1) %0)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 131, ptr %3, align 4, !tbaa !5
br label %7
7: ; preds = %1, %6
%8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(9) @.str.1, ptr noundef nonnull dereferenceable(1) %0)
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 137, ptr %3, align 4, !tbaa !5
br label %11
11: ; preds = %10, %7
%12 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(7) @.str.2, ptr noundef nonnull dereferenceable(1) %0)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 128, ptr %3, align 4, !tbaa !5
br label %15
15: ; preds = %14, %11
%16 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(8) @.str.3, ptr noundef nonnull dereferenceable(1) %0)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 138, ptr %3, align 4, !tbaa !5
br label %19
19: ; preds = %18, %15
%20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(4) @.str.4, ptr noundef nonnull dereferenceable(1) %0)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %19
store i32 136, ptr %3, align 4, !tbaa !5
br label %23
23: ; preds = %22, %19
%24 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(10) @.str.5, ptr noundef nonnull dereferenceable(1) %0)
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 133, ptr %3, align 4, !tbaa !5
br label %27
27: ; preds = %26, %23
%28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(8) @.str.6, ptr noundef nonnull dereferenceable(1) %0)
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27
store i32 132, ptr %3, align 4, !tbaa !5
br label %31
31: ; preds = %30, %27
%32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(9) @.str.7, ptr noundef nonnull dereferenceable(1) %0)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 129, ptr %3, align 4, !tbaa !5
br label %35
35: ; preds = %34, %31
%36 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(10) @.str.8, ptr noundef nonnull dereferenceable(1) %0)
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %35
store i32 135, ptr %3, align 4, !tbaa !5
br label %39
39: ; preds = %38, %35
%40 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(10) @.str.9, ptr noundef nonnull dereferenceable(1) %0)
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %39
store i32 134, ptr %3, align 4, !tbaa !5
br label %43
43: ; preds = %42, %39
%44 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(9) @.str.10, ptr noundef nonnull dereferenceable(1) %0)
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %43
store i32 130, ptr %3, align 4, !tbaa !5
br label %47
47: ; preds = %46, %43
ret void
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1
attributes #0 = { mustprogress nofree 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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/FCEU/FCEU/~attic/pc/extr_input.c_FCExp.c'
source_filename = "AnghaBench/Provenance/Cores/FCEU/FCEU/~attic/pc/extr_input.c_FCExp.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [5 x i8] c"none\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"arkanoid\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"shadow\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"4player\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"fkb\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"hypershot\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"mahjong\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"quizking\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"ftrainera\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"ftrainerb\00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"oekakids\00", align 1
@UsrInputType = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @FCExp], section "llvm.metadata"
; Function Attrs: mustprogress nofree nounwind ssp willreturn memory(readwrite, inaccessiblemem: none) uwtable(sync)
define internal void @FCExp(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr @UsrInputType, align 8
%3 = getelementptr inbounds i8, ptr %2, i64 8
%4 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(5) @.str, ptr noundef nonnull dereferenceable(1) %0)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 131, ptr %3, align 4, !tbaa !6
br label %7
7: ; preds = %1, %6
%8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(9) @.str.1, ptr noundef nonnull dereferenceable(1) %0)
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 137, ptr %3, align 4, !tbaa !6
br label %11
11: ; preds = %10, %7
%12 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(7) @.str.2, ptr noundef nonnull dereferenceable(1) %0)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 128, ptr %3, align 4, !tbaa !6
br label %15
15: ; preds = %14, %11
%16 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(8) @.str.3, ptr noundef nonnull dereferenceable(1) %0)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 138, ptr %3, align 4, !tbaa !6
br label %19
19: ; preds = %18, %15
%20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(4) @.str.4, ptr noundef nonnull dereferenceable(1) %0)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %19
store i32 136, ptr %3, align 4, !tbaa !6
br label %23
23: ; preds = %22, %19
%24 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(10) @.str.5, ptr noundef nonnull dereferenceable(1) %0)
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 133, ptr %3, align 4, !tbaa !6
br label %27
27: ; preds = %26, %23
%28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(8) @.str.6, ptr noundef nonnull dereferenceable(1) %0)
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27
store i32 132, ptr %3, align 4, !tbaa !6
br label %31
31: ; preds = %30, %27
%32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(9) @.str.7, ptr noundef nonnull dereferenceable(1) %0)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 129, ptr %3, align 4, !tbaa !6
br label %35
35: ; preds = %34, %31
%36 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(10) @.str.8, ptr noundef nonnull dereferenceable(1) %0)
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %35
store i32 135, ptr %3, align 4, !tbaa !6
br label %39
39: ; preds = %38, %35
%40 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(10) @.str.9, ptr noundef nonnull dereferenceable(1) %0)
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %39
store i32 134, ptr %3, align 4, !tbaa !6
br label %43
43: ; preds = %42, %39
%44 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(9) @.str.10, ptr noundef nonnull dereferenceable(1) %0)
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %43
store i32 130, ptr %3, align 4, !tbaa !6
br label %47
47: ; preds = %46, %43
ret void
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1
attributes #0 = { mustprogress nofree nounwind ssp willreturn memory(readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Provenance_Cores_FCEU_FCEU_~attic_pc_extr_input.c_FCExp |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/kbdmap/extr_kbdmap.c_do_kbdcontrol.c'
source_filename = "AnghaBench/freebsd/usr.sbin/kbdmap/extr_kbdmap.c_do_kbdcontrol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"kbdcontrol -l %s/%s\00", align 1
@dir = dso_local local_unnamed_addr global i32 0, align 4
@x11 = dso_local local_unnamed_addr global i32 0, align 4
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"keymap=\22%s\22\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @do_kbdcontrol], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @do_kbdcontrol(ptr nocapture noundef readonly %0) #0 {
%2 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%3 = load i32, ptr @dir, align 4, !tbaa !5
%4 = load ptr, ptr %0, align 8, !tbaa !9
%5 = call i32 @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str, i32 noundef %3, ptr noundef %4) #4
%6 = load i32, ptr @x11, align 4, !tbaa !5
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %2, align 8, !tbaa !12
%10 = call i32 @system(ptr noundef %9) #4
br label %11
11: ; preds = %8, %1
%12 = load i32, ptr @stderr, align 4, !tbaa !5
%13 = load ptr, ptr %0, align 8, !tbaa !9
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef nonnull @.str.1, ptr noundef %13) #4
%15 = load ptr, ptr %2, align 8, !tbaa !12
%16 = call i32 @free(ptr noundef %15) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #3
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"keymap", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/kbdmap/extr_kbdmap.c_do_kbdcontrol.c'
source_filename = "AnghaBench/freebsd/usr.sbin/kbdmap/extr_kbdmap.c_do_kbdcontrol.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [20 x i8] c"kbdcontrol -l %s/%s\00", align 1
@dir = common local_unnamed_addr global i32 0, align 4
@x11 = common local_unnamed_addr global i32 0, align 4
@stderr = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"keymap=\22%s\22\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @do_kbdcontrol], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @do_kbdcontrol(ptr nocapture noundef readonly %0) #0 {
%2 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%3 = load i32, ptr @dir, align 4, !tbaa !6
%4 = load ptr, ptr %0, align 8, !tbaa !10
%5 = call i32 @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str, i32 noundef %3, ptr noundef %4) #4
%6 = load i32, ptr @x11, align 4, !tbaa !6
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %2, align 8, !tbaa !13
%10 = call i32 @system(ptr noundef %9) #4
br label %11
11: ; preds = %8, %1
%12 = load i32, ptr @stderr, align 4, !tbaa !6
%13 = load ptr, ptr %0, align 8, !tbaa !10
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef nonnull @.str.1, ptr noundef %13) #4
%15 = load ptr, ptr %2, align 8, !tbaa !13
%16 = call i32 @free(ptr noundef %15) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #3
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nofree "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"keymap", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!12, !12, i64 0}
| freebsd_usr.sbin_kbdmap_extr_kbdmap.c_do_kbdcontrol |
; ModuleID = 'AnghaBench/linux/drivers/infiniband/hw/i40iw/extr_i40iw_verbs.c_i40iw_free_qp_resources.c'
source_filename = "AnghaBench/linux/drivers/infiniband/hw/i40iw/extr_i40iw_verbs.c_i40iw_free_qp_resources.c"
target datalayout = "e-m:e-p270:32:32-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.i40iw_qp = type { ptr, %struct.TYPE_6__, i32, i32, %struct.i40iw_pbl }
%struct.TYPE_6__ = type { ptr, i32 }
%struct.i40iw_pbl = type { i32, i64 }
%struct.i40iw_device = type { %struct.TYPE_5__, i32, i32, %struct.TYPE_4__ }
%struct.TYPE_5__ = type { i32 }
%struct.TYPE_4__ = type { i32 }
; Function Attrs: nounwind uwtable
define dso_local void @i40iw_free_qp_resources(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds %struct.i40iw_qp, ptr %1, i64 0, i32 4
%5 = getelementptr inbounds %struct.i40iw_device, ptr %0, i64 0, i32 3
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = getelementptr inbounds %struct.i40iw_qp, ptr %1, i64 0, i32 3
%8 = tail call i32 @i40iw_ieq_cleanup_qp(i32 noundef %6, ptr noundef nonnull %7) #2
%9 = tail call i32 @i40iw_dealloc_push_page(ptr noundef %0, ptr noundef nonnull %7) #2
%10 = icmp eq i64 %2, 0
br i1 %10, label %15, label %11
11: ; preds = %3
%12 = getelementptr inbounds %struct.i40iw_device, ptr %0, i64 0, i32 2
%13 = load i32, ptr %12, align 4, !tbaa !12
%14 = tail call i32 @i40iw_free_resource(ptr noundef nonnull %0, i32 noundef %13, i64 noundef %2) #2
br label %15
15: ; preds = %11, %3
%16 = getelementptr inbounds %struct.i40iw_qp, ptr %1, i64 0, i32 4, i32 1
%17 = load i64, ptr %16, align 8, !tbaa !13
%18 = icmp eq i64 %17, 0
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = getelementptr inbounds %struct.i40iw_device, ptr %0, i64 0, i32 1
%21 = load i32, ptr %20, align 4, !tbaa !16
%22 = tail call i32 @i40iw_free_pble(i32 noundef %21, ptr noundef nonnull %4) #2
br label %23
23: ; preds = %19, %15
%24 = load i32, ptr %0, align 4, !tbaa !17
%25 = getelementptr inbounds %struct.i40iw_qp, ptr %1, i64 0, i32 2
%26 = tail call i32 @i40iw_free_dma_mem(i32 noundef %24, ptr noundef nonnull %25) #2
%27 = load i32, ptr %0, align 4, !tbaa !17
%28 = getelementptr inbounds %struct.i40iw_qp, ptr %1, i64 0, i32 1
%29 = getelementptr inbounds %struct.i40iw_qp, ptr %1, i64 0, i32 1, i32 1
%30 = tail call i32 @i40iw_free_dma_mem(i32 noundef %27, ptr noundef nonnull %29) #2
%31 = load ptr, ptr %28, align 8, !tbaa !18
%32 = tail call i32 @kfree(ptr noundef %31) #2
store ptr null, ptr %28, align 8, !tbaa !18
%33 = load ptr, ptr %1, align 8, !tbaa !22
%34 = tail call i32 @kfree(ptr noundef %33) #2
ret void
}
declare i32 @i40iw_ieq_cleanup_qp(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @i40iw_dealloc_push_page(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @i40iw_free_resource(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @i40iw_free_pble(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @i40iw_free_dma_mem(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 12}
!6 = !{!"i40iw_device", !7, i64 0, !8, i64 4, !8, i64 8, !11, i64 12}
!7 = !{!"TYPE_5__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_4__", !8, i64 0}
!12 = !{!6, !8, i64 8}
!13 = !{!14, !15, i64 8}
!14 = !{!"i40iw_pbl", !8, i64 0, !15, i64 8}
!15 = !{!"long", !9, i64 0}
!16 = !{!6, !8, i64 4}
!17 = !{!6, !8, i64 0}
!18 = !{!19, !20, i64 8}
!19 = !{!"i40iw_qp", !20, i64 0, !21, i64 8, !8, i64 24, !8, i64 28, !14, i64 32}
!20 = !{!"any pointer", !9, i64 0}
!21 = !{!"TYPE_6__", !20, i64 0, !8, i64 8}
!22 = !{!19, !20, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/infiniband/hw/i40iw/extr_i40iw_verbs.c_i40iw_free_qp_resources.c'
source_filename = "AnghaBench/linux/drivers/infiniband/hw/i40iw/extr_i40iw_verbs.c_i40iw_free_qp_resources.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @i40iw_free_qp_resources(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds i8, ptr %1, i64 32
%5 = getelementptr inbounds i8, ptr %0, i64 12
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = getelementptr inbounds i8, ptr %1, i64 28
%8 = tail call i32 @i40iw_ieq_cleanup_qp(i32 noundef %6, ptr noundef nonnull %7) #2
%9 = tail call i32 @i40iw_dealloc_push_page(ptr noundef %0, ptr noundef nonnull %7) #2
%10 = icmp eq i64 %2, 0
br i1 %10, label %15, label %11
11: ; preds = %3
%12 = getelementptr inbounds i8, ptr %0, i64 8
%13 = load i32, ptr %12, align 4, !tbaa !13
%14 = tail call i32 @i40iw_free_resource(ptr noundef nonnull %0, i32 noundef %13, i64 noundef %2) #2
br label %15
15: ; preds = %11, %3
%16 = getelementptr inbounds i8, ptr %1, i64 40
%17 = load i64, ptr %16, align 8, !tbaa !14
%18 = icmp eq i64 %17, 0
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = getelementptr inbounds i8, ptr %0, i64 4
%21 = load i32, ptr %20, align 4, !tbaa !17
%22 = tail call i32 @i40iw_free_pble(i32 noundef %21, ptr noundef nonnull %4) #2
br label %23
23: ; preds = %19, %15
%24 = load i32, ptr %0, align 4, !tbaa !18
%25 = getelementptr inbounds i8, ptr %1, i64 24
%26 = tail call i32 @i40iw_free_dma_mem(i32 noundef %24, ptr noundef nonnull %25) #2
%27 = load i32, ptr %0, align 4, !tbaa !18
%28 = getelementptr inbounds i8, ptr %1, i64 8
%29 = getelementptr inbounds i8, ptr %1, i64 16
%30 = tail call i32 @i40iw_free_dma_mem(i32 noundef %27, ptr noundef nonnull %29) #2
%31 = load ptr, ptr %28, align 8, !tbaa !19
%32 = tail call i32 @kfree(ptr noundef %31) #2
store ptr null, ptr %28, align 8, !tbaa !19
%33 = load ptr, ptr %1, align 8, !tbaa !23
%34 = tail call i32 @kfree(ptr noundef %33) #2
ret void
}
declare i32 @i40iw_ieq_cleanup_qp(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @i40iw_dealloc_push_page(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @i40iw_free_resource(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @i40iw_free_pble(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @i40iw_free_dma_mem(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 12}
!7 = !{!"i40iw_device", !8, i64 0, !9, i64 4, !9, i64 8, !12, i64 12}
!8 = !{!"TYPE_5__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"TYPE_4__", !9, i64 0}
!13 = !{!7, !9, i64 8}
!14 = !{!15, !16, i64 8}
!15 = !{!"i40iw_pbl", !9, i64 0, !16, i64 8}
!16 = !{!"long", !10, i64 0}
!17 = !{!7, !9, i64 4}
!18 = !{!7, !9, i64 0}
!19 = !{!20, !21, i64 8}
!20 = !{!"i40iw_qp", !21, i64 0, !22, i64 8, !9, i64 24, !9, i64 28, !15, i64 32}
!21 = !{!"any pointer", !10, i64 0}
!22 = !{!"TYPE_6__", !21, i64 0, !9, i64 8}
!23 = !{!20, !21, i64 0}
| linux_drivers_infiniband_hw_i40iw_extr_i40iw_verbs.c_i40iw_free_qp_resources |
; ModuleID = 'AnghaBench/linux/fs/gfs2/extr_rgrp.c_gfs2_rgrp_lvb_valid.c'
source_filename = "AnghaBench/linux/fs/gfs2/extr_rgrp.c_gfs2_rgrp_lvb_valid.c"
target datalayout = "e-m:e-p270:32:32-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.gfs2_rgrpd = type { i64, ptr, ptr, ptr }
%struct.gfs2_rgrp_lvb = type { i64, i64, i64, i64 }
%struct.gfs2_rgrp = type { i64, i64, i64, i64 }
@.str = private unnamed_addr constant [40 x i8] c"GFS2: rgd: %llu lvb flag mismatch %u/%u\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"GFS2: rgd: %llu lvb free mismatch %u/%u\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"GFS2: rgd: %llu lvb dinode mismatch %u/%u\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"GFS2: rgd: %llu lvb igen mismatch %llu/%llu\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @gfs2_rgrp_lvb_valid], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @gfs2_rgrp_lvb_valid(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.gfs2_rgrpd, ptr %0, i64 0, i32 3
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.gfs2_rgrpd, ptr %0, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = load i64, ptr %6, align 8, !tbaa !14
%8 = inttoptr i64 %7 to ptr
%9 = getelementptr inbounds %struct.gfs2_rgrpd, ptr %0, i64 0, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !16
%11 = load i64, ptr %3, align 8, !tbaa !17
%12 = load i64, ptr %8, align 8, !tbaa !19
%13 = icmp eq i64 %11, %12
br i1 %13, label %20, label %14
14: ; preds = %1
%15 = load i64, ptr %0, align 8, !tbaa !21
%16 = tail call i64 @be32_to_cpu(i64 noundef %11) #2
%17 = load i64, ptr %8, align 8, !tbaa !19
%18 = tail call i64 @be32_to_cpu(i64 noundef %17) #2
%19 = tail call i32 @fs_warn(ptr noundef %10, ptr noundef nonnull @.str, i64 noundef %15, i64 noundef %16, i64 noundef %18) #2
br label %20
20: ; preds = %14, %1
%21 = phi i32 [ 0, %14 ], [ 1, %1 ]
%22 = getelementptr inbounds %struct.gfs2_rgrp_lvb, ptr %3, i64 0, i32 1
%23 = load i64, ptr %22, align 8, !tbaa !22
%24 = getelementptr inbounds %struct.gfs2_rgrp, ptr %8, i64 0, i32 1
%25 = load i64, ptr %24, align 8, !tbaa !23
%26 = icmp eq i64 %23, %25
br i1 %26, label %33, label %27
27: ; preds = %20
%28 = load i64, ptr %0, align 8, !tbaa !21
%29 = tail call i64 @be32_to_cpu(i64 noundef %23) #2
%30 = load i64, ptr %24, align 8, !tbaa !23
%31 = tail call i64 @be32_to_cpu(i64 noundef %30) #2
%32 = tail call i32 @fs_warn(ptr noundef %10, ptr noundef nonnull @.str.1, i64 noundef %28, i64 noundef %29, i64 noundef %31) #2
br label %33
33: ; preds = %27, %20
%34 = phi i32 [ 0, %27 ], [ %21, %20 ]
%35 = getelementptr inbounds %struct.gfs2_rgrp_lvb, ptr %3, i64 0, i32 2
%36 = load i64, ptr %35, align 8, !tbaa !24
%37 = getelementptr inbounds %struct.gfs2_rgrp, ptr %8, i64 0, i32 2
%38 = load i64, ptr %37, align 8, !tbaa !25
%39 = icmp eq i64 %36, %38
br i1 %39, label %46, label %40
40: ; preds = %33
%41 = load i64, ptr %0, align 8, !tbaa !21
%42 = tail call i64 @be32_to_cpu(i64 noundef %36) #2
%43 = load i64, ptr %37, align 8, !tbaa !25
%44 = tail call i64 @be32_to_cpu(i64 noundef %43) #2
%45 = tail call i32 @fs_warn(ptr noundef %10, ptr noundef nonnull @.str.2, i64 noundef %41, i64 noundef %42, i64 noundef %44) #2
br label %46
46: ; preds = %40, %33
%47 = phi i32 [ 0, %40 ], [ %34, %33 ]
%48 = getelementptr inbounds %struct.gfs2_rgrp_lvb, ptr %3, i64 0, i32 3
%49 = load i64, ptr %48, align 8, !tbaa !26
%50 = getelementptr inbounds %struct.gfs2_rgrp, ptr %8, i64 0, i32 3
%51 = load i64, ptr %50, align 8, !tbaa !27
%52 = icmp eq i64 %49, %51
br i1 %52, label %59, label %53
53: ; preds = %46
%54 = load i64, ptr %0, align 8, !tbaa !21
%55 = tail call i64 @be64_to_cpu(i64 noundef %49) #2
%56 = load i64, ptr %50, align 8, !tbaa !27
%57 = tail call i64 @be64_to_cpu(i64 noundef %56) #2
%58 = tail call i32 @fs_warn(ptr noundef %10, ptr noundef nonnull @.str.3, i64 noundef %54, i64 noundef %55, i64 noundef %57) #2
br label %59
59: ; preds = %53, %46
%60 = phi i32 [ 0, %53 ], [ %47, %46 ]
ret i32 %60
}
declare i32 @fs_warn(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @be32_to_cpu(i64 noundef) local_unnamed_addr #1
declare i64 @be64_to_cpu(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"gfs2_rgrpd", !7, i64 0, !10, i64 8, !10, 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 16}
!12 = !{!13, !10, i64 0}
!13 = !{!"TYPE_4__", !10, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_3__", !7, i64 0}
!16 = !{!6, !10, i64 8}
!17 = !{!18, !7, i64 0}
!18 = !{!"gfs2_rgrp_lvb", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!19 = !{!20, !7, i64 0}
!20 = !{!"gfs2_rgrp", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!21 = !{!6, !7, i64 0}
!22 = !{!18, !7, i64 8}
!23 = !{!20, !7, i64 8}
!24 = !{!18, !7, i64 16}
!25 = !{!20, !7, i64 16}
!26 = !{!18, !7, i64 24}
!27 = !{!20, !7, i64 24}
| ; ModuleID = 'AnghaBench/linux/fs/gfs2/extr_rgrp.c_gfs2_rgrp_lvb_valid.c'
source_filename = "AnghaBench/linux/fs/gfs2/extr_rgrp.c_gfs2_rgrp_lvb_valid.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [40 x i8] c"GFS2: rgd: %llu lvb flag mismatch %u/%u\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"GFS2: rgd: %llu lvb free mismatch %u/%u\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"GFS2: rgd: %llu lvb dinode mismatch %u/%u\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"GFS2: rgd: %llu lvb igen mismatch %llu/%llu\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @gfs2_rgrp_lvb_valid], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @gfs2_rgrp_lvb_valid(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 24
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = load ptr, ptr %5, align 8, !tbaa !13
%7 = load i64, ptr %6, align 8, !tbaa !15
%8 = inttoptr i64 %7 to ptr
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load ptr, ptr %9, align 8, !tbaa !17
%11 = load i64, ptr %3, align 8, !tbaa !18
%12 = load i64, ptr %8, align 8, !tbaa !20
%13 = icmp eq i64 %11, %12
br i1 %13, label %20, label %14
14: ; preds = %1
%15 = load i64, ptr %0, align 8, !tbaa !22
%16 = tail call i64 @be32_to_cpu(i64 noundef %11) #2
%17 = load i64, ptr %8, align 8, !tbaa !20
%18 = tail call i64 @be32_to_cpu(i64 noundef %17) #2
%19 = tail call i32 @fs_warn(ptr noundef %10, ptr noundef nonnull @.str, i64 noundef %15, i64 noundef %16, i64 noundef %18) #2
br label %20
20: ; preds = %14, %1
%21 = phi i32 [ 0, %14 ], [ 1, %1 ]
%22 = getelementptr inbounds i8, ptr %3, i64 8
%23 = load i64, ptr %22, align 8, !tbaa !23
%24 = getelementptr inbounds i8, ptr %8, i64 8
%25 = load i64, ptr %24, align 8, !tbaa !24
%26 = icmp eq i64 %23, %25
br i1 %26, label %33, label %27
27: ; preds = %20
%28 = load i64, ptr %0, align 8, !tbaa !22
%29 = tail call i64 @be32_to_cpu(i64 noundef %23) #2
%30 = load i64, ptr %24, align 8, !tbaa !24
%31 = tail call i64 @be32_to_cpu(i64 noundef %30) #2
%32 = tail call i32 @fs_warn(ptr noundef %10, ptr noundef nonnull @.str.1, i64 noundef %28, i64 noundef %29, i64 noundef %31) #2
br label %33
33: ; preds = %27, %20
%34 = phi i32 [ 0, %27 ], [ %21, %20 ]
%35 = getelementptr inbounds i8, ptr %3, i64 16
%36 = load i64, ptr %35, align 8, !tbaa !25
%37 = getelementptr inbounds i8, ptr %8, i64 16
%38 = load i64, ptr %37, align 8, !tbaa !26
%39 = icmp eq i64 %36, %38
br i1 %39, label %46, label %40
40: ; preds = %33
%41 = load i64, ptr %0, align 8, !tbaa !22
%42 = tail call i64 @be32_to_cpu(i64 noundef %36) #2
%43 = load i64, ptr %37, align 8, !tbaa !26
%44 = tail call i64 @be32_to_cpu(i64 noundef %43) #2
%45 = tail call i32 @fs_warn(ptr noundef %10, ptr noundef nonnull @.str.2, i64 noundef %41, i64 noundef %42, i64 noundef %44) #2
br label %46
46: ; preds = %40, %33
%47 = phi i32 [ 0, %40 ], [ %34, %33 ]
%48 = getelementptr inbounds i8, ptr %3, i64 24
%49 = load i64, ptr %48, align 8, !tbaa !27
%50 = getelementptr inbounds i8, ptr %8, i64 24
%51 = load i64, ptr %50, align 8, !tbaa !28
%52 = icmp eq i64 %49, %51
br i1 %52, label %59, label %53
53: ; preds = %46
%54 = load i64, ptr %0, align 8, !tbaa !22
%55 = tail call i64 @be64_to_cpu(i64 noundef %49) #2
%56 = load i64, ptr %50, align 8, !tbaa !28
%57 = tail call i64 @be64_to_cpu(i64 noundef %56) #2
%58 = tail call i32 @fs_warn(ptr noundef %10, ptr noundef nonnull @.str.3, i64 noundef %54, i64 noundef %55, i64 noundef %57) #2
br label %59
59: ; preds = %53, %46
%60 = phi i32 [ 0, %53 ], [ %47, %46 ]
ret i32 %60
}
declare i32 @fs_warn(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @be32_to_cpu(i64 noundef) local_unnamed_addr #1
declare i64 @be64_to_cpu(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 24}
!7 = !{!"gfs2_rgrpd", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !11, i64 16}
!13 = !{!14, !11, i64 0}
!14 = !{!"TYPE_4__", !11, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_3__", !8, i64 0}
!17 = !{!7, !11, i64 8}
!18 = !{!19, !8, i64 0}
!19 = !{!"gfs2_rgrp_lvb", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!20 = !{!21, !8, i64 0}
!21 = !{!"gfs2_rgrp", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!22 = !{!7, !8, i64 0}
!23 = !{!19, !8, i64 8}
!24 = !{!21, !8, i64 8}
!25 = !{!19, !8, i64 16}
!26 = !{!21, !8, i64 16}
!27 = !{!19, !8, i64 24}
!28 = !{!21, !8, i64 24}
| linux_fs_gfs2_extr_rgrp.c_gfs2_rgrp_lvb_valid |
; ModuleID = 'AnghaBench/freebsd/contrib/sqlite3/extr_sqlite3.c_vdbeSortAllocUnpacked.c'
source_filename = "AnghaBench/freebsd/contrib/sqlite3/extr_sqlite3.c_vdbeSortAllocUnpacked.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_7__ = type { ptr, ptr }
%struct.TYPE_8__ = type { i64, i32 }
@SQLITE_NOMEM_BKPT = dso_local local_unnamed_addr global i32 0, align 4
@SQLITE_OK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @vdbeSortAllocUnpacked], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @vdbeSortAllocUnpacked(ptr nocapture noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = icmp eq ptr %2, null
br i1 %3, label %4, label %15
4: ; preds = %1
%5 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !10
%7 = load ptr, ptr %6, align 8, !tbaa !11
%8 = tail call ptr @sqlite3VdbeAllocUnpackedRecord(ptr noundef %7) #2
store ptr %8, ptr %0, align 8, !tbaa !5
%9 = icmp eq ptr %8, null
br i1 %9, label %15, label %10
10: ; preds = %4
%11 = load ptr, ptr %5, align 8, !tbaa !10
%12 = load ptr, ptr %11, align 8, !tbaa !11
%13 = load i32, ptr %12, align 4, !tbaa !13
%14 = getelementptr inbounds %struct.TYPE_8__, ptr %8, i64 0, i32 1
store i32 %13, ptr %14, align 8, !tbaa !16
store i64 0, ptr %8, align 8, !tbaa !19
br label %15
15: ; preds = %1, %10, %4
%16 = phi ptr [ @SQLITE_NOMEM_BKPT, %4 ], [ @SQLITE_OK, %10 ], [ @SQLITE_OK, %1 ]
%17 = load i32, ptr %16, align 4, !tbaa !20
ret i32 %17
}
declare ptr @sqlite3VdbeAllocUnpackedRecord(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_7__", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !7, i64 0}
!12 = !{!"TYPE_6__", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_9__", !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !15, i64 8}
!17 = !{!"TYPE_8__", !18, i64 0, !15, i64 8}
!18 = !{!"long", !8, i64 0}
!19 = !{!17, !18, i64 0}
!20 = !{!15, !15, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/sqlite3/extr_sqlite3.c_vdbeSortAllocUnpacked.c'
source_filename = "AnghaBench/freebsd/contrib/sqlite3/extr_sqlite3.c_vdbeSortAllocUnpacked.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SQLITE_NOMEM_BKPT = common local_unnamed_addr global i32 0, align 4
@SQLITE_OK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @vdbeSortAllocUnpacked], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @vdbeSortAllocUnpacked(ptr nocapture noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = icmp eq ptr %2, null
br i1 %3, label %4, label %15
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = tail call ptr @sqlite3VdbeAllocUnpackedRecord(ptr noundef %7) #2
store ptr %8, ptr %0, align 8, !tbaa !6
%9 = icmp eq ptr %8, null
br i1 %9, label %15, label %10
10: ; preds = %4
%11 = load ptr, ptr %5, align 8, !tbaa !11
%12 = load ptr, ptr %11, align 8, !tbaa !12
%13 = load i32, ptr %12, align 4, !tbaa !14
%14 = getelementptr inbounds i8, ptr %8, i64 8
store i32 %13, ptr %14, align 8, !tbaa !17
store i64 0, ptr %8, align 8, !tbaa !20
br label %15
15: ; preds = %1, %10, %4
%16 = phi ptr [ @SQLITE_NOMEM_BKPT, %4 ], [ @SQLITE_OK, %10 ], [ @SQLITE_OK, %1 ]
%17 = load i32, ptr %16, align 4, !tbaa !21
ret i32 %17
}
declare ptr @sqlite3VdbeAllocUnpackedRecord(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_7__", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 8}
!12 = !{!13, !8, i64 0}
!13 = !{!"TYPE_6__", !8, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"TYPE_9__", !16, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!18, !16, i64 8}
!18 = !{!"TYPE_8__", !19, i64 0, !16, i64 8}
!19 = !{!"long", !9, i64 0}
!20 = !{!18, !19, i64 0}
!21 = !{!16, !16, i64 0}
| freebsd_contrib_sqlite3_extr_sqlite3.c_vdbeSortAllocUnpacked |
; ModuleID = 'AnghaBench/linux/kernel/extr_reboot.c_kernel_halt.c'
source_filename = "AnghaBench/linux/kernel/extr_reboot.c_kernel_halt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SYSTEM_HALT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"System halted\0A\00", align 1
@KMSG_DUMP_HALT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @kernel_halt() local_unnamed_addr #0 {
%1 = load i32, ptr @SYSTEM_HALT, align 4, !tbaa !5
%2 = tail call i32 @kernel_shutdown_prepare(i32 noundef %1) #2
%3 = tail call i32 (...) @migrate_to_reboot_cpu() #2
%4 = tail call i32 (...) @syscore_shutdown() #2
%5 = tail call i32 @pr_emerg(ptr noundef nonnull @.str) #2
%6 = load i32, ptr @KMSG_DUMP_HALT, align 4, !tbaa !5
%7 = tail call i32 @kmsg_dump(i32 noundef %6) #2
%8 = tail call i32 (...) @machine_halt() #2
ret void
}
declare i32 @kernel_shutdown_prepare(i32 noundef) local_unnamed_addr #1
declare i32 @migrate_to_reboot_cpu(...) local_unnamed_addr #1
declare i32 @syscore_shutdown(...) local_unnamed_addr #1
declare i32 @pr_emerg(ptr noundef) local_unnamed_addr #1
declare i32 @kmsg_dump(i32 noundef) local_unnamed_addr #1
declare i32 @machine_halt(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/kernel/extr_reboot.c_kernel_halt.c'
source_filename = "AnghaBench/linux/kernel/extr_reboot.c_kernel_halt.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SYSTEM_HALT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"System halted\0A\00", align 1
@KMSG_DUMP_HALT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @kernel_halt() local_unnamed_addr #0 {
%1 = load i32, ptr @SYSTEM_HALT, align 4, !tbaa !6
%2 = tail call i32 @kernel_shutdown_prepare(i32 noundef %1) #2
%3 = tail call i32 @migrate_to_reboot_cpu() #2
%4 = tail call i32 @syscore_shutdown() #2
%5 = tail call i32 @pr_emerg(ptr noundef nonnull @.str) #2
%6 = load i32, ptr @KMSG_DUMP_HALT, align 4, !tbaa !6
%7 = tail call i32 @kmsg_dump(i32 noundef %6) #2
%8 = tail call i32 @machine_halt() #2
ret void
}
declare i32 @kernel_shutdown_prepare(i32 noundef) local_unnamed_addr #1
declare i32 @migrate_to_reboot_cpu(...) local_unnamed_addr #1
declare i32 @syscore_shutdown(...) local_unnamed_addr #1
declare i32 @pr_emerg(ptr noundef) local_unnamed_addr #1
declare i32 @kmsg_dump(i32 noundef) local_unnamed_addr #1
declare i32 @machine_halt(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_kernel_extr_reboot.c_kernel_halt |
; ModuleID = 'AnghaBench/freebsd/contrib/binutils/gas/config/extr_tc-arm.c_do_pkhbt.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/gas/config/extr_tc-arm.c_do_pkhbt.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_4__ = type { i32, ptr }
%struct.TYPE_3__ = type { i32, i64 }
@inst = dso_local local_unnamed_addr global %struct.TYPE_4__ zeroinitializer, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @do_pkhbt], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @do_pkhbt() #0 {
%1 = load ptr, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @inst, i64 0, i32 1), align 8, !tbaa !5
%2 = load i32, ptr %1, align 8, !tbaa !11
%3 = shl i32 %2, 12
%4 = load i32, ptr @inst, align 8, !tbaa !14
%5 = or i32 %4, %3
%6 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 1
%7 = load i32, ptr %6, align 8, !tbaa !11
%8 = shl i32 %7, 16
%9 = or i32 %8, %5
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 2
%11 = load i32, ptr %10, align 8, !tbaa !11
%12 = or i32 %9, %11
store i32 %12, ptr @inst, align 8, !tbaa !14
%13 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 3, i32 1
%14 = load i64, ptr %13, align 8, !tbaa !15
%15 = icmp eq i64 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %0
%17 = tail call i32 @encode_arm_shift(i32 noundef 3) #2
br label %18
18: ; preds = %16, %0
ret void
}
declare i32 @encode_arm_shift(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"TYPE_4__", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"TYPE_3__", !7, i64 0, !13, i64 8}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!12, !13, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/contrib/binutils/gas/config/extr_tc-arm.c_do_pkhbt.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/gas/config/extr_tc-arm.c_do_pkhbt.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i32, ptr }
@inst = common local_unnamed_addr global %struct.TYPE_4__ zeroinitializer, align 8
@llvm.used = appending global [1 x ptr] [ptr @do_pkhbt], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @do_pkhbt() #0 {
%1 = load ptr, ptr getelementptr inbounds (i8, ptr @inst, i64 8), align 8, !tbaa !6
%2 = load i32, ptr %1, align 8, !tbaa !12
%3 = shl i32 %2, 12
%4 = load i32, ptr @inst, align 8, !tbaa !15
%5 = or i32 %4, %3
%6 = getelementptr inbounds i8, ptr %1, i64 16
%7 = load i32, ptr %6, align 8, !tbaa !12
%8 = shl i32 %7, 16
%9 = or i32 %8, %5
%10 = getelementptr inbounds i8, ptr %1, i64 32
%11 = load i32, ptr %10, align 8, !tbaa !12
%12 = or i32 %9, %11
store i32 %12, ptr @inst, align 8, !tbaa !15
%13 = getelementptr inbounds i8, ptr %1, i64 56
%14 = load i64, ptr %13, align 8, !tbaa !16
%15 = icmp eq i64 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %0
%17 = tail call i32 @encode_arm_shift(i32 noundef 3) #2
br label %18
18: ; preds = %16, %0
ret void
}
declare i32 @encode_arm_shift(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"TYPE_4__", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 0}
!13 = !{!"TYPE_3__", !8, i64 0, !14, i64 8}
!14 = !{!"long", !9, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!13, !14, i64 8}
| freebsd_contrib_binutils_gas_config_extr_tc-arm.c_do_pkhbt |
; ModuleID = 'AnghaBench/radare2/libr/asm/arch/arc/gnu/extr_arc-opc.c_arc_test_wb.c'
source_filename = "AnghaBench/radare2/libr/asm/arch/arc/gnu/extr_arc-opc.c_arc_test_wb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@addrwb_p = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i32 @arc_test_wb() local_unnamed_addr #0 {
%1 = load i32, ptr @addrwb_p, align 4, !tbaa !5
ret i32 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/radare2/libr/asm/arch/arc/gnu/extr_arc-opc.c_arc_test_wb.c'
source_filename = "AnghaBench/radare2/libr/asm/arch/arc/gnu/extr_arc-opc.c_arc_test_wb.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@addrwb_p = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define i32 @arc_test_wb() local_unnamed_addr #0 {
%1 = load i32, ptr @addrwb_p, align 4, !tbaa !6
ret i32 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| radare2_libr_asm_arch_arc_gnu_extr_arc-opc.c_arc_test_wb |
; ModuleID = 'AnghaBench/linux/drivers/infiniband/core/extr_ucma.c_ucma_open.c'
source_filename = "AnghaBench/linux/drivers/infiniband/core/extr_ucma.c_ucma_open.c"
target datalayout = "e-m:e-p270:32:32-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.ucma_file = type { ptr, i32, i32, i32, i32, i32 }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"ucma_close_id\00", align 1
@WQ_MEM_RECLAIM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ucma_open], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ucma_open(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%4 = tail call ptr @kmalloc(i32 noundef 32, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%8 = sub nsw i32 0, %7
br label %28
9: ; preds = %2
%10 = load i32, ptr @WQ_MEM_RECLAIM, align 4, !tbaa !5
%11 = tail call i32 @alloc_ordered_workqueue(ptr noundef nonnull @.str, i32 noundef %10) #2
%12 = getelementptr inbounds %struct.ucma_file, ptr %4, i64 0, i32 5
store i32 %11, ptr %12, align 8, !tbaa !9
%13 = icmp eq i32 %11, 0
br i1 %13, label %14, label %18
14: ; preds = %9
%15 = tail call i32 @kfree(ptr noundef nonnull %4) #2
%16 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%17 = sub nsw i32 0, %16
br label %28
18: ; preds = %9
%19 = getelementptr inbounds %struct.ucma_file, ptr %4, i64 0, i32 4
%20 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %19) #2
%21 = getelementptr inbounds %struct.ucma_file, ptr %4, i64 0, i32 3
%22 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %21) #2
%23 = getelementptr inbounds %struct.ucma_file, ptr %4, i64 0, i32 2
%24 = tail call i32 @init_waitqueue_head(ptr noundef nonnull %23) #2
%25 = getelementptr inbounds %struct.ucma_file, ptr %4, i64 0, i32 1
%26 = tail call i32 @mutex_init(ptr noundef nonnull %25) #2
store ptr %4, ptr %1, align 8, !tbaa !12
store ptr %1, ptr %4, align 8, !tbaa !14
%27 = tail call i32 @stream_open(ptr noundef %0, ptr noundef nonnull %1) #2
br label %28
28: ; preds = %18, %14, %6
%29 = phi i32 [ %27, %18 ], [ %17, %14 ], [ %8, %6 ]
ret i32 %29
}
declare ptr @kmalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @alloc_ordered_workqueue(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @INIT_LIST_HEAD(ptr noundef) local_unnamed_addr #1
declare i32 @init_waitqueue_head(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_init(ptr noundef) local_unnamed_addr #1
declare i32 @stream_open(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"ucma_file", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"file", !11, i64 0}
!14 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/infiniband/core/extr_ucma.c_ucma_open.c'
source_filename = "AnghaBench/linux/drivers/infiniband/core/extr_ucma.c_ucma_open.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"ucma_close_id\00", align 1
@WQ_MEM_RECLAIM = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ucma_open], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ucma_open(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%4 = tail call ptr @kmalloc(i32 noundef 32, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%8 = sub nsw i32 0, %7
br label %28
9: ; preds = %2
%10 = load i32, ptr @WQ_MEM_RECLAIM, align 4, !tbaa !6
%11 = tail call i32 @alloc_ordered_workqueue(ptr noundef nonnull @.str, i32 noundef %10) #2
%12 = getelementptr inbounds i8, ptr %4, i64 24
store i32 %11, ptr %12, align 8, !tbaa !10
%13 = icmp eq i32 %11, 0
br i1 %13, label %14, label %18
14: ; preds = %9
%15 = tail call i32 @kfree(ptr noundef nonnull %4) #2
%16 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%17 = sub nsw i32 0, %16
br label %28
18: ; preds = %9
%19 = getelementptr inbounds i8, ptr %4, i64 20
%20 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %19) #2
%21 = getelementptr inbounds i8, ptr %4, i64 16
%22 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %21) #2
%23 = getelementptr inbounds i8, ptr %4, i64 12
%24 = tail call i32 @init_waitqueue_head(ptr noundef nonnull %23) #2
%25 = getelementptr inbounds i8, ptr %4, i64 8
%26 = tail call i32 @mutex_init(ptr noundef nonnull %25) #2
store ptr %4, ptr %1, align 8, !tbaa !13
store ptr %1, ptr %4, align 8, !tbaa !15
%27 = tail call i32 @stream_open(ptr noundef %0, ptr noundef nonnull %1) #2
br label %28
28: ; preds = %18, %14, %6
%29 = phi i32 [ %27, %18 ], [ %17, %14 ], [ %8, %6 ]
ret i32 %29
}
declare ptr @kmalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @alloc_ordered_workqueue(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @INIT_LIST_HEAD(ptr noundef) local_unnamed_addr #1
declare i32 @init_waitqueue_head(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_init(ptr noundef) local_unnamed_addr #1
declare i32 @stream_open(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 24}
!11 = !{!"ucma_file", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"file", !12, i64 0}
!15 = !{!11, !12, i64 0}
| linux_drivers_infiniband_core_extr_ucma.c_ucma_open |
; ModuleID = 'AnghaBench/freebsd/sys/dev/qlnx/qlnxe/extr_ecore_dev.c_ecore_llh_dump_ppfid.c'
source_filename = "AnghaBench/freebsd/sys/dev/qlnx/qlnxe/extr_ecore_dev.c_ecore_llh_dump_ppfid.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@OSAL_NULL = dso_local local_unnamed_addr global ptr null, align 8
@ECORE_AGAIN = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ecore_llh_dump_ppfid(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call ptr @ECORE_LEADING_HWFN(ptr noundef %0) #2
%4 = tail call ptr @ecore_ptt_acquire(ptr noundef %3) #2
%5 = load ptr, ptr @OSAL_NULL, align 8, !tbaa !5
%6 = icmp eq ptr %4, %5
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i32, ptr @ECORE_AGAIN, align 4, !tbaa !9
br label %19
9: ; preds = %2
%10 = tail call i64 @ECORE_IS_E4(ptr noundef %0) #2
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = tail call i32 @ecore_llh_dump_ppfid_e4(ptr noundef %3, ptr noundef %4, i32 noundef %1) #2
br label %16
14: ; preds = %9
%15 = tail call i32 @ecore_llh_dump_ppfid_e5(ptr noundef %3, ptr noundef %4, i32 noundef %1) #2
br label %16
16: ; preds = %14, %12
%17 = phi i32 [ %13, %12 ], [ %15, %14 ]
%18 = tail call i32 @ecore_ptt_release(ptr noundef %3, ptr noundef %4) #2
br label %19
19: ; preds = %16, %7
%20 = phi i32 [ %8, %7 ], [ %17, %16 ]
ret i32 %20
}
declare ptr @ECORE_LEADING_HWFN(ptr noundef) local_unnamed_addr #1
declare ptr @ecore_ptt_acquire(ptr noundef) local_unnamed_addr #1
declare i64 @ECORE_IS_E4(ptr noundef) local_unnamed_addr #1
declare i32 @ecore_llh_dump_ppfid_e4(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ecore_llh_dump_ppfid_e5(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ecore_ptt_release(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/qlnx/qlnxe/extr_ecore_dev.c_ecore_llh_dump_ppfid.c'
source_filename = "AnghaBench/freebsd/sys/dev/qlnx/qlnxe/extr_ecore_dev.c_ecore_llh_dump_ppfid.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OSAL_NULL = common local_unnamed_addr global ptr null, align 8
@ECORE_AGAIN = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ecore_llh_dump_ppfid(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call ptr @ECORE_LEADING_HWFN(ptr noundef %0) #2
%4 = tail call ptr @ecore_ptt_acquire(ptr noundef %3) #2
%5 = load ptr, ptr @OSAL_NULL, align 8, !tbaa !6
%6 = icmp eq ptr %4, %5
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i32, ptr @ECORE_AGAIN, align 4, !tbaa !10
br label %19
9: ; preds = %2
%10 = tail call i64 @ECORE_IS_E4(ptr noundef %0) #2
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = tail call i32 @ecore_llh_dump_ppfid_e4(ptr noundef %3, ptr noundef %4, i32 noundef %1) #2
br label %16
14: ; preds = %9
%15 = tail call i32 @ecore_llh_dump_ppfid_e5(ptr noundef %3, ptr noundef %4, i32 noundef %1) #2
br label %16
16: ; preds = %14, %12
%17 = phi i32 [ %13, %12 ], [ %15, %14 ]
%18 = tail call i32 @ecore_ptt_release(ptr noundef %3, ptr noundef %4) #2
br label %19
19: ; preds = %16, %7
%20 = phi i32 [ %8, %7 ], [ %17, %16 ]
ret i32 %20
}
declare ptr @ECORE_LEADING_HWFN(ptr noundef) local_unnamed_addr #1
declare ptr @ecore_ptt_acquire(ptr noundef) local_unnamed_addr #1
declare i64 @ECORE_IS_E4(ptr noundef) local_unnamed_addr #1
declare i32 @ecore_llh_dump_ppfid_e4(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ecore_llh_dump_ppfid_e5(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ecore_ptt_release(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| freebsd_sys_dev_qlnx_qlnxe_extr_ecore_dev.c_ecore_llh_dump_ppfid |
; ModuleID = 'AnghaBench/RetroArch/deps/mbedtls/extr_ssl_srv.c_mbedtls_ssl_set_client_transport_id.c'
source_filename = "AnghaBench/RetroArch/deps/mbedtls/extr_ssl_srv.c_mbedtls_ssl_set_client_transport_id.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_5__ = type { i64, ptr, ptr }
@MBEDTLS_SSL_IS_SERVER = dso_local local_unnamed_addr global i64 0, align 8
@MBEDTLS_ERR_SSL_BAD_INPUT_DATA = dso_local local_unnamed_addr global i32 0, align 4
@MBEDTLS_ERR_SSL_ALLOC_FAILED = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_ssl_set_client_transport_id(ptr nocapture noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = load i64, ptr %5, align 8, !tbaa !11
%7 = load i64, ptr @MBEDTLS_SSL_IS_SERVER, align 8, !tbaa !13
%8 = icmp eq i64 %6, %7
br i1 %8, label %11, label %9
9: ; preds = %3
%10 = load i32, ptr @MBEDTLS_ERR_SSL_BAD_INPUT_DATA, align 4, !tbaa !14
br label %21
11: ; preds = %3
%12 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
%13 = load ptr, ptr %12, align 8, !tbaa !16
%14 = tail call i32 @mbedtls_free(ptr noundef %13) #2
%15 = tail call ptr @mbedtls_calloc(i32 noundef 1, i64 noundef %2) #2
store ptr %15, ptr %12, align 8, !tbaa !16
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = load i32, ptr @MBEDTLS_ERR_SSL_ALLOC_FAILED, align 4, !tbaa !14
br label %21
19: ; preds = %11
%20 = tail call i32 @memcpy(ptr noundef nonnull %15, ptr noundef %1, i64 noundef %2) #2
store i64 %2, ptr %0, align 8, !tbaa !17
br label %21
21: ; preds = %19, %17, %9
%22 = phi i32 [ %10, %9 ], [ %18, %17 ], [ 0, %19 ]
ret i32 %22
}
declare i32 @mbedtls_free(ptr noundef) local_unnamed_addr #1
declare ptr @mbedtls_calloc(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 16}
!6 = !{!"TYPE_5__", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"TYPE_4__", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!6, !10, i64 8}
!17 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/RetroArch/deps/mbedtls/extr_ssl_srv.c_mbedtls_ssl_set_client_transport_id.c'
source_filename = "AnghaBench/RetroArch/deps/mbedtls/extr_ssl_srv.c_mbedtls_ssl_set_client_transport_id.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MBEDTLS_SSL_IS_SERVER = common local_unnamed_addr global i64 0, align 8
@MBEDTLS_ERR_SSL_BAD_INPUT_DATA = common local_unnamed_addr global i32 0, align 4
@MBEDTLS_ERR_SSL_ALLOC_FAILED = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @mbedtls_ssl_set_client_transport_id(ptr nocapture noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = load i64, ptr %5, align 8, !tbaa !12
%7 = load i64, ptr @MBEDTLS_SSL_IS_SERVER, align 8, !tbaa !14
%8 = icmp eq i64 %6, %7
br i1 %8, label %11, label %9
9: ; preds = %3
%10 = load i32, ptr @MBEDTLS_ERR_SSL_BAD_INPUT_DATA, align 4, !tbaa !15
br label %21
11: ; preds = %3
%12 = getelementptr inbounds i8, ptr %0, i64 8
%13 = load ptr, ptr %12, align 8, !tbaa !17
%14 = tail call i32 @mbedtls_free(ptr noundef %13) #2
%15 = tail call ptr @mbedtls_calloc(i32 noundef 1, i64 noundef %2) #2
store ptr %15, ptr %12, align 8, !tbaa !17
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = load i32, ptr @MBEDTLS_ERR_SSL_ALLOC_FAILED, align 4, !tbaa !15
br label %21
19: ; preds = %11
%20 = tail call i32 @memcpy(ptr noundef nonnull %15, ptr noundef %1, i64 noundef %2) #2
store i64 %2, ptr %0, align 8, !tbaa !18
br label %21
21: ; preds = %19, %17, %9
%22 = phi i32 [ %10, %9 ], [ %18, %17 ], [ 0, %19 ]
ret i32 %22
}
declare i32 @mbedtls_free(ptr noundef) local_unnamed_addr #1
declare ptr @mbedtls_calloc(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 16}
!7 = !{!"TYPE_5__", !8, i64 0, !11, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 0}
!13 = !{!"TYPE_4__", !8, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!7, !11, i64 8}
!18 = !{!7, !8, i64 0}
| RetroArch_deps_mbedtls_extr_ssl_srv.c_mbedtls_ssl_set_client_transport_id |
; ModuleID = 'AnghaBench/zfs/module/os/linux/zfs/extr_abd.c_abd_chunkcnt_for_bytes.c'
source_filename = "AnghaBench/zfs/module/os/linux/zfs/extr_abd.c_abd_chunkcnt_for_bytes.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PAGESIZE = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @abd_chunkcnt_for_bytes], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i64 @abd_chunkcnt_for_bytes(i64 noundef %0) #0 {
%2 = load i64, ptr @PAGESIZE, align 8, !tbaa !5
%3 = tail call i64 @P2ROUNDUP(i64 noundef %0, i64 noundef %2) #2
%4 = load i64, ptr @PAGESIZE, align 8, !tbaa !5
%5 = udiv i64 %3, %4
ret i64 %5
}
declare i64 @P2ROUNDUP(i64 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/zfs/module/os/linux/zfs/extr_abd.c_abd_chunkcnt_for_bytes.c'
source_filename = "AnghaBench/zfs/module/os/linux/zfs/extr_abd.c_abd_chunkcnt_for_bytes.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGESIZE = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @abd_chunkcnt_for_bytes], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i64 @abd_chunkcnt_for_bytes(i64 noundef %0) #0 {
%2 = load i64, ptr @PAGESIZE, align 8, !tbaa !6
%3 = tail call i64 @P2ROUNDUP(i64 noundef %0, i64 noundef %2) #2
%4 = load i64, ptr @PAGESIZE, align 8, !tbaa !6
%5 = udiv i64 %3, %4
ret i64 %5
}
declare i64 @P2ROUNDUP(i64 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| zfs_module_os_linux_zfs_extr_abd.c_abd_chunkcnt_for_bytes |
; ModuleID = 'AnghaBench/numpy/numpy/random/src/pcg64/extr_pcg64.orig.h_pcg_setseq_32_advance_r.c'
source_filename = "AnghaBench/numpy/numpy/random/src/pcg64/extr_pcg64.orig.h_pcg_setseq_32_advance_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PCG_DEFAULT_MULTIPLIER_32 = dso_local local_unnamed_addr global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/numpy/numpy/random/src/pcg64/extr_pcg64.orig.h_pcg_setseq_32_advance_r.c'
source_filename = "AnghaBench/numpy/numpy/random/src/pcg64/extr_pcg64.orig.h_pcg_setseq_32_advance_r.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCG_DEFAULT_MULTIPLIER_32 = common local_unnamed_addr global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| numpy_numpy_random_src_pcg64_extr_pcg64.orig.h_pcg_setseq_32_advance_r |
; ModuleID = 'AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-417.c_vidioc_enum_fmt_vid_cap.c'
source_filename = "AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-417.c_vidioc_enum_fmt_vid_cap.c"
target datalayout = "e-m:e-p270:32:32-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.v4l2_fmtdesc = type { i64, i32 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@V4L2_PIX_FMT_MPEG = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @vidioc_enum_fmt_vid_cap], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define internal i32 @vidioc_enum_fmt_vid_cap(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture noundef %2) #0 {
%4 = load i64, ptr %2, align 8, !tbaa !5
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load i32, ptr @EINVAL, align 4, !tbaa !11
%8 = sub nsw i32 0, %7
br label %12
9: ; preds = %3
%10 = load i32, ptr @V4L2_PIX_FMT_MPEG, align 4, !tbaa !11
%11 = getelementptr inbounds %struct.v4l2_fmtdesc, ptr %2, i64 0, i32 1
store i32 %10, ptr %11, align 8, !tbaa !12
br label %12
12: ; preds = %9, %6
%13 = phi i32 [ %8, %6 ], [ 0, %9 ]
ret i32 %13
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: 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" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"v4l2_fmtdesc", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-417.c_vidioc_enum_fmt_vid_cap.c'
source_filename = "AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-417.c_vidioc_enum_fmt_vid_cap.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@V4L2_PIX_FMT_MPEG = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @vidioc_enum_fmt_vid_cap], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @vidioc_enum_fmt_vid_cap(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture noundef %2) #0 {
%4 = load i64, ptr %2, align 8, !tbaa !6
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load i32, ptr @EINVAL, align 4, !tbaa !12
%8 = sub nsw i32 0, %7
br label %12
9: ; preds = %3
%10 = load i32, ptr @V4L2_PIX_FMT_MPEG, align 4, !tbaa !12
%11 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %10, ptr %11, align 8, !tbaa !13
br label %12
12: ; preds = %9, %6
%13 = phi i32 [ %8, %6 ], [ 0, %9 ]
ret i32 %13
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"v4l2_fmtdesc", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!7, !11, i64 8}
| linux_drivers_media_usb_cx231xx_extr_cx231xx-417.c_vidioc_enum_fmt_vid_cap |
; ModuleID = 'AnghaBench/linux/crypto/extr_simd.c_simd_skcipher_decrypt.c'
source_filename = "AnghaBench/linux/crypto/extr_simd.c_simd_skcipher_decrypt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @simd_skcipher_decrypt], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @simd_skcipher_decrypt(ptr noundef %0) #0 {
%2 = tail call ptr @crypto_skcipher_reqtfm(ptr noundef %0) #2
%3 = tail call ptr @crypto_skcipher_ctx(ptr noundef %2) #2
%4 = tail call ptr @skcipher_request_ctx(ptr noundef %0) #2
%5 = load i32, ptr %0, align 4, !tbaa !5
store i32 %5, ptr %4, align 4, !tbaa !5
%6 = tail call i32 (...) @crypto_simd_usable() #2
%7 = icmp eq i32 %6, 0
br i1 %7, label %15, label %8
8: ; preds = %1
%9 = tail call i64 (...) @in_atomic() #2
%10 = icmp eq i64 %9, 0
br i1 %10, label %17, label %11
11: ; preds = %8
%12 = load ptr, ptr %3, align 8, !tbaa !9
%13 = tail call i64 @cryptd_skcipher_queued(ptr noundef %12) #2
%14 = icmp eq i64 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %11, %1
%16 = load ptr, ptr %3, align 8, !tbaa !9
br label %20
17: ; preds = %11, %8
%18 = load ptr, ptr %3, align 8, !tbaa !9
%19 = tail call ptr @cryptd_skcipher_child(ptr noundef %18) #2
br label %20
20: ; preds = %17, %15
%21 = phi ptr [ %16, %15 ], [ %19, %17 ]
%22 = tail call i32 @skcipher_request_set_tfm(ptr noundef nonnull %4, ptr noundef %21) #2
%23 = tail call i32 @crypto_skcipher_decrypt(ptr noundef nonnull %4) #2
ret i32 %23
}
declare ptr @crypto_skcipher_reqtfm(ptr noundef) local_unnamed_addr #1
declare ptr @crypto_skcipher_ctx(ptr noundef) local_unnamed_addr #1
declare ptr @skcipher_request_ctx(ptr noundef) local_unnamed_addr #1
declare i32 @crypto_simd_usable(...) local_unnamed_addr #1
declare i64 @in_atomic(...) local_unnamed_addr #1
declare i64 @cryptd_skcipher_queued(ptr noundef) local_unnamed_addr #1
declare ptr @cryptd_skcipher_child(ptr noundef) local_unnamed_addr #1
declare i32 @skcipher_request_set_tfm(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @crypto_skcipher_decrypt(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"simd_skcipher_ctx", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/crypto/extr_simd.c_simd_skcipher_decrypt.c'
source_filename = "AnghaBench/linux/crypto/extr_simd.c_simd_skcipher_decrypt.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @simd_skcipher_decrypt], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @simd_skcipher_decrypt(ptr noundef %0) #0 {
%2 = tail call ptr @crypto_skcipher_reqtfm(ptr noundef %0) #2
%3 = tail call ptr @crypto_skcipher_ctx(ptr noundef %2) #2
%4 = tail call ptr @skcipher_request_ctx(ptr noundef %0) #2
%5 = load i32, ptr %0, align 4, !tbaa !6
store i32 %5, ptr %4, align 4, !tbaa !6
%6 = tail call i32 @crypto_simd_usable() #2
%7 = icmp eq i32 %6, 0
br i1 %7, label %15, label %8
8: ; preds = %1
%9 = tail call i64 @in_atomic() #2
%10 = icmp eq i64 %9, 0
br i1 %10, label %17, label %11
11: ; preds = %8
%12 = load ptr, ptr %3, align 8, !tbaa !10
%13 = tail call i64 @cryptd_skcipher_queued(ptr noundef %12) #2
%14 = icmp eq i64 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %11, %1
%16 = load ptr, ptr %3, align 8, !tbaa !10
br label %20
17: ; preds = %11, %8
%18 = load ptr, ptr %3, align 8, !tbaa !10
%19 = tail call ptr @cryptd_skcipher_child(ptr noundef %18) #2
br label %20
20: ; preds = %17, %15
%21 = phi ptr [ %16, %15 ], [ %19, %17 ]
%22 = tail call i32 @skcipher_request_set_tfm(ptr noundef nonnull %4, ptr noundef %21) #2
%23 = tail call i32 @crypto_skcipher_decrypt(ptr noundef nonnull %4) #2
ret i32 %23
}
declare ptr @crypto_skcipher_reqtfm(ptr noundef) local_unnamed_addr #1
declare ptr @crypto_skcipher_ctx(ptr noundef) local_unnamed_addr #1
declare ptr @skcipher_request_ctx(ptr noundef) local_unnamed_addr #1
declare i32 @crypto_simd_usable(...) local_unnamed_addr #1
declare i64 @in_atomic(...) local_unnamed_addr #1
declare i64 @cryptd_skcipher_queued(ptr noundef) local_unnamed_addr #1
declare ptr @cryptd_skcipher_child(ptr noundef) local_unnamed_addr #1
declare i32 @skcipher_request_set_tfm(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @crypto_skcipher_decrypt(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"simd_skcipher_ctx", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| linux_crypto_extr_simd.c_simd_skcipher_decrypt |
; ModuleID = 'AnghaBench/linux/sound/pci/mixart/extr_mixart.c_snd_mixart_capture_open.c'
source_filename = "AnghaBench/linux/sound/pci/mixart/extr_mixart.c_snd_mixart_capture_open.c"
target datalayout = "e-m:e-p270:32:32-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.TYPE_5__ = type { i32, i64, i64 }
%struct.snd_pcm_substream = type { i32, ptr, ptr }
%struct.snd_mixart = type { ptr, ptr, i32, ptr, ptr, ptr }
%struct.mixart_stream = type { i64, i32, i64, ptr, ptr }
%struct.snd_pcm_runtime = type { %struct.TYPE_5__, ptr }
%struct.mixart_mgr = type { i32, i64, i32 }
@MIXART_PCM_ANALOG = dso_local local_unnamed_addr global i32 0, align 4
@snd_mixart_analog_caps = dso_local local_unnamed_addr global %struct.TYPE_5__ zeroinitializer, align 8
@MIXART_PCM_DIGITAL = dso_local local_unnamed_addr global i32 0, align 4
@snd_mixart_digital_caps = dso_local local_unnamed_addr global %struct.TYPE_5__ zeroinitializer, align 8
@.str = private unnamed_addr constant [39 x i8] c"snd_mixart_capture_open C%d/P%d/Sub%d\0A\00", align 1
@MIXART_STREAM_STATUS_FREE = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [46 x i8] c"snd_mixart_capture_open C%d/P%d/Sub%d in use\0A\00", align 1
@EBUSY = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"error starting pipe!\0A\00", align 1
@MIXART_STREAM_STATUS_OPEN = dso_local local_unnamed_addr global i64 0, align 8
@SNDRV_PCM_HW_PARAM_PERIOD_BYTES = dso_local local_unnamed_addr global i32 0, align 4
@SNDRV_PCM_HW_PARAM_BUFFER_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_mixart_capture_open], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @snd_mixart_capture_open(ptr noundef %0) #0 {
%2 = tail call ptr @snd_pcm_substream_chip(ptr noundef %0) #3
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.snd_pcm_substream, ptr %0, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = getelementptr inbounds %struct.snd_pcm_substream, ptr %0, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = tail call i32 @mutex_lock(ptr noundef %3) #3
%9 = getelementptr inbounds %struct.snd_mixart, ptr %2, i64 0, i32 5
%10 = load ptr, ptr %9, align 8, !tbaa !14
%11 = icmp eq ptr %7, %10
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = load i32, ptr @MIXART_PCM_ANALOG, align 4, !tbaa !15
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) @snd_mixart_analog_caps, i64 24, i1 false), !tbaa.struct !16
br label %21
14: ; preds = %1
%15 = getelementptr inbounds %struct.snd_mixart, ptr %2, i64 0, i32 4
%16 = load ptr, ptr %15, align 8, !tbaa !19
%17 = icmp ne ptr %7, %16
%18 = zext i1 %17 to i32
%19 = tail call i32 @snd_BUG_ON(i32 noundef %18) #3
%20 = load i32, ptr @MIXART_PCM_DIGITAL, align 4, !tbaa !15
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) @snd_mixart_digital_caps, i64 24, i1 false), !tbaa.struct !16
br label %21
21: ; preds = %14, %12
%22 = phi i32 [ %13, %12 ], [ %20, %14 ]
store i32 2, ptr %5, align 8, !tbaa !20
%23 = getelementptr inbounds %struct.snd_mixart, ptr %2, i64 0, i32 1
%24 = load ptr, ptr %23, align 8, !tbaa !23
%25 = load i32, ptr %24, align 4, !tbaa !24
%26 = getelementptr inbounds %struct.snd_mixart, ptr %2, i64 0, i32 2
%27 = load i32, ptr %26, align 8, !tbaa !26
%28 = load i32, ptr %0, align 8, !tbaa !27
%29 = tail call i32 @dev_dbg(i32 noundef %25, ptr noundef nonnull @.str, i32 noundef %27, i32 noundef %22, i32 noundef %28) #3
%30 = getelementptr inbounds %struct.snd_mixart, ptr %2, i64 0, i32 3
%31 = load ptr, ptr %30, align 8, !tbaa !28
%32 = sext i32 %22 to i64
%33 = getelementptr inbounds %struct.mixart_stream, ptr %31, i64 %32
%34 = load i64, ptr %33, align 8, !tbaa !29
%35 = load i64, ptr @MIXART_STREAM_STATUS_FREE, align 8, !tbaa !17
%36 = icmp eq i64 %34, %35
br i1 %36, label %45, label %37
37: ; preds = %21
%38 = load ptr, ptr %23, align 8, !tbaa !23
%39 = load i32, ptr %38, align 4, !tbaa !24
%40 = load i32, ptr %26, align 8, !tbaa !26
%41 = load i32, ptr %0, align 8, !tbaa !27
%42 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %39, ptr noundef nonnull @.str.1, i32 noundef %40, i32 noundef %22, i32 noundef %41) #3
%43 = load i32, ptr @EBUSY, align 4, !tbaa !15
%44 = sub nsw i32 0, %43
br label %85
45: ; preds = %21
%46 = tail call ptr @snd_mixart_add_ref_pipe(ptr noundef nonnull %2, i32 noundef %22, i32 noundef 1, i32 noundef 0) #3
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, ptr @EINVAL, align 4, !tbaa !15
%50 = sub nsw i32 0, %49
br label %85
51: ; preds = %45
%52 = load ptr, ptr %2, align 8, !tbaa !5
%53 = tail call i32 @mixart_set_pipe_state(ptr noundef %52, ptr noundef nonnull %46, i32 noundef 1) #3
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %51
%56 = load ptr, ptr %23, align 8, !tbaa !23
%57 = load i32, ptr %56, align 4, !tbaa !24
%58 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %57, ptr noundef nonnull @.str.2) #3
%59 = load ptr, ptr %2, align 8, !tbaa !5
%60 = tail call i32 @snd_mixart_kill_ref_pipe(ptr noundef %59, ptr noundef nonnull %46, i32 noundef 0) #3
%61 = load i32, ptr @EINVAL, align 4, !tbaa !15
%62 = sub nsw i32 0, %61
br label %85
63: ; preds = %51
%64 = getelementptr inbounds %struct.mixart_stream, ptr %31, i64 %32, i32 4
store ptr %46, ptr %64, align 8, !tbaa !31
%65 = getelementptr inbounds %struct.mixart_stream, ptr %31, i64 %32, i32 1
store i32 %22, ptr %65, align 8, !tbaa !32
%66 = load i64, ptr @MIXART_STREAM_STATUS_OPEN, align 8, !tbaa !17
store i64 %66, ptr %33, align 8, !tbaa !29
%67 = getelementptr inbounds %struct.mixart_stream, ptr %31, i64 %32, i32 3
store ptr %0, ptr %67, align 8, !tbaa !33
%68 = getelementptr inbounds %struct.mixart_stream, ptr %31, i64 %32, i32 2
store i64 0, ptr %68, align 8, !tbaa !34
%69 = getelementptr inbounds %struct.snd_pcm_runtime, ptr %5, i64 0, i32 1
store ptr %33, ptr %69, align 8, !tbaa !35
%70 = load i32, ptr @SNDRV_PCM_HW_PARAM_PERIOD_BYTES, align 4, !tbaa !15
%71 = tail call i32 @snd_pcm_hw_constraint_step(ptr noundef nonnull %5, i32 noundef 0, i32 noundef %70, i32 noundef 32) #3
%72 = load i32, ptr @SNDRV_PCM_HW_PARAM_BUFFER_SIZE, align 4, !tbaa !15
%73 = tail call i32 @snd_pcm_hw_constraint_step(ptr noundef nonnull %5, i32 noundef 0, i32 noundef %72, i32 noundef 64) #3
%74 = getelementptr inbounds %struct.mixart_mgr, ptr %3, i64 0, i32 2
%75 = load i32, ptr %74, align 8, !tbaa !36
%76 = add nsw i32 %75, 1
store i32 %76, ptr %74, align 8, !tbaa !36
%77 = icmp eq i32 %75, 0
br i1 %77, label %85, label %78
78: ; preds = %63
%79 = getelementptr inbounds %struct.mixart_mgr, ptr %3, i64 0, i32 1
%80 = load i64, ptr %79, align 8, !tbaa !38
%81 = icmp eq i64 %80, 0
br i1 %81, label %85, label %82
82: ; preds = %78
%83 = getelementptr inbounds %struct.TYPE_5__, ptr %5, i64 0, i32 1
store i64 %80, ptr %83, align 8, !tbaa !39
%84 = getelementptr inbounds %struct.TYPE_5__, ptr %5, i64 0, i32 2
store i64 %80, ptr %84, align 8, !tbaa !40
br label %85
85: ; preds = %63, %82, %78, %55, %48, %37
%86 = phi i32 [ %44, %37 ], [ %50, %48 ], [ %62, %55 ], [ %53, %82 ], [ %53, %78 ], [ %53, %63 ]
%87 = tail call i32 @mutex_unlock(ptr noundef %3) #3
ret i32 %86
}
declare ptr @snd_pcm_substream_chip(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @snd_BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare ptr @snd_mixart_add_ref_pipe(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mixart_set_pipe_state(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_mixart_kill_ref_pipe(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_pcm_hw_constraint_step(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"snd_mixart", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 16}
!12 = !{!"snd_pcm_substream", !10, i64 0, !7, i64 8, !7, i64 16}
!13 = !{!12, !7, i64 8}
!14 = !{!6, !7, i64 40}
!15 = !{!10, !10, i64 0}
!16 = !{i64 0, i64 4, !15, i64 8, i64 8, !17, i64 16, i64 8, !17}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = !{!6, !7, i64 32}
!20 = !{!21, !10, i64 0}
!21 = !{!"snd_pcm_runtime", !22, i64 0, !7, i64 24}
!22 = !{!"TYPE_5__", !10, i64 0, !18, i64 8, !18, i64 16}
!23 = !{!6, !7, i64 8}
!24 = !{!25, !10, i64 0}
!25 = !{!"TYPE_4__", !10, i64 0}
!26 = !{!6, !10, i64 16}
!27 = !{!12, !10, i64 0}
!28 = !{!6, !7, i64 24}
!29 = !{!30, !18, i64 0}
!30 = !{!"mixart_stream", !18, i64 0, !10, i64 8, !18, i64 16, !7, i64 24, !7, i64 32}
!31 = !{!30, !7, i64 32}
!32 = !{!30, !10, i64 8}
!33 = !{!30, !7, i64 24}
!34 = !{!30, !18, i64 16}
!35 = !{!21, !7, i64 24}
!36 = !{!37, !10, i64 16}
!37 = !{!"mixart_mgr", !10, i64 0, !18, i64 8, !10, i64 16}
!38 = !{!37, !18, i64 8}
!39 = !{!21, !18, i64 8}
!40 = !{!21, !18, i64 16}
| ; ModuleID = 'AnghaBench/linux/sound/pci/mixart/extr_mixart.c_snd_mixart_capture_open.c'
source_filename = "AnghaBench/linux/sound/pci/mixart/extr_mixart.c_snd_mixart_capture_open.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_5__ = type { i32, i64, i64 }
%struct.mixart_stream = type { i64, i32, i64, ptr, ptr }
@MIXART_PCM_ANALOG = common local_unnamed_addr global i32 0, align 4
@snd_mixart_analog_caps = common local_unnamed_addr global %struct.TYPE_5__ zeroinitializer, align 8
@MIXART_PCM_DIGITAL = common local_unnamed_addr global i32 0, align 4
@snd_mixart_digital_caps = common local_unnamed_addr global %struct.TYPE_5__ zeroinitializer, align 8
@.str = private unnamed_addr constant [39 x i8] c"snd_mixart_capture_open C%d/P%d/Sub%d\0A\00", align 1
@MIXART_STREAM_STATUS_FREE = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [46 x i8] c"snd_mixart_capture_open C%d/P%d/Sub%d in use\0A\00", align 1
@EBUSY = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"error starting pipe!\0A\00", align 1
@MIXART_STREAM_STATUS_OPEN = common local_unnamed_addr global i64 0, align 8
@SNDRV_PCM_HW_PARAM_PERIOD_BYTES = common local_unnamed_addr global i32 0, align 4
@SNDRV_PCM_HW_PARAM_BUFFER_SIZE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @snd_mixart_capture_open], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @snd_mixart_capture_open(ptr noundef %0) #0 {
%2 = tail call ptr @snd_pcm_substream_chip(ptr noundef %0) #3
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !14
%8 = tail call i32 @mutex_lock(ptr noundef %3) #3
%9 = getelementptr inbounds i8, ptr %2, i64 40
%10 = load ptr, ptr %9, align 8, !tbaa !15
%11 = icmp eq ptr %7, %10
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = load i32, ptr @MIXART_PCM_ANALOG, align 4, !tbaa !16
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) @snd_mixart_analog_caps, i64 24, i1 false), !tbaa.struct !17
br label %21
14: ; preds = %1
%15 = getelementptr inbounds i8, ptr %2, i64 32
%16 = load ptr, ptr %15, align 8, !tbaa !20
%17 = icmp ne ptr %7, %16
%18 = zext i1 %17 to i32
%19 = tail call i32 @snd_BUG_ON(i32 noundef %18) #3
%20 = load i32, ptr @MIXART_PCM_DIGITAL, align 4, !tbaa !16
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) @snd_mixart_digital_caps, i64 24, i1 false), !tbaa.struct !17
br label %21
21: ; preds = %14, %12
%22 = phi i32 [ %13, %12 ], [ %20, %14 ]
store i32 2, ptr %5, align 8, !tbaa !21
%23 = getelementptr inbounds i8, ptr %2, i64 8
%24 = load ptr, ptr %23, align 8, !tbaa !24
%25 = load i32, ptr %24, align 4, !tbaa !25
%26 = getelementptr inbounds i8, ptr %2, i64 16
%27 = load i32, ptr %26, align 8, !tbaa !27
%28 = load i32, ptr %0, align 8, !tbaa !28
%29 = tail call i32 @dev_dbg(i32 noundef %25, ptr noundef nonnull @.str, i32 noundef %27, i32 noundef %22, i32 noundef %28) #3
%30 = getelementptr inbounds i8, ptr %2, i64 24
%31 = load ptr, ptr %30, align 8, !tbaa !29
%32 = sext i32 %22 to i64
%33 = getelementptr inbounds %struct.mixart_stream, ptr %31, i64 %32
%34 = load i64, ptr %33, align 8, !tbaa !30
%35 = load i64, ptr @MIXART_STREAM_STATUS_FREE, align 8, !tbaa !18
%36 = icmp eq i64 %34, %35
br i1 %36, label %45, label %37
37: ; preds = %21
%38 = load ptr, ptr %23, align 8, !tbaa !24
%39 = load i32, ptr %38, align 4, !tbaa !25
%40 = load i32, ptr %26, align 8, !tbaa !27
%41 = load i32, ptr %0, align 8, !tbaa !28
%42 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %39, ptr noundef nonnull @.str.1, i32 noundef %40, i32 noundef %22, i32 noundef %41) #3
%43 = load i32, ptr @EBUSY, align 4, !tbaa !16
%44 = sub nsw i32 0, %43
br label %85
45: ; preds = %21
%46 = tail call ptr @snd_mixart_add_ref_pipe(ptr noundef nonnull %2, i32 noundef %22, i32 noundef 1, i32 noundef 0) #3
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, ptr @EINVAL, align 4, !tbaa !16
%50 = sub nsw i32 0, %49
br label %85
51: ; preds = %45
%52 = load ptr, ptr %2, align 8, !tbaa !6
%53 = tail call i32 @mixart_set_pipe_state(ptr noundef %52, ptr noundef nonnull %46, i32 noundef 1) #3
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %51
%56 = load ptr, ptr %23, align 8, !tbaa !24
%57 = load i32, ptr %56, align 4, !tbaa !25
%58 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %57, ptr noundef nonnull @.str.2) #3
%59 = load ptr, ptr %2, align 8, !tbaa !6
%60 = tail call i32 @snd_mixart_kill_ref_pipe(ptr noundef %59, ptr noundef nonnull %46, i32 noundef 0) #3
%61 = load i32, ptr @EINVAL, align 4, !tbaa !16
%62 = sub nsw i32 0, %61
br label %85
63: ; preds = %51
%64 = getelementptr inbounds i8, ptr %33, i64 32
store ptr %46, ptr %64, align 8, !tbaa !32
%65 = getelementptr inbounds i8, ptr %33, i64 8
store i32 %22, ptr %65, align 8, !tbaa !33
%66 = load i64, ptr @MIXART_STREAM_STATUS_OPEN, align 8, !tbaa !18
store i64 %66, ptr %33, align 8, !tbaa !30
%67 = getelementptr inbounds i8, ptr %33, i64 24
store ptr %0, ptr %67, align 8, !tbaa !34
%68 = getelementptr inbounds i8, ptr %33, i64 16
store i64 0, ptr %68, align 8, !tbaa !35
%69 = getelementptr inbounds i8, ptr %5, i64 24
store ptr %33, ptr %69, align 8, !tbaa !36
%70 = load i32, ptr @SNDRV_PCM_HW_PARAM_PERIOD_BYTES, align 4, !tbaa !16
%71 = tail call i32 @snd_pcm_hw_constraint_step(ptr noundef nonnull %5, i32 noundef 0, i32 noundef %70, i32 noundef 32) #3
%72 = load i32, ptr @SNDRV_PCM_HW_PARAM_BUFFER_SIZE, align 4, !tbaa !16
%73 = tail call i32 @snd_pcm_hw_constraint_step(ptr noundef nonnull %5, i32 noundef 0, i32 noundef %72, i32 noundef 64) #3
%74 = getelementptr inbounds i8, ptr %3, i64 16
%75 = load i32, ptr %74, align 8, !tbaa !37
%76 = add nsw i32 %75, 1
store i32 %76, ptr %74, align 8, !tbaa !37
%77 = icmp eq i32 %75, 0
br i1 %77, label %85, label %78
78: ; preds = %63
%79 = getelementptr inbounds i8, ptr %3, i64 8
%80 = load i64, ptr %79, align 8, !tbaa !39
%81 = icmp eq i64 %80, 0
br i1 %81, label %85, label %82
82: ; preds = %78
%83 = getelementptr inbounds i8, ptr %5, i64 8
store i64 %80, ptr %83, align 8, !tbaa !40
%84 = getelementptr inbounds i8, ptr %5, i64 16
store i64 %80, ptr %84, align 8, !tbaa !41
br label %85
85: ; preds = %63, %82, %78, %55, %48, %37
%86 = phi i32 [ %44, %37 ], [ %50, %48 ], [ %62, %55 ], [ %53, %82 ], [ %53, %78 ], [ %53, %63 ]
%87 = tail call i32 @mutex_unlock(ptr noundef %3) #3
ret i32 %86
}
declare ptr @snd_pcm_substream_chip(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @snd_BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare ptr @snd_mixart_add_ref_pipe(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mixart_set_pipe_state(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_mixart_kill_ref_pipe(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_pcm_hw_constraint_step(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"snd_mixart", !8, i64 0, !8, i64 8, !11, i64 16, !8, i64 24, !8, i64 32, !8, i64 40}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !8, i64 16}
!13 = !{!"snd_pcm_substream", !11, i64 0, !8, i64 8, !8, i64 16}
!14 = !{!13, !8, i64 8}
!15 = !{!7, !8, i64 40}
!16 = !{!11, !11, i64 0}
!17 = !{i64 0, i64 4, !16, i64 8, i64 8, !18, i64 16, i64 8, !18}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !9, i64 0}
!20 = !{!7, !8, i64 32}
!21 = !{!22, !11, i64 0}
!22 = !{!"snd_pcm_runtime", !23, i64 0, !8, i64 24}
!23 = !{!"TYPE_5__", !11, i64 0, !19, i64 8, !19, i64 16}
!24 = !{!7, !8, i64 8}
!25 = !{!26, !11, i64 0}
!26 = !{!"TYPE_4__", !11, i64 0}
!27 = !{!7, !11, i64 16}
!28 = !{!13, !11, i64 0}
!29 = !{!7, !8, i64 24}
!30 = !{!31, !19, i64 0}
!31 = !{!"mixart_stream", !19, i64 0, !11, i64 8, !19, i64 16, !8, i64 24, !8, i64 32}
!32 = !{!31, !8, i64 32}
!33 = !{!31, !11, i64 8}
!34 = !{!31, !8, i64 24}
!35 = !{!31, !19, i64 16}
!36 = !{!22, !8, i64 24}
!37 = !{!38, !11, i64 16}
!38 = !{!"mixart_mgr", !11, i64 0, !19, i64 8, !11, i64 16}
!39 = !{!38, !19, i64 8}
!40 = !{!22, !19, i64 8}
!41 = !{!22, !19, i64 16}
| linux_sound_pci_mixart_extr_mixart.c_snd_mixart_capture_open |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.