IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/reactos/dll/directx/wine/d3dxof/extr_parsing.c_check_buffer.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/d3dxof/extr_parsing.c_check_buffer.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, ptr, ptr }
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @check_buffer], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @check_buffer(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !5
%4 = add nsw i32 %3, %1
%5 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !11
%7 = icmp sgt i32 %4, %6
br i1 %7, label %8, label %26
8: ; preds = %2
%9 = icmp eq i32 %6, 0
%10 = shl nsw i32 %6, 1
%11 = select i1 %9, i32 100000, i32 %10
%12 = tail call i32 (...) @GetProcessHeap() #2
%13 = tail call ptr @HeapAlloc(i32 noundef %12, i32 noundef 0, i32 noundef %11) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %26, label %15
15: ; preds = %8
%16 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 3
%17 = load ptr, ptr %16, align 8, !tbaa !12
%18 = load i32, ptr %0, align 8, !tbaa !5
%19 = tail call i32 @memcpy(ptr noundef nonnull %13, ptr noundef %17, i32 noundef %18) #2
%20 = tail call i32 (...) @GetProcessHeap() #2
%21 = load ptr, ptr %16, align 8, !tbaa !12
%22 = tail call i32 @HeapFree(i32 noundef %20, i32 noundef 0, ptr noundef %21) #2
store i32 %11, ptr %5, align 4, !tbaa !11
store ptr %13, ptr %16, align 8, !tbaa !12
%23 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 2
%24 = load ptr, ptr %23, align 8, !tbaa !13
%25 = load ptr, ptr %24, align 8, !tbaa !14
store ptr %13, ptr %25, align 8, !tbaa !16
br label %26
26: ; preds = %2, %15, %8
%27 = phi ptr [ @FALSE, %8 ], [ @TRUE, %15 ], [ @TRUE, %2 ]
%28 = load i32, ptr %27, align 4, !tbaa !18
ret i32 %28
}
declare ptr @HeapAlloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @GetProcessHeap(...) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @HeapFree(i32 noundef, 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 = !{!"TYPE_7__", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !10, i64 8}
!14 = !{!15, !10, i64 0}
!15 = !{!"TYPE_6__", !10, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"TYPE_5__", !10, i64 0}
!18 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/dll/directx/wine/d3dxof/extr_parsing.c_check_buffer.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/d3dxof/extr_parsing.c_check_buffer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FALSE = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @check_buffer], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @check_buffer(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !6
%4 = add nsw i32 %3, %1
%5 = getelementptr inbounds i8, ptr %0, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !12
%7 = icmp sgt i32 %4, %6
br i1 %7, label %8, label %26
8: ; preds = %2
%9 = icmp eq i32 %6, 0
%10 = shl nsw i32 %6, 1
%11 = select i1 %9, i32 100000, i32 %10
%12 = tail call i32 @GetProcessHeap() #2
%13 = tail call ptr @HeapAlloc(i32 noundef %12, i32 noundef 0, i32 noundef %11) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %26, label %15
15: ; preds = %8
%16 = getelementptr inbounds i8, ptr %0, i64 16
%17 = load ptr, ptr %16, align 8, !tbaa !13
%18 = load i32, ptr %0, align 8, !tbaa !6
%19 = tail call i32 @memcpy(ptr noundef nonnull %13, ptr noundef %17, i32 noundef %18) #2
%20 = tail call i32 @GetProcessHeap() #2
%21 = load ptr, ptr %16, align 8, !tbaa !13
%22 = tail call i32 @HeapFree(i32 noundef %20, i32 noundef 0, ptr noundef %21) #2
store i32 %11, ptr %5, align 4, !tbaa !12
store ptr %13, ptr %16, align 8, !tbaa !13
%23 = getelementptr inbounds i8, ptr %0, i64 8
%24 = load ptr, ptr %23, align 8, !tbaa !14
%25 = load ptr, ptr %24, align 8, !tbaa !15
store ptr %13, ptr %25, align 8, !tbaa !17
br label %26
26: ; preds = %2, %15, %8
%27 = phi ptr [ @FALSE, %8 ], [ @TRUE, %15 ], [ @TRUE, %2 ]
%28 = load i32, ptr %27, align 4, !tbaa !19
ret i32 %28
}
declare ptr @HeapAlloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @GetProcessHeap(...) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @HeapFree(i32 noundef, 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 = !{!"TYPE_7__", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 4}
!13 = !{!7, !11, i64 16}
!14 = !{!7, !11, i64 8}
!15 = !{!16, !11, i64 0}
!16 = !{!"TYPE_6__", !11, i64 0}
!17 = !{!18, !11, i64 0}
!18 = !{!"TYPE_5__", !11, i64 0}
!19 = !{!8, !8, i64 0}
| reactos_dll_directx_wine_d3dxof_extr_parsing.c_check_buffer |
; ModuleID = 'AnghaBench/linux/drivers/tty/extr_mxser.c_mxser_enable_must_rx_software_flow_control.c'
source_filename = "AnghaBench/linux/drivers/tty/extr_mxser.c_mxser_enable_must_rx_software_flow_control.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"
@UART_LCR = dso_local local_unnamed_addr global i64 0, align 8
@MOXA_MUST_ENTER_ENCHANCE = dso_local local_unnamed_addr global i32 0, align 4
@MOXA_MUST_EFR_REGISTER = dso_local local_unnamed_addr global i64 0, align 8
@MOXA_MUST_EFR_SF_RX_MASK = dso_local local_unnamed_addr global i32 0, align 4
@MOXA_MUST_EFR_SF_RX1 = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mxser_enable_must_rx_software_flow_control], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mxser_enable_must_rx_software_flow_control(i64 noundef %0) #0 {
%2 = load i64, ptr @UART_LCR, align 8, !tbaa !5
%3 = add i64 %2, %0
%4 = tail call i32 @inb(i64 noundef %3) #2
%5 = load i32, ptr @MOXA_MUST_ENTER_ENCHANCE, align 4, !tbaa !9
%6 = load i64, ptr @UART_LCR, align 8, !tbaa !5
%7 = add i64 %6, %0
%8 = tail call i32 @outb(i32 noundef %5, i64 noundef %7) #2
%9 = load i64, ptr @MOXA_MUST_EFR_REGISTER, align 8, !tbaa !5
%10 = add i64 %9, %0
%11 = tail call i32 @inb(i64 noundef %10) #2
%12 = load i32, ptr @MOXA_MUST_EFR_SF_RX_MASK, align 4, !tbaa !9
%13 = xor i32 %12, -1
%14 = and i32 %11, %13
%15 = load i32, ptr @MOXA_MUST_EFR_SF_RX1, align 4, !tbaa !9
%16 = or i32 %14, %15
%17 = load i64, ptr @MOXA_MUST_EFR_REGISTER, align 8, !tbaa !5
%18 = add i64 %17, %0
%19 = tail call i32 @outb(i32 noundef %16, i64 noundef %18) #2
%20 = load i64, ptr @UART_LCR, align 8, !tbaa !5
%21 = add i64 %20, %0
%22 = tail call i32 @outb(i32 noundef %4, i64 noundef %21) #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="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}
| ; ModuleID = 'AnghaBench/linux/drivers/tty/extr_mxser.c_mxser_enable_must_rx_software_flow_control.c'
source_filename = "AnghaBench/linux/drivers/tty/extr_mxser.c_mxser_enable_must_rx_software_flow_control.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UART_LCR = common local_unnamed_addr global i64 0, align 8
@MOXA_MUST_ENTER_ENCHANCE = common local_unnamed_addr global i32 0, align 4
@MOXA_MUST_EFR_REGISTER = common local_unnamed_addr global i64 0, align 8
@MOXA_MUST_EFR_SF_RX_MASK = common local_unnamed_addr global i32 0, align 4
@MOXA_MUST_EFR_SF_RX1 = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mxser_enable_must_rx_software_flow_control], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mxser_enable_must_rx_software_flow_control(i64 noundef %0) #0 {
%2 = load i64, ptr @UART_LCR, align 8, !tbaa !6
%3 = add i64 %2, %0
%4 = tail call i32 @inb(i64 noundef %3) #2
%5 = load i32, ptr @MOXA_MUST_ENTER_ENCHANCE, align 4, !tbaa !10
%6 = load i64, ptr @UART_LCR, align 8, !tbaa !6
%7 = add i64 %6, %0
%8 = tail call i32 @outb(i32 noundef %5, i64 noundef %7) #2
%9 = load i64, ptr @MOXA_MUST_EFR_REGISTER, align 8, !tbaa !6
%10 = add i64 %9, %0
%11 = tail call i32 @inb(i64 noundef %10) #2
%12 = load i32, ptr @MOXA_MUST_EFR_SF_RX_MASK, align 4, !tbaa !10
%13 = xor i32 %12, -1
%14 = and i32 %11, %13
%15 = load i32, ptr @MOXA_MUST_EFR_SF_RX1, align 4, !tbaa !10
%16 = or i32 %14, %15
%17 = load i64, ptr @MOXA_MUST_EFR_REGISTER, align 8, !tbaa !6
%18 = add i64 %17, %0
%19 = tail call i32 @outb(i32 noundef %16, i64 noundef %18) #2
%20 = load i64, ptr @UART_LCR, align 8, !tbaa !6
%21 = add i64 %20, %0
%22 = tail call i32 @outb(i32 noundef %4, i64 noundef %21) #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 = { 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}
| linux_drivers_tty_extr_mxser.c_mxser_enable_must_rx_software_flow_control |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/eap_server/extr_eap_server_ttls.c_eap_ttls_process.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/eap_server/extr_eap_server_ttls.c_eap_ttls_process.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.eap_sm = type { ptr, i64, i32 }
@EAP_TYPE_TTLS = dso_local local_unnamed_addr constant i64 0, align 8
@eap_ttls_process_version = dso_local local_unnamed_addr global i32 0, align 4
@eap_ttls_process_msg = dso_local local_unnamed_addr global i32 0, align 4
@FAILURE = dso_local local_unnamed_addr global i32 0, align 4
@MSG_DEBUG = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [62 x i8] c"EAP-TTLS: No success data in resumed session - reject attempt\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c"EAP-TTLS: Resumed session for another EAP type (%u) - reject attempt\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"EAP-TTLS: Identity from cached session\00", align 1
@.str.3 = private unnamed_addr constant [57 x i8] c"EAP-TTLS: Phase2 Identity not found in the user database\00", align 1
@.str.4 = private unnamed_addr constant [50 x i8] c"EAP-TTLS: Resuming previous session - skip Phase2\00", align 1
@SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @eap_ttls_process], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @eap_ttls_process(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = load i32, ptr @eap_ttls_process_version, align 4, !tbaa !5
%5 = load i32, ptr @eap_ttls_process_msg, align 4, !tbaa !5
%6 = tail call i64 @eap_server_tls_process(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %1, i64 noundef 0, i32 noundef %4, i32 noundef %5) #3
%7 = icmp slt i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i32, ptr @FAILURE, align 4, !tbaa !5
%10 = tail call i32 @eap_ttls_state(ptr noundef %1, i32 noundef %9) #3
br label %77
11: ; preds = %3
%12 = getelementptr inbounds %struct.eap_sm, ptr %0, i64 0, i32 2
%13 = load i32, ptr %12, align 8, !tbaa !9
%14 = load i32, ptr %1, align 4, !tbaa !13
%15 = tail call i32 @tls_connection_established(i32 noundef %13, i32 noundef %14) #3
%16 = icmp eq i32 %15, 0
br i1 %16, label %77, label %17
17: ; preds = %11
%18 = load i32, ptr %12, align 8, !tbaa !9
%19 = load i32, ptr %1, align 4, !tbaa !13
%20 = tail call i32 @tls_connection_resumed(i32 noundef %18, i32 noundef %19) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %77, label %22
22: ; preds = %17
%23 = load i32, ptr %1, align 4, !tbaa !13
%24 = tail call ptr @tls_connection_get_success_data(i32 noundef %23) #3
%25 = icmp eq ptr %24, null
br i1 %25, label %29, label %26
26: ; preds = %22
%27 = tail call i32 @wpabuf_len(ptr noundef nonnull %24) #3
%28 = icmp slt i32 %27, 1
br i1 %28, label %29, label %34
29: ; preds = %26, %22
%30 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !5
%31 = tail call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %30, ptr noundef nonnull @.str) #3
%32 = load i32, ptr @FAILURE, align 4, !tbaa !5
%33 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %32) #3
br label %77
34: ; preds = %26
%35 = tail call ptr @wpabuf_head(ptr noundef nonnull %24) #3
%36 = load i64, ptr %35, align 8, !tbaa !16
%37 = icmp eq i64 %36, 0
br i1 %37, label %43, label %38
38: ; preds = %34
%39 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !5
%40 = tail call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %39, ptr noundef nonnull @.str.1, i64 noundef %36) #3
%41 = load i32, ptr @FAILURE, align 4, !tbaa !5
%42 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %41) #3
br label %77
43: ; preds = %34
%44 = getelementptr inbounds i64, ptr %35, i64 1
%45 = getelementptr inbounds i64, ptr %35, i64 2
%46 = load i64, ptr %44, align 8, !tbaa !16
%47 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !5
%48 = tail call i32 @wpa_hexdump_ascii(i32 noundef %47, ptr noundef nonnull @.str.2, ptr noundef nonnull %45, i64 noundef %46) #3
%49 = load ptr, ptr %0, align 8, !tbaa !17
%50 = tail call i32 @os_free(ptr noundef %49) #3
%51 = tail call i64 @llvm.umax.i64(i64 %46, i64 1)
%52 = tail call ptr @os_malloc(i64 noundef %51) #3
store ptr %52, ptr %0, align 8, !tbaa !17
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %58
54: ; preds = %43
%55 = getelementptr inbounds %struct.eap_sm, ptr %0, i64 0, i32 1
store i64 0, ptr %55, align 8, !tbaa !18
%56 = load i32, ptr @FAILURE, align 4, !tbaa !5
%57 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %56) #3
br label %77
58: ; preds = %43
%59 = tail call i32 @os_memcpy(ptr noundef nonnull %52, ptr noundef nonnull %45, i64 noundef %46) #3
%60 = getelementptr inbounds %struct.eap_sm, ptr %0, i64 0, i32 1
store i64 %46, ptr %60, align 8, !tbaa !18
%61 = load ptr, ptr %0, align 8, !tbaa !17
%62 = tail call i64 @eap_user_get(ptr noundef nonnull %0, ptr noundef %61, i64 noundef %46, i32 noundef 1) #3
%63 = icmp eq i64 %62, 0
%64 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !5
br i1 %63, label %71, label %65
65: ; preds = %58
%66 = load ptr, ptr %0, align 8, !tbaa !17
%67 = load i64, ptr %60, align 8, !tbaa !18
%68 = tail call i32 @wpa_hexdump_ascii(i32 noundef %64, ptr noundef nonnull @.str.3, ptr noundef %66, i64 noundef %67) #3
%69 = load i32, ptr @FAILURE, align 4, !tbaa !5
%70 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %69) #3
br label %77
71: ; preds = %58
%72 = tail call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %64, ptr noundef nonnull @.str.4) #3
%73 = load i32, ptr @SUCCESS, align 4, !tbaa !5
%74 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %73) #3
%75 = load i32, ptr %1, align 4, !tbaa !13
%76 = tail call i32 @tls_connection_set_success_data_resumed(i32 noundef %75) #3
br label %77
77: ; preds = %11, %17, %71, %65, %54, %38, %29, %8
ret void
}
declare i64 @eap_server_tls_process(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @eap_ttls_state(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tls_connection_established(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tls_connection_resumed(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @tls_connection_get_success_data(i32 noundef) local_unnamed_addr #1
declare i32 @wpabuf_len(ptr noundef) local_unnamed_addr #1
declare i32 @wpa_printf(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare ptr @wpabuf_head(ptr noundef) local_unnamed_addr #1
declare i32 @wpa_hexdump_ascii(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @os_free(ptr noundef) local_unnamed_addr #1
declare ptr @os_malloc(i64 noundef) local_unnamed_addr #1
declare i32 @os_memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @eap_user_get(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tls_connection_set_success_data_resumed(i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 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 16}
!10 = !{!"eap_sm", !11, i64 0, !12, i64 8, !6, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"eap_ttls_data", !15, i64 0}
!15 = !{!"TYPE_2__", !6, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !11, i64 0}
!18 = !{!10, !12, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/eap_server/extr_eap_server_ttls.c_eap_ttls_process.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/eap_server/extr_eap_server_ttls.c_eap_ttls_process.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EAP_TYPE_TTLS = common local_unnamed_addr global i64 0, align 8
@eap_ttls_process_version = common local_unnamed_addr global i32 0, align 4
@eap_ttls_process_msg = common local_unnamed_addr global i32 0, align 4
@FAILURE = common local_unnamed_addr global i32 0, align 4
@MSG_DEBUG = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [62 x i8] c"EAP-TTLS: No success data in resumed session - reject attempt\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c"EAP-TTLS: Resumed session for another EAP type (%u) - reject attempt\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"EAP-TTLS: Identity from cached session\00", align 1
@.str.3 = private unnamed_addr constant [57 x i8] c"EAP-TTLS: Phase2 Identity not found in the user database\00", align 1
@.str.4 = private unnamed_addr constant [50 x i8] c"EAP-TTLS: Resuming previous session - skip Phase2\00", align 1
@SUCCESS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @eap_ttls_process], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @eap_ttls_process(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = load i64, ptr @EAP_TYPE_TTLS, align 8, !tbaa !6
%5 = load i32, ptr @eap_ttls_process_version, align 4, !tbaa !10
%6 = load i32, ptr @eap_ttls_process_msg, align 4, !tbaa !10
%7 = tail call i64 @eap_server_tls_process(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %1, i64 noundef %4, i32 noundef %5, i32 noundef %6) #3
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = load i32, ptr @FAILURE, align 4, !tbaa !10
%11 = tail call i32 @eap_ttls_state(ptr noundef %1, i32 noundef %10) #3
br label %79
12: ; preds = %3
%13 = getelementptr inbounds i8, ptr %0, i64 16
%14 = load i32, ptr %13, align 8, !tbaa !12
%15 = load i32, ptr %1, align 4, !tbaa !15
%16 = tail call i32 @tls_connection_established(i32 noundef %14, i32 noundef %15) #3
%17 = icmp eq i32 %16, 0
br i1 %17, label %79, label %18
18: ; preds = %12
%19 = load i32, ptr %13, align 8, !tbaa !12
%20 = load i32, ptr %1, align 4, !tbaa !15
%21 = tail call i32 @tls_connection_resumed(i32 noundef %19, i32 noundef %20) #3
%22 = icmp eq i32 %21, 0
br i1 %22, label %79, label %23
23: ; preds = %18
%24 = load i32, ptr %1, align 4, !tbaa !15
%25 = tail call ptr @tls_connection_get_success_data(i32 noundef %24) #3
%26 = icmp eq ptr %25, null
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = tail call i32 @wpabuf_len(ptr noundef nonnull %25) #3
%29 = icmp slt i32 %28, 1
br i1 %29, label %30, label %35
30: ; preds = %27, %23
%31 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !10
%32 = tail call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %31, ptr noundef nonnull @.str) #3
%33 = load i32, ptr @FAILURE, align 4, !tbaa !10
%34 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %33) #3
br label %79
35: ; preds = %27
%36 = tail call ptr @wpabuf_head(ptr noundef nonnull %25) #3
%37 = load i64, ptr %36, align 8, !tbaa !6
%38 = load i64, ptr @EAP_TYPE_TTLS, align 8, !tbaa !6
%39 = icmp eq i64 %37, %38
br i1 %39, label %45, label %40
40: ; preds = %35
%41 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !10
%42 = tail call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %41, ptr noundef nonnull @.str.1, i64 noundef %37) #3
%43 = load i32, ptr @FAILURE, align 4, !tbaa !10
%44 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %43) #3
br label %79
45: ; preds = %35
%46 = getelementptr inbounds i8, ptr %36, i64 8
%47 = getelementptr inbounds i8, ptr %36, i64 16
%48 = load i64, ptr %46, align 8, !tbaa !6
%49 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !10
%50 = tail call i32 @wpa_hexdump_ascii(i32 noundef %49, ptr noundef nonnull @.str.2, ptr noundef nonnull %47, i64 noundef %48) #3
%51 = load ptr, ptr %0, align 8, !tbaa !18
%52 = tail call i32 @os_free(ptr noundef %51) #3
%53 = tail call i64 @llvm.umax.i64(i64 %48, i64 1)
%54 = tail call ptr @os_malloc(i64 noundef %53) #3
store ptr %54, ptr %0, align 8, !tbaa !18
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %60
56: ; preds = %45
%57 = getelementptr inbounds i8, ptr %0, i64 8
store i64 0, ptr %57, align 8, !tbaa !19
%58 = load i32, ptr @FAILURE, align 4, !tbaa !10
%59 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %58) #3
br label %79
60: ; preds = %45
%61 = tail call i32 @os_memcpy(ptr noundef nonnull %54, ptr noundef nonnull %47, i64 noundef %48) #3
%62 = getelementptr inbounds i8, ptr %0, i64 8
store i64 %48, ptr %62, align 8, !tbaa !19
%63 = load ptr, ptr %0, align 8, !tbaa !18
%64 = tail call i64 @eap_user_get(ptr noundef nonnull %0, ptr noundef %63, i64 noundef %48, i32 noundef 1) #3
%65 = icmp eq i64 %64, 0
%66 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !10
br i1 %65, label %73, label %67
67: ; preds = %60
%68 = load ptr, ptr %0, align 8, !tbaa !18
%69 = load i64, ptr %62, align 8, !tbaa !19
%70 = tail call i32 @wpa_hexdump_ascii(i32 noundef %66, ptr noundef nonnull @.str.3, ptr noundef %68, i64 noundef %69) #3
%71 = load i32, ptr @FAILURE, align 4, !tbaa !10
%72 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %71) #3
br label %79
73: ; preds = %60
%74 = tail call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %66, ptr noundef nonnull @.str.4) #3
%75 = load i32, ptr @SUCCESS, align 4, !tbaa !10
%76 = tail call i32 @eap_ttls_state(ptr noundef nonnull %1, i32 noundef %75) #3
%77 = load i32, ptr %1, align 4, !tbaa !15
%78 = tail call i32 @tls_connection_set_success_data_resumed(i32 noundef %77) #3
br label %79
79: ; preds = %12, %18, %73, %67, %56, %40, %30, %9
ret void
}
declare i64 @eap_server_tls_process(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @eap_ttls_state(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tls_connection_established(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tls_connection_resumed(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @tls_connection_get_success_data(i32 noundef) local_unnamed_addr #1
declare i32 @wpabuf_len(ptr noundef) local_unnamed_addr #1
declare i32 @wpa_printf(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare ptr @wpabuf_head(ptr noundef) local_unnamed_addr #1
declare i32 @wpa_hexdump_ascii(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @os_free(ptr noundef) local_unnamed_addr #1
declare ptr @os_malloc(i64 noundef) local_unnamed_addr #1
declare i32 @os_memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @eap_user_get(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tls_connection_set_success_data_resumed(i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 speculatable willreturn memory(none) }
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 = !{!"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, !11, i64 16}
!13 = !{!"eap_sm", !14, i64 0, !7, i64 8, !11, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !11, i64 0}
!16 = !{!"eap_ttls_data", !17, i64 0}
!17 = !{!"TYPE_2__", !11, i64 0}
!18 = !{!13, !14, i64 0}
!19 = !{!13, !7, i64 8}
| freebsd_contrib_wpa_src_eap_server_extr_eap_server_ttls.c_eap_ttls_process |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hwmon/extr_lm78.c_lm78_write_value.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hwmon/extr_lm78.c_lm78_write_value.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.lm78_data = type { i32, i64, ptr }
@LM78_ADDR_REG_OFFSET = dso_local local_unnamed_addr global i64 0, align 8
@LM78_DATA_REG_OFFSET = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @lm78_write_value], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @lm78_write_value(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = getelementptr inbounds %struct.lm78_data, ptr %0, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = tail call i32 @i2c_smbus_write_byte_data(ptr noundef %5, i32 noundef %1, i32 noundef %2) #2
ret i32 %6
}
declare i32 @i2c_smbus_write_byte_data(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, !11, i64 16}
!6 = !{!"lm78_data", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hwmon/extr_lm78.c_lm78_write_value.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hwmon/extr_lm78.c_lm78_write_value.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LM78_ADDR_REG_OFFSET = common local_unnamed_addr global i64 0, align 8
@LM78_DATA_REG_OFFSET = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @lm78_write_value], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @lm78_write_value(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = tail call i32 @i2c_smbus_write_byte_data(ptr noundef %5, i32 noundef %1, i32 noundef %2) #2
ret i32 %6
}
declare i32 @i2c_smbus_write_byte_data(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, !12, i64 16}
!7 = !{!"lm78_data", !8, i64 0, !11, i64 8, !12, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
| fastsocket_kernel_drivers_hwmon_extr_lm78.c_lm78_write_value |
; ModuleID = 'AnghaBench/mongoose/examples/api_server/extr_sqlite3.c_assemblePage.c'
source_filename = "AnghaBench/mongoose/examples/api_server/extr_sqlite3.c_assemblePage.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, i64, i64, i32, ptr, i32, ptr, ptr }
%struct.TYPE_5__ = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @assemblePage], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @assemblePage(ptr nocapture noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3) #0 {
%5 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 7
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = load i32, ptr %0, align 8, !tbaa !12
%8 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 6
%9 = load ptr, ptr %8, align 8, !tbaa !13
%10 = load i32, ptr %9, align 4, !tbaa !14
%11 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !16
%13 = icmp eq i64 %12, 0
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 noundef %14) #2
%16 = load ptr, ptr %8, align 8, !tbaa !13
%17 = getelementptr inbounds %struct.TYPE_5__, ptr %16, i64 0, i32 1
%18 = load i32, ptr %17, align 4, !tbaa !17
%19 = tail call i32 @sqlite3_mutex_held(i32 noundef %18) #2
%20 = tail call i32 @assert(i32 noundef %19) #2
%21 = icmp sgt i32 %1, -1
br i1 %21, label %22, label %33
22: ; preds = %4
%23 = load ptr, ptr %8, align 8, !tbaa !13
%24 = tail call i64 @MX_CELL(ptr noundef %23) #2
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, %1
br i1 %26, label %33, label %27
27: ; preds = %22
%28 = load ptr, ptr %8, align 8, !tbaa !13
%29 = tail call i64 @MX_CELL(ptr noundef %28) #2
%30 = trunc i64 %29 to i32
%31 = icmp slt i32 %30, 10922
%32 = zext i1 %31 to i32
br label %33
33: ; preds = %27, %22, %4
%34 = phi i32 [ 0, %22 ], [ 0, %4 ], [ %32, %27 ]
%35 = tail call i32 @assert(i32 noundef %34) #2
%36 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 5
%37 = load i32, ptr %36, align 8, !tbaa !18
%38 = tail call i32 @sqlite3PagerIswriteable(i32 noundef %37) #2
%39 = tail call i32 @assert(i32 noundef %38) #2
%40 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
%41 = load i64, ptr %40, align 8, !tbaa !19
%42 = icmp eq i64 %41, 0
%43 = zext i1 %42 to i32
%44 = tail call i32 @assert(i32 noundef %43) #2
%45 = sext i32 %7 to i64
%46 = getelementptr i32, ptr %6, i64 %45
%47 = getelementptr i32, ptr %46, i64 5
%48 = tail call i32 @get2byteNotZero(ptr noundef %47) #2
%49 = icmp eq i32 %48, %10
%50 = zext i1 %49 to i32
%51 = tail call i32 @assert(i32 noundef %50) #2
%52 = shl nsw i32 %1, 1
%53 = icmp sgt i32 %1, 0
br i1 %53, label %54, label %77
54: ; preds = %33
%55 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 4
%56 = load ptr, ptr %55, align 8, !tbaa !20
%57 = zext nneg i32 %52 to i64
%58 = getelementptr inbounds i32, ptr %56, i64 %57
%59 = zext nneg i32 %1 to i64
br label %60
60: ; preds = %54, %60
%61 = phi i64 [ %59, %54 ], [ %64, %60 ]
%62 = phi ptr [ %58, %54 ], [ %67, %60 ]
%63 = phi i32 [ %10, %54 ], [ %69, %60 ]
%64 = add nsw i64 %61, -1
%65 = getelementptr inbounds i64, ptr %3, i64 %64
%66 = load i64, ptr %65, align 8, !tbaa !21
%67 = getelementptr inbounds i32, ptr %62, i64 -2
%68 = trunc i64 %66 to i32
%69 = sub i32 %63, %68
%70 = tail call i32 @put2byte(ptr noundef nonnull %67, i32 noundef %69) #2
%71 = sext i32 %69 to i64
%72 = getelementptr inbounds i32, ptr %6, i64 %71
%73 = getelementptr inbounds ptr, ptr %2, i64 %64
%74 = load ptr, ptr %73, align 8, !tbaa !22
%75 = tail call i32 @memcpy(ptr noundef %72, ptr noundef %74, i64 noundef %66) #2
%76 = icmp ugt i64 %61, 1
br i1 %76, label %60, label %77, !llvm.loop !23
77: ; preds = %60, %33
%78 = phi i32 [ %10, %33 ], [ %69, %60 ]
%79 = getelementptr i32, ptr %46, i64 3
%80 = tail call i32 @put2byte(ptr noundef %79, i32 noundef %1) #2
%81 = tail call i32 @put2byte(ptr noundef %47, i32 noundef %78) #2
%82 = add i32 %10, %52
%83 = sub i32 %78, %82
%84 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 3
%85 = load i32, ptr %84, align 8, !tbaa !25
%86 = add i32 %83, %85
store i32 %86, ptr %84, align 8, !tbaa !25
%87 = sext i32 %1 to i64
store i64 %87, ptr %40, align 8, !tbaa !19
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3_mutex_held(i32 noundef) local_unnamed_addr #1
declare i64 @MX_CELL(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3PagerIswriteable(i32 noundef) local_unnamed_addr #1
declare i32 @get2byteNotZero(ptr noundef) local_unnamed_addr #1
declare i32 @put2byte(ptr noundef, i32 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, !11, i64 56}
!6 = !{!"TYPE_4__", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !7, i64 40, !11, i64 48, !11, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !11, i64 48}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_5__", !7, i64 0, !7, i64 4}
!16 = !{!6, !10, i64 8}
!17 = !{!15, !7, i64 4}
!18 = !{!6, !7, i64 40}
!19 = !{!6, !10, i64 16}
!20 = !{!6, !11, i64 32}
!21 = !{!10, !10, i64 0}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!6, !7, i64 24}
| ; ModuleID = 'AnghaBench/mongoose/examples/api_server/extr_sqlite3.c_assemblePage.c'
source_filename = "AnghaBench/mongoose/examples/api_server/extr_sqlite3.c_assemblePage.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 @assemblePage], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @assemblePage(ptr nocapture noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3) #0 {
%5 = getelementptr inbounds i8, ptr %0, i64 56
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = load i32, ptr %0, align 8, !tbaa !13
%8 = getelementptr inbounds i8, ptr %0, i64 48
%9 = load ptr, ptr %8, align 8, !tbaa !14
%10 = load i32, ptr %9, align 4, !tbaa !15
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !17
%13 = icmp eq i64 %12, 0
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 noundef %14) #2
%16 = load ptr, ptr %8, align 8, !tbaa !14
%17 = getelementptr inbounds i8, ptr %16, i64 4
%18 = load i32, ptr %17, align 4, !tbaa !18
%19 = tail call i32 @sqlite3_mutex_held(i32 noundef %18) #2
%20 = tail call i32 @assert(i32 noundef %19) #2
%21 = icmp sgt i32 %1, -1
br i1 %21, label %22, label %33
22: ; preds = %4
%23 = load ptr, ptr %8, align 8, !tbaa !14
%24 = tail call i64 @MX_CELL(ptr noundef %23) #2
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, %1
br i1 %26, label %33, label %27
27: ; preds = %22
%28 = load ptr, ptr %8, align 8, !tbaa !14
%29 = tail call i64 @MX_CELL(ptr noundef %28) #2
%30 = trunc i64 %29 to i32
%31 = icmp slt i32 %30, 10922
%32 = zext i1 %31 to i32
br label %33
33: ; preds = %27, %22, %4
%34 = phi i32 [ 0, %22 ], [ 0, %4 ], [ %32, %27 ]
%35 = tail call i32 @assert(i32 noundef %34) #2
%36 = getelementptr inbounds i8, ptr %0, i64 40
%37 = load i32, ptr %36, align 8, !tbaa !19
%38 = tail call i32 @sqlite3PagerIswriteable(i32 noundef %37) #2
%39 = tail call i32 @assert(i32 noundef %38) #2
%40 = getelementptr inbounds i8, ptr %0, i64 16
%41 = load i64, ptr %40, align 8, !tbaa !20
%42 = icmp eq i64 %41, 0
%43 = zext i1 %42 to i32
%44 = tail call i32 @assert(i32 noundef %43) #2
%45 = sext i32 %7 to i64
%46 = getelementptr i32, ptr %6, i64 %45
%47 = getelementptr i8, ptr %46, i64 20
%48 = tail call i32 @get2byteNotZero(ptr noundef %47) #2
%49 = icmp eq i32 %48, %10
%50 = zext i1 %49 to i32
%51 = tail call i32 @assert(i32 noundef %50) #2
%52 = shl nsw i32 %1, 1
%53 = icmp sgt i32 %1, 0
br i1 %53, label %54, label %77
54: ; preds = %33
%55 = getelementptr inbounds i8, ptr %0, i64 32
%56 = load ptr, ptr %55, align 8, !tbaa !21
%57 = zext nneg i32 %52 to i64
%58 = getelementptr inbounds i32, ptr %56, i64 %57
%59 = zext nneg i32 %1 to i64
br label %60
60: ; preds = %54, %60
%61 = phi i64 [ %59, %54 ], [ %64, %60 ]
%62 = phi ptr [ %58, %54 ], [ %67, %60 ]
%63 = phi i32 [ %10, %54 ], [ %69, %60 ]
%64 = add nsw i64 %61, -1
%65 = getelementptr inbounds i64, ptr %3, i64 %64
%66 = load i64, ptr %65, align 8, !tbaa !22
%67 = getelementptr inbounds i8, ptr %62, i64 -8
%68 = trunc i64 %66 to i32
%69 = sub i32 %63, %68
%70 = tail call i32 @put2byte(ptr noundef nonnull %67, i32 noundef %69) #2
%71 = sext i32 %69 to i64
%72 = getelementptr inbounds i32, ptr %6, i64 %71
%73 = getelementptr inbounds ptr, ptr %2, i64 %64
%74 = load ptr, ptr %73, align 8, !tbaa !23
%75 = tail call i32 @memcpy(ptr noundef %72, ptr noundef %74, i64 noundef %66) #2
%76 = icmp ugt i64 %61, 1
br i1 %76, label %60, label %77, !llvm.loop !24
77: ; preds = %60, %33
%78 = phi i32 [ %10, %33 ], [ %69, %60 ]
%79 = getelementptr i8, ptr %46, i64 12
%80 = tail call i32 @put2byte(ptr noundef %79, i32 noundef %1) #2
%81 = tail call i32 @put2byte(ptr noundef %47, i32 noundef %78) #2
%82 = add i32 %10, %52
%83 = sub i32 %78, %82
%84 = getelementptr inbounds i8, ptr %0, i64 24
%85 = load i32, ptr %84, align 8, !tbaa !26
%86 = add i32 %83, %85
store i32 %86, ptr %84, align 8, !tbaa !26
%87 = sext i32 %1 to i64
store i64 %87, ptr %40, align 8, !tbaa !20
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3_mutex_held(i32 noundef) local_unnamed_addr #1
declare i64 @MX_CELL(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3PagerIswriteable(i32 noundef) local_unnamed_addr #1
declare i32 @get2byteNotZero(ptr noundef) local_unnamed_addr #1
declare i32 @put2byte(ptr noundef, i32 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, !12, i64 56}
!7 = !{!"TYPE_4__", !8, i64 0, !11, i64 8, !11, i64 16, !8, i64 24, !12, i64 32, !8, i64 40, !12, i64 48, !12, i64 56}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!7, !12, i64 48}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_5__", !8, i64 0, !8, i64 4}
!17 = !{!7, !11, i64 8}
!18 = !{!16, !8, i64 4}
!19 = !{!7, !8, i64 40}
!20 = !{!7, !11, i64 16}
!21 = !{!7, !12, i64 32}
!22 = !{!11, !11, i64 0}
!23 = !{!12, !12, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!7, !8, i64 24}
| mongoose_examples_api_server_extr_sqlite3.c_assemblePage |
; ModuleID = 'AnghaBench/linux/drivers/virt/vboxguest/extr_vboxguest_core.c_vbg_core_open_session.c'
source_filename = "AnghaBench/linux/drivers/virt/vboxguest/extr_vboxguest_core.c_vbg_core_open_session.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.vbg_session = type { i32, ptr }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @vbg_core_open_session(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%4 = tail call ptr @kzalloc(i32 noundef 16, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%8 = sub nsw i32 0, %7
%9 = tail call ptr @ERR_PTR(i32 noundef %8) #2
br label %12
10: ; preds = %2
%11 = getelementptr inbounds %struct.vbg_session, ptr %4, i64 0, i32 1
store ptr %0, ptr %11, align 8, !tbaa !9
store i32 %1, ptr %4, align 8, !tbaa !12
br label %12
12: ; preds = %10, %6
%13 = phi ptr [ %4, %10 ], [ %9, %6 ]
ret ptr %13
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(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, !11, i64 8}
!10 = !{!"vbg_session", !6, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/virt/vboxguest/extr_vboxguest_core.c_vbg_core_open_session.c'
source_filename = "AnghaBench/linux/drivers/virt/vboxguest/extr_vboxguest_core.c_vbg_core_open_session.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
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @vbg_core_open_session(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%4 = tail call ptr @kzalloc(i32 noundef 16, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%8 = sub nsw i32 0, %7
%9 = tail call ptr @ERR_PTR(i32 noundef %8) #2
br label %12
10: ; preds = %2
%11 = getelementptr inbounds i8, ptr %4, i64 8
store ptr %0, ptr %11, align 8, !tbaa !10
store i32 %1, ptr %4, align 8, !tbaa !13
br label %12
12: ; preds = %10, %6
%13 = phi ptr [ %4, %10 ], [ %9, %6 ]
ret ptr %13
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(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, !12, i64 8}
!11 = !{!"vbg_session", !7, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !7, i64 0}
| linux_drivers_virt_vboxguest_extr_vboxguest_core.c_vbg_core_open_session |
; ModuleID = 'AnghaBench/freebsd/bin/pax/extr_buf_subs.c_cp_start.c'
source_filename = "AnghaBench/freebsd/bin/pax/extr_buf_subs.c_cp_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"
@bufmem = dso_local local_unnamed_addr global ptr null, align 8
@BLKMULT = dso_local local_unnamed_addr global i64 0, align 8
@buf = dso_local local_unnamed_addr global ptr null, align 8
@MAXBLK = dso_local local_unnamed_addr global i32 0, align 4
@blksz = dso_local local_unnamed_addr global i32 0, align 4
@rdblksz = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @cp_start() local_unnamed_addr #0 {
%1 = load ptr, ptr @bufmem, align 8, !tbaa !5
%2 = load i64, ptr @BLKMULT, align 8, !tbaa !9
%3 = getelementptr inbounds i32, ptr %1, i64 %2
store ptr %3, ptr @buf, align 8, !tbaa !5
%4 = load i32, ptr @MAXBLK, align 4, !tbaa !11
store i32 %4, ptr @blksz, align 4, !tbaa !11
store i32 %4, ptr @rdblksz, align 4, !tbaa !11
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 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}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/bin/pax/extr_buf_subs.c_cp_start.c'
source_filename = "AnghaBench/freebsd/bin/pax/extr_buf_subs.c_cp_start.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@bufmem = common local_unnamed_addr global ptr null, align 8
@BLKMULT = common local_unnamed_addr global i64 0, align 8
@buf = common local_unnamed_addr global ptr null, align 8
@MAXBLK = common local_unnamed_addr global i32 0, align 4
@blksz = common local_unnamed_addr global i32 0, align 4
@rdblksz = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable(sync)
define void @cp_start() local_unnamed_addr #0 {
%1 = load ptr, ptr @bufmem, align 8, !tbaa !6
%2 = load i64, ptr @BLKMULT, align 8, !tbaa !10
%3 = getelementptr inbounds i32, ptr %1, i64 %2
store ptr %3, ptr @buf, align 8, !tbaa !6
%4 = load i32, ptr @MAXBLK, align 4, !tbaa !12
store i32 %4, ptr @blksz, align 4, !tbaa !12
store i32 %4, ptr @rdblksz, align 4, !tbaa !12
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, 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 = !{!"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}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
| freebsd_bin_pax_extr_buf_subs.c_cp_start |
; ModuleID = 'AnghaBench/sumatrapdf/ext/freetype/src/pshinter/extr_pshrec.c_ps_mask_test_bit.c'
source_filename = "AnghaBench/sumatrapdf/ext/freetype/src/pshinter/extr_pshrec.c_ps_mask_test_bit.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, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ps_mask_test_bit], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal i32 @ps_mask_test_bit(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = sext i32 %1 to i64
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = icmp sgt i64 %4, %3
br i1 %5, label %6, label %16
6: ; preds = %2
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !11
%9 = ashr i32 %1, 3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, ptr %8, i64 %10
%12 = load i32, ptr %11, align 4, !tbaa !12
%13 = and i32 %1, 7
%14 = lshr exact i32 128, %13
%15 = and i32 %12, %14
br label %16
16: ; preds = %2, %6
%17 = phi i32 [ %15, %6 ], [ 0, %2 ]
ret i32 %17
}
attributes #0 = { 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 = !{!"TYPE_3__", !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, !10, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/sumatrapdf/ext/freetype/src/pshinter/extr_pshrec.c_ps_mask_test_bit.c'
source_filename = "AnghaBench/sumatrapdf/ext/freetype/src/pshinter/extr_pshrec.c_ps_mask_test_bit.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 @ps_mask_test_bit], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal range(i32 0, 129) i32 @ps_mask_test_bit(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = sext i32 %1 to i64
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = icmp sgt i64 %4, %3
br i1 %5, label %6, label %16
6: ; preds = %2
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !12
%9 = ashr i32 %1, 3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, ptr %8, i64 %10
%12 = load i32, ptr %11, align 4, !tbaa !13
%13 = and i32 %1, 7
%14 = lshr exact i32 128, %13
%15 = and i32 %12, %14
br label %16
16: ; preds = %2, %6
%17 = phi i32 [ %15, %6 ], [ 0, %2 ]
ret i32 %17
}
attributes #0 = { 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 = !{!"TYPE_3__", !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, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !9, i64 0}
| sumatrapdf_ext_freetype_src_pshinter_extr_pshrec.c_ps_mask_test_bit |
; ModuleID = 'AnghaBench/git/extr_path.c_init_common_trie.c'
source_filename = "AnghaBench/git/extr_path.c_init_common_trie.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.common_dir = type { i64 }
@common_trie_done_setup = dso_local local_unnamed_addr global i32 0, align 4
@common_list = dso_local local_unnamed_addr global ptr null, align 8
@common_trie = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @init_common_trie], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @init_common_trie() #0 {
%1 = load i32, ptr @common_trie_done_setup, align 4, !tbaa !5
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %15
3: ; preds = %0
%4 = load ptr, ptr @common_list, align 8, !tbaa !9
%5 = load i64, ptr %4, align 8, !tbaa !11
%6 = icmp eq i64 %5, 0
br i1 %6, label %14, label %7
7: ; preds = %3, %7
%8 = phi i64 [ %12, %7 ], [ %5, %3 ]
%9 = phi ptr [ %11, %7 ], [ %4, %3 ]
%10 = tail call i32 @add_to_trie(ptr noundef nonnull @common_trie, i64 noundef %8, ptr noundef nonnull %9) #2
%11 = getelementptr inbounds %struct.common_dir, ptr %9, i64 1
%12 = load i64, ptr %11, align 8, !tbaa !11
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %7, !llvm.loop !14
14: ; preds = %7, %3
store i32 1, ptr @common_trie_done_setup, align 4, !tbaa !5
br label %15
15: ; preds = %0, %14
ret void
}
declare i32 @add_to_trie(ptr noundef, i64 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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"common_dir", !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/git/extr_path.c_init_common_trie.c'
source_filename = "AnghaBench/git/extr_path.c_init_common_trie.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@common_trie_done_setup = common local_unnamed_addr global i32 0, align 4
@common_list = common local_unnamed_addr global ptr null, align 8
@common_trie = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @init_common_trie], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @init_common_trie() #0 {
%1 = load i32, ptr @common_trie_done_setup, align 4, !tbaa !6
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %15
3: ; preds = %0
%4 = load ptr, ptr @common_list, align 8, !tbaa !10
%5 = load i64, ptr %4, align 8, !tbaa !12
%6 = icmp eq i64 %5, 0
br i1 %6, label %14, label %7
7: ; preds = %3, %7
%8 = phi i64 [ %12, %7 ], [ %5, %3 ]
%9 = phi ptr [ %11, %7 ], [ %4, %3 ]
%10 = tail call i32 @add_to_trie(ptr noundef nonnull @common_trie, i64 noundef %8, ptr noundef nonnull %9) #2
%11 = getelementptr inbounds i8, ptr %9, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !12
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %7, !llvm.loop !15
14: ; preds = %7, %3
store i32 1, ptr @common_trie_done_setup, align 4, !tbaa !6
br label %15
15: ; preds = %0, %14
ret void
}
declare i32 @add_to_trie(ptr noundef, i64 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, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"common_dir", !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
| git_extr_path.c_init_common_trie |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_reg.h_mlxsw_reg_hpkt_pack.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_reg.h_mlxsw_reg_hpkt_pack.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"
@hpkt = dso_local local_unnamed_addr global i32 0, align 4
@MLXSW_REG_HPKT_ACK_NOT_REQUIRED = dso_local local_unnamed_addr global i32 0, align 4
@MLXSW_REG_HPKT_CTRL_PACKET_USE_BUFFER = dso_local local_unnamed_addr global i32 0, align 4
@MLXSW_REG_HPKT_CTRL_PACKET_NO_BUFFER = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mlxsw_reg_hpkt_pack], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @mlxsw_reg_hpkt_pack(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = load i32, ptr @hpkt, align 4, !tbaa !5
%7 = tail call i32 @MLXSW_REG_ZERO(i32 noundef %6, ptr noundef %0) #2
%8 = load i32, ptr @MLXSW_REG_HPKT_ACK_NOT_REQUIRED, align 4, !tbaa !5
%9 = tail call i32 @mlxsw_reg_hpkt_ack_set(ptr noundef %0, i32 noundef %8) #2
%10 = tail call i32 @mlxsw_reg_hpkt_action_set(ptr noundef %0, i32 noundef %1) #2
%11 = tail call i32 @mlxsw_reg_hpkt_trap_group_set(ptr noundef %0, i32 noundef %3) #2
%12 = tail call i32 @mlxsw_reg_hpkt_trap_id_set(ptr noundef %0, i32 noundef %2) #2
%13 = icmp eq i32 %4, 0
%14 = load i32, ptr @MLXSW_REG_HPKT_CTRL_PACKET_USE_BUFFER, align 4
%15 = load i32, ptr @MLXSW_REG_HPKT_CTRL_PACKET_NO_BUFFER, align 4
%16 = select i1 %13, i32 %15, i32 %14
%17 = tail call i32 @mlxsw_reg_hpkt_ctrl_set(ptr noundef %0, i32 noundef %16) #2
ret void
}
declare i32 @MLXSW_REG_ZERO(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_ack_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_action_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_trap_group_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_trap_id_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_ctrl_set(ptr noundef, 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, !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/mlxsw/extr_reg.h_mlxsw_reg_hpkt_pack.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_reg.h_mlxsw_reg_hpkt_pack.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@hpkt = common local_unnamed_addr global i32 0, align 4
@MLXSW_REG_HPKT_ACK_NOT_REQUIRED = common local_unnamed_addr global i32 0, align 4
@MLXSW_REG_HPKT_CTRL_PACKET_USE_BUFFER = common local_unnamed_addr global i32 0, align 4
@MLXSW_REG_HPKT_CTRL_PACKET_NO_BUFFER = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mlxsw_reg_hpkt_pack], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @mlxsw_reg_hpkt_pack(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = load i32, ptr @hpkt, align 4, !tbaa !6
%7 = tail call i32 @MLXSW_REG_ZERO(i32 noundef %6, ptr noundef %0) #2
%8 = load i32, ptr @MLXSW_REG_HPKT_ACK_NOT_REQUIRED, align 4, !tbaa !6
%9 = tail call i32 @mlxsw_reg_hpkt_ack_set(ptr noundef %0, i32 noundef %8) #2
%10 = tail call i32 @mlxsw_reg_hpkt_action_set(ptr noundef %0, i32 noundef %1) #2
%11 = tail call i32 @mlxsw_reg_hpkt_trap_group_set(ptr noundef %0, i32 noundef %3) #2
%12 = tail call i32 @mlxsw_reg_hpkt_trap_id_set(ptr noundef %0, i32 noundef %2) #2
%13 = icmp eq i32 %4, 0
%14 = load i32, ptr @MLXSW_REG_HPKT_CTRL_PACKET_USE_BUFFER, align 4
%15 = load i32, ptr @MLXSW_REG_HPKT_CTRL_PACKET_NO_BUFFER, align 4
%16 = select i1 %13, i32 %15, i32 %14
%17 = tail call i32 @mlxsw_reg_hpkt_ctrl_set(ptr noundef %0, i32 noundef %16) #2
ret void
}
declare i32 @MLXSW_REG_ZERO(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_ack_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_action_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_trap_group_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_trap_id_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_reg_hpkt_ctrl_set(ptr noundef, 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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_ethernet_mellanox_mlxsw_extr_reg.h_mlxsw_reg_hpkt_pack |
; ModuleID = 'AnghaBench/linux/drivers/cpufreq/extr_cpufreq.c_cpufreq_driver_fast_switch.c'
source_filename = "AnghaBench/linux/drivers/cpufreq/extr_cpufreq.c_cpufreq_driver_fast_switch.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.cpufreq_policy = type { i32, i32 }
@cpufreq_driver = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local i32 @cpufreq_driver_fast_switch(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.cpufreq_policy, ptr %0, i64 0, i32 1
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = load i32, ptr %0, align 4, !tbaa !10
%6 = tail call i32 @clamp_val(i32 noundef %1, i32 noundef %4, i32 noundef %5) #2
%7 = load ptr, ptr @cpufreq_driver, align 8, !tbaa !11
%8 = load ptr, ptr %7, align 8, !tbaa !13
%9 = tail call i32 %8(ptr noundef nonnull %0, i32 noundef %6) #2
ret i32 %9
}
declare i32 @clamp_val(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, !7, i64 4}
!6 = !{!"cpufreq_policy", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_2__", !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/cpufreq/extr_cpufreq.c_cpufreq_driver_fast_switch.c'
source_filename = "AnghaBench/linux/drivers/cpufreq/extr_cpufreq.c_cpufreq_driver_fast_switch.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@cpufreq_driver = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @cpufreq_driver_fast_switch(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 4
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = load i32, ptr %0, align 4, !tbaa !11
%6 = tail call i32 @clamp_val(i32 noundef %1, i32 noundef %4, i32 noundef %5) #2
%7 = load ptr, ptr @cpufreq_driver, align 8, !tbaa !12
%8 = load ptr, ptr %7, align 8, !tbaa !14
%9 = tail call i32 %8(ptr noundef nonnull %0, i32 noundef %6) #2
ret i32 %9
}
declare i32 @clamp_val(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, !8, i64 4}
!7 = !{!"cpufreq_policy", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_2__", !13, i64 0}
| linux_drivers_cpufreq_extr_cpufreq.c_cpufreq_driver_fast_switch |
; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_scsi_lib.c_device_resume_fn.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_scsi_lib.c_device_resume_fn.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 @device_resume_fn], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @device_resume_fn(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = tail call i32 @scsi_device_resume(ptr noundef %0) #2
ret void
}
declare i32 @scsi_device_resume(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/linux/drivers/scsi/extr_scsi_lib.c_device_resume_fn.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_scsi_lib.c_device_resume_fn.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 @device_resume_fn], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @device_resume_fn(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = tail call i32 @scsi_device_resume(ptr noundef %0) #2
ret void
}
declare i32 @scsi_device_resume(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)"}
| linux_drivers_scsi_extr_scsi_lib.c_device_resume_fn |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/kldxref/extr_ef_aarch64.c_ef_reloc.c'
source_filename = "AnghaBench/freebsd/usr.sbin/kldxref/extr_ef_aarch64.c_ef_reloc.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_2__ = type { i32, i64, i64 }
@EF_RELOC_RELA = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"unhandled relocation type %lu\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @ef_reloc(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, i32 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6) local_unnamed_addr #0 {
%8 = load i32, ptr @EF_RELOC_RELA, align 4, !tbaa !5
%9 = icmp eq i32 %8, %2
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = load i32, ptr @EINVAL, align 4, !tbaa !5
br label %32
12: ; preds = %7
%13 = ptrtoint ptr %6 to i64
%14 = sub i64 %13, %4
%15 = getelementptr inbounds %struct.TYPE_2__, ptr %1, i64 0, i32 2
%16 = load i64, ptr %15, align 8, !tbaa !9
%17 = add nsw i64 %14, %16
%18 = inttoptr i64 %17 to ptr
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %1, i64 0, i32 1
%20 = load i64, ptr %19, align 8, !tbaa !12
%21 = load i32, ptr %1, align 8, !tbaa !13
%22 = tail call i32 @ELF_R_TYPE(i32 noundef %21) #2
%23 = icmp uge ptr %18, %6
%24 = getelementptr inbounds i8, ptr %6, i64 %5
%25 = icmp ugt ptr %24, %18
%26 = select i1 %23, i1 %25, i1 false
br i1 %26, label %27, label %32
27: ; preds = %12
switch i32 %22, label %30 [
i32 128, label %28
i32 129, label %32
]
28: ; preds = %27
%29 = add nsw i64 %20, %3
store i64 %29, ptr %18, align 8, !tbaa !14
br label %32
30: ; preds = %27
%31 = tail call i32 @warnx(ptr noundef nonnull @.str, i32 noundef %22) #2
br label %32
32: ; preds = %28, %27, %30, %12, %10
%33 = phi i32 [ %11, %10 ], [ 0, %12 ], [ 0, %30 ], [ 0, %27 ], [ 0, %28 ]
ret i32 %33
}
declare i32 @ELF_R_TYPE(i32 noundef) local_unnamed_addr #1
declare i32 @warnx(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"}
!9 = !{!10, !11, i64 16}
!10 = !{!"TYPE_2__", !6, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !6, i64 0}
!14 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/kldxref/extr_ef_aarch64.c_ef_reloc.c'
source_filename = "AnghaBench/freebsd/usr.sbin/kldxref/extr_ef_aarch64.c_ef_reloc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EF_RELOC_RELA = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"unhandled relocation type %lu\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ef_reloc(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, i32 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6) local_unnamed_addr #0 {
%8 = load i32, ptr @EF_RELOC_RELA, align 4, !tbaa !6
%9 = icmp eq i32 %8, %2
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = load i32, ptr @EINVAL, align 4, !tbaa !6
br label %32
12: ; preds = %7
%13 = ptrtoint ptr %6 to i64
%14 = sub i64 %13, %4
%15 = getelementptr inbounds i8, ptr %1, i64 16
%16 = load i64, ptr %15, align 8, !tbaa !10
%17 = add nsw i64 %14, %16
%18 = inttoptr i64 %17 to ptr
%19 = getelementptr inbounds i8, ptr %1, i64 8
%20 = load i64, ptr %19, align 8, !tbaa !13
%21 = load i32, ptr %1, align 8, !tbaa !14
%22 = tail call i32 @ELF_R_TYPE(i32 noundef %21) #2
%23 = icmp uge ptr %18, %6
%24 = getelementptr inbounds i8, ptr %6, i64 %5
%25 = icmp ugt ptr %24, %18
%26 = select i1 %23, i1 %25, i1 false
br i1 %26, label %27, label %32
27: ; preds = %12
switch i32 %22, label %30 [
i32 128, label %28
i32 129, label %32
]
28: ; preds = %27
%29 = add nsw i64 %20, %3
store i64 %29, ptr %18, align 8, !tbaa !15
br label %32
30: ; preds = %27
%31 = tail call i32 @warnx(ptr noundef nonnull @.str, i32 noundef %22) #2
br label %32
32: ; preds = %28, %27, %30, %12, %10
%33 = phi i32 [ %11, %10 ], [ 0, %12 ], [ 0, %30 ], [ 0, %27 ], [ 0, %28 ]
ret i32 %33
}
declare i32 @ELF_R_TYPE(i32 noundef) local_unnamed_addr #1
declare i32 @warnx(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"}
!10 = !{!11, !12, i64 16}
!11 = !{!"TYPE_2__", !7, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !12, i64 8}
!14 = !{!11, !7, i64 0}
!15 = !{!12, !12, i64 0}
| freebsd_usr.sbin_kldxref_extr_ef_aarch64.c_ef_reloc |
; ModuleID = 'AnghaBench/RetroArch/gfx/drivers/extr_vulkan.c_vulkan_readback.c'
source_filename = "AnghaBench/RetroArch/gfx/drivers/extr_vulkan.c_vulkan_readback.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_19__ = type { %struct.TYPE_22__, %struct.TYPE_21__, %struct.TYPE_20__ }
%struct.TYPE_22__ = type { i32, i32, i32 }
%struct.TYPE_21__ = type { i32, i32 }
%struct.TYPE_20__ = type { i32, i32 }
%struct.video_viewport = type { i32, i32, i32, i32 }
%struct.TYPE_18__ = type { i32, i32, i32 }
%struct.TYPE_28__ = type { i32, ptr, %struct.TYPE_25__, ptr, %struct.TYPE_23__ }
%struct.TYPE_25__ = type { i32, i32 }
%struct.TYPE_23__ = type { ptr }
%struct.vk_texture = type { i64, i32 }
@VK_STRUCTURE_TYPE_MEMORY_BARRIER = dso_local local_unnamed_addr global i32 0, align 4
@VK_IMAGE_ASPECT_COLOR_BIT = dso_local local_unnamed_addr global i32 0, align 4
@VK_NULL_HANDLE = dso_local local_unnamed_addr global i64 0, align 8
@VK_FORMAT_B8G8R8A8_UNORM = dso_local local_unnamed_addr global i32 0, align 4
@VULKAN_TEXTURE_READBACK = dso_local local_unnamed_addr global i32 0, align 4
@VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = dso_local local_unnamed_addr global i32 0, align 4
@VK_ACCESS_TRANSFER_WRITE_BIT = dso_local local_unnamed_addr global i32 0, align 4
@VK_ACCESS_HOST_READ_BIT = dso_local local_unnamed_addr global i32 0, align 4
@VK_PIPELINE_STAGE_TRANSFER_BIT = dso_local local_unnamed_addr global i32 0, align 4
@VK_PIPELINE_STAGE_HOST_BIT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @vulkan_readback], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @vulkan_readback(ptr noundef %0) #0 {
%2 = alloca %struct.TYPE_19__, align 4
%3 = alloca %struct.video_viewport, align 16
%4 = alloca %struct.TYPE_18__, align 4
call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %2) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #3
%5 = getelementptr inbounds %struct.TYPE_18__, ptr %4, i64 0, i32 1
%6 = getelementptr inbounds %struct.TYPE_18__, ptr %4, i64 0, i32 2
store i32 0, ptr %6, align 4, !tbaa !5
%7 = call i32 @vulkan_viewport_info(ptr noundef %0, ptr noundef nonnull %3) #3
%8 = call i32 @memset(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 28) #3
%9 = load i32, ptr @VK_IMAGE_ASPECT_COLOR_BIT, align 4, !tbaa !10
%10 = getelementptr inbounds %struct.TYPE_19__, ptr %2, i64 0, i32 2
%11 = getelementptr inbounds %struct.TYPE_19__, ptr %2, i64 0, i32 2, i32 1
store i32 %9, ptr %11, align 4, !tbaa !11
store i32 1, ptr %10, align 4, !tbaa !16
%12 = getelementptr inbounds %struct.TYPE_22__, ptr %2, i64 0, i32 1
%13 = load <4 x i32>, ptr %3, align 16, !tbaa !10
store <4 x i32> %13, ptr %12, align 4, !tbaa !10
store i32 1, ptr %2, align 4, !tbaa !17
%14 = getelementptr inbounds %struct.TYPE_28__, ptr %0, i64 0, i32 4
%15 = load ptr, ptr %14, align 8, !tbaa !18
%16 = getelementptr inbounds %struct.TYPE_28__, ptr %0, i64 0, i32 3
%17 = load ptr, ptr %16, align 8, !tbaa !23
%18 = load i64, ptr %17, align 8, !tbaa !24
%19 = getelementptr inbounds %struct.vk_texture, ptr %15, i64 %18
%20 = load i64, ptr %19, align 8, !tbaa !27
%21 = load i64, ptr @VK_NULL_HANDLE, align 8, !tbaa !29
%22 = icmp eq i64 %20, %21
%23 = select i1 %22, ptr null, ptr %19
%24 = getelementptr inbounds %struct.TYPE_28__, ptr %0, i64 0, i32 2
%25 = getelementptr inbounds %struct.TYPE_28__, ptr %0, i64 0, i32 2, i32 1
%26 = load i32, ptr %25, align 4, !tbaa !30
%27 = load i32, ptr %24, align 8, !tbaa !31
%28 = load i32, ptr @VK_FORMAT_B8G8R8A8_UNORM, align 4, !tbaa !10
%29 = load i32, ptr @VULKAN_TEXTURE_READBACK, align 4, !tbaa !10
%30 = call { i64, i32 } @vulkan_create_texture(ptr noundef %0, ptr noundef %23, i32 noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef null, ptr noundef null, i32 noundef %29) #3
%31 = extractvalue { i64, i32 } %30, 0
%32 = extractvalue { i64, i32 } %30, 1
store i64 %31, ptr %19, align 8, !tbaa.struct !32
%33 = getelementptr inbounds i8, ptr %19, i64 8
store i32 %32, ptr %33, align 8, !tbaa.struct !33
%34 = load i32, ptr %0, align 8, !tbaa !34
%35 = getelementptr inbounds %struct.TYPE_28__, ptr %0, i64 0, i32 1
%36 = load ptr, ptr %35, align 8, !tbaa !35
%37 = load i32, ptr %36, align 4, !tbaa !36
%38 = load i32, ptr @VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, align 4, !tbaa !10
%39 = call i32 @vkCmdCopyImageToBuffer(i32 noundef %34, i32 noundef %37, i32 noundef %38, i32 noundef %32, i32 noundef 1, ptr noundef nonnull %2) #3
%40 = load i32, ptr @VK_ACCESS_TRANSFER_WRITE_BIT, align 4, !tbaa !10
store i32 %40, ptr %5, align 4, !tbaa !39
%41 = load i32, ptr @VK_ACCESS_HOST_READ_BIT, align 4, !tbaa !10
store i32 %41, ptr %4, align 4, !tbaa !40
%42 = load i32, ptr %0, align 8, !tbaa !34
%43 = load i32, ptr @VK_PIPELINE_STAGE_TRANSFER_BIT, align 4, !tbaa !10
%44 = load i32, ptr @VK_PIPELINE_STAGE_HOST_BIT, align 4, !tbaa !10
%45 = call i32 @vkCmdPipelineBarrier(i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef 0, i32 noundef 1, ptr noundef nonnull %4, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null) #3
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 28, 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 @vulkan_viewport_info(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare { i64, i32 } @vulkan_create_texture(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, 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
declare i32 @vkCmdCopyImageToBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @vkCmdPipelineBarrier(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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_18__", !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 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 24}
!12 = !{!"TYPE_19__", !13, i64 0, !14, i64 12, !15, i64 20}
!13 = !{!"TYPE_22__", !7, i64 0, !7, i64 4, !7, i64 8}
!14 = !{!"TYPE_21__", !7, i64 0, !7, i64 4}
!15 = !{!"TYPE_20__", !7, i64 0, !7, i64 4}
!16 = !{!12, !7, i64 20}
!17 = !{!12, !7, i64 0}
!18 = !{!19, !20, i64 32}
!19 = !{!"TYPE_28__", !7, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32}
!20 = !{!"any pointer", !8, i64 0}
!21 = !{!"TYPE_25__", !7, i64 0, !7, i64 4}
!22 = !{!"TYPE_23__", !20, i64 0}
!23 = !{!19, !20, i64 24}
!24 = !{!25, !26, i64 0}
!25 = !{!"TYPE_24__", !26, i64 0}
!26 = !{!"long", !8, i64 0}
!27 = !{!28, !26, i64 0}
!28 = !{!"vk_texture", !26, i64 0, !7, i64 8}
!29 = !{!26, !26, i64 0}
!30 = !{!19, !7, i64 20}
!31 = !{!19, !7, i64 16}
!32 = !{i64 0, i64 8, !29, i64 8, i64 4, !10}
!33 = !{i64 0, i64 4, !10}
!34 = !{!19, !7, i64 0}
!35 = !{!19, !20, i64 8}
!36 = !{!37, !7, i64 0}
!37 = !{!"TYPE_27__", !38, i64 0}
!38 = !{!"TYPE_26__", !7, i64 0}
!39 = !{!6, !7, i64 4}
!40 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/RetroArch/gfx/drivers/extr_vulkan.c_vulkan_readback.c'
source_filename = "AnghaBench/RetroArch/gfx/drivers/extr_vulkan.c_vulkan_readback.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_19__ = type { %struct.TYPE_22__, %struct.TYPE_21__, %struct.TYPE_20__ }
%struct.TYPE_22__ = type { i32, i32, i32 }
%struct.TYPE_21__ = type { i32, i32 }
%struct.TYPE_20__ = type { i32, i32 }
%struct.video_viewport = type { i32, i32, i32, i32 }
%struct.TYPE_18__ = type { i32, i32, i32 }
%struct.vk_texture = type { i64, i32 }
@VK_STRUCTURE_TYPE_MEMORY_BARRIER = common local_unnamed_addr global i32 0, align 4
@VK_IMAGE_ASPECT_COLOR_BIT = common local_unnamed_addr global i32 0, align 4
@VK_NULL_HANDLE = common local_unnamed_addr global i64 0, align 8
@VK_FORMAT_B8G8R8A8_UNORM = common local_unnamed_addr global i32 0, align 4
@VULKAN_TEXTURE_READBACK = common local_unnamed_addr global i32 0, align 4
@VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = common local_unnamed_addr global i32 0, align 4
@VK_ACCESS_TRANSFER_WRITE_BIT = common local_unnamed_addr global i32 0, align 4
@VK_ACCESS_HOST_READ_BIT = common local_unnamed_addr global i32 0, align 4
@VK_PIPELINE_STAGE_TRANSFER_BIT = common local_unnamed_addr global i32 0, align 4
@VK_PIPELINE_STAGE_HOST_BIT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @vulkan_readback], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @vulkan_readback(ptr noundef %0) #0 {
%2 = alloca %struct.TYPE_19__, align 4
%3 = alloca %struct.video_viewport, align 16
%4 = alloca %struct.TYPE_18__, align 4
call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %2) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #3
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = getelementptr inbounds i8, ptr %4, i64 8
store i32 0, ptr %6, align 4, !tbaa !6
%7 = call i32 @vulkan_viewport_info(ptr noundef %0, ptr noundef nonnull %3) #3
%8 = call i32 @memset(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 28) #3
%9 = load i32, ptr @VK_IMAGE_ASPECT_COLOR_BIT, align 4, !tbaa !11
%10 = getelementptr inbounds i8, ptr %2, i64 20
%11 = getelementptr inbounds i8, ptr %2, i64 24
store i32 %9, ptr %11, align 4, !tbaa !12
store i32 1, ptr %10, align 4, !tbaa !17
%12 = getelementptr inbounds i8, ptr %2, i64 4
%13 = load <4 x i32>, ptr %3, align 16, !tbaa !11
store <4 x i32> %13, ptr %12, align 4, !tbaa !11
store i32 1, ptr %2, align 4, !tbaa !18
%14 = getelementptr inbounds i8, ptr %0, i64 32
%15 = load ptr, ptr %14, align 8, !tbaa !19
%16 = getelementptr inbounds i8, ptr %0, i64 24
%17 = load ptr, ptr %16, align 8, !tbaa !24
%18 = load i64, ptr %17, align 8, !tbaa !25
%19 = getelementptr inbounds %struct.vk_texture, ptr %15, i64 %18
%20 = load i64, ptr %19, align 8, !tbaa !28
%21 = load i64, ptr @VK_NULL_HANDLE, align 8, !tbaa !30
%22 = icmp eq i64 %20, %21
%23 = select i1 %22, ptr null, ptr %19
%24 = getelementptr inbounds i8, ptr %0, i64 16
%25 = getelementptr inbounds i8, ptr %0, i64 20
%26 = load i32, ptr %25, align 4, !tbaa !31
%27 = load i32, ptr %24, align 8, !tbaa !32
%28 = load i32, ptr @VK_FORMAT_B8G8R8A8_UNORM, align 4, !tbaa !11
%29 = load i32, ptr @VULKAN_TEXTURE_READBACK, align 4, !tbaa !11
%30 = call [2 x i64] @vulkan_create_texture(ptr noundef %0, ptr noundef %23, i32 noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef null, ptr noundef null, i32 noundef %29) #3
%31 = extractvalue [2 x i64] %30, 0
%32 = extractvalue [2 x i64] %30, 1
store i64 %31, ptr %19, align 8, !tbaa !30
%33 = getelementptr inbounds i8, ptr %19, i64 8
store i64 %32, ptr %33, align 8
%34 = load i32, ptr %0, align 8, !tbaa !33
%35 = getelementptr inbounds i8, ptr %0, i64 8
%36 = load ptr, ptr %35, align 8, !tbaa !34
%37 = load i32, ptr %36, align 4, !tbaa !35
%38 = load i32, ptr @VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, align 4, !tbaa !11
%39 = trunc i64 %32 to i32
%40 = call i32 @vkCmdCopyImageToBuffer(i32 noundef %34, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef 1, ptr noundef nonnull %2) #3
%41 = load i32, ptr @VK_ACCESS_TRANSFER_WRITE_BIT, align 4, !tbaa !11
store i32 %41, ptr %5, align 4, !tbaa !38
%42 = load i32, ptr @VK_ACCESS_HOST_READ_BIT, align 4, !tbaa !11
store i32 %42, ptr %4, align 4, !tbaa !39
%43 = load i32, ptr %0, align 8, !tbaa !33
%44 = load i32, ptr @VK_PIPELINE_STAGE_TRANSFER_BIT, align 4, !tbaa !11
%45 = load i32, ptr @VK_PIPELINE_STAGE_HOST_BIT, align 4, !tbaa !11
%46 = call i32 @vkCmdPipelineBarrier(i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef 0, i32 noundef 1, ptr noundef nonnull %4, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null) #3
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 28, 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 @vulkan_viewport_info(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare [2 x i64] @vulkan_create_texture(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, 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
declare i32 @vkCmdCopyImageToBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @vkCmdPipelineBarrier(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) 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, !8, i64 8}
!7 = !{!"TYPE_18__", !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 = !{!8, !8, i64 0}
!12 = !{!13, !8, i64 24}
!13 = !{!"TYPE_19__", !14, i64 0, !15, i64 12, !16, i64 20}
!14 = !{!"TYPE_22__", !8, i64 0, !8, i64 4, !8, i64 8}
!15 = !{!"TYPE_21__", !8, i64 0, !8, i64 4}
!16 = !{!"TYPE_20__", !8, i64 0, !8, i64 4}
!17 = !{!13, !8, i64 20}
!18 = !{!13, !8, i64 0}
!19 = !{!20, !21, i64 32}
!20 = !{!"TYPE_28__", !8, i64 0, !21, i64 8, !22, i64 16, !21, i64 24, !23, i64 32}
!21 = !{!"any pointer", !9, i64 0}
!22 = !{!"TYPE_25__", !8, i64 0, !8, i64 4}
!23 = !{!"TYPE_23__", !21, i64 0}
!24 = !{!20, !21, i64 24}
!25 = !{!26, !27, i64 0}
!26 = !{!"TYPE_24__", !27, i64 0}
!27 = !{!"long", !9, i64 0}
!28 = !{!29, !27, i64 0}
!29 = !{!"vk_texture", !27, i64 0, !8, i64 8}
!30 = !{!27, !27, i64 0}
!31 = !{!20, !8, i64 20}
!32 = !{!20, !8, i64 16}
!33 = !{!20, !8, i64 0}
!34 = !{!20, !21, i64 8}
!35 = !{!36, !8, i64 0}
!36 = !{!"TYPE_27__", !37, i64 0}
!37 = !{!"TYPE_26__", !8, i64 0}
!38 = !{!7, !8, i64 4}
!39 = !{!7, !8, i64 0}
| RetroArch_gfx_drivers_extr_vulkan.c_vulkan_readback |
; ModuleID = 'AnghaBench/RetroArch/wii/libogc/lwbt/extr_bte.c_bte_process_data.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/lwbt/extr_bte.c_bte_process_data.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.bte_pcb = type { i32, ptr }
@.str = private unnamed_addr constant [22 x i8] c"bte_process_data(%p)\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @bte_process_data], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bte_process_data(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = tail call i32 @LOG(ptr noundef nonnull @.str, ptr noundef %0) #2
%6 = icmp eq i32 %1, 130
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = getelementptr inbounds %struct.bte_pcb, ptr %0, i64 0, i32 1
%9 = load ptr, ptr %8, align 8, !tbaa !5
%10 = icmp eq ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %7
%12 = load i32, ptr %0, align 8, !tbaa !11
%13 = tail call i32 %9(i32 noundef %12, ptr noundef %2, i32 noundef %3) #2
br label %14
14: ; preds = %4, %7, %11
ret void
}
declare i32 @LOG(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, !10, i64 8}
!6 = !{!"bte_pcb", !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, !7, i64 0}
| ; ModuleID = 'AnghaBench/RetroArch/wii/libogc/lwbt/extr_bte.c_bte_process_data.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/lwbt/extr_bte.c_bte_process_data.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 [22 x i8] c"bte_process_data(%p)\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @bte_process_data], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bte_process_data(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = tail call i32 @LOG(ptr noundef nonnull @.str, ptr noundef %0) #2
%6 = icmp eq i32 %1, 130
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = getelementptr inbounds i8, ptr %0, i64 8
%9 = load ptr, ptr %8, align 8, !tbaa !6
%10 = icmp eq ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %7
%12 = load i32, ptr %0, align 8, !tbaa !12
%13 = tail call i32 %9(i32 noundef %12, ptr noundef %2, i32 noundef %3) #2
br label %14
14: ; preds = %4, %7, %11
ret void
}
declare i32 @LOG(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, !11, i64 8}
!7 = !{!"bte_pcb", !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, !8, i64 0}
| RetroArch_wii_libogc_lwbt_extr_bte.c_bte_process_data |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/x86/kernel/extr_resource.c_arch_remove_reservations.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/x86/kernel/extr_resource.c_arch_remove_reservations.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.resource = type { i32, i64 }
@IORESOURCE_MEM = dso_local local_unnamed_addr global i32 0, align 4
@BIOS_END = dso_local local_unnamed_addr global i64 0, align 8
@BIOS_ROM_BASE = dso_local local_unnamed_addr global i32 0, align 4
@BIOS_ROM_END = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @arch_remove_reservations(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr @IORESOURCE_MEM, align 4, !tbaa !11
%4 = and i32 %3, %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %17, label %6
6: ; preds = %1
%7 = getelementptr inbounds %struct.resource, ptr %0, i64 0, i32 1
%8 = load i64, ptr %7, align 8, !tbaa !12
%9 = load i64, ptr @BIOS_END, align 8, !tbaa !13
%10 = icmp slt i64 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %6
store i64 %9, ptr %7, align 8, !tbaa !12
br label %12
12: ; preds = %11, %6
%13 = load i32, ptr @BIOS_ROM_BASE, align 4, !tbaa !11
%14 = load i32, ptr @BIOS_ROM_END, align 4, !tbaa !11
%15 = tail call i32 @resource_clip(ptr noundef nonnull %0, i32 noundef %13, i32 noundef %14) #2
%16 = tail call i32 @remove_e820_regions(ptr noundef nonnull %0) #2
br label %17
17: ; preds = %12, %1
ret void
}
declare i32 @resource_clip(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @remove_e820_regions(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 = !{!"resource", !7, i64 0, !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 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/x86/kernel/extr_resource.c_arch_remove_reservations.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/x86/kernel/extr_resource.c_arch_remove_reservations.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IORESOURCE_MEM = common local_unnamed_addr global i32 0, align 4
@BIOS_END = common local_unnamed_addr global i64 0, align 8
@BIOS_ROM_BASE = common local_unnamed_addr global i32 0, align 4
@BIOS_ROM_END = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @arch_remove_reservations(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr @IORESOURCE_MEM, align 4, !tbaa !12
%4 = and i32 %3, %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %17, label %6
6: ; preds = %1
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load i64, ptr %7, align 8, !tbaa !13
%9 = load i64, ptr @BIOS_END, align 8, !tbaa !14
%10 = icmp slt i64 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %6
store i64 %9, ptr %7, align 8, !tbaa !13
br label %12
12: ; preds = %11, %6
%13 = load i32, ptr @BIOS_ROM_BASE, align 4, !tbaa !12
%14 = load i32, ptr @BIOS_ROM_END, align 4, !tbaa !12
%15 = tail call i32 @resource_clip(ptr noundef nonnull %0, i32 noundef %13, i32 noundef %14) #2
%16 = tail call i32 @remove_e820_regions(ptr noundef nonnull %0) #2
br label %17
17: ; preds = %12, %1
ret void
}
declare i32 @resource_clip(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @remove_e820_regions(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 = !{!"resource", !8, i64 0, !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 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
!14 = !{!11, !11, i64 0}
| fastsocket_kernel_arch_x86_kernel_extr_resource.c_arch_remove_reservations |
; ModuleID = 'AnghaBench/freebsd/lib/msun/src/extr_s_cbrtf.c_cbrtf.c'
source_filename = "AnghaBench/freebsd/lib/msun/src/extr_s_cbrtf.c_cbrtf.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"
@B2 = dso_local local_unnamed_addr global i32 0, align 4
@B1 = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
define dso_local noundef float @cbrtf(float noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @GET_FLOAT_WORD(i32 noundef undef, float noundef %0) #2
%3 = fadd float %0, %0
ret float %3
}
declare i32 @GET_FLOAT_WORD(i32 noundef, float noundef) local_unnamed_addr #1
attributes #0 = { mustprogress nofree 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 = { "no-trapping-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/freebsd/lib/msun/src/extr_s_cbrtf.c_cbrtf.c'
source_filename = "AnghaBench/freebsd/lib/msun/src/extr_s_cbrtf.c_cbrtf.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@B2 = common local_unnamed_addr global i32 0, align 4
@B1 = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree nosync nounwind ssp willreturn memory(none) uwtable(sync)
define noundef float @cbrtf(float noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @GET_FLOAT_WORD(i32 noundef undef, float noundef %0) #2
%3 = fadd float %0, %0
ret float %3
}
declare i32 @GET_FLOAT_WORD(i32 noundef, float noundef) local_unnamed_addr #1
attributes #0 = { mustprogress nofree 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 = { "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)"}
| freebsd_lib_msun_src_extr_s_cbrtf.c_cbrtf |
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_proresdec2.c_unpack_alpha.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_proresdec2.c_unpack_alpha.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 @unpack_alpha], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @unpack_alpha(ptr noundef %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = shl nsw i32 -1, %3
%7 = xor i32 %6, -1
%8 = icmp eq i32 %3, 16
%9 = select i1 %8, i32 7, i32 4
%10 = icmp eq i32 %4, 10
%11 = sext i32 %2 to i64
br label %12
12: ; preds = %111, %5
%13 = phi i32 [ 0, %5 ], [ %112, %111 ]
%14 = phi i32 [ %7, %5 ], [ %36, %111 ]
%15 = sext i32 %13 to i64
%16 = add nsw i32 %13, 1
%17 = tail call i32 @llvm.smax.i32(i32 %2, i32 %16)
br label %18
18: ; preds = %55, %12
%19 = phi i64 [ %50, %55 ], [ %15, %12 ]
%20 = phi i32 [ %36, %55 ], [ %14, %12 ]
%21 = tail call i64 @get_bits1(ptr noundef %0) #3
%22 = icmp eq i64 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %18
%24 = tail call i32 @get_bits(ptr noundef %0, i32 noundef %3) #3
br label %33
25: ; preds = %18
%26 = tail call i32 @get_bits(ptr noundef %0, i32 noundef %9) #3
%27 = and i32 %26, 1
%28 = add nsw i32 %26, 2
%29 = ashr i32 %28, 1
%30 = icmp eq i32 %27, 0
%31 = sub nsw i32 0, %29
%32 = select i1 %30, i32 %29, i32 %31
br label %33
33: ; preds = %25, %23
%34 = phi i32 [ %24, %23 ], [ %32, %25 ]
%35 = add nsw i32 %34, %20
%36 = and i32 %35, %7
%37 = getelementptr inbounds i32, ptr %1, i64 %19
br i1 %8, label %38, label %43
38: ; preds = %33
br i1 %10, label %39, label %41
39: ; preds = %38
%40 = tail call i32 @ALPHA_SHIFT_16_TO_10(i32 noundef %36) #3
br label %48
41: ; preds = %38
%42 = tail call i32 @ALPHA_SHIFT_16_TO_12(i32 noundef %36) #3
br label %48
43: ; preds = %33
br i1 %10, label %44, label %46
44: ; preds = %43
%45 = tail call i32 @ALPHA_SHIFT_8_TO_10(i32 noundef %36) #3
br label %48
46: ; preds = %43
%47 = tail call i32 @ALPHA_SHIFT_8_TO_12(i32 noundef %36) #3
br label %48
48: ; preds = %44, %46, %39, %41
%49 = phi i32 [ %45, %44 ], [ %47, %46 ], [ %40, %39 ], [ %42, %41 ]
store i32 %49, ptr %37, align 4, !tbaa !5
%50 = add nsw i64 %19, 1
%51 = icmp slt i64 %50, %11
br i1 %51, label %52, label %62
52: ; preds = %48
%53 = tail call i64 @get_bits_left(ptr noundef %0) #3
%54 = icmp sgt i64 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = tail call i64 @get_bits1(ptr noundef %0) #3
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %18, !llvm.loop !9
58: ; preds = %52
%59 = trunc i64 %50 to i32
br label %62
60: ; preds = %55
%61 = trunc i64 %50 to i32
br label %62
62: ; preds = %48, %60, %58
%63 = phi i32 [ %59, %58 ], [ %61, %60 ], [ %17, %48 ]
%64 = tail call i32 @get_bits(ptr noundef %0, i32 noundef 4) #3
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = tail call i32 @get_bits(ptr noundef %0, i32 noundef 11) #3
br label %68
68: ; preds = %66, %62
%69 = phi i32 [ %64, %62 ], [ %67, %66 ]
%70 = add nsw i32 %69, %63
%71 = icmp sgt i32 %70, %2
%72 = sub nsw i32 %2, %63
%73 = select i1 %71, i32 %72, i32 %69
%74 = icmp sgt i32 %73, 0
br i1 %8, label %78, label %75
75: ; preds = %68
br i1 %74, label %76, label %111
76: ; preds = %75
%77 = sext i32 %63 to i64
br label %94
78: ; preds = %68
br i1 %74, label %79, label %111
79: ; preds = %78
%80 = sext i32 %63 to i64
br label %81
81: ; preds = %79, %88
%82 = phi i64 [ %80, %79 ], [ %91, %88 ]
%83 = phi i32 [ 0, %79 ], [ %92, %88 ]
br i1 %10, label %84, label %86
84: ; preds = %81
%85 = tail call i32 @ALPHA_SHIFT_16_TO_10(i32 noundef %36) #3
br label %88
86: ; preds = %81
%87 = tail call i32 @ALPHA_SHIFT_16_TO_12(i32 noundef %36) #3
br label %88
88: ; preds = %84, %86
%89 = phi i32 [ %85, %84 ], [ %87, %86 ]
%90 = getelementptr inbounds i32, ptr %1, i64 %82
store i32 %89, ptr %90, align 4
%91 = add nsw i64 %82, 1
%92 = add nuw nsw i32 %83, 1
%93 = icmp slt i32 %92, %73
br i1 %93, label %81, label %107, !llvm.loop !11
94: ; preds = %76, %101
%95 = phi i64 [ %77, %76 ], [ %104, %101 ]
%96 = phi i32 [ 0, %76 ], [ %105, %101 ]
br i1 %10, label %97, label %99
97: ; preds = %94
%98 = tail call i32 @ALPHA_SHIFT_8_TO_10(i32 noundef %36) #3
br label %101
99: ; preds = %94
%100 = tail call i32 @ALPHA_SHIFT_8_TO_12(i32 noundef %36) #3
br label %101
101: ; preds = %97, %99
%102 = phi i32 [ %98, %97 ], [ %100, %99 ]
%103 = getelementptr inbounds i32, ptr %1, i64 %95
store i32 %102, ptr %103, align 4
%104 = add nsw i64 %95, 1
%105 = add nuw nsw i32 %96, 1
%106 = icmp slt i32 %105, %73
br i1 %106, label %94, label %109, !llvm.loop !12
107: ; preds = %88
%108 = trunc i64 %91 to i32
br label %111
109: ; preds = %101
%110 = trunc i64 %104 to i32
br label %111
111: ; preds = %109, %107, %75, %78
%112 = phi i32 [ %63, %78 ], [ %63, %75 ], [ %108, %107 ], [ %110, %109 ]
%113 = icmp slt i32 %112, %2
br i1 %113, label %12, label %114, !llvm.loop !13
114: ; preds = %111
ret void
}
declare i64 @get_bits1(ptr noundef) local_unnamed_addr #1
declare i32 @get_bits(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ALPHA_SHIFT_16_TO_10(i32 noundef) local_unnamed_addr #1
declare i32 @ALPHA_SHIFT_16_TO_12(i32 noundef) local_unnamed_addr #1
declare i32 @ALPHA_SHIFT_8_TO_10(i32 noundef) local_unnamed_addr #1
declare i32 @ALPHA_SHIFT_8_TO_12(i32 noundef) local_unnamed_addr #1
declare i64 @get_bits_left(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
| ; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_proresdec2.c_unpack_alpha.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_proresdec2.c_unpack_alpha.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 @unpack_alpha], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @unpack_alpha(ptr noundef %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = shl nsw i32 -1, %3
%7 = xor i32 %6, -1
%8 = icmp eq i32 %3, 16
%9 = select i1 %8, i32 7, i32 4
%10 = icmp eq i32 %4, 10
%11 = sext i32 %2 to i64
br label %12
12: ; preds = %111, %5
%13 = phi i32 [ 0, %5 ], [ %112, %111 ]
%14 = phi i32 [ %7, %5 ], [ %36, %111 ]
%15 = sext i32 %13 to i64
%16 = add nsw i32 %13, 1
%17 = tail call i32 @llvm.smax.i32(i32 %2, i32 %16)
br label %18
18: ; preds = %55, %12
%19 = phi i64 [ %50, %55 ], [ %15, %12 ]
%20 = phi i32 [ %36, %55 ], [ %14, %12 ]
%21 = tail call i64 @get_bits1(ptr noundef %0) #3
%22 = icmp eq i64 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %18
%24 = tail call i32 @get_bits(ptr noundef %0, i32 noundef %3) #3
br label %33
25: ; preds = %18
%26 = tail call i32 @get_bits(ptr noundef %0, i32 noundef %9) #3
%27 = and i32 %26, 1
%28 = add nsw i32 %26, 2
%29 = ashr i32 %28, 1
%30 = icmp eq i32 %27, 0
%31 = sub nsw i32 0, %29
%32 = select i1 %30, i32 %29, i32 %31
br label %33
33: ; preds = %25, %23
%34 = phi i32 [ %24, %23 ], [ %32, %25 ]
%35 = add nsw i32 %34, %20
%36 = and i32 %35, %7
%37 = getelementptr inbounds i32, ptr %1, i64 %19
br i1 %8, label %38, label %43
38: ; preds = %33
br i1 %10, label %39, label %41
39: ; preds = %38
%40 = tail call i32 @ALPHA_SHIFT_16_TO_10(i32 noundef %36) #3
br label %48
41: ; preds = %38
%42 = tail call i32 @ALPHA_SHIFT_16_TO_12(i32 noundef %36) #3
br label %48
43: ; preds = %33
br i1 %10, label %44, label %46
44: ; preds = %43
%45 = tail call i32 @ALPHA_SHIFT_8_TO_10(i32 noundef %36) #3
br label %48
46: ; preds = %43
%47 = tail call i32 @ALPHA_SHIFT_8_TO_12(i32 noundef %36) #3
br label %48
48: ; preds = %44, %46, %39, %41
%49 = phi i32 [ %45, %44 ], [ %47, %46 ], [ %40, %39 ], [ %42, %41 ]
store i32 %49, ptr %37, align 4, !tbaa !6
%50 = add nsw i64 %19, 1
%51 = icmp slt i64 %50, %11
br i1 %51, label %52, label %62
52: ; preds = %48
%53 = tail call i64 @get_bits_left(ptr noundef %0) #3
%54 = icmp sgt i64 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = tail call i64 @get_bits1(ptr noundef %0) #3
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %18, !llvm.loop !10
58: ; preds = %52
%59 = trunc nsw i64 %50 to i32
br label %62
60: ; preds = %55
%61 = trunc nsw i64 %50 to i32
br label %62
62: ; preds = %48, %60, %58
%63 = phi i32 [ %59, %58 ], [ %61, %60 ], [ %17, %48 ]
%64 = tail call i32 @get_bits(ptr noundef %0, i32 noundef 4) #3
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = tail call i32 @get_bits(ptr noundef %0, i32 noundef 11) #3
br label %68
68: ; preds = %66, %62
%69 = phi i32 [ %64, %62 ], [ %67, %66 ]
%70 = add nsw i32 %69, %63
%71 = icmp sgt i32 %70, %2
%72 = sub nsw i32 %2, %63
%73 = select i1 %71, i32 %72, i32 %69
%74 = icmp sgt i32 %73, 0
br i1 %8, label %78, label %75
75: ; preds = %68
br i1 %74, label %76, label %111
76: ; preds = %75
%77 = sext i32 %63 to i64
br label %94
78: ; preds = %68
br i1 %74, label %79, label %111
79: ; preds = %78
%80 = sext i32 %63 to i64
br label %81
81: ; preds = %79, %88
%82 = phi i64 [ %80, %79 ], [ %91, %88 ]
%83 = phi i32 [ 0, %79 ], [ %92, %88 ]
br i1 %10, label %84, label %86
84: ; preds = %81
%85 = tail call i32 @ALPHA_SHIFT_16_TO_10(i32 noundef %36) #3
br label %88
86: ; preds = %81
%87 = tail call i32 @ALPHA_SHIFT_16_TO_12(i32 noundef %36) #3
br label %88
88: ; preds = %84, %86
%89 = phi i32 [ %85, %84 ], [ %87, %86 ]
%90 = getelementptr inbounds i32, ptr %1, i64 %82
store i32 %89, ptr %90, align 4
%91 = add nsw i64 %82, 1
%92 = add nuw nsw i32 %83, 1
%93 = icmp slt i32 %92, %73
br i1 %93, label %81, label %107, !llvm.loop !12
94: ; preds = %76, %101
%95 = phi i64 [ %77, %76 ], [ %104, %101 ]
%96 = phi i32 [ 0, %76 ], [ %105, %101 ]
br i1 %10, label %97, label %99
97: ; preds = %94
%98 = tail call i32 @ALPHA_SHIFT_8_TO_10(i32 noundef %36) #3
br label %101
99: ; preds = %94
%100 = tail call i32 @ALPHA_SHIFT_8_TO_12(i32 noundef %36) #3
br label %101
101: ; preds = %97, %99
%102 = phi i32 [ %98, %97 ], [ %100, %99 ]
%103 = getelementptr inbounds i32, ptr %1, i64 %95
store i32 %102, ptr %103, align 4
%104 = add nsw i64 %95, 1
%105 = add nuw nsw i32 %96, 1
%106 = icmp slt i32 %105, %73
br i1 %106, label %94, label %109, !llvm.loop !13
107: ; preds = %88
%108 = trunc nsw i64 %91 to i32
br label %111
109: ; preds = %101
%110 = trunc nsw i64 %104 to i32
br label %111
111: ; preds = %109, %107, %75, %78
%112 = phi i32 [ %63, %78 ], [ %63, %75 ], [ %108, %107 ], [ %110, %109 ]
%113 = icmp slt i32 %112, %2
br i1 %113, label %12, label %114, !llvm.loop !14
114: ; preds = %111
ret void
}
declare i64 @get_bits1(ptr noundef) local_unnamed_addr #1
declare i32 @get_bits(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ALPHA_SHIFT_16_TO_10(i32 noundef) local_unnamed_addr #1
declare i32 @ALPHA_SHIFT_16_TO_12(i32 noundef) local_unnamed_addr #1
declare i32 @ALPHA_SHIFT_8_TO_10(i32 noundef) local_unnamed_addr #1
declare i32 @ALPHA_SHIFT_8_TO_12(i32 noundef) local_unnamed_addr #1
declare i64 @get_bits_left(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
| FFmpeg_libavcodec_extr_proresdec2.c_unpack_alpha |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_common.c_ixgbe_set_rar_generic.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_common.c_ixgbe_set_rar_generic.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 { i64, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { ptr }
@.str = private unnamed_addr constant [31 x i8] c"RAR index %d is out of range.\0A\00", align 1
@IXGBE_ERR_INVALID_ARGUMENT = dso_local local_unnamed_addr global i32 0, align 4
@IXGBE_RAH_AV = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ixgbe_set_rar_generic(ptr noundef %0, i64 noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #0 {
%6 = load i64, ptr %0, align 8, !tbaa !5
%7 = icmp sgt i64 %6, %1
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = tail call i32 @hw_dbg(ptr noundef nonnull %0, ptr noundef nonnull @.str, i64 noundef %1) #2
%10 = load i32, ptr @IXGBE_ERR_INVALID_ARGUMENT, align 4, !tbaa !13
br label %51
11: ; preds = %5
%12 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%13 = load ptr, ptr %12, align 8, !tbaa !15
%14 = tail call i32 %13(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %3) #2
%15 = load i64, ptr %2, align 8, !tbaa !16
%16 = getelementptr inbounds i64, ptr %2, i64 1
%17 = load i64, ptr %16, align 8, !tbaa !16
%18 = shl i64 %17, 8
%19 = or i64 %18, %15
%20 = getelementptr inbounds i64, ptr %2, i64 2
%21 = load i64, ptr %20, align 8, !tbaa !16
%22 = shl i64 %21, 16
%23 = or i64 %19, %22
%24 = getelementptr inbounds i64, ptr %2, i64 3
%25 = load i64, ptr %24, align 8, !tbaa !16
%26 = shl i64 %25, 24
%27 = or i64 %23, %26
%28 = tail call i32 @IXGBE_RAH(i64 noundef %1) #2
%29 = tail call i64 @IXGBE_READ_REG(ptr noundef nonnull %0, i32 noundef %28) #2
%30 = load i32, ptr @IXGBE_RAH_AV, align 4, !tbaa !13
%31 = and i32 %30, -65536
%32 = xor i32 %31, -65536
%33 = sext i32 %32 to i64
%34 = and i64 %29, %33
%35 = getelementptr inbounds i64, ptr %2, i64 4
%36 = load i64, ptr %35, align 8, !tbaa !16
%37 = getelementptr inbounds i64, ptr %2, i64 5
%38 = load i64, ptr %37, align 8, !tbaa !16
%39 = shl i64 %38, 8
%40 = icmp eq i64 %4, 0
%41 = sext i32 %30 to i64
%42 = select i1 %40, i64 0, i64 %41
%43 = or i64 %42, %36
%44 = or i64 %43, %39
%45 = or i64 %44, %34
%46 = tail call i32 @IXGBE_RAL(i64 noundef %1) #2
%47 = tail call i32 @IXGBE_WRITE_REG(ptr noundef nonnull %0, i32 noundef %46, i64 noundef %27) #2
%48 = tail call i32 @IXGBE_WRITE_FLUSH(ptr noundef nonnull %0) #2
%49 = tail call i32 @IXGBE_RAH(i64 noundef %1) #2
%50 = tail call i32 @IXGBE_WRITE_REG(ptr noundef nonnull %0, i32 noundef %49, i64 noundef %45) #2
br label %51
51: ; preds = %11, %8
%52 = phi i32 [ %10, %8 ], [ 0, %11 ]
ret i32 %52
}
declare i32 @hw_dbg(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @IXGBE_READ_REG(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @IXGBE_RAH(i64 noundef) local_unnamed_addr #1
declare i32 @IXGBE_WRITE_REG(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @IXGBE_RAL(i64 noundef) local_unnamed_addr #1
declare i32 @IXGBE_WRITE_FLUSH(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 0}
!6 = !{!"ixgbe_hw", !7, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_3__", !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!6, !12, i64 8}
!16 = !{!8, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_common.c_ixgbe_set_rar_generic.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_common.c_ixgbe_set_rar_generic.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 [31 x i8] c"RAR index %d is out of range.\0A\00", align 1
@IXGBE_ERR_INVALID_ARGUMENT = common local_unnamed_addr global i32 0, align 4
@IXGBE_RAH_AV = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ixgbe_set_rar_generic(ptr noundef %0, i64 noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #0 {
%6 = load i64, ptr %0, align 8, !tbaa !6
%7 = icmp sgt i64 %6, %1
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = tail call i32 @hw_dbg(ptr noundef nonnull %0, ptr noundef nonnull @.str, i64 noundef %1) #2
%10 = load i32, ptr @IXGBE_ERR_INVALID_ARGUMENT, align 4, !tbaa !14
br label %51
11: ; preds = %5
%12 = getelementptr inbounds i8, ptr %0, i64 8
%13 = load ptr, ptr %12, align 8, !tbaa !16
%14 = tail call i32 %13(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %3) #2
%15 = load i64, ptr %2, align 8, !tbaa !17
%16 = getelementptr inbounds i8, ptr %2, i64 8
%17 = load i64, ptr %16, align 8, !tbaa !17
%18 = shl i64 %17, 8
%19 = or i64 %18, %15
%20 = getelementptr inbounds i8, ptr %2, i64 16
%21 = load i64, ptr %20, align 8, !tbaa !17
%22 = shl i64 %21, 16
%23 = or i64 %19, %22
%24 = getelementptr inbounds i8, ptr %2, i64 24
%25 = load i64, ptr %24, align 8, !tbaa !17
%26 = shl i64 %25, 24
%27 = or i64 %23, %26
%28 = tail call i32 @IXGBE_RAH(i64 noundef %1) #2
%29 = tail call i64 @IXGBE_READ_REG(ptr noundef nonnull %0, i32 noundef %28) #2
%30 = load i32, ptr @IXGBE_RAH_AV, align 4, !tbaa !14
%31 = and i32 %30, -65536
%32 = xor i32 %31, -65536
%33 = sext i32 %32 to i64
%34 = and i64 %29, %33
%35 = getelementptr inbounds i8, ptr %2, i64 32
%36 = load i64, ptr %35, align 8, !tbaa !17
%37 = getelementptr inbounds i8, ptr %2, i64 40
%38 = load i64, ptr %37, align 8, !tbaa !17
%39 = shl i64 %38, 8
%40 = icmp eq i64 %4, 0
%41 = sext i32 %30 to i64
%42 = select i1 %40, i64 0, i64 %41
%43 = or i64 %42, %36
%44 = or i64 %43, %39
%45 = or i64 %44, %34
%46 = tail call i32 @IXGBE_RAL(i64 noundef %1) #2
%47 = tail call i32 @IXGBE_WRITE_REG(ptr noundef nonnull %0, i32 noundef %46, i64 noundef %27) #2
%48 = tail call i32 @IXGBE_WRITE_FLUSH(ptr noundef nonnull %0) #2
%49 = tail call i32 @IXGBE_RAH(i64 noundef %1) #2
%50 = tail call i32 @IXGBE_WRITE_REG(ptr noundef nonnull %0, i32 noundef %49, i64 noundef %45) #2
br label %51
51: ; preds = %11, %8
%52 = phi i32 [ %10, %8 ], [ 0, %11 ]
ret i32 %52
}
declare i32 @hw_dbg(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @IXGBE_READ_REG(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @IXGBE_RAH(i64 noundef) local_unnamed_addr #1
declare i32 @IXGBE_WRITE_REG(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @IXGBE_RAL(i64 noundef) local_unnamed_addr #1
declare i32 @IXGBE_WRITE_FLUSH(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 0}
!7 = !{!"ixgbe_hw", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0, !12, i64 8}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"TYPE_3__", !13, i64 0}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !10, i64 0}
!16 = !{!7, !13, i64 8}
!17 = !{!9, !9, i64 0}
| linux_drivers_net_ethernet_intel_ixgbe_extr_ixgbe_common.c_ixgbe_set_rar_generic |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_niu.c_release_tx_packet.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_niu.c_release_tx_packet.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.tx_buff_info = type { i32, ptr }
%struct.tx_ring_info = type { ptr, i32, ptr, i32, i32 }
%struct.niu = type { i32, ptr }
%struct.TYPE_4__ = type { ptr, ptr }
%struct.TYPE_6__ = type { i32, ptr }
%struct.TYPE_5__ = type { i32 }
@TXHDR_LEN = dso_local local_unnamed_addr global i32 0, align 4
@TXHDR_LEN_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@TXHDR_PAD = dso_local local_unnamed_addr global i32 0, align 4
@DMA_TO_DEVICE = dso_local local_unnamed_addr global i32 0, align 4
@TX_DESC_MARK = dso_local local_unnamed_addr global i32 0, align 4
@MAX_TX_DESC_LEN = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @release_tx_packet], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @release_tx_packet(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = load ptr, ptr %1, align 8, !tbaa !5
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds %struct.tx_buff_info, ptr %4, i64 %5
%7 = getelementptr inbounds %struct.tx_buff_info, ptr %4, i64 %5, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !11
%9 = load i64, ptr %8, align 8, !tbaa !13
%10 = inttoptr i64 %9 to ptr
%11 = tail call i32 @le64_to_cpup(ptr noundef %10) #2
%12 = getelementptr inbounds %struct.tx_ring_info, ptr %1, i64 0, i32 4
%13 = load i32, ptr %12, align 4, !tbaa !16
%14 = add nsw i32 %13, 1
store i32 %14, ptr %12, align 4, !tbaa !16
%15 = load i32, ptr @TXHDR_LEN, align 4, !tbaa !17
%16 = and i32 %15, %11
%17 = load i32, ptr @TXHDR_LEN_SHIFT, align 4, !tbaa !17
%18 = ashr i32 %16, %17
%19 = load i32, ptr @TXHDR_PAD, align 4, !tbaa !17
%20 = and i32 %19, %11
%21 = sdiv i32 %20, -2
%22 = getelementptr inbounds %struct.tx_ring_info, ptr %1, i64 0, i32 3
%23 = load i32, ptr %22, align 8, !tbaa !18
%24 = add i32 %23, %18
%25 = add i32 %24, %21
store i32 %25, ptr %22, align 8, !tbaa !18
%26 = tail call i32 @skb_headlen(ptr noundef nonnull %8) #2
%27 = getelementptr inbounds %struct.niu, ptr %0, i64 0, i32 1
%28 = load ptr, ptr %27, align 8, !tbaa !19
%29 = getelementptr inbounds %struct.TYPE_4__, ptr %28, i64 0, i32 1
%30 = load ptr, ptr %29, align 8, !tbaa !21
%31 = load i32, ptr %0, align 8, !tbaa !23
%32 = load i32, ptr %6, align 8, !tbaa !24
%33 = load i32, ptr @DMA_TO_DEVICE, align 4, !tbaa !17
%34 = tail call i32 %30(i32 noundef %31, i32 noundef %32, i32 noundef %26, i32 noundef %33) #2
%35 = getelementptr inbounds %struct.tx_ring_info, ptr %1, i64 0, i32 2
%36 = load ptr, ptr %35, align 8, !tbaa !25
%37 = getelementptr inbounds i32, ptr %36, i64 %5
%38 = load i32, ptr %37, align 4, !tbaa !17
%39 = tail call i32 @le64_to_cpu(i32 noundef %38) #2
%40 = load i32, ptr @TX_DESC_MARK, align 4, !tbaa !17
%41 = and i32 %40, %39
%42 = icmp eq i32 %41, 0
br i1 %42, label %47, label %43
43: ; preds = %3
%44 = getelementptr inbounds %struct.tx_ring_info, ptr %1, i64 0, i32 1
%45 = load i32, ptr %44, align 8, !tbaa !26
%46 = add nsw i32 %45, -1
store i32 %46, ptr %44, align 8, !tbaa !26
br label %47
47: ; preds = %43, %3
store ptr null, ptr %7, align 8, !tbaa !11
br label %48
48: ; preds = %48, %47
%49 = phi i32 [ %2, %47 ], [ %51, %48 ]
%50 = phi i32 [ %26, %47 ], [ %54, %48 ]
%51 = tail call i32 @NEXT_TX(ptr noundef nonnull %1, i32 noundef %49) #2
%52 = load i64, ptr @MAX_TX_DESC_LEN, align 8, !tbaa !27
%53 = trunc i64 %52 to i32
%54 = sub i32 %50, %53
%55 = icmp sgt i32 %54, 0
br i1 %55, label %48, label %56, !llvm.loop !28
56: ; preds = %48
%57 = tail call ptr @skb_shinfo(ptr noundef nonnull %8) #2
%58 = load i32, ptr %57, align 8, !tbaa !30
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %88
60: ; preds = %56, %60
%61 = phi i64 [ %83, %60 ], [ 0, %56 ]
%62 = phi i32 [ %82, %60 ], [ %51, %56 ]
%63 = load ptr, ptr %1, align 8, !tbaa !5
%64 = sext i32 %62 to i64
%65 = getelementptr inbounds %struct.tx_buff_info, ptr %63, i64 %64
%66 = getelementptr inbounds %struct.tx_buff_info, ptr %63, i64 %64, i32 1
%67 = load ptr, ptr %66, align 8, !tbaa !11
%68 = icmp ne ptr %67, null
%69 = zext i1 %68 to i32
%70 = tail call i32 @BUG_ON(i32 noundef %69) #2
%71 = load ptr, ptr %27, align 8, !tbaa !19
%72 = load ptr, ptr %71, align 8, !tbaa !32
%73 = load i32, ptr %0, align 8, !tbaa !23
%74 = load i32, ptr %65, align 8, !tbaa !24
%75 = tail call ptr @skb_shinfo(ptr noundef nonnull %8) #2
%76 = getelementptr inbounds %struct.TYPE_6__, ptr %75, i64 0, i32 1
%77 = load ptr, ptr %76, align 8, !tbaa !33
%78 = getelementptr inbounds %struct.TYPE_5__, ptr %77, i64 %61
%79 = load i32, ptr %78, align 4, !tbaa !34
%80 = load i32, ptr @DMA_TO_DEVICE, align 4, !tbaa !17
%81 = tail call i32 %72(i32 noundef %73, i32 noundef %74, i32 noundef %79, i32 noundef %80) #2
%82 = tail call i32 @NEXT_TX(ptr noundef nonnull %1, i32 noundef %62) #2
%83 = add nuw nsw i64 %61, 1
%84 = tail call ptr @skb_shinfo(ptr noundef nonnull %8) #2
%85 = load i32, ptr %84, align 8, !tbaa !30
%86 = sext i32 %85 to i64
%87 = icmp slt i64 %83, %86
br i1 %87, label %60, label %88, !llvm.loop !36
88: ; preds = %60, %56
%89 = phi i32 [ %51, %56 ], [ %82, %60 ]
%90 = tail call i32 @dev_kfree_skb(ptr noundef nonnull %8) #2
ret i32 %89
}
declare i32 @le64_to_cpup(ptr noundef) local_unnamed_addr #1
declare i32 @skb_headlen(ptr noundef) local_unnamed_addr #1
declare i32 @le64_to_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @NEXT_TX(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @skb_shinfo(ptr noundef) local_unnamed_addr #1
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @dev_kfree_skb(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 = !{!"tx_ring_info", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !10, i64 28}
!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 8}
!12 = !{!"tx_buff_info", !10, i64 0, !7, i64 8}
!13 = !{!14, !15, i64 0}
!14 = !{!"sk_buff", !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !10, i64 28}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !10, i64 24}
!19 = !{!20, !7, i64 8}
!20 = !{!"niu", !10, i64 0, !7, i64 8}
!21 = !{!22, !7, i64 8}
!22 = !{!"TYPE_4__", !7, i64 0, !7, i64 8}
!23 = !{!20, !10, i64 0}
!24 = !{!12, !10, i64 0}
!25 = !{!6, !7, i64 16}
!26 = !{!6, !10, i64 8}
!27 = !{!15, !15, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!31, !10, i64 0}
!31 = !{!"TYPE_6__", !10, i64 0, !7, i64 8}
!32 = !{!22, !7, i64 0}
!33 = !{!31, !7, i64 8}
!34 = !{!35, !10, i64 0}
!35 = !{!"TYPE_5__", !10, i64 0}
!36 = distinct !{!36, !29}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_niu.c_release_tx_packet.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_niu.c_release_tx_packet.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.tx_buff_info = type { i32, ptr }
%struct.TYPE_5__ = type { i32 }
@TXHDR_LEN = common local_unnamed_addr global i32 0, align 4
@TXHDR_LEN_SHIFT = common local_unnamed_addr global i32 0, align 4
@TXHDR_PAD = common local_unnamed_addr global i32 0, align 4
@DMA_TO_DEVICE = common local_unnamed_addr global i32 0, align 4
@TX_DESC_MARK = common local_unnamed_addr global i32 0, align 4
@MAX_TX_DESC_LEN = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @release_tx_packet], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @release_tx_packet(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = load ptr, ptr %1, align 8, !tbaa !6
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds %struct.tx_buff_info, ptr %4, i64 %5
%7 = getelementptr inbounds i8, ptr %6, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !12
%9 = load i64, ptr %8, align 8, !tbaa !14
%10 = inttoptr i64 %9 to ptr
%11 = tail call i32 @le64_to_cpup(ptr noundef %10) #2
%12 = getelementptr inbounds i8, ptr %1, i64 28
%13 = load i32, ptr %12, align 4, !tbaa !17
%14 = add nsw i32 %13, 1
store i32 %14, ptr %12, align 4, !tbaa !17
%15 = load i32, ptr @TXHDR_LEN, align 4, !tbaa !18
%16 = and i32 %15, %11
%17 = load i32, ptr @TXHDR_LEN_SHIFT, align 4, !tbaa !18
%18 = ashr i32 %16, %17
%19 = load i32, ptr @TXHDR_PAD, align 4, !tbaa !18
%20 = and i32 %19, %11
%21 = sdiv i32 %20, -2
%22 = getelementptr inbounds i8, ptr %1, i64 24
%23 = load i32, ptr %22, align 8, !tbaa !19
%24 = add i32 %23, %18
%25 = add i32 %24, %21
store i32 %25, ptr %22, align 8, !tbaa !19
%26 = tail call i32 @skb_headlen(ptr noundef nonnull %8) #2
%27 = getelementptr inbounds i8, ptr %0, i64 8
%28 = load ptr, ptr %27, align 8, !tbaa !20
%29 = getelementptr inbounds i8, ptr %28, i64 8
%30 = load ptr, ptr %29, align 8, !tbaa !22
%31 = load i32, ptr %0, align 8, !tbaa !24
%32 = load i32, ptr %6, align 8, !tbaa !25
%33 = load i32, ptr @DMA_TO_DEVICE, align 4, !tbaa !18
%34 = tail call i32 %30(i32 noundef %31, i32 noundef %32, i32 noundef %26, i32 noundef %33) #2
%35 = getelementptr inbounds i8, ptr %1, i64 16
%36 = load ptr, ptr %35, align 8, !tbaa !26
%37 = getelementptr inbounds i32, ptr %36, i64 %5
%38 = load i32, ptr %37, align 4, !tbaa !18
%39 = tail call i32 @le64_to_cpu(i32 noundef %38) #2
%40 = load i32, ptr @TX_DESC_MARK, align 4, !tbaa !18
%41 = and i32 %40, %39
%42 = icmp eq i32 %41, 0
br i1 %42, label %47, label %43
43: ; preds = %3
%44 = getelementptr inbounds i8, ptr %1, i64 8
%45 = load i32, ptr %44, align 8, !tbaa !27
%46 = add nsw i32 %45, -1
store i32 %46, ptr %44, align 8, !tbaa !27
br label %47
47: ; preds = %43, %3
store ptr null, ptr %7, align 8, !tbaa !12
br label %48
48: ; preds = %48, %47
%49 = phi i32 [ %2, %47 ], [ %51, %48 ]
%50 = phi i32 [ %26, %47 ], [ %54, %48 ]
%51 = tail call i32 @NEXT_TX(ptr noundef nonnull %1, i32 noundef %49) #2
%52 = load i64, ptr @MAX_TX_DESC_LEN, align 8, !tbaa !28
%53 = trunc i64 %52 to i32
%54 = sub i32 %50, %53
%55 = icmp sgt i32 %54, 0
br i1 %55, label %48, label %56, !llvm.loop !29
56: ; preds = %48
%57 = tail call ptr @skb_shinfo(ptr noundef nonnull %8) #2
%58 = load i32, ptr %57, align 8, !tbaa !31
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %88
60: ; preds = %56, %60
%61 = phi i64 [ %83, %60 ], [ 0, %56 ]
%62 = phi i32 [ %82, %60 ], [ %51, %56 ]
%63 = load ptr, ptr %1, align 8, !tbaa !6
%64 = sext i32 %62 to i64
%65 = getelementptr inbounds %struct.tx_buff_info, ptr %63, i64 %64
%66 = getelementptr inbounds i8, ptr %65, i64 8
%67 = load ptr, ptr %66, align 8, !tbaa !12
%68 = icmp ne ptr %67, null
%69 = zext i1 %68 to i32
%70 = tail call i32 @BUG_ON(i32 noundef %69) #2
%71 = load ptr, ptr %27, align 8, !tbaa !20
%72 = load ptr, ptr %71, align 8, !tbaa !33
%73 = load i32, ptr %0, align 8, !tbaa !24
%74 = load i32, ptr %65, align 8, !tbaa !25
%75 = tail call ptr @skb_shinfo(ptr noundef nonnull %8) #2
%76 = getelementptr inbounds i8, ptr %75, i64 8
%77 = load ptr, ptr %76, align 8, !tbaa !34
%78 = getelementptr inbounds %struct.TYPE_5__, ptr %77, i64 %61
%79 = load i32, ptr %78, align 4, !tbaa !35
%80 = load i32, ptr @DMA_TO_DEVICE, align 4, !tbaa !18
%81 = tail call i32 %72(i32 noundef %73, i32 noundef %74, i32 noundef %79, i32 noundef %80) #2
%82 = tail call i32 @NEXT_TX(ptr noundef nonnull %1, i32 noundef %62) #2
%83 = add nuw nsw i64 %61, 1
%84 = tail call ptr @skb_shinfo(ptr noundef nonnull %8) #2
%85 = load i32, ptr %84, align 8, !tbaa !31
%86 = sext i32 %85 to i64
%87 = icmp slt i64 %83, %86
br i1 %87, label %60, label %88, !llvm.loop !37
88: ; preds = %60, %56
%89 = phi i32 [ %51, %56 ], [ %82, %60 ]
%90 = tail call i32 @dev_kfree_skb(ptr noundef nonnull %8) #2
ret i32 %89
}
declare i32 @le64_to_cpup(ptr noundef) local_unnamed_addr #1
declare i32 @skb_headlen(ptr noundef) local_unnamed_addr #1
declare i32 @le64_to_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @NEXT_TX(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @skb_shinfo(ptr noundef) local_unnamed_addr #1
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @dev_kfree_skb(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 = !{!"tx_ring_info", !8, i64 0, !11, i64 8, !8, i64 16, !11, i64 24, !11, i64 28}
!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 8}
!13 = !{!"tx_buff_info", !11, i64 0, !8, i64 8}
!14 = !{!15, !16, i64 0}
!15 = !{!"sk_buff", !16, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = !{!7, !11, i64 28}
!18 = !{!11, !11, i64 0}
!19 = !{!7, !11, i64 24}
!20 = !{!21, !8, i64 8}
!21 = !{!"niu", !11, i64 0, !8, i64 8}
!22 = !{!23, !8, i64 8}
!23 = !{!"TYPE_4__", !8, i64 0, !8, i64 8}
!24 = !{!21, !11, i64 0}
!25 = !{!13, !11, i64 0}
!26 = !{!7, !8, i64 16}
!27 = !{!7, !11, i64 8}
!28 = !{!16, !16, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!32, !11, i64 0}
!32 = !{!"TYPE_6__", !11, i64 0, !8, i64 8}
!33 = !{!23, !8, i64 0}
!34 = !{!32, !8, i64 8}
!35 = !{!36, !11, i64 0}
!36 = !{!"TYPE_5__", !11, i64 0}
!37 = distinct !{!37, !30}
| fastsocket_kernel_drivers_net_extr_niu.c_release_tx_packet |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/extr_mac80211_hwsim.c_mac80211_hwsim_unassign_vif_chanctx.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/extr_mac80211_hwsim.c_mac80211_hwsim_unassign_vif_chanctx.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 @mac80211_hwsim_unassign_vif_chanctx], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mac80211_hwsim_unassign_vif_chanctx(ptr nocapture readnone %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call i32 @hwsim_check_magic(ptr noundef %1) #2
%5 = tail call i32 @hwsim_check_chanctx_magic(ptr noundef %2) #2
ret void
}
declare i32 @hwsim_check_magic(ptr noundef) local_unnamed_addr #1
declare i32 @hwsim_check_chanctx_magic(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/drivers/net/wireless/extr_mac80211_hwsim.c_mac80211_hwsim_unassign_vif_chanctx.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/extr_mac80211_hwsim.c_mac80211_hwsim_unassign_vif_chanctx.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 @mac80211_hwsim_unassign_vif_chanctx], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mac80211_hwsim_unassign_vif_chanctx(ptr nocapture readnone %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call i32 @hwsim_check_magic(ptr noundef %1) #2
%5 = tail call i32 @hwsim_check_chanctx_magic(ptr noundef %2) #2
ret void
}
declare i32 @hwsim_check_magic(ptr noundef) local_unnamed_addr #1
declare i32 @hwsim_check_chanctx_magic(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_drivers_net_wireless_extr_mac80211_hwsim.c_mac80211_hwsim_unassign_vif_chanctx |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/powerpc/sysdev/extr_fsl_rio.c_rio_close_inb_mbox.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/powerpc/sysdev/extr_fsl_rio.c_rio_close_inb_mbox.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.rio_priv = type { %struct.TYPE_4__, i32, ptr }
%struct.TYPE_4__ = type { i32, i32, i32 }
@RIO_MAX_MSG_SIZE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @rio_close_inb_mbox(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.rio_priv, ptr %3, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = tail call i32 @out_be32(ptr noundef %5, i32 noundef 0) #2
%7 = getelementptr inbounds %struct.rio_priv, ptr %3, i64 0, i32 1
%8 = load i32, ptr %7, align 4, !tbaa !14
%9 = load i32, ptr %3, align 8, !tbaa !15
%10 = load i32, ptr @RIO_MAX_MSG_SIZE, align 4, !tbaa !16
%11 = mul nsw i32 %10, %9
%12 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i64 0, i32 2
%13 = load i32, ptr %12, align 8, !tbaa !17
%14 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i64 0, i32 1
%15 = load i32, ptr %14, align 4, !tbaa !18
%16 = tail call i32 @dma_free_coherent(i32 noundef %8, i32 noundef %11, i32 noundef %13, i32 noundef %15) #2
%17 = tail call i32 @IRQ_RIO_RX(ptr noundef nonnull %0) #2
%18 = tail call i32 @free_irq(i32 noundef %17, ptr noundef nonnull %0) #2
ret void
}
declare i32 @out_be32(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dma_free_coherent(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @free_irq(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @IRQ_RIO_RX(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 = !{!"rio_mport", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 16}
!11 = !{!"rio_priv", !12, i64 0, !13, i64 12, !7, i64 16}
!12 = !{!"TYPE_4__", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !13, i64 12}
!15 = !{!11, !13, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!11, !13, i64 8}
!18 = !{!11, !13, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/powerpc/sysdev/extr_fsl_rio.c_rio_close_inb_mbox.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/powerpc/sysdev/extr_fsl_rio.c_rio_close_inb_mbox.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RIO_MAX_MSG_SIZE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @rio_close_inb_mbox(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %3, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = tail call i32 @out_be32(ptr noundef %5, i32 noundef 0) #2
%7 = getelementptr inbounds i8, ptr %3, i64 12
%8 = load i32, ptr %7, align 4, !tbaa !15
%9 = load i32, ptr %3, align 8, !tbaa !16
%10 = load i32, ptr @RIO_MAX_MSG_SIZE, align 4, !tbaa !17
%11 = mul nsw i32 %10, %9
%12 = getelementptr inbounds i8, ptr %3, i64 8
%13 = load i32, ptr %12, align 8, !tbaa !18
%14 = getelementptr inbounds i8, ptr %3, i64 4
%15 = load i32, ptr %14, align 4, !tbaa !19
%16 = tail call i32 @dma_free_coherent(i32 noundef %8, i32 noundef %11, i32 noundef %13, i32 noundef %15) #2
%17 = tail call i32 @IRQ_RIO_RX(ptr noundef nonnull %0) #2
%18 = tail call i32 @free_irq(i32 noundef %17, ptr noundef nonnull %0) #2
ret void
}
declare i32 @out_be32(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dma_free_coherent(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @free_irq(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @IRQ_RIO_RX(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 = !{!"rio_mport", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 16}
!12 = !{!"rio_priv", !13, i64 0, !14, i64 12, !8, i64 16}
!13 = !{!"TYPE_4__", !14, i64 0, !14, i64 4, !14, i64 8}
!14 = !{!"int", !9, i64 0}
!15 = !{!12, !14, i64 12}
!16 = !{!12, !14, i64 0}
!17 = !{!14, !14, i64 0}
!18 = !{!12, !14, i64 8}
!19 = !{!12, !14, i64 4}
| fastsocket_kernel_arch_powerpc_sysdev_extr_fsl_rio.c_rio_close_inb_mbox |
; ModuleID = 'AnghaBench/kphp-kdb/vkext/extr_vkext_schema_memcache.c_tlcomb_store_field.c'
source_filename = "AnghaBench/kphp-kdb/vkext/extr_vkext_schema_memcache.c_tlcomb_store_field.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"
@TLUNI_NEXT = dso_local local_unnamed_addr global i32 0, align 4
@stderr = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @tlcomb_store_field(ptr nocapture noundef readonly %0, ptr nocapture noundef readnone %1, ptr nocapture noundef %2, ptr nocapture noundef readnone %3) local_unnamed_addr #0 {
%5 = getelementptr inbounds ptr, ptr %0, i64 1
%6 = load ptr, ptr %0, align 8, !tbaa !5
%7 = load ptr, ptr %5, align 8, !tbaa !5
%8 = ptrtoint ptr %7 to i64
%9 = trunc i64 %8 to i32
%10 = load ptr, ptr %2, align 8, !tbaa !5
%11 = tail call ptr @get_field(ptr noundef %10, ptr noundef %6, i32 noundef %9) #2
%12 = icmp eq ptr %11, null
br i1 %12, label %16, label %13
13: ; preds = %4
%14 = load ptr, ptr %11, align 8, !tbaa !5
%15 = getelementptr inbounds ptr, ptr %2, i64 1
store ptr %14, ptr %15, align 8, !tbaa !5
br label %16
16: ; preds = %4, %13
ret ptr null
}
declare ptr @get_field(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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/kphp-kdb/vkext/extr_vkext_schema_memcache.c_tlcomb_store_field.c'
source_filename = "AnghaBench/kphp-kdb/vkext/extr_vkext_schema_memcache.c_tlcomb_store_field.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TLUNI_NEXT = common local_unnamed_addr global i32 0, align 4
@stderr = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define noalias noundef ptr @tlcomb_store_field(ptr nocapture noundef readonly %0, ptr nocapture noundef readnone %1, ptr nocapture noundef %2, ptr nocapture noundef readnone %3) local_unnamed_addr #0 {
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %0, align 8, !tbaa !6
%7 = load ptr, ptr %5, align 8, !tbaa !6
%8 = ptrtoint ptr %7 to i64
%9 = trunc i64 %8 to i32
%10 = load ptr, ptr %2, align 8, !tbaa !6
%11 = tail call ptr @get_field(ptr noundef %10, ptr noundef %6, i32 noundef %9) #2
%12 = icmp eq ptr %11, null
br i1 %12, label %16, label %13
13: ; preds = %4
%14 = load ptr, ptr %11, align 8, !tbaa !6
%15 = getelementptr inbounds i8, ptr %2, i64 8
store ptr %14, ptr %15, align 8, !tbaa !6
br label %16
16: ; preds = %4, %13
ret ptr null
}
declare ptr @get_field(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, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| kphp-kdb_vkext_extr_vkext_schema_memcache.c_tlcomb_store_field |
; ModuleID = 'AnghaBench/freebsd/crypto/openssl/crypto/ts/extr_ts_rsp_sign.c_TS_RESP_CTX_set_serial_cb.c'
source_filename = "AnghaBench/freebsd/crypto/openssl/crypto/ts/extr_ts_rsp_sign.c_TS_RESP_CTX_set_serial_cb.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, i32 }
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @TS_RESP_CTX_set_serial_cb(ptr nocapture noundef writeonly %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
store i32 %1, ptr %4, align 8, !tbaa !5
store ptr %2, ptr %0, align 8, !tbaa !11
ret void
}
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" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/crypto/openssl/crypto/ts/extr_ts_rsp_sign.c_TS_RESP_CTX_set_serial_cb.c'
source_filename = "AnghaBench/freebsd/crypto/openssl/crypto/ts/extr_ts_rsp_sign.c_TS_RESP_CTX_set_serial_cb.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define void @TS_RESP_CTX_set_serial_cb(ptr nocapture noundef writeonly %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %1, ptr %4, align 8, !tbaa !6
store ptr %2, ptr %0, align 8, !tbaa !12
ret void
}
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" }
!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}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !8, i64 0}
| freebsd_crypto_openssl_crypto_ts_extr_ts_rsp_sign.c_TS_RESP_CTX_set_serial_cb |
; ModuleID = 'AnghaBench/How-to-Make-a-Computer-Operating-System/src/sdk/src/libc/src/stdio/extr_setvbuf.c_setvbuf.c'
source_filename = "AnghaBench/How-to-Make-a-Computer-Operating-System/src/sdk/src/libc/src/stdio/extr_setvbuf.c_setvbuf.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, i64, i64, i64 }
@__FILE_DONTFREEBUF = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @setvbuf(ptr noundef %0, ptr noundef %1, i32 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = icmp eq ptr %1, null
br i1 %5, label %22, label %6
6: ; preds = %4
%7 = load i32, ptr %0, align 8, !tbaa !5
%8 = load i32, ptr @__FILE_DONTFREEBUF, align 4, !tbaa !12
%9 = and i32 %8, %7
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %6
%12 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%13 = load ptr, ptr %12, align 8, !tbaa !13
%14 = tail call i32 @free(ptr noundef %13) #3
%15 = load i32, ptr @__FILE_DONTFREEBUF, align 4, !tbaa !12
%16 = load i32, ptr %0, align 8, !tbaa !5
br label %17
17: ; preds = %11, %6
%18 = phi i32 [ %16, %11 ], [ %7, %6 ]
%19 = phi i32 [ %15, %11 ], [ %8, %6 ]
%20 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
store ptr %1, ptr %20, align 8, !tbaa !13
%21 = or i32 %18, %19
br label %47
22: ; preds = %4
%23 = icmp eq i64 %3, 0
br i1 %23, label %24, label %26
24: ; preds = %22
%25 = tail call i32 @set_flags(ptr noundef %0, i32 noundef %2) #3
br label %52
26: ; preds = %22
%27 = tail call i64 @malloc(i64 noundef %3) #3
%28 = inttoptr i64 %27 to ptr
%29 = icmp eq i64 %27, 0
br i1 %29, label %52, label %30
30: ; preds = %26
%31 = load i32, ptr %0, align 8, !tbaa !5
%32 = load i32, ptr @__FILE_DONTFREEBUF, align 4, !tbaa !12
%33 = and i32 %32, %31
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %30
%36 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%37 = load ptr, ptr %36, align 8, !tbaa !13
%38 = tail call i32 @free(ptr noundef %37) #3
%39 = load i32, ptr @__FILE_DONTFREEBUF, align 4, !tbaa !12
%40 = load i32, ptr %0, align 8, !tbaa !5
br label %41
41: ; preds = %30, %35
%42 = phi i32 [ %31, %30 ], [ %40, %35 ]
%43 = phi i32 [ %32, %30 ], [ %39, %35 ]
%44 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
store ptr %28, ptr %44, align 8, !tbaa !13
%45 = xor i32 %43, -1
%46 = and i32 %42, %45
br label %47
47: ; preds = %41, %17
%48 = phi i32 [ %21, %17 ], [ %46, %41 ]
store i32 %48, ptr %0, align 8, !tbaa !5
%49 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
store i64 %3, ptr %49, align 8, !tbaa !14
%50 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 3
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %50, i8 0, i64 16, i1 false)
%51 = tail call i32 @set_flags(ptr noundef nonnull %0, i32 noundef %2) #3
br label %52
52: ; preds = %26, %24, %47
%53 = phi i32 [ %51, %47 ], [ -1, %26 ], [ %25, %24 ]
ret i32 %53
}
declare i32 @free(ptr noundef) local_unnamed_addr #1
declare i32 @set_flags(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @malloc(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-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_4__", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!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 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !11, i64 16}
| ; ModuleID = 'AnghaBench/How-to-Make-a-Computer-Operating-System/src/sdk/src/libc/src/stdio/extr_setvbuf.c_setvbuf.c'
source_filename = "AnghaBench/How-to-Make-a-Computer-Operating-System/src/sdk/src/libc/src/stdio/extr_setvbuf.c_setvbuf.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@__FILE_DONTFREEBUF = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @setvbuf(ptr noundef %0, ptr noundef %1, i32 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = icmp eq ptr %1, null
br i1 %5, label %22, label %6
6: ; preds = %4
%7 = load i32, ptr %0, align 8, !tbaa !6
%8 = load i32, ptr @__FILE_DONTFREEBUF, align 4, !tbaa !13
%9 = and i32 %8, %7
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %6
%12 = getelementptr inbounds i8, ptr %0, i64 8
%13 = load ptr, ptr %12, align 8, !tbaa !14
%14 = tail call i32 @free(ptr noundef %13) #3
%15 = load i32, ptr @__FILE_DONTFREEBUF, align 4, !tbaa !13
%16 = load i32, ptr %0, align 8, !tbaa !6
br label %17
17: ; preds = %11, %6
%18 = phi i32 [ %16, %11 ], [ %7, %6 ]
%19 = phi i32 [ %15, %11 ], [ %8, %6 ]
%20 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %1, ptr %20, align 8, !tbaa !14
%21 = or i32 %18, %19
br label %47
22: ; preds = %4
%23 = icmp eq i64 %3, 0
br i1 %23, label %24, label %26
24: ; preds = %22
%25 = tail call i32 @set_flags(ptr noundef %0, i32 noundef %2) #3
br label %52
26: ; preds = %22
%27 = tail call i64 @malloc(i64 noundef %3) #3
%28 = inttoptr i64 %27 to ptr
%29 = icmp eq i64 %27, 0
br i1 %29, label %52, label %30
30: ; preds = %26
%31 = load i32, ptr %0, align 8, !tbaa !6
%32 = load i32, ptr @__FILE_DONTFREEBUF, align 4, !tbaa !13
%33 = and i32 %32, %31
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %30
%36 = getelementptr inbounds i8, ptr %0, i64 8
%37 = load ptr, ptr %36, align 8, !tbaa !14
%38 = tail call i32 @free(ptr noundef %37) #3
%39 = load i32, ptr @__FILE_DONTFREEBUF, align 4, !tbaa !13
%40 = load i32, ptr %0, align 8, !tbaa !6
br label %41
41: ; preds = %30, %35
%42 = phi i32 [ %31, %30 ], [ %40, %35 ]
%43 = phi i32 [ %32, %30 ], [ %39, %35 ]
%44 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %28, ptr %44, align 8, !tbaa !14
%45 = xor i32 %43, -1
%46 = and i32 %42, %45
br label %47
47: ; preds = %41, %17
%48 = phi i32 [ %21, %17 ], [ %46, %41 ]
store i32 %48, ptr %0, align 8, !tbaa !6
%49 = getelementptr inbounds i8, ptr %0, i64 16
store i64 %3, ptr %49, align 8, !tbaa !15
%50 = getelementptr inbounds i8, ptr %0, i64 24
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %50, i8 0, i64 16, i1 false)
%51 = tail call i32 @set_flags(ptr noundef nonnull %0, i32 noundef %2) #3
br label %52
52: ; preds = %26, %24, %47
%53 = phi i32 [ %51, %47 ], [ -1, %26 ], [ %25, %24 ]
ret i32 %53
}
declare i32 @free(ptr noundef) local_unnamed_addr #1
declare i32 @set_flags(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @malloc(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind 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_4__", !8, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!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 = !{!8, !8, i64 0}
!14 = !{!7, !11, i64 8}
!15 = !{!7, !12, i64 16}
| How-to-Make-a-Computer-Operating-System_src_sdk_src_libc_src_stdio_extr_setvbuf.c_setvbuf |
; ModuleID = 'AnghaBench/lede/target/linux/at91/image/dfboot/src/extr_com.c_getc.c'
source_filename = "AnghaBench/lede/target/linux/at91/image/dfboot/src/extr_com.c_getc.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 @getc() local_unnamed_addr #0 {
%1 = tail call i32 (...) @at91_serial_getc() #2
ret i32 %1
}
declare i32 @at91_serial_getc(...) 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/lede/target/linux/at91/image/dfboot/src/extr_com.c_getc.c'
source_filename = "AnghaBench/lede/target/linux/at91/image/dfboot/src/extr_com.c_getc.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 @getc() local_unnamed_addr #0 {
%1 = tail call i32 @at91_serial_getc() #2
ret i32 %1
}
declare i32 @at91_serial_getc(...) 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)"}
| lede_target_linux_at91_image_dfboot_src_extr_com.c_getc |
; ModuleID = 'AnghaBench/lede/package/system/mtd/src/extr_wrg.c_wrg_fix_md5.c'
source_filename = "AnghaBench/lede/package/system/mtd/src/extr_wrg.c_wrg_fix_md5.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.wrg_header = type { i32, i32, i32, i32 }
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"pread\00", align 1
@EIO = dso_local local_unnamed_addr global i32 0, align 4
@quiet = 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 [29 x i8] c"the header is fixed already\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"new size: %u, new MD5: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @wrg_fix_md5(ptr noundef %0, i32 noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = alloca i32, align 4
%6 = alloca [16 x i8], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
%7 = tail call ptr @malloc(i64 noundef %3)
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%11 = sub nsw i32 0, %10
br label %129
12: ; preds = %4
%13 = tail call i64 @pread(i32 noundef %1, ptr noundef nonnull %7, i64 noundef %3, i64 noundef %2) #5
%14 = icmp eq i64 %13, %3
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = tail call i32 @perror(ptr noundef nonnull @.str) #5
%17 = load i32, ptr @EIO, align 4, !tbaa !5
%18 = sub nsw i32 0, %17
br label %126
19: ; preds = %12
%20 = call i32 @MD5_Init(ptr noundef nonnull %5) #5
%21 = getelementptr inbounds %struct.wrg_header, ptr %0, i64 0, i32 3
%22 = call i32 @MD5_Update(ptr noundef nonnull %5, ptr noundef nonnull %21, i64 noundef 4) #5
%23 = getelementptr inbounds %struct.wrg_header, ptr %0, i64 0, i32 2
%24 = call i32 @MD5_Update(ptr noundef nonnull %5, ptr noundef nonnull %23, i64 noundef 4) #5
%25 = call i32 @MD5_Update(ptr noundef nonnull %5, ptr noundef nonnull %7, i64 noundef %3) #5
%26 = call i32 @MD5_Final(ptr noundef nonnull %6, ptr noundef nonnull %5) #5
%27 = load i32, ptr %0, align 4, !tbaa !9
%28 = call i32 @memcmp(ptr noundef nonnull %6, i32 noundef %27, i32 noundef 16) #5
%29 = icmp eq i32 %28, 0
%30 = load i32, ptr @quiet, align 4, !tbaa !5
%31 = icmp slt i32 %30, 2
br i1 %29, label %32, label %36
32: ; preds = %19
br i1 %31, label %33, label %129
33: ; preds = %32
%34 = load i32, ptr @stderr, align 4, !tbaa !5
%35 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %34, ptr noundef nonnull @.str.1) #5
br label %129
36: ; preds = %19
br i1 %31, label %37, label %121
37: ; preds = %36
%38 = load i32, ptr @stderr, align 4, !tbaa !5
%39 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef nonnull @.str.2, i64 noundef %3) #5
%40 = load i32, ptr @stderr, align 4, !tbaa !5
%41 = load i8, ptr %6, align 16, !tbaa !11
%42 = zext i8 %41 to i32
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef nonnull @.str.3, i32 noundef %42) #5
%44 = load i32, ptr @stderr, align 4, !tbaa !5
%45 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 1
%46 = load i8, ptr %45, align 1, !tbaa !11
%47 = zext i8 %46 to i32
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %44, ptr noundef nonnull @.str.3, i32 noundef %47) #5
%49 = load i32, ptr @stderr, align 4, !tbaa !5
%50 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 2
%51 = load i8, ptr %50, align 2, !tbaa !11
%52 = zext i8 %51 to i32
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef nonnull @.str.3, i32 noundef %52) #5
%54 = load i32, ptr @stderr, align 4, !tbaa !5
%55 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 3
%56 = load i8, ptr %55, align 1, !tbaa !11
%57 = zext i8 %56 to i32
%58 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef nonnull @.str.3, i32 noundef %57) #5
%59 = load i32, ptr @stderr, align 4, !tbaa !5
%60 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 4
%61 = load i8, ptr %60, align 4, !tbaa !11
%62 = zext i8 %61 to i32
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef nonnull @.str.3, i32 noundef %62) #5
%64 = load i32, ptr @stderr, align 4, !tbaa !5
%65 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 5
%66 = load i8, ptr %65, align 1, !tbaa !11
%67 = zext i8 %66 to i32
%68 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef nonnull @.str.3, i32 noundef %67) #5
%69 = load i32, ptr @stderr, align 4, !tbaa !5
%70 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 6
%71 = load i8, ptr %70, align 2, !tbaa !11
%72 = zext i8 %71 to i32
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef nonnull @.str.3, i32 noundef %72) #5
%74 = load i32, ptr @stderr, align 4, !tbaa !5
%75 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 7
%76 = load i8, ptr %75, align 1, !tbaa !11
%77 = zext i8 %76 to i32
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %74, ptr noundef nonnull @.str.3, i32 noundef %77) #5
%79 = load i32, ptr @stderr, align 4, !tbaa !5
%80 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 8
%81 = load i8, ptr %80, align 8, !tbaa !11
%82 = zext i8 %81 to i32
%83 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %79, ptr noundef nonnull @.str.3, i32 noundef %82) #5
%84 = load i32, ptr @stderr, align 4, !tbaa !5
%85 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 9
%86 = load i8, ptr %85, align 1, !tbaa !11
%87 = zext i8 %86 to i32
%88 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %84, ptr noundef nonnull @.str.3, i32 noundef %87) #5
%89 = load i32, ptr @stderr, align 4, !tbaa !5
%90 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 10
%91 = load i8, ptr %90, align 2, !tbaa !11
%92 = zext i8 %91 to i32
%93 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %89, ptr noundef nonnull @.str.3, i32 noundef %92) #5
%94 = load i32, ptr @stderr, align 4, !tbaa !5
%95 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 11
%96 = load i8, ptr %95, align 1, !tbaa !11
%97 = zext i8 %96 to i32
%98 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %94, ptr noundef nonnull @.str.3, i32 noundef %97) #5
%99 = load i32, ptr @stderr, align 4, !tbaa !5
%100 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 12
%101 = load i8, ptr %100, align 4, !tbaa !11
%102 = zext i8 %101 to i32
%103 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %99, ptr noundef nonnull @.str.3, i32 noundef %102) #5
%104 = load i32, ptr @stderr, align 4, !tbaa !5
%105 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 13
%106 = load i8, ptr %105, align 1, !tbaa !11
%107 = zext i8 %106 to i32
%108 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %104, ptr noundef nonnull @.str.3, i32 noundef %107) #5
%109 = load i32, ptr @stderr, align 4, !tbaa !5
%110 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 14
%111 = load i8, ptr %110, align 2, !tbaa !11
%112 = zext i8 %111 to i32
%113 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %109, ptr noundef nonnull @.str.3, i32 noundef %112) #5
%114 = load i32, ptr @stderr, align 4, !tbaa !5
%115 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 15
%116 = load i8, ptr %115, align 1, !tbaa !11
%117 = zext i8 %116 to i32
%118 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %114, ptr noundef nonnull @.str.3, i32 noundef %117) #5
%119 = load i32, ptr @stderr, align 4, !tbaa !5
%120 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %119, ptr noundef nonnull @.str.4) #5
br label %121
121: ; preds = %37, %36
%122 = call i32 @cpu_to_le32(i64 noundef %3) #5
%123 = getelementptr inbounds %struct.wrg_header, ptr %0, i64 0, i32 1
store i32 %122, ptr %123, align 4, !tbaa !12
%124 = load i32, ptr %0, align 4, !tbaa !9
%125 = call i32 @memcpy(i32 noundef %124, ptr noundef nonnull %6, i32 noundef 16) #5
br label %126
126: ; preds = %121, %15
%127 = phi i32 [ %18, %15 ], [ 0, %121 ]
%128 = call i32 @free(ptr noundef nonnull %7) #5
br label %129
129: ; preds = %9, %126, %32, %33
%130 = phi i32 [ -1, %33 ], [ -1, %32 ], [ %127, %126 ], [ %11, %9 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
ret i32 %130
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2
; Function Attrs: nofree
declare noundef i64 @pread(i32 noundef, ptr nocapture noundef, i64 noundef, i64 noundef) local_unnamed_addr #3
declare i32 @perror(ptr noundef) local_unnamed_addr #4
declare i32 @MD5_Init(ptr noundef) local_unnamed_addr #4
declare i32 @MD5_Update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4
declare i32 @MD5_Final(ptr noundef, ptr noundef) local_unnamed_addr #4
declare i32 @memcmp(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4
declare i32 @fprintf(i32 noundef, ptr noundef, ...) local_unnamed_addr #4
declare i32 @cpu_to_le32(i64 noundef) local_unnamed_addr #4
declare i32 @memcpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4
declare i32 @free(ptr noundef) local_unnamed_addr #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 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 = !{!"wrg_header", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!7, !7, i64 0}
!12 = !{!10, !6, i64 4}
| ; ModuleID = 'AnghaBench/lede/package/system/mtd/src/extr_wrg.c_wrg_fix_md5.c'
source_filename = "AnghaBench/lede/package/system/mtd/src/extr_wrg.c_wrg_fix_md5.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
@.str = private unnamed_addr constant [6 x i8] c"pread\00", align 1
@EIO = common local_unnamed_addr global i32 0, align 4
@quiet = 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 [29 x i8] c"the header is fixed already\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"new size: %u, new MD5: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @wrg_fix_md5(ptr noundef %0, i32 noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = alloca i32, align 4
%6 = alloca [16 x i8], align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
%7 = tail call ptr @malloc(i64 noundef %3)
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%11 = sub nsw i32 0, %10
br label %129
12: ; preds = %4
%13 = tail call i64 @pread(i32 noundef %1, ptr noundef nonnull %7, i64 noundef %3, i64 noundef %2) #5
%14 = icmp eq i64 %13, %3
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = tail call i32 @perror(ptr noundef nonnull @.str) #5
%17 = load i32, ptr @EIO, align 4, !tbaa !6
%18 = sub nsw i32 0, %17
br label %126
19: ; preds = %12
%20 = call i32 @MD5_Init(ptr noundef nonnull %5) #5
%21 = getelementptr inbounds i8, ptr %0, i64 12
%22 = call i32 @MD5_Update(ptr noundef nonnull %5, ptr noundef nonnull %21, i64 noundef 4) #5
%23 = getelementptr inbounds i8, ptr %0, i64 8
%24 = call i32 @MD5_Update(ptr noundef nonnull %5, ptr noundef nonnull %23, i64 noundef 4) #5
%25 = call i32 @MD5_Update(ptr noundef nonnull %5, ptr noundef nonnull %7, i64 noundef %3) #5
%26 = call i32 @MD5_Final(ptr noundef nonnull %6, ptr noundef nonnull %5) #5
%27 = load i32, ptr %0, align 4, !tbaa !10
%28 = call i32 @memcmp(ptr noundef nonnull %6, i32 noundef %27, i32 noundef 16) #5
%29 = icmp eq i32 %28, 0
%30 = load i32, ptr @quiet, align 4, !tbaa !6
%31 = icmp slt i32 %30, 2
br i1 %29, label %32, label %36
32: ; preds = %19
br i1 %31, label %33, label %129
33: ; preds = %32
%34 = load i32, ptr @stderr, align 4, !tbaa !6
%35 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %34, ptr noundef nonnull @.str.1) #5
br label %129
36: ; preds = %19
br i1 %31, label %37, label %121
37: ; preds = %36
%38 = load i32, ptr @stderr, align 4, !tbaa !6
%39 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef nonnull @.str.2, i64 noundef %3) #5
%40 = load i32, ptr @stderr, align 4, !tbaa !6
%41 = load i8, ptr %6, align 1, !tbaa !12
%42 = zext i8 %41 to i32
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef nonnull @.str.3, i32 noundef %42) #5
%44 = load i32, ptr @stderr, align 4, !tbaa !6
%45 = getelementptr inbounds i8, ptr %6, i64 1
%46 = load i8, ptr %45, align 1, !tbaa !12
%47 = zext i8 %46 to i32
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %44, ptr noundef nonnull @.str.3, i32 noundef %47) #5
%49 = load i32, ptr @stderr, align 4, !tbaa !6
%50 = getelementptr inbounds i8, ptr %6, i64 2
%51 = load i8, ptr %50, align 1, !tbaa !12
%52 = zext i8 %51 to i32
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef nonnull @.str.3, i32 noundef %52) #5
%54 = load i32, ptr @stderr, align 4, !tbaa !6
%55 = getelementptr inbounds i8, ptr %6, i64 3
%56 = load i8, ptr %55, align 1, !tbaa !12
%57 = zext i8 %56 to i32
%58 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef nonnull @.str.3, i32 noundef %57) #5
%59 = load i32, ptr @stderr, align 4, !tbaa !6
%60 = getelementptr inbounds i8, ptr %6, i64 4
%61 = load i8, ptr %60, align 1, !tbaa !12
%62 = zext i8 %61 to i32
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef nonnull @.str.3, i32 noundef %62) #5
%64 = load i32, ptr @stderr, align 4, !tbaa !6
%65 = getelementptr inbounds i8, ptr %6, i64 5
%66 = load i8, ptr %65, align 1, !tbaa !12
%67 = zext i8 %66 to i32
%68 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef nonnull @.str.3, i32 noundef %67) #5
%69 = load i32, ptr @stderr, align 4, !tbaa !6
%70 = getelementptr inbounds i8, ptr %6, i64 6
%71 = load i8, ptr %70, align 1, !tbaa !12
%72 = zext i8 %71 to i32
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef nonnull @.str.3, i32 noundef %72) #5
%74 = load i32, ptr @stderr, align 4, !tbaa !6
%75 = getelementptr inbounds i8, ptr %6, i64 7
%76 = load i8, ptr %75, align 1, !tbaa !12
%77 = zext i8 %76 to i32
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %74, ptr noundef nonnull @.str.3, i32 noundef %77) #5
%79 = load i32, ptr @stderr, align 4, !tbaa !6
%80 = getelementptr inbounds i8, ptr %6, i64 8
%81 = load i8, ptr %80, align 1, !tbaa !12
%82 = zext i8 %81 to i32
%83 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %79, ptr noundef nonnull @.str.3, i32 noundef %82) #5
%84 = load i32, ptr @stderr, align 4, !tbaa !6
%85 = getelementptr inbounds i8, ptr %6, i64 9
%86 = load i8, ptr %85, align 1, !tbaa !12
%87 = zext i8 %86 to i32
%88 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %84, ptr noundef nonnull @.str.3, i32 noundef %87) #5
%89 = load i32, ptr @stderr, align 4, !tbaa !6
%90 = getelementptr inbounds i8, ptr %6, i64 10
%91 = load i8, ptr %90, align 1, !tbaa !12
%92 = zext i8 %91 to i32
%93 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %89, ptr noundef nonnull @.str.3, i32 noundef %92) #5
%94 = load i32, ptr @stderr, align 4, !tbaa !6
%95 = getelementptr inbounds i8, ptr %6, i64 11
%96 = load i8, ptr %95, align 1, !tbaa !12
%97 = zext i8 %96 to i32
%98 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %94, ptr noundef nonnull @.str.3, i32 noundef %97) #5
%99 = load i32, ptr @stderr, align 4, !tbaa !6
%100 = getelementptr inbounds i8, ptr %6, i64 12
%101 = load i8, ptr %100, align 1, !tbaa !12
%102 = zext i8 %101 to i32
%103 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %99, ptr noundef nonnull @.str.3, i32 noundef %102) #5
%104 = load i32, ptr @stderr, align 4, !tbaa !6
%105 = getelementptr inbounds i8, ptr %6, i64 13
%106 = load i8, ptr %105, align 1, !tbaa !12
%107 = zext i8 %106 to i32
%108 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %104, ptr noundef nonnull @.str.3, i32 noundef %107) #5
%109 = load i32, ptr @stderr, align 4, !tbaa !6
%110 = getelementptr inbounds i8, ptr %6, i64 14
%111 = load i8, ptr %110, align 1, !tbaa !12
%112 = zext i8 %111 to i32
%113 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %109, ptr noundef nonnull @.str.3, i32 noundef %112) #5
%114 = load i32, ptr @stderr, align 4, !tbaa !6
%115 = getelementptr inbounds i8, ptr %6, i64 15
%116 = load i8, ptr %115, align 1, !tbaa !12
%117 = zext i8 %116 to i32
%118 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %114, ptr noundef nonnull @.str.3, i32 noundef %117) #5
%119 = load i32, ptr @stderr, align 4, !tbaa !6
%120 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %119, ptr noundef nonnull @.str.4) #5
br label %121
121: ; preds = %37, %36
%122 = call i32 @cpu_to_le32(i64 noundef %3) #5
%123 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %122, ptr %123, align 4, !tbaa !13
%124 = load i32, ptr %0, align 4, !tbaa !10
%125 = call i32 @memcpy(i32 noundef %124, ptr noundef nonnull %6, i32 noundef 16) #5
br label %126
126: ; preds = %121, %15
%127 = phi i32 [ %18, %15 ], [ 0, %121 ]
%128 = call i32 @free(ptr noundef nonnull %7) #5
br label %129
129: ; preds = %9, %126, %32, %33
%130 = phi i32 [ -1, %33 ], [ -1, %32 ], [ %127, %126 ], [ %11, %9 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
ret i32 %130
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2
; Function Attrs: nofree
declare noundef i64 @pread(i32 noundef, ptr nocapture noundef, i64 noundef, i64 noundef) local_unnamed_addr #3
declare i32 @perror(ptr noundef) local_unnamed_addr #4
declare i32 @MD5_Init(ptr noundef) local_unnamed_addr #4
declare i32 @MD5_Update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4
declare i32 @MD5_Final(ptr noundef, ptr noundef) local_unnamed_addr #4
declare i32 @memcmp(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4
declare i32 @fprintf(i32 noundef, ptr noundef, ...) local_unnamed_addr #4
declare i32 @cpu_to_le32(i64 noundef) local_unnamed_addr #4
declare i32 @memcpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4
declare i32 @free(ptr noundef) local_unnamed_addr #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 #5 = { 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 = !{!"wrg_header", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!12 = !{!8, !8, i64 0}
!13 = !{!11, !7, i64 4}
| lede_package_system_mtd_src_extr_wrg.c_wrg_fix_md5 |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc.h_igc_get_phy_info.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc.h_igc_get_phy_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @igc_get_phy_info], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @igc_get_phy_info(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = icmp eq ptr %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 %2(ptr noundef nonnull %0) #1
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ %5, %4 ], [ 0, %1 ]
ret i32 %7
}
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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, !9, i64 0}
!6 = !{!"igc_hw", !7, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0}
!8 = !{!"TYPE_3__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc.h_igc_get_phy_info.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc.h_igc_get_phy_info.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 @igc_get_phy_info], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @igc_get_phy_info(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = icmp eq ptr %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 %2(ptr noundef nonnull %0) #1
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ %5, %4 ], [ 0, %1 ]
ret i32 %7
}
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 = { 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, !10, i64 0}
!7 = !{!"igc_hw", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0}
!9 = !{!"TYPE_3__", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_ethernet_intel_igc_extr_igc.h_igc_get_phy_info |
; ModuleID = 'AnghaBench/freebsd/sys/dev/firewire/extr_firewire.c_fw_reset_crom.c'
source_filename = "AnghaBench/freebsd/sys/dev/firewire/extr_firewire.c_fw_reset_crom.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_2__ = type { ptr, i32 }
%struct.firewire_comm = type { ptr, ptr, ptr }
%struct.crom_src_buf = type { i32, i32 }
@CSRKEY_NCAP = dso_local local_unnamed_addr global i32 0, align 4
@CSRKEY_VENDOR = dso_local local_unnamed_addr global i32 0, align 4
@CSRVAL_VENDOR_PRIVATE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"FreeBSD Project\00", align 1
@CSRKEY_HW = dso_local local_unnamed_addr global i32 0, align 4
@__FreeBSD_version = dso_local local_unnamed_addr global i32 0, align 4
@prison0 = dso_local global %struct.TYPE_2__ zeroinitializer, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @fw_reset_crom], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @fw_reset_crom(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.firewire_comm, ptr %0, i64 0, i32 2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.firewire_comm, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = load ptr, ptr %0, align 8, !tbaa !11
%7 = tail call i32 @STAILQ_INIT(ptr noundef %5) #2
%8 = tail call i32 @bzero(ptr noundef %6, i32 noundef 4) #2
%9 = tail call i32 @crom_add_chunk(ptr noundef %5, ptr noundef null, ptr noundef %6, i32 noundef 0) #2
%10 = load i32, ptr @CSRKEY_NCAP, align 4, !tbaa !12
%11 = tail call i32 @crom_add_entry(ptr noundef %6, i32 noundef %10, i32 noundef 33728) #2
%12 = load i32, ptr @CSRKEY_VENDOR, align 4, !tbaa !12
%13 = load i32, ptr @CSRVAL_VENDOR_PRIVATE, align 4, !tbaa !12
%14 = tail call i32 @crom_add_entry(ptr noundef %6, i32 noundef %12, i32 noundef %13) #2
%15 = getelementptr inbounds %struct.crom_src_buf, ptr %3, i64 0, i32 1
%16 = tail call i32 @crom_add_simple_text(ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull @.str) #2
%17 = load i32, ptr @CSRKEY_HW, align 4, !tbaa !12
%18 = load i32, ptr @__FreeBSD_version, align 4, !tbaa !12
%19 = tail call i32 @crom_add_entry(ptr noundef %6, i32 noundef %17, i32 noundef %18) #2
%20 = tail call i32 @mtx_lock(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_2__, ptr @prison0, i64 0, i32 1)) #2
%21 = load ptr, ptr @prison0, align 8, !tbaa !14
%22 = tail call i32 @crom_add_simple_text(ptr noundef %5, ptr noundef %6, ptr noundef %3, ptr noundef %21) #2
%23 = tail call i32 @mtx_unlock(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_2__, ptr @prison0, i64 0, i32 1)) #2
ret void
}
declare i32 @STAILQ_INIT(ptr noundef) local_unnamed_addr #1
declare i32 @bzero(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @crom_add_chunk(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @crom_add_entry(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @crom_add_simple_text(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mtx_lock(ptr 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, !7, i64 16}
!6 = !{!"firewire_comm", !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 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_2__", !7, i64 0, !13, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/firewire/extr_firewire.c_fw_reset_crom.c'
source_filename = "AnghaBench/freebsd/sys/dev/firewire/extr_firewire.c_fw_reset_crom.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 { ptr, i32 }
@CSRKEY_NCAP = common local_unnamed_addr global i32 0, align 4
@CSRKEY_VENDOR = common local_unnamed_addr global i32 0, align 4
@CSRVAL_VENDOR_PRIVATE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"FreeBSD Project\00", align 1
@CSRKEY_HW = common local_unnamed_addr global i32 0, align 4
@__FreeBSD_version = common local_unnamed_addr global i32 0, align 4
@prison0 = common global %struct.TYPE_2__ zeroinitializer, align 8
@llvm.used = appending global [1 x ptr] [ptr @fw_reset_crom], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @fw_reset_crom(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load ptr, ptr %0, align 8, !tbaa !12
%7 = tail call i32 @STAILQ_INIT(ptr noundef %5) #2
%8 = tail call i32 @bzero(ptr noundef %6, i32 noundef 4) #2
%9 = tail call i32 @crom_add_chunk(ptr noundef %5, ptr noundef null, ptr noundef %6, i32 noundef 0) #2
%10 = load i32, ptr @CSRKEY_NCAP, align 4, !tbaa !13
%11 = tail call i32 @crom_add_entry(ptr noundef %6, i32 noundef %10, i32 noundef 33728) #2
%12 = load i32, ptr @CSRKEY_VENDOR, align 4, !tbaa !13
%13 = load i32, ptr @CSRVAL_VENDOR_PRIVATE, align 4, !tbaa !13
%14 = tail call i32 @crom_add_entry(ptr noundef %6, i32 noundef %12, i32 noundef %13) #2
%15 = getelementptr inbounds i8, ptr %3, i64 4
%16 = tail call i32 @crom_add_simple_text(ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull @.str) #2
%17 = load i32, ptr @CSRKEY_HW, align 4, !tbaa !13
%18 = load i32, ptr @__FreeBSD_version, align 4, !tbaa !13
%19 = tail call i32 @crom_add_entry(ptr noundef %6, i32 noundef %17, i32 noundef %18) #2
%20 = tail call i32 @mtx_lock(ptr noundef nonnull getelementptr inbounds (i8, ptr @prison0, i64 8)) #2
%21 = load ptr, ptr @prison0, align 8, !tbaa !15
%22 = tail call i32 @crom_add_simple_text(ptr noundef %5, ptr noundef %6, ptr noundef %3, ptr noundef %21) #2
%23 = tail call i32 @mtx_unlock(ptr noundef nonnull getelementptr inbounds (i8, ptr @prison0, i64 8)) #2
ret void
}
declare i32 @STAILQ_INIT(ptr noundef) local_unnamed_addr #1
declare i32 @bzero(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @crom_add_chunk(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @crom_add_entry(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @crom_add_simple_text(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mtx_lock(ptr 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, !8, i64 16}
!7 = !{!"firewire_comm", !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 = !{!7, !8, i64 8}
!12 = !{!7, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_2__", !8, i64 0, !14, i64 8}
| freebsd_sys_dev_firewire_extr_firewire.c_fw_reset_crom |
; ModuleID = 'AnghaBench/freebsd/sys/dev/qlnx/qlnxe/extr_ecore_l2.c_ecore_eth_txq_start_ramrod.c'
source_filename = "AnghaBench/freebsd/sys/dev/qlnx/qlnxe/extr_ecore_l2.c_ecore_eth_txq_start_ramrod.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.ecore_sp_init_data = type { i32, i32, i32 }
%struct.ecore_queue_cid = type { %struct.TYPE_4__, i32, i32, i32, i32 }
%struct.TYPE_4__ = type { i32, i32, i32 }
%struct.tx_queue_start_ramrod_data = type { ptr, i32, ptr, ptr, ptr, i32, i32, ptr, i32 }
@OSAL_NULL = dso_local local_unnamed_addr global ptr null, align 8
@ECORE_NOTIMPL = dso_local local_unnamed_addr global i32 0, align 4
@ECORE_SPQ_MODE_EBLOCK = dso_local local_unnamed_addr global i32 0, align 4
@ETH_RAMROD_TX_QUEUE_START = dso_local local_unnamed_addr global i32 0, align 4
@PROTOCOLID_ETH = dso_local local_unnamed_addr global i32 0, align 4
@ECORE_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ecore_eth_txq_start_ramrod(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = alloca ptr, align 8
%7 = alloca %struct.ecore_sp_init_data, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%8 = load ptr, ptr @OSAL_NULL, align 8, !tbaa !5
store ptr %8, ptr %6, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #3
%9 = call i32 @OSAL_MEMSET(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 12) #3
%10 = getelementptr inbounds %struct.ecore_queue_cid, ptr %1, i64 0, i32 3
%11 = getelementptr inbounds %struct.ecore_sp_init_data, ptr %7, i64 0, i32 1
%12 = load <2 x i32>, ptr %10, align 4, !tbaa !9
store <2 x i32> %12, ptr %11, align 4, !tbaa !9
%13 = load i32, ptr @ECORE_SPQ_MODE_EBLOCK, align 4, !tbaa !9
store i32 %13, ptr %7, align 4, !tbaa !11
%14 = load i32, ptr @ETH_RAMROD_TX_QUEUE_START, align 4, !tbaa !9
%15 = load i32, ptr @PROTOCOLID_ETH, align 4, !tbaa !9
%16 = call i32 @ecore_sp_init_request(ptr noundef %0, ptr noundef nonnull %6, i32 noundef %14, i32 noundef %15, ptr noundef nonnull %7) #3
%17 = load i32, ptr @ECORE_SUCCESS, align 4, !tbaa !9
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %49
19: ; preds = %5
%20 = load ptr, ptr %6, align 8, !tbaa !5
%21 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 2
%22 = load i32, ptr %21, align 4, !tbaa !13
%23 = getelementptr inbounds %struct.tx_queue_start_ramrod_data, ptr %20, i64 0, i32 8
store i32 %22, ptr %23, align 8, !tbaa !16
%24 = getelementptr inbounds %struct.ecore_queue_cid, ptr %1, i64 0, i32 2
%25 = load i32, ptr %24, align 4, !tbaa !18
%26 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %25) #3
%27 = getelementptr inbounds %struct.tx_queue_start_ramrod_data, ptr %20, i64 0, i32 7
store ptr %26, ptr %27, align 8, !tbaa !19
%28 = getelementptr inbounds %struct.ecore_queue_cid, ptr %1, i64 0, i32 1
%29 = load i32, ptr %28, align 4, !tbaa !20
%30 = getelementptr inbounds %struct.tx_queue_start_ramrod_data, ptr %20, i64 0, i32 6
store i32 %29, ptr %30, align 4, !tbaa !21
%31 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 1
%32 = load i32, ptr %31, align 4, !tbaa !22
%33 = getelementptr inbounds %struct.tx_queue_start_ramrod_data, ptr %20, i64 0, i32 5
store i32 %32, ptr %33, align 8, !tbaa !23
%34 = load i32, ptr %1, align 4, !tbaa !24
%35 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %34) #3
%36 = getelementptr inbounds %struct.tx_queue_start_ramrod_data, ptr %20, i64 0, i32 4
store ptr %35, ptr %36, align 8, !tbaa !25
%37 = load i32, ptr %1, align 4, !tbaa !24
%38 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %37) #3
%39 = getelementptr inbounds %struct.tx_queue_start_ramrod_data, ptr %20, i64 0, i32 3
store ptr %38, ptr %39, align 8, !tbaa !26
%40 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %3) #3
%41 = getelementptr inbounds %struct.tx_queue_start_ramrod_data, ptr %20, i64 0, i32 2
store ptr %40, ptr %41, align 8, !tbaa !27
%42 = getelementptr inbounds %struct.tx_queue_start_ramrod_data, ptr %20, i64 0, i32 1
%43 = load i32, ptr %42, align 8, !tbaa !28
%44 = call i32 @DMA_REGPAIR_LE(i32 noundef %43, i32 noundef %2) #3
%45 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %4) #3
store ptr %45, ptr %20, align 8, !tbaa !29
%46 = load ptr, ptr %6, align 8, !tbaa !5
%47 = load ptr, ptr @OSAL_NULL, align 8, !tbaa !5
%48 = call i32 @ecore_spq_post(ptr noundef %0, ptr noundef %46, ptr noundef %47) #3
br label %49
49: ; preds = %5, %19
%50 = phi i32 [ %48, %19 ], [ %16, %5 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret i32 %50
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @OSAL_MEMSET(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ecore_sp_init_request(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @OSAL_CPU_TO_LE16(i32 noundef) local_unnamed_addr #2
declare i32 @DMA_REGPAIR_LE(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ecore_spq_post(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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"ecore_sp_init_data", !10, i64 0, !10, i64 4, !10, i64 8}
!13 = !{!14, !10, i64 8}
!14 = !{!"ecore_queue_cid", !15, i64 0, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!15 = !{!"TYPE_4__", !10, i64 0, !10, i64 4, !10, i64 8}
!16 = !{!17, !10, i64 56}
!17 = !{!"tx_queue_start_ramrod_data", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !6, i64 48, !10, i64 56}
!18 = !{!14, !10, i64 16}
!19 = !{!17, !6, i64 48}
!20 = !{!14, !10, i64 12}
!21 = !{!17, !10, i64 44}
!22 = !{!14, !10, i64 4}
!23 = !{!17, !10, i64 40}
!24 = !{!14, !10, i64 0}
!25 = !{!17, !6, i64 32}
!26 = !{!17, !6, i64 24}
!27 = !{!17, !6, i64 16}
!28 = !{!17, !10, i64 8}
!29 = !{!17, !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/qlnx/qlnxe/extr_ecore_l2.c_ecore_eth_txq_start_ramrod.c'
source_filename = "AnghaBench/freebsd/sys/dev/qlnx/qlnxe/extr_ecore_l2.c_ecore_eth_txq_start_ramrod.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ecore_sp_init_data = type { i32, i32, i32 }
@OSAL_NULL = common local_unnamed_addr global ptr null, align 8
@ECORE_NOTIMPL = common local_unnamed_addr global i32 0, align 4
@ECORE_SPQ_MODE_EBLOCK = common local_unnamed_addr global i32 0, align 4
@ETH_RAMROD_TX_QUEUE_START = common local_unnamed_addr global i32 0, align 4
@PROTOCOLID_ETH = common local_unnamed_addr global i32 0, align 4
@ECORE_SUCCESS = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ecore_eth_txq_start_ramrod(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = alloca ptr, align 8
%7 = alloca %struct.ecore_sp_init_data, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%8 = load ptr, ptr @OSAL_NULL, align 8, !tbaa !6
store ptr %8, ptr %6, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #3
%9 = call i32 @OSAL_MEMSET(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 12) #3
%10 = getelementptr inbounds i8, ptr %1, i64 20
%11 = getelementptr inbounds i8, ptr %7, i64 4
%12 = load <2 x i32>, ptr %10, align 4, !tbaa !10
store <2 x i32> %12, ptr %11, align 4, !tbaa !10
%13 = load i32, ptr @ECORE_SPQ_MODE_EBLOCK, align 4, !tbaa !10
store i32 %13, ptr %7, align 4, !tbaa !12
%14 = load i32, ptr @ETH_RAMROD_TX_QUEUE_START, align 4, !tbaa !10
%15 = load i32, ptr @PROTOCOLID_ETH, align 4, !tbaa !10
%16 = call i32 @ecore_sp_init_request(ptr noundef %0, ptr noundef nonnull %6, i32 noundef %14, i32 noundef %15, ptr noundef nonnull %7) #3
%17 = load i32, ptr @ECORE_SUCCESS, align 4, !tbaa !10
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %49
19: ; preds = %5
%20 = load ptr, ptr %6, align 8, !tbaa !6
%21 = getelementptr inbounds i8, ptr %1, i64 8
%22 = load i32, ptr %21, align 4, !tbaa !14
%23 = getelementptr inbounds i8, ptr %20, i64 56
store i32 %22, ptr %23, align 8, !tbaa !17
%24 = getelementptr inbounds i8, ptr %1, i64 16
%25 = load i32, ptr %24, align 4, !tbaa !19
%26 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %25) #3
%27 = getelementptr inbounds i8, ptr %20, i64 48
store ptr %26, ptr %27, align 8, !tbaa !20
%28 = getelementptr inbounds i8, ptr %1, i64 12
%29 = load i32, ptr %28, align 4, !tbaa !21
%30 = getelementptr inbounds i8, ptr %20, i64 44
store i32 %29, ptr %30, align 4, !tbaa !22
%31 = getelementptr inbounds i8, ptr %1, i64 4
%32 = load i32, ptr %31, align 4, !tbaa !23
%33 = getelementptr inbounds i8, ptr %20, i64 40
store i32 %32, ptr %33, align 8, !tbaa !24
%34 = load i32, ptr %1, align 4, !tbaa !25
%35 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %34) #3
%36 = getelementptr inbounds i8, ptr %20, i64 32
store ptr %35, ptr %36, align 8, !tbaa !26
%37 = load i32, ptr %1, align 4, !tbaa !25
%38 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %37) #3
%39 = getelementptr inbounds i8, ptr %20, i64 24
store ptr %38, ptr %39, align 8, !tbaa !27
%40 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %3) #3
%41 = getelementptr inbounds i8, ptr %20, i64 16
store ptr %40, ptr %41, align 8, !tbaa !28
%42 = getelementptr inbounds i8, ptr %20, i64 8
%43 = load i32, ptr %42, align 8, !tbaa !29
%44 = call i32 @DMA_REGPAIR_LE(i32 noundef %43, i32 noundef %2) #3
%45 = call ptr @OSAL_CPU_TO_LE16(i32 noundef %4) #3
store ptr %45, ptr %20, align 8, !tbaa !30
%46 = load ptr, ptr %6, align 8, !tbaa !6
%47 = load ptr, ptr @OSAL_NULL, align 8, !tbaa !6
%48 = call i32 @ecore_spq_post(ptr noundef %0, ptr noundef %46, ptr noundef %47) #3
br label %49
49: ; preds = %5, %19
%50 = phi i32 [ %48, %19 ], [ %16, %5 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret i32 %50
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @OSAL_MEMSET(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ecore_sp_init_request(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @OSAL_CPU_TO_LE16(i32 noundef) local_unnamed_addr #2
declare i32 @DMA_REGPAIR_LE(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ecore_spq_post(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 = !{!"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 = !{!13, !11, i64 0}
!13 = !{!"ecore_sp_init_data", !11, i64 0, !11, i64 4, !11, i64 8}
!14 = !{!15, !11, i64 8}
!15 = !{!"ecore_queue_cid", !16, i64 0, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!16 = !{!"TYPE_4__", !11, i64 0, !11, i64 4, !11, i64 8}
!17 = !{!18, !11, i64 56}
!18 = !{!"tx_queue_start_ramrod_data", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !11, i64 40, !11, i64 44, !7, i64 48, !11, i64 56}
!19 = !{!15, !11, i64 16}
!20 = !{!18, !7, i64 48}
!21 = !{!15, !11, i64 12}
!22 = !{!18, !11, i64 44}
!23 = !{!15, !11, i64 4}
!24 = !{!18, !11, i64 40}
!25 = !{!15, !11, i64 0}
!26 = !{!18, !7, i64 32}
!27 = !{!18, !7, i64 24}
!28 = !{!18, !7, i64 16}
!29 = !{!18, !11, i64 8}
!30 = !{!18, !7, i64 0}
| freebsd_sys_dev_qlnx_qlnxe_extr_ecore_l2.c_ecore_eth_txq_start_ramrod |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_a6xx.xml.h_A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_a6xx.xml.h_A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5.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"
@A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5__SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5__MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5(i32 noundef %0) #0 {
%2 = load i32, ptr @A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5__SHIFT, align 4, !tbaa !5
%3 = shl i32 %0, %2
%4 = load i32, ptr @A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5__MASK, align 4, !tbaa !5
%5 = and i32 %3, %4
ret i32 %5
}
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/gpu/drm/msm/adreno/extr_a6xx.xml.h_A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_a6xx.xml.h_A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5__SHIFT = common local_unnamed_addr global i32 0, align 4
@A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5__MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal i32 @A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5(i32 noundef %0) #0 {
%2 = load i32, ptr @A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5__SHIFT, align 4, !tbaa !6
%3 = shl i32 %0, %2
%4 = load i32, ptr @A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5__MASK, align 4, !tbaa !6
%5 = and i32 %3, %4
ret i32 %5
}
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_gpu_drm_msm_adreno_extr_a6xx.xml.h_A6XX_DBGC_CFG_DBGBUS_BYTEL_0_BYTEL5 |
; ModuleID = 'AnghaBench/linux/net/vmw_vsock/extr_virtio_transport_common.c_virtio_transport_do_close.c'
source_filename = "AnghaBench/linux/net/vmw_vsock/extr_virtio_transport_common.c_virtio_transport_do_close.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.vsock_sock = type { i32, i32, i32 }
%struct.sock = type { ptr, i32 }
@SOCK_DONE = dso_local local_unnamed_addr global i32 0, align 4
@SHUTDOWN_MASK = dso_local local_unnamed_addr global i32 0, align 4
@TCP_CLOSING = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @virtio_transport_do_close], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @virtio_transport_do_close(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @sk_vsock(ptr noundef %0) #2
%4 = load i32, ptr @SOCK_DONE, align 4, !tbaa !5
%5 = tail call i32 @sock_set_flag(ptr noundef %3, i32 noundef %4) #2
%6 = load i32, ptr @SHUTDOWN_MASK, align 4, !tbaa !5
%7 = getelementptr inbounds %struct.vsock_sock, ptr %0, i64 0, i32 2
store i32 %6, ptr %7, align 4, !tbaa !9
%8 = tail call i64 @vsock_stream_has_data(ptr noundef %0) #2
%9 = icmp slt i64 %8, 1
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr @TCP_CLOSING, align 4, !tbaa !5
%12 = getelementptr inbounds %struct.sock, ptr %3, i64 0, i32 1
store i32 %11, ptr %12, align 8, !tbaa !11
br label %13
13: ; preds = %10, %2
%14 = load ptr, ptr %3, align 8, !tbaa !14
%15 = tail call i32 %14(ptr noundef nonnull %3) #2
%16 = load i32, ptr %0, align 4, !tbaa !15
%17 = icmp eq i32 %16, 0
br i1 %17, label %27, label %18
18: ; preds = %13
%19 = icmp eq i32 %1, 0
br i1 %19, label %24, label %20
20: ; preds = %18
%21 = getelementptr inbounds %struct.vsock_sock, ptr %0, i64 0, i32 1
%22 = tail call i64 @cancel_delayed_work(ptr noundef nonnull %21) #2
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %20, %18
store i32 0, ptr %0, align 4, !tbaa !15
%25 = tail call i32 @vsock_remove_sock(ptr noundef nonnull %0) #2
%26 = tail call i32 @sock_put(ptr noundef nonnull %3) #2
br label %27
27: ; preds = %24, %20, %13
ret void
}
declare ptr @sk_vsock(ptr noundef) local_unnamed_addr #1
declare i32 @sock_set_flag(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @vsock_stream_has_data(ptr noundef) local_unnamed_addr #1
declare i64 @cancel_delayed_work(ptr noundef) local_unnamed_addr #1
declare i32 @vsock_remove_sock(ptr noundef) local_unnamed_addr #1
declare i32 @sock_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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"vsock_sock", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!12, !6, i64 8}
!12 = !{!"sock", !13, i64 0, !6, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!12, !13, i64 0}
!15 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/vmw_vsock/extr_virtio_transport_common.c_virtio_transport_do_close.c'
source_filename = "AnghaBench/linux/net/vmw_vsock/extr_virtio_transport_common.c_virtio_transport_do_close.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SOCK_DONE = common local_unnamed_addr global i32 0, align 4
@SHUTDOWN_MASK = common local_unnamed_addr global i32 0, align 4
@TCP_CLOSING = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @virtio_transport_do_close], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @virtio_transport_do_close(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @sk_vsock(ptr noundef %0) #2
%4 = load i32, ptr @SOCK_DONE, align 4, !tbaa !6
%5 = tail call i32 @sock_set_flag(ptr noundef %3, i32 noundef %4) #2
%6 = load i32, ptr @SHUTDOWN_MASK, align 4, !tbaa !6
%7 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %6, ptr %7, align 4, !tbaa !10
%8 = tail call i64 @vsock_stream_has_data(ptr noundef %0) #2
%9 = icmp slt i64 %8, 1
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr @TCP_CLOSING, align 4, !tbaa !6
%12 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %11, ptr %12, align 8, !tbaa !12
br label %13
13: ; preds = %10, %2
%14 = load ptr, ptr %3, align 8, !tbaa !15
%15 = tail call i32 %14(ptr noundef nonnull %3) #2
%16 = load i32, ptr %0, align 4, !tbaa !16
%17 = icmp eq i32 %16, 0
br i1 %17, label %27, label %18
18: ; preds = %13
%19 = icmp eq i32 %1, 0
br i1 %19, label %24, label %20
20: ; preds = %18
%21 = getelementptr inbounds i8, ptr %0, i64 4
%22 = tail call i64 @cancel_delayed_work(ptr noundef nonnull %21) #2
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %20, %18
store i32 0, ptr %0, align 4, !tbaa !16
%25 = tail call i32 @vsock_remove_sock(ptr noundef nonnull %0) #2
%26 = tail call i32 @sock_put(ptr noundef nonnull %3) #2
br label %27
27: ; preds = %24, %20, %13
ret void
}
declare ptr @sk_vsock(ptr noundef) local_unnamed_addr #1
declare i32 @sock_set_flag(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @vsock_stream_has_data(ptr noundef) local_unnamed_addr #1
declare i64 @cancel_delayed_work(ptr noundef) local_unnamed_addr #1
declare i32 @vsock_remove_sock(ptr noundef) local_unnamed_addr #1
declare i32 @sock_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 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"vsock_sock", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!13, !7, i64 8}
!13 = !{!"sock", !14, i64 0, !7, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!13, !14, i64 0}
!16 = !{!11, !7, i64 0}
| linux_net_vmw_vsock_extr_virtio_transport_common.c_virtio_transport_do_close |
; ModuleID = 'AnghaBench/git/extr_unpack-trees.c_setup_unpack_trees_porcelain.c'
source_filename = "AnghaBench/git/extr_unpack-trees.c_setup_unpack_trees_porcelain.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.unpack_trees_options = type { ptr, i32, ptr, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"checkout\00", align 1
@advice_commit_before_merge = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [148 x i8] c"Your local changes to the following files would be overwritten by checkout:\0A%%sPlease commit your changes or stash them before you switch branches.\00", align 1
@.str.2 = private unnamed_addr constant [80 x i8] c"Your local changes to the following files would be overwritten by checkout:\0A%%s\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"merge\00", align 1
@.str.4 = private unnamed_addr constant [135 x i8] c"Your local changes to the following files would be overwritten by merge:\0A%%sPlease commit your changes or stash them before you merge.\00", align 1
@.str.5 = private unnamed_addr constant [77 x i8] c"Your local changes to the following files would be overwritten by merge:\0A%%s\00", align 1
@.str.6 = private unnamed_addr constant [129 x i8] c"Your local changes to the following files would be overwritten by %s:\0A%%sPlease commit your changes or stash them before you %s.\00", align 1
@.str.7 = private unnamed_addr constant [74 x i8] c"Your local changes to the following files would be overwritten by %s:\0A%%s\00", align 1
@ERROR_NOT_UPTODATE_FILE = dso_local local_unnamed_addr global i64 0, align 8
@ERROR_WOULD_OVERWRITE = dso_local local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [74 x i8] c"Updating the following directories would lose untracked files in them:\0A%s\00", align 1
@ERROR_NOT_UPTODATE_DIR = dso_local local_unnamed_addr global i64 0, align 8
@.str.9 = private unnamed_addr constant [131 x i8] c"The following untracked working tree files would be removed by checkout:\0A%%sPlease move or remove them before you switch branches.\00", align 1
@.str.10 = private unnamed_addr constant [77 x i8] c"The following untracked working tree files would be removed by checkout:\0A%%s\00", align 1
@.str.11 = private unnamed_addr constant [118 x i8] c"The following untracked working tree files would be removed by merge:\0A%%sPlease move or remove them before you merge.\00", align 1
@.str.12 = private unnamed_addr constant [74 x i8] c"The following untracked working tree files would be removed by merge:\0A%%s\00", align 1
@.str.13 = private unnamed_addr constant [112 x i8] c"The following untracked working tree files would be removed by %s:\0A%%sPlease move or remove them before you %s.\00", align 1
@.str.14 = private unnamed_addr constant [71 x i8] c"The following untracked working tree files would be removed by %s:\0A%%s\00", align 1
@ERROR_WOULD_LOSE_UNTRACKED_REMOVED = dso_local local_unnamed_addr global i64 0, align 8
@.str.15 = private unnamed_addr constant [135 x i8] c"The following untracked working tree files would be overwritten by checkout:\0A%%sPlease move or remove them before you switch branches.\00", align 1
@.str.16 = private unnamed_addr constant [81 x i8] c"The following untracked working tree files would be overwritten by checkout:\0A%%s\00", align 1
@.str.17 = private unnamed_addr constant [122 x i8] c"The following untracked working tree files would be overwritten by merge:\0A%%sPlease move or remove them before you merge.\00", align 1
@.str.18 = private unnamed_addr constant [78 x i8] c"The following untracked working tree files would be overwritten by merge:\0A%%s\00", align 1
@.str.19 = private unnamed_addr constant [116 x i8] c"The following untracked working tree files would be overwritten by %s:\0A%%sPlease move or remove them before you %s.\00", align 1
@.str.20 = private unnamed_addr constant [75 x i8] c"The following untracked working tree files would be overwritten by %s:\0A%%s\00", align 1
@ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN = dso_local local_unnamed_addr global i64 0, align 8
@.str.21 = private unnamed_addr constant [45 x i8] c"Entry '%s' overlaps with '%s'. Cannot bind.\00", align 1
@ERROR_BIND_OVERLAP = dso_local local_unnamed_addr global i64 0, align 8
@.str.22 = private unnamed_addr constant [76 x i8] c"Cannot update sparse checkout: the following entries are not up to date:\0A%s\00", align 1
@ERROR_SPARSE_NOT_UPTODATE_FILE = dso_local local_unnamed_addr global i64 0, align 8
@.str.23 = private unnamed_addr constant [84 x i8] c"The following working tree files would be overwritten by sparse checkout update:\0A%s\00", align 1
@ERROR_WOULD_LOSE_ORPHANED_OVERWRITTEN = dso_local local_unnamed_addr global i64 0, align 8
@.str.24 = private unnamed_addr constant [80 x i8] c"The following working tree files would be removed by sparse checkout update:\0A%s\00", align 1
@ERROR_WOULD_LOSE_ORPHANED_REMOVED = dso_local local_unnamed_addr global i64 0, align 8
@.str.25 = private unnamed_addr constant [28 x i8] c"Cannot update submodule:\0A%s\00", align 1
@ERROR_WOULD_LOSE_SUBMODULE = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @setup_unpack_trees_porcelain(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.unpack_trees_options, ptr %0, i64 0, i32 3
%5 = tail call i32 @argv_array_init(ptr noundef nonnull %4) #3
%6 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(9) @.str)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !11
%10 = icmp eq i64 %9, 0
%11 = select i1 %10, ptr @.str.2, ptr @.str.1
br label %21
12: ; preds = %2
%13 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(6) @.str.3)
%14 = icmp eq i32 %13, 0
%15 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !11
%16 = icmp eq i64 %15, 0
br i1 %14, label %17, label %19
17: ; preds = %12
%18 = select i1 %16, ptr @.str.5, ptr @.str.4
br label %21
19: ; preds = %12
%20 = select i1 %16, ptr @.str.7, ptr @.str.6
br label %21
21: ; preds = %19, %17, %8
%22 = phi ptr [ %11, %8 ], [ %18, %17 ], [ %20, %19 ]
%23 = tail call ptr @_(ptr noundef nonnull %22) #3
%24 = tail call ptr @argv_array_pushf(ptr noundef nonnull %4, ptr noundef %23, ptr noundef %1, ptr noundef %1) #3
%25 = load i64, ptr @ERROR_NOT_UPTODATE_FILE, align 8, !tbaa !11
%26 = getelementptr inbounds ptr, ptr %3, i64 %25
store ptr %24, ptr %26, align 8, !tbaa !13
%27 = load i64, ptr @ERROR_WOULD_OVERWRITE, align 8, !tbaa !11
%28 = getelementptr inbounds ptr, ptr %3, i64 %27
store ptr %24, ptr %28, align 8, !tbaa !13
%29 = tail call ptr @_(ptr noundef nonnull @.str.8) #3
%30 = load i64, ptr @ERROR_NOT_UPTODATE_DIR, align 8, !tbaa !11
%31 = getelementptr inbounds ptr, ptr %3, i64 %30
store ptr %29, ptr %31, align 8, !tbaa !13
%32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(9) @.str)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %21
%35 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !11
%36 = icmp eq i64 %35, 0
%37 = select i1 %36, ptr @.str.10, ptr @.str.9
br label %47
38: ; preds = %21
%39 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(6) @.str.3)
%40 = icmp eq i32 %39, 0
%41 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !11
%42 = icmp eq i64 %41, 0
br i1 %40, label %43, label %45
43: ; preds = %38
%44 = select i1 %42, ptr @.str.12, ptr @.str.11
br label %47
45: ; preds = %38
%46 = select i1 %42, ptr @.str.14, ptr @.str.13
br label %47
47: ; preds = %45, %43, %34
%48 = phi ptr [ %37, %34 ], [ %44, %43 ], [ %46, %45 ]
%49 = tail call ptr @_(ptr noundef nonnull %48) #3
%50 = tail call ptr @argv_array_pushf(ptr noundef nonnull %4, ptr noundef %49, ptr noundef %1, ptr noundef %1) #3
%51 = load i64, ptr @ERROR_WOULD_LOSE_UNTRACKED_REMOVED, align 8, !tbaa !11
%52 = getelementptr inbounds ptr, ptr %3, i64 %51
store ptr %50, ptr %52, align 8, !tbaa !13
%53 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(9) @.str)
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %47
%56 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !11
%57 = icmp eq i64 %56, 0
%58 = select i1 %57, ptr @.str.16, ptr @.str.15
br label %68
59: ; preds = %47
%60 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(6) @.str.3)
%61 = icmp eq i32 %60, 0
%62 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !11
%63 = icmp eq i64 %62, 0
br i1 %61, label %64, label %66
64: ; preds = %59
%65 = select i1 %63, ptr @.str.18, ptr @.str.17
br label %68
66: ; preds = %59
%67 = select i1 %63, ptr @.str.20, ptr @.str.19
br label %68
68: ; preds = %66, %64, %55
%69 = phi ptr [ %58, %55 ], [ %65, %64 ], [ %67, %66 ]
%70 = tail call ptr @_(ptr noundef nonnull %69) #3
%71 = tail call ptr @argv_array_pushf(ptr noundef nonnull %4, ptr noundef %70, ptr noundef %1, ptr noundef %1) #3
%72 = load i64, ptr @ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN, align 8, !tbaa !11
%73 = getelementptr inbounds ptr, ptr %3, i64 %72
store ptr %71, ptr %73, align 8, !tbaa !13
%74 = tail call ptr @_(ptr noundef nonnull @.str.21) #3
%75 = load i64, ptr @ERROR_BIND_OVERLAP, align 8, !tbaa !11
%76 = getelementptr inbounds ptr, ptr %3, i64 %75
store ptr %74, ptr %76, align 8, !tbaa !13
%77 = tail call ptr @_(ptr noundef nonnull @.str.22) #3
%78 = load i64, ptr @ERROR_SPARSE_NOT_UPTODATE_FILE, align 8, !tbaa !11
%79 = getelementptr inbounds ptr, ptr %3, i64 %78
store ptr %77, ptr %79, align 8, !tbaa !13
%80 = tail call ptr @_(ptr noundef nonnull @.str.23) #3
%81 = load i64, ptr @ERROR_WOULD_LOSE_ORPHANED_OVERWRITTEN, align 8, !tbaa !11
%82 = getelementptr inbounds ptr, ptr %3, i64 %81
store ptr %80, ptr %82, align 8, !tbaa !13
%83 = tail call ptr @_(ptr noundef nonnull @.str.24) #3
%84 = load i64, ptr @ERROR_WOULD_LOSE_ORPHANED_REMOVED, align 8, !tbaa !11
%85 = getelementptr inbounds ptr, ptr %3, i64 %84
store ptr %83, ptr %85, align 8, !tbaa !13
%86 = tail call ptr @_(ptr noundef nonnull @.str.25) #3
%87 = load i64, ptr @ERROR_WOULD_LOSE_SUBMODULE, align 8, !tbaa !11
%88 = getelementptr inbounds ptr, ptr %3, i64 %87
store ptr %86, ptr %88, align 8, !tbaa !13
%89 = getelementptr inbounds %struct.unpack_trees_options, ptr %0, i64 0, i32 1
store i32 1, ptr %89, align 8, !tbaa !14
%90 = getelementptr inbounds %struct.unpack_trees_options, ptr %0, i64 0, i32 2
%91 = load ptr, ptr %90, align 8, !tbaa !15
%92 = tail call i32 @ARRAY_SIZE(ptr noundef %91) #3
%93 = icmp sgt i32 %92, 0
br i1 %93, label %94, label %102
94: ; preds = %68, %94
%95 = phi i64 [ %98, %94 ], [ 0, %68 ]
%96 = load ptr, ptr %90, align 8, !tbaa !15
%97 = getelementptr inbounds %struct.TYPE_2__, ptr %96, i64 %95
store i32 1, ptr %97, align 4, !tbaa !16
%98 = add nuw nsw i64 %95, 1
%99 = tail call i32 @ARRAY_SIZE(ptr noundef %96) #3
%100 = sext i32 %99 to i64
%101 = icmp slt i64 %98, %100
br i1 %101, label %94, label %102, !llvm.loop !18
102: ; preds = %94, %68
ret void
}
declare i32 @argv_array_init(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2
declare ptr @_(ptr noundef) local_unnamed_addr #1
declare ptr @argv_array_pushf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(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 nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"unpack_trees_options", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !7, i64 16}
!16 = !{!17, !10, i64 0}
!17 = !{!"TYPE_2__", !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/git/extr_unpack-trees.c_setup_unpack_trees_porcelain.c'
source_filename = "AnghaBench/git/extr_unpack-trees.c_setup_unpack_trees_porcelain.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 }
@.str = private unnamed_addr constant [9 x i8] c"checkout\00", align 1
@advice_commit_before_merge = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [148 x i8] c"Your local changes to the following files would be overwritten by checkout:\0A%%sPlease commit your changes or stash them before you switch branches.\00", align 1
@.str.2 = private unnamed_addr constant [80 x i8] c"Your local changes to the following files would be overwritten by checkout:\0A%%s\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"merge\00", align 1
@.str.4 = private unnamed_addr constant [135 x i8] c"Your local changes to the following files would be overwritten by merge:\0A%%sPlease commit your changes or stash them before you merge.\00", align 1
@.str.5 = private unnamed_addr constant [77 x i8] c"Your local changes to the following files would be overwritten by merge:\0A%%s\00", align 1
@.str.6 = private unnamed_addr constant [129 x i8] c"Your local changes to the following files would be overwritten by %s:\0A%%sPlease commit your changes or stash them before you %s.\00", align 1
@.str.7 = private unnamed_addr constant [74 x i8] c"Your local changes to the following files would be overwritten by %s:\0A%%s\00", align 1
@ERROR_NOT_UPTODATE_FILE = common local_unnamed_addr global i64 0, align 8
@ERROR_WOULD_OVERWRITE = common local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [74 x i8] c"Updating the following directories would lose untracked files in them:\0A%s\00", align 1
@ERROR_NOT_UPTODATE_DIR = common local_unnamed_addr global i64 0, align 8
@.str.9 = private unnamed_addr constant [131 x i8] c"The following untracked working tree files would be removed by checkout:\0A%%sPlease move or remove them before you switch branches.\00", align 1
@.str.10 = private unnamed_addr constant [77 x i8] c"The following untracked working tree files would be removed by checkout:\0A%%s\00", align 1
@.str.11 = private unnamed_addr constant [118 x i8] c"The following untracked working tree files would be removed by merge:\0A%%sPlease move or remove them before you merge.\00", align 1
@.str.12 = private unnamed_addr constant [74 x i8] c"The following untracked working tree files would be removed by merge:\0A%%s\00", align 1
@.str.13 = private unnamed_addr constant [112 x i8] c"The following untracked working tree files would be removed by %s:\0A%%sPlease move or remove them before you %s.\00", align 1
@.str.14 = private unnamed_addr constant [71 x i8] c"The following untracked working tree files would be removed by %s:\0A%%s\00", align 1
@ERROR_WOULD_LOSE_UNTRACKED_REMOVED = common local_unnamed_addr global i64 0, align 8
@.str.15 = private unnamed_addr constant [135 x i8] c"The following untracked working tree files would be overwritten by checkout:\0A%%sPlease move or remove them before you switch branches.\00", align 1
@.str.16 = private unnamed_addr constant [81 x i8] c"The following untracked working tree files would be overwritten by checkout:\0A%%s\00", align 1
@.str.17 = private unnamed_addr constant [122 x i8] c"The following untracked working tree files would be overwritten by merge:\0A%%sPlease move or remove them before you merge.\00", align 1
@.str.18 = private unnamed_addr constant [78 x i8] c"The following untracked working tree files would be overwritten by merge:\0A%%s\00", align 1
@.str.19 = private unnamed_addr constant [116 x i8] c"The following untracked working tree files would be overwritten by %s:\0A%%sPlease move or remove them before you %s.\00", align 1
@.str.20 = private unnamed_addr constant [75 x i8] c"The following untracked working tree files would be overwritten by %s:\0A%%s\00", align 1
@ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN = common local_unnamed_addr global i64 0, align 8
@.str.21 = private unnamed_addr constant [45 x i8] c"Entry '%s' overlaps with '%s'. Cannot bind.\00", align 1
@ERROR_BIND_OVERLAP = common local_unnamed_addr global i64 0, align 8
@.str.22 = private unnamed_addr constant [76 x i8] c"Cannot update sparse checkout: the following entries are not up to date:\0A%s\00", align 1
@ERROR_SPARSE_NOT_UPTODATE_FILE = common local_unnamed_addr global i64 0, align 8
@.str.23 = private unnamed_addr constant [84 x i8] c"The following working tree files would be overwritten by sparse checkout update:\0A%s\00", align 1
@ERROR_WOULD_LOSE_ORPHANED_OVERWRITTEN = common local_unnamed_addr global i64 0, align 8
@.str.24 = private unnamed_addr constant [80 x i8] c"The following working tree files would be removed by sparse checkout update:\0A%s\00", align 1
@ERROR_WOULD_LOSE_ORPHANED_REMOVED = common local_unnamed_addr global i64 0, align 8
@.str.25 = private unnamed_addr constant [28 x i8] c"Cannot update submodule:\0A%s\00", align 1
@ERROR_WOULD_LOSE_SUBMODULE = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @setup_unpack_trees_porcelain(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 24
%5 = tail call i32 @argv_array_init(ptr noundef nonnull %4) #3
%6 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(9) @.str)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !12
%10 = icmp eq i64 %9, 0
%11 = select i1 %10, ptr @.str.2, ptr @.str.1
br label %21
12: ; preds = %2
%13 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(6) @.str.3)
%14 = icmp eq i32 %13, 0
%15 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !12
%16 = icmp eq i64 %15, 0
br i1 %14, label %17, label %19
17: ; preds = %12
%18 = select i1 %16, ptr @.str.5, ptr @.str.4
br label %21
19: ; preds = %12
%20 = select i1 %16, ptr @.str.7, ptr @.str.6
br label %21
21: ; preds = %19, %17, %8
%22 = phi ptr [ %11, %8 ], [ %18, %17 ], [ %20, %19 ]
%23 = tail call ptr @_(ptr noundef nonnull %22) #3
%24 = tail call ptr @argv_array_pushf(ptr noundef nonnull %4, ptr noundef %23, ptr noundef %1, ptr noundef %1) #3
%25 = load i64, ptr @ERROR_NOT_UPTODATE_FILE, align 8, !tbaa !12
%26 = getelementptr inbounds ptr, ptr %3, i64 %25
store ptr %24, ptr %26, align 8, !tbaa !14
%27 = load i64, ptr @ERROR_WOULD_OVERWRITE, align 8, !tbaa !12
%28 = getelementptr inbounds ptr, ptr %3, i64 %27
store ptr %24, ptr %28, align 8, !tbaa !14
%29 = tail call ptr @_(ptr noundef nonnull @.str.8) #3
%30 = load i64, ptr @ERROR_NOT_UPTODATE_DIR, align 8, !tbaa !12
%31 = getelementptr inbounds ptr, ptr %3, i64 %30
store ptr %29, ptr %31, align 8, !tbaa !14
%32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(9) @.str)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %21
%35 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !12
%36 = icmp eq i64 %35, 0
%37 = select i1 %36, ptr @.str.10, ptr @.str.9
br label %47
38: ; preds = %21
%39 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(6) @.str.3)
%40 = icmp eq i32 %39, 0
%41 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !12
%42 = icmp eq i64 %41, 0
br i1 %40, label %43, label %45
43: ; preds = %38
%44 = select i1 %42, ptr @.str.12, ptr @.str.11
br label %47
45: ; preds = %38
%46 = select i1 %42, ptr @.str.14, ptr @.str.13
br label %47
47: ; preds = %45, %43, %34
%48 = phi ptr [ %37, %34 ], [ %44, %43 ], [ %46, %45 ]
%49 = tail call ptr @_(ptr noundef nonnull %48) #3
%50 = tail call ptr @argv_array_pushf(ptr noundef nonnull %4, ptr noundef %49, ptr noundef %1, ptr noundef %1) #3
%51 = load i64, ptr @ERROR_WOULD_LOSE_UNTRACKED_REMOVED, align 8, !tbaa !12
%52 = getelementptr inbounds ptr, ptr %3, i64 %51
store ptr %50, ptr %52, align 8, !tbaa !14
%53 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(9) @.str)
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %47
%56 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !12
%57 = icmp eq i64 %56, 0
%58 = select i1 %57, ptr @.str.16, ptr @.str.15
br label %68
59: ; preds = %47
%60 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(6) @.str.3)
%61 = icmp eq i32 %60, 0
%62 = load i64, ptr @advice_commit_before_merge, align 8, !tbaa !12
%63 = icmp eq i64 %62, 0
br i1 %61, label %64, label %66
64: ; preds = %59
%65 = select i1 %63, ptr @.str.18, ptr @.str.17
br label %68
66: ; preds = %59
%67 = select i1 %63, ptr @.str.20, ptr @.str.19
br label %68
68: ; preds = %66, %64, %55
%69 = phi ptr [ %58, %55 ], [ %65, %64 ], [ %67, %66 ]
%70 = tail call ptr @_(ptr noundef nonnull %69) #3
%71 = tail call ptr @argv_array_pushf(ptr noundef nonnull %4, ptr noundef %70, ptr noundef %1, ptr noundef %1) #3
%72 = load i64, ptr @ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN, align 8, !tbaa !12
%73 = getelementptr inbounds ptr, ptr %3, i64 %72
store ptr %71, ptr %73, align 8, !tbaa !14
%74 = tail call ptr @_(ptr noundef nonnull @.str.21) #3
%75 = load i64, ptr @ERROR_BIND_OVERLAP, align 8, !tbaa !12
%76 = getelementptr inbounds ptr, ptr %3, i64 %75
store ptr %74, ptr %76, align 8, !tbaa !14
%77 = tail call ptr @_(ptr noundef nonnull @.str.22) #3
%78 = load i64, ptr @ERROR_SPARSE_NOT_UPTODATE_FILE, align 8, !tbaa !12
%79 = getelementptr inbounds ptr, ptr %3, i64 %78
store ptr %77, ptr %79, align 8, !tbaa !14
%80 = tail call ptr @_(ptr noundef nonnull @.str.23) #3
%81 = load i64, ptr @ERROR_WOULD_LOSE_ORPHANED_OVERWRITTEN, align 8, !tbaa !12
%82 = getelementptr inbounds ptr, ptr %3, i64 %81
store ptr %80, ptr %82, align 8, !tbaa !14
%83 = tail call ptr @_(ptr noundef nonnull @.str.24) #3
%84 = load i64, ptr @ERROR_WOULD_LOSE_ORPHANED_REMOVED, align 8, !tbaa !12
%85 = getelementptr inbounds ptr, ptr %3, i64 %84
store ptr %83, ptr %85, align 8, !tbaa !14
%86 = tail call ptr @_(ptr noundef nonnull @.str.25) #3
%87 = load i64, ptr @ERROR_WOULD_LOSE_SUBMODULE, align 8, !tbaa !12
%88 = getelementptr inbounds ptr, ptr %3, i64 %87
store ptr %86, ptr %88, align 8, !tbaa !14
%89 = getelementptr inbounds i8, ptr %0, i64 8
store i32 1, ptr %89, align 8, !tbaa !15
%90 = getelementptr inbounds i8, ptr %0, i64 16
%91 = load ptr, ptr %90, align 8, !tbaa !16
%92 = tail call i32 @ARRAY_SIZE(ptr noundef %91) #3
%93 = icmp sgt i32 %92, 0
br i1 %93, label %94, label %102
94: ; preds = %68, %94
%95 = phi i64 [ %98, %94 ], [ 0, %68 ]
%96 = load ptr, ptr %90, align 8, !tbaa !16
%97 = getelementptr inbounds %struct.TYPE_2__, ptr %96, i64 %95
store i32 1, ptr %97, align 4, !tbaa !17
%98 = add nuw nsw i64 %95, 1
%99 = tail call i32 @ARRAY_SIZE(ptr noundef %96) #3
%100 = sext i32 %99 to i64
%101 = icmp slt i64 %98, %100
br i1 %101, label %94, label %102, !llvm.loop !19
102: ; preds = %94, %68
ret void
}
declare i32 @argv_array_init(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2
declare ptr @_(ptr noundef) local_unnamed_addr #1
declare ptr @argv_array_pushf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(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 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" }
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 = !{!"unpack_trees_options", !8, i64 0, !11, i64 8, !8, i64 16, !11, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!7, !11, i64 8}
!16 = !{!7, !8, i64 16}
!17 = !{!18, !11, i64 0}
!18 = !{!"TYPE_2__", !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
| git_extr_unpack-trees.c_setup_unpack_trees_porcelain |
; ModuleID = 'AnghaBench/linux/drivers/hid/extr_wacom_wac.c_wacom_wac_pad_event.c'
source_filename = "AnghaBench/linux/drivers/hid/extr_wacom_wac.c_wacom_wac_pad_event.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.wacom = type { %struct.TYPE_5__, %struct.wacom_wac }
%struct.TYPE_5__ = type { i32 }
%struct.wacom_wac = type { i32, %struct.TYPE_6__, ptr, %struct.wacom_features, ptr }
%struct.TYPE_6__ = type { i32, i32 }
%struct.wacom_features = type { i32 }
%struct.hid_usage = type { i64, i32, i32 }
%struct.hid_device = type { i32, i32 }
%struct.hid_field = type { i64, i32 }
%struct.TYPE_4__ = type { i32, i32 }
@HID_DG_TABLETFUNCTIONKEY = dso_local local_unnamed_addr global i32 0, align 4
@SW_MUTE_DEVICE = dso_local local_unnamed_addr global i32 0, align 4
@WACOM_WORKER_MODE_CHANGE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @wacom_wac_pad_event], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @wacom_wac_pad_event(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = tail call ptr @hid_get_drvdata(ptr noundef %0) #2
%6 = getelementptr inbounds %struct.wacom, ptr %5, i64 0, i32 1
%7 = getelementptr inbounds %struct.wacom, ptr %5, i64 0, i32 1, i32 4
%8 = load ptr, ptr %7, align 8, !tbaa !5
%9 = getelementptr inbounds %struct.wacom, ptr %5, i64 0, i32 1, i32 3
%10 = load i64, ptr %2, align 8, !tbaa !13
%11 = tail call i32 @wacom_equivalent_usage(i64 noundef %10) #2
%12 = getelementptr inbounds %struct.hid_usage, ptr %2, i64 0, i32 2
%13 = load i32, ptr %12, align 4, !tbaa !16
%14 = icmp eq i32 %13, 0
%15 = icmp ne i32 %11, 132
%16 = select i1 %14, i1 %15, i1 false
br i1 %16, label %107, label %17
17: ; preds = %4
%18 = load i64, ptr %1, align 8, !tbaa !17
%19 = tail call i32 @wacom_equivalent_usage(i64 noundef %18) #2
%20 = load i32, ptr @HID_DG_TABLETFUNCTIONKEY, align 4, !tbaa !19
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %29
22: ; preds = %17
%23 = load i64, ptr %2, align 8, !tbaa !13
%24 = icmp eq i64 %23, 129
br i1 %24, label %29, label %25
25: ; preds = %22
%26 = getelementptr inbounds %struct.wacom, ptr %5, i64 0, i32 1, i32 1
%27 = load i32, ptr %26, align 4, !tbaa !20
%28 = or i32 %27, %3
store i32 %28, ptr %26, align 4, !tbaa !20
br label %29
29: ; preds = %22, %25, %17
switch i32 %11, label %98 [
i32 129, label %33
i32 128, label %49
i32 131, label %56
i32 130, label %56
i32 132, label %85
i32 133, label %30
]
30: ; preds = %29
%31 = load i32, ptr %5, align 8, !tbaa !21
%32 = icmp sgt i32 %31, 0
br i1 %32, label %91, label %98
33: ; preds = %29
%34 = load i32, ptr %0, align 4, !tbaa !24
%35 = icmp eq i32 %34, 1386
br i1 %35, label %36, label %47
36: ; preds = %33
%37 = getelementptr inbounds %struct.hid_device, ptr %0, i64 0, i32 1
%38 = load i32, ptr %37, align 4, !tbaa !26
switch i32 %38, label %47 [
i32 845, label %39
i32 846, label %39
i32 855, label %39
i32 856, label %39
i32 914, label %39
i32 920, label %39
i32 921, label %39
]
39: ; preds = %36, %36, %36, %36, %36, %36, %36
%40 = getelementptr inbounds %struct.hid_field, ptr %1, i64 0, i32 1
%41 = load i32, ptr %40, align 8, !tbaa !27
%42 = sub nsw i32 %41, %3
switch i32 %38, label %98 [
i32 855, label %43
i32 856, label %43
i32 914, label %43
i32 845, label %45
i32 846, label %45
i32 920, label %45
i32 921, label %45
]
43: ; preds = %39, %39, %39
%44 = tail call i32 @wacom_offset_rotation(ptr noundef %8, ptr noundef nonnull %2, i32 noundef %42, i32 noundef 3, i32 noundef 16) #2
br label %98
45: ; preds = %39, %39, %39, %39
%46 = tail call i32 @wacom_offset_rotation(ptr noundef %8, ptr noundef nonnull %2, i32 noundef %42, i32 noundef 1, i32 noundef 2) #2
br label %98
47: ; preds = %36, %33
%48 = tail call i32 @wacom_offset_rotation(ptr noundef %8, ptr noundef nonnull %2, i32 noundef %3, i32 noundef 1, i32 noundef 4) #2
br label %98
49: ; preds = %29
%50 = icmp eq i32 %3, 0
br i1 %50, label %51, label %107
51: ; preds = %49
%52 = load i32, ptr %12, align 4, !tbaa !16
%53 = getelementptr inbounds %struct.hid_usage, ptr %2, i64 0, i32 1
%54 = load i32, ptr %53, align 8, !tbaa !28
%55 = tail call i32 @input_event(ptr noundef %8, i32 noundef %52, i32 noundef %54, i32 noundef 0) #2
br label %107
56: ; preds = %29, %29
%57 = getelementptr inbounds %struct.wacom, ptr %5, i64 0, i32 1, i32 2
%58 = load ptr, ptr %57, align 8, !tbaa !29
%59 = getelementptr inbounds %struct.TYPE_4__, ptr %58, i64 0, i32 1
%60 = load i32, ptr %59, align 4, !tbaa !30
%61 = icmp eq i32 %60, 0
br i1 %61, label %107, label %62
62: ; preds = %56
%63 = icmp eq i32 %11, 131
%64 = icmp ne i32 %3, 0
%65 = and i1 %64, %63
br i1 %65, label %66, label %70
66: ; preds = %62
%67 = load i32, ptr %58, align 4, !tbaa !19
%68 = icmp eq i32 %67, 0
%69 = zext i1 %68 to i32
store i32 %69, ptr %58, align 4, !tbaa !19
br label %75
70: ; preds = %62
%71 = icmp eq i32 %11, 130
br i1 %71, label %74, label %72
72: ; preds = %70
%73 = load i32, ptr %58, align 4, !tbaa !19
br label %75
74: ; preds = %70
store i32 %3, ptr %58, align 4, !tbaa !19
br label %75
75: ; preds = %72, %74, %66
%76 = phi i32 [ %73, %72 ], [ %3, %74 ], [ %69, %66 ]
%77 = load i32, ptr @SW_MUTE_DEVICE, align 4, !tbaa !19
%78 = icmp eq i32 %76, 0
%79 = zext i1 %78 to i32
%80 = tail call i32 @input_report_switch(i32 noundef %60, i32 noundef %77, i32 noundef %79) #2
%81 = load ptr, ptr %57, align 8, !tbaa !29
%82 = getelementptr inbounds %struct.TYPE_4__, ptr %81, i64 0, i32 1
%83 = load i32, ptr %82, align 4, !tbaa !30
%84 = tail call i32 @input_sync(i32 noundef %83) #2
br label %107
85: ; preds = %29
%86 = load i32, ptr %6, align 8, !tbaa !32
%87 = icmp eq i32 %86, %3
br i1 %87, label %107, label %88
88: ; preds = %85
store i32 %3, ptr %6, align 8, !tbaa !32
%89 = load i32, ptr @WACOM_WORKER_MODE_CHANGE, align 4, !tbaa !19
%90 = tail call i32 @wacom_schedule_work(ptr noundef nonnull %6, i32 noundef %89) #2
br label %107
91: ; preds = %30, %91
%92 = phi i32 [ %95, %91 ], [ 0, %30 ]
%93 = load i32, ptr %9, align 4, !tbaa !33
%94 = tail call i32 @wacom_update_led(ptr noundef nonnull %5, i32 noundef %93, i32 noundef %3, i32 noundef %92) #2
%95 = add nuw nsw i32 %92, 1
%96 = load i32, ptr %5, align 8, !tbaa !21
%97 = icmp slt i32 %95, %96
br i1 %97, label %91, label %98, !llvm.loop !34
98: ; preds = %91, %30, %39, %43, %45, %47, %29
%99 = phi i32 [ %44, %43 ], [ %46, %45 ], [ %48, %47 ], [ %42, %39 ], [ %3, %29 ], [ %3, %30 ], [ %3, %91 ]
%100 = load i32, ptr %12, align 4, !tbaa !16
%101 = getelementptr inbounds %struct.hid_usage, ptr %2, i64 0, i32 1
%102 = load i32, ptr %101, align 8, !tbaa !28
%103 = tail call i32 @input_event(ptr noundef %8, i32 noundef %100, i32 noundef %102, i32 noundef %99) #2
%104 = icmp eq i32 %99, 0
br i1 %104, label %107, label %105
105: ; preds = %98
%106 = getelementptr inbounds %struct.wacom, ptr %5, i64 0, i32 1, i32 1, i32 1
store i32 1, ptr %106, align 4, !tbaa !36
br label %107
107: ; preds = %51, %49, %56, %75, %85, %88, %105, %98, %4
ret void
}
declare ptr @hid_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @wacom_equivalent_usage(i64 noundef) local_unnamed_addr #1
declare i32 @wacom_offset_rotation(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @input_event(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @input_report_switch(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @input_sync(i32 noundef) local_unnamed_addr #1
declare i32 @wacom_schedule_work(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wacom_update_led(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 32}
!6 = !{!"wacom_wac", !7, i64 0, !10, i64 4, !11, i64 16, !12, i64 24, !11, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_6__", !7, i64 0, !7, i64 4}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"wacom_features", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"hid_usage", !15, i64 0, !7, i64 8, !7, i64 12}
!15 = !{!"long", !8, i64 0}
!16 = !{!14, !7, i64 12}
!17 = !{!18, !15, i64 0}
!18 = !{!"hid_field", !15, i64 0, !7, i64 8}
!19 = !{!7, !7, i64 0}
!20 = !{!6, !7, i64 4}
!21 = !{!22, !7, i64 0}
!22 = !{!"wacom", !23, i64 0, !6, i64 8}
!23 = !{!"TYPE_5__", !7, i64 0}
!24 = !{!25, !7, i64 0}
!25 = !{!"hid_device", !7, i64 0, !7, i64 4}
!26 = !{!25, !7, i64 4}
!27 = !{!18, !7, i64 8}
!28 = !{!14, !7, i64 8}
!29 = !{!6, !11, i64 16}
!30 = !{!31, !7, i64 4}
!31 = !{!"TYPE_4__", !7, i64 0, !7, i64 4}
!32 = !{!6, !7, i64 0}
!33 = !{!12, !7, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!6, !7, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/hid/extr_wacom_wac.c_wacom_wac_pad_event.c'
source_filename = "AnghaBench/linux/drivers/hid/extr_wacom_wac.c_wacom_wac_pad_event.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@HID_DG_TABLETFUNCTIONKEY = common local_unnamed_addr global i32 0, align 4
@SW_MUTE_DEVICE = common local_unnamed_addr global i32 0, align 4
@WACOM_WORKER_MODE_CHANGE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @wacom_wac_pad_event], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @wacom_wac_pad_event(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = tail call ptr @hid_get_drvdata(ptr noundef %0) #2
%6 = getelementptr inbounds i8, ptr %5, i64 8
%7 = getelementptr inbounds i8, ptr %5, i64 40
%8 = load ptr, ptr %7, align 8, !tbaa !6
%9 = getelementptr inbounds i8, ptr %5, i64 32
%10 = load i64, ptr %2, align 8, !tbaa !14
%11 = tail call i32 @wacom_equivalent_usage(i64 noundef %10) #2
%12 = getelementptr inbounds i8, ptr %2, i64 12
%13 = load i32, ptr %12, align 4, !tbaa !17
%14 = icmp eq i32 %13, 0
%15 = icmp ne i32 %11, 132
%16 = select i1 %14, i1 %15, i1 false
br i1 %16, label %107, label %17
17: ; preds = %4
%18 = load i64, ptr %1, align 8, !tbaa !18
%19 = tail call i32 @wacom_equivalent_usage(i64 noundef %18) #2
%20 = load i32, ptr @HID_DG_TABLETFUNCTIONKEY, align 4, !tbaa !20
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %29
22: ; preds = %17
%23 = load i64, ptr %2, align 8, !tbaa !14
%24 = icmp eq i64 %23, 129
br i1 %24, label %29, label %25
25: ; preds = %22
%26 = getelementptr inbounds i8, ptr %5, i64 12
%27 = load i32, ptr %26, align 4, !tbaa !21
%28 = or i32 %27, %3
store i32 %28, ptr %26, align 4, !tbaa !21
br label %29
29: ; preds = %22, %25, %17
switch i32 %11, label %98 [
i32 129, label %33
i32 128, label %49
i32 131, label %56
i32 130, label %56
i32 132, label %85
i32 133, label %30
]
30: ; preds = %29
%31 = load i32, ptr %5, align 8, !tbaa !22
%32 = icmp sgt i32 %31, 0
br i1 %32, label %91, label %98
33: ; preds = %29
%34 = load i32, ptr %0, align 4, !tbaa !25
%35 = icmp eq i32 %34, 1386
br i1 %35, label %36, label %47
36: ; preds = %33
%37 = getelementptr inbounds i8, ptr %0, i64 4
%38 = load i32, ptr %37, align 4, !tbaa !27
switch i32 %38, label %47 [
i32 845, label %39
i32 846, label %39
i32 855, label %39
i32 856, label %39
i32 914, label %39
i32 920, label %39
i32 921, label %39
]
39: ; preds = %36, %36, %36, %36, %36, %36, %36
%40 = getelementptr inbounds i8, ptr %1, i64 8
%41 = load i32, ptr %40, align 8, !tbaa !28
%42 = sub nsw i32 %41, %3
switch i32 %38, label %98 [
i32 855, label %43
i32 856, label %43
i32 914, label %43
i32 845, label %45
i32 846, label %45
i32 920, label %45
i32 921, label %45
]
43: ; preds = %39, %39, %39
%44 = tail call i32 @wacom_offset_rotation(ptr noundef %8, ptr noundef nonnull %2, i32 noundef %42, i32 noundef 3, i32 noundef 16) #2
br label %98
45: ; preds = %39, %39, %39, %39
%46 = tail call i32 @wacom_offset_rotation(ptr noundef %8, ptr noundef nonnull %2, i32 noundef %42, i32 noundef 1, i32 noundef 2) #2
br label %98
47: ; preds = %36, %33
%48 = tail call i32 @wacom_offset_rotation(ptr noundef %8, ptr noundef nonnull %2, i32 noundef %3, i32 noundef 1, i32 noundef 4) #2
br label %98
49: ; preds = %29
%50 = icmp eq i32 %3, 0
br i1 %50, label %51, label %107
51: ; preds = %49
%52 = load i32, ptr %12, align 4, !tbaa !17
%53 = getelementptr inbounds i8, ptr %2, i64 8
%54 = load i32, ptr %53, align 8, !tbaa !29
%55 = tail call i32 @input_event(ptr noundef %8, i32 noundef %52, i32 noundef %54, i32 noundef 0) #2
br label %107
56: ; preds = %29, %29
%57 = getelementptr inbounds i8, ptr %5, i64 24
%58 = load ptr, ptr %57, align 8, !tbaa !30
%59 = getelementptr inbounds i8, ptr %58, i64 4
%60 = load i32, ptr %59, align 4, !tbaa !31
%61 = icmp eq i32 %60, 0
br i1 %61, label %107, label %62
62: ; preds = %56
%63 = icmp eq i32 %11, 131
%64 = icmp ne i32 %3, 0
%65 = and i1 %64, %63
br i1 %65, label %66, label %70
66: ; preds = %62
%67 = load i32, ptr %58, align 4, !tbaa !20
%68 = icmp eq i32 %67, 0
%69 = zext i1 %68 to i32
store i32 %69, ptr %58, align 4, !tbaa !20
br label %75
70: ; preds = %62
%71 = icmp eq i32 %11, 130
br i1 %71, label %74, label %72
72: ; preds = %70
%73 = load i32, ptr %58, align 4, !tbaa !20
br label %75
74: ; preds = %70
store i32 %3, ptr %58, align 4, !tbaa !20
br label %75
75: ; preds = %72, %74, %66
%76 = phi i32 [ %73, %72 ], [ %3, %74 ], [ %69, %66 ]
%77 = load i32, ptr @SW_MUTE_DEVICE, align 4, !tbaa !20
%78 = icmp eq i32 %76, 0
%79 = zext i1 %78 to i32
%80 = tail call i32 @input_report_switch(i32 noundef %60, i32 noundef %77, i32 noundef %79) #2
%81 = load ptr, ptr %57, align 8, !tbaa !30
%82 = getelementptr inbounds i8, ptr %81, i64 4
%83 = load i32, ptr %82, align 4, !tbaa !31
%84 = tail call i32 @input_sync(i32 noundef %83) #2
br label %107
85: ; preds = %29
%86 = load i32, ptr %6, align 8, !tbaa !33
%87 = icmp eq i32 %86, %3
br i1 %87, label %107, label %88
88: ; preds = %85
store i32 %3, ptr %6, align 8, !tbaa !33
%89 = load i32, ptr @WACOM_WORKER_MODE_CHANGE, align 4, !tbaa !20
%90 = tail call i32 @wacom_schedule_work(ptr noundef nonnull %6, i32 noundef %89) #2
br label %107
91: ; preds = %30, %91
%92 = phi i32 [ %95, %91 ], [ 0, %30 ]
%93 = load i32, ptr %9, align 4, !tbaa !34
%94 = tail call i32 @wacom_update_led(ptr noundef nonnull %5, i32 noundef %93, i32 noundef %3, i32 noundef %92) #2
%95 = add nuw nsw i32 %92, 1
%96 = load i32, ptr %5, align 8, !tbaa !22
%97 = icmp slt i32 %95, %96
br i1 %97, label %91, label %98, !llvm.loop !35
98: ; preds = %91, %30, %39, %43, %45, %47, %29
%99 = phi i32 [ %44, %43 ], [ %46, %45 ], [ %48, %47 ], [ %42, %39 ], [ %3, %29 ], [ %3, %30 ], [ %3, %91 ]
%100 = load i32, ptr %12, align 4, !tbaa !17
%101 = getelementptr inbounds i8, ptr %2, i64 8
%102 = load i32, ptr %101, align 8, !tbaa !29
%103 = tail call i32 @input_event(ptr noundef %8, i32 noundef %100, i32 noundef %102, i32 noundef %99) #2
%104 = icmp eq i32 %99, 0
br i1 %104, label %107, label %105
105: ; preds = %98
%106 = getelementptr inbounds i8, ptr %5, i64 16
store i32 1, ptr %106, align 4, !tbaa !37
br label %107
107: ; preds = %51, %49, %56, %75, %85, %88, %105, %98, %4
ret void
}
declare ptr @hid_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @wacom_equivalent_usage(i64 noundef) local_unnamed_addr #1
declare i32 @wacom_offset_rotation(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @input_event(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @input_report_switch(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @input_sync(i32 noundef) local_unnamed_addr #1
declare i32 @wacom_schedule_work(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wacom_update_led(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 32}
!7 = !{!"wacom_wac", !8, i64 0, !11, i64 4, !12, i64 16, !13, i64 24, !12, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_6__", !8, i64 0, !8, i64 4}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"wacom_features", !8, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"hid_usage", !16, i64 0, !8, i64 8, !8, i64 12}
!16 = !{!"long", !9, i64 0}
!17 = !{!15, !8, i64 12}
!18 = !{!19, !16, i64 0}
!19 = !{!"hid_field", !16, i64 0, !8, i64 8}
!20 = !{!8, !8, i64 0}
!21 = !{!7, !8, i64 4}
!22 = !{!23, !8, i64 0}
!23 = !{!"wacom", !24, i64 0, !7, i64 8}
!24 = !{!"TYPE_5__", !8, i64 0}
!25 = !{!26, !8, i64 0}
!26 = !{!"hid_device", !8, i64 0, !8, i64 4}
!27 = !{!26, !8, i64 4}
!28 = !{!19, !8, i64 8}
!29 = !{!15, !8, i64 8}
!30 = !{!7, !12, i64 16}
!31 = !{!32, !8, i64 4}
!32 = !{!"TYPE_4__", !8, i64 0, !8, i64 4}
!33 = !{!7, !8, i64 0}
!34 = !{!13, !8, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!7, !8, i64 8}
| linux_drivers_hid_extr_wacom_wac.c_wacom_wac_pad_event |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43/extr_phy_lp.c_lpphy_disable_tx_gain_override.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43/extr_phy_lp.c_lpphy_disable_tx_gain_override.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"
@B43_LPPHY_RF_OVERRIDE_2 = dso_local local_unnamed_addr global i32 0, align 4
@B43_LPPHY_AFE_CTL_OVR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @lpphy_disable_tx_gain_override], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @lpphy_disable_tx_gain_override(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = icmp slt i32 %2, 2
%4 = load i32, ptr @B43_LPPHY_RF_OVERRIDE_2, align 4, !tbaa !11
br i1 %3, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @b43_phy_mask(ptr noundef nonnull %0, i32 noundef %4, i32 noundef 65279) #2
br label %11
7: ; preds = %1
%8 = tail call i32 @b43_phy_mask(ptr noundef nonnull %0, i32 noundef %4, i32 noundef 65407) #2
%9 = load i32, ptr @B43_LPPHY_RF_OVERRIDE_2, align 4, !tbaa !11
%10 = tail call i32 @b43_phy_mask(ptr noundef nonnull %0, i32 noundef %9, i32 noundef 49151) #2
br label %11
11: ; preds = %7, %5
%12 = load i32, ptr @B43_LPPHY_AFE_CTL_OVR, align 4, !tbaa !11
%13 = tail call i32 @b43_phy_mask(ptr noundef nonnull %0, i32 noundef %12, i32 noundef 65471) #2
ret void
}
declare i32 @b43_phy_mask(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, !8, i64 0}
!6 = !{!"b43_wldev", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43/extr_phy_lp.c_lpphy_disable_tx_gain_override.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43/extr_phy_lp.c_lpphy_disable_tx_gain_override.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@B43_LPPHY_RF_OVERRIDE_2 = common local_unnamed_addr global i32 0, align 4
@B43_LPPHY_AFE_CTL_OVR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @lpphy_disable_tx_gain_override], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @lpphy_disable_tx_gain_override(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = icmp slt i32 %2, 2
%4 = load i32, ptr @B43_LPPHY_RF_OVERRIDE_2, align 4, !tbaa !12
br i1 %3, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @b43_phy_mask(ptr noundef nonnull %0, i32 noundef %4, i32 noundef 65279) #2
br label %11
7: ; preds = %1
%8 = tail call i32 @b43_phy_mask(ptr noundef nonnull %0, i32 noundef %4, i32 noundef 65407) #2
%9 = load i32, ptr @B43_LPPHY_RF_OVERRIDE_2, align 4, !tbaa !12
%10 = tail call i32 @b43_phy_mask(ptr noundef nonnull %0, i32 noundef %9, i32 noundef 49151) #2
br label %11
11: ; preds = %7, %5
%12 = load i32, ptr @B43_LPPHY_AFE_CTL_OVR, align 4, !tbaa !12
%13 = tail call i32 @b43_phy_mask(ptr noundef nonnull %0, i32 noundef %12, i32 noundef 65471) #2
ret void
}
declare i32 @b43_phy_mask(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, !9, i64 0}
!7 = !{!"b43_wldev", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!9, !9, i64 0}
| fastsocket_kernel_drivers_net_wireless_b43_extr_phy_lp.c_lpphy_disable_tx_gain_override |
; ModuleID = 'AnghaBench/freebsd/usr.bin/procstat/extr_procstat_threads.c_procstat_threads.c'
source_filename = "AnghaBench/freebsd/usr.bin/procstat/extr_procstat_threads.c_procstat_threads.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_proc = type { ptr, i32, i32, i32, i32, ptr, ptr, %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@procstat_opts = dso_local local_unnamed_addr global i32 0, align 4
@PS_OPT_NOHEADER = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"{T:/%5s %6s %-19s %-19s %2s %4s %-7s %-9s}\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"PID\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"TID\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"COMM\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"TDNAME\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"CPU\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"PRI\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"STATE\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"WCHAN\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"{ek:process_id/%d}\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"{e:command/%s}\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"threads\00", align 1
@KERN_PROC_PID = dso_local local_unnamed_addr global i32 0, align 4
@KERN_PROC_INC_THREAD = dso_local local_unnamed_addr global i32 0, align 4
@.str.13 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str.14 = private unnamed_addr constant [48 x i8] c"Failed to allocate memory in procstat_threads()\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"{dk:process_id/%5d/%d} \00", align 1
@.str.16 = private unnamed_addr constant [21 x i8] c"{:thread_id/%6d/%d} \00", align 1
@.str.17 = private unnamed_addr constant [22 x i8] c"{d:command/%-19s/%s} \00", align 1
@.str.18 = private unnamed_addr constant [25 x i8] c"{:thread_name/%-19s/%s} \00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"{:cpu/%3d/%d} \00", align 1
@.str.20 = private unnamed_addr constant [15 x i8] c"{:cpu/%3s/%s} \00", align 1
@.str.21 = private unnamed_addr constant [20 x i8] c"{:priority/%4d/%d} \00", align 1
@.str.22 = private unnamed_addr constant [4 x i8] c"run\00", align 1
@.str.23 = private unnamed_addr constant [5 x i8] c"stop\00", align 1
@.str.24 = private unnamed_addr constant [6 x i8] c"sleep\00", align 1
@.str.25 = private unnamed_addr constant [5 x i8] c"lock\00", align 1
@.str.26 = private unnamed_addr constant [5 x i8] c"wait\00", align 1
@.str.27 = private unnamed_addr constant [5 x i8] c"zomb\00", align 1
@.str.28 = private unnamed_addr constant [5 x i8] c"idle\00", align 1
@.str.29 = private unnamed_addr constant [3 x i8] c"??\00", align 1
@.str.30 = private unnamed_addr constant [22 x i8] c"{:run_state/%-7s/%s} \00", align 1
@KI_LOCKBLOCK = dso_local local_unnamed_addr global i32 0, align 4
@.str.31 = private unnamed_addr constant [23 x i8] c"{:lock_name/*%-8s/%s} \00", align 1
@.str.32 = private unnamed_addr constant [25 x i8] c"{:wait_channel/%-9s/%s} \00", align 1
@.str.33 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@reltable.procstat_threads = private unnamed_addr constant [7 x i32] [i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.27 to i64), i64 ptrtoint (ptr @reltable.procstat_threads to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.26 to i64), i64 ptrtoint (ptr @reltable.procstat_threads to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.23 to i64), i64 ptrtoint (ptr @reltable.procstat_threads to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.24 to i64), i64 ptrtoint (ptr @reltable.procstat_threads to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.22 to i64), i64 ptrtoint (ptr @reltable.procstat_threads to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.25 to i64), i64 ptrtoint (ptr @reltable.procstat_threads to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.28 to i64), i64 ptrtoint (ptr @reltable.procstat_threads to i64)) to i32)], align 4
; Function Attrs: nounwind uwtable
define dso_local void @procstat_threads(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
%5 = load i32, ptr @procstat_opts, align 4, !tbaa !5
%6 = load i32, ptr @PS_OPT_NOHEADER, align 4, !tbaa !5
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = tail call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8) #4
br label %11
11: ; preds = %9, %2
%12 = getelementptr inbounds %struct.kinfo_proc, ptr %1, i64 0, i32 9
%13 = load i32, ptr %12, align 8, !tbaa !9
%14 = tail call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.9, i32 noundef %13) #4
%15 = load ptr, ptr %1, align 8, !tbaa !13
%16 = load i8, ptr %15, align 1
%17 = icmp eq i8 %16, 0
%18 = select i1 %17, ptr @.str.11, ptr %15
%19 = tail call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.10, ptr noundef nonnull %18) #4
%20 = tail call i32 @xo_open_container(ptr noundef nonnull @.str.12) #4
%21 = load i32, ptr @KERN_PROC_PID, align 4, !tbaa !5
%22 = load i32, ptr @KERN_PROC_INC_THREAD, align 4, !tbaa !5
%23 = or i32 %22, %21
%24 = load i32, ptr %12, align 8, !tbaa !9
%25 = call ptr @procstat_getprocs(ptr noundef %0, i32 noundef %23, i32 noundef %24, ptr noundef nonnull %3) #4
%26 = icmp eq ptr %25, null
br i1 %26, label %113, label %27
27: ; preds = %11
%28 = load i32, ptr %3, align 4, !tbaa !5
%29 = call i32 @kinfo_proc_sort(ptr noundef nonnull %25, i32 noundef %28) #4
%30 = load i32, ptr %3, align 4, !tbaa !5
%31 = icmp eq i32 %30, 0
br i1 %31, label %110, label %32
32: ; preds = %27, %84
%33 = phi i64 [ %106, %84 ], [ 0, %27 ]
%34 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33
%35 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 8
%36 = load i32, ptr %35, align 4, !tbaa !14
%37 = call i32 @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.13, i32 noundef %36) #4
%38 = load ptr, ptr %4, align 8, !tbaa !15
%39 = icmp eq ptr %38, null
br i1 %39, label %40, label %44
40: ; preds = %32
%41 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%42 = call i32 @xo_errc(i32 noundef 1, i32 noundef %41, ptr noundef nonnull @.str.14) #4
%43 = load ptr, ptr %4, align 8, !tbaa !15
br label %44
44: ; preds = %40, %32
%45 = phi ptr [ %43, %40 ], [ %38, %32 ]
%46 = call i32 @xo_open_container(ptr noundef %45) #4
%47 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 9
%48 = load i32, ptr %47, align 8, !tbaa !9
%49 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.15, i32 noundef %48) #4
%50 = load i32, ptr %35, align 4, !tbaa !14
%51 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.16, i32 noundef %50) #4
%52 = load ptr, ptr %34, align 8, !tbaa !13
%53 = load i8, ptr %52, align 1
%54 = icmp eq i8 %53, 0
%55 = select i1 %54, ptr @.str.11, ptr %52
%56 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.17, ptr noundef nonnull %55) #4
%57 = call i32 @kinfo_proc_thread_name(ptr noundef nonnull %34) #4
%58 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.18, i32 noundef %57) #4
%59 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 1
%60 = load i32, ptr %59, align 8, !tbaa !16
%61 = icmp eq i32 %60, 255
br i1 %61, label %64, label %62
62: ; preds = %44
%63 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.19, i32 noundef %60) #4
br label %72
64: ; preds = %44
%65 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 2
%66 = load i32, ptr %65, align 4, !tbaa !17
%67 = icmp eq i32 %66, 255
br i1 %67, label %70, label %68
68: ; preds = %64
%69 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.19, i32 noundef %66) #4
br label %72
70: ; preds = %64
%71 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.11) #4
br label %72
72: ; preds = %68, %70, %62
%73 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 7
%74 = load i32, ptr %73, align 8, !tbaa !18
%75 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.21, i32 noundef %74) #4
%76 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 3
%77 = load i32, ptr %76, align 8, !tbaa !19
%78 = add i32 %77, -128
%79 = icmp ult i32 %78, 7
br i1 %79, label %80, label %84
80: ; preds = %72
%81 = zext nneg i32 %78 to i64
%82 = shl i64 %81, 2
%83 = call ptr @llvm.load.relative.i64(ptr @reltable.procstat_threads, i64 %82)
br label %84
84: ; preds = %72, %80
%85 = phi ptr [ %83, %80 ], [ @.str.29, %72 ]
%86 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.30, ptr noundef nonnull %85) #4
%87 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 4
%88 = load i32, ptr %87, align 4, !tbaa !20
%89 = load i32, ptr @KI_LOCKBLOCK, align 4, !tbaa !5
%90 = and i32 %89, %88
%91 = icmp eq i32 %90, 0
%92 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 6
%93 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33, i32 5
%94 = select i1 %91, ptr %92, ptr %93
%95 = select i1 %91, ptr @.str.32, ptr @.str.31
%96 = load ptr, ptr %94, align 8, !tbaa !15
%97 = load i8, ptr %96, align 1
%98 = icmp eq i8 %97, 0
%99 = select i1 %98, ptr @.str.11, ptr %96
%100 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull %95, ptr noundef nonnull %99) #4
%101 = load ptr, ptr %4, align 8, !tbaa !15
%102 = call i32 @xo_close_container(ptr noundef %101) #4
%103 = load ptr, ptr %4, align 8, !tbaa !15
%104 = call i32 @free(ptr noundef %103) #4
%105 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.33) #4
%106 = add nuw nsw i64 %33, 1
%107 = load i32, ptr %3, align 4, !tbaa !5
%108 = zext i32 %107 to i64
%109 = icmp ult i64 %106, %108
br i1 %109, label %32, label %110, !llvm.loop !21
110: ; preds = %84, %27
%111 = call i32 @xo_close_container(ptr noundef nonnull @.str.12) #4
%112 = call i32 @procstat_freeprocs(ptr noundef %0, ptr noundef nonnull %25) #4
br label %113
113: ; preds = %11, %110
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #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 @xo_emit(ptr noundef, ...) local_unnamed_addr #2
declare i32 @xo_open_container(ptr noundef) local_unnamed_addr #2
declare ptr @procstat_getprocs(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @kinfo_proc_sort(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @xo_errc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @kinfo_proc_thread_name(ptr noundef) local_unnamed_addr #2
declare i32 @xo_close_container(ptr noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
declare i32 @procstat_freeprocs(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
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare ptr @llvm.load.relative.i64(ptr, i64) #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 nosync nounwind willreturn memory(argmem: read) }
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, !6, i64 48}
!10 = !{!"kinfo_proc", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !11, i64 24, !11, i64 32, !12, i64 40, !6, i64 44, !6, i64 48}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"TYPE_2__", !6, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!10, !6, i64 44}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !6, i64 8}
!17 = !{!10, !6, i64 12}
!18 = !{!10, !6, i64 40}
!19 = !{!10, !6, i64 16}
!20 = !{!10, !6, i64 20}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/usr.bin/procstat/extr_procstat_threads.c_procstat_threads.c'
source_filename = "AnghaBench/freebsd/usr.bin/procstat/extr_procstat_threads.c_procstat_threads.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.kinfo_proc = type { ptr, i32, i32, i32, i32, ptr, ptr, %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@procstat_opts = common local_unnamed_addr global i32 0, align 4
@PS_OPT_NOHEADER = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"{T:/%5s %6s %-19s %-19s %2s %4s %-7s %-9s}\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"PID\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"TID\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"COMM\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"TDNAME\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"CPU\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"PRI\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"STATE\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"WCHAN\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"{ek:process_id/%d}\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"{e:command/%s}\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"threads\00", align 1
@KERN_PROC_PID = common local_unnamed_addr global i32 0, align 4
@KERN_PROC_INC_THREAD = common local_unnamed_addr global i32 0, align 4
@.str.13 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str.14 = private unnamed_addr constant [48 x i8] c"Failed to allocate memory in procstat_threads()\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"{dk:process_id/%5d/%d} \00", align 1
@.str.16 = private unnamed_addr constant [21 x i8] c"{:thread_id/%6d/%d} \00", align 1
@.str.17 = private unnamed_addr constant [22 x i8] c"{d:command/%-19s/%s} \00", align 1
@.str.18 = private unnamed_addr constant [25 x i8] c"{:thread_name/%-19s/%s} \00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"{:cpu/%3d/%d} \00", align 1
@.str.20 = private unnamed_addr constant [15 x i8] c"{:cpu/%3s/%s} \00", align 1
@.str.21 = private unnamed_addr constant [20 x i8] c"{:priority/%4d/%d} \00", align 1
@.str.22 = private unnamed_addr constant [4 x i8] c"run\00", align 1
@.str.23 = private unnamed_addr constant [5 x i8] c"stop\00", align 1
@.str.24 = private unnamed_addr constant [6 x i8] c"sleep\00", align 1
@.str.25 = private unnamed_addr constant [5 x i8] c"lock\00", align 1
@.str.26 = private unnamed_addr constant [5 x i8] c"wait\00", align 1
@.str.27 = private unnamed_addr constant [5 x i8] c"zomb\00", align 1
@.str.28 = private unnamed_addr constant [5 x i8] c"idle\00", align 1
@.str.29 = private unnamed_addr constant [3 x i8] c"??\00", align 1
@.str.30 = private unnamed_addr constant [22 x i8] c"{:run_state/%-7s/%s} \00", align 1
@KI_LOCKBLOCK = common local_unnamed_addr global i32 0, align 4
@.str.31 = private unnamed_addr constant [23 x i8] c"{:lock_name/*%-8s/%s} \00", align 1
@.str.32 = private unnamed_addr constant [25 x i8] c"{:wait_channel/%-9s/%s} \00", align 1
@.str.33 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@switch.table.procstat_threads = private unnamed_addr constant [7 x ptr] [ptr @.str.27, ptr @.str.26, ptr @.str.23, ptr @.str.24, ptr @.str.22, ptr @.str.25, ptr @.str.28], align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @procstat_threads(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = load i32, ptr @procstat_opts, align 4, !tbaa !6
%6 = load i32, ptr @PS_OPT_NOHEADER, align 4, !tbaa !6
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = tail call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8) #3
br label %11
11: ; preds = %9, %2
%12 = getelementptr inbounds i8, ptr %1, i64 48
%13 = load i32, ptr %12, align 8, !tbaa !10
%14 = tail call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.9, i32 noundef %13) #3
%15 = load ptr, ptr %1, align 8, !tbaa !14
%16 = load i8, ptr %15, align 1
%17 = icmp eq i8 %16, 0
%18 = select i1 %17, ptr @.str.11, ptr %15
%19 = tail call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.10, ptr noundef nonnull %18) #3
%20 = tail call i32 @xo_open_container(ptr noundef nonnull @.str.12) #3
%21 = load i32, ptr @KERN_PROC_PID, align 4, !tbaa !6
%22 = load i32, ptr @KERN_PROC_INC_THREAD, align 4, !tbaa !6
%23 = or i32 %22, %21
%24 = load i32, ptr %12, align 8, !tbaa !10
%25 = call ptr @procstat_getprocs(ptr noundef %0, i32 noundef %23, i32 noundef %24, ptr noundef nonnull %3) #3
%26 = icmp eq ptr %25, null
br i1 %26, label %112, label %27
27: ; preds = %11
%28 = load i32, ptr %3, align 4, !tbaa !6
%29 = call i32 @kinfo_proc_sort(ptr noundef nonnull %25, i32 noundef %28) #3
%30 = load i32, ptr %3, align 4, !tbaa !6
%31 = icmp eq i32 %30, 0
br i1 %31, label %109, label %32
32: ; preds = %27, %84
%33 = phi i64 [ %105, %84 ], [ 0, %27 ]
%34 = getelementptr inbounds %struct.kinfo_proc, ptr %25, i64 %33
%35 = getelementptr inbounds i8, ptr %34, i64 44
%36 = load i32, ptr %35, align 4, !tbaa !15
%37 = call i32 @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.13, i32 noundef %36) #3
%38 = load ptr, ptr %4, align 8, !tbaa !16
%39 = icmp eq ptr %38, null
br i1 %39, label %40, label %44
40: ; preds = %32
%41 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%42 = call i32 @xo_errc(i32 noundef 1, i32 noundef %41, ptr noundef nonnull @.str.14) #3
%43 = load ptr, ptr %4, align 8, !tbaa !16
br label %44
44: ; preds = %40, %32
%45 = phi ptr [ %43, %40 ], [ %38, %32 ]
%46 = call i32 @xo_open_container(ptr noundef %45) #3
%47 = getelementptr inbounds i8, ptr %34, i64 48
%48 = load i32, ptr %47, align 8, !tbaa !10
%49 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.15, i32 noundef %48) #3
%50 = load i32, ptr %35, align 4, !tbaa !15
%51 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.16, i32 noundef %50) #3
%52 = load ptr, ptr %34, align 8, !tbaa !14
%53 = load i8, ptr %52, align 1
%54 = icmp eq i8 %53, 0
%55 = select i1 %54, ptr @.str.11, ptr %52
%56 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.17, ptr noundef nonnull %55) #3
%57 = call i32 @kinfo_proc_thread_name(ptr noundef nonnull %34) #3
%58 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.18, i32 noundef %57) #3
%59 = getelementptr inbounds i8, ptr %34, i64 8
%60 = load i32, ptr %59, align 8, !tbaa !17
%61 = icmp eq i32 %60, 255
br i1 %61, label %64, label %62
62: ; preds = %44
%63 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.19, i32 noundef %60) #3
br label %72
64: ; preds = %44
%65 = getelementptr inbounds i8, ptr %34, i64 12
%66 = load i32, ptr %65, align 4, !tbaa !18
%67 = icmp eq i32 %66, 255
br i1 %67, label %70, label %68
68: ; preds = %64
%69 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.19, i32 noundef %66) #3
br label %72
70: ; preds = %64
%71 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.11) #3
br label %72
72: ; preds = %68, %70, %62
%73 = getelementptr inbounds i8, ptr %34, i64 40
%74 = load i32, ptr %73, align 8, !tbaa !19
%75 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.21, i32 noundef %74) #3
%76 = getelementptr inbounds i8, ptr %34, i64 16
%77 = load i32, ptr %76, align 8, !tbaa !20
%78 = add i32 %77, -128
%79 = icmp ult i32 %78, 7
br i1 %79, label %80, label %84
80: ; preds = %72
%81 = zext nneg i32 %78 to i64
%82 = getelementptr inbounds [7 x ptr], ptr @switch.table.procstat_threads, i64 0, i64 %81
%83 = load ptr, ptr %82, align 8
br label %84
84: ; preds = %72, %80
%85 = phi ptr [ %83, %80 ], [ @.str.29, %72 ]
%86 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.30, ptr noundef nonnull %85) #3
%87 = getelementptr inbounds i8, ptr %34, i64 20
%88 = load i32, ptr %87, align 4, !tbaa !21
%89 = load i32, ptr @KI_LOCKBLOCK, align 4, !tbaa !6
%90 = and i32 %89, %88
%91 = icmp eq i32 %90, 0
%92 = select i1 %91, i64 32, i64 24
%93 = select i1 %91, ptr @.str.32, ptr @.str.31
%94 = getelementptr inbounds i8, ptr %34, i64 %92
%95 = load ptr, ptr %94, align 8, !tbaa !16
%96 = load i8, ptr %95, align 1
%97 = icmp eq i8 %96, 0
%98 = select i1 %97, ptr @.str.11, ptr %95
%99 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull %93, ptr noundef nonnull %98) #3
%100 = load ptr, ptr %4, align 8, !tbaa !16
%101 = call i32 @xo_close_container(ptr noundef %100) #3
%102 = load ptr, ptr %4, align 8, !tbaa !16
%103 = call i32 @free(ptr noundef %102) #3
%104 = call i32 (ptr, ...) @xo_emit(ptr noundef nonnull @.str.33) #3
%105 = add nuw nsw i64 %33, 1
%106 = load i32, ptr %3, align 4, !tbaa !6
%107 = zext i32 %106 to i64
%108 = icmp ult i64 %105, %107
br i1 %108, label %32, label %109, !llvm.loop !22
109: ; preds = %84, %27
%110 = call i32 @xo_close_container(ptr noundef nonnull @.str.12) #3
%111 = call i32 @procstat_freeprocs(ptr noundef %0, ptr noundef nonnull %25) #3
br label %112
112: ; preds = %11, %109
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, 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 i32 @xo_emit(ptr noundef, ...) local_unnamed_addr #2
declare i32 @xo_open_container(ptr noundef) local_unnamed_addr #2
declare ptr @procstat_getprocs(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @kinfo_proc_sort(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @xo_errc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @kinfo_proc_thread_name(ptr noundef) local_unnamed_addr #2
declare i32 @xo_close_container(ptr noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
declare i32 @procstat_freeprocs(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, !7, i64 48}
!11 = !{!"kinfo_proc", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !12, i64 24, !12, i64 32, !13, i64 40, !7, i64 44, !7, i64 48}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"TYPE_2__", !7, i64 0}
!14 = !{!11, !12, i64 0}
!15 = !{!11, !7, i64 44}
!16 = !{!12, !12, i64 0}
!17 = !{!11, !7, i64 8}
!18 = !{!11, !7, i64 12}
!19 = !{!11, !7, i64 40}
!20 = !{!11, !7, i64 16}
!21 = !{!11, !7, i64 20}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
| freebsd_usr.bin_procstat_extr_procstat_threads.c_procstat_threads |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/platform/x86/extr_eeepc-laptop.c_eeepc_rfkill_hotplug.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/platform/x86/extr_eeepc-laptop.c_eeepc_rfkill_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.TYPE_2__ = type { i32, i64, i64 }
@ehotk = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [27 x i8] c"Unable to find PCI bus 1?\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Unable to hotplug wifi\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @eeepc_rfkill_hotplug], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @eeepc_rfkill_hotplug() #0 {
%1 = tail call i32 (...) @eeepc_wlan_rfkill_blocked() #2
%2 = load ptr, ptr @ehotk, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.TYPE_2__, ptr %2, i64 0, i32 2
%4 = load i64, ptr %3, align 8, !tbaa !9
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = tail call i32 @rfkill_set_sw_state(i64 noundef %4, i32 noundef %1) #2
%8 = load ptr, ptr @ehotk, align 8, !tbaa !5
br label %9
9: ; preds = %6, %0
%10 = phi ptr [ %8, %6 ], [ %2, %0 ]
%11 = tail call i32 @mutex_lock(ptr noundef %10) #2
%12 = load ptr, ptr @ehotk, align 8, !tbaa !5
%13 = getelementptr inbounds %struct.TYPE_2__, ptr %12, i64 0, i32 1
%14 = load i64, ptr %13, align 8, !tbaa !13
%15 = icmp eq i64 %14, 0
br i1 %15, label %41, label %16
16: ; preds = %9
%17 = tail call ptr @pci_find_bus(i32 noundef 0, i32 noundef 1) #2
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = tail call i32 @pr_warning(ptr noundef nonnull @.str) #2
br label %41
21: ; preds = %16
%22 = icmp eq i32 %1, 0
%23 = tail call ptr @pci_get_slot(ptr noundef nonnull %17, i32 noundef 0) #2
%24 = icmp eq ptr %23, null
br i1 %22, label %25, label %37
25: ; preds = %21
br i1 %24, label %28, label %26
26: ; preds = %25
%27 = tail call i32 @pci_dev_put(ptr noundef nonnull %23) #2
br label %41
28: ; preds = %25
%29 = tail call ptr @pci_scan_single_device(ptr noundef nonnull %17, i32 noundef 0) #2
%30 = icmp eq ptr %29, null
br i1 %30, label %41, label %31
31: ; preds = %28
%32 = tail call i32 @pci_bus_assign_resources(ptr noundef nonnull %17) #2
%33 = tail call i64 @pci_bus_add_device(ptr noundef nonnull %29) #2
%34 = icmp eq i64 %33, 0
br i1 %34, label %41, label %35
35: ; preds = %31
%36 = tail call i32 @pr_err(ptr noundef nonnull @.str.1) #2
br label %41
37: ; preds = %21
br i1 %24, label %41, label %38
38: ; preds = %37
%39 = tail call i32 @pci_remove_bus_device(ptr noundef nonnull %23) #2
%40 = tail call i32 @pci_dev_put(ptr noundef nonnull %23) #2
br label %41
41: ; preds = %9, %37, %38, %28, %35, %31, %26, %19
%42 = load ptr, ptr @ehotk, align 8, !tbaa !5
%43 = tail call i32 @mutex_unlock(ptr noundef %42) #2
ret void
}
declare i32 @eeepc_wlan_rfkill_blocked(...) local_unnamed_addr #1
declare i32 @rfkill_set_sw_state(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare ptr @pci_find_bus(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pr_warning(ptr noundef) local_unnamed_addr #1
declare ptr @pci_get_slot(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_dev_put(ptr noundef) local_unnamed_addr #1
declare ptr @pci_scan_single_device(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_bus_assign_resources(ptr noundef) local_unnamed_addr #1
declare i64 @pci_bus_add_device(ptr noundef) local_unnamed_addr #1
declare i32 @pr_err(ptr noundef) local_unnamed_addr #1
declare i32 @pci_remove_bus_device(ptr 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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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, !12, i64 16}
!10 = !{!"TYPE_2__", !11, i64 0, !12, i64 8, !12, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/platform/x86/extr_eeepc-laptop.c_eeepc_rfkill_hotplug.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/platform/x86/extr_eeepc-laptop.c_eeepc_rfkill_hotplug.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ehotk = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [27 x i8] c"Unable to find PCI bus 1?\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Unable to hotplug wifi\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @eeepc_rfkill_hotplug], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @eeepc_rfkill_hotplug() #0 {
%1 = tail call i32 @eeepc_wlan_rfkill_blocked() #2
%2 = load ptr, ptr @ehotk, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %2, i64 16
%4 = load i64, ptr %3, align 8, !tbaa !10
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = tail call i32 @rfkill_set_sw_state(i64 noundef %4, i32 noundef %1) #2
%8 = load ptr, ptr @ehotk, align 8, !tbaa !6
br label %9
9: ; preds = %6, %0
%10 = phi ptr [ %8, %6 ], [ %2, %0 ]
%11 = tail call i32 @mutex_lock(ptr noundef %10) #2
%12 = load ptr, ptr @ehotk, align 8, !tbaa !6
%13 = getelementptr inbounds i8, ptr %12, i64 8
%14 = load i64, ptr %13, align 8, !tbaa !14
%15 = icmp eq i64 %14, 0
br i1 %15, label %41, label %16
16: ; preds = %9
%17 = tail call ptr @pci_find_bus(i32 noundef 0, i32 noundef 1) #2
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = tail call i32 @pr_warning(ptr noundef nonnull @.str) #2
br label %41
21: ; preds = %16
%22 = icmp eq i32 %1, 0
%23 = tail call ptr @pci_get_slot(ptr noundef nonnull %17, i32 noundef 0) #2
%24 = icmp eq ptr %23, null
br i1 %22, label %25, label %37
25: ; preds = %21
br i1 %24, label %28, label %26
26: ; preds = %25
%27 = tail call i32 @pci_dev_put(ptr noundef nonnull %23) #2
br label %41
28: ; preds = %25
%29 = tail call ptr @pci_scan_single_device(ptr noundef nonnull %17, i32 noundef 0) #2
%30 = icmp eq ptr %29, null
br i1 %30, label %41, label %31
31: ; preds = %28
%32 = tail call i32 @pci_bus_assign_resources(ptr noundef nonnull %17) #2
%33 = tail call i64 @pci_bus_add_device(ptr noundef nonnull %29) #2
%34 = icmp eq i64 %33, 0
br i1 %34, label %41, label %35
35: ; preds = %31
%36 = tail call i32 @pr_err(ptr noundef nonnull @.str.1) #2
br label %41
37: ; preds = %21
br i1 %24, label %41, label %38
38: ; preds = %37
%39 = tail call i32 @pci_remove_bus_device(ptr noundef nonnull %23) #2
%40 = tail call i32 @pci_dev_put(ptr noundef nonnull %23) #2
br label %41
41: ; preds = %9, %37, %38, %28, %35, %31, %26, %19
%42 = load ptr, ptr @ehotk, align 8, !tbaa !6
%43 = tail call i32 @mutex_unlock(ptr noundef %42) #2
ret void
}
declare i32 @eeepc_wlan_rfkill_blocked(...) local_unnamed_addr #1
declare i32 @rfkill_set_sw_state(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare ptr @pci_find_bus(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pr_warning(ptr noundef) local_unnamed_addr #1
declare ptr @pci_get_slot(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_dev_put(ptr noundef) local_unnamed_addr #1
declare ptr @pci_scan_single_device(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_bus_assign_resources(ptr noundef) local_unnamed_addr #1
declare i64 @pci_bus_add_device(ptr noundef) local_unnamed_addr #1
declare i32 @pr_err(ptr noundef) local_unnamed_addr #1
declare i32 @pci_remove_bus_device(ptr 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 = { 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, !13, i64 16}
!11 = !{!"TYPE_2__", !12, i64 0, !13, i64 8, !13, i64 16}
!12 = !{!"int", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!11, !13, i64 8}
| fastsocket_kernel_drivers_platform_x86_extr_eeepc-laptop.c_eeepc_rfkill_hotplug |
; ModuleID = 'AnghaBench/numpy/numpy/core/src/multiarray/extr_convert_datatype.c_dtype_kind_to_ordering.c'
source_filename = "AnghaBench/numpy/numpy/core/src/multiarray/extr_convert_datatype.c_dtype_kind_to_ordering.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 @dtype_kind_to_ordering], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @dtype_kind_to_ordering(i8 noundef signext %0) #0 {
switch i8 %0, label %10 [
i8 98, label %11
i8 117, label %2
i8 105, label %3
i8 102, label %4
i8 99, label %5
i8 83, label %6
i8 97, label %6
i8 85, label %7
i8 86, label %8
i8 79, label %9
]
2: ; preds = %1
br label %11
3: ; preds = %1
br label %11
4: ; preds = %1
br label %11
5: ; preds = %1
br label %11
6: ; preds = %1, %1
br label %11
7: ; preds = %1
br label %11
8: ; preds = %1
br label %11
9: ; preds = %1
br label %11
10: ; preds = %1
br label %11
11: ; preds = %1, %10, %9, %8, %7, %6, %5, %4, %3, %2
%12 = phi i32 [ -1, %10 ], [ 9, %9 ], [ 8, %8 ], [ 7, %7 ], [ 6, %6 ], [ 5, %5 ], [ 4, %4 ], [ 2, %3 ], [ 1, %2 ], [ 0, %1 ]
ret i32 %12
}
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/numpy/numpy/core/src/multiarray/extr_convert_datatype.c_dtype_kind_to_ordering.c'
source_filename = "AnghaBench/numpy/numpy/core/src/multiarray/extr_convert_datatype.c_dtype_kind_to_ordering.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 @dtype_kind_to_ordering], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal range(i32 -1, 10) i32 @dtype_kind_to_ordering(i8 noundef signext %0) #0 {
switch i8 %0, label %10 [
i8 98, label %11
i8 117, label %2
i8 105, label %3
i8 102, label %4
i8 99, label %5
i8 83, label %6
i8 97, label %6
i8 85, label %7
i8 86, label %8
i8 79, label %9
]
2: ; preds = %1
br label %11
3: ; preds = %1
br label %11
4: ; preds = %1
br label %11
5: ; preds = %1
br label %11
6: ; preds = %1, %1
br label %11
7: ; preds = %1
br label %11
8: ; preds = %1
br label %11
9: ; preds = %1
br label %11
10: ; preds = %1
br label %11
11: ; preds = %1, %10, %9, %8, %7, %6, %5, %4, %3, %2
%12 = phi i32 [ -1, %10 ], [ 9, %9 ], [ 8, %8 ], [ 7, %7 ], [ 6, %6 ], [ 5, %5 ], [ 4, %4 ], [ 2, %3 ], [ 1, %2 ], [ 0, %1 ]
ret i32 %12
}
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)"}
| numpy_numpy_core_src_multiarray_extr_convert_datatype.c_dtype_kind_to_ordering |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/extr_drm_connector.c_drm_get_connector_force_name.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/extr_drm_connector.c_drm_get_connector_force_name.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 [12 x i8] c"unspecified\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"off\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"on\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"digital\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"unknown\00", align 1
@reltable.drm_get_connector_force_name = private unnamed_addr constant [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint (ptr @.str to i64), i64 ptrtoint (ptr @reltable.drm_get_connector_force_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.3 to i64), i64 ptrtoint (ptr @reltable.drm_get_connector_force_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.drm_get_connector_force_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.drm_get_connector_force_name to i64)) to i32)], align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local noundef nonnull ptr @drm_get_connector_force_name(i32 noundef %0) local_unnamed_addr #0 {
%2 = add i32 %0, -128
%3 = icmp ult i32 %2, 4
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = zext nneg i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call ptr @llvm.load.relative.i64(ptr @reltable.drm_get_connector_force_name, i64 %6)
br label %8
8: ; preds = %1, %4
%9 = phi ptr [ %7, %4 ], [ @.str.4, %1 ]
ret ptr %9
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare ptr @llvm.load.relative.i64(ptr, i64) #1
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" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/extr_drm_connector.c_drm_get_connector_force_name.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/extr_drm_connector.c_drm_get_connector_force_name.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 [12 x i8] c"unspecified\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"off\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"on\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"digital\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"unknown\00", align 1
@switch.table.drm_get_connector_force_name = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.3, ptr @.str.2, ptr @.str.1], align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define noundef nonnull ptr @drm_get_connector_force_name(i32 noundef %0) local_unnamed_addr #0 {
%2 = add i32 %0, -128
%3 = icmp ult i32 %2, 4
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = zext nneg i32 %2 to i64
%6 = getelementptr inbounds [4 x ptr], ptr @switch.table.drm_get_connector_force_name, i64 0, i64 %5
%7 = load ptr, ptr %6, align 8
br label %8
8: ; preds = %1, %4
%9 = phi ptr [ %7, %4 ], [ @.str.4, %1 ]
ret ptr %9
}
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_extr_drm_connector.c_drm_get_connector_force_name |
; ModuleID = 'AnghaBench/radare2/libr/asm/arch/tms320/c55x_plus/extr_..tms320_p.h_le32.c'
source_filename = "AnghaBench/radare2/libr/asm/arch/tms320/c55x_plus/extr_..tms320_p.h_le32.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 @le32], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @le32(i32 noundef returned %0) #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/radare2/libr/asm/arch/tms320/c55x_plus/extr_..tms320_p.h_le32.c'
source_filename = "AnghaBench/radare2/libr/asm/arch/tms320/c55x_plus/extr_..tms320_p.h_le32.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 @le32], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @le32(i32 noundef returned %0) #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)"}
| radare2_libr_asm_arch_tms320_c55x_plus_extr_..tms320_p.h_le32 |
; ModuleID = 'AnghaBench/postgres/src/backend/utils/mb/extr_mbutils.c_pg_wchar2mb.c'
source_filename = "AnghaBench/postgres/src/backend/utils/mb/extr_mbutils.c_pg_wchar2mb.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 }
@pg_wchar_table = dso_local local_unnamed_addr global ptr null, align 8
@DatabaseEncoding = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local i32 @pg_wchar2mb(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr @pg_wchar_table, align 8, !tbaa !5
%4 = load ptr, ptr @DatabaseEncoding, align 8, !tbaa !5
%5 = load i64, ptr %4, align 8, !tbaa !9
%6 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i64 %5
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = tail call i32 @pg_wchar_strlen(ptr noundef %0) #2
%9 = tail call i32 %7(ptr noundef %0, ptr noundef %1, i32 noundef %8) #2
ret i32 %9
}
declare i32 @pg_wchar_strlen(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, !11, i64 0}
!10 = !{!"TYPE_4__", !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"TYPE_3__", !6, i64 0}
| ; ModuleID = 'AnghaBench/postgres/src/backend/utils/mb/extr_mbutils.c_pg_wchar2mb.c'
source_filename = "AnghaBench/postgres/src/backend/utils/mb/extr_mbutils.c_pg_wchar2mb.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 { ptr }
@pg_wchar_table = common local_unnamed_addr global ptr null, align 8
@DatabaseEncoding = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @pg_wchar2mb(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr @pg_wchar_table, align 8, !tbaa !6
%4 = load ptr, ptr @DatabaseEncoding, align 8, !tbaa !6
%5 = load i64, ptr %4, align 8, !tbaa !10
%6 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i64 %5
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = tail call i32 @pg_wchar_strlen(ptr noundef %0) #2
%9 = tail call i32 %7(ptr noundef %0, ptr noundef %1, i32 noundef %8) #2
ret i32 %9
}
declare i32 @pg_wchar_strlen(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, !12, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_3__", !7, i64 0}
| postgres_src_backend_utils_mb_extr_mbutils.c_pg_wchar2mb |
; ModuleID = 'AnghaBench/linux/net/netfilter/extr_nf_conntrack_expect.c_nf_ct_remove_expect.c'
source_filename = "AnghaBench/linux/net/netfilter/extr_nf_conntrack_expect.c_nf_ct_remove_expect.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 noundef i32 @nf_ct_remove_expect(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i64 @del_timer(ptr noundef %0) #2
%3 = icmp eq i64 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = tail call i32 @nf_ct_unlink_expect(ptr noundef %0) #2
%6 = tail call i32 @nf_ct_expect_put(ptr noundef %0) #2
br label %7
7: ; preds = %1, %4
%8 = phi i32 [ 1, %4 ], [ 0, %1 ]
ret i32 %8
}
declare i64 @del_timer(ptr noundef) local_unnamed_addr #1
declare i32 @nf_ct_unlink_expect(ptr noundef) local_unnamed_addr #1
declare i32 @nf_ct_expect_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)"}
| ; ModuleID = 'AnghaBench/linux/net/netfilter/extr_nf_conntrack_expect.c_nf_ct_remove_expect.c'
source_filename = "AnghaBench/linux/net/netfilter/extr_nf_conntrack_expect.c_nf_ct_remove_expect.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 range(i32 0, 2) i32 @nf_ct_remove_expect(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i64 @del_timer(ptr noundef %0) #2
%3 = icmp eq i64 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = tail call i32 @nf_ct_unlink_expect(ptr noundef %0) #2
%6 = tail call i32 @nf_ct_expect_put(ptr noundef %0) #2
br label %7
7: ; preds = %1, %4
%8 = phi i32 [ 1, %4 ], [ 0, %1 ]
ret i32 %8
}
declare i64 @del_timer(ptr noundef) local_unnamed_addr #1
declare i32 @nf_ct_unlink_expect(ptr noundef) local_unnamed_addr #1
declare i32 @nf_ct_expect_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)"}
| linux_net_netfilter_extr_nf_conntrack_expect.c_nf_ct_remove_expect |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/rt2x00/extr_rt2500pci.c_rt2500pci_write_beacon.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/rt2x00/extr_rt2500pci.c_rt2500pci_write_beacon.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.queue_entry = type { i32, ptr }
@CSR14 = dso_local local_unnamed_addr global i32 0, align 4
@CSR14_BEACON_GEN = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Fail to map beacon, aborting\0A\00", align 1
@DUMP_FRAME_BEACON = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @rt2500pci_write_beacon], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @rt2500pci_write_beacon(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = getelementptr inbounds %struct.queue_entry, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = load ptr, ptr %5, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%7 = load i32, ptr @CSR14, align 4, !tbaa !13
%8 = call i32 @rt2x00mmio_register_read(ptr noundef %6, i32 noundef %7, ptr noundef nonnull %3) #3
%9 = load i32, ptr @CSR14_BEACON_GEN, align 4, !tbaa !13
%10 = call i32 @rt2x00_set_field32(ptr noundef nonnull %3, i32 noundef %9, i32 noundef 0) #3
%11 = load i32, ptr @CSR14, align 4, !tbaa !13
%12 = load i32, ptr %3, align 4, !tbaa !13
%13 = call i32 @rt2x00mmio_register_write(ptr noundef %6, i32 noundef %11, i32 noundef %12) #3
%14 = call i64 @rt2x00queue_map_txskb(ptr noundef %0) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %2
%17 = call i32 @rt2x00_err(ptr noundef %6, ptr noundef nonnull @.str) #3
br label %23
18: ; preds = %2
%19 = call i32 @rt2500pci_write_tx_desc(ptr noundef nonnull %0, ptr noundef %1) #3
%20 = load i32, ptr @DUMP_FRAME_BEACON, align 4, !tbaa !13
%21 = load i32, ptr %0, align 8, !tbaa !14
%22 = call i32 @rt2x00debug_dump_frame(ptr noundef %6, i32 noundef %20, i32 noundef %21) #3
br label %23
23: ; preds = %18, %16
%24 = load i32, ptr @CSR14_BEACON_GEN, align 4, !tbaa !13
%25 = call i32 @rt2x00_set_field32(ptr noundef nonnull %3, i32 noundef %24, i32 noundef 1) #3
%26 = load i32, ptr @CSR14, align 4, !tbaa !13
%27 = load i32, ptr %3, align 4, !tbaa !13
%28 = call i32 @rt2x00mmio_register_write(ptr noundef %6, i32 noundef %26, i32 noundef %27) #3
call void @llvm.lifetime.end.p0(i64 4, 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 i32 @rt2x00mmio_register_read(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @rt2x00_set_field32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @rt2x00mmio_register_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @rt2x00queue_map_txskb(ptr noundef) local_unnamed_addr #2
declare i32 @rt2x00_err(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @rt2500pci_write_tx_desc(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @rt2x00debug_dump_frame(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, !10, i64 8}
!6 = !{!"queue_entry", !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, !10, i64 0}
!12 = !{!"TYPE_2__", !10, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/rt2x00/extr_rt2500pci.c_rt2500pci_write_beacon.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/rt2x00/extr_rt2500pci.c_rt2500pci_write_beacon.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CSR14 = common local_unnamed_addr global i32 0, align 4
@CSR14_BEACON_GEN = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Fail to map beacon, aborting\0A\00", align 1
@DUMP_FRAME_BEACON = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @rt2500pci_write_beacon], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @rt2500pci_write_beacon(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = load ptr, ptr %5, align 8, !tbaa !12
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%7 = load i32, ptr @CSR14, align 4, !tbaa !14
%8 = call i32 @rt2x00mmio_register_read(ptr noundef %6, i32 noundef %7, ptr noundef nonnull %3) #3
%9 = load i32, ptr @CSR14_BEACON_GEN, align 4, !tbaa !14
%10 = call i32 @rt2x00_set_field32(ptr noundef nonnull %3, i32 noundef %9, i32 noundef 0) #3
%11 = load i32, ptr @CSR14, align 4, !tbaa !14
%12 = load i32, ptr %3, align 4, !tbaa !14
%13 = call i32 @rt2x00mmio_register_write(ptr noundef %6, i32 noundef %11, i32 noundef %12) #3
%14 = call i64 @rt2x00queue_map_txskb(ptr noundef %0) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %2
%17 = call i32 @rt2x00_err(ptr noundef %6, ptr noundef nonnull @.str) #3
br label %23
18: ; preds = %2
%19 = call i32 @rt2500pci_write_tx_desc(ptr noundef nonnull %0, ptr noundef %1) #3
%20 = load i32, ptr @DUMP_FRAME_BEACON, align 4, !tbaa !14
%21 = load i32, ptr %0, align 8, !tbaa !15
%22 = call i32 @rt2x00debug_dump_frame(ptr noundef %6, i32 noundef %20, i32 noundef %21) #3
br label %23
23: ; preds = %18, %16
%24 = load i32, ptr @CSR14_BEACON_GEN, align 4, !tbaa !14
%25 = call i32 @rt2x00_set_field32(ptr noundef nonnull %3, i32 noundef %24, i32 noundef 1) #3
%26 = load i32, ptr @CSR14, align 4, !tbaa !14
%27 = load i32, ptr %3, align 4, !tbaa !14
%28 = call i32 @rt2x00mmio_register_write(ptr noundef %6, i32 noundef %26, i32 noundef %27) #3
call void @llvm.lifetime.end.p0(i64 4, 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 i32 @rt2x00mmio_register_read(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @rt2x00_set_field32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @rt2x00mmio_register_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @rt2x00queue_map_txskb(ptr noundef) local_unnamed_addr #2
declare i32 @rt2x00_err(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @rt2500pci_write_tx_desc(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @rt2x00debug_dump_frame(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, !11, i64 8}
!7 = !{!"queue_entry", !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, !11, i64 0}
!13 = !{!"TYPE_2__", !11, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!7, !8, i64 0}
| fastsocket_kernel_drivers_net_wireless_rt2x00_extr_rt2500pci.c_rt2500pci_write_beacon |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/iio/extr_ring_sw.c_iio_mark_sw_rb_in_use.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/iio/extr_ring_sw.c_iio_mark_sw_rb_in_use.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.iio_sw_ring_buffer = type { i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @iio_mark_sw_rb_in_use(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @iio_to_sw_ring(ptr noundef %0) #2
%3 = tail call i32 @spin_lock(ptr noundef %2) #2
%4 = getelementptr inbounds %struct.iio_sw_ring_buffer, ptr %2, i64 0, i32 1
%5 = load i32, ptr %4, align 4, !tbaa !5
%6 = add nsw i32 %5, 1
store i32 %6, ptr %4, align 4, !tbaa !5
%7 = tail call i32 @spin_unlock(ptr noundef %2) #2
ret void
}
declare ptr @iio_to_sw_ring(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @spin_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, !7, i64 4}
!6 = !{!"iio_sw_ring_buffer", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/iio/extr_ring_sw.c_iio_mark_sw_rb_in_use.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/iio/extr_ring_sw.c_iio_mark_sw_rb_in_use.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 @iio_mark_sw_rb_in_use(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @iio_to_sw_ring(ptr noundef %0) #2
%3 = tail call i32 @spin_lock(ptr noundef %2) #2
%4 = getelementptr inbounds i8, ptr %2, i64 4
%5 = load i32, ptr %4, align 4, !tbaa !6
%6 = add nsw i32 %5, 1
store i32 %6, ptr %4, align 4, !tbaa !6
%7 = tail call i32 @spin_unlock(ptr noundef %2) #2
ret void
}
declare ptr @iio_to_sw_ring(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @spin_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, !8, i64 4}
!7 = !{!"iio_sw_ring_buffer", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_staging_iio_extr_ring_sw.c_iio_mark_sw_rb_in_use |
; ModuleID = 'AnghaBench/postgres/src/backend/commands/extr_tsearchcmds.c_RemoveTSTemplateById.c'
source_filename = "AnghaBench/postgres/src/backend/commands/extr_tsearchcmds.c_RemoveTSTemplateById.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"
@TSTemplateRelationId = dso_local local_unnamed_addr global i32 0, align 4
@RowExclusiveLock = dso_local local_unnamed_addr global i32 0, align 4
@TSTEMPLATEOID = dso_local local_unnamed_addr global i32 0, align 4
@ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [48 x i8] c"cache lookup failed for text search template %u\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @RemoveTSTemplateById(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @TSTemplateRelationId, align 4, !tbaa !5
%3 = load i32, ptr @RowExclusiveLock, align 4, !tbaa !5
%4 = tail call i32 @table_open(i32 noundef %2, i32 noundef %3) #2
%5 = load i32, ptr @TSTEMPLATEOID, align 4, !tbaa !5
%6 = tail call i32 @ObjectIdGetDatum(i32 noundef %0) #2
%7 = tail call ptr @SearchSysCache1(i32 noundef %5, i32 noundef %6) #2
%8 = tail call i32 @HeapTupleIsValid(ptr noundef %7) #2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i32, ptr @ERROR, align 4, !tbaa !5
%12 = tail call i32 @elog(i32 noundef %11, ptr noundef nonnull @.str, i32 noundef %0) #2
br label %13
13: ; preds = %10, %1
%14 = tail call i32 @CatalogTupleDelete(i32 noundef %4, ptr noundef %7) #2
%15 = tail call i32 @ReleaseSysCache(ptr noundef %7) #2
%16 = load i32, ptr @RowExclusiveLock, align 4, !tbaa !5
%17 = tail call i32 @table_close(i32 noundef %4, i32 noundef %16) #2
ret void
}
declare i32 @table_open(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @SearchSysCache1(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ObjectIdGetDatum(i32 noundef) local_unnamed_addr #1
declare i32 @HeapTupleIsValid(ptr noundef) local_unnamed_addr #1
declare i32 @elog(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CatalogTupleDelete(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ReleaseSysCache(ptr noundef) local_unnamed_addr #1
declare i32 @table_close(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"}
| ; ModuleID = 'AnghaBench/postgres/src/backend/commands/extr_tsearchcmds.c_RemoveTSTemplateById.c'
source_filename = "AnghaBench/postgres/src/backend/commands/extr_tsearchcmds.c_RemoveTSTemplateById.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TSTemplateRelationId = common local_unnamed_addr global i32 0, align 4
@RowExclusiveLock = common local_unnamed_addr global i32 0, align 4
@TSTEMPLATEOID = common local_unnamed_addr global i32 0, align 4
@ERROR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [48 x i8] c"cache lookup failed for text search template %u\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @RemoveTSTemplateById(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @TSTemplateRelationId, align 4, !tbaa !6
%3 = load i32, ptr @RowExclusiveLock, align 4, !tbaa !6
%4 = tail call i32 @table_open(i32 noundef %2, i32 noundef %3) #2
%5 = load i32, ptr @TSTEMPLATEOID, align 4, !tbaa !6
%6 = tail call i32 @ObjectIdGetDatum(i32 noundef %0) #2
%7 = tail call ptr @SearchSysCache1(i32 noundef %5, i32 noundef %6) #2
%8 = tail call i32 @HeapTupleIsValid(ptr noundef %7) #2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i32, ptr @ERROR, align 4, !tbaa !6
%12 = tail call i32 @elog(i32 noundef %11, ptr noundef nonnull @.str, i32 noundef %0) #2
br label %13
13: ; preds = %10, %1
%14 = tail call i32 @CatalogTupleDelete(i32 noundef %4, ptr noundef %7) #2
%15 = tail call i32 @ReleaseSysCache(ptr noundef %7) #2
%16 = load i32, ptr @RowExclusiveLock, align 4, !tbaa !6
%17 = tail call i32 @table_close(i32 noundef %4, i32 noundef %16) #2
ret void
}
declare i32 @table_open(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @SearchSysCache1(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ObjectIdGetDatum(i32 noundef) local_unnamed_addr #1
declare i32 @HeapTupleIsValid(ptr noundef) local_unnamed_addr #1
declare i32 @elog(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CatalogTupleDelete(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ReleaseSysCache(ptr noundef) local_unnamed_addr #1
declare i32 @table_close(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"}
| postgres_src_backend_commands_extr_tsearchcmds.c_RemoveTSTemplateById |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/libsas/extr_sas_init.c_sas_unregister_ha.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/libsas/extr_sas_init.c_sas_unregister_ha.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.sas_ha_struct = type { i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @sas_unregister_ha(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @sas_disable_events(ptr noundef %0) #2
%3 = tail call i32 @sas_unregister_ports(ptr noundef %0) #2
%4 = getelementptr inbounds %struct.sas_ha_struct, ptr %0, i64 0, i32 1
%5 = tail call i32 @mutex_lock(ptr noundef nonnull %4) #2
%6 = tail call i32 @__sas_drain_work(ptr noundef %0) #2
%7 = tail call i32 @mutex_unlock(ptr noundef nonnull %4) #2
%8 = load i32, ptr %0, align 4, !tbaa !5
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = tail call i32 @sas_shutdown_queue(ptr noundef nonnull %0) #2
store i32 1, ptr %0, align 4, !tbaa !5
br label %12
12: ; preds = %10, %1
ret i32 0
}
declare i32 @sas_disable_events(ptr noundef) local_unnamed_addr #1
declare i32 @sas_unregister_ports(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @__sas_drain_work(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @sas_shutdown_queue(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 = !{!"sas_ha_struct", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/libsas/extr_sas_init.c_sas_unregister_ha.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/libsas/extr_sas_init.c_sas_unregister_ha.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 noundef i32 @sas_unregister_ha(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @sas_disable_events(ptr noundef %0) #2
%3 = tail call i32 @sas_unregister_ports(ptr noundef %0) #2
%4 = getelementptr inbounds i8, ptr %0, i64 4
%5 = tail call i32 @mutex_lock(ptr noundef nonnull %4) #2
%6 = tail call i32 @__sas_drain_work(ptr noundef %0) #2
%7 = tail call i32 @mutex_unlock(ptr noundef nonnull %4) #2
%8 = load i32, ptr %0, align 4, !tbaa !6
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = tail call i32 @sas_shutdown_queue(ptr noundef nonnull %0) #2
store i32 1, ptr %0, align 4, !tbaa !6
br label %12
12: ; preds = %10, %1
ret i32 0
}
declare i32 @sas_disable_events(ptr noundef) local_unnamed_addr #1
declare i32 @sas_unregister_ports(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @__sas_drain_work(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @sas_shutdown_queue(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 = !{!"sas_ha_struct", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_scsi_libsas_extr_sas_init.c_sas_unregister_ha |
; ModuleID = 'AnghaBench/freebsd/sys/rpc/extr_svc.c_svcerr_auth.c'
source_filename = "AnghaBench/freebsd/sys/rpc/extr_svc.c_svcerr_auth.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.rpc_msg = type { %struct.TYPE_6__, %struct.TYPE_5__, i32, i32 }
%struct.TYPE_6__ = type { i32, i32 }
%struct.TYPE_5__ = type { i32 }
%struct.svc_req = type { i32, ptr }
@REPLY = dso_local local_unnamed_addr global i32 0, align 4
@MSG_DENIED = dso_local local_unnamed_addr global i32 0, align 4
@AUTH_ERROR = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @svcerr_auth(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.rpc_msg, align 4
%4 = getelementptr inbounds %struct.svc_req, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #3
%6 = load i32, ptr %0, align 8, !tbaa !11
%7 = getelementptr inbounds %struct.rpc_msg, ptr %3, i64 0, i32 3
store i32 %6, ptr %7, align 4, !tbaa !12
%8 = load i32, ptr @REPLY, align 4, !tbaa !16
%9 = getelementptr inbounds %struct.rpc_msg, ptr %3, i64 0, i32 2
store i32 %8, ptr %9, align 4, !tbaa !17
%10 = load i32, ptr @MSG_DENIED, align 4, !tbaa !16
%11 = getelementptr inbounds %struct.rpc_msg, ptr %3, i64 0, i32 1
store i32 %10, ptr %11, align 4, !tbaa !18
%12 = load i32, ptr @AUTH_ERROR, align 4, !tbaa !16
%13 = getelementptr inbounds %struct.TYPE_6__, ptr %3, i64 0, i32 1
store i32 %12, ptr %13, align 4, !tbaa !19
store i32 %1, ptr %3, align 4, !tbaa !20
%14 = load ptr, ptr %5, align 8, !tbaa !21
%15 = load i64, ptr %14, align 8, !tbaa !23
%16 = icmp eq i64 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %2
%18 = tail call i32 @svc_getrpccaller(ptr noundef nonnull %0) #3
%19 = call i32 @replay_setreply(i64 noundef %15, ptr noundef nonnull %3, i32 noundef %18, ptr noundef null) #3
br label %20
20: ; preds = %17, %2
%21 = call i32 @svc_sendreply_common(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef null) #3
call void @llvm.lifetime.end.p0(i64 20, 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 i32 @replay_setreply(i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @svc_getrpccaller(ptr noundef) local_unnamed_addr #2
declare i32 @svc_sendreply_common(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, !10, i64 8}
!6 = !{!"svc_req", !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, !7, i64 0}
!12 = !{!13, !7, i64 16}
!13 = !{!"rpc_msg", !14, i64 0, !15, i64 8, !7, i64 12, !7, i64 16}
!14 = !{!"TYPE_6__", !7, i64 0, !7, i64 4}
!15 = !{!"TYPE_5__", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!13, !7, i64 12}
!18 = !{!13, !7, i64 8}
!19 = !{!13, !7, i64 4}
!20 = !{!13, !7, i64 0}
!21 = !{!22, !10, i64 0}
!22 = !{!"TYPE_8__", !10, i64 0}
!23 = !{!24, !25, i64 0}
!24 = !{!"TYPE_7__", !25, i64 0}
!25 = !{!"long", !8, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/rpc/extr_svc.c_svcerr_auth.c'
source_filename = "AnghaBench/freebsd/sys/rpc/extr_svc.c_svcerr_auth.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.rpc_msg = type { %struct.TYPE_6__, %struct.TYPE_5__, i32, i32 }
%struct.TYPE_6__ = type { i32, i32 }
%struct.TYPE_5__ = type { i32 }
@REPLY = common local_unnamed_addr global i32 0, align 4
@MSG_DENIED = common local_unnamed_addr global i32 0, align 4
@AUTH_ERROR = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @svcerr_auth(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.rpc_msg, align 4
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #3
%6 = load i32, ptr %0, align 8, !tbaa !12
%7 = getelementptr inbounds i8, ptr %3, i64 16
store i32 %6, ptr %7, align 4, !tbaa !13
%8 = load i32, ptr @REPLY, align 4, !tbaa !17
%9 = getelementptr inbounds i8, ptr %3, i64 12
store i32 %8, ptr %9, align 4, !tbaa !18
%10 = load i32, ptr @MSG_DENIED, align 4, !tbaa !17
%11 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %10, ptr %11, align 4, !tbaa !19
%12 = load i32, ptr @AUTH_ERROR, align 4, !tbaa !17
%13 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %12, ptr %13, align 4, !tbaa !20
store i32 %1, ptr %3, align 4, !tbaa !21
%14 = load ptr, ptr %5, align 8, !tbaa !22
%15 = load i64, ptr %14, align 8, !tbaa !24
%16 = icmp eq i64 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %2
%18 = tail call i32 @svc_getrpccaller(ptr noundef nonnull %0) #3
%19 = call i32 @replay_setreply(i64 noundef %15, ptr noundef nonnull %3, i32 noundef %18, ptr noundef null) #3
br label %20
20: ; preds = %17, %2
%21 = call i32 @svc_sendreply_common(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef null) #3
call void @llvm.lifetime.end.p0(i64 20, 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 i32 @replay_setreply(i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @svc_getrpccaller(ptr noundef) local_unnamed_addr #2
declare i32 @svc_sendreply_common(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, !11, i64 8}
!7 = !{!"svc_req", !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, !8, i64 0}
!13 = !{!14, !8, i64 16}
!14 = !{!"rpc_msg", !15, i64 0, !16, i64 8, !8, i64 12, !8, i64 16}
!15 = !{!"TYPE_6__", !8, i64 0, !8, i64 4}
!16 = !{!"TYPE_5__", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!14, !8, i64 12}
!19 = !{!14, !8, i64 8}
!20 = !{!14, !8, i64 4}
!21 = !{!14, !8, i64 0}
!22 = !{!23, !11, i64 0}
!23 = !{!"TYPE_8__", !11, i64 0}
!24 = !{!25, !26, i64 0}
!25 = !{!"TYPE_7__", !26, i64 0}
!26 = !{!"long", !9, i64 0}
| freebsd_sys_rpc_extr_svc.c_svcerr_auth |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/bios/extr_command_table.c_init_enable_disp_power_gating.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/bios/extr_command_table.c_init_enable_disp_power_gating.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"
@EnableDispPowerGating = dso_local local_unnamed_addr global i32 0, align 4
@enable_disp_power_gating_v2_1 = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [52 x i8] c"Don't enable_disp_power_gating enable_crtc for v%d\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @init_enable_disp_power_gating], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @init_enable_disp_power_gating(ptr nocapture noundef writeonly %0) #0 {
%2 = load i32, ptr @EnableDispPowerGating, align 4, !tbaa !5
%3 = tail call i32 @BIOS_CMD_TABLE_PARA_REVISION(i32 noundef %2) #2
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load ptr, ptr @enable_disp_power_gating_v2_1, align 8, !tbaa !9
br label %11
7: ; preds = %1
%8 = load i32, ptr @EnableDispPowerGating, align 4, !tbaa !5
%9 = tail call i32 @BIOS_CMD_TABLE_PARA_REVISION(i32 noundef %8) #2
%10 = tail call i32 @dm_output_to_console(ptr noundef nonnull @.str, i32 noundef %9) #2
br label %11
11: ; preds = %7, %5
%12 = phi ptr [ null, %7 ], [ %6, %5 ]
store ptr %12, ptr %0, align 8, !tbaa !11
ret void
}
declare i32 @BIOS_CMD_TABLE_PARA_REVISION(i32 noundef) local_unnamed_addr #1
declare i32 @dm_output_to_console(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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"bios_parser", !13, i64 0}
!13 = !{!"TYPE_2__", !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/bios/extr_command_table.c_init_enable_disp_power_gating.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/bios/extr_command_table.c_init_enable_disp_power_gating.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EnableDispPowerGating = common local_unnamed_addr global i32 0, align 4
@enable_disp_power_gating_v2_1 = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [52 x i8] c"Don't enable_disp_power_gating enable_crtc for v%d\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @init_enable_disp_power_gating], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @init_enable_disp_power_gating(ptr nocapture noundef writeonly %0) #0 {
%2 = load i32, ptr @EnableDispPowerGating, align 4, !tbaa !6
%3 = tail call i32 @BIOS_CMD_TABLE_PARA_REVISION(i32 noundef %2) #2
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load ptr, ptr @enable_disp_power_gating_v2_1, align 8, !tbaa !10
br label %11
7: ; preds = %1
%8 = load i32, ptr @EnableDispPowerGating, align 4, !tbaa !6
%9 = tail call i32 @BIOS_CMD_TABLE_PARA_REVISION(i32 noundef %8) #2
%10 = tail call i32 @dm_output_to_console(ptr noundef nonnull @.str, i32 noundef %9) #2
br label %11
11: ; preds = %7, %5
%12 = phi ptr [ null, %7 ], [ %6, %5 ]
store ptr %12, ptr %0, align 8, !tbaa !12
ret void
}
declare i32 @BIOS_CMD_TABLE_PARA_REVISION(i32 noundef) local_unnamed_addr #1
declare i32 @dm_output_to_console(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"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"bios_parser", !14, i64 0}
!14 = !{!"TYPE_2__", !11, i64 0}
| linux_drivers_gpu_drm_amd_display_dc_bios_extr_command_table.c_init_enable_disp_power_gating |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/spi/extr_pxa2xx_spi.c_transfer.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/spi/extr_pxa2xx_spi.c_transfer.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.driver_data = type { i64, i32, i32, i32, i32, i32 }
%struct.spi_message = type { i32, i32, i32, i64 }
@QUEUE_STOPPED = dso_local local_unnamed_addr global i64 0, align 8
@ESHUTDOWN = dso_local local_unnamed_addr global i32 0, align 4
@EINPROGRESS = dso_local local_unnamed_addr global i32 0, align 4
@START_STATE = dso_local local_unnamed_addr global i32 0, align 4
@QUEUE_RUNNING = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @transfer], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @transfer(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call ptr @spi_master_get_devdata(i32 noundef %3) #2
%5 = getelementptr inbounds %struct.driver_data, ptr %4, i64 0, i32 1
%6 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %5, i64 noundef undef) #2
%7 = load i64, ptr %4, align 8, !tbaa !10
%8 = load i64, ptr @QUEUE_STOPPED, align 8, !tbaa !13
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %5, i64 noundef undef) #2
%12 = load i32, ptr @ESHUTDOWN, align 4, !tbaa !14
%13 = sub nsw i32 0, %12
br label %37
14: ; preds = %2
%15 = getelementptr inbounds %struct.spi_message, ptr %1, i64 0, i32 3
store i64 0, ptr %15, align 8, !tbaa !15
%16 = load i32, ptr @EINPROGRESS, align 4, !tbaa !14
%17 = sub nsw i32 0, %16
%18 = getelementptr inbounds %struct.spi_message, ptr %1, i64 0, i32 2
store i32 %17, ptr %18, align 8, !tbaa !17
%19 = load i32, ptr @START_STATE, align 4, !tbaa !14
%20 = getelementptr inbounds %struct.spi_message, ptr %1, i64 0, i32 1
store i32 %19, ptr %20, align 4, !tbaa !18
%21 = getelementptr inbounds %struct.driver_data, ptr %4, i64 0, i32 5
%22 = tail call i32 @list_add_tail(ptr noundef %1, ptr noundef nonnull %21) #2
%23 = load i64, ptr %4, align 8, !tbaa !10
%24 = load i64, ptr @QUEUE_RUNNING, align 8, !tbaa !13
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %35
26: ; preds = %14
%27 = getelementptr inbounds %struct.driver_data, ptr %4, i64 0, i32 4
%28 = load i32, ptr %27, align 4, !tbaa !19
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = getelementptr inbounds %struct.driver_data, ptr %4, i64 0, i32 3
%32 = load i32, ptr %31, align 8, !tbaa !20
%33 = getelementptr inbounds %struct.driver_data, ptr %4, i64 0, i32 2
%34 = tail call i32 @queue_work(i32 noundef %32, ptr noundef nonnull %33) #2
br label %35
35: ; preds = %30, %26, %14
%36 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %5, i64 noundef undef) #2
br label %37
37: ; preds = %35, %10
%38 = phi i32 [ %13, %10 ], [ 0, %35 ]
ret i32 %38
}
declare ptr @spi_master_get_devdata(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @list_add_tail(ptr noundef, ptr 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 = !{!"spi_device", !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 = !{!"driver_data", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!12 = !{!"long", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !12, i64 16}
!16 = !{!"spi_message", !7, i64 0, !7, i64 4, !7, i64 8, !12, i64 16}
!17 = !{!16, !7, i64 8}
!18 = !{!16, !7, i64 4}
!19 = !{!11, !7, i64 20}
!20 = !{!11, !7, i64 16}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/spi/extr_pxa2xx_spi.c_transfer.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/spi/extr_pxa2xx_spi.c_transfer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@QUEUE_STOPPED = common local_unnamed_addr global i64 0, align 8
@ESHUTDOWN = common local_unnamed_addr global i32 0, align 4
@EINPROGRESS = common local_unnamed_addr global i32 0, align 4
@START_STATE = common local_unnamed_addr global i32 0, align 4
@QUEUE_RUNNING = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @transfer], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @transfer(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = tail call ptr @spi_master_get_devdata(i32 noundef %3) #2
%5 = getelementptr inbounds i8, ptr %4, i64 8
%6 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %5, i64 noundef undef) #2
%7 = load i64, ptr %4, align 8, !tbaa !11
%8 = load i64, ptr @QUEUE_STOPPED, align 8, !tbaa !14
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %5, i64 noundef undef) #2
%12 = load i32, ptr @ESHUTDOWN, align 4, !tbaa !15
%13 = sub nsw i32 0, %12
br label %37
14: ; preds = %2
%15 = getelementptr inbounds i8, ptr %1, i64 16
store i64 0, ptr %15, align 8, !tbaa !16
%16 = load i32, ptr @EINPROGRESS, align 4, !tbaa !15
%17 = sub nsw i32 0, %16
%18 = getelementptr inbounds i8, ptr %1, i64 8
store i32 %17, ptr %18, align 8, !tbaa !18
%19 = load i32, ptr @START_STATE, align 4, !tbaa !15
%20 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %19, ptr %20, align 4, !tbaa !19
%21 = getelementptr inbounds i8, ptr %4, i64 24
%22 = tail call i32 @list_add_tail(ptr noundef %1, ptr noundef nonnull %21) #2
%23 = load i64, ptr %4, align 8, !tbaa !11
%24 = load i64, ptr @QUEUE_RUNNING, align 8, !tbaa !14
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %35
26: ; preds = %14
%27 = getelementptr inbounds i8, ptr %4, i64 20
%28 = load i32, ptr %27, align 4, !tbaa !20
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = getelementptr inbounds i8, ptr %4, i64 16
%32 = load i32, ptr %31, align 8, !tbaa !21
%33 = getelementptr inbounds i8, ptr %4, i64 12
%34 = tail call i32 @queue_work(i32 noundef %32, ptr noundef nonnull %33) #2
br label %35
35: ; preds = %30, %26, %14
%36 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %5, i64 noundef undef) #2
br label %37
37: ; preds = %35, %10
%38 = phi i32 [ %13, %10 ], [ 0, %35 ]
ret i32 %38
}
declare ptr @spi_master_get_devdata(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @list_add_tail(ptr noundef, ptr 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 = !{!"spi_device", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"driver_data", !13, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24}
!13 = !{!"long", !9, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !13, i64 16}
!17 = !{!"spi_message", !8, i64 0, !8, i64 4, !8, i64 8, !13, i64 16}
!18 = !{!17, !8, i64 8}
!19 = !{!17, !8, i64 4}
!20 = !{!12, !8, i64 20}
!21 = !{!12, !8, i64 16}
| fastsocket_kernel_drivers_spi_extr_pxa2xx_spi.c_transfer |
; ModuleID = 'AnghaBench/freebsd/sys/dev/cas/extr_if_cas.c_cas_setladrf.c'
source_filename = "AnghaBench/freebsd/sys/dev/cas/extr_if_cas.c_cas_setladrf.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.cas_softc = type { i32, i32, ptr }
@MA_OWNED = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CONF_HFILTER = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CONF_EN = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CONF = dso_local local_unnamed_addr global i32 0, align 4
@BUS_SPACE_BARRIER_READ = dso_local local_unnamed_addr global i32 0, align 4
@BUS_SPACE_BARRIER_WRITE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"cannot disable RX MAC or hash filter\0A\00", align 1
@CAS_MAC_RX_CONF_PROMISC = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CONF_PGRP = dso_local local_unnamed_addr global i32 0, align 4
@IFF_PROMISC = dso_local local_unnamed_addr global i32 0, align 4
@IFF_ALLMULTI = dso_local local_unnamed_addr global i32 0, align 4
@cas_hash_maddr = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_HASH0 = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_HASH1 = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cas_setladrf], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @cas_setladrf(ptr noundef %0) #0 {
%2 = alloca [16 x i32], align 16
%3 = getelementptr inbounds %struct.cas_softc, ptr %0, i64 0, i32 2
%4 = load ptr, ptr %3, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #3
%5 = load i32, ptr @MA_OWNED, align 4, !tbaa !11
%6 = tail call i32 @CAS_LOCK_ASSERT(ptr noundef %0, i32 noundef %5) #3
%7 = load i32, ptr %0, align 8, !tbaa !12
%8 = load i32, ptr @CAS_MAC_RX_CONF_HFILTER, align 4, !tbaa !11
%9 = load i32, ptr @CAS_MAC_RX_CONF_EN, align 4, !tbaa !11
%10 = or i32 %9, %8
%11 = xor i32 %10, -1
%12 = and i32 %7, %11
%13 = load i32, ptr @CAS_MAC_RX_CONF, align 4, !tbaa !11
%14 = tail call i32 @CAS_WRITE_4(ptr noundef nonnull %0, i32 noundef %13, i32 noundef %12) #3
%15 = load i32, ptr @CAS_MAC_RX_CONF, align 4, !tbaa !11
%16 = load i32, ptr @BUS_SPACE_BARRIER_READ, align 4, !tbaa !11
%17 = load i32, ptr @BUS_SPACE_BARRIER_WRITE, align 4, !tbaa !11
%18 = or i32 %17, %16
%19 = tail call i32 @CAS_BARRIER(ptr noundef nonnull %0, i32 noundef %15, i32 noundef 4, i32 noundef %18) #3
%20 = load i32, ptr @CAS_MAC_RX_CONF, align 4, !tbaa !11
%21 = load i32, ptr @CAS_MAC_RX_CONF_HFILTER, align 4, !tbaa !11
%22 = load i32, ptr @CAS_MAC_RX_CONF_EN, align 4, !tbaa !11
%23 = or i32 %22, %21
%24 = tail call i32 @cas_bitwait(ptr noundef nonnull %0, i32 noundef %20, i32 noundef %23, i32 noundef 0) #3
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %1
%27 = getelementptr inbounds %struct.cas_softc, ptr %0, i64 0, i32 1
%28 = load i32, ptr %27, align 4, !tbaa !13
%29 = tail call i32 @device_printf(i32 noundef %28, ptr noundef nonnull @.str) #3
br label %30
30: ; preds = %26, %1
%31 = load i32, ptr @CAS_MAC_RX_CONF_PROMISC, align 4, !tbaa !11
%32 = load i32, ptr @CAS_MAC_RX_CONF_PGRP, align 4, !tbaa !11
%33 = load i32, ptr %4, align 4, !tbaa !14
%34 = load i32, ptr @IFF_PROMISC, align 4, !tbaa !11
%35 = and i32 %34, %33
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %59
37: ; preds = %30
%38 = load i32, ptr @IFF_ALLMULTI, align 4, !tbaa !11
%39 = and i32 %38, %33
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %59
41: ; preds = %37
%42 = call i32 @memset(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 64) #3
%43 = load i32, ptr @cas_hash_maddr, align 4, !tbaa !11
%44 = call i32 @if_foreach_llmaddr(ptr noundef nonnull %4, i32 noundef %43, ptr noundef nonnull %2) #3
%45 = load i32, ptr @CAS_MAC_RX_CONF_HFILTER, align 4, !tbaa !11
br label %46
46: ; preds = %41, %46
%47 = phi i64 [ 0, %41 ], [ %57, %46 ]
%48 = load i32, ptr @CAS_MAC_HASH0, align 4, !tbaa !11
%49 = load i32, ptr @CAS_MAC_HASH1, align 4, !tbaa !11
%50 = sub nsw i32 %49, %48
%51 = trunc i64 %47 to i32
%52 = mul nsw i32 %50, %51
%53 = add nsw i32 %52, %48
%54 = getelementptr inbounds [16 x i32], ptr %2, i64 0, i64 %47
%55 = load i32, ptr %54, align 4, !tbaa !11
%56 = call i32 @CAS_WRITE_4(ptr noundef nonnull %0, i32 noundef %53, i32 noundef %55) #3
%57 = add nuw nsw i64 %47, 1
%58 = icmp eq i64 %57, 16
br i1 %58, label %59, label %46, !llvm.loop !16
59: ; preds = %46, %37, %30
%60 = phi i32 [ %31, %30 ], [ %32, %37 ], [ %45, %46 ]
%61 = or i32 %32, %31
%62 = xor i32 %61, -1
%63 = and i32 %12, %62
%64 = or i32 %60, %63
store i32 %64, ptr %0, align 8, !tbaa !12
%65 = load i32, ptr @CAS_MAC_RX_CONF, align 4, !tbaa !11
%66 = load i32, ptr @CAS_MAC_RX_CONF_EN, align 4, !tbaa !11
%67 = or i32 %66, %64
%68 = call i32 @CAS_WRITE_4(ptr noundef nonnull %0, i32 noundef %65, i32 noundef %67) #3
call void @llvm.lifetime.end.p0(i64 64, 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 @CAS_LOCK_ASSERT(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CAS_WRITE_4(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CAS_BARRIER(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cas_bitwait(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @device_printf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @if_foreach_llmaddr(ptr noundef, i32 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, !10, i64 8}
!6 = !{!"cas_softc", !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 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{!15, !7, i64 0}
!15 = !{!"ifnet", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/cas/extr_if_cas.c_cas_setladrf.c'
source_filename = "AnghaBench/freebsd/sys/dev/cas/extr_if_cas.c_cas_setladrf.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MA_OWNED = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CONF_HFILTER = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CONF_EN = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CONF = common local_unnamed_addr global i32 0, align 4
@BUS_SPACE_BARRIER_READ = common local_unnamed_addr global i32 0, align 4
@BUS_SPACE_BARRIER_WRITE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"cannot disable RX MAC or hash filter\0A\00", align 1
@CAS_MAC_RX_CONF_PROMISC = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CONF_PGRP = common local_unnamed_addr global i32 0, align 4
@IFF_PROMISC = common local_unnamed_addr global i32 0, align 4
@IFF_ALLMULTI = common local_unnamed_addr global i32 0, align 4
@cas_hash_maddr = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_HASH0 = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_HASH1 = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cas_setladrf], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @cas_setladrf(ptr noundef %0) #0 {
%2 = alloca [16 x i32], align 4
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #3
%5 = load i32, ptr @MA_OWNED, align 4, !tbaa !12
%6 = tail call i32 @CAS_LOCK_ASSERT(ptr noundef %0, i32 noundef %5) #3
%7 = load i32, ptr %0, align 8, !tbaa !13
%8 = load i32, ptr @CAS_MAC_RX_CONF_HFILTER, align 4, !tbaa !12
%9 = load i32, ptr @CAS_MAC_RX_CONF_EN, align 4, !tbaa !12
%10 = or i32 %9, %8
%11 = xor i32 %10, -1
%12 = and i32 %7, %11
%13 = load i32, ptr @CAS_MAC_RX_CONF, align 4, !tbaa !12
%14 = tail call i32 @CAS_WRITE_4(ptr noundef nonnull %0, i32 noundef %13, i32 noundef %12) #3
%15 = load i32, ptr @CAS_MAC_RX_CONF, align 4, !tbaa !12
%16 = load i32, ptr @BUS_SPACE_BARRIER_READ, align 4, !tbaa !12
%17 = load i32, ptr @BUS_SPACE_BARRIER_WRITE, align 4, !tbaa !12
%18 = or i32 %17, %16
%19 = tail call i32 @CAS_BARRIER(ptr noundef nonnull %0, i32 noundef %15, i32 noundef 4, i32 noundef %18) #3
%20 = load i32, ptr @CAS_MAC_RX_CONF, align 4, !tbaa !12
%21 = load i32, ptr @CAS_MAC_RX_CONF_HFILTER, align 4, !tbaa !12
%22 = load i32, ptr @CAS_MAC_RX_CONF_EN, align 4, !tbaa !12
%23 = or i32 %22, %21
%24 = tail call i32 @cas_bitwait(ptr noundef nonnull %0, i32 noundef %20, i32 noundef %23, i32 noundef 0) #3
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %1
%27 = getelementptr inbounds i8, ptr %0, i64 4
%28 = load i32, ptr %27, align 4, !tbaa !14
%29 = tail call i32 @device_printf(i32 noundef %28, ptr noundef nonnull @.str) #3
br label %30
30: ; preds = %26, %1
%31 = load i32, ptr @CAS_MAC_RX_CONF_PROMISC, align 4, !tbaa !12
%32 = load i32, ptr @CAS_MAC_RX_CONF_PGRP, align 4, !tbaa !12
%33 = load i32, ptr %4, align 4, !tbaa !15
%34 = load i32, ptr @IFF_PROMISC, align 4, !tbaa !12
%35 = and i32 %34, %33
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %59
37: ; preds = %30
%38 = load i32, ptr @IFF_ALLMULTI, align 4, !tbaa !12
%39 = and i32 %38, %33
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %59
41: ; preds = %37
%42 = call i32 @memset(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 64) #3
%43 = load i32, ptr @cas_hash_maddr, align 4, !tbaa !12
%44 = call i32 @if_foreach_llmaddr(ptr noundef nonnull %4, i32 noundef %43, ptr noundef nonnull %2) #3
%45 = load i32, ptr @CAS_MAC_RX_CONF_HFILTER, align 4, !tbaa !12
br label %46
46: ; preds = %41, %46
%47 = phi i64 [ 0, %41 ], [ %57, %46 ]
%48 = load i32, ptr @CAS_MAC_HASH0, align 4, !tbaa !12
%49 = load i32, ptr @CAS_MAC_HASH1, align 4, !tbaa !12
%50 = sub nsw i32 %49, %48
%51 = trunc nuw nsw i64 %47 to i32
%52 = mul nsw i32 %50, %51
%53 = add nsw i32 %52, %48
%54 = getelementptr inbounds [16 x i32], ptr %2, i64 0, i64 %47
%55 = load i32, ptr %54, align 4, !tbaa !12
%56 = call i32 @CAS_WRITE_4(ptr noundef nonnull %0, i32 noundef %53, i32 noundef %55) #3
%57 = add nuw nsw i64 %47, 1
%58 = icmp eq i64 %57, 16
br i1 %58, label %59, label %46, !llvm.loop !17
59: ; preds = %46, %37, %30
%60 = phi i32 [ %31, %30 ], [ %32, %37 ], [ %45, %46 ]
%61 = or i32 %32, %31
%62 = xor i32 %61, -1
%63 = and i32 %12, %62
%64 = or i32 %60, %63
store i32 %64, ptr %0, align 8, !tbaa !13
%65 = load i32, ptr @CAS_MAC_RX_CONF, align 4, !tbaa !12
%66 = load i32, ptr @CAS_MAC_RX_CONF_EN, align 4, !tbaa !12
%67 = or i32 %66, %64
%68 = call i32 @CAS_WRITE_4(ptr noundef nonnull %0, i32 noundef %65, i32 noundef %67) #3
call void @llvm.lifetime.end.p0(i64 64, 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 @CAS_LOCK_ASSERT(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CAS_WRITE_4(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CAS_BARRIER(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cas_bitwait(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @device_printf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @if_foreach_llmaddr(ptr noundef, i32 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, !11, i64 8}
!7 = !{!"cas_softc", !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 = !{!8, !8, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!7, !8, i64 4}
!15 = !{!16, !8, i64 0}
!16 = !{!"ifnet", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_dev_cas_extr_if_cas.c_cas_setladrf |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/bfa/extr_bfa_svc.c_bfa_sgpg_detach.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/bfa/extr_bfa_svc.c_bfa_sgpg_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @bfa_sgpg_detach], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @bfa_sgpg_detach(ptr nocapture readnone %0) #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/fastsocket/kernel/drivers/scsi/bfa/extr_bfa_svc.c_bfa_sgpg_detach.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/bfa/extr_bfa_svc.c_bfa_sgpg_detach.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 @bfa_sgpg_detach], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @bfa_sgpg_detach(ptr nocapture readnone %0) #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)"}
| fastsocket_kernel_drivers_scsi_bfa_extr_bfa_svc.c_bfa_sgpg_detach |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_tvaudio.c_tda9840_checkit.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_tvaudio.c_tda9840_checkit.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 @tda9840_checkit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @tda9840_checkit(ptr noundef %0) #0 {
%2 = tail call i32 @chip_read(ptr noundef %0) #2
%3 = and i32 %2, 31
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
declare i32 @chip_read(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/drivers/media/video/extr_tvaudio.c_tda9840_checkit.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_tvaudio.c_tda9840_checkit.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 @tda9840_checkit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @tda9840_checkit(ptr noundef %0) #0 {
%2 = tail call i32 @chip_read(ptr noundef %0) #2
%3 = and i32 %2, 31
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
declare i32 @chip_read(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_drivers_media_video_extr_tvaudio.c_tda9840_checkit |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_uvd_v1_0.c_uvd_v1_0_fence_emit.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_uvd_v1_0.c_uvd_v1_0_fence_emit.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 { ptr, ptr }
%struct.radeon_ring = type { i32 }
%struct.TYPE_2__ = type { i32 }
%struct.radeon_fence = type { i64, i32 }
@UVD_GPCOM_VCPU_DATA0 = dso_local local_unnamed_addr global i32 0, align 4
@UVD_GPCOM_VCPU_DATA1 = dso_local local_unnamed_addr global i32 0, align 4
@UVD_GPCOM_VCPU_CMD = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @uvd_v1_0_fence_emit(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.radeon_device, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i64, ptr %1, align 8, !tbaa !10
%6 = getelementptr inbounds %struct.radeon_ring, ptr %4, i64 %5
%7 = load ptr, ptr %0, align 8, !tbaa !14
%8 = getelementptr inbounds %struct.TYPE_2__, ptr %7, i64 %5
%9 = load i32, ptr %8, align 4, !tbaa !15
%10 = load i32, ptr @UVD_GPCOM_VCPU_DATA0, align 4, !tbaa !17
%11 = tail call i32 @PACKET0(i32 noundef %10, i32 noundef 0) #2
%12 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %11) #2
%13 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %9) #2
%14 = load i32, ptr @UVD_GPCOM_VCPU_DATA1, align 4, !tbaa !17
%15 = tail call i32 @PACKET0(i32 noundef %14, i32 noundef 0) #2
%16 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %15) #2
%17 = getelementptr inbounds %struct.radeon_fence, ptr %1, i64 0, i32 1
%18 = load i32, ptr %17, align 8, !tbaa !18
%19 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %18) #2
%20 = load i32, ptr @UVD_GPCOM_VCPU_CMD, align 4, !tbaa !17
%21 = tail call i32 @PACKET0(i32 noundef %20, i32 noundef 0) #2
%22 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %21) #2
%23 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef 0) #2
%24 = load i32, ptr @UVD_GPCOM_VCPU_DATA0, align 4, !tbaa !17
%25 = tail call i32 @PACKET0(i32 noundef %24, i32 noundef 0) #2
%26 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %25) #2
%27 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef 0) #2
%28 = load i32, ptr @UVD_GPCOM_VCPU_DATA1, align 4, !tbaa !17
%29 = tail call i32 @PACKET0(i32 noundef %28, i32 noundef 0) #2
%30 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %29) #2
%31 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef 0) #2
%32 = load i32, ptr @UVD_GPCOM_VCPU_CMD, align 4, !tbaa !17
%33 = tail call i32 @PACKET0(i32 noundef %32, i32 noundef 0) #2
%34 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %33) #2
%35 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef 2) #2
ret void
}
declare i32 @radeon_ring_write(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PACKET0(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 = !{!"radeon_device", !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, !12, i64 0}
!11 = !{!"radeon_fence", !12, i64 0, !13, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"TYPE_2__", !13, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!11, !13, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_uvd_v1_0.c_uvd_v1_0_fence_emit.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_uvd_v1_0.c_uvd_v1_0_fence_emit.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 }
%struct.TYPE_2__ = type { i32 }
@UVD_GPCOM_VCPU_DATA0 = common local_unnamed_addr global i32 0, align 4
@UVD_GPCOM_VCPU_DATA1 = common local_unnamed_addr global i32 0, align 4
@UVD_GPCOM_VCPU_CMD = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @uvd_v1_0_fence_emit(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i64, ptr %1, align 8, !tbaa !11
%6 = getelementptr inbounds %struct.radeon_ring, ptr %4, i64 %5
%7 = load ptr, ptr %0, align 8, !tbaa !15
%8 = getelementptr inbounds %struct.TYPE_2__, ptr %7, i64 %5
%9 = load i32, ptr %8, align 4, !tbaa !16
%10 = load i32, ptr @UVD_GPCOM_VCPU_DATA0, align 4, !tbaa !18
%11 = tail call i32 @PACKET0(i32 noundef %10, i32 noundef 0) #2
%12 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %11) #2
%13 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %9) #2
%14 = load i32, ptr @UVD_GPCOM_VCPU_DATA1, align 4, !tbaa !18
%15 = tail call i32 @PACKET0(i32 noundef %14, i32 noundef 0) #2
%16 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %15) #2
%17 = getelementptr inbounds i8, ptr %1, i64 8
%18 = load i32, ptr %17, align 8, !tbaa !19
%19 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %18) #2
%20 = load i32, ptr @UVD_GPCOM_VCPU_CMD, align 4, !tbaa !18
%21 = tail call i32 @PACKET0(i32 noundef %20, i32 noundef 0) #2
%22 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %21) #2
%23 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef 0) #2
%24 = load i32, ptr @UVD_GPCOM_VCPU_DATA0, align 4, !tbaa !18
%25 = tail call i32 @PACKET0(i32 noundef %24, i32 noundef 0) #2
%26 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %25) #2
%27 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef 0) #2
%28 = load i32, ptr @UVD_GPCOM_VCPU_DATA1, align 4, !tbaa !18
%29 = tail call i32 @PACKET0(i32 noundef %28, i32 noundef 0) #2
%30 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %29) #2
%31 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef 0) #2
%32 = load i32, ptr @UVD_GPCOM_VCPU_CMD, align 4, !tbaa !18
%33 = tail call i32 @PACKET0(i32 noundef %32, i32 noundef 0) #2
%34 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef %33) #2
%35 = tail call i32 @radeon_ring_write(ptr noundef %6, i32 noundef 2) #2
ret void
}
declare i32 @radeon_ring_write(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PACKET0(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 = !{!"radeon_device", !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, !13, i64 0}
!12 = !{!"radeon_fence", !13, i64 0, !14, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"TYPE_2__", !14, i64 0}
!18 = !{!14, !14, i64 0}
!19 = !{!12, !14, i64 8}
| linux_drivers_gpu_drm_radeon_extr_uvd_v1_0.c_uvd_v1_0_fence_emit |
; ModuleID = 'AnghaBench/darwin-xnu/osfmk/i386/extr_locks_i386.c_lck_spin_try_lock.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/i386/extr_locks_i386.c_lck_spin_try_lock.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"
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i64 @lck_spin_try_lock(ptr noundef %0) local_unnamed_addr #0 {
%2 = ptrtoint ptr %0 to i64
%3 = trunc i64 %2 to i32
%4 = tail call i32 @usimple_lock_try(i32 noundef %3) #2
%5 = sext i32 %4 to i64
ret i64 %5
}
declare i32 @usimple_lock_try(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/darwin-xnu/osfmk/i386/extr_locks_i386.c_lck_spin_try_lock.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/i386/extr_locks_i386.c_lck_spin_try_lock.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FALSE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i64 -2147483648, 2147483648) i64 @lck_spin_try_lock(ptr noundef %0) local_unnamed_addr #0 {
%2 = ptrtoint ptr %0 to i64
%3 = trunc i64 %2 to i32
%4 = tail call i32 @usimple_lock_try(i32 noundef %3) #2
%5 = sext i32 %4 to i64
ret i64 %5
}
declare i32 @usimple_lock_try(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)"}
| darwin-xnu_osfmk_i386_extr_locks_i386.c_lck_spin_try_lock |
; ModuleID = 'AnghaBench/linux/net/nfc/nci/extr_..nfc.h_nfc_device_iter_exit.c'
source_filename = "AnghaBench/linux/net/nfc/nci/extr_..nfc.h_nfc_device_iter_exit.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 @nfc_device_iter_exit], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @nfc_device_iter_exit(ptr noundef %0) #0 {
%2 = tail call i32 @class_dev_iter_exit(ptr noundef %0) #2
ret void
}
declare i32 @class_dev_iter_exit(ptr 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/net/nfc/nci/extr_..nfc.h_nfc_device_iter_exit.c'
source_filename = "AnghaBench/linux/net/nfc/nci/extr_..nfc.h_nfc_device_iter_exit.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 @nfc_device_iter_exit], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @nfc_device_iter_exit(ptr noundef %0) #0 {
%2 = tail call i32 @class_dev_iter_exit(ptr noundef %0) #2
ret void
}
declare i32 @class_dev_iter_exit(ptr 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_net_nfc_nci_extr_..nfc.h_nfc_device_iter_exit |
; ModuleID = 'AnghaBench/linux/samples/bpf/extr_xdpsock_user.c_int_exit.c'
source_filename = "AnghaBench/linux/samples/bpf/extr_xdpsock_user.c_int_exit.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 }
@xsks = dso_local local_unnamed_addr global ptr null, align 8
@EXIT_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @int_exit], section "llvm.metadata"
; Function Attrs: noreturn nounwind uwtable
define internal void @int_exit(i32 %0) #0 {
%2 = load ptr, ptr @xsks, align 8, !tbaa !5
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !9
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = tail call i32 (...) @dump_stats() #3
%8 = load ptr, ptr @xsks, align 8, !tbaa !5
%9 = load ptr, ptr %8, align 8, !tbaa !5
%10 = load i32, ptr %9, align 8, !tbaa !14
%11 = tail call i32 @xsk_socket__delete(i32 noundef %10) #3
%12 = tail call i32 @xsk_umem__delete(ptr noundef %6) #3
%13 = tail call i32 (...) @remove_xdp_program() #3
%14 = load i32, ptr @EXIT_SUCCESS, align 4, !tbaa !15
%15 = tail call i32 @exit(i32 noundef %14) #4
unreachable
}
declare i32 @dump_stats(...) local_unnamed_addr #1
declare i32 @xsk_socket__delete(i32 noundef) local_unnamed_addr #1
declare i32 @xsk_umem__delete(ptr noundef) local_unnamed_addr #1
declare i32 @remove_xdp_program(...) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 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 = !{!"TYPE_4__", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"TYPE_3__", !6, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/samples/bpf/extr_xdpsock_user.c_int_exit.c'
source_filename = "AnghaBench/linux/samples/bpf/extr_xdpsock_user.c_int_exit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@xsks = common local_unnamed_addr global ptr null, align 8
@EXIT_SUCCESS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @int_exit], section "llvm.metadata"
; Function Attrs: noreturn nounwind ssp uwtable(sync)
define internal void @int_exit(i32 %0) #0 {
%2 = load ptr, ptr @xsks, align 8, !tbaa !6
%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 !10
%6 = load ptr, ptr %5, align 8, !tbaa !13
%7 = tail call i32 @dump_stats() #3
%8 = load ptr, ptr @xsks, align 8, !tbaa !6
%9 = load ptr, ptr %8, align 8, !tbaa !6
%10 = load i32, ptr %9, align 8, !tbaa !15
%11 = tail call i32 @xsk_socket__delete(i32 noundef %10) #3
%12 = tail call i32 @xsk_umem__delete(ptr noundef %6) #3
%13 = tail call i32 @remove_xdp_program() #3
%14 = load i32, ptr @EXIT_SUCCESS, align 4, !tbaa !16
%15 = tail call i32 @exit(i32 noundef %14) #4
unreachable
}
declare i32 @dump_stats(...) local_unnamed_addr #1
declare i32 @xsk_socket__delete(i32 noundef) local_unnamed_addr #1
declare i32 @xsk_umem__delete(ptr noundef) local_unnamed_addr #1
declare i32 @remove_xdp_program(...) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
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 = { noreturn "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 }
attributes #4 = { noreturn 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 = !{!"TYPE_4__", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_3__", !7, i64 0}
!15 = !{!11, !12, i64 0}
!16 = !{!12, !12, i64 0}
| linux_samples_bpf_extr_xdpsock_user.c_int_exit |
; ModuleID = 'AnghaBench/freebsd/contrib/libevent/test/extr_regress_http.c_http_close_detection_delay_test.c'
source_filename = "AnghaBench/freebsd/contrib/libevent/test/extr_regress_http.c_http_close_detection_delay_test.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 @http_close_detection_delay_test], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @http_close_detection_delay_test(ptr noundef %0) #0 {
%2 = tail call i32 @http_close_detection_(ptr noundef %0, i32 noundef 1) #2
ret void
}
declare i32 @http_close_detection_(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/freebsd/contrib/libevent/test/extr_regress_http.c_http_close_detection_delay_test.c'
source_filename = "AnghaBench/freebsd/contrib/libevent/test/extr_regress_http.c_http_close_detection_delay_test.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 @http_close_detection_delay_test], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @http_close_detection_delay_test(ptr noundef %0) #0 {
%2 = tail call i32 @http_close_detection_(ptr noundef %0, i32 noundef 1) #2
ret void
}
declare i32 @http_close_detection_(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)"}
| freebsd_contrib_libevent_test_extr_regress_http.c_http_close_detection_delay_test |
; ModuleID = 'AnghaBench/xLua/build/luajit-2.1.0b3/src/extr_lj_record.c_lj_record_call.c'
source_filename = "AnghaBench/xLua/build/luajit-2.1.0b3/src/extr_lj_record.c_lj_record_call.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, i32, i32 }
@LJ_FR2 = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @lj_record_call(ptr noundef %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @rec_call_setup(ptr noundef %0, i64 noundef %1, i32 noundef %2) #2
%5 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = add nsw i32 %6, 1
store i32 %7, ptr %5, align 4, !tbaa !5
%8 = add nsw i64 %1, 1
%9 = load i64, ptr @LJ_FR2, align 8, !tbaa !10
%10 = add nsw i64 %8, %9
%11 = trunc i64 %10 to i32
%12 = load <2 x i32>, ptr %0, align 4, !tbaa !12
%13 = insertelement <2 x i32> poison, i32 %11, i64 0
%14 = shufflevector <2 x i32> %13, <2 x i32> poison, <2 x i32> zeroinitializer
%15 = add <2 x i32> %12, %14
store <2 x i32> %15, ptr %0, align 4, !tbaa !12
ret void
}
declare i32 @rec_call_setup(ptr noundef, i64 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 4, !7, i64 8}
!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 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/xLua/build/luajit-2.1.0b3/src/extr_lj_record.c_lj_record_call.c'
source_filename = "AnghaBench/xLua/build/luajit-2.1.0b3/src/extr_lj_record.c_lj_record_call.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LJ_FR2 = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @lj_record_call(ptr noundef %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @rec_call_setup(ptr noundef %0, i64 noundef %1, i32 noundef %2) #2
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = add nsw i32 %6, 1
store i32 %7, ptr %5, align 4, !tbaa !6
%8 = add nsw i64 %1, 1
%9 = load i64, ptr @LJ_FR2, align 8, !tbaa !11
%10 = add nsw i64 %8, %9
%11 = trunc i64 %10 to i32
%12 = load <2 x i32>, ptr %0, align 4, !tbaa !13
%13 = insertelement <2 x i32> poison, i32 %11, i64 0
%14 = shufflevector <2 x i32> %13, <2 x i32> poison, <2 x i32> zeroinitializer
%15 = add <2 x i32> %12, %14
store <2 x i32> %15, ptr %0, align 4, !tbaa !13
ret void
}
declare i32 @rec_call_setup(ptr noundef, i64 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 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!8, !8, i64 0}
| xLua_build_luajit-2.1.0b3_src_extr_lj_record.c_lj_record_call |
; ModuleID = 'AnghaBench/jemalloc/src/extr_hook.c_hook_reentrantp.c'
source_filename = "AnghaBench/jemalloc/src/extr_hook.c_hook_reentrantp.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"
@hook_reentrantp.in_hook_global = internal global i32 1, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hook_reentrantp], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal nonnull ptr @hook_reentrantp() #0 {
%1 = tail call ptr (...) @tsdn_fetch() #2
%2 = tail call ptr @tsdn_tcachep_get(ptr noundef %1) #2
%3 = icmp eq ptr %2, null
%4 = select i1 %3, ptr @hook_reentrantp.in_hook_global, ptr %2
ret ptr %4
}
declare ptr @tsdn_fetch(...) local_unnamed_addr #1
declare ptr @tsdn_tcachep_get(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/jemalloc/src/extr_hook.c_hook_reentrantp.c'
source_filename = "AnghaBench/jemalloc/src/extr_hook.c_hook_reentrantp.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@hook_reentrantp.in_hook_global = internal global i32 1, align 4
@llvm.used = appending global [1 x ptr] [ptr @hook_reentrantp], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @hook_reentrantp() #0 {
%1 = tail call ptr @tsdn_fetch() #2
%2 = tail call ptr @tsdn_tcachep_get(ptr noundef %1) #2
%3 = icmp eq ptr %2, null
%4 = select i1 %3, ptr @hook_reentrantp.in_hook_global, ptr %2
ret ptr %4
}
declare ptr @tsdn_fetch(...) local_unnamed_addr #1
declare ptr @tsdn_tcachep_get(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)"}
| jemalloc_src_extr_hook.c_hook_reentrantp |
; ModuleID = 'AnghaBench/RetroArch/libretro-common/formats/json/extr_jsonsax_full.c_EncodeCodepoint.c'
source_filename = "AnghaBench/RetroArch/libretro-common/formats/json/extr_jsonsax_full.c_EncodeCodepoint.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"
@FIRST_2_BYTE_UTF8_CODEPOINT = dso_local local_unnamed_addr global i32 0, align 4
@FIRST_3_BYTE_UTF8_CODEPOINT = dso_local local_unnamed_addr global i32 0, align 4
@FIRST_4_BYTE_UTF8_CODEPOINT = dso_local local_unnamed_addr global i32 0, align 4
@FIRST_NON_BMP_CODEPOINT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @EncodeCodepoint], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i64 @EncodeCodepoint(i32 noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) #0 {
switch i32 %1, label %85 [
i32 128, label %4
i32 131, label %43
i32 132, label %57
i32 129, label %71
i32 130, label %78
]
4: ; preds = %3
%5 = load i32, ptr @FIRST_2_BYTE_UTF8_CODEPOINT, align 4, !tbaa !5
%6 = icmp sgt i32 %5, %0
br i1 %6, label %7, label %8
7: ; preds = %4
store i32 %0, ptr %2, align 4, !tbaa !5
br label %85
8: ; preds = %4
%9 = load i32, ptr @FIRST_3_BYTE_UTF8_CODEPOINT, align 4, !tbaa !5
%10 = icmp sgt i32 %9, %0
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = ashr i32 %0, 6
%13 = or i32 %12, 192
store i32 %13, ptr %2, align 4, !tbaa !5
%14 = tail call i32 @BOTTOM_6_BITS(i32 noundef %0) #2
%15 = or i32 %14, 128
%16 = getelementptr inbounds i32, ptr %2, i64 1
store i32 %15, ptr %16, align 4, !tbaa !5
br label %85
17: ; preds = %8
%18 = load i32, ptr @FIRST_4_BYTE_UTF8_CODEPOINT, align 4, !tbaa !5
%19 = icmp sgt i32 %18, %0
%20 = getelementptr inbounds i32, ptr %2, i64 1
br i1 %19, label %21, label %30
21: ; preds = %17
%22 = ashr i32 %0, 12
%23 = or i32 %22, 224
store i32 %23, ptr %2, align 4, !tbaa !5
%24 = ashr i32 %0, 6
%25 = tail call i32 @BOTTOM_6_BITS(i32 noundef %24) #2
%26 = or i32 %25, 128
store i32 %26, ptr %20, align 4, !tbaa !5
%27 = tail call i32 @BOTTOM_6_BITS(i32 noundef %0) #2
%28 = or i32 %27, 128
%29 = getelementptr inbounds i32, ptr %2, i64 2
store i32 %28, ptr %29, align 4, !tbaa !5
br label %85
30: ; preds = %17
%31 = ashr i32 %0, 18
%32 = or i32 %31, 240
store i32 %32, ptr %2, align 4, !tbaa !5
%33 = ashr i32 %0, 12
%34 = tail call i32 @BOTTOM_6_BITS(i32 noundef %33) #2
%35 = or i32 %34, 128
store i32 %35, ptr %20, align 4, !tbaa !5
%36 = ashr i32 %0, 6
%37 = tail call i32 @BOTTOM_6_BITS(i32 noundef %36) #2
%38 = or i32 %37, 128
%39 = getelementptr inbounds i32, ptr %2, i64 2
store i32 %38, ptr %39, align 4, !tbaa !5
%40 = tail call i32 @BOTTOM_6_BITS(i32 noundef %0) #2
%41 = or i32 %40, 128
%42 = getelementptr inbounds i32, ptr %2, i64 3
store i32 %41, ptr %42, align 4, !tbaa !5
br label %85
43: ; preds = %3
%44 = load i32, ptr @FIRST_NON_BMP_CODEPOINT, align 4, !tbaa !5
%45 = icmp sgt i32 %44, %0
br i1 %45, label %46, label %49
46: ; preds = %43
store i32 %0, ptr %2, align 4, !tbaa !5
%47 = ashr i32 %0, 8
%48 = getelementptr inbounds i32, ptr %2, i64 1
store i32 %47, ptr %48, align 4, !tbaa !5
br label %85
49: ; preds = %43
%50 = tail call i32 @SURROGATES_FROM_CODEPOINT(i32 noundef %0) #2
%51 = ashr i32 %50, 16
store i32 %51, ptr %2, align 4, !tbaa !5
%52 = ashr i32 %50, 24
%53 = getelementptr inbounds i32, ptr %2, i64 1
store i32 %52, ptr %53, align 4, !tbaa !5
%54 = getelementptr inbounds i32, ptr %2, i64 2
store i32 %50, ptr %54, align 4, !tbaa !5
%55 = ashr i32 %50, 8
%56 = getelementptr inbounds i32, ptr %2, i64 3
store i32 %55, ptr %56, align 4, !tbaa !5
br label %85
57: ; preds = %3
%58 = load i32, ptr @FIRST_NON_BMP_CODEPOINT, align 4, !tbaa !5
%59 = icmp sgt i32 %58, %0
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = getelementptr inbounds i32, ptr %2, i64 1
store i32 %0, ptr %61, align 4, !tbaa !5
%62 = ashr i32 %0, 8
store i32 %62, ptr %2, align 4, !tbaa !5
br label %85
63: ; preds = %57
%64 = tail call i32 @SURROGATES_FROM_CODEPOINT(i32 noundef %0) #2
%65 = ashr i32 %64, 16
%66 = getelementptr inbounds i32, ptr %2, i64 1
store i32 %65, ptr %66, align 4, !tbaa !5
%67 = ashr i32 %64, 24
store i32 %67, ptr %2, align 4, !tbaa !5
%68 = getelementptr inbounds i32, ptr %2, i64 3
store i32 %64, ptr %68, align 4, !tbaa !5
%69 = ashr i32 %64, 8
%70 = getelementptr inbounds i32, ptr %2, i64 2
store i32 %69, ptr %70, align 4, !tbaa !5
br label %85
71: ; preds = %3
store i32 %0, ptr %2, align 4, !tbaa !5
%72 = ashr i32 %0, 8
%73 = getelementptr inbounds i32, ptr %2, i64 1
store i32 %72, ptr %73, align 4, !tbaa !5
%74 = ashr i32 %0, 16
%75 = getelementptr inbounds i32, ptr %2, i64 2
store i32 %74, ptr %75, align 4, !tbaa !5
%76 = ashr i32 %0, 24
%77 = getelementptr inbounds i32, ptr %2, i64 3
store i32 %76, ptr %77, align 4, !tbaa !5
br label %85
78: ; preds = %3
%79 = getelementptr inbounds i32, ptr %2, i64 3
store i32 %0, ptr %79, align 4, !tbaa !5
%80 = ashr i32 %0, 8
%81 = getelementptr inbounds i32, ptr %2, i64 2
store i32 %80, ptr %81, align 4, !tbaa !5
%82 = ashr i32 %0, 16
%83 = getelementptr inbounds i32, ptr %2, i64 1
store i32 %82, ptr %83, align 4, !tbaa !5
%84 = ashr i32 %0, 24
store i32 %84, ptr %2, align 4, !tbaa !5
br label %85
85: ; preds = %60, %63, %46, %49, %7, %21, %30, %11, %3, %78, %71
%86 = phi i64 [ 0, %3 ], [ 4, %78 ], [ 4, %71 ], [ 2, %60 ], [ 4, %63 ], [ 2, %46 ], [ 4, %49 ], [ 1, %7 ], [ 2, %11 ], [ 3, %21 ], [ 4, %30 ]
ret i64 %86
}
declare i32 @BOTTOM_6_BITS(i32 noundef) local_unnamed_addr #1
declare i32 @SURROGATES_FROM_CODEPOINT(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/RetroArch/libretro-common/formats/json/extr_jsonsax_full.c_EncodeCodepoint.c'
source_filename = "AnghaBench/RetroArch/libretro-common/formats/json/extr_jsonsax_full.c_EncodeCodepoint.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FIRST_2_BYTE_UTF8_CODEPOINT = common local_unnamed_addr global i32 0, align 4
@FIRST_3_BYTE_UTF8_CODEPOINT = common local_unnamed_addr global i32 0, align 4
@FIRST_4_BYTE_UTF8_CODEPOINT = common local_unnamed_addr global i32 0, align 4
@FIRST_NON_BMP_CODEPOINT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @EncodeCodepoint], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i64 0, 5) i64 @EncodeCodepoint(i32 noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) #0 {
switch i32 %1, label %85 [
i32 128, label %4
i32 131, label %43
i32 132, label %57
i32 129, label %71
i32 130, label %78
]
4: ; preds = %3
%5 = load i32, ptr @FIRST_2_BYTE_UTF8_CODEPOINT, align 4, !tbaa !6
%6 = icmp sgt i32 %5, %0
br i1 %6, label %7, label %8
7: ; preds = %4
store i32 %0, ptr %2, align 4, !tbaa !6
br label %85
8: ; preds = %4
%9 = load i32, ptr @FIRST_3_BYTE_UTF8_CODEPOINT, align 4, !tbaa !6
%10 = icmp sgt i32 %9, %0
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = ashr i32 %0, 6
%13 = or i32 %12, 192
store i32 %13, ptr %2, align 4, !tbaa !6
%14 = tail call i32 @BOTTOM_6_BITS(i32 noundef %0) #2
%15 = or i32 %14, 128
%16 = getelementptr inbounds i8, ptr %2, i64 4
store i32 %15, ptr %16, align 4, !tbaa !6
br label %85
17: ; preds = %8
%18 = load i32, ptr @FIRST_4_BYTE_UTF8_CODEPOINT, align 4, !tbaa !6
%19 = icmp sgt i32 %18, %0
%20 = getelementptr inbounds i8, ptr %2, i64 4
br i1 %19, label %21, label %30
21: ; preds = %17
%22 = ashr i32 %0, 12
%23 = or i32 %22, 224
store i32 %23, ptr %2, align 4, !tbaa !6
%24 = ashr i32 %0, 6
%25 = tail call i32 @BOTTOM_6_BITS(i32 noundef %24) #2
%26 = or i32 %25, 128
store i32 %26, ptr %20, align 4, !tbaa !6
%27 = tail call i32 @BOTTOM_6_BITS(i32 noundef %0) #2
%28 = or i32 %27, 128
%29 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %28, ptr %29, align 4, !tbaa !6
br label %85
30: ; preds = %17
%31 = ashr i32 %0, 18
%32 = or i32 %31, 240
store i32 %32, ptr %2, align 4, !tbaa !6
%33 = ashr i32 %0, 12
%34 = tail call i32 @BOTTOM_6_BITS(i32 noundef %33) #2
%35 = or i32 %34, 128
store i32 %35, ptr %20, align 4, !tbaa !6
%36 = ashr i32 %0, 6
%37 = tail call i32 @BOTTOM_6_BITS(i32 noundef %36) #2
%38 = or i32 %37, 128
%39 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %38, ptr %39, align 4, !tbaa !6
%40 = tail call i32 @BOTTOM_6_BITS(i32 noundef %0) #2
%41 = or i32 %40, 128
%42 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %41, ptr %42, align 4, !tbaa !6
br label %85
43: ; preds = %3
%44 = load i32, ptr @FIRST_NON_BMP_CODEPOINT, align 4, !tbaa !6
%45 = icmp sgt i32 %44, %0
br i1 %45, label %46, label %49
46: ; preds = %43
store i32 %0, ptr %2, align 4, !tbaa !6
%47 = ashr i32 %0, 8
%48 = getelementptr inbounds i8, ptr %2, i64 4
store i32 %47, ptr %48, align 4, !tbaa !6
br label %85
49: ; preds = %43
%50 = tail call i32 @SURROGATES_FROM_CODEPOINT(i32 noundef %0) #2
%51 = insertelement <2 x i32> poison, i32 %50, i64 0
%52 = shufflevector <2 x i32> %51, <2 x i32> poison, <2 x i32> zeroinitializer
%53 = ashr <2 x i32> %52, <i32 16, i32 24>
store <2 x i32> %53, ptr %2, align 4, !tbaa !6
%54 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %50, ptr %54, align 4, !tbaa !6
%55 = ashr i32 %50, 8
%56 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %55, ptr %56, align 4, !tbaa !6
br label %85
57: ; preds = %3
%58 = load i32, ptr @FIRST_NON_BMP_CODEPOINT, align 4, !tbaa !6
%59 = icmp sgt i32 %58, %0
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = getelementptr inbounds i8, ptr %2, i64 4
store i32 %0, ptr %61, align 4, !tbaa !6
%62 = ashr i32 %0, 8
store i32 %62, ptr %2, align 4, !tbaa !6
br label %85
63: ; preds = %57
%64 = tail call i32 @SURROGATES_FROM_CODEPOINT(i32 noundef %0) #2
%65 = insertelement <2 x i32> poison, i32 %64, i64 0
%66 = shufflevector <2 x i32> %65, <2 x i32> poison, <2 x i32> zeroinitializer
%67 = ashr <2 x i32> %66, <i32 24, i32 16>
store <2 x i32> %67, ptr %2, align 4, !tbaa !6
%68 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %64, ptr %68, align 4, !tbaa !6
%69 = ashr i32 %64, 8
%70 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %69, ptr %70, align 4, !tbaa !6
br label %85
71: ; preds = %3
store i32 %0, ptr %2, align 4, !tbaa !6
%72 = insertelement <2 x i32> poison, i32 %0, i64 0
%73 = shufflevector <2 x i32> %72, <2 x i32> poison, <2 x i32> zeroinitializer
%74 = ashr <2 x i32> %73, <i32 8, i32 16>
%75 = getelementptr inbounds i8, ptr %2, i64 4
store <2 x i32> %74, ptr %75, align 4, !tbaa !6
%76 = ashr i32 %0, 24
%77 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %76, ptr %77, align 4, !tbaa !6
br label %85
78: ; preds = %3
%79 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %0, ptr %79, align 4, !tbaa !6
%80 = ashr i32 %0, 8
%81 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %80, ptr %81, align 4, !tbaa !6
%82 = insertelement <2 x i32> poison, i32 %0, i64 0
%83 = shufflevector <2 x i32> %82, <2 x i32> poison, <2 x i32> zeroinitializer
%84 = ashr <2 x i32> %83, <i32 24, i32 16>
store <2 x i32> %84, ptr %2, align 4, !tbaa !6
br label %85
85: ; preds = %60, %63, %46, %49, %7, %21, %30, %11, %3, %78, %71
%86 = phi i64 [ 0, %3 ], [ 4, %78 ], [ 4, %71 ], [ 2, %60 ], [ 4, %63 ], [ 2, %46 ], [ 4, %49 ], [ 1, %7 ], [ 2, %11 ], [ 3, %21 ], [ 4, %30 ]
ret i64 %86
}
declare i32 @BOTTOM_6_BITS(i32 noundef) local_unnamed_addr #1
declare i32 @SURROGATES_FROM_CODEPOINT(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"}
| RetroArch_libretro-common_formats_json_extr_jsonsax_full.c_EncodeCodepoint |
; ModuleID = 'AnghaBench/linux/drivers/media/platform/sti/bdisp/extr_bdisp-debug.c_regs_show.c'
source_filename = "AnghaBench/linux/drivers/media/platform/sti/bdisp/extr_bdisp-debug.c_regs_show.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.bdisp_dev = type { i32, i64 }
@.str = private unnamed_addr constant [19 x i8] c"Cannot wake up IP\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Reg @ = 0x%p\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"\0AStatic:\0A\00", align 1
@BLT_CTL = dso_local local_unnamed_addr global i32 0, align 4
@BLT_ITS = dso_local local_unnamed_addr global i32 0, align 4
@BLT_STA1 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_AQ1_CTL = dso_local local_unnamed_addr global i32 0, align 4
@BLT_AQ1_IP = dso_local local_unnamed_addr global i32 0, align 4
@BLT_AQ1_LNA = dso_local local_unnamed_addr global i32 0, align 4
@BLT_AQ1_STA = dso_local local_unnamed_addr global i32 0, align 4
@BLT_ITM0 = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"\0APlugs:\0A\00", align 1
@BLT_PLUGS1_OP2 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS1_CHZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS1_MSZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS1_PGZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS2_OP2 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS2_CHZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS2_MSZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS2_PGZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS3_OP2 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS3_CHZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS3_MSZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGS3_PGZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGT_OP2 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGT_CHZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGT_MSZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_PLUGT_PGZ = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [8 x i8] c"\0ANode:\0A\00", align 1
@BLT_NIP = dso_local local_unnamed_addr global i32 0, align 4
@BLT_CIC = dso_local local_unnamed_addr global i32 0, align 4
@BLT_INS = dso_local local_unnamed_addr global i32 0, align 4
@BLT_ACK = dso_local local_unnamed_addr global i32 0, align 4
@BLT_TBA = dso_local local_unnamed_addr global i32 0, align 4
@BLT_TTY = dso_local local_unnamed_addr global i32 0, align 4
@BLT_TXY = dso_local local_unnamed_addr global i32 0, align 4
@BLT_TSZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S1BA = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S1TY = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S1XY = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S2BA = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S2TY = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S2XY = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S2SZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S3BA = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S3TY = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S3XY = dso_local local_unnamed_addr global i32 0, align 4
@BLT_S3SZ = dso_local local_unnamed_addr global i32 0, align 4
@BLT_FCTL = dso_local local_unnamed_addr global i32 0, align 4
@BLT_RSF = dso_local local_unnamed_addr global i32 0, align 4
@BLT_RZI = dso_local local_unnamed_addr global i32 0, align 4
@BLT_HFP = dso_local local_unnamed_addr global i32 0, align 4
@BLT_VFP = dso_local local_unnamed_addr global i32 0, align 4
@BLT_Y_RSF = dso_local local_unnamed_addr global i32 0, align 4
@BLT_Y_RZI = dso_local local_unnamed_addr global i32 0, align 4
@BLT_Y_HFP = dso_local local_unnamed_addr global i32 0, align 4
@BLT_Y_VFP = dso_local local_unnamed_addr global i32 0, align 4
@BLT_IVMX0 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_IVMX1 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_IVMX2 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_IVMX3 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_OVMX0 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_OVMX1 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_OVMX2 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_OVMX3 = dso_local local_unnamed_addr global i32 0, align 4
@BLT_DEI = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [10 x i8] c"\0AFilter:\0A\00", align 1
@BLT_NB_H_COEF = dso_local local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [19 x i8] c"BLT_HFC%d \090x%08X\0A\00", align 1
@BLT_HFC_N = dso_local local_unnamed_addr global i64 0, align 8
@BLT_NB_V_COEF = dso_local local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [19 x i8] c"BLT_VFC%d \090x%08X\0A\00", align 1
@BLT_VFC_N = dso_local local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [15 x i8] c"\0ALuma filter:\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"BLT_Y_HFC%d \090x%08X\0A\00", align 1
@BLT_Y_HFC_N = dso_local local_unnamed_addr global i64 0, align 8
@.str.10 = private unnamed_addr constant [21 x i8] c"BLT_Y_VFC%d \090x%08X\0A\00", align 1
@BLT_Y_VFC_N = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @regs_show], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @regs_show(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load i32, ptr %3, align 8, !tbaa !10
%5 = tail call i32 @pm_runtime_get_sync(i32 noundef %4) #2
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str) #2
br label %215
9: ; preds = %2
%10 = getelementptr inbounds %struct.bdisp_dev, ptr %3, i64 0, i32 1
%11 = load i64, ptr %10, align 8, !tbaa !14
%12 = trunc i64 %11 to i32
%13 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, i32 noundef %12) #2
%14 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.2) #2
%15 = load i32, ptr @BLT_CTL, align 4, !tbaa !15
%16 = tail call i32 @DUMP(i32 noundef %15) #2
%17 = load i32, ptr @BLT_ITS, align 4, !tbaa !15
%18 = tail call i32 @DUMP(i32 noundef %17) #2
%19 = load i32, ptr @BLT_STA1, align 4, !tbaa !15
%20 = tail call i32 @DUMP(i32 noundef %19) #2
%21 = load i32, ptr @BLT_AQ1_CTL, align 4, !tbaa !15
%22 = tail call i32 @DUMP(i32 noundef %21) #2
%23 = load i32, ptr @BLT_AQ1_IP, align 4, !tbaa !15
%24 = tail call i32 @DUMP(i32 noundef %23) #2
%25 = load i32, ptr @BLT_AQ1_LNA, align 4, !tbaa !15
%26 = tail call i32 @DUMP(i32 noundef %25) #2
%27 = load i32, ptr @BLT_AQ1_STA, align 4, !tbaa !15
%28 = tail call i32 @DUMP(i32 noundef %27) #2
%29 = load i32, ptr @BLT_ITM0, align 4, !tbaa !15
%30 = tail call i32 @DUMP(i32 noundef %29) #2
%31 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #2
%32 = load i32, ptr @BLT_PLUGS1_OP2, align 4, !tbaa !15
%33 = tail call i32 @DUMP(i32 noundef %32) #2
%34 = load i32, ptr @BLT_PLUGS1_CHZ, align 4, !tbaa !15
%35 = tail call i32 @DUMP(i32 noundef %34) #2
%36 = load i32, ptr @BLT_PLUGS1_MSZ, align 4, !tbaa !15
%37 = tail call i32 @DUMP(i32 noundef %36) #2
%38 = load i32, ptr @BLT_PLUGS1_PGZ, align 4, !tbaa !15
%39 = tail call i32 @DUMP(i32 noundef %38) #2
%40 = load i32, ptr @BLT_PLUGS2_OP2, align 4, !tbaa !15
%41 = tail call i32 @DUMP(i32 noundef %40) #2
%42 = load i32, ptr @BLT_PLUGS2_CHZ, align 4, !tbaa !15
%43 = tail call i32 @DUMP(i32 noundef %42) #2
%44 = load i32, ptr @BLT_PLUGS2_MSZ, align 4, !tbaa !15
%45 = tail call i32 @DUMP(i32 noundef %44) #2
%46 = load i32, ptr @BLT_PLUGS2_PGZ, align 4, !tbaa !15
%47 = tail call i32 @DUMP(i32 noundef %46) #2
%48 = load i32, ptr @BLT_PLUGS3_OP2, align 4, !tbaa !15
%49 = tail call i32 @DUMP(i32 noundef %48) #2
%50 = load i32, ptr @BLT_PLUGS3_CHZ, align 4, !tbaa !15
%51 = tail call i32 @DUMP(i32 noundef %50) #2
%52 = load i32, ptr @BLT_PLUGS3_MSZ, align 4, !tbaa !15
%53 = tail call i32 @DUMP(i32 noundef %52) #2
%54 = load i32, ptr @BLT_PLUGS3_PGZ, align 4, !tbaa !15
%55 = tail call i32 @DUMP(i32 noundef %54) #2
%56 = load i32, ptr @BLT_PLUGT_OP2, align 4, !tbaa !15
%57 = tail call i32 @DUMP(i32 noundef %56) #2
%58 = load i32, ptr @BLT_PLUGT_CHZ, align 4, !tbaa !15
%59 = tail call i32 @DUMP(i32 noundef %58) #2
%60 = load i32, ptr @BLT_PLUGT_MSZ, align 4, !tbaa !15
%61 = tail call i32 @DUMP(i32 noundef %60) #2
%62 = load i32, ptr @BLT_PLUGT_PGZ, align 4, !tbaa !15
%63 = tail call i32 @DUMP(i32 noundef %62) #2
%64 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #2
%65 = load i32, ptr @BLT_NIP, align 4, !tbaa !15
%66 = tail call i32 @DUMP(i32 noundef %65) #2
%67 = load i32, ptr @BLT_CIC, align 4, !tbaa !15
%68 = tail call i32 @DUMP(i32 noundef %67) #2
%69 = load i32, ptr @BLT_INS, align 4, !tbaa !15
%70 = tail call i32 @DUMP(i32 noundef %69) #2
%71 = load i32, ptr @BLT_ACK, align 4, !tbaa !15
%72 = tail call i32 @DUMP(i32 noundef %71) #2
%73 = load i32, ptr @BLT_TBA, align 4, !tbaa !15
%74 = tail call i32 @DUMP(i32 noundef %73) #2
%75 = load i32, ptr @BLT_TTY, align 4, !tbaa !15
%76 = tail call i32 @DUMP(i32 noundef %75) #2
%77 = load i32, ptr @BLT_TXY, align 4, !tbaa !15
%78 = tail call i32 @DUMP(i32 noundef %77) #2
%79 = load i32, ptr @BLT_TSZ, align 4, !tbaa !15
%80 = tail call i32 @DUMP(i32 noundef %79) #2
%81 = load i32, ptr @BLT_S1BA, align 4, !tbaa !15
%82 = tail call i32 @DUMP(i32 noundef %81) #2
%83 = load i32, ptr @BLT_S1TY, align 4, !tbaa !15
%84 = tail call i32 @DUMP(i32 noundef %83) #2
%85 = load i32, ptr @BLT_S1XY, align 4, !tbaa !15
%86 = tail call i32 @DUMP(i32 noundef %85) #2
%87 = load i32, ptr @BLT_S2BA, align 4, !tbaa !15
%88 = tail call i32 @DUMP(i32 noundef %87) #2
%89 = load i32, ptr @BLT_S2TY, align 4, !tbaa !15
%90 = tail call i32 @DUMP(i32 noundef %89) #2
%91 = load i32, ptr @BLT_S2XY, align 4, !tbaa !15
%92 = tail call i32 @DUMP(i32 noundef %91) #2
%93 = load i32, ptr @BLT_S2SZ, align 4, !tbaa !15
%94 = tail call i32 @DUMP(i32 noundef %93) #2
%95 = load i32, ptr @BLT_S3BA, align 4, !tbaa !15
%96 = tail call i32 @DUMP(i32 noundef %95) #2
%97 = load i32, ptr @BLT_S3TY, align 4, !tbaa !15
%98 = tail call i32 @DUMP(i32 noundef %97) #2
%99 = load i32, ptr @BLT_S3XY, align 4, !tbaa !15
%100 = tail call i32 @DUMP(i32 noundef %99) #2
%101 = load i32, ptr @BLT_S3SZ, align 4, !tbaa !15
%102 = tail call i32 @DUMP(i32 noundef %101) #2
%103 = load i32, ptr @BLT_FCTL, align 4, !tbaa !15
%104 = tail call i32 @DUMP(i32 noundef %103) #2
%105 = load i32, ptr @BLT_RSF, align 4, !tbaa !15
%106 = tail call i32 @DUMP(i32 noundef %105) #2
%107 = load i32, ptr @BLT_RZI, align 4, !tbaa !15
%108 = tail call i32 @DUMP(i32 noundef %107) #2
%109 = load i32, ptr @BLT_HFP, align 4, !tbaa !15
%110 = tail call i32 @DUMP(i32 noundef %109) #2
%111 = load i32, ptr @BLT_VFP, align 4, !tbaa !15
%112 = tail call i32 @DUMP(i32 noundef %111) #2
%113 = load i32, ptr @BLT_Y_RSF, align 4, !tbaa !15
%114 = tail call i32 @DUMP(i32 noundef %113) #2
%115 = load i32, ptr @BLT_Y_RZI, align 4, !tbaa !15
%116 = tail call i32 @DUMP(i32 noundef %115) #2
%117 = load i32, ptr @BLT_Y_HFP, align 4, !tbaa !15
%118 = tail call i32 @DUMP(i32 noundef %117) #2
%119 = load i32, ptr @BLT_Y_VFP, align 4, !tbaa !15
%120 = tail call i32 @DUMP(i32 noundef %119) #2
%121 = load i32, ptr @BLT_IVMX0, align 4, !tbaa !15
%122 = tail call i32 @DUMP(i32 noundef %121) #2
%123 = load i32, ptr @BLT_IVMX1, align 4, !tbaa !15
%124 = tail call i32 @DUMP(i32 noundef %123) #2
%125 = load i32, ptr @BLT_IVMX2, align 4, !tbaa !15
%126 = tail call i32 @DUMP(i32 noundef %125) #2
%127 = load i32, ptr @BLT_IVMX3, align 4, !tbaa !15
%128 = tail call i32 @DUMP(i32 noundef %127) #2
%129 = load i32, ptr @BLT_OVMX0, align 4, !tbaa !15
%130 = tail call i32 @DUMP(i32 noundef %129) #2
%131 = load i32, ptr @BLT_OVMX1, align 4, !tbaa !15
%132 = tail call i32 @DUMP(i32 noundef %131) #2
%133 = load i32, ptr @BLT_OVMX2, align 4, !tbaa !15
%134 = tail call i32 @DUMP(i32 noundef %133) #2
%135 = load i32, ptr @BLT_OVMX3, align 4, !tbaa !15
%136 = tail call i32 @DUMP(i32 noundef %135) #2
%137 = load i32, ptr @BLT_DEI, align 4, !tbaa !15
%138 = tail call i32 @DUMP(i32 noundef %137) #2
%139 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.5) #2
%140 = load i32, ptr @BLT_NB_H_COEF, align 4, !tbaa !15
%141 = icmp eq i32 %140, 0
br i1 %141, label %142, label %145
142: ; preds = %145, %9
%143 = load i32, ptr @BLT_NB_V_COEF, align 4, !tbaa !15
%144 = icmp eq i32 %143, 0
br i1 %144, label %175, label %160
145: ; preds = %9, %145
%146 = phi i64 [ %156, %145 ], [ 0, %9 ]
%147 = load i64, ptr %10, align 8, !tbaa !14
%148 = load i64, ptr @BLT_HFC_N, align 8, !tbaa !16
%149 = trunc i64 %146 to i32
%150 = shl nuw nsw i64 %146, 2
%151 = and i64 %150, 4294967292
%152 = add i64 %147, %151
%153 = add i64 %152, %148
%154 = tail call i32 @readl(i64 noundef %153) #2
%155 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.6, i32 noundef %149, i32 noundef %154) #2
%156 = add nuw nsw i64 %146, 1
%157 = load i32, ptr @BLT_NB_H_COEF, align 4, !tbaa !15
%158 = zext i32 %157 to i64
%159 = icmp ult i64 %156, %158
br i1 %159, label %145, label %142, !llvm.loop !17
160: ; preds = %142, %160
%161 = phi i64 [ %171, %160 ], [ 0, %142 ]
%162 = load i64, ptr %10, align 8, !tbaa !14
%163 = load i64, ptr @BLT_VFC_N, align 8, !tbaa !16
%164 = trunc i64 %161 to i32
%165 = shl nuw nsw i64 %161, 2
%166 = and i64 %165, 4294967292
%167 = add i64 %162, %166
%168 = add i64 %167, %163
%169 = tail call i32 @readl(i64 noundef %168) #2
%170 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.7, i32 noundef %164, i32 noundef %169) #2
%171 = add nuw nsw i64 %161, 1
%172 = load i32, ptr @BLT_NB_V_COEF, align 4, !tbaa !15
%173 = zext i32 %172 to i64
%174 = icmp ult i64 %171, %173
br i1 %174, label %160, label %175, !llvm.loop !19
175: ; preds = %160, %142
%176 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.8) #2
%177 = load i32, ptr @BLT_NB_H_COEF, align 4, !tbaa !15
%178 = icmp eq i32 %177, 0
br i1 %178, label %179, label %182
179: ; preds = %182, %175
%180 = load i32, ptr @BLT_NB_V_COEF, align 4, !tbaa !15
%181 = icmp eq i32 %180, 0
br i1 %181, label %212, label %197
182: ; preds = %175, %182
%183 = phi i64 [ %193, %182 ], [ 0, %175 ]
%184 = load i64, ptr %10, align 8, !tbaa !14
%185 = load i64, ptr @BLT_Y_HFC_N, align 8, !tbaa !16
%186 = trunc i64 %183 to i32
%187 = shl nuw nsw i64 %183, 2
%188 = and i64 %187, 4294967292
%189 = add i64 %184, %188
%190 = add i64 %189, %185
%191 = tail call i32 @readl(i64 noundef %190) #2
%192 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.9, i32 noundef %186, i32 noundef %191) #2
%193 = add nuw nsw i64 %183, 1
%194 = load i32, ptr @BLT_NB_H_COEF, align 4, !tbaa !15
%195 = zext i32 %194 to i64
%196 = icmp ult i64 %193, %195
br i1 %196, label %182, label %179, !llvm.loop !20
197: ; preds = %179, %197
%198 = phi i64 [ %208, %197 ], [ 0, %179 ]
%199 = load i64, ptr %10, align 8, !tbaa !14
%200 = load i64, ptr @BLT_Y_VFC_N, align 8, !tbaa !16
%201 = trunc i64 %198 to i32
%202 = shl nuw nsw i64 %198, 2
%203 = and i64 %202, 4294967292
%204 = add i64 %199, %203
%205 = add i64 %204, %200
%206 = tail call i32 @readl(i64 noundef %205) #2
%207 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.10, i32 noundef %201, i32 noundef %206) #2
%208 = add nuw nsw i64 %198, 1
%209 = load i32, ptr @BLT_NB_V_COEF, align 4, !tbaa !15
%210 = zext i32 %209 to i64
%211 = icmp ult i64 %208, %210
br i1 %211, label %197, label %212, !llvm.loop !21
212: ; preds = %197, %179
%213 = load i32, ptr %3, align 8, !tbaa !10
%214 = tail call i32 @pm_runtime_put(i32 noundef %213) #2
br label %215
215: ; preds = %212, %7
ret i32 0
}
declare i32 @pm_runtime_get_sync(i32 noundef) local_unnamed_addr #1
declare i32 @seq_puts(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @seq_printf(ptr noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @DUMP(i32 noundef) local_unnamed_addr #1
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i32 @pm_runtime_put(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 = !{!"seq_file", !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 = !{!"bdisp_dev", !12, i64 0, !13, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!11, !13, i64 8}
!15 = !{!12, !12, i64 0}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
| ; ModuleID = 'AnghaBench/linux/drivers/media/platform/sti/bdisp/extr_bdisp-debug.c_regs_show.c'
source_filename = "AnghaBench/linux/drivers/media/platform/sti/bdisp/extr_bdisp-debug.c_regs_show.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 [19 x i8] c"Cannot wake up IP\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Reg @ = 0x%p\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"\0AStatic:\0A\00", align 1
@BLT_CTL = common local_unnamed_addr global i32 0, align 4
@BLT_ITS = common local_unnamed_addr global i32 0, align 4
@BLT_STA1 = common local_unnamed_addr global i32 0, align 4
@BLT_AQ1_CTL = common local_unnamed_addr global i32 0, align 4
@BLT_AQ1_IP = common local_unnamed_addr global i32 0, align 4
@BLT_AQ1_LNA = common local_unnamed_addr global i32 0, align 4
@BLT_AQ1_STA = common local_unnamed_addr global i32 0, align 4
@BLT_ITM0 = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"\0APlugs:\0A\00", align 1
@BLT_PLUGS1_OP2 = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS1_CHZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS1_MSZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS1_PGZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS2_OP2 = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS2_CHZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS2_MSZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS2_PGZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS3_OP2 = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS3_CHZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS3_MSZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGS3_PGZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGT_OP2 = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGT_CHZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGT_MSZ = common local_unnamed_addr global i32 0, align 4
@BLT_PLUGT_PGZ = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [8 x i8] c"\0ANode:\0A\00", align 1
@BLT_NIP = common local_unnamed_addr global i32 0, align 4
@BLT_CIC = common local_unnamed_addr global i32 0, align 4
@BLT_INS = common local_unnamed_addr global i32 0, align 4
@BLT_ACK = common local_unnamed_addr global i32 0, align 4
@BLT_TBA = common local_unnamed_addr global i32 0, align 4
@BLT_TTY = common local_unnamed_addr global i32 0, align 4
@BLT_TXY = common local_unnamed_addr global i32 0, align 4
@BLT_TSZ = common local_unnamed_addr global i32 0, align 4
@BLT_S1BA = common local_unnamed_addr global i32 0, align 4
@BLT_S1TY = common local_unnamed_addr global i32 0, align 4
@BLT_S1XY = common local_unnamed_addr global i32 0, align 4
@BLT_S2BA = common local_unnamed_addr global i32 0, align 4
@BLT_S2TY = common local_unnamed_addr global i32 0, align 4
@BLT_S2XY = common local_unnamed_addr global i32 0, align 4
@BLT_S2SZ = common local_unnamed_addr global i32 0, align 4
@BLT_S3BA = common local_unnamed_addr global i32 0, align 4
@BLT_S3TY = common local_unnamed_addr global i32 0, align 4
@BLT_S3XY = common local_unnamed_addr global i32 0, align 4
@BLT_S3SZ = common local_unnamed_addr global i32 0, align 4
@BLT_FCTL = common local_unnamed_addr global i32 0, align 4
@BLT_RSF = common local_unnamed_addr global i32 0, align 4
@BLT_RZI = common local_unnamed_addr global i32 0, align 4
@BLT_HFP = common local_unnamed_addr global i32 0, align 4
@BLT_VFP = common local_unnamed_addr global i32 0, align 4
@BLT_Y_RSF = common local_unnamed_addr global i32 0, align 4
@BLT_Y_RZI = common local_unnamed_addr global i32 0, align 4
@BLT_Y_HFP = common local_unnamed_addr global i32 0, align 4
@BLT_Y_VFP = common local_unnamed_addr global i32 0, align 4
@BLT_IVMX0 = common local_unnamed_addr global i32 0, align 4
@BLT_IVMX1 = common local_unnamed_addr global i32 0, align 4
@BLT_IVMX2 = common local_unnamed_addr global i32 0, align 4
@BLT_IVMX3 = common local_unnamed_addr global i32 0, align 4
@BLT_OVMX0 = common local_unnamed_addr global i32 0, align 4
@BLT_OVMX1 = common local_unnamed_addr global i32 0, align 4
@BLT_OVMX2 = common local_unnamed_addr global i32 0, align 4
@BLT_OVMX3 = common local_unnamed_addr global i32 0, align 4
@BLT_DEI = common local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [10 x i8] c"\0AFilter:\0A\00", align 1
@BLT_NB_H_COEF = common local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [19 x i8] c"BLT_HFC%d \090x%08X\0A\00", align 1
@BLT_HFC_N = common local_unnamed_addr global i64 0, align 8
@BLT_NB_V_COEF = common local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [19 x i8] c"BLT_VFC%d \090x%08X\0A\00", align 1
@BLT_VFC_N = common local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [15 x i8] c"\0ALuma filter:\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"BLT_Y_HFC%d \090x%08X\0A\00", align 1
@BLT_Y_HFC_N = common local_unnamed_addr global i64 0, align 8
@.str.10 = private unnamed_addr constant [21 x i8] c"BLT_Y_VFC%d \090x%08X\0A\00", align 1
@BLT_Y_VFC_N = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @regs_show], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @regs_show(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load i32, ptr %3, align 8, !tbaa !11
%5 = tail call i32 @pm_runtime_get_sync(i32 noundef %4) #2
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str) #2
br label %215
9: ; preds = %2
%10 = getelementptr inbounds i8, ptr %3, i64 8
%11 = load i64, ptr %10, align 8, !tbaa !15
%12 = trunc i64 %11 to i32
%13 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, i32 noundef %12) #2
%14 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.2) #2
%15 = load i32, ptr @BLT_CTL, align 4, !tbaa !16
%16 = tail call i32 @DUMP(i32 noundef %15) #2
%17 = load i32, ptr @BLT_ITS, align 4, !tbaa !16
%18 = tail call i32 @DUMP(i32 noundef %17) #2
%19 = load i32, ptr @BLT_STA1, align 4, !tbaa !16
%20 = tail call i32 @DUMP(i32 noundef %19) #2
%21 = load i32, ptr @BLT_AQ1_CTL, align 4, !tbaa !16
%22 = tail call i32 @DUMP(i32 noundef %21) #2
%23 = load i32, ptr @BLT_AQ1_IP, align 4, !tbaa !16
%24 = tail call i32 @DUMP(i32 noundef %23) #2
%25 = load i32, ptr @BLT_AQ1_LNA, align 4, !tbaa !16
%26 = tail call i32 @DUMP(i32 noundef %25) #2
%27 = load i32, ptr @BLT_AQ1_STA, align 4, !tbaa !16
%28 = tail call i32 @DUMP(i32 noundef %27) #2
%29 = load i32, ptr @BLT_ITM0, align 4, !tbaa !16
%30 = tail call i32 @DUMP(i32 noundef %29) #2
%31 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #2
%32 = load i32, ptr @BLT_PLUGS1_OP2, align 4, !tbaa !16
%33 = tail call i32 @DUMP(i32 noundef %32) #2
%34 = load i32, ptr @BLT_PLUGS1_CHZ, align 4, !tbaa !16
%35 = tail call i32 @DUMP(i32 noundef %34) #2
%36 = load i32, ptr @BLT_PLUGS1_MSZ, align 4, !tbaa !16
%37 = tail call i32 @DUMP(i32 noundef %36) #2
%38 = load i32, ptr @BLT_PLUGS1_PGZ, align 4, !tbaa !16
%39 = tail call i32 @DUMP(i32 noundef %38) #2
%40 = load i32, ptr @BLT_PLUGS2_OP2, align 4, !tbaa !16
%41 = tail call i32 @DUMP(i32 noundef %40) #2
%42 = load i32, ptr @BLT_PLUGS2_CHZ, align 4, !tbaa !16
%43 = tail call i32 @DUMP(i32 noundef %42) #2
%44 = load i32, ptr @BLT_PLUGS2_MSZ, align 4, !tbaa !16
%45 = tail call i32 @DUMP(i32 noundef %44) #2
%46 = load i32, ptr @BLT_PLUGS2_PGZ, align 4, !tbaa !16
%47 = tail call i32 @DUMP(i32 noundef %46) #2
%48 = load i32, ptr @BLT_PLUGS3_OP2, align 4, !tbaa !16
%49 = tail call i32 @DUMP(i32 noundef %48) #2
%50 = load i32, ptr @BLT_PLUGS3_CHZ, align 4, !tbaa !16
%51 = tail call i32 @DUMP(i32 noundef %50) #2
%52 = load i32, ptr @BLT_PLUGS3_MSZ, align 4, !tbaa !16
%53 = tail call i32 @DUMP(i32 noundef %52) #2
%54 = load i32, ptr @BLT_PLUGS3_PGZ, align 4, !tbaa !16
%55 = tail call i32 @DUMP(i32 noundef %54) #2
%56 = load i32, ptr @BLT_PLUGT_OP2, align 4, !tbaa !16
%57 = tail call i32 @DUMP(i32 noundef %56) #2
%58 = load i32, ptr @BLT_PLUGT_CHZ, align 4, !tbaa !16
%59 = tail call i32 @DUMP(i32 noundef %58) #2
%60 = load i32, ptr @BLT_PLUGT_MSZ, align 4, !tbaa !16
%61 = tail call i32 @DUMP(i32 noundef %60) #2
%62 = load i32, ptr @BLT_PLUGT_PGZ, align 4, !tbaa !16
%63 = tail call i32 @DUMP(i32 noundef %62) #2
%64 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #2
%65 = load i32, ptr @BLT_NIP, align 4, !tbaa !16
%66 = tail call i32 @DUMP(i32 noundef %65) #2
%67 = load i32, ptr @BLT_CIC, align 4, !tbaa !16
%68 = tail call i32 @DUMP(i32 noundef %67) #2
%69 = load i32, ptr @BLT_INS, align 4, !tbaa !16
%70 = tail call i32 @DUMP(i32 noundef %69) #2
%71 = load i32, ptr @BLT_ACK, align 4, !tbaa !16
%72 = tail call i32 @DUMP(i32 noundef %71) #2
%73 = load i32, ptr @BLT_TBA, align 4, !tbaa !16
%74 = tail call i32 @DUMP(i32 noundef %73) #2
%75 = load i32, ptr @BLT_TTY, align 4, !tbaa !16
%76 = tail call i32 @DUMP(i32 noundef %75) #2
%77 = load i32, ptr @BLT_TXY, align 4, !tbaa !16
%78 = tail call i32 @DUMP(i32 noundef %77) #2
%79 = load i32, ptr @BLT_TSZ, align 4, !tbaa !16
%80 = tail call i32 @DUMP(i32 noundef %79) #2
%81 = load i32, ptr @BLT_S1BA, align 4, !tbaa !16
%82 = tail call i32 @DUMP(i32 noundef %81) #2
%83 = load i32, ptr @BLT_S1TY, align 4, !tbaa !16
%84 = tail call i32 @DUMP(i32 noundef %83) #2
%85 = load i32, ptr @BLT_S1XY, align 4, !tbaa !16
%86 = tail call i32 @DUMP(i32 noundef %85) #2
%87 = load i32, ptr @BLT_S2BA, align 4, !tbaa !16
%88 = tail call i32 @DUMP(i32 noundef %87) #2
%89 = load i32, ptr @BLT_S2TY, align 4, !tbaa !16
%90 = tail call i32 @DUMP(i32 noundef %89) #2
%91 = load i32, ptr @BLT_S2XY, align 4, !tbaa !16
%92 = tail call i32 @DUMP(i32 noundef %91) #2
%93 = load i32, ptr @BLT_S2SZ, align 4, !tbaa !16
%94 = tail call i32 @DUMP(i32 noundef %93) #2
%95 = load i32, ptr @BLT_S3BA, align 4, !tbaa !16
%96 = tail call i32 @DUMP(i32 noundef %95) #2
%97 = load i32, ptr @BLT_S3TY, align 4, !tbaa !16
%98 = tail call i32 @DUMP(i32 noundef %97) #2
%99 = load i32, ptr @BLT_S3XY, align 4, !tbaa !16
%100 = tail call i32 @DUMP(i32 noundef %99) #2
%101 = load i32, ptr @BLT_S3SZ, align 4, !tbaa !16
%102 = tail call i32 @DUMP(i32 noundef %101) #2
%103 = load i32, ptr @BLT_FCTL, align 4, !tbaa !16
%104 = tail call i32 @DUMP(i32 noundef %103) #2
%105 = load i32, ptr @BLT_RSF, align 4, !tbaa !16
%106 = tail call i32 @DUMP(i32 noundef %105) #2
%107 = load i32, ptr @BLT_RZI, align 4, !tbaa !16
%108 = tail call i32 @DUMP(i32 noundef %107) #2
%109 = load i32, ptr @BLT_HFP, align 4, !tbaa !16
%110 = tail call i32 @DUMP(i32 noundef %109) #2
%111 = load i32, ptr @BLT_VFP, align 4, !tbaa !16
%112 = tail call i32 @DUMP(i32 noundef %111) #2
%113 = load i32, ptr @BLT_Y_RSF, align 4, !tbaa !16
%114 = tail call i32 @DUMP(i32 noundef %113) #2
%115 = load i32, ptr @BLT_Y_RZI, align 4, !tbaa !16
%116 = tail call i32 @DUMP(i32 noundef %115) #2
%117 = load i32, ptr @BLT_Y_HFP, align 4, !tbaa !16
%118 = tail call i32 @DUMP(i32 noundef %117) #2
%119 = load i32, ptr @BLT_Y_VFP, align 4, !tbaa !16
%120 = tail call i32 @DUMP(i32 noundef %119) #2
%121 = load i32, ptr @BLT_IVMX0, align 4, !tbaa !16
%122 = tail call i32 @DUMP(i32 noundef %121) #2
%123 = load i32, ptr @BLT_IVMX1, align 4, !tbaa !16
%124 = tail call i32 @DUMP(i32 noundef %123) #2
%125 = load i32, ptr @BLT_IVMX2, align 4, !tbaa !16
%126 = tail call i32 @DUMP(i32 noundef %125) #2
%127 = load i32, ptr @BLT_IVMX3, align 4, !tbaa !16
%128 = tail call i32 @DUMP(i32 noundef %127) #2
%129 = load i32, ptr @BLT_OVMX0, align 4, !tbaa !16
%130 = tail call i32 @DUMP(i32 noundef %129) #2
%131 = load i32, ptr @BLT_OVMX1, align 4, !tbaa !16
%132 = tail call i32 @DUMP(i32 noundef %131) #2
%133 = load i32, ptr @BLT_OVMX2, align 4, !tbaa !16
%134 = tail call i32 @DUMP(i32 noundef %133) #2
%135 = load i32, ptr @BLT_OVMX3, align 4, !tbaa !16
%136 = tail call i32 @DUMP(i32 noundef %135) #2
%137 = load i32, ptr @BLT_DEI, align 4, !tbaa !16
%138 = tail call i32 @DUMP(i32 noundef %137) #2
%139 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.5) #2
%140 = load i32, ptr @BLT_NB_H_COEF, align 4, !tbaa !16
%141 = icmp eq i32 %140, 0
br i1 %141, label %142, label %145
142: ; preds = %145, %9
%143 = load i32, ptr @BLT_NB_V_COEF, align 4, !tbaa !16
%144 = icmp eq i32 %143, 0
br i1 %144, label %175, label %160
145: ; preds = %9, %145
%146 = phi i64 [ %156, %145 ], [ 0, %9 ]
%147 = load i64, ptr %10, align 8, !tbaa !15
%148 = load i64, ptr @BLT_HFC_N, align 8, !tbaa !17
%149 = trunc nuw i64 %146 to i32
%150 = shl nuw nsw i64 %146, 2
%151 = and i64 %150, 4294967292
%152 = add i64 %147, %151
%153 = add i64 %152, %148
%154 = tail call i32 @readl(i64 noundef %153) #2
%155 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.6, i32 noundef %149, i32 noundef %154) #2
%156 = add nuw nsw i64 %146, 1
%157 = load i32, ptr @BLT_NB_H_COEF, align 4, !tbaa !16
%158 = zext i32 %157 to i64
%159 = icmp ult i64 %156, %158
br i1 %159, label %145, label %142, !llvm.loop !18
160: ; preds = %142, %160
%161 = phi i64 [ %171, %160 ], [ 0, %142 ]
%162 = load i64, ptr %10, align 8, !tbaa !15
%163 = load i64, ptr @BLT_VFC_N, align 8, !tbaa !17
%164 = trunc nuw i64 %161 to i32
%165 = shl nuw nsw i64 %161, 2
%166 = and i64 %165, 4294967292
%167 = add i64 %162, %166
%168 = add i64 %167, %163
%169 = tail call i32 @readl(i64 noundef %168) #2
%170 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.7, i32 noundef %164, i32 noundef %169) #2
%171 = add nuw nsw i64 %161, 1
%172 = load i32, ptr @BLT_NB_V_COEF, align 4, !tbaa !16
%173 = zext i32 %172 to i64
%174 = icmp ult i64 %171, %173
br i1 %174, label %160, label %175, !llvm.loop !20
175: ; preds = %160, %142
%176 = tail call i32 @seq_puts(ptr noundef nonnull %0, ptr noundef nonnull @.str.8) #2
%177 = load i32, ptr @BLT_NB_H_COEF, align 4, !tbaa !16
%178 = icmp eq i32 %177, 0
br i1 %178, label %179, label %182
179: ; preds = %182, %175
%180 = load i32, ptr @BLT_NB_V_COEF, align 4, !tbaa !16
%181 = icmp eq i32 %180, 0
br i1 %181, label %212, label %197
182: ; preds = %175, %182
%183 = phi i64 [ %193, %182 ], [ 0, %175 ]
%184 = load i64, ptr %10, align 8, !tbaa !15
%185 = load i64, ptr @BLT_Y_HFC_N, align 8, !tbaa !17
%186 = trunc nuw i64 %183 to i32
%187 = shl nuw nsw i64 %183, 2
%188 = and i64 %187, 4294967292
%189 = add i64 %184, %188
%190 = add i64 %189, %185
%191 = tail call i32 @readl(i64 noundef %190) #2
%192 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.9, i32 noundef %186, i32 noundef %191) #2
%193 = add nuw nsw i64 %183, 1
%194 = load i32, ptr @BLT_NB_H_COEF, align 4, !tbaa !16
%195 = zext i32 %194 to i64
%196 = icmp ult i64 %193, %195
br i1 %196, label %182, label %179, !llvm.loop !21
197: ; preds = %179, %197
%198 = phi i64 [ %208, %197 ], [ 0, %179 ]
%199 = load i64, ptr %10, align 8, !tbaa !15
%200 = load i64, ptr @BLT_Y_VFC_N, align 8, !tbaa !17
%201 = trunc nuw i64 %198 to i32
%202 = shl nuw nsw i64 %198, 2
%203 = and i64 %202, 4294967292
%204 = add i64 %199, %203
%205 = add i64 %204, %200
%206 = tail call i32 @readl(i64 noundef %205) #2
%207 = tail call i32 (ptr, ptr, i32, ...) @seq_printf(ptr noundef nonnull %0, ptr noundef nonnull @.str.10, i32 noundef %201, i32 noundef %206) #2
%208 = add nuw nsw i64 %198, 1
%209 = load i32, ptr @BLT_NB_V_COEF, align 4, !tbaa !16
%210 = zext i32 %209 to i64
%211 = icmp ult i64 %208, %210
br i1 %211, label %197, label %212, !llvm.loop !22
212: ; preds = %197, %179
%213 = load i32, ptr %3, align 8, !tbaa !11
%214 = tail call i32 @pm_runtime_put(i32 noundef %213) #2
br label %215
215: ; preds = %212, %7
ret i32 0
}
declare i32 @pm_runtime_get_sync(i32 noundef) local_unnamed_addr #1
declare i32 @seq_puts(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @seq_printf(ptr noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @DUMP(i32 noundef) local_unnamed_addr #1
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i32 @pm_runtime_put(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 = !{!"seq_file", !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 = !{!"bdisp_dev", !13, i64 0, !14, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!12, !14, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!14, !14, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
| linux_drivers_media_platform_sti_bdisp_extr_bdisp-debug.c_regs_show |
; ModuleID = 'AnghaBench/reactos/dll/directx/wine/wined3d/extr_utils.c_x8_d24_unorm_download.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/wined3d/extr_utils.c_x8_d24_unorm_download.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 @x8_d24_unorm_download], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define internal void @x8_d24_unorm_download(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) #0 {
%10 = ptrtoint ptr %0 to i64
%11 = ptrtoint ptr %1 to i64
%12 = icmp eq i32 %8, 0
br i1 %12, label %123, label %13
13: ; preds = %9
%14 = icmp eq i32 %7, 0
%15 = icmp eq i32 %6, 0
%16 = zext i32 %8 to i64
%17 = zext i32 %7 to i64
%18 = zext i32 %6 to i64
%19 = icmp ult i32 %6, 8
%20 = and i64 %18, 4294967288
%21 = icmp eq i64 %20, %18
%22 = and i64 %18, 3
%23 = icmp eq i64 %22, 0
br label %24
24: ; preds = %13, %120
%25 = phi i64 [ 0, %13 ], [ %121, %120 ]
br i1 %14, label %120, label %26
26: ; preds = %24
%27 = trunc i64 %25 to i32
%28 = mul i32 %27, %3
%29 = zext i32 %28 to i64
%30 = trunc i64 %25 to i32
%31 = mul i32 %30, %5
%32 = zext i32 %31 to i64
%33 = trunc i64 %25 to i32
%34 = mul i32 %33, %3
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %0, i64 %35
%37 = mul i32 %33, %5
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %1, i64 %38
br label %40
40: ; preds = %26, %117
%41 = phi i64 [ 0, %26 ], [ %118, %117 ]
%42 = trunc i64 %41 to i32
%43 = mul i32 %42, %2
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %36, i64 %44
%46 = mul i32 %42, %4
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %39, i64 %47
br i1 %15, label %117, label %49
49: ; preds = %40
%50 = trunc i64 %41 to i32
%51 = mul i32 %50, %4
%52 = zext i32 %51 to i64
%53 = add nuw nsw i64 %32, %52
%54 = shl nuw nsw i64 %53, 2
%55 = add i64 %54, %11
%56 = trunc i64 %41 to i32
%57 = mul i32 %56, %2
%58 = zext i32 %57 to i64
%59 = add nuw nsw i64 %29, %58
%60 = shl nuw nsw i64 %59, 2
%61 = add i64 %60, %10
%62 = sub i64 %55, %61
%63 = icmp ult i64 %62, 32
%64 = select i1 %19, i1 true, i1 %63
br i1 %64, label %78, label %65
65: ; preds = %49, %65
%66 = phi i64 [ %75, %65 ], [ 0, %49 ]
%67 = getelementptr inbounds i32, ptr %45, i64 %66
%68 = getelementptr inbounds i32, ptr %67, i64 4
%69 = load <4 x i32>, ptr %67, align 4, !tbaa !5
%70 = load <4 x i32>, ptr %68, align 4, !tbaa !5
%71 = ashr <4 x i32> %69, <i32 8, i32 8, i32 8, i32 8>
%72 = ashr <4 x i32> %70, <i32 8, i32 8, i32 8, i32 8>
%73 = getelementptr inbounds i32, ptr %48, i64 %66
%74 = getelementptr inbounds i32, ptr %73, i64 4
store <4 x i32> %71, ptr %73, align 4, !tbaa !5
store <4 x i32> %72, ptr %74, align 4, !tbaa !5
%75 = add nuw i64 %66, 8
%76 = icmp eq i64 %75, %20
br i1 %76, label %77, label %65, !llvm.loop !9
77: ; preds = %65
br i1 %21, label %117, label %78
78: ; preds = %49, %77
%79 = phi i64 [ 0, %49 ], [ %20, %77 ]
br i1 %23, label %90, label %80
80: ; preds = %78, %80
%81 = phi i64 [ %87, %80 ], [ %79, %78 ]
%82 = phi i64 [ %88, %80 ], [ 0, %78 ]
%83 = getelementptr inbounds i32, ptr %45, i64 %81
%84 = load i32, ptr %83, align 4, !tbaa !5
%85 = ashr i32 %84, 8
%86 = getelementptr inbounds i32, ptr %48, i64 %81
store i32 %85, ptr %86, align 4, !tbaa !5
%87 = add nuw nsw i64 %81, 1
%88 = add i64 %82, 1
%89 = icmp eq i64 %88, %22
br i1 %89, label %90, label %80, !llvm.loop !13
90: ; preds = %80, %78
%91 = phi i64 [ %79, %78 ], [ %87, %80 ]
%92 = sub nsw i64 %79, %18
%93 = icmp ugt i64 %92, -4
br i1 %93, label %117, label %94
94: ; preds = %90, %94
%95 = phi i64 [ %115, %94 ], [ %91, %90 ]
%96 = getelementptr inbounds i32, ptr %45, i64 %95
%97 = load i32, ptr %96, align 4, !tbaa !5
%98 = ashr i32 %97, 8
%99 = getelementptr inbounds i32, ptr %48, i64 %95
store i32 %98, ptr %99, align 4, !tbaa !5
%100 = add nuw nsw i64 %95, 1
%101 = getelementptr inbounds i32, ptr %45, i64 %100
%102 = load i32, ptr %101, align 4, !tbaa !5
%103 = ashr i32 %102, 8
%104 = getelementptr inbounds i32, ptr %48, i64 %100
store i32 %103, ptr %104, align 4, !tbaa !5
%105 = add nuw nsw i64 %95, 2
%106 = getelementptr inbounds i32, ptr %45, i64 %105
%107 = load i32, ptr %106, align 4, !tbaa !5
%108 = ashr i32 %107, 8
%109 = getelementptr inbounds i32, ptr %48, i64 %105
store i32 %108, ptr %109, align 4, !tbaa !5
%110 = add nuw nsw i64 %95, 3
%111 = getelementptr inbounds i32, ptr %45, i64 %110
%112 = load i32, ptr %111, align 4, !tbaa !5
%113 = ashr i32 %112, 8
%114 = getelementptr inbounds i32, ptr %48, i64 %110
store i32 %113, ptr %114, align 4, !tbaa !5
%115 = add nuw nsw i64 %95, 4
%116 = icmp eq i64 %115, %18
br i1 %116, label %117, label %94, !llvm.loop !15
117: ; preds = %90, %94, %77, %40
%118 = add nuw nsw i64 %41, 1
%119 = icmp eq i64 %118, %17
br i1 %119, label %120, label %40, !llvm.loop !16
120: ; preds = %117, %24
%121 = add nuw nsw i64 %25, 1
%122 = icmp eq i64 %121, %16
br i1 %122, label %123, label %24, !llvm.loop !17
123: ; preds = %120, %9
ret void
}
attributes #0 = { nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-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 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10, !11}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
| ; ModuleID = 'AnghaBench/reactos/dll/directx/wine/wined3d/extr_utils.c_x8_d24_unorm_download.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/wined3d/extr_utils.c_x8_d24_unorm_download.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 @x8_d24_unorm_download], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(argmem: readwrite) uwtable(sync)
define internal void @x8_d24_unorm_download(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) #0 {
%10 = ptrtoint ptr %0 to i64
%11 = ptrtoint ptr %1 to i64
%12 = icmp eq i32 %8, 0
br i1 %12, label %100, label %13
13: ; preds = %9
%14 = icmp eq i32 %7, 0
%15 = icmp eq i32 %6, 0
%16 = zext i32 %8 to i64
%17 = zext i32 %7 to i64
%18 = zext i32 %6 to i64
%19 = icmp ult i32 %6, 16
%20 = and i64 %18, 4294967280
%21 = icmp eq i64 %20, %18
br label %22
22: ; preds = %13, %97
%23 = phi i64 [ 0, %13 ], [ %98, %97 ]
br i1 %14, label %97, label %24
24: ; preds = %22
%25 = trunc i64 %23 to i32
%26 = mul i32 %25, %3
%27 = zext i32 %26 to i64
%28 = trunc i64 %23 to i32
%29 = mul i32 %28, %5
%30 = zext i32 %29 to i64
%31 = trunc nuw i64 %23 to i32
%32 = mul i32 %31, %3
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %0, i64 %33
%35 = mul i32 %31, %5
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %1, i64 %36
br label %38
38: ; preds = %24, %94
%39 = phi i64 [ 0, %24 ], [ %95, %94 ]
%40 = trunc nuw i64 %39 to i32
%41 = mul i32 %40, %2
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %34, i64 %42
%44 = mul i32 %40, %4
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %37, i64 %45
br i1 %15, label %94, label %47
47: ; preds = %38
%48 = trunc i64 %39 to i32
%49 = mul i32 %48, %4
%50 = zext i32 %49 to i64
%51 = add nuw nsw i64 %30, %50
%52 = shl nuw nsw i64 %51, 2
%53 = add i64 %52, %11
%54 = trunc i64 %39 to i32
%55 = mul i32 %54, %2
%56 = zext i32 %55 to i64
%57 = add nuw nsw i64 %27, %56
%58 = shl nuw nsw i64 %57, 2
%59 = add i64 %58, %10
%60 = sub i64 %53, %59
%61 = icmp ult i64 %60, 64
%62 = select i1 %19, i1 true, i1 %61
br i1 %62, label %84, label %63
63: ; preds = %47, %63
%64 = phi i64 [ %81, %63 ], [ 0, %47 ]
%65 = getelementptr inbounds i32, ptr %43, i64 %64
%66 = getelementptr inbounds i8, ptr %65, i64 16
%67 = getelementptr inbounds i8, ptr %65, i64 32
%68 = getelementptr inbounds i8, ptr %65, i64 48
%69 = load <4 x i32>, ptr %65, align 4, !tbaa !6
%70 = load <4 x i32>, ptr %66, align 4, !tbaa !6
%71 = load <4 x i32>, ptr %67, align 4, !tbaa !6
%72 = load <4 x i32>, ptr %68, align 4, !tbaa !6
%73 = ashr <4 x i32> %69, <i32 8, i32 8, i32 8, i32 8>
%74 = ashr <4 x i32> %70, <i32 8, i32 8, i32 8, i32 8>
%75 = ashr <4 x i32> %71, <i32 8, i32 8, i32 8, i32 8>
%76 = ashr <4 x i32> %72, <i32 8, i32 8, i32 8, i32 8>
%77 = getelementptr inbounds i32, ptr %46, i64 %64
%78 = getelementptr inbounds i8, ptr %77, i64 16
%79 = getelementptr inbounds i8, ptr %77, i64 32
%80 = getelementptr inbounds i8, ptr %77, i64 48
store <4 x i32> %73, ptr %77, align 4, !tbaa !6
store <4 x i32> %74, ptr %78, align 4, !tbaa !6
store <4 x i32> %75, ptr %79, align 4, !tbaa !6
store <4 x i32> %76, ptr %80, align 4, !tbaa !6
%81 = add nuw i64 %64, 16
%82 = icmp eq i64 %81, %20
br i1 %82, label %83, label %63, !llvm.loop !10
83: ; preds = %63
br i1 %21, label %94, label %84
84: ; preds = %83, %47
%85 = phi i64 [ 0, %47 ], [ %20, %83 ]
br label %86
86: ; preds = %84, %86
%87 = phi i64 [ %92, %86 ], [ %85, %84 ]
%88 = getelementptr inbounds i32, ptr %43, i64 %87
%89 = load i32, ptr %88, align 4, !tbaa !6
%90 = ashr i32 %89, 8
%91 = getelementptr inbounds i32, ptr %46, i64 %87
store i32 %90, ptr %91, align 4, !tbaa !6
%92 = add nuw nsw i64 %87, 1
%93 = icmp eq i64 %92, %18
br i1 %93, label %94, label %86, !llvm.loop !14
94: ; preds = %86, %83, %38
%95 = add nuw nsw i64 %39, 1
%96 = icmp eq i64 %95, %17
br i1 %96, label %97, label %38, !llvm.loop !15
97: ; preds = %94, %22
%98 = add nuw nsw i64 %23, 1
%99 = icmp eq i64 %98, %16
br i1 %99, label %100, label %22, !llvm.loop !16
100: ; preds = %97, %9
ret void
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(argmem: readwrite) 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 = distinct !{!10, !11, !12, !13}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !11, !12}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
| reactos_dll_directx_wine_wined3d_extr_utils.c_x8_d24_unorm_download |
; ModuleID = 'AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/extr_fm_pcd.c_FmPcdIncNetEnvOwners.c'
source_filename = "AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/extr_fm_pcd.c_FmPcdIncNetEnvOwners.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 }
; Function Attrs: nounwind uwtable
define dso_local void @FmPcdIncNetEnvOwners(i64 noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @ASSERT_COND(i64 noundef %0) #2
%4 = inttoptr i64 %0 to ptr
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.TYPE_5__, ptr %5, i64 %1
%7 = tail call i32 @NetEnvLock(ptr noundef %6) #2
%8 = load ptr, ptr %4, align 8, !tbaa !5
%9 = getelementptr inbounds %struct.TYPE_5__, ptr %8, i64 %1
%10 = load i32, ptr %9, align 4, !tbaa !10
%11 = add nsw i32 %10, 1
store i32 %11, ptr %9, align 4, !tbaa !10
%12 = tail call i32 @NetEnvUnlock(ptr noundef nonnull %9, i32 noundef %7) #2
ret void
}
declare i32 @ASSERT_COND(i64 noundef) local_unnamed_addr #1
declare i32 @NetEnvLock(ptr noundef) local_unnamed_addr #1
declare i32 @NetEnvUnlock(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, !7, i64 0}
!6 = !{!"TYPE_4__", !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_5__", !12, i64 0}
!12 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/extr_fm_pcd.c_FmPcdIncNetEnvOwners.c'
source_filename = "AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/extr_fm_pcd.c_FmPcdIncNetEnvOwners.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 }
; Function Attrs: nounwind ssp uwtable(sync)
define void @FmPcdIncNetEnvOwners(i64 noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @ASSERT_COND(i64 noundef %0) #2
%4 = inttoptr i64 %0 to ptr
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = getelementptr inbounds %struct.TYPE_5__, ptr %5, i64 %1
%7 = tail call i32 @NetEnvLock(ptr noundef %6) #2
%8 = load ptr, ptr %4, align 8, !tbaa !6
%9 = getelementptr inbounds %struct.TYPE_5__, ptr %8, i64 %1
%10 = load i32, ptr %9, align 4, !tbaa !11
%11 = add nsw i32 %10, 1
store i32 %11, ptr %9, align 4, !tbaa !11
%12 = tail call i32 @NetEnvUnlock(ptr noundef nonnull %9, i32 noundef %7) #2
ret void
}
declare i32 @ASSERT_COND(i64 noundef) local_unnamed_addr #1
declare i32 @NetEnvLock(ptr noundef) local_unnamed_addr #1
declare i32 @NetEnvUnlock(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, !8, i64 0}
!7 = !{!"TYPE_4__", !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 = !{!"TYPE_5__", !13, i64 0}
!13 = !{!"int", !9, i64 0}
| freebsd_sys_contrib_ncsw_Peripherals_FM_Pcd_extr_fm_pcd.c_FmPcdIncNetEnvOwners |
; ModuleID = 'AnghaBench/openssl/ssl/extr_ssl_lib.c_ssl_undefined_function_1.c'
source_filename = "AnghaBench/openssl/ssl/extr_ssl_lib.c_ssl_undefined_function_1.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 @ssl_undefined_function_1], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ssl_undefined_function_1(ptr noundef %0, ptr nocapture readnone %1, i64 %2, i32 %3) #0 {
%5 = tail call i32 @ssl_undefined_function(ptr noundef %0) #2
ret i32 %5
}
declare i32 @ssl_undefined_function(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/openssl/ssl/extr_ssl_lib.c_ssl_undefined_function_1.c'
source_filename = "AnghaBench/openssl/ssl/extr_ssl_lib.c_ssl_undefined_function_1.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 @ssl_undefined_function_1], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ssl_undefined_function_1(ptr noundef %0, ptr nocapture readnone %1, i64 %2, i32 %3) #0 {
%5 = tail call i32 @ssl_undefined_function(ptr noundef %0) #2
ret i32 %5
}
declare i32 @ssl_undefined_function(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)"}
| openssl_ssl_extr_ssl_lib.c_ssl_undefined_function_1 |
; ModuleID = 'AnghaBench/linux/sound/i2c/other/extr_ak4113.c_snd_ak4113_dev_free.c'
source_filename = "AnghaBench/linux/sound/i2c/other/extr_ak4113.c_snd_ak4113_dev_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_ak4113_dev_free], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @snd_ak4113_dev_free(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i32 @snd_ak4113_free(ptr noundef %2) #2
ret i32 0
}
declare i32 @snd_ak4113_free(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 = !{!"snd_device", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/sound/i2c/other/extr_ak4113.c_snd_ak4113_dev_free.c'
source_filename = "AnghaBench/linux/sound/i2c/other/extr_ak4113.c_snd_ak4113_dev_free.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 @snd_ak4113_dev_free], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @snd_ak4113_dev_free(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i32 @snd_ak4113_free(ptr noundef %2) #2
ret i32 0
}
declare i32 @snd_ak4113_free(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 = !{!"snd_device", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_sound_i2c_other_extr_ak4113.c_snd_ak4113_dev_free |
; ModuleID = 'AnghaBench/obs-studio/libobs-opengl/extr_gl-helpers.h_gl_delete_buffers.c'
source_filename = "AnghaBench/obs-studio/libobs-opengl/extr_gl-helpers.h_gl_delete_buffers.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 [16 x i8] c"glDeleteBuffers\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @gl_delete_buffers], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @gl_delete_buffers(i32 noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @glDeleteBuffers(i32 noundef %0, ptr noundef %1) #2
%4 = tail call i32 @gl_success(ptr noundef nonnull @.str) #2
ret void
}
declare i32 @glDeleteBuffers(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @gl_success(ptr 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/obs-studio/libobs-opengl/extr_gl-helpers.h_gl_delete_buffers.c'
source_filename = "AnghaBench/obs-studio/libobs-opengl/extr_gl-helpers.h_gl_delete_buffers.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 [16 x i8] c"glDeleteBuffers\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @gl_delete_buffers], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @gl_delete_buffers(i32 noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @glDeleteBuffers(i32 noundef %0, ptr noundef %1) #2
%4 = tail call i32 @gl_success(ptr noundef nonnull @.str) #2
ret void
}
declare i32 @glDeleteBuffers(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @gl_success(ptr 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)"}
| obs-studio_libobs-opengl_extr_gl-helpers.h_gl_delete_buffers |
; ModuleID = 'AnghaBench/linux/net/sctp/extr_sm_sideeffect.c_sctp_cmd_process_init.c'
source_filename = "AnghaBench/linux/net/sctp/extr_sm_sideeffect.c_sctp_cmd_process_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"
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sctp_cmd_process_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sctp_cmd_process_init(ptr nocapture readnone %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = tail call i32 @sctp_source(ptr noundef %2) #2
%7 = tail call i32 @sctp_process_init(ptr noundef %1, ptr noundef %2, i32 noundef %6, ptr noundef %3, i32 noundef %4) #2
%8 = icmp eq i32 %7, 0
%9 = load i32, ptr @ENOMEM, align 4
%10 = sub nsw i32 0, %9
%11 = select i1 %8, i32 %10, i32 0
ret i32 %11
}
declare i32 @sctp_process_init(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sctp_source(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/linux/net/sctp/extr_sm_sideeffect.c_sctp_cmd_process_init.c'
source_filename = "AnghaBench/linux/net/sctp/extr_sm_sideeffect.c_sctp_cmd_process_init.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 @sctp_cmd_process_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @sctp_cmd_process_init(ptr nocapture readnone %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = tail call i32 @sctp_source(ptr noundef %2) #2
%7 = tail call i32 @sctp_process_init(ptr noundef %1, ptr noundef %2, i32 noundef %6, ptr noundef %3, i32 noundef %4) #2
%8 = icmp eq i32 %7, 0
%9 = load i32, ptr @ENOMEM, align 4
%10 = sub nsw i32 0, %9
%11 = select i1 %8, i32 %10, i32 0
ret i32 %11
}
declare i32 @sctp_process_init(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sctp_source(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)"}
| linux_net_sctp_extr_sm_sideeffect.c_sctp_cmd_process_init |
; ModuleID = 'AnghaBench/linux/drivers/net/ipvlan/extr_ipvlan.h_ipvlan_l3s_init.c'
source_filename = "AnghaBench/linux/drivers/net/ipvlan/extr_ipvlan.h_ipvlan_l3s_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 @ipvlan_l3s_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @ipvlan_l3s_init() #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/net/ipvlan/extr_ipvlan.h_ipvlan_l3s_init.c'
source_filename = "AnghaBench/linux/drivers/net/ipvlan/extr_ipvlan.h_ipvlan_l3s_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 @ipvlan_l3s_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @ipvlan_l3s_init() #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_net_ipvlan_extr_ipvlan.h_ipvlan_l3s_init |
; ModuleID = 'AnghaBench/radare2/libr/anal/extr_esil.c___stepOut.c'
source_filename = "AnghaBench/radare2/libr/anal/extr_esil.c___stepOut.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 }
@__stepOut.inCmdStep = internal unnamed_addr global i1 false, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__stepOut], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @__stepOut(ptr noundef %0, ptr noundef %1) #0 {
%3 = icmp ne ptr %1, null
%4 = icmp ne ptr %0, null
%5 = and i1 %4, %3
br i1 %5, label %6, label %17
6: ; preds = %2
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !5
%9 = icmp eq ptr %8, null
%10 = load i1, ptr @__stepOut.inCmdStep, align 4
%11 = select i1 %9, i1 true, i1 %10
br i1 %11, label %17, label %12
12: ; preds = %6
store i1 true, ptr @__stepOut.inCmdStep, align 4
%13 = load i32, ptr %0, align 8, !tbaa !11
%14 = tail call i64 %8(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %13, i32 noundef 0) #1
%15 = icmp ne i64 %14, 0
store i1 false, ptr @__stepOut.inCmdStep, align 4
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %12, %2, %6
%18 = phi i32 [ 0, %6 ], [ 0, %2 ], [ %16, %12 ]
ret i32 %18
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/radare2/libr/anal/extr_esil.c___stepOut.c'
source_filename = "AnghaBench/radare2/libr/anal/extr_esil.c___stepOut.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@__stepOut.inCmdStep = internal unnamed_addr global i1 false, align 4
@llvm.used = appending global [1 x ptr] [ptr @__stepOut], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @__stepOut(ptr noundef %0, ptr noundef %1) #0 {
%3 = icmp ne ptr %1, null
%4 = icmp ne ptr %0, null
%5 = and i1 %4, %3
br i1 %5, label %6, label %17
6: ; preds = %2
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !6
%9 = icmp eq ptr %8, null
%10 = load i1, ptr @__stepOut.inCmdStep, align 4
%11 = select i1 %9, i1 true, i1 %10
br i1 %11, label %17, label %12
12: ; preds = %6
store i1 true, ptr @__stepOut.inCmdStep, align 4
%13 = load i32, ptr %0, align 8, !tbaa !12
%14 = tail call i64 %8(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %13, i32 noundef 0) #1
%15 = icmp ne i64 %14, 0
store i1 false, ptr @__stepOut.inCmdStep, align 4
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %12, %2, %6
%18 = phi i32 [ 0, %6 ], [ 0, %2 ], [ %16, %12 ]
ret i32 %18
}
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 = { 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 = !{!7, !8, i64 0}
| radare2_libr_anal_extr_esil.c___stepOut |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/unix/extr_af_unix.c_unix_may_send.c'
source_filename = "AnghaBench/fastsocket/kernel/net/unix/extr_af_unix.c_unix_may_send.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 @unix_may_send], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @unix_may_send(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @unix_peer(ptr noundef %1) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %9, label %5
5: ; preds = %2
%6 = tail call i64 @unix_our_peer(ptr noundef %0, ptr noundef %1) #2
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i32
br label %9
9: ; preds = %5, %2
%10 = phi i32 [ 1, %2 ], [ %8, %5 ]
ret i32 %10
}
declare ptr @unix_peer(ptr noundef) local_unnamed_addr #1
declare i64 @unix_our_peer(ptr noundef, ptr 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/fastsocket/kernel/net/unix/extr_af_unix.c_unix_may_send.c'
source_filename = "AnghaBench/fastsocket/kernel/net/unix/extr_af_unix.c_unix_may_send.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 @unix_may_send], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @unix_may_send(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @unix_peer(ptr noundef %1) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %9, label %5
5: ; preds = %2
%6 = tail call i64 @unix_our_peer(ptr noundef %0, ptr noundef %1) #2
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i32
br label %9
9: ; preds = %5, %2
%10 = phi i32 [ 1, %2 ], [ %8, %5 ]
ret i32 %10
}
declare ptr @unix_peer(ptr noundef) local_unnamed_addr #1
declare i64 @unix_our_peer(ptr noundef, ptr 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)"}
| fastsocket_kernel_net_unix_extr_af_unix.c_unix_may_send |
; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/atl/extr_atl_ax.c_register_class.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/atl/extr_atl_ax.c_register_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.TYPE_3__ = type { ptr, ptr, i64, i32, ptr, i32, i64, i64, i32, i64 }
@DefWindowProcA = dso_local local_unnamed_addr global i32 0, align 4
@IDC_ARROW = dso_local local_unnamed_addr global i64 0, align 8
@COLOR_BTNFACE = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [17 x i8] c"WineAtlTestClass\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @register_class], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @register_class() #0 {
%1 = alloca %struct.TYPE_3__, align 8
call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #4
%2 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 9
store i64 0, ptr %2, align 8, !tbaa !5
%3 = load i32, ptr @DefWindowProcA, align 4, !tbaa !12
%4 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 8
store i32 %3, ptr %4, align 8, !tbaa !13
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 6
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 0, i64 16, i1 false)
%6 = tail call i32 @GetModuleHandleA(ptr noundef null) #4
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 5
store i32 %6, ptr %7, align 8, !tbaa !14
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 4
store ptr null, ptr %8, align 8, !tbaa !15
%9 = load i64, ptr @IDC_ARROW, align 8, !tbaa !16
%10 = trunc i64 %9 to i32
%11 = tail call i32 @LoadCursorA(ptr noundef null, i32 noundef %10) #4
%12 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 3
store i32 %11, ptr %12, align 8, !tbaa !17
%13 = load i64, ptr @COLOR_BTNFACE, align 8, !tbaa !16
%14 = add nsw i64 %13, 1
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 2
store i64 %14, ptr %15, align 8, !tbaa !18
%16 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 1
store ptr null, ptr %16, align 8, !tbaa !19
store ptr @.str, ptr %1, align 8, !tbaa !20
%17 = call i32 @RegisterClassA(ptr noundef nonnull %1) #4
call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #4
ret i32 %17
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @GetModuleHandleA(ptr noundef) local_unnamed_addr #2
declare i32 @LoadCursorA(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @RegisterClassA(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
; 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, !10, i64 72}
!6 = !{!"TYPE_3__", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !7, i64 32, !11, i64 40, !10, i64 48, !10, i64 56, !11, i64 64, !10, i64 72}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!6, !11, i64 64}
!14 = !{!6, !11, i64 40}
!15 = !{!6, !7, i64 32}
!16 = !{!10, !10, i64 0}
!17 = !{!6, !11, i64 24}
!18 = !{!6, !10, i64 16}
!19 = !{!6, !7, i64 8}
!20 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/atl/extr_atl_ax.c_register_class.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/atl/extr_atl_ax.c_register_class.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 { ptr, ptr, i64, i32, ptr, i32, i64, i64, i32, i64 }
@DefWindowProcA = common local_unnamed_addr global i32 0, align 4
@IDC_ARROW = common local_unnamed_addr global i64 0, align 8
@COLOR_BTNFACE = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [17 x i8] c"WineAtlTestClass\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @register_class], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @register_class() #0 {
%1 = alloca %struct.TYPE_3__, align 8
call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #4
%2 = getelementptr inbounds i8, ptr %1, i64 72
store i64 0, ptr %2, align 8, !tbaa !6
%3 = load i32, ptr @DefWindowProcA, align 4, !tbaa !13
%4 = getelementptr inbounds i8, ptr %1, i64 64
store i32 %3, ptr %4, align 8, !tbaa !14
%5 = getelementptr inbounds i8, ptr %1, i64 48
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 0, i64 16, i1 false)
%6 = tail call i32 @GetModuleHandleA(ptr noundef null) #4
%7 = getelementptr inbounds i8, ptr %1, i64 40
store i32 %6, ptr %7, align 8, !tbaa !15
%8 = getelementptr inbounds i8, ptr %1, i64 32
store ptr null, ptr %8, align 8, !tbaa !16
%9 = load i64, ptr @IDC_ARROW, align 8, !tbaa !17
%10 = trunc i64 %9 to i32
%11 = tail call i32 @LoadCursorA(ptr noundef null, i32 noundef %10) #4
%12 = getelementptr inbounds i8, ptr %1, i64 24
store i32 %11, ptr %12, align 8, !tbaa !18
%13 = load i64, ptr @COLOR_BTNFACE, align 8, !tbaa !17
%14 = add nsw i64 %13, 1
%15 = getelementptr inbounds i8, ptr %1, i64 16
store i64 %14, ptr %15, align 8, !tbaa !19
%16 = getelementptr inbounds i8, ptr %1, i64 8
store ptr null, ptr %16, align 8, !tbaa !20
store ptr @.str, ptr %1, align 8, !tbaa !21
%17 = call i32 @RegisterClassA(ptr noundef nonnull %1) #4
call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #4
ret i32 %17
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @GetModuleHandleA(ptr noundef) local_unnamed_addr #2
declare i32 @LoadCursorA(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @RegisterClassA(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
; 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, !11, i64 72}
!7 = !{!"TYPE_3__", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !8, i64 32, !12, i64 40, !11, i64 48, !11, i64 56, !12, i64 64, !11, i64 72}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!7, !12, i64 64}
!15 = !{!7, !12, i64 40}
!16 = !{!7, !8, i64 32}
!17 = !{!11, !11, i64 0}
!18 = !{!7, !12, i64 24}
!19 = !{!7, !11, i64 16}
!20 = !{!7, !8, i64 8}
!21 = !{!7, !8, i64 0}
| reactos_modules_rostests_winetests_atl_extr_atl_ax.c_register_class |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43/extr_phy_lcn.c_b43_phy_lcn_txrx_spur_avoidance_mode.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43/extr_phy_lcn.c_b43_phy_lcn_txrx_spur_avoidance_mode.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 @b43_phy_lcn_txrx_spur_avoidance_mode], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @b43_phy_lcn_txrx_spur_avoidance_mode(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 0
br i1 %3, label %12, label %4
4: ; preds = %2
%5 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2370, i32 noundef 7) #2
%6 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2363, i32 noundef 8215) #2
%7 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2364, i32 noundef 10181) #2
%8 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 1098, i32 noundef 132) #2
%9 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 1098, i32 noundef 128) #2
%10 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 1747, i32 noundef 8738) #2
%11 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 1747, i32 noundef 8736) #2
br label %16
12: ; preds = %2
%13 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2370, i32 noundef 0) #2
%14 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2363, i32 noundef 23) #2
%15 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2364, i32 noundef 1989) #2
br label %16
16: ; preds = %12, %4
%17 = tail call i32 @b43_phy_switch_macfreq(ptr noundef %0, i32 noundef %1) #2
ret void
}
declare i32 @b43_phy_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_phy_switch_macfreq(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/fastsocket/kernel/drivers/net/wireless/b43/extr_phy_lcn.c_b43_phy_lcn_txrx_spur_avoidance_mode.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43/extr_phy_lcn.c_b43_phy_lcn_txrx_spur_avoidance_mode.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 @b43_phy_lcn_txrx_spur_avoidance_mode], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @b43_phy_lcn_txrx_spur_avoidance_mode(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 0
br i1 %3, label %12, label %4
4: ; preds = %2
%5 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2370, i32 noundef 7) #2
%6 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2363, i32 noundef 8215) #2
%7 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2364, i32 noundef 10181) #2
%8 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 1098, i32 noundef 132) #2
%9 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 1098, i32 noundef 128) #2
%10 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 1747, i32 noundef 8738) #2
%11 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 1747, i32 noundef 8736) #2
br label %16
12: ; preds = %2
%13 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2370, i32 noundef 0) #2
%14 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2363, i32 noundef 23) #2
%15 = tail call i32 @b43_phy_write(ptr noundef %0, i32 noundef 2364, i32 noundef 1989) #2
br label %16
16: ; preds = %12, %4
%17 = tail call i32 @b43_phy_switch_macfreq(ptr noundef %0, i32 noundef %1) #2
ret void
}
declare i32 @b43_phy_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_phy_switch_macfreq(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)"}
| fastsocket_kernel_drivers_net_wireless_b43_extr_phy_lcn.c_b43_phy_lcn_txrx_spur_avoidance_mode |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_navi10_ih.c_navi10_ih_set_powergating_state.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_navi10_ih.c_navi10_ih_set_powergating_state.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 @navi10_ih_set_powergating_state], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @navi10_ih_set_powergating_state(ptr nocapture readnone %0, i32 %1) #0 {
ret i32 0
}
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_navi10_ih.c_navi10_ih_set_powergating_state.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_navi10_ih.c_navi10_ih_set_powergating_state.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 @navi10_ih_set_powergating_state], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @navi10_ih_set_powergating_state(ptr nocapture readnone %0, i32 %1) #0 {
ret i32 0
}
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_navi10_ih.c_navi10_ih_set_powergating_state |
; ModuleID = 'AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_sqlite3_column_blob.c'
source_filename = "AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_sqlite3_column_blob.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 @sqlite3_column_blob(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @columnMem(ptr noundef %0, i32 noundef %1) #2
%4 = tail call ptr @sqlite3_value_blob(i32 noundef %3) #2
%5 = tail call i32 @columnMallocFailure(ptr noundef %0) #2
ret ptr %4
}
declare ptr @sqlite3_value_blob(i32 noundef) local_unnamed_addr #1
declare i32 @columnMem(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @columnMallocFailure(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/wcdb/android/sqlcipher/extr_sqlite3.c_sqlite3_column_blob.c'
source_filename = "AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_sqlite3_column_blob.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 @sqlite3_column_blob(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @columnMem(ptr noundef %0, i32 noundef %1) #2
%4 = tail call ptr @sqlite3_value_blob(i32 noundef %3) #2
%5 = tail call i32 @columnMallocFailure(ptr noundef %0) #2
ret ptr %4
}
declare ptr @sqlite3_value_blob(i32 noundef) local_unnamed_addr #1
declare i32 @columnMem(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @columnMallocFailure(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)"}
| wcdb_android_sqlcipher_extr_sqlite3.c_sqlite3_column_blob |
; ModuleID = 'AnghaBench/freebsd/sys/rpc/extr_rpc_generic.c___rpc_socket2sockinfo.c'
source_filename = "AnghaBench/freebsd/sys/rpc/extr_rpc_generic.c___rpc_socket2sockinfo.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.sockopt = type { ptr, i32, ptr, i32, i32, i32 }
%struct.socket = type { ptr, i32 }
%struct.sockaddr = type { i64, i32 }
%struct.__rpc_sockinfo = type { i32, i32, i64, i32 }
@M_SONAME = dso_local local_unnamed_addr global i32 0, align 4
@SOPT_GET = dso_local local_unnamed_addr global i32 0, align 4
@SOL_SOCKET = dso_local local_unnamed_addr global i32 0, align 4
@SO_TYPE = dso_local local_unnamed_addr global i32 0, align 4
@AF_LOCAL = dso_local local_unnamed_addr global i64 0, align 8
@SOCK_STREAM = dso_local local_unnamed_addr global i32 0, align 4
@IPPROTO_TCP = dso_local local_unnamed_addr global i32 0, align 4
@SOCK_DGRAM = dso_local local_unnamed_addr global i32 0, align 4
@IPPROTO_UDP = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @__rpc_socket2sockinfo(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca %struct.sockopt, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #3
%6 = getelementptr inbounds %struct.socket, ptr %0, i64 0, i32 1
%7 = load i32, ptr %6, align 8, !tbaa !5
%8 = tail call i32 @CURVNET_SET(i32 noundef %7) #3
%9 = load ptr, ptr %0, align 8, !tbaa !11
%10 = load ptr, ptr %9, align 8, !tbaa !12
%11 = load ptr, ptr %10, align 8, !tbaa !14
%12 = call i32 %11(ptr noundef nonnull %0, ptr noundef nonnull %4) #3
%13 = call i32 (...) @CURVNET_RESTORE() #3
%14 = icmp eq i32 %12, 0
br i1 %14, label %15, label %51
15: ; preds = %2
%16 = load ptr, ptr %4, align 8, !tbaa !16
%17 = getelementptr inbounds %struct.sockaddr, ptr %16, i64 0, i32 1
%18 = load i32, ptr %17, align 8, !tbaa !17
%19 = getelementptr inbounds %struct.__rpc_sockinfo, ptr %1, i64 0, i32 3
store i32 %18, ptr %19, align 8, !tbaa !20
%20 = load i64, ptr %16, align 8, !tbaa !22
%21 = load i32, ptr @M_SONAME, align 4, !tbaa !23
%22 = call i32 @free(ptr noundef nonnull %16, i32 noundef %21) #3
%23 = load i32, ptr @SOPT_GET, align 4, !tbaa !23
%24 = getelementptr inbounds %struct.sockopt, ptr %5, i64 0, i32 5
store i32 %23, ptr %24, align 8, !tbaa !24
%25 = load i32, ptr @SOL_SOCKET, align 4, !tbaa !23
%26 = getelementptr inbounds %struct.sockopt, ptr %5, i64 0, i32 4
store i32 %25, ptr %26, align 4, !tbaa !26
%27 = load i32, ptr @SO_TYPE, align 4, !tbaa !23
%28 = getelementptr inbounds %struct.sockopt, ptr %5, i64 0, i32 3
store i32 %27, ptr %28, align 8, !tbaa !27
store ptr %3, ptr %5, align 8, !tbaa !28
%29 = getelementptr inbounds %struct.sockopt, ptr %5, i64 0, i32 1
store i32 4, ptr %29, align 8, !tbaa !29
%30 = getelementptr inbounds %struct.sockopt, ptr %5, i64 0, i32 2
store ptr null, ptr %30, align 8, !tbaa !30
%31 = call i32 @sogetopt(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %51
33: ; preds = %15
%34 = load i64, ptr @AF_LOCAL, align 8, !tbaa !31
%35 = icmp eq i64 %20, %34
%36 = load i32, ptr %3, align 4, !tbaa !23
br i1 %35, label %47, label %37
37: ; preds = %33
%38 = load i32, ptr @SOCK_STREAM, align 4, !tbaa !23
%39 = icmp eq i32 %36, %38
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = load i32, ptr @IPPROTO_TCP, align 4, !tbaa !23
br label %47
42: ; preds = %37
%43 = load i32, ptr @SOCK_DGRAM, align 4, !tbaa !23
%44 = icmp eq i32 %36, %43
br i1 %44, label %45, label %51
45: ; preds = %42
%46 = load i32, ptr @IPPROTO_UDP, align 4, !tbaa !23
br label %47
47: ; preds = %33, %40, %45
%48 = phi i32 [ %41, %40 ], [ %46, %45 ], [ 0, %33 ]
%49 = getelementptr inbounds %struct.__rpc_sockinfo, ptr %1, i64 0, i32 2
store i64 %20, ptr %49, align 8, !tbaa !32
store i32 %48, ptr %1, align 8, !tbaa !33
%50 = getelementptr inbounds %struct.__rpc_sockinfo, ptr %1, i64 0, i32 1
store i32 %36, ptr %50, align 4, !tbaa !34
br label %51
51: ; preds = %42, %15, %2, %47
%52 = phi i32 [ 1, %47 ], [ 0, %2 ], [ 0, %15 ], [ 0, %42 ]
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %52
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @CURVNET_SET(i32 noundef) local_unnamed_addr #2
declare i32 @CURVNET_RESTORE(...) local_unnamed_addr #2
declare i32 @free(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sogetopt(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, !10, i64 8}
!6 = !{!"socket", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_4__", !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_3__", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"sockaddr", !19, i64 0, !10, i64 8}
!19 = !{!"long", !8, i64 0}
!20 = !{!21, !10, i64 16}
!21 = !{!"__rpc_sockinfo", !10, i64 0, !10, i64 4, !19, i64 8, !10, i64 16}
!22 = !{!18, !19, i64 0}
!23 = !{!10, !10, i64 0}
!24 = !{!25, !10, i64 32}
!25 = !{!"sockopt", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32}
!26 = !{!25, !10, i64 28}
!27 = !{!25, !10, i64 24}
!28 = !{!25, !7, i64 0}
!29 = !{!25, !10, i64 8}
!30 = !{!25, !7, i64 16}
!31 = !{!19, !19, i64 0}
!32 = !{!21, !19, i64 8}
!33 = !{!21, !10, i64 0}
!34 = !{!21, !10, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/sys/rpc/extr_rpc_generic.c___rpc_socket2sockinfo.c'
source_filename = "AnghaBench/freebsd/sys/rpc/extr_rpc_generic.c___rpc_socket2sockinfo.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.sockopt = type { ptr, i32, ptr, i32, i32, i32 }
@M_SONAME = common local_unnamed_addr global i32 0, align 4
@SOPT_GET = common local_unnamed_addr global i32 0, align 4
@SOL_SOCKET = common local_unnamed_addr global i32 0, align 4
@SO_TYPE = common local_unnamed_addr global i32 0, align 4
@AF_LOCAL = common local_unnamed_addr global i64 0, align 8
@SOCK_STREAM = common local_unnamed_addr global i32 0, align 4
@IPPROTO_TCP = common local_unnamed_addr global i32 0, align 4
@SOCK_DGRAM = common local_unnamed_addr global i32 0, align 4
@IPPROTO_UDP = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @__rpc_socket2sockinfo(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca %struct.sockopt, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #3
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i32, ptr %6, align 8, !tbaa !6
%8 = tail call i32 @CURVNET_SET(i32 noundef %7) #3
%9 = load ptr, ptr %0, align 8, !tbaa !12
%10 = load ptr, ptr %9, align 8, !tbaa !13
%11 = load ptr, ptr %10, align 8, !tbaa !15
%12 = call i32 %11(ptr noundef nonnull %0, ptr noundef nonnull %4) #3
%13 = call i32 @CURVNET_RESTORE() #3
%14 = icmp eq i32 %12, 0
br i1 %14, label %15, label %51
15: ; preds = %2
%16 = load ptr, ptr %4, align 8, !tbaa !17
%17 = getelementptr inbounds i8, ptr %16, i64 8
%18 = load i32, ptr %17, align 8, !tbaa !18
%19 = getelementptr inbounds i8, ptr %1, i64 16
store i32 %18, ptr %19, align 8, !tbaa !21
%20 = load i64, ptr %16, align 8, !tbaa !23
%21 = load i32, ptr @M_SONAME, align 4, !tbaa !24
%22 = call i32 @free(ptr noundef nonnull %16, i32 noundef %21) #3
%23 = load i32, ptr @SOPT_GET, align 4, !tbaa !24
%24 = getelementptr inbounds i8, ptr %5, i64 32
store i32 %23, ptr %24, align 8, !tbaa !25
%25 = load i32, ptr @SOL_SOCKET, align 4, !tbaa !24
%26 = getelementptr inbounds i8, ptr %5, i64 28
store i32 %25, ptr %26, align 4, !tbaa !27
%27 = load i32, ptr @SO_TYPE, align 4, !tbaa !24
%28 = getelementptr inbounds i8, ptr %5, i64 24
store i32 %27, ptr %28, align 8, !tbaa !28
store ptr %3, ptr %5, align 8, !tbaa !29
%29 = getelementptr inbounds i8, ptr %5, i64 8
store i32 4, ptr %29, align 8, !tbaa !30
%30 = getelementptr inbounds i8, ptr %5, i64 16
store ptr null, ptr %30, align 8, !tbaa !31
%31 = call i32 @sogetopt(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %51
33: ; preds = %15
%34 = load i64, ptr @AF_LOCAL, align 8, !tbaa !32
%35 = icmp eq i64 %20, %34
%36 = load i32, ptr %3, align 4, !tbaa !24
br i1 %35, label %47, label %37
37: ; preds = %33
%38 = load i32, ptr @SOCK_STREAM, align 4, !tbaa !24
%39 = icmp eq i32 %36, %38
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = load i32, ptr @IPPROTO_TCP, align 4, !tbaa !24
br label %47
42: ; preds = %37
%43 = load i32, ptr @SOCK_DGRAM, align 4, !tbaa !24
%44 = icmp eq i32 %36, %43
br i1 %44, label %45, label %51
45: ; preds = %42
%46 = load i32, ptr @IPPROTO_UDP, align 4, !tbaa !24
br label %47
47: ; preds = %33, %40, %45
%48 = phi i32 [ %41, %40 ], [ %46, %45 ], [ 0, %33 ]
%49 = getelementptr inbounds i8, ptr %1, i64 8
store i64 %20, ptr %49, align 8, !tbaa !33
store i32 %48, ptr %1, align 8, !tbaa !34
%50 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %36, ptr %50, align 4, !tbaa !35
br label %51
51: ; preds = %42, %15, %2, %47
%52 = phi i32 [ 1, %47 ], [ 0, %2 ], [ 0, %15 ], [ 0, %42 ]
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %52
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @CURVNET_SET(i32 noundef) local_unnamed_addr #2
declare i32 @CURVNET_RESTORE(...) local_unnamed_addr #2
declare i32 @free(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sogetopt(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, !11, i64 8}
!7 = !{!"socket", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_4__", !8, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_3__", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !11, i64 8}
!19 = !{!"sockaddr", !20, i64 0, !11, i64 8}
!20 = !{!"long", !9, i64 0}
!21 = !{!22, !11, i64 16}
!22 = !{!"__rpc_sockinfo", !11, i64 0, !11, i64 4, !20, i64 8, !11, i64 16}
!23 = !{!19, !20, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!26, !11, i64 32}
!26 = !{!"sockopt", !8, i64 0, !11, i64 8, !8, i64 16, !11, i64 24, !11, i64 28, !11, i64 32}
!27 = !{!26, !11, i64 28}
!28 = !{!26, !11, i64 24}
!29 = !{!26, !8, i64 0}
!30 = !{!26, !11, i64 8}
!31 = !{!26, !8, i64 16}
!32 = !{!20, !20, i64 0}
!33 = !{!22, !20, i64 8}
!34 = !{!22, !11, i64 0}
!35 = !{!22, !11, i64 4}
| freebsd_sys_rpc_extr_rpc_generic.c___rpc_socket2sockinfo |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/nouveau/extr_nouveau_hw.c_nv_save_state_palette.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/nouveau/extr_nouveau_hw.c_nv_save_state_palette.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_2__ = type { ptr }
@NV_PRMDIO_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@NV_PRMDIO_PIXEL_MASK = dso_local local_unnamed_addr global i64 0, align 8
@NV_PRMDIO_PIXEL_MASK_MASK = dso_local local_unnamed_addr global i32 0, align 4
@NV_PRMDIO_READ_MODE_ADDRESS = dso_local local_unnamed_addr global i64 0, align 8
@NV_PRMDIO_PALETTE_DATA = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @nv_save_state_palette], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @nv_save_state_palette(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = tail call ptr @nouveau_dev(ptr noundef %0) #2
%5 = load i32, ptr @NV_PRMDIO_SIZE, align 4, !tbaa !5
%6 = mul nsw i32 %5, %1
%7 = load i64, ptr @NV_PRMDIO_PIXEL_MASK, align 8, !tbaa !9
%8 = sext i32 %6 to i64
%9 = add nsw i64 %7, %8
%10 = load i32, ptr @NV_PRMDIO_PIXEL_MASK_MASK, align 4, !tbaa !5
%11 = tail call i32 @nv_wr08(ptr noundef %4, i64 noundef %9, i32 noundef %10) #2
%12 = load i64, ptr @NV_PRMDIO_READ_MODE_ADDRESS, align 8, !tbaa !9
%13 = add nsw i64 %12, %8
%14 = tail call i32 @nv_wr08(ptr noundef %4, i64 noundef %13, i32 noundef 0) #2
%15 = sext i32 %1 to i64
br label %16
16: ; preds = %3, %16
%17 = phi i64 [ 0, %3 ], [ %25, %16 ]
%18 = load i64, ptr @NV_PRMDIO_PALETTE_DATA, align 8, !tbaa !9
%19 = add nsw i64 %18, %8
%20 = tail call i32 @nv_rd08(ptr noundef %4, i64 noundef %19) #2
%21 = load ptr, ptr %2, align 8, !tbaa !11
%22 = getelementptr inbounds %struct.TYPE_2__, ptr %21, i64 %15
%23 = load ptr, ptr %22, align 8, !tbaa !14
%24 = getelementptr inbounds i32, ptr %23, i64 %17
store i32 %20, ptr %24, align 4, !tbaa !5
%25 = add nuw nsw i64 %17, 1
%26 = icmp eq i64 %25, 768
br i1 %26, label %27, label %16, !llvm.loop !16
27: ; preds = %16
%28 = tail call i32 @NVSetEnablePalette(ptr noundef %0, i32 noundef %1, i32 noundef 0) #2
ret void
}
declare ptr @nouveau_dev(ptr noundef) local_unnamed_addr #1
declare i32 @nv_wr08(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @nv_rd08(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @NVSetEnablePalette(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, !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, !13, i64 0}
!12 = !{!"nv04_mode_state", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_2__", !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/nouveau/extr_nouveau_hw.c_nv_save_state_palette.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/nouveau/extr_nouveau_hw.c_nv_save_state_palette.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 { ptr }
@NV_PRMDIO_SIZE = common local_unnamed_addr global i32 0, align 4
@NV_PRMDIO_PIXEL_MASK = common local_unnamed_addr global i64 0, align 8
@NV_PRMDIO_PIXEL_MASK_MASK = common local_unnamed_addr global i32 0, align 4
@NV_PRMDIO_READ_MODE_ADDRESS = common local_unnamed_addr global i64 0, align 8
@NV_PRMDIO_PALETTE_DATA = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @nv_save_state_palette], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @nv_save_state_palette(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = tail call ptr @nouveau_dev(ptr noundef %0) #2
%5 = load i32, ptr @NV_PRMDIO_SIZE, align 4, !tbaa !6
%6 = mul nsw i32 %5, %1
%7 = load i64, ptr @NV_PRMDIO_PIXEL_MASK, align 8, !tbaa !10
%8 = sext i32 %6 to i64
%9 = add nsw i64 %7, %8
%10 = load i32, ptr @NV_PRMDIO_PIXEL_MASK_MASK, align 4, !tbaa !6
%11 = tail call i32 @nv_wr08(ptr noundef %4, i64 noundef %9, i32 noundef %10) #2
%12 = load i64, ptr @NV_PRMDIO_READ_MODE_ADDRESS, align 8, !tbaa !10
%13 = add nsw i64 %12, %8
%14 = tail call i32 @nv_wr08(ptr noundef %4, i64 noundef %13, i32 noundef 0) #2
%15 = sext i32 %1 to i64
br label %16
16: ; preds = %3, %16
%17 = phi i64 [ 0, %3 ], [ %25, %16 ]
%18 = load i64, ptr @NV_PRMDIO_PALETTE_DATA, align 8, !tbaa !10
%19 = add nsw i64 %18, %8
%20 = tail call i32 @nv_rd08(ptr noundef %4, i64 noundef %19) #2
%21 = load ptr, ptr %2, align 8, !tbaa !12
%22 = getelementptr inbounds %struct.TYPE_2__, ptr %21, i64 %15
%23 = load ptr, ptr %22, align 8, !tbaa !15
%24 = getelementptr inbounds i32, ptr %23, i64 %17
store i32 %20, ptr %24, align 4, !tbaa !6
%25 = add nuw nsw i64 %17, 1
%26 = icmp eq i64 %25, 768
br i1 %26, label %27, label %16, !llvm.loop !17
27: ; preds = %16
%28 = tail call i32 @NVSetEnablePalette(ptr noundef %0, i32 noundef %1, i32 noundef 0) #2
ret void
}
declare ptr @nouveau_dev(ptr noundef) local_unnamed_addr #1
declare i32 @nv_wr08(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @nv_rd08(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @NVSetEnablePalette(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, !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, !14, i64 0}
!13 = !{!"nv04_mode_state", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_2__", !14, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_drivers_gpu_drm_nouveau_extr_nouveau_hw.c_nv_save_state_palette |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/oss/extr_au1550_ac97.c_translate_from_user.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/oss/extr_au1550_ac97.c_translate_from_user.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.dmabuf = type { i32, i32, i32, i32, i32 }
@EFAULT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @translate_from_user], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @translate_from_user(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca [12 x i8], align 1
%6 = alloca [6 x i32], align 16
%7 = load i32, ptr %0, align 4, !tbaa !5
%8 = icmp ne i32 %7, 1
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
%9 = getelementptr inbounds %struct.dmabuf, ptr %0, i64 0, i32 1
%10 = load i32, ptr %9, align 4, !tbaa !10
%11 = icmp eq i32 %10, 16
%12 = select i1 %11, i1 %8, i1 false
%13 = getelementptr inbounds %struct.dmabuf, ptr %0, i64 0, i32 2
%14 = load i32, ptr %13, align 4, !tbaa !11
%15 = icmp eq i32 %14, 1
%16 = select i1 %12, i1 %15, i1 false
br i1 %16, label %17, label %23
17: ; preds = %4
%18 = tail call i64 @copy_from_user(ptr noundef %1, ptr noundef %2, i32 noundef %3) #3
%19 = icmp eq i64 %18, 0
br i1 %19, label %88, label %20
20: ; preds = %17
%21 = load i32, ptr @EFAULT, align 4, !tbaa !12
%22 = sub nsw i32 0, %21
br label %88
23: ; preds = %4
%24 = getelementptr inbounds %struct.dmabuf, ptr %0, i64 0, i32 3
%25 = load i32, ptr %24, align 4, !tbaa !13
%26 = getelementptr inbounds %struct.dmabuf, ptr %0, i64 0, i32 2
%27 = mul nsw i32 %14, %25
%28 = sdiv i32 %3, %27
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %86
30: ; preds = %23
%31 = getelementptr inbounds %struct.dmabuf, ptr %0, i64 0, i32 4
%32 = sext i32 %27 to i64
%33 = load i32, ptr %31, align 4, !tbaa !14
br label %34
34: ; preds = %30, %79
%35 = phi i32 [ %33, %30 ], [ %80, %79 ]
%36 = phi ptr [ %1, %30 ], [ %83, %79 ]
%37 = phi ptr [ %2, %30 ], [ %82, %79 ]
%38 = phi i32 [ 0, %30 ], [ %84, %79 ]
%39 = call i64 @copy_from_user(ptr noundef nonnull %5, ptr noundef %37, i32 noundef %35) #3
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %34
%42 = load i32, ptr %0, align 4, !tbaa !5
%43 = icmp sgt i32 %42, 0
br i1 %43, label %50, label %47
44: ; preds = %34
%45 = load i32, ptr @EFAULT, align 4, !tbaa !12
%46 = sub nsw i32 0, %45
br label %88
47: ; preds = %68, %41
%48 = load i32, ptr %26, align 4, !tbaa !11
%49 = icmp sgt i32 %48, 0
br i1 %49, label %72, label %79
50: ; preds = %41, %68
%51 = phi i64 [ %65, %68 ], [ 0, %41 ]
%52 = load i32, ptr %9, align 4, !tbaa !10
%53 = icmp eq i32 %52, 8
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 %51
%56 = load i8, ptr %55, align 1, !tbaa !15
%57 = call i32 @U8_TO_S16(i8 noundef signext %56) #3
br label %62
58: ; preds = %50
%59 = shl nuw nsw i64 %51, 1
%60 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 %59
%61 = load i32, ptr %60, align 1, !tbaa !12
br label %62
62: ; preds = %58, %54
%63 = phi i32 [ %57, %54 ], [ %61, %58 ]
%64 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 %51
store i32 %63, ptr %64, align 4, !tbaa !12
%65 = add nuw nsw i64 %51, 1
br i1 %8, label %68, label %66
66: ; preds = %62
%67 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 %65
store i32 %63, ptr %67, align 4, !tbaa !12
br label %68
68: ; preds = %62, %66
%69 = load i32, ptr %0, align 4, !tbaa !5
%70 = sext i32 %69 to i64
%71 = icmp slt i64 %65, %70
br i1 %71, label %50, label %47, !llvm.loop !16
72: ; preds = %47, %72
%73 = phi i32 [ %76, %72 ], [ 0, %47 ]
%74 = load i32, ptr %24, align 4, !tbaa !13
%75 = call i32 @memcpy(ptr noundef %36, ptr noundef nonnull %6, i32 noundef %74) #3
%76 = add nuw nsw i32 %73, 1
%77 = load i32, ptr %26, align 4, !tbaa !11
%78 = icmp slt i32 %76, %77
br i1 %78, label %72, label %79, !llvm.loop !18
79: ; preds = %72, %47
%80 = load i32, ptr %31, align 4, !tbaa !14
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %37, i64 %81
%83 = getelementptr inbounds i8, ptr %36, i64 %32
%84 = add nuw nsw i32 %38, 1
%85 = icmp eq i32 %84, %28
br i1 %85, label %86, label %34, !llvm.loop !19
86: ; preds = %79, %23
%87 = mul nsw i32 %28, %27
br label %88
88: ; preds = %17, %86, %44, %20
%89 = phi i32 [ %46, %44 ], [ %87, %86 ], [ %22, %20 ], [ %3, %17 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #3
ret i32 %89
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @copy_from_user(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @U8_TO_S16(i8 noundef signext) local_unnamed_addr #2
declare i32 @memcpy(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
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 = !{!"dmabuf", !7, i64 0, !7, i64 4, !7, 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 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !7, i64 16}
!15 = !{!8, !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/oss/extr_au1550_ac97.c_translate_from_user.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/oss/extr_au1550_ac97.c_translate_from_user.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
@llvm.used = appending global [1 x ptr] [ptr @translate_from_user], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @translate_from_user(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca [12 x i8], align 1
%6 = alloca [6 x i32], align 4
%7 = load i32, ptr %0, align 4, !tbaa !6
%8 = icmp ne i32 %7, 1
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
%9 = getelementptr inbounds i8, ptr %0, i64 4
%10 = load i32, ptr %9, align 4, !tbaa !11
%11 = icmp eq i32 %10, 16
%12 = select i1 %11, i1 %8, i1 false
%13 = getelementptr inbounds i8, ptr %0, i64 8
%14 = load i32, ptr %13, align 4, !tbaa !12
%15 = icmp eq i32 %14, 1
%16 = select i1 %12, i1 %15, i1 false
br i1 %16, label %17, label %23
17: ; preds = %4
%18 = tail call i64 @copy_from_user(ptr noundef %1, ptr noundef %2, i32 noundef %3) #3
%19 = icmp eq i64 %18, 0
br i1 %19, label %87, label %20
20: ; preds = %17
%21 = load i32, ptr @EFAULT, align 4, !tbaa !13
%22 = sub nsw i32 0, %21
br label %87
23: ; preds = %4
%24 = getelementptr inbounds i8, ptr %0, i64 12
%25 = load i32, ptr %24, align 4, !tbaa !14
%26 = mul nsw i32 %14, %25
%27 = sdiv i32 %3, %26
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %85
29: ; preds = %23
%30 = getelementptr inbounds i8, ptr %0, i64 16
%31 = sext i32 %26 to i64
%32 = load i32, ptr %30, align 4, !tbaa !15
br label %33
33: ; preds = %29, %78
%34 = phi i32 [ %32, %29 ], [ %79, %78 ]
%35 = phi ptr [ %1, %29 ], [ %82, %78 ]
%36 = phi ptr [ %2, %29 ], [ %81, %78 ]
%37 = phi i32 [ 0, %29 ], [ %83, %78 ]
%38 = call i64 @copy_from_user(ptr noundef nonnull %5, ptr noundef %36, i32 noundef %34) #3
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %33
%41 = load i32, ptr %0, align 4, !tbaa !6
%42 = icmp sgt i32 %41, 0
br i1 %42, label %49, label %46
43: ; preds = %33
%44 = load i32, ptr @EFAULT, align 4, !tbaa !13
%45 = sub nsw i32 0, %44
br label %87
46: ; preds = %67, %40
%47 = load i32, ptr %13, align 4, !tbaa !12
%48 = icmp sgt i32 %47, 0
br i1 %48, label %71, label %78
49: ; preds = %40, %67
%50 = phi i64 [ %64, %67 ], [ 0, %40 ]
%51 = load i32, ptr %9, align 4, !tbaa !11
%52 = icmp eq i32 %51, 8
br i1 %52, label %53, label %57
53: ; preds = %49
%54 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 %50
%55 = load i8, ptr %54, align 1, !tbaa !16
%56 = call i32 @U8_TO_S16(i8 noundef signext %55) #3
br label %61
57: ; preds = %49
%58 = shl nuw nsw i64 %50, 1
%59 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 %58
%60 = load i32, ptr %59, align 1, !tbaa !13
br label %61
61: ; preds = %57, %53
%62 = phi i32 [ %56, %53 ], [ %60, %57 ]
%63 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 %50
store i32 %62, ptr %63, align 4, !tbaa !13
%64 = add nuw nsw i64 %50, 1
br i1 %8, label %67, label %65
65: ; preds = %61
%66 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 %64
store i32 %62, ptr %66, align 4, !tbaa !13
br label %67
67: ; preds = %61, %65
%68 = load i32, ptr %0, align 4, !tbaa !6
%69 = sext i32 %68 to i64
%70 = icmp slt i64 %64, %69
br i1 %70, label %49, label %46, !llvm.loop !17
71: ; preds = %46, %71
%72 = phi i32 [ %75, %71 ], [ 0, %46 ]
%73 = load i32, ptr %24, align 4, !tbaa !14
%74 = call i32 @memcpy(ptr noundef %35, ptr noundef nonnull %6, i32 noundef %73) #3
%75 = add nuw nsw i32 %72, 1
%76 = load i32, ptr %13, align 4, !tbaa !12
%77 = icmp slt i32 %75, %76
br i1 %77, label %71, label %78, !llvm.loop !19
78: ; preds = %71, %46
%79 = load i32, ptr %30, align 4, !tbaa !15
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %36, i64 %80
%82 = getelementptr inbounds i8, ptr %35, i64 %31
%83 = add nuw nsw i32 %37, 1
%84 = icmp eq i32 %83, %27
br i1 %84, label %85, label %33, !llvm.loop !20
85: ; preds = %78, %23
%86 = mul nsw i32 %27, %26
br label %87
87: ; preds = %17, %85, %43, %20
%88 = phi i32 [ %45, %43 ], [ %86, %85 ], [ %22, %20 ], [ %3, %17 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #3
ret i32 %88
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @copy_from_user(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @U8_TO_S16(i8 noundef signext) local_unnamed_addr #2
declare i32 @memcpy(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
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 = !{!"dmabuf", !8, i64 0, !8, i64 4, !8, 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 = !{!7, !8, i64 4}
!12 = !{!7, !8, i64 8}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !8, i64 12}
!15 = !{!7, !8, i64 16}
!16 = !{!9, !9, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
| fastsocket_kernel_sound_oss_extr_au1550_ac97.c_translate_from_user |
; ModuleID = 'AnghaBench/linux/scripts/extr_sortextable.c_r8be.c'
source_filename = "AnghaBench/linux/scripts/extr_sortextable.c_r8be.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 @r8be], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @r8be(ptr noundef %0) #0 {
%2 = tail call i32 @get_unaligned_be64(ptr noundef %0) #2
ret i32 %2
}
declare i32 @get_unaligned_be64(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/linux/scripts/extr_sortextable.c_r8be.c'
source_filename = "AnghaBench/linux/scripts/extr_sortextable.c_r8be.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 @r8be], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @r8be(ptr noundef %0) #0 {
%2 = tail call i32 @get_unaligned_be64(ptr noundef %0) #2
ret i32 %2
}
declare i32 @get_unaligned_be64(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)"}
| linux_scripts_extr_sortextable.c_r8be |
; ModuleID = 'AnghaBench/freebsd/sys/net/extr_raw_usrreq.c_raw_udisconnect.c'
source_filename = "AnghaBench/freebsd/sys/net/extr_raw_usrreq.c_raw_udisconnect.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 [28 x i8] c"raw_udisconnect: rp == NULL\00", align 1
@ENOTCONN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @raw_udisconnect], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @raw_udisconnect(ptr noundef %0) #0 {
%2 = tail call ptr @sotorawcb(ptr noundef %0) #2
%3 = icmp ne ptr %2, null
%4 = zext i1 %3 to i32
%5 = tail call i32 @KASSERT(i32 noundef %4, ptr noundef nonnull @.str) #2
%6 = load i32, ptr @ENOTCONN, align 4, !tbaa !5
ret i32 %6
}
declare i32 @KASSERT(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @sotorawcb(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/freebsd/sys/net/extr_raw_usrreq.c_raw_udisconnect.c'
source_filename = "AnghaBench/freebsd/sys/net/extr_raw_usrreq.c_raw_udisconnect.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 [28 x i8] c"raw_udisconnect: rp == NULL\00", align 1
@ENOTCONN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @raw_udisconnect], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @raw_udisconnect(ptr noundef %0) #0 {
%2 = tail call ptr @sotorawcb(ptr noundef %0) #2
%3 = icmp ne ptr %2, null
%4 = zext i1 %3 to i32
%5 = tail call i32 @KASSERT(i32 noundef %4, ptr noundef nonnull @.str) #2
%6 = load i32, ptr @ENOTCONN, align 4, !tbaa !6
ret i32 %6
}
declare i32 @KASSERT(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @sotorawcb(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"}
| freebsd_sys_net_extr_raw_usrreq.c_raw_udisconnect |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/extr_nouveau_bo.c_nouveau_bo_invalidate_caches.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/extr_nouveau_bo.c_nouveau_bo_invalidate_caches.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 @nouveau_bo_invalidate_caches], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @nouveau_bo_invalidate_caches(ptr nocapture readnone %0, i32 %1) #0 {
ret i32 0
}
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/nouveau/extr_nouveau_bo.c_nouveau_bo_invalidate_caches.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/extr_nouveau_bo.c_nouveau_bo_invalidate_caches.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 @nouveau_bo_invalidate_caches], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @nouveau_bo_invalidate_caches(ptr nocapture readnone %0, i32 %1) #0 {
ret i32 0
}
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_nouveau_extr_nouveau_bo.c_nouveau_bo_invalidate_caches |
; ModuleID = 'AnghaBench/linux/drivers/dma/extr_idma64.c_idma64_off.c'
source_filename = "AnghaBench/linux/drivers/dma/extr_idma64.c_idma64_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"
@CFG = dso_local local_unnamed_addr global i32 0, align 4
@XFER = dso_local local_unnamed_addr global i32 0, align 4
@BLOCK = dso_local local_unnamed_addr global i32 0, align 4
@SRC_TRAN = dso_local local_unnamed_addr global i32 0, align 4
@DST_TRAN = dso_local local_unnamed_addr global i32 0, align 4
@ERROR = dso_local local_unnamed_addr global i32 0, align 4
@IDMA64_CFG_DMA_EN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @idma64_off], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @idma64_off(ptr noundef %0) #0 {
%2 = load i32, ptr @CFG, align 4, !tbaa !5
%3 = tail call i32 @dma_writel(ptr noundef %0, i32 noundef %2, i32 noundef 0) #2
%4 = load i32, ptr @XFER, align 4, !tbaa !5
%5 = tail call i32 @MASK(i32 noundef %4) #2
%6 = load i32, ptr %0, align 4, !tbaa !9
%7 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %5, i32 noundef %6) #2
%8 = load i32, ptr @BLOCK, align 4, !tbaa !5
%9 = tail call i32 @MASK(i32 noundef %8) #2
%10 = load i32, ptr %0, align 4, !tbaa !9
%11 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %9, i32 noundef %10) #2
%12 = load i32, ptr @SRC_TRAN, align 4, !tbaa !5
%13 = tail call i32 @MASK(i32 noundef %12) #2
%14 = load i32, ptr %0, align 4, !tbaa !9
%15 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %13, i32 noundef %14) #2
%16 = load i32, ptr @DST_TRAN, align 4, !tbaa !5
%17 = tail call i32 @MASK(i32 noundef %16) #2
%18 = load i32, ptr %0, align 4, !tbaa !9
%19 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %17, i32 noundef %18) #2
%20 = load i32, ptr @ERROR, align 4, !tbaa !5
%21 = tail call i32 @MASK(i32 noundef %20) #2
%22 = load i32, ptr %0, align 4, !tbaa !9
%23 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %21, i32 noundef %22) #2
br label %24
24: ; preds = %24, %1
%25 = phi i16 [ 100, %1 ], [ %32, %24 ]
%26 = tail call i32 (...) @cpu_relax() #2
%27 = load i32, ptr @CFG, align 4, !tbaa !5
%28 = tail call i32 @dma_readl(ptr noundef nonnull %0, i32 noundef %27) #2
%29 = load i32, ptr @IDMA64_CFG_DMA_EN, align 4, !tbaa !5
%30 = and i32 %29, %28
%31 = icmp eq i32 %30, 0
%32 = add nsw i16 %25, -1
%33 = icmp eq i16 %32, 0
%34 = select i1 %31, i1 true, i1 %33
br i1 %34, label %35, label %24, !llvm.loop !11
35: ; preds = %24
ret void
}
declare i32 @dma_writel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @channel_clear_bit(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MASK(i32 noundef) local_unnamed_addr #1
declare i32 @cpu_relax(...) local_unnamed_addr #1
declare i32 @dma_readl(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"}
!9 = !{!10, !6, i64 0}
!10 = !{!"idma64", !6, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/dma/extr_idma64.c_idma64_off.c'
source_filename = "AnghaBench/linux/drivers/dma/extr_idma64.c_idma64_off.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CFG = common local_unnamed_addr global i32 0, align 4
@XFER = common local_unnamed_addr global i32 0, align 4
@BLOCK = common local_unnamed_addr global i32 0, align 4
@SRC_TRAN = common local_unnamed_addr global i32 0, align 4
@DST_TRAN = common local_unnamed_addr global i32 0, align 4
@ERROR = common local_unnamed_addr global i32 0, align 4
@IDMA64_CFG_DMA_EN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @idma64_off], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @idma64_off(ptr noundef %0) #0 {
%2 = load i32, ptr @CFG, align 4, !tbaa !6
%3 = tail call i32 @dma_writel(ptr noundef %0, i32 noundef %2, i32 noundef 0) #2
%4 = load i32, ptr @XFER, align 4, !tbaa !6
%5 = tail call i32 @MASK(i32 noundef %4) #2
%6 = load i32, ptr %0, align 4, !tbaa !10
%7 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %5, i32 noundef %6) #2
%8 = load i32, ptr @BLOCK, align 4, !tbaa !6
%9 = tail call i32 @MASK(i32 noundef %8) #2
%10 = load i32, ptr %0, align 4, !tbaa !10
%11 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %9, i32 noundef %10) #2
%12 = load i32, ptr @SRC_TRAN, align 4, !tbaa !6
%13 = tail call i32 @MASK(i32 noundef %12) #2
%14 = load i32, ptr %0, align 4, !tbaa !10
%15 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %13, i32 noundef %14) #2
%16 = load i32, ptr @DST_TRAN, align 4, !tbaa !6
%17 = tail call i32 @MASK(i32 noundef %16) #2
%18 = load i32, ptr %0, align 4, !tbaa !10
%19 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %17, i32 noundef %18) #2
%20 = load i32, ptr @ERROR, align 4, !tbaa !6
%21 = tail call i32 @MASK(i32 noundef %20) #2
%22 = load i32, ptr %0, align 4, !tbaa !10
%23 = tail call i32 @channel_clear_bit(ptr noundef nonnull %0, i32 noundef %21, i32 noundef %22) #2
br label %24
24: ; preds = %24, %1
%25 = phi i16 [ 100, %1 ], [ %32, %24 ]
%26 = tail call i32 @cpu_relax() #2
%27 = load i32, ptr @CFG, align 4, !tbaa !6
%28 = tail call i32 @dma_readl(ptr noundef nonnull %0, i32 noundef %27) #2
%29 = load i32, ptr @IDMA64_CFG_DMA_EN, align 4, !tbaa !6
%30 = and i32 %29, %28
%31 = icmp eq i32 %30, 0
%32 = add nsw i16 %25, -1
%33 = icmp eq i16 %32, 0
%34 = select i1 %31, i1 true, i1 %33
br i1 %34, label %35, label %24, !llvm.loop !12
35: ; preds = %24
ret void
}
declare i32 @dma_writel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @channel_clear_bit(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MASK(i32 noundef) local_unnamed_addr #1
declare i32 @cpu_relax(...) local_unnamed_addr #1
declare i32 @dma_readl(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"}
!10 = !{!11, !7, i64 0}
!11 = !{!"idma64", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| linux_drivers_dma_extr_idma64.c_idma64_off |
; ModuleID = 'AnghaBench/lab/engine/code/cgame/extr_cg_info.c_CG_DrawLoadingIcons.c'
source_filename = "AnghaBench/lab/engine/code/cgame/extr_cg_info.c_CG_DrawLoadingIcons.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@loadingPlayerIconCount = dso_local local_unnamed_addr global i32 0, align 4
@loadingPlayerIcons = dso_local local_unnamed_addr global i32* null, align 8
@loadingItemIconCount = dso_local local_unnamed_addr global i32 0, align 4
@loadingItemIcons = dso_local local_unnamed_addr global i32* null, align 8
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (void ()* @CG_DrawLoadingIcons to i8*)], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @CG_DrawLoadingIcons() #0 {
%1 = load i32, i32* @loadingPlayerIconCount, align 4, !tbaa !5
%2 = icmp sgt i32 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %6, %0
%4 = load i32, i32* @loadingItemIconCount, align 4, !tbaa !5
%5 = icmp sgt i32 %4, 0
br i1 %5, label %19, label %35
6: ; preds = %0, %6
%7 = phi i64 [ %15, %6 ], [ 0, %0 ]
%8 = load i32*, i32** @loadingPlayerIcons, align 8, !tbaa !9
%9 = getelementptr inbounds i32, i32* %8, i64 %7
%10 = load i32, i32* %9, align 4, !tbaa !5
%11 = trunc i64 %7 to i32
%12 = mul i32 %11, 78
%13 = add i32 %12, 16
%14 = tail call i32 @CG_DrawPic(i32 noundef %13, i32 noundef 284, i32 noundef 64, i32 noundef 64, i32 noundef %10) #2
%15 = add nuw nsw i64 %7, 1
%16 = load i32, i32* @loadingPlayerIconCount, align 4, !tbaa !5
%17 = sext i32 %16 to i64
%18 = icmp slt i64 %15, %17
br i1 %18, label %6, label %3, !llvm.loop !11
19: ; preds = %3, %19
%20 = phi i64 [ %31, %19 ], [ 0, %3 ]
%21 = icmp ugt i64 %20, 12
%22 = select i1 %21, i32 400, i32 360
%23 = trunc i64 %20 to i32
%24 = urem i32 %23, 13
%25 = mul nuw nsw i32 %24, 48
%26 = add nuw nsw i32 %25, 16
%27 = load i32*, i32** @loadingItemIcons, align 8, !tbaa !9
%28 = getelementptr inbounds i32, i32* %27, i64 %20
%29 = load i32, i32* %28, align 4, !tbaa !5
%30 = tail call i32 @CG_DrawPic(i32 noundef %26, i32 noundef %22, i32 noundef 32, i32 noundef 32, i32 noundef %29) #2
%31 = add nuw nsw i64 %20, 1
%32 = load i32, i32* @loadingItemIconCount, align 4, !tbaa !5
%33 = sext i32 %32 to i64
%34 = icmp slt i64 %31, %33
br i1 %34, label %19, label %35, !llvm.loop !13
35: ; preds = %19, %3
ret void
}
declare i32 @CG_DrawPic(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+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 7, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{!"Ubuntu clang version 14.0.0-1ubuntu1.1"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
| ; ModuleID = 'AnghaBench/lab/engine/code/cgame/extr_cg_info.c_CG_DrawLoadingIcons.c'
source_filename = "AnghaBench/lab/engine/code/cgame/extr_cg_info.c_CG_DrawLoadingIcons.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@loadingPlayerIconCount = common local_unnamed_addr global i32 0, align 4
@loadingPlayerIcons = common local_unnamed_addr global ptr null, align 8
@loadingItemIconCount = common local_unnamed_addr global i32 0, align 4
@loadingItemIcons = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @CG_DrawLoadingIcons], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @CG_DrawLoadingIcons() #0 {
%1 = load i32, ptr @loadingPlayerIconCount, align 4, !tbaa !6
%2 = icmp sgt i32 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %6, %0
%4 = load i32, ptr @loadingItemIconCount, align 4, !tbaa !6
%5 = icmp sgt i32 %4, 0
br i1 %5, label %19, label %35
6: ; preds = %0, %6
%7 = phi i64 [ %15, %6 ], [ 0, %0 ]
%8 = load ptr, ptr @loadingPlayerIcons, align 8, !tbaa !10
%9 = getelementptr inbounds i32, ptr %8, i64 %7
%10 = load i32, ptr %9, align 4, !tbaa !6
%11 = trunc i64 %7 to i32
%12 = mul i32 %11, 78
%13 = add i32 %12, 16
%14 = tail call i32 @CG_DrawPic(i32 noundef %13, i32 noundef 284, i32 noundef 64, i32 noundef 64, i32 noundef %10) #2
%15 = add nuw nsw i64 %7, 1
%16 = load i32, ptr @loadingPlayerIconCount, align 4, !tbaa !6
%17 = sext i32 %16 to i64
%18 = icmp slt i64 %15, %17
br i1 %18, label %6, label %3, !llvm.loop !12
19: ; preds = %3, %19
%20 = phi i64 [ %31, %19 ], [ 0, %3 ]
%21 = icmp ugt i64 %20, 12
%22 = select i1 %21, i32 400, i32 360
%23 = trunc nuw nsw i64 %20 to i32
%24 = urem i32 %23, 13
%25 = mul nuw nsw i32 %24, 48
%26 = add nuw nsw i32 %25, 16
%27 = load ptr, ptr @loadingItemIcons, align 8, !tbaa !10
%28 = getelementptr inbounds i32, ptr %27, i64 %20
%29 = load i32, ptr %28, align 4, !tbaa !6
%30 = tail call i32 @CG_DrawPic(i32 noundef %26, i32 noundef %22, i32 noundef 32, i32 noundef 32, i32 noundef %29) #2
%31 = add nuw nsw i64 %20, 1
%32 = load i32, ptr @loadingItemIconCount, align 4, !tbaa !6
%33 = sext i32 %32 to i64
%34 = icmp slt i64 %31, %33
br i1 %34, label %19, label %35, !llvm.loop !14
35: ; preds = %19, %3
ret void
}
declare i32 @CG_DrawPic(i32 noundef, i32 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, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
| lab_engine_code_cgame_extr_cg_info.c_CG_DrawLoadingIcons |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/net/extr_if.c_if_delmulti_common.c'
source_filename = "AnghaBench/darwin-xnu/bsd/net/extr_if.c_if_delmulti_common.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.ifmultiaddr = type { i32, i64, i32, i64, ptr, ptr, ptr }
@AF_LINK = dso_local local_unnamed_addr global i64 0, align 8
@AF_UNSPEC = dso_local local_unnamed_addr global i64 0, align 8
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@IFMAF_ANONYMOUS = dso_local local_unnamed_addr global i32 0, align 4
@ifma_link = dso_local local_unnamed_addr global i32 0, align 4
@M_IFADDR = dso_local local_unnamed_addr global i32 0, align 4
@ENOENT = dso_local local_unnamed_addr global i32 0, align 4
@IFD_ATTACHED = dso_local local_unnamed_addr global i32 0, align 4
@RTM_DELMADDR = dso_local local_unnamed_addr global i32 0, align 4
@SIOCDELMULTI = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @if_delmulti_common], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @if_delmulti_common(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = icmp eq ptr %0, null
br i1 %5, label %6, label %12
6: ; preds = %4
%7 = icmp ne ptr %1, null
%8 = icmp ne ptr %2, null
%9 = and i1 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @VERIFY(i32 noundef %10) #2
br label %16
12: ; preds = %4
%13 = tail call i32 @VERIFY(i32 noundef 1) #2
%14 = getelementptr inbounds %struct.ifmultiaddr, ptr %0, i64 0, i32 6
%15 = load ptr, ptr %14, align 8, !tbaa !5
br label %16
16: ; preds = %6, %12
%17 = phi ptr [ %15, %12 ], [ %1, %6 ]
%18 = icmp eq ptr %2, null
br i1 %18, label %31, label %19
19: ; preds = %16
%20 = load i64, ptr %2, align 8, !tbaa !12
%21 = load i64, ptr @AF_LINK, align 8, !tbaa !14
%22 = icmp eq i64 %20, %21
%23 = load i64, ptr @AF_UNSPEC, align 8
%24 = icmp eq i64 %20, %23
%25 = select i1 %22, i1 true, i1 %24
br i1 %25, label %26, label %31
26: ; preds = %19
%27 = tail call ptr @copy_and_normalize(ptr noundef nonnull %2) #2
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = load i32, ptr @ENOMEM, align 4, !tbaa !15
br label %155
31: ; preds = %26, %19, %16
%32 = phi ptr [ null, %16 ], [ %2, %19 ], [ %27, %26 ]
%33 = phi ptr [ null, %16 ], [ null, %19 ], [ %27, %26 ]
%34 = tail call i32 @ifnet_lock_exclusive(ptr noundef %17) #2
br i1 %5, label %35, label %78
35: ; preds = %31
%36 = tail call ptr @LIST_FIRST(ptr noundef %17) #2
%37 = icmp eq ptr %36, null
br i1 %37, label %70, label %38
38: ; preds = %35
%39 = icmp eq i32 %3, 0
br label %40
40: ; preds = %38, %62
%41 = phi ptr [ %36, %38 ], [ %68, %62 ]
%42 = tail call i32 @IFMA_LOCK(ptr noundef nonnull %41) #2
%43 = getelementptr inbounds %struct.ifmultiaddr, ptr %41, i64 0, i32 4
%44 = load ptr, ptr %43, align 8, !tbaa !16
%45 = tail call i32 @ifa_equal(ptr noundef %32, ptr noundef %44) #2
%46 = icmp eq i32 %45, 0
br i1 %46, label %53, label %47
47: ; preds = %40
br i1 %39, label %80, label %48
48: ; preds = %47
%49 = load i32, ptr %41, align 8, !tbaa !17
%50 = load i32, ptr @IFMAF_ANONYMOUS, align 4, !tbaa !15
%51 = and i32 %50, %49
%52 = icmp eq i32 %51, 0
br i1 %52, label %62, label %80
53: ; preds = %40
%54 = load i32, ptr %41, align 8, !tbaa !17
%55 = load i32, ptr @IFMAF_ANONYMOUS, align 4, !tbaa !15
%56 = and i32 %55, %54
%57 = icmp eq i32 %56, 0
br i1 %57, label %62, label %58
58: ; preds = %53
%59 = getelementptr inbounds %struct.ifmultiaddr, ptr %41, i64 0, i32 1
%60 = load i64, ptr %59, align 8, !tbaa !18
%61 = icmp ne i64 %60, 0
br label %62
62: ; preds = %48, %58, %53
%63 = phi i1 [ true, %53 ], [ %61, %58 ], [ true, %48 ]
%64 = zext i1 %63 to i32
%65 = tail call i32 @VERIFY(i32 noundef %64) #2
%66 = tail call i32 @IFMA_UNLOCK(ptr noundef nonnull %41) #2
%67 = load i32, ptr @ifma_link, align 4, !tbaa !15
%68 = tail call ptr @LIST_NEXT(ptr noundef nonnull %41, i32 noundef %67) #2
%69 = icmp eq ptr %68, null
br i1 %69, label %70, label %40, !llvm.loop !19
70: ; preds = %62, %35
%71 = icmp eq ptr %33, null
br i1 %71, label %75, label %72
72: ; preds = %70
%73 = load i32, ptr @M_IFADDR, align 4, !tbaa !15
%74 = tail call i32 @FREE(ptr noundef nonnull %33, i32 noundef %73) #2
br label %75
75: ; preds = %72, %70
%76 = tail call i32 @ifnet_lock_done(ptr noundef %17) #2
%77 = load i32, ptr @ENOENT, align 4, !tbaa !15
br label %155
78: ; preds = %31
%79 = tail call i32 @IFMA_LOCK(ptr noundef nonnull %0) #2
br label %80
80: ; preds = %48, %47, %78
%81 = phi ptr [ %0, %78 ], [ %41, %47 ], [ %41, %48 ]
%82 = tail call i32 @IFMA_LOCK_ASSERT_HELD(ptr noundef nonnull %81) #2
%83 = tail call i32 @IFMA_ADDREF_LOCKED(ptr noundef nonnull %81) #2
%84 = tail call i32 @if_detach_ifma(ptr noundef %17, ptr noundef nonnull %81, i32 noundef %3) #2
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %97
86: ; preds = %80
%87 = getelementptr inbounds %struct.ifmultiaddr, ptr %81, i64 0, i32 2
%88 = load i32, ptr %87, align 8, !tbaa !21
%89 = load i32, ptr @IFD_ATTACHED, align 4, !tbaa !15
%90 = and i32 %89, %88
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %97
92: ; preds = %86
%93 = getelementptr inbounds %struct.ifmultiaddr, ptr %81, i64 0, i32 3
%94 = load i64, ptr %93, align 8, !tbaa !22
%95 = icmp eq i64 %94, 0
%96 = zext i1 %95 to i32
br label %97
97: ; preds = %86, %92, %80
%98 = phi i32 [ 1, %80 ], [ 0, %86 ], [ %96, %92 ]
%99 = tail call i32 @VERIFY(i32 noundef %98) #2
%100 = icmp eq i32 %3, 0
br i1 %100, label %106, label %101
101: ; preds = %97
%102 = getelementptr inbounds %struct.ifmultiaddr, ptr %81, i64 0, i32 5
%103 = load ptr, ptr %102, align 8, !tbaa !23
%104 = icmp eq ptr %103, null
%105 = zext i1 %104 to i32
br label %106
106: ; preds = %101, %97
%107 = phi i32 [ 1, %97 ], [ %105, %101 ]
%108 = tail call i32 @VERIFY(i32 noundef %107) #2
%109 = getelementptr inbounds %struct.ifmultiaddr, ptr %81, i64 0, i32 5
%110 = load ptr, ptr %109, align 8, !tbaa !23
%111 = getelementptr inbounds %struct.ifmultiaddr, ptr %81, i64 0, i32 4
%112 = load ptr, ptr %111, align 8, !tbaa !16
%113 = load i64, ptr %112, align 8, !tbaa !24
%114 = load i64, ptr @AF_UNSPEC, align 8, !tbaa !14
%115 = icmp eq i64 %113, %114
%116 = load i64, ptr @AF_LINK, align 8
%117 = icmp eq i64 %113, %116
%118 = select i1 %115, i1 true, i1 %117
%119 = tail call i32 @IFMA_UNLOCK(ptr noundef nonnull %81) #2
%120 = icmp ne ptr %110, null
%121 = select i1 %85, i1 %120, i1 false
br i1 %121, label %122, label %128
122: ; preds = %106
%123 = tail call i32 @IFMA_LOCK(ptr noundef nonnull %110) #2
%124 = tail call i32 @if_detach_ifma(ptr noundef %17, ptr noundef nonnull %110, i32 noundef 0) #2
%125 = tail call i32 @IFMA_UNLOCK(ptr noundef nonnull %110) #2
%126 = icmp ne i32 %124, 0
%127 = tail call i32 @ifnet_lock_done(ptr noundef %17) #2
br label %130
128: ; preds = %106
%129 = tail call i32 @ifnet_lock_done(ptr noundef %17) #2
br i1 %85, label %130, label %134
130: ; preds = %122, %128
%131 = phi i1 [ %126, %122 ], [ false, %128 ]
%132 = load i32, ptr @RTM_DELMADDR, align 4, !tbaa !15
%133 = tail call i32 @rt_newmaddrmsg(i32 noundef %132, ptr noundef nonnull %81) #2
br label %134
134: ; preds = %130, %128
%135 = phi i1 [ %131, %130 ], [ false, %128 ]
%136 = icmp eq ptr %110, null
%137 = and i1 %85, %136
%138 = select i1 %137, i1 %118, i1 false
%139 = select i1 %138, i1 true, i1 %135
br i1 %139, label %140, label %143
140: ; preds = %134
%141 = load i32, ptr @SIOCDELMULTI, align 4, !tbaa !15
%142 = tail call i32 @ifnet_ioctl(ptr noundef %17, i32 noundef 0, i32 noundef %141, ptr noundef null) #2
br label %143
143: ; preds = %134, %140
br i1 %85, label %144, label %146
144: ; preds = %143
%145 = tail call i32 @IFMA_REMREF(ptr noundef nonnull %81) #2
br label %146
146: ; preds = %144, %143
br i1 %135, label %147, label %149
147: ; preds = %146
%148 = tail call i32 @IFMA_REMREF(ptr noundef %110) #2
br label %149
149: ; preds = %147, %146
%150 = tail call i32 @IFMA_REMREF(ptr noundef nonnull %81) #2
%151 = icmp eq ptr %33, null
br i1 %151, label %155, label %152
152: ; preds = %149
%153 = load i32, ptr @M_IFADDR, align 4, !tbaa !15
%154 = tail call i32 @FREE(ptr noundef nonnull %33, i32 noundef %153) #2
br label %155
155: ; preds = %149, %152, %75, %29
%156 = phi i32 [ %30, %29 ], [ %77, %75 ], [ 0, %152 ], [ 0, %149 ]
ret i32 %156
}
declare i32 @VERIFY(i32 noundef) local_unnamed_addr #1
declare ptr @copy_and_normalize(ptr noundef) local_unnamed_addr #1
declare i32 @ifnet_lock_exclusive(ptr noundef) local_unnamed_addr #1
declare ptr @LIST_FIRST(ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_LOCK(ptr noundef) local_unnamed_addr #1
declare i32 @ifa_equal(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_UNLOCK(ptr noundef) local_unnamed_addr #1
declare ptr @LIST_NEXT(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @FREE(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ifnet_lock_done(ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_LOCK_ASSERT_HELD(ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_ADDREF_LOCKED(ptr noundef) local_unnamed_addr #1
declare i32 @if_detach_ifma(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rt_newmaddrmsg(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ifnet_ioctl(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_REMREF(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 48}
!6 = !{!"ifmultiaddr", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"sockaddr", !10, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !11, i64 32}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !10, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 16}
!22 = !{!6, !10, i64 24}
!23 = !{!6, !11, i64 40}
!24 = !{!25, !10, i64 0}
!25 = !{!"TYPE_2__", !10, i64 0}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/net/extr_if.c_if_delmulti_common.c'
source_filename = "AnghaBench/darwin-xnu/bsd/net/extr_if.c_if_delmulti_common.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AF_LINK = common local_unnamed_addr global i64 0, align 8
@AF_UNSPEC = common local_unnamed_addr global i64 0, align 8
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@IFMAF_ANONYMOUS = common local_unnamed_addr global i32 0, align 4
@ifma_link = common local_unnamed_addr global i32 0, align 4
@M_IFADDR = common local_unnamed_addr global i32 0, align 4
@ENOENT = common local_unnamed_addr global i32 0, align 4
@IFD_ATTACHED = common local_unnamed_addr global i32 0, align 4
@RTM_DELMADDR = common local_unnamed_addr global i32 0, align 4
@SIOCDELMULTI = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @if_delmulti_common], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @if_delmulti_common(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = icmp eq ptr %0, null
br i1 %5, label %6, label %12
6: ; preds = %4
%7 = icmp ne ptr %1, null
%8 = icmp ne ptr %2, null
%9 = and i1 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @VERIFY(i32 noundef %10) #2
br label %16
12: ; preds = %4
%13 = tail call i32 @VERIFY(i32 noundef 1) #2
%14 = getelementptr inbounds i8, ptr %0, i64 48
%15 = load ptr, ptr %14, align 8, !tbaa !6
br label %16
16: ; preds = %6, %12
%17 = phi ptr [ %15, %12 ], [ %1, %6 ]
%18 = icmp eq ptr %2, null
br i1 %18, label %31, label %19
19: ; preds = %16
%20 = load i64, ptr %2, align 8, !tbaa !13
%21 = load i64, ptr @AF_LINK, align 8, !tbaa !15
%22 = icmp eq i64 %20, %21
%23 = load i64, ptr @AF_UNSPEC, align 8
%24 = icmp eq i64 %20, %23
%25 = select i1 %22, i1 true, i1 %24
br i1 %25, label %26, label %31
26: ; preds = %19
%27 = tail call ptr @copy_and_normalize(ptr noundef nonnull %2) #2
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = load i32, ptr @ENOMEM, align 4, !tbaa !16
br label %155
31: ; preds = %26, %19, %16
%32 = phi ptr [ null, %16 ], [ %2, %19 ], [ %27, %26 ]
%33 = phi ptr [ null, %16 ], [ null, %19 ], [ %27, %26 ]
%34 = tail call i32 @ifnet_lock_exclusive(ptr noundef %17) #2
br i1 %5, label %35, label %78
35: ; preds = %31
%36 = tail call ptr @LIST_FIRST(ptr noundef %17) #2
%37 = icmp eq ptr %36, null
br i1 %37, label %70, label %38
38: ; preds = %35
%39 = icmp eq i32 %3, 0
br label %40
40: ; preds = %38, %62
%41 = phi ptr [ %36, %38 ], [ %68, %62 ]
%42 = tail call i32 @IFMA_LOCK(ptr noundef nonnull %41) #2
%43 = getelementptr inbounds i8, ptr %41, i64 32
%44 = load ptr, ptr %43, align 8, !tbaa !17
%45 = tail call i32 @ifa_equal(ptr noundef %32, ptr noundef %44) #2
%46 = icmp eq i32 %45, 0
br i1 %46, label %53, label %47
47: ; preds = %40
br i1 %39, label %80, label %48
48: ; preds = %47
%49 = load i32, ptr %41, align 8, !tbaa !18
%50 = load i32, ptr @IFMAF_ANONYMOUS, align 4, !tbaa !16
%51 = and i32 %50, %49
%52 = icmp eq i32 %51, 0
br i1 %52, label %62, label %80
53: ; preds = %40
%54 = load i32, ptr %41, align 8, !tbaa !18
%55 = load i32, ptr @IFMAF_ANONYMOUS, align 4, !tbaa !16
%56 = and i32 %55, %54
%57 = icmp eq i32 %56, 0
br i1 %57, label %62, label %58
58: ; preds = %53
%59 = getelementptr inbounds i8, ptr %41, i64 8
%60 = load i64, ptr %59, align 8, !tbaa !19
%61 = icmp ne i64 %60, 0
br label %62
62: ; preds = %48, %58, %53
%63 = phi i1 [ true, %53 ], [ %61, %58 ], [ true, %48 ]
%64 = zext i1 %63 to i32
%65 = tail call i32 @VERIFY(i32 noundef %64) #2
%66 = tail call i32 @IFMA_UNLOCK(ptr noundef nonnull %41) #2
%67 = load i32, ptr @ifma_link, align 4, !tbaa !16
%68 = tail call ptr @LIST_NEXT(ptr noundef nonnull %41, i32 noundef %67) #2
%69 = icmp eq ptr %68, null
br i1 %69, label %70, label %40, !llvm.loop !20
70: ; preds = %62, %35
%71 = icmp eq ptr %33, null
br i1 %71, label %75, label %72
72: ; preds = %70
%73 = load i32, ptr @M_IFADDR, align 4, !tbaa !16
%74 = tail call i32 @FREE(ptr noundef nonnull %33, i32 noundef %73) #2
br label %75
75: ; preds = %72, %70
%76 = tail call i32 @ifnet_lock_done(ptr noundef %17) #2
%77 = load i32, ptr @ENOENT, align 4, !tbaa !16
br label %155
78: ; preds = %31
%79 = tail call i32 @IFMA_LOCK(ptr noundef nonnull %0) #2
br label %80
80: ; preds = %48, %47, %78
%81 = phi ptr [ %0, %78 ], [ %41, %47 ], [ %41, %48 ]
%82 = tail call i32 @IFMA_LOCK_ASSERT_HELD(ptr noundef nonnull %81) #2
%83 = tail call i32 @IFMA_ADDREF_LOCKED(ptr noundef nonnull %81) #2
%84 = tail call i32 @if_detach_ifma(ptr noundef %17, ptr noundef nonnull %81, i32 noundef %3) #2
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %97
86: ; preds = %80
%87 = getelementptr inbounds i8, ptr %81, i64 16
%88 = load i32, ptr %87, align 8, !tbaa !22
%89 = load i32, ptr @IFD_ATTACHED, align 4, !tbaa !16
%90 = and i32 %89, %88
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %97
92: ; preds = %86
%93 = getelementptr inbounds i8, ptr %81, i64 24
%94 = load i64, ptr %93, align 8, !tbaa !23
%95 = icmp eq i64 %94, 0
%96 = zext i1 %95 to i32
br label %97
97: ; preds = %86, %92, %80
%98 = phi i32 [ 1, %80 ], [ 0, %86 ], [ %96, %92 ]
%99 = tail call i32 @VERIFY(i32 noundef %98) #2
%100 = icmp eq i32 %3, 0
br i1 %100, label %106, label %101
101: ; preds = %97
%102 = getelementptr inbounds i8, ptr %81, i64 40
%103 = load ptr, ptr %102, align 8, !tbaa !24
%104 = icmp eq ptr %103, null
%105 = zext i1 %104 to i32
br label %106
106: ; preds = %101, %97
%107 = phi i32 [ 1, %97 ], [ %105, %101 ]
%108 = tail call i32 @VERIFY(i32 noundef %107) #2
%109 = getelementptr inbounds i8, ptr %81, i64 40
%110 = load ptr, ptr %109, align 8, !tbaa !24
%111 = getelementptr inbounds i8, ptr %81, i64 32
%112 = load ptr, ptr %111, align 8, !tbaa !17
%113 = load i64, ptr %112, align 8, !tbaa !25
%114 = load i64, ptr @AF_UNSPEC, align 8, !tbaa !15
%115 = icmp eq i64 %113, %114
%116 = load i64, ptr @AF_LINK, align 8
%117 = icmp eq i64 %113, %116
%118 = select i1 %115, i1 true, i1 %117
%119 = tail call i32 @IFMA_UNLOCK(ptr noundef nonnull %81) #2
%120 = icmp ne ptr %110, null
%121 = select i1 %85, i1 %120, i1 false
br i1 %121, label %122, label %128
122: ; preds = %106
%123 = tail call i32 @IFMA_LOCK(ptr noundef nonnull %110) #2
%124 = tail call i32 @if_detach_ifma(ptr noundef %17, ptr noundef nonnull %110, i32 noundef 0) #2
%125 = tail call i32 @IFMA_UNLOCK(ptr noundef nonnull %110) #2
%126 = icmp ne i32 %124, 0
%127 = tail call i32 @ifnet_lock_done(ptr noundef %17) #2
br label %130
128: ; preds = %106
%129 = tail call i32 @ifnet_lock_done(ptr noundef %17) #2
br i1 %85, label %130, label %134
130: ; preds = %122, %128
%131 = phi i1 [ %126, %122 ], [ false, %128 ]
%132 = load i32, ptr @RTM_DELMADDR, align 4, !tbaa !16
%133 = tail call i32 @rt_newmaddrmsg(i32 noundef %132, ptr noundef nonnull %81) #2
br label %134
134: ; preds = %130, %128
%135 = phi i1 [ %131, %130 ], [ false, %128 ]
%136 = icmp eq ptr %110, null
%137 = and i1 %85, %136
%138 = select i1 %137, i1 %118, i1 false
%139 = select i1 %138, i1 true, i1 %135
br i1 %139, label %140, label %143
140: ; preds = %134
%141 = load i32, ptr @SIOCDELMULTI, align 4, !tbaa !16
%142 = tail call i32 @ifnet_ioctl(ptr noundef %17, i32 noundef 0, i32 noundef %141, ptr noundef null) #2
br label %143
143: ; preds = %134, %140
br i1 %85, label %144, label %146
144: ; preds = %143
%145 = tail call i32 @IFMA_REMREF(ptr noundef nonnull %81) #2
br label %146
146: ; preds = %144, %143
br i1 %135, label %147, label %149
147: ; preds = %146
%148 = tail call i32 @IFMA_REMREF(ptr noundef %110) #2
br label %149
149: ; preds = %147, %146
%150 = tail call i32 @IFMA_REMREF(ptr noundef nonnull %81) #2
%151 = icmp eq ptr %33, null
br i1 %151, label %155, label %152
152: ; preds = %149
%153 = load i32, ptr @M_IFADDR, align 4, !tbaa !16
%154 = tail call i32 @FREE(ptr noundef nonnull %33, i32 noundef %153) #2
br label %155
155: ; preds = %149, %152, %75, %29
%156 = phi i32 [ %30, %29 ], [ %77, %75 ], [ 0, %152 ], [ 0, %149 ]
ret i32 %156
}
declare i32 @VERIFY(i32 noundef) local_unnamed_addr #1
declare ptr @copy_and_normalize(ptr noundef) local_unnamed_addr #1
declare i32 @ifnet_lock_exclusive(ptr noundef) local_unnamed_addr #1
declare ptr @LIST_FIRST(ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_LOCK(ptr noundef) local_unnamed_addr #1
declare i32 @ifa_equal(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_UNLOCK(ptr noundef) local_unnamed_addr #1
declare ptr @LIST_NEXT(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @FREE(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ifnet_lock_done(ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_LOCK_ASSERT_HELD(ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_ADDREF_LOCKED(ptr noundef) local_unnamed_addr #1
declare i32 @if_detach_ifma(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rt_newmaddrmsg(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ifnet_ioctl(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @IFMA_REMREF(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 48}
!7 = !{!"ifmultiaddr", !8, i64 0, !11, i64 8, !8, i64 16, !11, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !11, i64 0}
!14 = !{!"sockaddr", !11, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !12, i64 32}
!18 = !{!7, !8, i64 0}
!19 = !{!7, !11, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!7, !8, i64 16}
!23 = !{!7, !11, i64 24}
!24 = !{!7, !12, i64 40}
!25 = !{!26, !11, i64 0}
!26 = !{!"TYPE_2__", !11, i64 0}
| darwin-xnu_bsd_net_extr_if.c_if_delmulti_common |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/netfilter/ipvs/extr_ip_vs_xmit.c___ip_vs_dst_set.c'
source_filename = "AnghaBench/fastsocket/kernel/net/netfilter/ipvs/extr_ip_vs_xmit.c___ip_vs_dst_set.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.ip_vs_dest = type { ptr, ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @__ip_vs_dst_set], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @__ip_vs_dst_set(ptr nocapture noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = getelementptr inbounds %struct.ip_vs_dest, ptr %0, i64 0, i32 2
%6 = load ptr, ptr %5, align 8, !tbaa !5
store ptr %2, ptr %5, align 8, !tbaa !5
%7 = getelementptr inbounds %struct.ip_vs_dest, ptr %0, i64 0, i32 1
store ptr %1, ptr %7, align 8, !tbaa !10
store ptr %3, ptr %0, align 8, !tbaa !11
%8 = tail call i32 @dst_release(ptr noundef %6) #2
ret void
}
declare i32 @dst_release(ptr 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, !7, i64 16}
!6 = !{!"ip_vs_dest", !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 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/netfilter/ipvs/extr_ip_vs_xmit.c___ip_vs_dst_set.c'
source_filename = "AnghaBench/fastsocket/kernel/net/netfilter/ipvs/extr_ip_vs_xmit.c___ip_vs_dst_set.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 @__ip_vs_dst_set], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @__ip_vs_dst_set(ptr nocapture noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = getelementptr inbounds i8, ptr %0, i64 16
%6 = load ptr, ptr %5, align 8, !tbaa !6
store ptr %2, ptr %5, align 8, !tbaa !6
%7 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %1, ptr %7, align 8, !tbaa !11
store ptr %3, ptr %0, align 8, !tbaa !12
%8 = tail call i32 @dst_release(ptr noundef %6) #2
ret void
}
declare i32 @dst_release(ptr 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, !8, i64 16}
!7 = !{!"ip_vs_dest", !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 = !{!7, !8, i64 8}
!12 = !{!7, !8, i64 0}
| fastsocket_kernel_net_netfilter_ipvs_extr_ip_vs_xmit.c___ip_vs_dst_set |
; ModuleID = 'AnghaBench/linux/drivers/target/iscsi/extr_iscsi_target_stat.c_iscsi_stat_sess_conn_timeout_errors_show.c'
source_filename = "AnghaBench/linux/drivers/target/iscsi/extr_iscsi_target_stat.c_iscsi_stat_sess_conn_timeout_errors_show.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.se_node_acl = type { i32, ptr }
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @iscsi_stat_sess_conn_timeout_errors_show], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @iscsi_stat_sess_conn_timeout_errors_show(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @iscsi_stat_nacl(ptr noundef %0) #2
%4 = tail call i32 @spin_lock_bh(ptr noundef %3) #2
%5 = getelementptr inbounds %struct.se_node_acl, ptr %3, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %15, label %8
8: ; preds = %2
%9 = load ptr, ptr %6, align 8, !tbaa !11
%10 = icmp eq ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %8
%12 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !13
%13 = tail call i32 @atomic_long_read(ptr noundef nonnull %9) #2
%14 = tail call i32 @snprintf(ptr noundef %1, i32 noundef %12, ptr noundef nonnull @.str, i32 noundef %13) #2
br label %15
15: ; preds = %8, %11, %2
%16 = phi i32 [ %14, %11 ], [ 0, %8 ], [ 0, %2 ]
%17 = tail call i32 @spin_unlock_bh(ptr noundef nonnull %3) #2
ret i32 %16
}
declare ptr @iscsi_stat_nacl(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @atomic_long_read(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_bh(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 = !{!"se_node_acl", !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, !10, i64 0}
!12 = !{!"se_session", !10, i64 0}
!13 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/target/iscsi/extr_iscsi_target_stat.c_iscsi_stat_sess_conn_timeout_errors_show.c'
source_filename = "AnghaBench/linux/drivers/target/iscsi/extr_iscsi_target_stat.c_iscsi_stat_sess_conn_timeout_errors_show.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
@.str = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @iscsi_stat_sess_conn_timeout_errors_show], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @iscsi_stat_sess_conn_timeout_errors_show(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @iscsi_stat_nacl(ptr noundef %0) #2
%4 = tail call i32 @spin_lock_bh(ptr noundef %3) #2
%5 = getelementptr inbounds i8, ptr %3, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = icmp eq ptr %6, null
br i1 %7, label %15, label %8
8: ; preds = %2
%9 = load ptr, ptr %6, align 8, !tbaa !12
%10 = icmp eq ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %8
%12 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !14
%13 = tail call i32 @atomic_long_read(ptr noundef nonnull %9) #2
%14 = tail call i32 @snprintf(ptr noundef %1, i32 noundef %12, ptr noundef nonnull @.str, i32 noundef %13) #2
br label %15
15: ; preds = %8, %11, %2
%16 = phi i32 [ %14, %11 ], [ 0, %8 ], [ 0, %2 ]
%17 = tail call i32 @spin_unlock_bh(ptr noundef nonnull %3) #2
ret i32 %16
}
declare ptr @iscsi_stat_nacl(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @atomic_long_read(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_bh(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 = !{!"se_node_acl", !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, !11, i64 0}
!13 = !{!"se_session", !11, i64 0}
!14 = !{!8, !8, i64 0}
| linux_drivers_target_iscsi_extr_iscsi_target_stat.c_iscsi_stat_sess_conn_timeout_errors_show |
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_delta/extr_svndiff.c_encode_window.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_delta/extr_svndiff.c_encode_window.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 { i32, ptr, i32, i32, i32, ptr }
%struct.TYPE_17__ = type { i32, i32, i32 }
%struct.TYPE_18__ = type { i32, i32 }
%struct.TYPE_19__ = type { i32, i32 }
@MAX_INSTRUCTION_LEN = dso_local local_unnamed_addr global i32 0, align 4
@SVN_NO_ERROR = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @encode_window], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @encode_window(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #0 {
%8 = load i32, ptr @MAX_INSTRUCTION_LEN, align 4, !tbaa !5
%9 = zext i32 %8 to i64
%10 = alloca i8, i64 %9, align 16
%11 = tail call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%12 = tail call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%13 = getelementptr inbounds %struct.TYPE_16__, ptr %3, i64 0, i32 5
%14 = load i32, ptr %3, align 8, !tbaa !9
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %57
16: ; preds = %7
%17 = load ptr, ptr %13, align 8, !tbaa !12
%18 = getelementptr inbounds i8, ptr %10, i64 1
%19 = ptrtoint ptr %10 to i64
br label %20
20: ; preds = %16, %45
%21 = phi ptr [ %17, %16 ], [ %51, %45 ]
%22 = load i32, ptr %21, align 4, !tbaa !13
switch i32 %22, label %26 [
i32 129, label %23
i32 128, label %24
i32 130, label %25
]
23: ; preds = %20
store i8 0, ptr %10, align 16, !tbaa !15
br label %26
24: ; preds = %20
store i8 64, ptr %10, align 16, !tbaa !15
br label %26
25: ; preds = %20
store i8 -128, ptr %10, align 16, !tbaa !15
br label %26
26: ; preds = %20, %25, %24, %23
%27 = getelementptr inbounds %struct.TYPE_17__, ptr %21, i64 0, i32 1
%28 = load i32, ptr %27, align 4, !tbaa !16
%29 = icmp ult i32 %28, 64
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load i8, ptr %10, align 16, !tbaa !15
%32 = trunc i32 %28 to i8
%33 = or i8 %31, %32
store i8 %33, ptr %10, align 16, !tbaa !15
br label %37
34: ; preds = %26
%35 = call ptr @svn__encode_uint(ptr noundef nonnull %18, i32 noundef %28) #2
%36 = load i32, ptr %21, align 4, !tbaa !13
br label %37
37: ; preds = %34, %30
%38 = phi i32 [ %22, %30 ], [ %36, %34 ]
%39 = phi ptr [ %18, %30 ], [ %35, %34 ]
%40 = icmp eq i32 %38, 130
br i1 %40, label %45, label %41
41: ; preds = %37
%42 = getelementptr inbounds %struct.TYPE_17__, ptr %21, i64 0, i32 2
%43 = load i32, ptr %42, align 4, !tbaa !17
%44 = call ptr @svn__encode_uint(ptr noundef %39, i32 noundef %43) #2
br label %45
45: ; preds = %41, %37
%46 = phi ptr [ %44, %41 ], [ %39, %37 ]
%47 = ptrtoint ptr %46 to i64
%48 = sub i64 %47, %19
%49 = trunc i64 %48 to i32
%50 = call i32 @svn_stringbuf_appendbytes(ptr noundef %11, ptr noundef nonnull %10, i32 noundef %49) #2
%51 = getelementptr inbounds %struct.TYPE_17__, ptr %21, i64 1
%52 = load ptr, ptr %13, align 8, !tbaa !12
%53 = load i32, ptr %3, align 8, !tbaa !9
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds %struct.TYPE_17__, ptr %52, i64 %54
%56 = icmp ult ptr %51, %55
br i1 %56, label %20, label %57, !llvm.loop !18
57: ; preds = %45, %7
%58 = getelementptr inbounds %struct.TYPE_16__, ptr %3, i64 0, i32 4
%59 = load i32, ptr %58, align 8, !tbaa !20
%60 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %59) #2
%61 = getelementptr inbounds %struct.TYPE_16__, ptr %3, i64 0, i32 3
%62 = load i32, ptr %61, align 4, !tbaa !21
%63 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %62) #2
%64 = getelementptr inbounds %struct.TYPE_16__, ptr %3, i64 0, i32 2
%65 = load i32, ptr %64, align 8, !tbaa !22
%66 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %65) #2
switch i32 %4, label %103 [
i32 2, label %67
i32 1, label %85
]
67: ; preds = %57
%68 = call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%69 = getelementptr inbounds %struct.TYPE_18__, ptr %11, i64 0, i32 1
%70 = load i32, ptr %69, align 4, !tbaa !23
%71 = load i32, ptr %11, align 4, !tbaa !25
%72 = call i32 @svn__compress_lz4(i32 noundef %70, i32 noundef %71, ptr noundef %68) #2
%73 = call i32 @SVN_ERR(i32 noundef %72) #2
%74 = load i32, ptr %68, align 4, !tbaa !25
%75 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %74) #2
%76 = call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%77 = getelementptr inbounds %struct.TYPE_16__, ptr %3, i64 0, i32 1
%78 = load ptr, ptr %77, align 8, !tbaa !26
%79 = getelementptr inbounds %struct.TYPE_19__, ptr %78, i64 0, i32 1
%80 = load i32, ptr %79, align 4, !tbaa !27
%81 = load i32, ptr %78, align 4, !tbaa !29
%82 = call i32 @svn__compress_lz4(i32 noundef %80, i32 noundef %81, ptr noundef %76) #2
%83 = call i32 @SVN_ERR(i32 noundef %82) #2
%84 = call ptr @svn_stringbuf__morph_into_string(ptr noundef %76) #2
br label %108
85: ; preds = %57
%86 = call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%87 = getelementptr inbounds %struct.TYPE_18__, ptr %11, i64 0, i32 1
%88 = load i32, ptr %87, align 4, !tbaa !23
%89 = load i32, ptr %11, align 4, !tbaa !25
%90 = call i32 @svn__compress_zlib(i32 noundef %88, i32 noundef %89, ptr noundef %86, i32 noundef %5) #2
%91 = call i32 @SVN_ERR(i32 noundef %90) #2
%92 = load i32, ptr %86, align 4, !tbaa !25
%93 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %92) #2
%94 = call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%95 = getelementptr inbounds %struct.TYPE_16__, ptr %3, i64 0, i32 1
%96 = load ptr, ptr %95, align 8, !tbaa !26
%97 = getelementptr inbounds %struct.TYPE_19__, ptr %96, i64 0, i32 1
%98 = load i32, ptr %97, align 4, !tbaa !27
%99 = load i32, ptr %96, align 4, !tbaa !29
%100 = call i32 @svn__compress_zlib(i32 noundef %98, i32 noundef %99, ptr noundef %94, i32 noundef %5) #2
%101 = call i32 @SVN_ERR(i32 noundef %100) #2
%102 = call ptr @svn_stringbuf__morph_into_string(ptr noundef %94) #2
br label %108
103: ; preds = %57
%104 = load i32, ptr %11, align 4, !tbaa !25
%105 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %104) #2
%106 = getelementptr inbounds %struct.TYPE_16__, ptr %3, i64 0, i32 1
%107 = load ptr, ptr %106, align 8, !tbaa !26
br label %108
108: ; preds = %85, %103, %67
%109 = phi ptr [ %68, %67 ], [ %86, %85 ], [ %11, %103 ]
%110 = phi ptr [ %84, %67 ], [ %102, %85 ], [ %107, %103 ]
%111 = load i32, ptr %110, align 4, !tbaa !29
%112 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %111) #2
store ptr %109, ptr %0, align 8, !tbaa !30
store ptr %12, ptr %1, align 8, !tbaa !30
store ptr %110, ptr %2, align 8, !tbaa !30
%113 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !30
ret ptr %113
}
declare ptr @svn_stringbuf_create_empty(ptr noundef) local_unnamed_addr #1
declare ptr @svn__encode_uint(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @svn_stringbuf_appendbytes(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @append_encoded_int(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SVN_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @svn__compress_lz4(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @svn__compress_zlib(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @svn_stringbuf__morph_into_string(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 = !{!"TYPE_16__", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !11, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 32}
!13 = !{!14, !6, i64 0}
!14 = !{!"TYPE_17__", !6, i64 0, !6, i64 4, !6, i64 8}
!15 = !{!7, !7, i64 0}
!16 = !{!14, !6, i64 4}
!17 = !{!14, !6, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 24}
!21 = !{!10, !6, i64 20}
!22 = !{!10, !6, i64 16}
!23 = !{!24, !6, i64 4}
!24 = !{!"TYPE_18__", !6, i64 0, !6, i64 4}
!25 = !{!24, !6, i64 0}
!26 = !{!10, !11, i64 8}
!27 = !{!28, !6, i64 4}
!28 = !{!"TYPE_19__", !6, i64 0, !6, i64 4}
!29 = !{!28, !6, i64 0}
!30 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_delta/extr_svndiff.c_encode_window.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_delta/extr_svndiff.c_encode_window.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_17__ = type { i32, i32, i32 }
@MAX_INSTRUCTION_LEN = common local_unnamed_addr global i32 0, align 4
@SVN_NO_ERROR = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @encode_window], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @encode_window(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #0 {
%8 = load i32, ptr @MAX_INSTRUCTION_LEN, align 4, !tbaa !6
%9 = zext i32 %8 to i64
%10 = alloca i8, i64 %9, align 1
%11 = tail call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%12 = tail call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%13 = getelementptr inbounds i8, ptr %3, i64 32
%14 = load i32, ptr %3, align 8, !tbaa !10
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %57
16: ; preds = %7
%17 = load ptr, ptr %13, align 8, !tbaa !13
%18 = getelementptr inbounds i8, ptr %10, i64 1
%19 = ptrtoint ptr %10 to i64
br label %20
20: ; preds = %16, %45
%21 = phi ptr [ %17, %16 ], [ %51, %45 ]
%22 = load i32, ptr %21, align 4, !tbaa !14
switch i32 %22, label %26 [
i32 129, label %23
i32 128, label %24
i32 130, label %25
]
23: ; preds = %20
store i8 0, ptr %10, align 1, !tbaa !16
br label %26
24: ; preds = %20
store i8 64, ptr %10, align 1, !tbaa !16
br label %26
25: ; preds = %20
store i8 -128, ptr %10, align 1, !tbaa !16
br label %26
26: ; preds = %20, %25, %24, %23
%27 = getelementptr inbounds i8, ptr %21, i64 4
%28 = load i32, ptr %27, align 4, !tbaa !17
%29 = icmp ult i32 %28, 64
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load i8, ptr %10, align 1, !tbaa !16
%32 = trunc nuw i32 %28 to i8
%33 = or i8 %31, %32
store i8 %33, ptr %10, align 1, !tbaa !16
br label %37
34: ; preds = %26
%35 = call ptr @svn__encode_uint(ptr noundef nonnull %18, i32 noundef %28) #2
%36 = load i32, ptr %21, align 4, !tbaa !14
br label %37
37: ; preds = %34, %30
%38 = phi i32 [ %22, %30 ], [ %36, %34 ]
%39 = phi ptr [ %18, %30 ], [ %35, %34 ]
%40 = icmp eq i32 %38, 130
br i1 %40, label %45, label %41
41: ; preds = %37
%42 = getelementptr inbounds i8, ptr %21, i64 8
%43 = load i32, ptr %42, align 4, !tbaa !18
%44 = call ptr @svn__encode_uint(ptr noundef %39, i32 noundef %43) #2
br label %45
45: ; preds = %41, %37
%46 = phi ptr [ %44, %41 ], [ %39, %37 ]
%47 = ptrtoint ptr %46 to i64
%48 = sub i64 %47, %19
%49 = trunc i64 %48 to i32
%50 = call i32 @svn_stringbuf_appendbytes(ptr noundef %11, ptr noundef nonnull %10, i32 noundef %49) #2
%51 = getelementptr inbounds i8, ptr %21, i64 12
%52 = load ptr, ptr %13, align 8, !tbaa !13
%53 = load i32, ptr %3, align 8, !tbaa !10
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds %struct.TYPE_17__, ptr %52, i64 %54
%56 = icmp ult ptr %51, %55
br i1 %56, label %20, label %57, !llvm.loop !19
57: ; preds = %45, %7
%58 = getelementptr inbounds i8, ptr %3, i64 24
%59 = load i32, ptr %58, align 8, !tbaa !21
%60 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %59) #2
%61 = getelementptr inbounds i8, ptr %3, i64 20
%62 = load i32, ptr %61, align 4, !tbaa !22
%63 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %62) #2
%64 = getelementptr inbounds i8, ptr %3, i64 16
%65 = load i32, ptr %64, align 8, !tbaa !23
%66 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %65) #2
switch i32 %4, label %103 [
i32 2, label %67
i32 1, label %85
]
67: ; preds = %57
%68 = call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%69 = getelementptr inbounds i8, ptr %11, i64 4
%70 = load i32, ptr %69, align 4, !tbaa !24
%71 = load i32, ptr %11, align 4, !tbaa !26
%72 = call i32 @svn__compress_lz4(i32 noundef %70, i32 noundef %71, ptr noundef %68) #2
%73 = call i32 @SVN_ERR(i32 noundef %72) #2
%74 = load i32, ptr %68, align 4, !tbaa !26
%75 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %74) #2
%76 = call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%77 = getelementptr inbounds i8, ptr %3, i64 8
%78 = load ptr, ptr %77, align 8, !tbaa !27
%79 = getelementptr inbounds i8, ptr %78, i64 4
%80 = load i32, ptr %79, align 4, !tbaa !28
%81 = load i32, ptr %78, align 4, !tbaa !30
%82 = call i32 @svn__compress_lz4(i32 noundef %80, i32 noundef %81, ptr noundef %76) #2
%83 = call i32 @SVN_ERR(i32 noundef %82) #2
%84 = call ptr @svn_stringbuf__morph_into_string(ptr noundef %76) #2
br label %108
85: ; preds = %57
%86 = call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%87 = getelementptr inbounds i8, ptr %11, i64 4
%88 = load i32, ptr %87, align 4, !tbaa !24
%89 = load i32, ptr %11, align 4, !tbaa !26
%90 = call i32 @svn__compress_zlib(i32 noundef %88, i32 noundef %89, ptr noundef %86, i32 noundef %5) #2
%91 = call i32 @SVN_ERR(i32 noundef %90) #2
%92 = load i32, ptr %86, align 4, !tbaa !26
%93 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %92) #2
%94 = call ptr @svn_stringbuf_create_empty(ptr noundef %6) #2
%95 = getelementptr inbounds i8, ptr %3, i64 8
%96 = load ptr, ptr %95, align 8, !tbaa !27
%97 = getelementptr inbounds i8, ptr %96, i64 4
%98 = load i32, ptr %97, align 4, !tbaa !28
%99 = load i32, ptr %96, align 4, !tbaa !30
%100 = call i32 @svn__compress_zlib(i32 noundef %98, i32 noundef %99, ptr noundef %94, i32 noundef %5) #2
%101 = call i32 @SVN_ERR(i32 noundef %100) #2
%102 = call ptr @svn_stringbuf__morph_into_string(ptr noundef %94) #2
br label %108
103: ; preds = %57
%104 = load i32, ptr %11, align 4, !tbaa !26
%105 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %104) #2
%106 = getelementptr inbounds i8, ptr %3, i64 8
%107 = load ptr, ptr %106, align 8, !tbaa !27
br label %108
108: ; preds = %85, %103, %67
%109 = phi ptr [ %68, %67 ], [ %86, %85 ], [ %11, %103 ]
%110 = phi ptr [ %84, %67 ], [ %102, %85 ], [ %107, %103 ]
%111 = load i32, ptr %110, align 4, !tbaa !30
%112 = call i32 @append_encoded_int(ptr noundef %12, i32 noundef %111) #2
store ptr %109, ptr %0, align 8, !tbaa !31
store ptr %12, ptr %1, align 8, !tbaa !31
store ptr %110, ptr %2, align 8, !tbaa !31
%113 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !31
ret ptr %113
}
declare ptr @svn_stringbuf_create_empty(ptr noundef) local_unnamed_addr #1
declare ptr @svn__encode_uint(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @svn_stringbuf_appendbytes(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @append_encoded_int(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SVN_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @svn__compress_lz4(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @svn__compress_zlib(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @svn_stringbuf__morph_into_string(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 = !{!"TYPE_16__", !7, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !12, i64 32}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 32}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_17__", !7, i64 0, !7, i64 4, !7, i64 8}
!16 = !{!8, !8, i64 0}
!17 = !{!15, !7, i64 4}
!18 = !{!15, !7, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!11, !7, i64 24}
!22 = !{!11, !7, i64 20}
!23 = !{!11, !7, i64 16}
!24 = !{!25, !7, i64 4}
!25 = !{!"TYPE_18__", !7, i64 0, !7, i64 4}
!26 = !{!25, !7, i64 0}
!27 = !{!11, !12, i64 8}
!28 = !{!29, !7, i64 4}
!29 = !{!"TYPE_19__", !7, i64 0, !7, i64 4}
!30 = !{!29, !7, i64 0}
!31 = !{!12, !12, i64 0}
| freebsd_contrib_subversion_subversion_libsvn_delta_extr_svndiff.c_encode_window |
; ModuleID = 'AnghaBench/git/extr_imap-send.c_hexchar.c'
source_filename = "AnghaBench/git/extr_imap-send.c_hexchar.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 @hexchar], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal signext i8 @hexchar(i32 noundef %0) #0 {
%2 = icmp ult i32 %0, 10
%3 = or disjoint i32 %0, 48
%4 = add i32 %0, 87
%5 = select i1 %2, i32 %3, i32 %4
%6 = trunc i32 %5 to i8
ret i8 %6
}
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/git/extr_imap-send.c_hexchar.c'
source_filename = "AnghaBench/git/extr_imap-send.c_hexchar.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 @hexchar], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal signext i8 @hexchar(i32 noundef %0) #0 {
%2 = icmp ult i32 %0, 10
%3 = or disjoint i32 %0, 48
%4 = add i32 %0, 87
%5 = select i1 %2, i32 %3, i32 %4
%6 = trunc i32 %5 to i8
ret i8 %6
}
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)"}
| git_extr_imap-send.c_hexchar |
; ModuleID = 'AnghaBench/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/extr_dt_ident.c_dt_idhash_lookup.c'
source_filename = "AnghaBench/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/extr_dt_ident.c_dt_idhash_lookup.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 { i64, ptr, ptr }
%struct.TYPE_7__ = type { i32, ptr }
; Function Attrs: nounwind uwtable
define dso_local noundef ptr @dt_idhash_lookup(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%4 = call i64 @dt_strtab_hash(ptr noundef %1, ptr noundef nonnull %3) #3
%5 = load i64, ptr %0, align 8, !tbaa !5
%6 = urem i64 %4, %5
%7 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 2
%8 = load ptr, ptr %7, align 8, !tbaa !11
%9 = icmp eq ptr %8, null
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = call i32 @dt_idhash_populate(ptr noundef nonnull %0) #3
br label %12
12: ; preds = %10, %2
%13 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 1
%14 = load ptr, ptr %13, align 8, !tbaa !12
%15 = getelementptr inbounds ptr, ptr %14, i64 %6
%16 = load ptr, ptr %15, align 8, !tbaa !13
%17 = icmp eq ptr %16, null
br i1 %17, label %27, label %18
18: ; preds = %12, %23
%19 = phi ptr [ %25, %23 ], [ %16, %12 ]
%20 = load i32, ptr %19, align 8, !tbaa !14
%21 = call i64 @strcmp(i32 noundef %20, ptr noundef %1) #3
%22 = icmp eq i64 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %18
%24 = getelementptr inbounds %struct.TYPE_7__, ptr %19, i64 0, i32 1
%25 = load ptr, ptr %24, align 8, !tbaa !13
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %18, !llvm.loop !17
27: ; preds = %18, %23, %12
%28 = phi ptr [ null, %12 ], [ null, %23 ], [ %19, %18 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret ptr %28
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @dt_strtab_hash(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @dt_idhash_populate(ptr noundef) local_unnamed_addr #2
declare i64 @strcmp(i32 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, !7, i64 0}
!6 = !{!"TYPE_6__", !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 = !{!6, !10, i64 16}
!12 = !{!6, !10, i64 8}
!13 = !{!10, !10, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"TYPE_7__", !16, i64 0, !10, i64 8}
!16 = !{!"int", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/extr_dt_ident.c_dt_idhash_lookup.c'
source_filename = "AnghaBench/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/extr_dt_ident.c_dt_idhash_lookup.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 noundef ptr @dt_idhash_lookup(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%4 = call i64 @dt_strtab_hash(ptr noundef %1, ptr noundef nonnull %3) #3
%5 = load i64, ptr %0, align 8, !tbaa !6
%6 = urem i64 %4, %5
%7 = getelementptr inbounds i8, ptr %0, i64 16
%8 = load ptr, ptr %7, align 8, !tbaa !12
%9 = icmp eq ptr %8, null
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = call i32 @dt_idhash_populate(ptr noundef nonnull %0) #3
br label %12
12: ; preds = %10, %2
%13 = getelementptr inbounds i8, ptr %0, i64 8
%14 = load ptr, ptr %13, align 8, !tbaa !13
%15 = getelementptr inbounds ptr, ptr %14, i64 %6
%16 = load ptr, ptr %15, align 8, !tbaa !14
%17 = icmp eq ptr %16, null
br i1 %17, label %27, label %18
18: ; preds = %12, %23
%19 = phi ptr [ %25, %23 ], [ %16, %12 ]
%20 = load i32, ptr %19, align 8, !tbaa !15
%21 = call i64 @strcmp(i32 noundef %20, ptr noundef %1) #3
%22 = icmp eq i64 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %18
%24 = getelementptr inbounds i8, ptr %19, i64 8
%25 = load ptr, ptr %24, align 8, !tbaa !14
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %18, !llvm.loop !18
27: ; preds = %18, %23, %12
%28 = phi ptr [ null, %12 ], [ null, %23 ], [ %19, %18 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret ptr %28
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @dt_strtab_hash(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @dt_idhash_populate(ptr noundef) local_unnamed_addr #2
declare i64 @strcmp(i32 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, !8, i64 0}
!7 = !{!"TYPE_6__", !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 = !{!7, !11, i64 16}
!13 = !{!7, !11, i64 8}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"TYPE_7__", !17, i64 0, !11, i64 8}
!17 = !{!"int", !9, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| freebsd_cddl_contrib_opensolaris_lib_libdtrace_common_extr_dt_ident.c_dt_idhash_lookup |
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_fs_id.c_id_unparse.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_fs_id.c_id_unparse.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 @id_unparse], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @id_unparse(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @svn_fs_x__id_unparse(ptr noundef %0, ptr noundef %1) #2
ret ptr %3
}
declare ptr @svn_fs_x__id_unparse(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)"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_fs_id.c_id_unparse.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_fs_id.c_id_unparse.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 @id_unparse], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @id_unparse(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @svn_fs_x__id_unparse(ptr noundef %0, ptr noundef %1) #2
ret ptr %3
}
declare ptr @svn_fs_x__id_unparse(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)"}
| freebsd_contrib_subversion_subversion_libsvn_fs_x_extr_fs_id.c_id_unparse |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_radeon_vm.c_radeon_vm_map_gart.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_radeon_vm.c_radeon_vm_map_gart.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"
@RADEON_GPU_PAGE_SHIFT = dso_local local_unnamed_addr global i64 0, align 8
@RADEON_GPU_PAGE_MASK = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define dso_local i64 @radeon_vm_map_gart(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load i64, ptr @RADEON_GPU_PAGE_SHIFT, align 8, !tbaa !11
%5 = lshr i64 %1, %4
%6 = getelementptr inbounds i64, ptr %3, i64 %5
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = load i64, ptr @RADEON_GPU_PAGE_MASK, align 8, !tbaa !11
%9 = xor i64 %8, -1
%10 = and i64 %7, %9
ret i64 %10
}
attributes #0 = { 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, !8, i64 0}
!6 = !{!"radeon_device", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !9, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_radeon_vm.c_radeon_vm_map_gart.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_radeon_vm.c_radeon_vm_map_gart.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RADEON_GPU_PAGE_SHIFT = common local_unnamed_addr global i64 0, align 8
@RADEON_GPU_PAGE_MASK = common local_unnamed_addr global i64 0, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define i64 @radeon_vm_map_gart(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load i64, ptr @RADEON_GPU_PAGE_SHIFT, align 8, !tbaa !12
%5 = lshr i64 %1, %4
%6 = getelementptr inbounds i64, ptr %3, i64 %5
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = load i64, ptr @RADEON_GPU_PAGE_MASK, align 8, !tbaa !12
%9 = xor i64 %8, -1
%10 = and i64 %7, %9
ret i64 %10
}
attributes #0 = { 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, !9, i64 0}
!7 = !{!"radeon_device", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !10, i64 0}
| linux_drivers_gpu_drm_radeon_extr_radeon_vm.c_radeon_vm_map_gart |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/oss/extr_swarm_cs4297a.c_prog_dmabuf_adc.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/oss/extr_swarm_cs4297a.c_prog_dmabuf_adc.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 @prog_dmabuf_adc], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal noundef i32 @prog_dmabuf_adc(ptr nocapture noundef writeonly %0) #0 {
store i32 1, ptr %0, align 4, !tbaa !5
ret i32 0
}
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" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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 0}
!6 = !{!"cs4297a_state", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/oss/extr_swarm_cs4297a.c_prog_dmabuf_adc.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/oss/extr_swarm_cs4297a.c_prog_dmabuf_adc.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 @prog_dmabuf_adc], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal noundef i32 @prog_dmabuf_adc(ptr nocapture noundef writeonly %0) #0 {
store i32 1, ptr %0, align 4, !tbaa !6
ret i32 0
}
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" }
!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 0}
!7 = !{!"cs4297a_state", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_sound_oss_extr_swarm_cs4297a.c_prog_dmabuf_adc |
; ModuleID = 'AnghaBench/postgres/src/backend/commands/extr_typecmds.c_findTypeInputFunction.c'
source_filename = "AnghaBench/postgres/src/backend/commands/extr_typecmds.c_findTypeInputFunction.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"
@CSTRINGOID = dso_local local_unnamed_addr global i32 0, align 4
@OIDOID = dso_local local_unnamed_addr global i32 0, align 4
@INT4OID = dso_local local_unnamed_addr global i32 0, align 4
@OPAQUEOID = dso_local local_unnamed_addr global i32 0, align 4
@WARNING = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [65 x i8] c"changing argument type of function %s from \22opaque\22 to \22cstring\22\00", align 1
@ERROR = dso_local local_unnamed_addr global i32 0, align 4
@ERRCODE_UNDEFINED_FUNCTION = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"function %s does not exist\00", align 1
@NIL = dso_local local_unnamed_addr global i32 0, align 4
@InvalidOid = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @findTypeInputFunction], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @findTypeInputFunction(ptr noundef %0, i32 %1) #0 {
%3 = alloca [3 x i32], align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
%4 = load i32, ptr @CSTRINGOID, align 4, !tbaa !5
store i32 %4, ptr %3, align 4, !tbaa !5
%5 = call i32 @LookupFuncName(ptr noundef %0, i32 noundef 1, ptr noundef nonnull %3, i32 noundef 1) #3
%6 = call i64 @OidIsValid(i32 noundef %5) #3
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %47
8: ; preds = %2
%9 = load i32, ptr @OIDOID, align 4, !tbaa !5
%10 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 1
store i32 %9, ptr %10, align 4, !tbaa !5
%11 = load i32, ptr @INT4OID, align 4, !tbaa !5
%12 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 2
store i32 %11, ptr %12, align 4, !tbaa !5
%13 = call i32 @LookupFuncName(ptr noundef %0, i32 noundef 3, ptr noundef nonnull %3, i32 noundef 1) #3
%14 = call i64 @OidIsValid(i32 noundef %13) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %47
16: ; preds = %8
%17 = load i32, ptr @OPAQUEOID, align 4, !tbaa !5
store i32 %17, ptr %3, align 4, !tbaa !5
%18 = call i32 @LookupFuncName(ptr noundef %0, i32 noundef 1, ptr noundef nonnull %3, i32 noundef 1) #3
%19 = call i64 @OidIsValid(i32 noundef %18) #3
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %16
%22 = load i32, ptr @OIDOID, align 4, !tbaa !5
store i32 %22, ptr %10, align 4, !tbaa !5
%23 = load i32, ptr @INT4OID, align 4, !tbaa !5
store i32 %23, ptr %12, align 4, !tbaa !5
%24 = call i32 @LookupFuncName(ptr noundef %0, i32 noundef 3, ptr noundef nonnull %3, i32 noundef 1) #3
br label %25
25: ; preds = %21, %16
%26 = phi i32 [ %18, %16 ], [ %24, %21 ]
%27 = call i64 @OidIsValid(i32 noundef %26) #3
%28 = icmp eq i64 %27, 0
br i1 %28, label %37, label %29
29: ; preds = %25
%30 = load i32, ptr @WARNING, align 4, !tbaa !5
%31 = call i32 @NameListToString(ptr noundef %0) #3
%32 = call i32 @errmsg(ptr noundef nonnull @.str, i32 noundef %31) #3
%33 = call i32 @ereport(i32 noundef %30, i32 noundef %32) #3
%34 = load i32, ptr @CSTRINGOID, align 4, !tbaa !5
%35 = call i32 @SetFunctionArgType(i32 noundef %26, i32 noundef 0, i32 noundef %34) #3
%36 = call i32 (...) @CommandCounterIncrement() #3
br label %47
37: ; preds = %25
%38 = load i32, ptr @CSTRINGOID, align 4, !tbaa !5
store i32 %38, ptr %3, align 4, !tbaa !5
%39 = load i32, ptr @ERROR, align 4, !tbaa !5
%40 = load i32, ptr @ERRCODE_UNDEFINED_FUNCTION, align 4, !tbaa !5
%41 = call i32 @errcode(i32 noundef %40) #3
%42 = load i32, ptr @NIL, align 4, !tbaa !5
%43 = call i32 @func_signature_string(ptr noundef %0, i32 noundef 1, i32 noundef %42, ptr noundef nonnull %3) #3
%44 = call i32 @errmsg(ptr noundef nonnull @.str.1, i32 noundef %43) #3
%45 = call i32 @ereport(i32 noundef %39, i32 noundef %44) #3
%46 = load i32, ptr @InvalidOid, align 4, !tbaa !5
br label %47
47: ; preds = %8, %2, %37, %29
%48 = phi i32 [ %26, %29 ], [ %46, %37 ], [ %5, %2 ], [ %13, %8 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
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 @LookupFuncName(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @OidIsValid(i32 noundef) local_unnamed_addr #2
declare i32 @ereport(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @errmsg(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @NameListToString(ptr noundef) local_unnamed_addr #2
declare i32 @SetFunctionArgType(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CommandCounterIncrement(...) local_unnamed_addr #2
declare i32 @errcode(i32 noundef) local_unnamed_addr #2
declare i32 @func_signature_string(ptr noundef, i32 noundef, i32 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/postgres/src/backend/commands/extr_typecmds.c_findTypeInputFunction.c'
source_filename = "AnghaBench/postgres/src/backend/commands/extr_typecmds.c_findTypeInputFunction.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CSTRINGOID = common local_unnamed_addr global i32 0, align 4
@OIDOID = common local_unnamed_addr global i32 0, align 4
@INT4OID = common local_unnamed_addr global i32 0, align 4
@OPAQUEOID = common local_unnamed_addr global i32 0, align 4
@WARNING = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [65 x i8] c"changing argument type of function %s from \22opaque\22 to \22cstring\22\00", align 1
@ERROR = common local_unnamed_addr global i32 0, align 4
@ERRCODE_UNDEFINED_FUNCTION = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"function %s does not exist\00", align 1
@NIL = common local_unnamed_addr global i32 0, align 4
@InvalidOid = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @findTypeInputFunction], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @findTypeInputFunction(ptr noundef %0, i32 %1) #0 {
%3 = alloca [3 x i32], align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
%4 = load i32, ptr @CSTRINGOID, align 4, !tbaa !6
store i32 %4, ptr %3, align 4, !tbaa !6
%5 = call i32 @LookupFuncName(ptr noundef %0, i32 noundef 1, ptr noundef nonnull %3, i32 noundef 1) #3
%6 = call i64 @OidIsValid(i32 noundef %5) #3
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %47
8: ; preds = %2
%9 = load i32, ptr @OIDOID, align 4, !tbaa !6
%10 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %9, ptr %10, align 4, !tbaa !6
%11 = load i32, ptr @INT4OID, align 4, !tbaa !6
%12 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %11, ptr %12, align 4, !tbaa !6
%13 = call i32 @LookupFuncName(ptr noundef %0, i32 noundef 3, ptr noundef nonnull %3, i32 noundef 1) #3
%14 = call i64 @OidIsValid(i32 noundef %13) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %47
16: ; preds = %8
%17 = load i32, ptr @OPAQUEOID, align 4, !tbaa !6
store i32 %17, ptr %3, align 4, !tbaa !6
%18 = call i32 @LookupFuncName(ptr noundef %0, i32 noundef 1, ptr noundef nonnull %3, i32 noundef 1) #3
%19 = call i64 @OidIsValid(i32 noundef %18) #3
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %16
%22 = load i32, ptr @OIDOID, align 4, !tbaa !6
store i32 %22, ptr %10, align 4, !tbaa !6
%23 = load i32, ptr @INT4OID, align 4, !tbaa !6
store i32 %23, ptr %12, align 4, !tbaa !6
%24 = call i32 @LookupFuncName(ptr noundef %0, i32 noundef 3, ptr noundef nonnull %3, i32 noundef 1) #3
br label %25
25: ; preds = %21, %16
%26 = phi i32 [ %18, %16 ], [ %24, %21 ]
%27 = call i64 @OidIsValid(i32 noundef %26) #3
%28 = icmp eq i64 %27, 0
br i1 %28, label %37, label %29
29: ; preds = %25
%30 = load i32, ptr @WARNING, align 4, !tbaa !6
%31 = call i32 @NameListToString(ptr noundef %0) #3
%32 = call i32 @errmsg(ptr noundef nonnull @.str, i32 noundef %31) #3
%33 = call i32 @ereport(i32 noundef %30, i32 noundef %32) #3
%34 = load i32, ptr @CSTRINGOID, align 4, !tbaa !6
%35 = call i32 @SetFunctionArgType(i32 noundef %26, i32 noundef 0, i32 noundef %34) #3
%36 = call i32 @CommandCounterIncrement() #3
br label %47
37: ; preds = %25
%38 = load i32, ptr @CSTRINGOID, align 4, !tbaa !6
store i32 %38, ptr %3, align 4, !tbaa !6
%39 = load i32, ptr @ERROR, align 4, !tbaa !6
%40 = load i32, ptr @ERRCODE_UNDEFINED_FUNCTION, align 4, !tbaa !6
%41 = call i32 @errcode(i32 noundef %40) #3
%42 = load i32, ptr @NIL, align 4, !tbaa !6
%43 = call i32 @func_signature_string(ptr noundef %0, i32 noundef 1, i32 noundef %42, ptr noundef nonnull %3) #3
%44 = call i32 @errmsg(ptr noundef nonnull @.str.1, i32 noundef %43) #3
%45 = call i32 @ereport(i32 noundef %39, i32 noundef %44) #3
%46 = load i32, ptr @InvalidOid, align 4, !tbaa !6
br label %47
47: ; preds = %8, %2, %37, %29
%48 = phi i32 [ %26, %29 ], [ %46, %37 ], [ %5, %2 ], [ %13, %8 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
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 @LookupFuncName(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @OidIsValid(i32 noundef) local_unnamed_addr #2
declare i32 @ereport(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @errmsg(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @NameListToString(ptr noundef) local_unnamed_addr #2
declare i32 @SetFunctionArgType(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CommandCounterIncrement(...) local_unnamed_addr #2
declare i32 @errcode(i32 noundef) local_unnamed_addr #2
declare i32 @func_signature_string(ptr noundef, i32 noundef, i32 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"}
| postgres_src_backend_commands_extr_typecmds.c_findTypeInputFunction |
; ModuleID = 'AnghaBench/linux/net/xfrm/extr_xfrm_hash.c_xfrm_hash_alloc.c'
source_filename = "AnghaBench/linux/net/xfrm/extr_xfrm_hash.c_xfrm_hash_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"
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@hashdist = dso_local local_unnamed_addr global i64 0, align 8
@__GFP_NOWARN = dso_local local_unnamed_addr global i32 0, align 4
@__GFP_ZERO = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @xfrm_hash_alloc(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !5
%3 = icmp ult i32 %2, %0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%6 = tail call ptr @kzalloc(i32 noundef %0, i32 noundef %5) #2
br label %21
7: ; preds = %1
%8 = load i64, ptr @hashdist, align 8, !tbaa !9
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call ptr @vzalloc(i32 noundef %0) #2
br label %21
12: ; preds = %7
%13 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%14 = load i32, ptr @__GFP_NOWARN, align 4, !tbaa !5
%15 = or i32 %14, %13
%16 = load i32, ptr @__GFP_ZERO, align 4, !tbaa !5
%17 = or i32 %15, %16
%18 = tail call i32 @get_order(i32 noundef %0) #2
%19 = tail call i64 @__get_free_pages(i32 noundef %17, i32 noundef %18) #2
%20 = inttoptr i64 %19 to ptr
br label %21
21: ; preds = %10, %12, %4
%22 = phi ptr [ %6, %4 ], [ %11, %10 ], [ %20, %12 ]
ret ptr %22
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @vzalloc(i32 noundef) local_unnamed_addr #1
declare i64 @__get_free_pages(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @get_order(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 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/xfrm/extr_xfrm_hash.c_xfrm_hash_alloc.c'
source_filename = "AnghaBench/linux/net/xfrm/extr_xfrm_hash.c_xfrm_hash_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
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@hashdist = common local_unnamed_addr global i64 0, align 8
@__GFP_NOWARN = common local_unnamed_addr global i32 0, align 4
@__GFP_ZERO = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @xfrm_hash_alloc(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !6
%3 = icmp ult i32 %2, %0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%6 = tail call ptr @kzalloc(i32 noundef %0, i32 noundef %5) #2
br label %21
7: ; preds = %1
%8 = load i64, ptr @hashdist, align 8, !tbaa !10
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call ptr @vzalloc(i32 noundef %0) #2
br label %21
12: ; preds = %7
%13 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%14 = load i32, ptr @__GFP_NOWARN, align 4, !tbaa !6
%15 = or i32 %14, %13
%16 = load i32, ptr @__GFP_ZERO, align 4, !tbaa !6
%17 = or i32 %15, %16
%18 = tail call i32 @get_order(i32 noundef %0) #2
%19 = tail call i64 @__get_free_pages(i32 noundef %17, i32 noundef %18) #2
%20 = inttoptr i64 %19 to ptr
br label %21
21: ; preds = %10, %12, %4
%22 = phi ptr [ %6, %4 ], [ %11, %10 ], [ %20, %12 ]
ret ptr %22
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @vzalloc(i32 noundef) local_unnamed_addr #1
declare i64 @__get_free_pages(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @get_order(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 = !{!"long", !8, i64 0}
| linux_net_xfrm_extr_xfrm_hash.c_xfrm_hash_alloc |
; ModuleID = 'AnghaBench/FFmpeg/libavformat/extr_filmstripenc.c_write_packet.c'
source_filename = "AnghaBench/FFmpeg/libavformat/extr_filmstripenc.c_write_packet.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_8__ = type { i32, ptr }
%struct.TYPE_7__ = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @write_packet], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @write_packet(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i32, ptr %0, align 8, !tbaa !11
%6 = getelementptr inbounds %struct.TYPE_7__, ptr %1, i64 0, i32 1
%7 = load i32, ptr %6, align 4, !tbaa !12
%8 = load i32, ptr %1, align 4, !tbaa !14
%9 = tail call i32 @avio_write(i32 noundef %5, i32 noundef %7, i32 noundef %8) #2
%10 = load i32, ptr %4, align 4, !tbaa !15
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4, !tbaa !15
ret i32 0
}
declare i32 @avio_write(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, !10, i64 8}
!6 = !{!"TYPE_8__", !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, !7, i64 0}
!12 = !{!13, !7, i64 4}
!13 = !{!"TYPE_7__", !7, i64 0, !7, i64 4}
!14 = !{!13, !7, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"TYPE_6__", !7, i64 0}
| ; ModuleID = 'AnghaBench/FFmpeg/libavformat/extr_filmstripenc.c_write_packet.c'
source_filename = "AnghaBench/FFmpeg/libavformat/extr_filmstripenc.c_write_packet.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 @write_packet], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @write_packet(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i32, ptr %0, align 8, !tbaa !12
%6 = getelementptr inbounds i8, ptr %1, i64 4
%7 = load i32, ptr %6, align 4, !tbaa !13
%8 = load i32, ptr %1, align 4, !tbaa !15
%9 = tail call i32 @avio_write(i32 noundef %5, i32 noundef %7, i32 noundef %8) #2
%10 = load i32, ptr %4, align 4, !tbaa !16
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4, !tbaa !16
ret i32 0
}
declare i32 @avio_write(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, !11, i64 8}
!7 = !{!"TYPE_8__", !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, !8, i64 0}
!13 = !{!14, !8, i64 4}
!14 = !{!"TYPE_7__", !8, i64 0, !8, i64 4}
!15 = !{!14, !8, i64 0}
!16 = !{!17, !8, i64 0}
!17 = !{!"TYPE_6__", !8, i64 0}
| FFmpeg_libavformat_extr_filmstripenc.c_write_packet |
; ModuleID = 'AnghaBench/fastsocket/kernel/security/selinux/extr_netlabel.c_selinux_netlbl_inet_csk_clone.c'
source_filename = "AnghaBench/fastsocket/kernel/security/selinux/extr_netlabel.c_selinux_netlbl_inet_csk_clone.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"
@PF_INET = dso_local local_unnamed_addr global i64 0, align 8
@NLBL_LABELED = dso_local local_unnamed_addr global i32 0, align 4
@NLBL_UNSET = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @selinux_netlbl_inet_csk_clone(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load i64, ptr @PF_INET, align 8, !tbaa !10
%5 = icmp eq i64 %4, %1
%6 = load i32, ptr @NLBL_LABELED, align 4
%7 = load i32, ptr @NLBL_UNSET, align 4
%8 = select i1 %5, i32 %6, i32 %7
store i32 %8, ptr %3, align 4, !tbaa !12
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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 = !{!"sock", !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}
!12 = !{!13, !14, i64 0}
!13 = !{!"sk_security_struct", !14, i64 0}
!14 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/security/selinux/extr_netlabel.c_selinux_netlbl_inet_csk_clone.c'
source_filename = "AnghaBench/fastsocket/kernel/security/selinux/extr_netlabel.c_selinux_netlbl_inet_csk_clone.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PF_INET = common local_unnamed_addr global i64 0, align 8
@NLBL_LABELED = common local_unnamed_addr global i32 0, align 4
@NLBL_UNSET = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, inaccessiblemem: none) uwtable(sync)
define void @selinux_netlbl_inet_csk_clone(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load i64, ptr @PF_INET, align 8, !tbaa !11
%5 = icmp eq i64 %4, %1
%6 = load i32, ptr @NLBL_LABELED, align 4
%7 = load i32, ptr @NLBL_UNSET, align 4
%8 = select i1 %5, i32 %6, i32 %7
store i32 %8, ptr %3, align 4, !tbaa !13
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync 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" }
!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 = !{!"sock", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"sk_security_struct", !15, i64 0}
!15 = !{!"int", !9, i64 0}
| fastsocket_kernel_security_selinux_extr_netlabel.c_selinux_netlbl_inet_csk_clone |
; ModuleID = 'AnghaBench/postgres/src/backend/libpq/extr_auth.c_CheckPasswordAuth.c'
source_filename = "AnghaBench/postgres/src/backend/libpq/extr_auth.c_CheckPasswordAuth.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"
@AUTH_REQ_PASSWORD = dso_local local_unnamed_addr global i32 0, align 4
@STATUS_EOF = dso_local local_unnamed_addr global i32 0, align 4
@STATUS_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @CheckPasswordAuth], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @CheckPasswordAuth(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @AUTH_REQ_PASSWORD, align 4, !tbaa !5
%4 = tail call i32 @sendAuthRequest(ptr noundef %0, i32 noundef %3, ptr noundef null, i32 noundef 0) #2
%5 = tail call ptr @recv_password_packet(ptr noundef %0) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i32, ptr @STATUS_EOF, align 4, !tbaa !5
br label %22
9: ; preds = %2
%10 = load i32, ptr %0, align 4, !tbaa !9
%11 = tail call ptr @get_role_password(i32 noundef %10, ptr noundef %1) #2
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = load i32, ptr @STATUS_ERROR, align 4, !tbaa !5
br label %19
15: ; preds = %9
%16 = load i32, ptr %0, align 4, !tbaa !9
%17 = tail call i32 @plain_crypt_verify(i32 noundef %16, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef %1) #2
%18 = tail call i32 @pfree(ptr noundef nonnull %11) #2
br label %19
19: ; preds = %13, %15
%20 = phi i32 [ %14, %13 ], [ %17, %15 ]
%21 = tail call i32 @pfree(ptr noundef nonnull %5) #2
br label %22
22: ; preds = %19, %7
%23 = phi i32 [ %8, %7 ], [ %20, %19 ]
ret i32 %23
}
declare i32 @sendAuthRequest(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @recv_password_packet(ptr noundef) local_unnamed_addr #1
declare ptr @get_role_password(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @plain_crypt_verify(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @pfree(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 = !{!"TYPE_5__", !6, i64 0}
| ; ModuleID = 'AnghaBench/postgres/src/backend/libpq/extr_auth.c_CheckPasswordAuth.c'
source_filename = "AnghaBench/postgres/src/backend/libpq/extr_auth.c_CheckPasswordAuth.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AUTH_REQ_PASSWORD = common local_unnamed_addr global i32 0, align 4
@STATUS_EOF = common local_unnamed_addr global i32 0, align 4
@STATUS_ERROR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @CheckPasswordAuth], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @CheckPasswordAuth(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @AUTH_REQ_PASSWORD, align 4, !tbaa !6
%4 = tail call i32 @sendAuthRequest(ptr noundef %0, i32 noundef %3, ptr noundef null, i32 noundef 0) #2
%5 = tail call ptr @recv_password_packet(ptr noundef %0) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i32, ptr @STATUS_EOF, align 4, !tbaa !6
br label %22
9: ; preds = %2
%10 = load i32, ptr %0, align 4, !tbaa !10
%11 = tail call ptr @get_role_password(i32 noundef %10, ptr noundef %1) #2
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = load i32, ptr @STATUS_ERROR, align 4, !tbaa !6
br label %19
15: ; preds = %9
%16 = load i32, ptr %0, align 4, !tbaa !10
%17 = tail call i32 @plain_crypt_verify(i32 noundef %16, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef %1) #2
%18 = tail call i32 @pfree(ptr noundef nonnull %11) #2
br label %19
19: ; preds = %13, %15
%20 = phi i32 [ %14, %13 ], [ %17, %15 ]
%21 = tail call i32 @pfree(ptr noundef nonnull %5) #2
br label %22
22: ; preds = %19, %7
%23 = phi i32 [ %8, %7 ], [ %20, %19 ]
ret i32 %23
}
declare i32 @sendAuthRequest(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @recv_password_packet(ptr noundef) local_unnamed_addr #1
declare ptr @get_role_password(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @plain_crypt_verify(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @pfree(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 = !{!"TYPE_5__", !7, i64 0}
| postgres_src_backend_libpq_extr_auth.c_CheckPasswordAuth |
; ModuleID = 'AnghaBench/linux/drivers/ntb/test/extr_ntb_pingpong.c_pp_clear_dbgfs.c'
source_filename = "AnghaBench/linux/drivers/ntb/test/extr_ntb_pingpong.c_pp_clear_dbgfs.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 @pp_clear_dbgfs], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @pp_clear_dbgfs(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = tail call i32 @debugfs_remove_recursive(i32 noundef %2) #2
ret void
}
declare i32 @debugfs_remove_recursive(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_ctx", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/ntb/test/extr_ntb_pingpong.c_pp_clear_dbgfs.c'
source_filename = "AnghaBench/linux/drivers/ntb/test/extr_ntb_pingpong.c_pp_clear_dbgfs.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 @pp_clear_dbgfs], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @pp_clear_dbgfs(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = tail call i32 @debugfs_remove_recursive(i32 noundef %2) #2
ret void
}
declare i32 @debugfs_remove_recursive(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_ctx", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_ntb_test_extr_ntb_pingpong.c_pp_clear_dbgfs |
; ModuleID = 'AnghaBench/linux/tools/testing/selftests/powerpc/tm/extr_tm-signal-context-chk-vmx.c_main.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/powerpc/tm/extr_tm-signal-context-chk-vmx.c_main.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"
@tm_signal_context_chk = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"tm_signal_context_chk_vmx\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
%1 = load i32, ptr @tm_signal_context_chk, align 4, !tbaa !5
%2 = tail call i32 @test_harness(i32 noundef %1, ptr noundef nonnull @.str) #2
ret i32 %2
}
declare i32 @test_harness(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"}
| ; ModuleID = 'AnghaBench/linux/tools/testing/selftests/powerpc/tm/extr_tm-signal-context-chk-vmx.c_main.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/powerpc/tm/extr_tm-signal-context-chk-vmx.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@tm_signal_context_chk = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"tm_signal_context_chk_vmx\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @main() local_unnamed_addr #0 {
%1 = load i32, ptr @tm_signal_context_chk, align 4, !tbaa !6
%2 = tail call i32 @test_harness(i32 noundef %1, ptr noundef nonnull @.str) #2
ret i32 %2
}
declare i32 @test_harness(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"}
| linux_tools_testing_selftests_powerpc_tm_extr_tm-signal-context-chk-vmx.c_main |
; ModuleID = 'AnghaBench/freebsd/sys/kern/extr_kern_jail.c_sys_jail_attach.c'
source_filename = "AnghaBench/freebsd/sys/kern/extr_kern_jail.c_sys_jail_attach.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.prison = type { i64, i32 }
@PRIV_JAIL_ATTACH = dso_local local_unnamed_addr global i32 0, align 4
@allprison_lock = dso_local global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @sys_jail_attach(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = load i32, ptr @PRIV_JAIL_ATTACH, align 4, !tbaa !5
%4 = tail call i32 @priv_check(ptr noundef %0, i32 noundef %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %27
6: ; preds = %2
%7 = tail call i32 @sx_xlock(ptr noundef nonnull @allprison_lock) #2
%8 = tail call i32 @sx_downgrade(ptr noundef nonnull @allprison_lock) #2
%9 = load ptr, ptr %0, align 8, !tbaa !9
%10 = load i32, ptr %9, align 4, !tbaa !12
%11 = load i32, ptr %1, align 4, !tbaa !14
%12 = tail call ptr @prison_find_child(i32 noundef %10, i32 noundef %11) #2
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %6
%15 = tail call i32 @sx_sunlock(ptr noundef nonnull @allprison_lock) #2
%16 = load i32, ptr @EINVAL, align 4, !tbaa !5
br label %27
17: ; preds = %6
%18 = load i64, ptr %12, align 8, !tbaa !16
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = getelementptr inbounds %struct.prison, ptr %12, i64 0, i32 1
%22 = tail call i32 @mtx_unlock(ptr noundef nonnull %21) #2
%23 = tail call i32 @sx_sunlock(ptr noundef nonnull @allprison_lock) #2
%24 = load i32, ptr @EINVAL, align 4, !tbaa !5
br label %27
25: ; preds = %17
%26 = tail call i32 @do_jail_attach(ptr noundef nonnull %0, ptr noundef nonnull %12) #2
br label %27
27: ; preds = %2, %25, %20, %14
%28 = phi i32 [ %16, %14 ], [ %24, %20 ], [ %26, %25 ], [ %4, %2 ]
ret i32 %28
}
declare i32 @priv_check(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sx_xlock(ptr noundef) local_unnamed_addr #1
declare i32 @sx_downgrade(ptr noundef) local_unnamed_addr #1
declare ptr @prison_find_child(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sx_sunlock(ptr noundef) local_unnamed_addr #1
declare i32 @mtx_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @do_jail_attach(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, !11, i64 0}
!10 = !{!"thread", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"TYPE_2__", !6, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"jail_attach_args", !6, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"prison", !18, i64 0, !6, i64 8}
!18 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/kern/extr_kern_jail.c_sys_jail_attach.c'
source_filename = "AnghaBench/freebsd/sys/kern/extr_kern_jail.c_sys_jail_attach.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PRIV_JAIL_ATTACH = common local_unnamed_addr global i32 0, align 4
@allprison_lock = common global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @sys_jail_attach(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = load i32, ptr @PRIV_JAIL_ATTACH, align 4, !tbaa !6
%4 = tail call i32 @priv_check(ptr noundef %0, i32 noundef %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %27
6: ; preds = %2
%7 = tail call i32 @sx_xlock(ptr noundef nonnull @allprison_lock) #2
%8 = tail call i32 @sx_downgrade(ptr noundef nonnull @allprison_lock) #2
%9 = load ptr, ptr %0, align 8, !tbaa !10
%10 = load i32, ptr %9, align 4, !tbaa !13
%11 = load i32, ptr %1, align 4, !tbaa !15
%12 = tail call ptr @prison_find_child(i32 noundef %10, i32 noundef %11) #2
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %6
%15 = tail call i32 @sx_sunlock(ptr noundef nonnull @allprison_lock) #2
%16 = load i32, ptr @EINVAL, align 4, !tbaa !6
br label %27
17: ; preds = %6
%18 = load i64, ptr %12, align 8, !tbaa !17
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = getelementptr inbounds i8, ptr %12, i64 8
%22 = tail call i32 @mtx_unlock(ptr noundef nonnull %21) #2
%23 = tail call i32 @sx_sunlock(ptr noundef nonnull @allprison_lock) #2
%24 = load i32, ptr @EINVAL, align 4, !tbaa !6
br label %27
25: ; preds = %17
%26 = tail call i32 @do_jail_attach(ptr noundef nonnull %0, ptr noundef nonnull %12) #2
br label %27
27: ; preds = %2, %25, %20, %14
%28 = phi i32 [ %16, %14 ], [ %24, %20 ], [ %26, %25 ], [ %4, %2 ]
ret i32 %28
}
declare i32 @priv_check(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sx_xlock(ptr noundef) local_unnamed_addr #1
declare i32 @sx_downgrade(ptr noundef) local_unnamed_addr #1
declare ptr @prison_find_child(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sx_sunlock(ptr noundef) local_unnamed_addr #1
declare i32 @mtx_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @do_jail_attach(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, !12, i64 0}
!11 = !{!"thread", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_2__", !7, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"jail_attach_args", !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"prison", !19, i64 0, !7, i64 8}
!19 = !{!"long", !8, i64 0}
| freebsd_sys_kern_extr_kern_jail.c_sys_jail_attach |
; ModuleID = 'AnghaBench/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/extr_dt_printf.c_pfprint_inetaddr.c'
source_filename = "AnghaBench/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/extr_dt_printf.c_pfprint_inetaddr.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.hostent = type { ptr }
@NS_IN6ADDRSZ = dso_local local_unnamed_addr global i32 0, align 4
@AF_INET = dso_local local_unnamed_addr global i32 0, align 4
@NS_INADDRSZ = dso_local local_unnamed_addr global i32 0, align 4
@AF_INET6 = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @pfprint_inetaddr], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pfprint_inetaddr(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture readnone %3, ptr noundef %4, i64 noundef %5, i32 %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca %struct.hostent, align 8
%10 = alloca [1024 x i8], align 16
%11 = alloca i32, align 4
%12 = add i64 %5, 1
%13 = tail call ptr @alloca(i64 noundef %12) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
%14 = load i32, ptr @NS_IN6ADDRSZ, align 4, !tbaa !5
%15 = zext i32 %14 to i64
%16 = tail call ptr @llvm.stacksave.p0()
%17 = alloca i8, i64 %15, align 16
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %10) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
%18 = tail call i32 @bcopy(ptr noundef %4, ptr noundef %13, i64 noundef %5) #4
%19 = getelementptr inbounds i8, ptr %13, i64 %5
store i8 0, ptr %19, align 1, !tbaa !9
%20 = tail call ptr @strchr(ptr noundef %13, i8 noundef signext 58) #4
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %35
22: ; preds = %7
%23 = load i32, ptr @AF_INET, align 4, !tbaa !5
%24 = call i32 @inet_pton(i32 noundef %23, ptr noundef nonnull %13, ptr noundef nonnull %17) #4
%25 = icmp eq i32 %24, -1
br i1 %25, label %35, label %26
26: ; preds = %22
%27 = load i32, ptr @NS_INADDRSZ, align 4, !tbaa !5
%28 = load i32, ptr @AF_INET, align 4, !tbaa !5
%29 = call ptr (ptr, i32, i32, ptr, ptr, i32, ...) @gethostbyaddr_r(ptr noundef nonnull %17, i32 noundef %27, i32 noundef %28, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef 1024, ptr noundef nonnull %8, ptr noundef nonnull %11) #4
%30 = icmp eq ptr %29, null
br i1 %30, label %47, label %31
31: ; preds = %26
%32 = load ptr, ptr %8, align 8, !tbaa !10
%33 = load ptr, ptr %32, align 8, !tbaa !12
%34 = call i32 @dt_printf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %33) #4
br label %49
35: ; preds = %22, %7
%36 = load i32, ptr @AF_INET6, align 4, !tbaa !5
%37 = call i32 @inet_pton(i32 noundef %36, ptr noundef nonnull %13, ptr noundef nonnull %17) #4
%38 = icmp eq i32 %37, -1
br i1 %38, label %47, label %39
39: ; preds = %35
%40 = load i32, ptr @NS_IN6ADDRSZ, align 4, !tbaa !5
%41 = load i32, ptr @AF_INET6, align 4, !tbaa !5
%42 = call ptr @getipnodebyaddr(ptr noundef nonnull %17, i32 noundef %40, i32 noundef %41, ptr noundef nonnull %11) #4
store ptr %42, ptr %8, align 8, !tbaa !10
%43 = icmp eq ptr %42, null
br i1 %43, label %47, label %44
44: ; preds = %39
%45 = load ptr, ptr %42, align 8, !tbaa !12
%46 = call i32 @dt_printf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %45) #4
br label %49
47: ; preds = %35, %39, %26
%48 = call i32 @dt_printf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %13) #4
br label %49
49: ; preds = %47, %44, %31
%50 = phi i32 [ %34, %31 ], [ %48, %47 ], [ %46, %44 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %10) #4
call void @llvm.stackrestore.p0(ptr %16)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
ret i32 %50
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @alloca(i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3
declare i32 @bcopy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare ptr @strchr(ptr noundef, i8 noundef signext) local_unnamed_addr #2
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @gethostbyaddr_r(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #2
declare i32 @dt_printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @getipnodebyaddr(ptr noundef, i32 noundef, i32 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
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"hostent", !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/extr_dt_printf.c_pfprint_inetaddr.c'
source_filename = "AnghaBench/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/extr_dt_printf.c_pfprint_inetaddr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.hostent = type { ptr }
@NS_IN6ADDRSZ = common local_unnamed_addr global i32 0, align 4
@AF_INET = common local_unnamed_addr global i32 0, align 4
@NS_INADDRSZ = common local_unnamed_addr global i32 0, align 4
@AF_INET6 = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @pfprint_inetaddr], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @pfprint_inetaddr(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture readnone %3, ptr noundef %4, i64 noundef %5, i32 %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca %struct.hostent, align 8
%10 = alloca [1024 x i8], align 1
%11 = alloca i32, align 4
%12 = add i64 %5, 1
%13 = tail call ptr @alloca(i64 noundef %12) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
%14 = load i32, ptr @NS_IN6ADDRSZ, align 4, !tbaa !6
%15 = zext i32 %14 to i64
%16 = tail call ptr @llvm.stacksave.p0()
%17 = alloca i8, i64 %15, align 1
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %10) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
%18 = tail call i32 @bcopy(ptr noundef %4, ptr noundef %13, i64 noundef %5) #4
%19 = getelementptr inbounds i8, ptr %13, i64 %5
store i8 0, ptr %19, align 1, !tbaa !10
%20 = tail call ptr @strchr(ptr noundef %13, i8 noundef signext 58) #4
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %35
22: ; preds = %7
%23 = load i32, ptr @AF_INET, align 4, !tbaa !6
%24 = call i32 @inet_pton(i32 noundef %23, ptr noundef nonnull %13, ptr noundef nonnull %17) #4
%25 = icmp eq i32 %24, -1
br i1 %25, label %35, label %26
26: ; preds = %22
%27 = load i32, ptr @NS_INADDRSZ, align 4, !tbaa !6
%28 = load i32, ptr @AF_INET, align 4, !tbaa !6
%29 = call ptr (ptr, i32, i32, ptr, ptr, i32, ...) @gethostbyaddr_r(ptr noundef nonnull %17, i32 noundef %27, i32 noundef %28, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef 1024, ptr noundef nonnull %8, ptr noundef nonnull %11) #4
%30 = icmp eq ptr %29, null
br i1 %30, label %47, label %31
31: ; preds = %26
%32 = load ptr, ptr %8, align 8, !tbaa !11
%33 = load ptr, ptr %32, align 8, !tbaa !13
%34 = call i32 @dt_printf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %33) #4
br label %49
35: ; preds = %22, %7
%36 = load i32, ptr @AF_INET6, align 4, !tbaa !6
%37 = call i32 @inet_pton(i32 noundef %36, ptr noundef nonnull %13, ptr noundef nonnull %17) #4
%38 = icmp eq i32 %37, -1
br i1 %38, label %47, label %39
39: ; preds = %35
%40 = load i32, ptr @NS_IN6ADDRSZ, align 4, !tbaa !6
%41 = load i32, ptr @AF_INET6, align 4, !tbaa !6
%42 = call ptr @getipnodebyaddr(ptr noundef nonnull %17, i32 noundef %40, i32 noundef %41, ptr noundef nonnull %11) #4
store ptr %42, ptr %8, align 8, !tbaa !11
%43 = icmp eq ptr %42, null
br i1 %43, label %47, label %44
44: ; preds = %39
%45 = load ptr, ptr %42, align 8, !tbaa !13
%46 = call i32 @dt_printf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %45) #4
br label %49
47: ; preds = %35, %39, %26
%48 = call i32 @dt_printf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %13) #4
br label %49
49: ; preds = %47, %44, %31
%50 = phi i32 [ %34, %31 ], [ %48, %47 ], [ %46, %44 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %10) #4
call void @llvm.stackrestore.p0(ptr %16)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
ret i32 %50
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @alloca(i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3
declare i32 @bcopy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare ptr @strchr(ptr noundef, i8 noundef signext) local_unnamed_addr #2
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @gethostbyaddr_r(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #2
declare i32 @dt_printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @getipnodebyaddr(ptr noundef, i32 noundef, i32 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
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = !{!8, !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"hostent", !12, i64 0}
| freebsd_cddl_contrib_opensolaris_lib_libdtrace_common_extr_dt_printf.c_pfprint_inetaddr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.