IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/ixgb/extr_ixgb_main.c_ixgb_tx_map.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/ixgb/extr_ixgb_main.c_ixgb_tx_map.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.ixgb_adapter = type { ptr, %struct.ixgb_desc_ring }
%struct.ixgb_desc_ring = type { i32, i32, ptr }
%struct.TYPE_2__ = type { i32, i32, ptr }
%struct.ixgb_buffer = type { i32, i64, i32, i32, ptr, ptr }
@IXGB_MAX_DATA_PER_TXD = dso_local local_unnamed_addr global i32 0, align 4
@jiffies = dso_local local_unnamed_addr global ptr null, align 8
@DMA_TO_DEVICE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"TX DMA map failed\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @ixgb_tx_map], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ixgb_tx_map(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = getelementptr inbounds %struct.ixgb_adapter, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %0, align 8, !tbaa !5
%6 = tail call i32 @skb_headlen(ptr noundef %1) #2
%7 = tail call ptr @skb_shinfo(ptr noundef %1) #2
%8 = load i32, ptr %7, align 8, !tbaa !12
%9 = tail call ptr @skb_shinfo(ptr noundef %1) #2
%10 = getelementptr inbounds %struct.TYPE_2__, ptr %9, i64 0, i32 1
%11 = load i32, ptr %10, align 4, !tbaa !14
%12 = load i32, ptr %4, align 8, !tbaa !15
%13 = icmp eq i32 %6, 0
br i1 %13, label %20, label %14
14: ; preds = %3
%15 = getelementptr inbounds %struct.ixgb_adapter, ptr %0, i64 0, i32 1, i32 2
%16 = icmp ne i32 %8, 0
%17 = icmp eq i32 %11, 0
%18 = select i1 %16, i1 %17, i1 false
%19 = getelementptr inbounds %struct.ixgb_adapter, ptr %0, i64 0, i32 1, i32 1
br label %31
20: ; preds = %65, %3
%21 = phi i32 [ 0, %3 ], [ %68, %65 ]
%22 = phi i32 [ %12, %3 ], [ %33, %65 ]
%23 = icmp eq i32 %11, 0
br i1 %23, label %131, label %24
24: ; preds = %20
%25 = getelementptr inbounds %struct.ixgb_adapter, ptr %0, i64 0, i32 1, i32 1
%26 = getelementptr inbounds %struct.ixgb_adapter, ptr %0, i64 0, i32 1, i32 2
%27 = icmp ne i32 %8, 0
%28 = add i32 %11, -1
%29 = zext i32 %28 to i64
%30 = zext i32 %11 to i64
br label %76
31: ; preds = %70, %14
%32 = phi i32 [ %6, %14 ], [ %67, %70 ]
%33 = phi i32 [ %12, %14 ], [ %75, %70 ]
%34 = phi i32 [ 0, %14 ], [ %68, %70 ]
%35 = phi i32 [ 0, %14 ], [ %71, %70 ]
%36 = load ptr, ptr %15, align 8, !tbaa !16
%37 = zext i32 %33 to i64
%38 = getelementptr inbounds %struct.ixgb_buffer, ptr %36, i64 %37
%39 = load i32, ptr @IXGB_MAX_DATA_PER_TXD, align 4, !tbaa !17
%40 = tail call i32 @min(i32 noundef %32, i32 noundef %39) #2
%41 = icmp eq i32 %40, %32
%42 = select i1 %18, i1 %41, i1 false
%43 = icmp ugt i32 %40, 8
%44 = select i1 %42, i1 %43, i1 false
%45 = zext i1 %44 to i32
%46 = tail call i64 @unlikely(i32 noundef %45) #2
%47 = icmp eq i64 %46, 0
%48 = add i32 %40, -4
%49 = select i1 %47, i32 %40, i32 %48
store i32 %49, ptr %38, align 8, !tbaa !18
%50 = getelementptr inbounds %struct.ixgb_buffer, ptr %36, i64 %37, i32 1
%51 = load i64, ptr %50, align 8, !tbaa !21
%52 = icmp ne i64 %51, 0
%53 = zext i1 %52 to i32
%54 = tail call i32 @WARN_ON(i32 noundef %53) #2
%55 = load ptr, ptr @jiffies, align 8, !tbaa !22
%56 = getelementptr inbounds %struct.ixgb_buffer, ptr %36, i64 %37, i32 5
store ptr %55, ptr %56, align 8, !tbaa !23
%57 = getelementptr inbounds %struct.ixgb_buffer, ptr %36, i64 %37, i32 2
store i32 0, ptr %57, align 8, !tbaa !24
%58 = load i64, ptr %1, align 8, !tbaa !25
%59 = zext i32 %35 to i64
%60 = add nsw i64 %58, %59
%61 = load i32, ptr @DMA_TO_DEVICE, align 4, !tbaa !17
%62 = tail call i64 @dma_map_single(ptr noundef %5, i64 noundef %60, i32 noundef %49, i32 noundef %61) #2
store i64 %62, ptr %50, align 8, !tbaa !21
%63 = tail call i64 @dma_mapping_error(ptr noundef %5, i64 noundef %62) #2
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %140
65: ; preds = %31
%66 = getelementptr inbounds %struct.ixgb_buffer, ptr %36, i64 %37, i32 3
store i32 0, ptr %66, align 4, !tbaa !27
%67 = sub i32 %32, %49
%68 = add i32 %34, 1
%69 = icmp eq i32 %67, 0
br i1 %69, label %20, label %70
70: ; preds = %65
%71 = add i32 %49, %35
%72 = add i32 %33, 1
%73 = load i32, ptr %19, align 4, !tbaa !28
%74 = icmp eq i32 %72, %73
%75 = select i1 %74, i32 0, i32 %72
br label %31, !llvm.loop !29
76: ; preds = %24, %126
%77 = phi i64 [ 0, %24 ], [ %129, %126 ]
%78 = phi i32 [ %22, %24 ], [ %128, %126 ]
%79 = phi i32 [ %21, %24 ], [ %127, %126 ]
%80 = tail call ptr @skb_shinfo(ptr noundef %1) #2
%81 = getelementptr inbounds %struct.TYPE_2__, ptr %80, i64 0, i32 2
%82 = load ptr, ptr %81, align 8, !tbaa !31
%83 = getelementptr inbounds i32, ptr %82, i64 %77
%84 = tail call i32 @skb_frag_size(ptr noundef %83) #2
%85 = icmp eq i32 %84, 0
br i1 %85, label %126, label %86
86: ; preds = %76
%87 = icmp eq i64 %77, %29
%88 = select i1 %27, i1 %87, i1 false
br label %89
89: ; preds = %86, %120
%90 = phi i32 [ %84, %86 ], [ %122, %120 ]
%91 = phi i32 [ %78, %86 ], [ %97, %120 ]
%92 = phi i32 [ %79, %86 ], [ %124, %120 ]
%93 = phi i32 [ 0, %86 ], [ %123, %120 ]
%94 = add i32 %91, 1
%95 = load i32, ptr %25, align 4, !tbaa !28
%96 = icmp eq i32 %94, %95
%97 = select i1 %96, i32 0, i32 %94
%98 = load ptr, ptr %26, align 8, !tbaa !16
%99 = zext i32 %97 to i64
%100 = getelementptr inbounds %struct.ixgb_buffer, ptr %98, i64 %99
%101 = load i32, ptr @IXGB_MAX_DATA_PER_TXD, align 4, !tbaa !17
%102 = tail call i32 @min(i32 noundef %90, i32 noundef %101) #2
%103 = icmp eq i32 %102, %90
%104 = select i1 %88, i1 %103, i1 false
%105 = icmp ugt i32 %102, 8
%106 = select i1 %104, i1 %105, i1 false
%107 = zext i1 %106 to i32
%108 = tail call i64 @unlikely(i32 noundef %107) #2
%109 = icmp eq i64 %108, 0
%110 = add i32 %102, -4
%111 = select i1 %109, i32 %102, i32 %110
store i32 %111, ptr %100, align 8, !tbaa !18
%112 = load ptr, ptr @jiffies, align 8, !tbaa !22
%113 = getelementptr inbounds %struct.ixgb_buffer, ptr %98, i64 %99, i32 5
store ptr %112, ptr %113, align 8, !tbaa !23
%114 = getelementptr inbounds %struct.ixgb_buffer, ptr %98, i64 %99, i32 2
store i32 1, ptr %114, align 8, !tbaa !24
%115 = load i32, ptr @DMA_TO_DEVICE, align 4, !tbaa !17
%116 = tail call i64 @skb_frag_dma_map(ptr noundef %5, ptr noundef %83, i32 noundef %93, i32 noundef %111, i32 noundef %115) #2
%117 = getelementptr inbounds %struct.ixgb_buffer, ptr %98, i64 %99, i32 1
store i64 %116, ptr %117, align 8, !tbaa !21
%118 = tail call i64 @dma_mapping_error(ptr noundef %5, i64 noundef %116) #2
%119 = icmp eq i64 %118, 0
br i1 %119, label %120, label %140
120: ; preds = %89
%121 = getelementptr inbounds %struct.ixgb_buffer, ptr %98, i64 %99, i32 3
store i32 0, ptr %121, align 4, !tbaa !27
%122 = sub i32 %90, %111
%123 = add i32 %111, %93
%124 = add i32 %92, 1
%125 = icmp eq i32 %122, 0
br i1 %125, label %126, label %89, !llvm.loop !32
126: ; preds = %120, %76
%127 = phi i32 [ %79, %76 ], [ %124, %120 ]
%128 = phi i32 [ %78, %76 ], [ %97, %120 ]
%129 = add nuw nsw i64 %77, 1
%130 = icmp eq i64 %129, %30
br i1 %130, label %131, label %76, !llvm.loop !33
131: ; preds = %126, %20
%132 = phi i32 [ %21, %20 ], [ %127, %126 ]
%133 = phi i32 [ %22, %20 ], [ %128, %126 ]
%134 = getelementptr inbounds %struct.ixgb_adapter, ptr %0, i64 0, i32 1, i32 2
%135 = load ptr, ptr %134, align 8, !tbaa !16
%136 = zext i32 %133 to i64
%137 = getelementptr inbounds %struct.ixgb_buffer, ptr %135, i64 %136, i32 4
store ptr %1, ptr %137, align 8, !tbaa !34
%138 = zext i32 %2 to i64
%139 = getelementptr inbounds %struct.ixgb_buffer, ptr %135, i64 %138, i32 3
store i32 %133, ptr %139, align 4, !tbaa !27
br label %166
140: ; preds = %31, %89
%141 = phi i32 [ %92, %89 ], [ %34, %31 ]
%142 = phi i32 [ %97, %89 ], [ %33, %31 ]
%143 = phi ptr [ %100, %89 ], [ %38, %31 ]
%144 = tail call i32 @dev_err(ptr noundef %5, ptr noundef nonnull @.str) #2
%145 = getelementptr inbounds %struct.ixgb_buffer, ptr %143, i64 0, i32 1
store i64 0, ptr %145, align 8, !tbaa !21
%146 = icmp ult i32 %141, 2
br i1 %146, label %166, label %147
147: ; preds = %140
%148 = add i32 %141, -1
%149 = getelementptr inbounds %struct.ixgb_adapter, ptr %0, i64 0, i32 1, i32 1
%150 = getelementptr inbounds %struct.ixgb_adapter, ptr %0, i64 0, i32 1, i32 2
br label %151
151: ; preds = %147, %158
%152 = phi i32 [ %148, %147 ], [ %154, %158 ]
%153 = phi i32 [ %142, %147 ], [ %160, %158 ]
%154 = add i32 %152, -1
%155 = icmp eq i32 %153, 0
br i1 %155, label %156, label %158
156: ; preds = %151
%157 = load i32, ptr %149, align 4, !tbaa !28
br label %158
158: ; preds = %156, %151
%159 = phi i32 [ %157, %156 ], [ %153, %151 ]
%160 = add i32 %159, -1
%161 = load ptr, ptr %150, align 8, !tbaa !16
%162 = zext i32 %160 to i64
%163 = getelementptr inbounds %struct.ixgb_buffer, ptr %161, i64 %162
%164 = tail call i32 @ixgb_unmap_and_free_tx_resource(ptr noundef nonnull %0, ptr noundef %163) #2
%165 = icmp eq i32 %154, 0
br i1 %165, label %166, label %151, !llvm.loop !35
166: ; preds = %158, %140, %131
%167 = phi i32 [ %132, %131 ], [ 0, %140 ], [ 0, %158 ]
ret i32 %167
}
declare i32 @skb_headlen(ptr noundef) local_unnamed_addr #1
declare ptr @skb_shinfo(ptr noundef) local_unnamed_addr #1
declare i32 @min(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare i32 @WARN_ON(i32 noundef) local_unnamed_addr #1
declare i64 @dma_map_single(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @dma_mapping_error(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @skb_frag_size(ptr noundef) local_unnamed_addr #1
declare i64 @skb_frag_dma_map(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ixgb_unmap_and_free_tx_resource(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ixgb_adapter", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"ixgb_desc_ring", !11, i64 0, !11, i64 4, !7, i64 8}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_2__", !11, i64 0, !11, i64 4, !7, i64 8}
!14 = !{!13, !11, i64 4}
!15 = !{!10, !11, i64 0}
!16 = !{!10, !7, i64 8}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"ixgb_buffer", !11, i64 0, !20, i64 8, !11, i64 16, !11, i64 20, !7, i64 24, !7, i64 32}
!20 = !{!"long", !8, i64 0}
!21 = !{!19, !20, i64 8}
!22 = !{!7, !7, i64 0}
!23 = !{!19, !7, i64 32}
!24 = !{!19, !11, i64 16}
!25 = !{!26, !20, i64 0}
!26 = !{!"sk_buff", !20, i64 0}
!27 = !{!19, !11, i64 20}
!28 = !{!10, !11, i64 4}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!13, !7, i64 8}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !30}
!34 = !{!19, !7, i64 24}
!35 = distinct !{!35, !30}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/ixgb/extr_ixgb_main.c_ixgb_tx_map.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/ixgb/extr_ixgb_main.c_ixgb_tx_map.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ixgb_buffer = type { i32, i64, i32, i32, ptr, ptr }
@IXGB_MAX_DATA_PER_TXD = common local_unnamed_addr global i32 0, align 4
@jiffies = common local_unnamed_addr global ptr null, align 8
@DMA_TO_DEVICE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"TX DMA map failed\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @ixgb_tx_map], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ixgb_tx_map(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %0, align 8, !tbaa !6
%6 = tail call i32 @skb_headlen(ptr noundef %1) #2
%7 = tail call ptr @skb_shinfo(ptr noundef %1) #2
%8 = load i32, ptr %7, align 8, !tbaa !13
%9 = tail call ptr @skb_shinfo(ptr noundef %1) #2
%10 = getelementptr inbounds i8, ptr %9, i64 4
%11 = load i32, ptr %10, align 4, !tbaa !15
%12 = load i32, ptr %4, align 8, !tbaa !16
%13 = icmp eq i32 %6, 0
br i1 %13, label %20, label %14
14: ; preds = %3
%15 = getelementptr inbounds i8, ptr %0, i64 16
%16 = icmp ne i32 %8, 0
%17 = icmp eq i32 %11, 0
%18 = select i1 %16, i1 %17, i1 false
%19 = getelementptr inbounds i8, ptr %0, i64 12
br label %31
20: ; preds = %65, %3
%21 = phi i32 [ 0, %3 ], [ %68, %65 ]
%22 = phi i32 [ %12, %3 ], [ %33, %65 ]
%23 = icmp eq i32 %11, 0
br i1 %23, label %131, label %24
24: ; preds = %20
%25 = getelementptr inbounds i8, ptr %0, i64 12
%26 = getelementptr inbounds i8, ptr %0, i64 16
%27 = icmp ne i32 %8, 0
%28 = add i32 %11, -1
%29 = zext i32 %28 to i64
%30 = zext i32 %11 to i64
br label %76
31: ; preds = %70, %14
%32 = phi i32 [ %6, %14 ], [ %67, %70 ]
%33 = phi i32 [ %12, %14 ], [ %75, %70 ]
%34 = phi i32 [ 0, %14 ], [ %68, %70 ]
%35 = phi i32 [ 0, %14 ], [ %71, %70 ]
%36 = load ptr, ptr %15, align 8, !tbaa !17
%37 = zext i32 %33 to i64
%38 = getelementptr inbounds %struct.ixgb_buffer, ptr %36, i64 %37
%39 = load i32, ptr @IXGB_MAX_DATA_PER_TXD, align 4, !tbaa !18
%40 = tail call i32 @min(i32 noundef %32, i32 noundef %39) #2
%41 = icmp eq i32 %40, %32
%42 = icmp ugt i32 %40, 8
%43 = and i1 %41, %42
%44 = select i1 %18, i1 %43, i1 false
%45 = zext i1 %44 to i32
%46 = tail call i64 @unlikely(i32 noundef %45) #2
%47 = icmp eq i64 %46, 0
%48 = add i32 %40, -4
%49 = select i1 %47, i32 %40, i32 %48
store i32 %49, ptr %38, align 8, !tbaa !19
%50 = getelementptr inbounds i8, ptr %38, i64 8
%51 = load i64, ptr %50, align 8, !tbaa !22
%52 = icmp ne i64 %51, 0
%53 = zext i1 %52 to i32
%54 = tail call i32 @WARN_ON(i32 noundef %53) #2
%55 = load ptr, ptr @jiffies, align 8, !tbaa !23
%56 = getelementptr inbounds i8, ptr %38, i64 32
store ptr %55, ptr %56, align 8, !tbaa !24
%57 = getelementptr inbounds i8, ptr %38, i64 16
store i32 0, ptr %57, align 8, !tbaa !25
%58 = load i64, ptr %1, align 8, !tbaa !26
%59 = zext i32 %35 to i64
%60 = add nsw i64 %58, %59
%61 = load i32, ptr @DMA_TO_DEVICE, align 4, !tbaa !18
%62 = tail call i64 @dma_map_single(ptr noundef %5, i64 noundef %60, i32 noundef %49, i32 noundef %61) #2
store i64 %62, ptr %50, align 8, !tbaa !22
%63 = tail call i64 @dma_mapping_error(ptr noundef %5, i64 noundef %62) #2
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %140
65: ; preds = %31
%66 = getelementptr inbounds i8, ptr %38, i64 20
store i32 0, ptr %66, align 4, !tbaa !28
%67 = sub i32 %32, %49
%68 = add i32 %34, 1
%69 = icmp eq i32 %67, 0
br i1 %69, label %20, label %70
70: ; preds = %65
%71 = add i32 %49, %35
%72 = add i32 %33, 1
%73 = load i32, ptr %19, align 4, !tbaa !29
%74 = icmp eq i32 %72, %73
%75 = select i1 %74, i32 0, i32 %72
br label %31, !llvm.loop !30
76: ; preds = %24, %126
%77 = phi i64 [ 0, %24 ], [ %129, %126 ]
%78 = phi i32 [ %22, %24 ], [ %128, %126 ]
%79 = phi i32 [ %21, %24 ], [ %127, %126 ]
%80 = tail call ptr @skb_shinfo(ptr noundef %1) #2
%81 = getelementptr inbounds i8, ptr %80, i64 8
%82 = load ptr, ptr %81, align 8, !tbaa !32
%83 = getelementptr inbounds i32, ptr %82, i64 %77
%84 = tail call i32 @skb_frag_size(ptr noundef %83) #2
%85 = icmp eq i32 %84, 0
br i1 %85, label %126, label %86
86: ; preds = %76
%87 = icmp eq i64 %77, %29
%88 = select i1 %27, i1 %87, i1 false
br label %89
89: ; preds = %86, %120
%90 = phi i32 [ %84, %86 ], [ %122, %120 ]
%91 = phi i32 [ %78, %86 ], [ %97, %120 ]
%92 = phi i32 [ %79, %86 ], [ %124, %120 ]
%93 = phi i32 [ 0, %86 ], [ %123, %120 ]
%94 = add i32 %91, 1
%95 = load i32, ptr %25, align 4, !tbaa !29
%96 = icmp eq i32 %94, %95
%97 = select i1 %96, i32 0, i32 %94
%98 = load ptr, ptr %26, align 8, !tbaa !17
%99 = zext i32 %97 to i64
%100 = getelementptr inbounds %struct.ixgb_buffer, ptr %98, i64 %99
%101 = load i32, ptr @IXGB_MAX_DATA_PER_TXD, align 4, !tbaa !18
%102 = tail call i32 @min(i32 noundef %90, i32 noundef %101) #2
%103 = icmp eq i32 %102, %90
%104 = icmp ugt i32 %102, 8
%105 = and i1 %103, %104
%106 = select i1 %88, i1 %105, i1 false
%107 = zext i1 %106 to i32
%108 = tail call i64 @unlikely(i32 noundef %107) #2
%109 = icmp eq i64 %108, 0
%110 = add i32 %102, -4
%111 = select i1 %109, i32 %102, i32 %110
store i32 %111, ptr %100, align 8, !tbaa !19
%112 = load ptr, ptr @jiffies, align 8, !tbaa !23
%113 = getelementptr inbounds i8, ptr %100, i64 32
store ptr %112, ptr %113, align 8, !tbaa !24
%114 = getelementptr inbounds i8, ptr %100, i64 16
store i32 1, ptr %114, align 8, !tbaa !25
%115 = load i32, ptr @DMA_TO_DEVICE, align 4, !tbaa !18
%116 = tail call i64 @skb_frag_dma_map(ptr noundef %5, ptr noundef %83, i32 noundef %93, i32 noundef %111, i32 noundef %115) #2
%117 = getelementptr inbounds i8, ptr %100, i64 8
store i64 %116, ptr %117, align 8, !tbaa !22
%118 = tail call i64 @dma_mapping_error(ptr noundef %5, i64 noundef %116) #2
%119 = icmp eq i64 %118, 0
br i1 %119, label %120, label %140
120: ; preds = %89
%121 = getelementptr inbounds i8, ptr %100, i64 20
store i32 0, ptr %121, align 4, !tbaa !28
%122 = sub i32 %90, %111
%123 = add i32 %111, %93
%124 = add i32 %92, 1
%125 = icmp eq i32 %122, 0
br i1 %125, label %126, label %89, !llvm.loop !33
126: ; preds = %120, %76
%127 = phi i32 [ %79, %76 ], [ %124, %120 ]
%128 = phi i32 [ %78, %76 ], [ %97, %120 ]
%129 = add nuw nsw i64 %77, 1
%130 = icmp eq i64 %129, %30
br i1 %130, label %131, label %76, !llvm.loop !34
131: ; preds = %126, %20
%132 = phi i32 [ %21, %20 ], [ %127, %126 ]
%133 = phi i32 [ %22, %20 ], [ %128, %126 ]
%134 = getelementptr inbounds i8, ptr %0, i64 16
%135 = load ptr, ptr %134, align 8, !tbaa !17
%136 = zext i32 %133 to i64
%137 = getelementptr inbounds %struct.ixgb_buffer, ptr %135, i64 %136, i32 4
store ptr %1, ptr %137, align 8, !tbaa !35
%138 = zext i32 %2 to i64
%139 = getelementptr inbounds %struct.ixgb_buffer, ptr %135, i64 %138, i32 3
store i32 %133, ptr %139, align 4, !tbaa !28
br label %166
140: ; preds = %31, %89
%141 = phi i32 [ %92, %89 ], [ %34, %31 ]
%142 = phi i32 [ %97, %89 ], [ %33, %31 ]
%143 = phi ptr [ %100, %89 ], [ %38, %31 ]
%144 = tail call i32 @dev_err(ptr noundef %5, ptr noundef nonnull @.str) #2
%145 = getelementptr inbounds i8, ptr %143, i64 8
store i64 0, ptr %145, align 8, !tbaa !22
%146 = icmp ult i32 %141, 2
br i1 %146, label %166, label %147
147: ; preds = %140
%148 = add i32 %141, -1
%149 = getelementptr inbounds i8, ptr %0, i64 12
%150 = getelementptr inbounds i8, ptr %0, i64 16
br label %151
151: ; preds = %147, %158
%152 = phi i32 [ %148, %147 ], [ %154, %158 ]
%153 = phi i32 [ %142, %147 ], [ %160, %158 ]
%154 = add i32 %152, -1
%155 = icmp eq i32 %153, 0
br i1 %155, label %156, label %158
156: ; preds = %151
%157 = load i32, ptr %149, align 4, !tbaa !29
br label %158
158: ; preds = %156, %151
%159 = phi i32 [ %157, %156 ], [ %153, %151 ]
%160 = add i32 %159, -1
%161 = load ptr, ptr %150, align 8, !tbaa !17
%162 = zext i32 %160 to i64
%163 = getelementptr inbounds %struct.ixgb_buffer, ptr %161, i64 %162
%164 = tail call i32 @ixgb_unmap_and_free_tx_resource(ptr noundef nonnull %0, ptr noundef %163) #2
%165 = icmp eq i32 %154, 0
br i1 %165, label %166, label %151, !llvm.loop !36
166: ; preds = %158, %140, %131
%167 = phi i32 [ %132, %131 ], [ 0, %140 ], [ 0, %158 ]
ret i32 %167
}
declare i32 @skb_headlen(ptr noundef) local_unnamed_addr #1
declare ptr @skb_shinfo(ptr noundef) local_unnamed_addr #1
declare i32 @min(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare i32 @WARN_ON(i32 noundef) local_unnamed_addr #1
declare i64 @dma_map_single(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @dma_mapping_error(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @skb_frag_size(ptr noundef) local_unnamed_addr #1
declare i64 @skb_frag_dma_map(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ixgb_unmap_and_free_tx_resource(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ixgb_adapter", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"ixgb_desc_ring", !12, i64 0, !12, i64 4, !8, i64 8}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_2__", !12, i64 0, !12, i64 4, !8, i64 8}
!15 = !{!14, !12, i64 4}
!16 = !{!11, !12, i64 0}
!17 = !{!11, !8, i64 8}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"ixgb_buffer", !12, i64 0, !21, i64 8, !12, i64 16, !12, i64 20, !8, i64 24, !8, i64 32}
!21 = !{!"long", !9, i64 0}
!22 = !{!20, !21, i64 8}
!23 = !{!8, !8, i64 0}
!24 = !{!20, !8, i64 32}
!25 = !{!20, !12, i64 16}
!26 = !{!27, !21, i64 0}
!27 = !{!"sk_buff", !21, i64 0}
!28 = !{!20, !12, i64 20}
!29 = !{!11, !12, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!14, !8, i64 8}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !31}
!35 = !{!20, !8, i64 24}
!36 = distinct !{!36, !31}
| linux_drivers_net_ethernet_intel_ixgb_extr_ixgb_main.c_ixgb_tx_map |
; ModuleID = 'AnghaBench/linux/drivers/clk/extr_clk.c_clk_core_get_parent_by_index.c'
source_filename = "AnghaBench/linux/drivers/clk/extr_clk.c_clk_core_get_parent_by_index.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.clk_core = type { i64, ptr }
%struct.TYPE_2__ = type { ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @clk_core_get_parent_by_index], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @clk_core_get_parent_by_index(ptr noundef %0, i64 noundef %1) #0 {
%3 = icmp eq ptr %0, null
br i1 %3, label %20, label %4
4: ; preds = %2
%5 = load i64, ptr %0, align 8, !tbaa !5
%6 = icmp ugt i64 %5, %1
br i1 %6, label %7, label %20
7: ; preds = %4
%8 = getelementptr inbounds %struct.clk_core, ptr %0, i64 0, i32 1
%9 = load ptr, ptr %8, align 8, !tbaa !11
%10 = icmp eq ptr %9, null
br i1 %10, label %20, label %11
11: ; preds = %7
%12 = getelementptr inbounds %struct.TYPE_2__, ptr %9, i64 %1
%13 = load ptr, ptr %12, align 8, !tbaa !12
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = tail call i32 @clk_core_fill_parent_index(ptr noundef nonnull %0, i64 noundef %1) #2
%17 = load ptr, ptr %8, align 8, !tbaa !11
%18 = getelementptr inbounds %struct.TYPE_2__, ptr %17, i64 %1
%19 = load ptr, ptr %18, align 8, !tbaa !12
br label %20
20: ; preds = %11, %15, %2, %4, %7
%21 = phi ptr [ null, %7 ], [ null, %4 ], [ null, %2 ], [ %19, %15 ], [ %13, %11 ]
ret ptr %21
}
declare i32 @clk_core_fill_parent_index(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"clk_core", !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, !10, i64 0}
!13 = !{!"TYPE_2__", !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/clk/extr_clk.c_clk_core_get_parent_by_index.c'
source_filename = "AnghaBench/linux/drivers/clk/extr_clk.c_clk_core_get_parent_by_index.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 }
@llvm.used = appending global [1 x ptr] [ptr @clk_core_get_parent_by_index], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @clk_core_get_parent_by_index(ptr noundef %0, i64 noundef %1) #0 {
%3 = icmp eq ptr %0, null
br i1 %3, label %20, label %4
4: ; preds = %2
%5 = load i64, ptr %0, align 8, !tbaa !6
%6 = icmp ugt i64 %5, %1
br i1 %6, label %7, label %20
7: ; preds = %4
%8 = getelementptr inbounds i8, ptr %0, i64 8
%9 = load ptr, ptr %8, align 8, !tbaa !12
%10 = icmp eq ptr %9, null
br i1 %10, label %20, label %11
11: ; preds = %7
%12 = getelementptr inbounds %struct.TYPE_2__, ptr %9, i64 %1
%13 = load ptr, ptr %12, align 8, !tbaa !13
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = tail call i32 @clk_core_fill_parent_index(ptr noundef nonnull %0, i64 noundef %1) #2
%17 = load ptr, ptr %8, align 8, !tbaa !12
%18 = getelementptr inbounds %struct.TYPE_2__, ptr %17, i64 %1
%19 = load ptr, ptr %18, align 8, !tbaa !13
br label %20
20: ; preds = %11, %15, %2, %4, %7
%21 = phi ptr [ null, %7 ], [ null, %4 ], [ null, %2 ], [ %19, %15 ], [ %13, %11 ]
ret ptr %21
}
declare i32 @clk_core_fill_parent_index(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"clk_core", !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, !11, i64 0}
!14 = !{!"TYPE_2__", !11, i64 0}
| linux_drivers_clk_extr_clk.c_clk_core_get_parent_by_index |
; ModuleID = 'AnghaBench/zfs/module/zfs/extr_zap_micro.c_mze_destroy.c'
source_filename = "AnghaBench/zfs/module/zfs/extr_zap_micro.c_mze_destroy.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 @mze_destroy], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mze_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
store ptr null, ptr %2, align 8, !tbaa !5
%3 = call ptr @avl_destroy_nodes(ptr noundef %0, ptr noundef nonnull %2) #3
%4 = icmp eq ptr %3, null
br i1 %4, label %10, label %5
5: ; preds = %1, %5
%6 = phi ptr [ %8, %5 ], [ %3, %1 ]
%7 = call i32 @kmem_free(ptr noundef nonnull %6, i32 noundef 4) #3
%8 = call ptr @avl_destroy_nodes(ptr noundef %0, ptr noundef nonnull %2) #3
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %5, !llvm.loop !9
10: ; preds = %5, %1
%11 = call i32 @avl_destroy(ptr noundef %0) #3
call void @llvm.lifetime.end.p0(i64 8, 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 ptr @avl_destroy_nodes(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @kmem_free(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @avl_destroy(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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/zfs/module/zfs/extr_zap_micro.c_mze_destroy.c'
source_filename = "AnghaBench/zfs/module/zfs/extr_zap_micro.c_mze_destroy.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 @mze_destroy], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mze_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
store ptr null, ptr %2, align 8, !tbaa !6
%3 = call ptr @avl_destroy_nodes(ptr noundef %0, ptr noundef nonnull %2) #3
%4 = icmp eq ptr %3, null
br i1 %4, label %10, label %5
5: ; preds = %1, %5
%6 = phi ptr [ %8, %5 ], [ %3, %1 ]
%7 = call i32 @kmem_free(ptr noundef nonnull %6, i32 noundef 4) #3
%8 = call ptr @avl_destroy_nodes(ptr noundef %0, ptr noundef nonnull %2) #3
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %5, !llvm.loop !10
10: ; preds = %5, %1
%11 = call i32 @avl_destroy(ptr noundef %0) #3
call void @llvm.lifetime.end.p0(i64 8, 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 ptr @avl_destroy_nodes(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @kmem_free(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @avl_destroy(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 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| zfs_module_zfs_extr_zap_micro.c_mze_destroy |
; ModuleID = 'AnghaBench/linux/drivers/pci/pcie/extr_pme.c_pcie_pme_from_pci_bridge.c'
source_filename = "AnghaBench/linux/drivers/pci/pcie/extr_pme.c_pcie_pme_from_pci_bridge.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"
@PCI_EXP_TYPE_PCI_BRIDGE = dso_local local_unnamed_addr global i64 0, align 8
@pci_bus_sem = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @pcie_pme_from_pci_bridge], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pcie_pme_from_pci_bridge(ptr noundef %0, i64 noundef %1) #0 {
%3 = icmp eq i64 %1, 0
br i1 %3, label %4, label %24
4: ; preds = %2
%5 = load i32, ptr %0, align 4, !tbaa !5
%6 = tail call ptr @pci_dev_get(i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %24, label %8
8: ; preds = %4
%9 = tail call i64 @pci_is_pcie(ptr noundef nonnull %6) #2
%10 = icmp eq i64 %9, 0
br i1 %10, label %21, label %11
11: ; preds = %8
%12 = tail call i64 @pci_pcie_type(ptr noundef nonnull %6) #2
%13 = load i64, ptr @PCI_EXP_TYPE_PCI_BRIDGE, align 8, !tbaa !10
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %21
15: ; preds = %11
%16 = tail call i32 @down_read(ptr noundef nonnull @pci_bus_sem) #2
%17 = tail call i64 @pcie_pme_walk_bus(ptr noundef nonnull %0) #2
%18 = icmp ne i64 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @up_read(ptr noundef nonnull @pci_bus_sem) #2
br label %21
21: ; preds = %15, %11, %8
%22 = phi i32 [ %19, %15 ], [ 0, %11 ], [ 0, %8 ]
%23 = tail call i32 @pci_dev_put(ptr noundef nonnull %6) #2
br label %24
24: ; preds = %4, %2, %21
%25 = phi i32 [ %22, %21 ], [ 0, %2 ], [ 0, %4 ]
ret i32 %25
}
declare ptr @pci_dev_get(i32 noundef) local_unnamed_addr #1
declare i64 @pci_is_pcie(ptr noundef) local_unnamed_addr #1
declare i64 @pci_pcie_type(ptr noundef) local_unnamed_addr #1
declare i32 @down_read(ptr noundef) local_unnamed_addr #1
declare i64 @pcie_pme_walk_bus(ptr noundef) local_unnamed_addr #1
declare i32 @up_read(ptr noundef) local_unnamed_addr #1
declare i32 @pci_dev_put(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"pci_bus", !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}
| ; ModuleID = 'AnghaBench/linux/drivers/pci/pcie/extr_pme.c_pcie_pme_from_pci_bridge.c'
source_filename = "AnghaBench/linux/drivers/pci/pcie/extr_pme.c_pcie_pme_from_pci_bridge.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCI_EXP_TYPE_PCI_BRIDGE = common local_unnamed_addr global i64 0, align 8
@pci_bus_sem = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @pcie_pme_from_pci_bridge], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @pcie_pme_from_pci_bridge(ptr noundef %0, i64 noundef %1) #0 {
%3 = icmp eq i64 %1, 0
br i1 %3, label %4, label %24
4: ; preds = %2
%5 = load i32, ptr %0, align 4, !tbaa !6
%6 = tail call ptr @pci_dev_get(i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %24, label %8
8: ; preds = %4
%9 = tail call i64 @pci_is_pcie(ptr noundef nonnull %6) #2
%10 = icmp eq i64 %9, 0
br i1 %10, label %21, label %11
11: ; preds = %8
%12 = tail call i64 @pci_pcie_type(ptr noundef nonnull %6) #2
%13 = load i64, ptr @PCI_EXP_TYPE_PCI_BRIDGE, align 8, !tbaa !11
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %21
15: ; preds = %11
%16 = tail call i32 @down_read(ptr noundef nonnull @pci_bus_sem) #2
%17 = tail call i64 @pcie_pme_walk_bus(ptr noundef nonnull %0) #2
%18 = icmp ne i64 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @up_read(ptr noundef nonnull @pci_bus_sem) #2
br label %21
21: ; preds = %15, %11, %8
%22 = phi i32 [ %19, %15 ], [ 0, %11 ], [ 0, %8 ]
%23 = tail call i32 @pci_dev_put(ptr noundef nonnull %6) #2
br label %24
24: ; preds = %4, %2, %21
%25 = phi i32 [ %22, %21 ], [ 0, %2 ], [ 0, %4 ]
ret i32 %25
}
declare ptr @pci_dev_get(i32 noundef) local_unnamed_addr #1
declare i64 @pci_is_pcie(ptr noundef) local_unnamed_addr #1
declare i64 @pci_pcie_type(ptr noundef) local_unnamed_addr #1
declare i32 @down_read(ptr noundef) local_unnamed_addr #1
declare i64 @pcie_pme_walk_bus(ptr noundef) local_unnamed_addr #1
declare i32 @up_read(ptr noundef) local_unnamed_addr #1
declare i32 @pci_dev_put(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"pci_bus", !8, i64 0}
!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}
| linux_drivers_pci_pcie_extr_pme.c_pcie_pme_from_pci_bridge |
; ModuleID = 'AnghaBench/reactos/dll/win32/comctl32/extr_updown.c_UPDOWN_IsBuddyListbox.c'
source_filename = "AnghaBench/reactos/dll/win32/comctl32/extr_updown.c_UPDOWN_IsBuddyListbox.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"
@BUDDY_TYPE_LISTBOX = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @UPDOWN_IsBuddyListbox], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal i32 @UPDOWN_IsBuddyListbox(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = load i64, ptr @BUDDY_TYPE_LISTBOX, align 8, !tbaa !10
%4 = icmp eq i64 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_3__", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/comctl32/extr_updown.c_UPDOWN_IsBuddyListbox.c'
source_filename = "AnghaBench/reactos/dll/win32/comctl32/extr_updown.c_UPDOWN_IsBuddyListbox.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BUDDY_TYPE_LISTBOX = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @UPDOWN_IsBuddyListbox], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal range(i32 0, 2) i32 @UPDOWN_IsBuddyListbox(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = load i64, ptr @BUDDY_TYPE_LISTBOX, align 8, !tbaa !11
%4 = icmp eq i64 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_3__", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| reactos_dll_win32_comctl32_extr_updown.c_UPDOWN_IsBuddyListbox |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_de4x5.c_de4x5_dbg_media.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_de4x5.c_de4x5_dbg_media.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.de4x5_private = type { i64, i64, i64 }
@de4x5_debug = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_MEDIA = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"%s: media is %s%s\0A\00", align 1
@NC = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [50 x i8] c"unconnected, link down or incompatible connection\00", align 1
@TP = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [3 x i8] c"TP\00", align 1
@ANS = dso_local local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [8 x i8] c"TP/Nway\00", align 1
@BNC = dso_local local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [4 x i8] c"BNC\00", align 1
@AUI = dso_local local_unnamed_addr global i64 0, align 8
@.str.5 = private unnamed_addr constant [4 x i8] c"AUI\00", align 1
@BNC_AUI = dso_local local_unnamed_addr global i64 0, align 8
@.str.6 = private unnamed_addr constant [8 x i8] c"BNC/AUI\00", align 1
@EXT_SIA = dso_local local_unnamed_addr global i64 0, align 8
@.str.7 = private unnamed_addr constant [8 x i8] c"EXT SIA\00", align 1
@_100Mb = dso_local local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [8 x i8] c"100Mb/s\00", align 1
@_10Mb = dso_local local_unnamed_addr global i64 0, align 8
@.str.9 = private unnamed_addr constant [7 x i8] c"10Mb/s\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"???\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c" full duplex.\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c".\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @de4x5_dbg_media], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @de4x5_dbg_media(ptr noundef %0) #0 {
%2 = tail call ptr @netdev_priv(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.de4x5_private, ptr %2, i64 0, i32 1
%5 = load i64, ptr %4, align 8, !tbaa !10
%6 = icmp eq i64 %3, %5
br i1 %6, label %51, label %7
7: ; preds = %1
%8 = load i32, ptr @de4x5_debug, align 4, !tbaa !11
%9 = load i32, ptr @DEBUG_MEDIA, align 4, !tbaa !11
%10 = and i32 %9, %8
%11 = icmp eq i32 %10, 0
br i1 %11, label %49, label %12
12: ; preds = %7
%13 = load i32, ptr %0, align 4, !tbaa !13
%14 = load i64, ptr @NC, align 8, !tbaa !15
%15 = icmp eq i64 %3, %14
br i1 %15, label %41, label %16
16: ; preds = %12
%17 = load i64, ptr @TP, align 8, !tbaa !15
%18 = icmp eq i64 %3, %17
br i1 %18, label %41, label %19
19: ; preds = %16
%20 = load i64, ptr @ANS, align 8, !tbaa !15
%21 = icmp eq i64 %3, %20
br i1 %21, label %41, label %22
22: ; preds = %19
%23 = load i64, ptr @BNC, align 8, !tbaa !15
%24 = icmp eq i64 %3, %23
br i1 %24, label %41, label %25
25: ; preds = %22
%26 = load i64, ptr @AUI, align 8, !tbaa !15
%27 = icmp eq i64 %3, %26
br i1 %27, label %41, label %28
28: ; preds = %25
%29 = load i64, ptr @BNC_AUI, align 8, !tbaa !15
%30 = icmp eq i64 %3, %29
br i1 %30, label %41, label %31
31: ; preds = %28
%32 = load i64, ptr @EXT_SIA, align 8, !tbaa !15
%33 = icmp eq i64 %3, %32
br i1 %33, label %41, label %34
34: ; preds = %31
%35 = load i64, ptr @_100Mb, align 8, !tbaa !15
%36 = icmp eq i64 %3, %35
br i1 %36, label %41, label %37
37: ; preds = %34
%38 = load i64, ptr @_10Mb, align 8, !tbaa !15
%39 = icmp eq i64 %3, %38
%40 = select i1 %39, ptr @.str.9, ptr @.str.10
br label %41
41: ; preds = %16, %22, %28, %37, %34, %31, %25, %19, %12
%42 = phi ptr [ @.str.1, %12 ], [ @.str.2, %16 ], [ @.str.3, %19 ], [ @.str.4, %22 ], [ @.str.5, %25 ], [ @.str.6, %28 ], [ @.str.7, %31 ], [ %40, %37 ], [ @.str.8, %34 ]
%43 = getelementptr inbounds %struct.de4x5_private, ptr %2, i64 0, i32 2
%44 = load i64, ptr %43, align 8, !tbaa !16
%45 = icmp eq i64 %44, 0
%46 = select i1 %45, ptr @.str.12, ptr @.str.11
%47 = tail call i32 @printk(ptr noundef nonnull @.str, i32 noundef %13, ptr noundef nonnull %42, ptr noundef nonnull %46) #2
%48 = load i64, ptr %2, align 8, !tbaa !5
br label %49
49: ; preds = %41, %7
%50 = phi i64 [ %48, %41 ], [ %3, %7 ]
store i64 %50, ptr %4, align 8, !tbaa !10
br label %51
51: ; preds = %49, %1
ret void
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @printk(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"de4x5_private", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"net_device", !12, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 16}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_de4x5.c_de4x5_dbg_media.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_de4x5.c_de4x5_dbg_media.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@de4x5_debug = common local_unnamed_addr global i32 0, align 4
@DEBUG_MEDIA = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"%s: media is %s%s\0A\00", align 1
@NC = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [50 x i8] c"unconnected, link down or incompatible connection\00", align 1
@TP = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [3 x i8] c"TP\00", align 1
@ANS = common local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [8 x i8] c"TP/Nway\00", align 1
@BNC = common local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [4 x i8] c"BNC\00", align 1
@AUI = common local_unnamed_addr global i64 0, align 8
@.str.5 = private unnamed_addr constant [4 x i8] c"AUI\00", align 1
@BNC_AUI = common local_unnamed_addr global i64 0, align 8
@.str.6 = private unnamed_addr constant [8 x i8] c"BNC/AUI\00", align 1
@EXT_SIA = common local_unnamed_addr global i64 0, align 8
@.str.7 = private unnamed_addr constant [8 x i8] c"EXT SIA\00", align 1
@_100Mb = common local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [8 x i8] c"100Mb/s\00", align 1
@_10Mb = common local_unnamed_addr global i64 0, align 8
@.str.9 = private unnamed_addr constant [7 x i8] c"10Mb/s\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"???\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c" full duplex.\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c".\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @de4x5_dbg_media], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @de4x5_dbg_media(ptr noundef %0) #0 {
%2 = tail call ptr @netdev_priv(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %2, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !11
%6 = icmp eq i64 %3, %5
br i1 %6, label %51, label %7
7: ; preds = %1
%8 = load i32, ptr @de4x5_debug, align 4, !tbaa !12
%9 = load i32, ptr @DEBUG_MEDIA, align 4, !tbaa !12
%10 = and i32 %9, %8
%11 = icmp eq i32 %10, 0
br i1 %11, label %49, label %12
12: ; preds = %7
%13 = load i32, ptr %0, align 4, !tbaa !14
%14 = load i64, ptr @NC, align 8, !tbaa !16
%15 = icmp eq i64 %3, %14
br i1 %15, label %41, label %16
16: ; preds = %12
%17 = load i64, ptr @TP, align 8, !tbaa !16
%18 = icmp eq i64 %3, %17
br i1 %18, label %41, label %19
19: ; preds = %16
%20 = load i64, ptr @ANS, align 8, !tbaa !16
%21 = icmp eq i64 %3, %20
br i1 %21, label %41, label %22
22: ; preds = %19
%23 = load i64, ptr @BNC, align 8, !tbaa !16
%24 = icmp eq i64 %3, %23
br i1 %24, label %41, label %25
25: ; preds = %22
%26 = load i64, ptr @AUI, align 8, !tbaa !16
%27 = icmp eq i64 %3, %26
br i1 %27, label %41, label %28
28: ; preds = %25
%29 = load i64, ptr @BNC_AUI, align 8, !tbaa !16
%30 = icmp eq i64 %3, %29
br i1 %30, label %41, label %31
31: ; preds = %28
%32 = load i64, ptr @EXT_SIA, align 8, !tbaa !16
%33 = icmp eq i64 %3, %32
br i1 %33, label %41, label %34
34: ; preds = %31
%35 = load i64, ptr @_100Mb, align 8, !tbaa !16
%36 = icmp eq i64 %3, %35
br i1 %36, label %41, label %37
37: ; preds = %34
%38 = load i64, ptr @_10Mb, align 8, !tbaa !16
%39 = icmp eq i64 %3, %38
%40 = select i1 %39, ptr @.str.9, ptr @.str.10
br label %41
41: ; preds = %16, %22, %28, %37, %34, %31, %25, %19, %12
%42 = phi ptr [ @.str.1, %12 ], [ @.str.2, %16 ], [ @.str.3, %19 ], [ @.str.4, %22 ], [ @.str.5, %25 ], [ @.str.6, %28 ], [ @.str.7, %31 ], [ %40, %37 ], [ @.str.8, %34 ]
%43 = getelementptr inbounds i8, ptr %2, i64 16
%44 = load i64, ptr %43, align 8, !tbaa !17
%45 = icmp eq i64 %44, 0
%46 = select i1 %45, ptr @.str.12, ptr @.str.11
%47 = tail call i32 @printk(ptr noundef nonnull @.str, i32 noundef %13, ptr noundef nonnull %42, ptr noundef nonnull %46) #2
%48 = load i64, ptr %2, align 8, !tbaa !6
br label %49
49: ; preds = %41, %7
%50 = phi i64 [ %48, %41 ], [ %3, %7 ]
store i64 %50, ptr %4, align 8, !tbaa !11
br label %51
51: ; preds = %49, %1
ret void
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @printk(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"de4x5_private", !8, i64 0, !8, i64 8, !8, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"net_device", !13, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !8, i64 16}
| linux_drivers_net_ethernet_dec_tulip_extr_de4x5.c_de4x5_dbg_media |
; ModuleID = 'AnghaBench/linux/fs/fscache/extr_cache.c_fscache_withdraw_cache.c'
source_filename = "AnghaBench/linux/fs/fscache/extr_cache.c_fscache_withdraw_cache.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, i32 }
%struct.fscache_cache = type { ptr, i32, i32, i32, ptr, i32, i32 }
%struct.TYPE_3__ = type { ptr, ptr }
@dying_objects = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Withdrawing cache \22%s\22\0A\00", align 1
@FSCACHE_CACHE_WITHDRAWN = dso_local local_unnamed_addr global i32 0, align 4
@fscache_addremove_sem = dso_local global i32 0, align 4
@fscache_n_cop_sync_cache = dso_local global i32 0, align 4
@fscache_n_cop_dissociate_pages = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"destroy\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"wait for finish\00", align 1
@fscache_cache_cleared_wq = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"wait for clearance\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"cleared\00", align 1
@FSCACHE_TAG_RESERVED = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @fscache_withdraw_cache(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @dying_objects, align 4, !tbaa !5
%3 = tail call i32 @LIST_HEAD(i32 noundef %2) #2
%4 = tail call i32 @_enter(ptr noundef nonnull @.str) #2
%5 = load ptr, ptr %0, align 8, !tbaa !9
%6 = getelementptr inbounds %struct.TYPE_4__, ptr %5, i64 0, i32 2
%7 = load i32, ptr %6, align 8, !tbaa !12
%8 = tail call i32 @pr_notice(ptr noundef nonnull @.str.1, i32 noundef %7) #2
%9 = load i32, ptr @FSCACHE_CACHE_WITHDRAWN, align 4, !tbaa !5
%10 = getelementptr inbounds %struct.fscache_cache, ptr %0, i64 0, i32 6
%11 = tail call i64 @test_and_set_bit(i32 noundef %9, ptr noundef nonnull %10) #2
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %1
%14 = tail call i32 (...) @BUG() #2
br label %15
15: ; preds = %13, %1
%16 = tail call i32 @down_write(ptr noundef nonnull @fscache_addremove_sem) #2
%17 = getelementptr inbounds %struct.fscache_cache, ptr %0, i64 0, i32 5
%18 = tail call i32 @list_del_init(ptr noundef nonnull %17) #2
%19 = load ptr, ptr %0, align 8, !tbaa !9
%20 = getelementptr inbounds %struct.TYPE_4__, ptr %19, i64 0, i32 1
store ptr null, ptr %20, align 8, !tbaa !14
%21 = tail call i32 @up_write(ptr noundef nonnull @fscache_addremove_sem) #2
%22 = tail call i32 @fscache_stat(ptr noundef nonnull @fscache_n_cop_sync_cache) #2
%23 = getelementptr inbounds %struct.fscache_cache, ptr %0, i64 0, i32 4
%24 = load ptr, ptr %23, align 8, !tbaa !15
%25 = getelementptr inbounds %struct.TYPE_3__, ptr %24, i64 0, i32 1
%26 = load ptr, ptr %25, align 8, !tbaa !16
%27 = tail call i32 %26(ptr noundef nonnull %0) #2
%28 = tail call i32 @fscache_stat_d(ptr noundef nonnull @fscache_n_cop_sync_cache) #2
%29 = tail call i32 @fscache_stat(ptr noundef nonnull @fscache_n_cop_dissociate_pages) #2
%30 = load ptr, ptr %23, align 8, !tbaa !15
%31 = load ptr, ptr %30, align 8, !tbaa !18
%32 = tail call i32 %31(ptr noundef nonnull %0) #2
%33 = tail call i32 @fscache_stat_d(ptr noundef nonnull @fscache_n_cop_dissociate_pages) #2
%34 = tail call i32 @_debug(ptr noundef nonnull @.str.2) #2
%35 = tail call i32 @fscache_withdraw_all_objects(ptr noundef nonnull %0, ptr noundef nonnull @dying_objects) #2
%36 = tail call i32 @_debug(ptr noundef nonnull @.str.3) #2
%37 = load i32, ptr @fscache_cache_cleared_wq, align 4, !tbaa !5
%38 = getelementptr inbounds %struct.fscache_cache, ptr %0, i64 0, i32 3
%39 = tail call i64 @atomic_read(ptr noundef nonnull %38) #2
%40 = icmp eq i64 %39, 0
%41 = zext i1 %40 to i32
%42 = tail call i32 @wait_event(i32 noundef %37, i32 noundef %41) #2
%43 = tail call i32 @_debug(ptr noundef nonnull @.str.4) #2
%44 = load i32, ptr @fscache_cache_cleared_wq, align 4, !tbaa !5
%45 = getelementptr inbounds %struct.fscache_cache, ptr %0, i64 0, i32 2
%46 = tail call i32 @list_empty(ptr noundef nonnull %45) #2
%47 = tail call i32 @wait_event(i32 noundef %44, i32 noundef %46) #2
%48 = tail call i32 @_debug(ptr noundef nonnull @.str.5) #2
%49 = tail call i32 @list_empty(ptr noundef nonnull @dying_objects) #2
%50 = tail call i32 @ASSERT(i32 noundef %49) #2
%51 = getelementptr inbounds %struct.fscache_cache, ptr %0, i64 0, i32 1
%52 = load i32, ptr %51, align 8, !tbaa !19
%53 = tail call i32 @kobject_put(i32 noundef %52) #2
%54 = load i32, ptr @FSCACHE_TAG_RESERVED, align 4, !tbaa !5
%55 = load ptr, ptr %0, align 8, !tbaa !9
%56 = tail call i32 @clear_bit(i32 noundef %54, ptr noundef %55) #2
%57 = load ptr, ptr %0, align 8, !tbaa !9
%58 = tail call i32 @fscache_release_cache_tag(ptr noundef %57) #2
store ptr null, ptr %0, align 8, !tbaa !9
%59 = tail call i32 @_leave(ptr noundef nonnull @.str) #2
ret void
}
declare i32 @LIST_HEAD(i32 noundef) local_unnamed_addr #1
declare i32 @_enter(ptr noundef) local_unnamed_addr #1
declare i32 @pr_notice(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @test_and_set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @BUG(...) local_unnamed_addr #1
declare i32 @down_write(ptr noundef) local_unnamed_addr #1
declare i32 @list_del_init(ptr noundef) local_unnamed_addr #1
declare i32 @up_write(ptr noundef) local_unnamed_addr #1
declare i32 @fscache_stat(ptr noundef) local_unnamed_addr #1
declare i32 @fscache_stat_d(ptr noundef) local_unnamed_addr #1
declare i32 @_debug(ptr noundef) local_unnamed_addr #1
declare i32 @fscache_withdraw_all_objects(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wait_event(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @atomic_read(ptr noundef) local_unnamed_addr #1
declare i32 @list_empty(ptr noundef) local_unnamed_addr #1
declare i32 @ASSERT(i32 noundef) local_unnamed_addr #1
declare i32 @kobject_put(i32 noundef) local_unnamed_addr #1
declare i32 @clear_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fscache_release_cache_tag(ptr noundef) local_unnamed_addr #1
declare i32 @_leave(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 = !{!"fscache_cache", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !11, i64 24, !6, i64 32, !6, i64 36}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 16}
!13 = !{!"TYPE_4__", !6, i64 0, !11, i64 8, !6, i64 16}
!14 = !{!13, !11, i64 8}
!15 = !{!10, !11, i64 24}
!16 = !{!17, !11, i64 8}
!17 = !{!"TYPE_3__", !11, i64 0, !11, i64 8}
!18 = !{!17, !11, i64 0}
!19 = !{!10, !6, i64 8}
| ; ModuleID = 'AnghaBench/linux/fs/fscache/extr_cache.c_fscache_withdraw_cache.c'
source_filename = "AnghaBench/linux/fs/fscache/extr_cache.c_fscache_withdraw_cache.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@dying_objects = common global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Withdrawing cache \22%s\22\0A\00", align 1
@FSCACHE_CACHE_WITHDRAWN = common local_unnamed_addr global i32 0, align 4
@fscache_addremove_sem = common global i32 0, align 4
@fscache_n_cop_sync_cache = common global i32 0, align 4
@fscache_n_cop_dissociate_pages = common global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"destroy\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"wait for finish\00", align 1
@fscache_cache_cleared_wq = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"wait for clearance\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"cleared\00", align 1
@FSCACHE_TAG_RESERVED = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @fscache_withdraw_cache(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @dying_objects, align 4, !tbaa !6
%3 = tail call i32 @LIST_HEAD(i32 noundef %2) #2
%4 = tail call i32 @_enter(ptr noundef nonnull @.str) #2
%5 = load ptr, ptr %0, align 8, !tbaa !10
%6 = getelementptr inbounds i8, ptr %5, i64 16
%7 = load i32, ptr %6, align 8, !tbaa !13
%8 = tail call i32 @pr_notice(ptr noundef nonnull @.str.1, i32 noundef %7) #2
%9 = load i32, ptr @FSCACHE_CACHE_WITHDRAWN, align 4, !tbaa !6
%10 = getelementptr inbounds i8, ptr %0, i64 36
%11 = tail call i64 @test_and_set_bit(i32 noundef %9, ptr noundef nonnull %10) #2
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %1
%14 = tail call i32 @BUG() #2
br label %15
15: ; preds = %13, %1
%16 = tail call i32 @down_write(ptr noundef nonnull @fscache_addremove_sem) #2
%17 = getelementptr inbounds i8, ptr %0, i64 32
%18 = tail call i32 @list_del_init(ptr noundef nonnull %17) #2
%19 = load ptr, ptr %0, align 8, !tbaa !10
%20 = getelementptr inbounds i8, ptr %19, i64 8
store ptr null, ptr %20, align 8, !tbaa !15
%21 = tail call i32 @up_write(ptr noundef nonnull @fscache_addremove_sem) #2
%22 = tail call i32 @fscache_stat(ptr noundef nonnull @fscache_n_cop_sync_cache) #2
%23 = getelementptr inbounds i8, ptr %0, i64 24
%24 = load ptr, ptr %23, align 8, !tbaa !16
%25 = getelementptr inbounds i8, ptr %24, i64 8
%26 = load ptr, ptr %25, align 8, !tbaa !17
%27 = tail call i32 %26(ptr noundef nonnull %0) #2
%28 = tail call i32 @fscache_stat_d(ptr noundef nonnull @fscache_n_cop_sync_cache) #2
%29 = tail call i32 @fscache_stat(ptr noundef nonnull @fscache_n_cop_dissociate_pages) #2
%30 = load ptr, ptr %23, align 8, !tbaa !16
%31 = load ptr, ptr %30, align 8, !tbaa !19
%32 = tail call i32 %31(ptr noundef nonnull %0) #2
%33 = tail call i32 @fscache_stat_d(ptr noundef nonnull @fscache_n_cop_dissociate_pages) #2
%34 = tail call i32 @_debug(ptr noundef nonnull @.str.2) #2
%35 = tail call i32 @fscache_withdraw_all_objects(ptr noundef nonnull %0, ptr noundef nonnull @dying_objects) #2
%36 = tail call i32 @_debug(ptr noundef nonnull @.str.3) #2
%37 = load i32, ptr @fscache_cache_cleared_wq, align 4, !tbaa !6
%38 = getelementptr inbounds i8, ptr %0, i64 16
%39 = tail call i64 @atomic_read(ptr noundef nonnull %38) #2
%40 = icmp eq i64 %39, 0
%41 = zext i1 %40 to i32
%42 = tail call i32 @wait_event(i32 noundef %37, i32 noundef %41) #2
%43 = tail call i32 @_debug(ptr noundef nonnull @.str.4) #2
%44 = load i32, ptr @fscache_cache_cleared_wq, align 4, !tbaa !6
%45 = getelementptr inbounds i8, ptr %0, i64 12
%46 = tail call i32 @list_empty(ptr noundef nonnull %45) #2
%47 = tail call i32 @wait_event(i32 noundef %44, i32 noundef %46) #2
%48 = tail call i32 @_debug(ptr noundef nonnull @.str.5) #2
%49 = tail call i32 @list_empty(ptr noundef nonnull @dying_objects) #2
%50 = tail call i32 @ASSERT(i32 noundef %49) #2
%51 = getelementptr inbounds i8, ptr %0, i64 8
%52 = load i32, ptr %51, align 8, !tbaa !20
%53 = tail call i32 @kobject_put(i32 noundef %52) #2
%54 = load i32, ptr @FSCACHE_TAG_RESERVED, align 4, !tbaa !6
%55 = load ptr, ptr %0, align 8, !tbaa !10
%56 = tail call i32 @clear_bit(i32 noundef %54, ptr noundef %55) #2
%57 = load ptr, ptr %0, align 8, !tbaa !10
%58 = tail call i32 @fscache_release_cache_tag(ptr noundef %57) #2
store ptr null, ptr %0, align 8, !tbaa !10
%59 = tail call i32 @_leave(ptr noundef nonnull @.str) #2
ret void
}
declare i32 @LIST_HEAD(i32 noundef) local_unnamed_addr #1
declare i32 @_enter(ptr noundef) local_unnamed_addr #1
declare i32 @pr_notice(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @test_and_set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @BUG(...) local_unnamed_addr #1
declare i32 @down_write(ptr noundef) local_unnamed_addr #1
declare i32 @list_del_init(ptr noundef) local_unnamed_addr #1
declare i32 @up_write(ptr noundef) local_unnamed_addr #1
declare i32 @fscache_stat(ptr noundef) local_unnamed_addr #1
declare i32 @fscache_stat_d(ptr noundef) local_unnamed_addr #1
declare i32 @_debug(ptr noundef) local_unnamed_addr #1
declare i32 @fscache_withdraw_all_objects(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wait_event(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @atomic_read(ptr noundef) local_unnamed_addr #1
declare i32 @list_empty(ptr noundef) local_unnamed_addr #1
declare i32 @ASSERT(i32 noundef) local_unnamed_addr #1
declare i32 @kobject_put(i32 noundef) local_unnamed_addr #1
declare i32 @clear_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fscache_release_cache_tag(ptr noundef) local_unnamed_addr #1
declare i32 @_leave(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 = !{!"fscache_cache", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !12, i64 24, !7, i64 32, !7, i64 36}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 16}
!14 = !{!"TYPE_4__", !7, i64 0, !12, i64 8, !7, i64 16}
!15 = !{!14, !12, i64 8}
!16 = !{!11, !12, i64 24}
!17 = !{!18, !12, i64 8}
!18 = !{!"TYPE_3__", !12, i64 0, !12, i64 8}
!19 = !{!18, !12, i64 0}
!20 = !{!11, !7, i64 8}
| linux_fs_fscache_extr_cache.c_fscache_withdraw_cache |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/sunrpc/auth_gss/extr_gss_mech_switch.c_gss_import_sec_context.c'
source_filename = "AnghaBench/fastsocket/kernel/net/sunrpc/auth_gss/extr_gss_mech_switch.c_gss_import_sec_context.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
; Function Attrs: nounwind uwtable
define dso_local i32 @gss_import_sec_context(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr nocapture noundef %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = tail call ptr @kzalloc(i32 noundef 4, i32 noundef %4) #2
store ptr %6, ptr %3, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load i32, ptr @ENOMEM, align 4, !tbaa !9
%10 = sub nsw i32 0, %9
br label %17
11: ; preds = %5
%12 = tail call i32 @gss_mech_get(ptr noundef %2) #2
%13 = load ptr, ptr %3, align 8, !tbaa !5
store i32 %12, ptr %13, align 4, !tbaa !11
%14 = load ptr, ptr %2, align 8, !tbaa !13
%15 = load ptr, ptr %14, align 8, !tbaa !15
%16 = tail call i32 %15(ptr noundef %0, i64 noundef %1, ptr noundef nonnull %13, i32 noundef %4) #2
br label %17
17: ; preds = %11, %8
%18 = phi i32 [ %16, %11 ], [ %10, %8 ]
ret i32 %18
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @gss_mech_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)"}
!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 = !{!"gss_ctx", !10, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"gss_api_mech", !6, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"TYPE_2__", !6, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/sunrpc/auth_gss/extr_gss_mech_switch.c_gss_import_sec_context.c'
source_filename = "AnghaBench/fastsocket/kernel/net/sunrpc/auth_gss/extr_gss_mech_switch.c_gss_import_sec_context.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
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @gss_import_sec_context(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr nocapture noundef %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = tail call ptr @kzalloc(i32 noundef 4, i32 noundef %4) #2
store ptr %6, ptr %3, align 8, !tbaa !6
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load i32, ptr @ENOMEM, align 4, !tbaa !10
%10 = sub nsw i32 0, %9
br label %17
11: ; preds = %5
%12 = tail call i32 @gss_mech_get(ptr noundef %2) #2
%13 = load ptr, ptr %3, align 8, !tbaa !6
store i32 %12, ptr %13, align 4, !tbaa !12
%14 = load ptr, ptr %2, align 8, !tbaa !14
%15 = load ptr, ptr %14, align 8, !tbaa !16
%16 = tail call i32 %15(ptr noundef %0, i64 noundef %1, ptr noundef nonnull %13, i32 noundef %4) #2
br label %17
17: ; preds = %11, %8
%18 = phi i32 [ %16, %11 ], [ %10, %8 ]
ret i32 %18
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @gss_mech_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)"}
!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 = !{!"gss_ctx", !11, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"gss_api_mech", !7, i64 0}
!16 = !{!17, !7, i64 0}
!17 = !{!"TYPE_2__", !7, i64 0}
| fastsocket_kernel_net_sunrpc_auth_gss_extr_gss_mech_switch.c_gss_import_sec_context |
; ModuleID = 'AnghaBench/vlc/src/video_output/extr_video_output.c_vout_PutPicture.c'
source_filename = "AnghaBench/vlc/src/video_output/extr_video_output.c_vout_PutPicture.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_7__ = type { i32, i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @vout_PutPicture(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.TYPE_7__, ptr %3, i64 0, i32 2
%5 = load i32, ptr %4, align 4, !tbaa !10
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 noundef %7) #2
store ptr null, ptr %1, align 8, !tbaa !13
%9 = load ptr, ptr %0, align 8, !tbaa !5
%10 = getelementptr inbounds %struct.TYPE_7__, ptr %9, i64 0, i32 1
%11 = load i32, ptr %10, align 4, !tbaa !15
%12 = tail call i32 @picture_fifo_Push(i32 noundef %11, ptr noundef nonnull %1) #2
%13 = load ptr, ptr %0, align 8, !tbaa !5
%14 = tail call i32 @vout_control_Wake(ptr noundef %13) #2
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @picture_fifo_Push(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @vout_control_Wake(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_8__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"TYPE_7__", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_9__", !7, i64 0}
!15 = !{!11, !12, i64 4}
| ; ModuleID = 'AnghaBench/vlc/src/video_output/extr_video_output.c_vout_PutPicture.c'
source_filename = "AnghaBench/vlc/src/video_output/extr_video_output.c_vout_PutPicture.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 @vout_PutPicture(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %3, i64 8
%5 = load i32, ptr %4, align 4, !tbaa !11
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 noundef %7) #2
store ptr null, ptr %1, align 8, !tbaa !14
%9 = load ptr, ptr %0, align 8, !tbaa !6
%10 = getelementptr inbounds i8, ptr %9, i64 4
%11 = load i32, ptr %10, align 4, !tbaa !16
%12 = tail call i32 @picture_fifo_Push(i32 noundef %11, ptr noundef nonnull %1) #2
%13 = load ptr, ptr %0, align 8, !tbaa !6
%14 = tail call i32 @vout_control_Wake(ptr noundef %13) #2
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @picture_fifo_Push(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @vout_control_Wake(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_8__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 8}
!12 = !{!"TYPE_7__", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_9__", !8, i64 0}
!16 = !{!12, !13, i64 4}
| vlc_src_video_output_extr_video_output.c_vout_PutPicture |
; ModuleID = 'AnghaBench/linux/drivers/irqchip/extr_irq-mvebu-sei.c_mvebu_sei_cp_compose_msi_msg.c'
source_filename = "AnghaBench/linux/drivers/irqchip/extr_irq-mvebu-sei.c_mvebu_sei_cp_compose_msi_msg.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.irq_data = type { i64, ptr }
%struct.mvebu_sei = type { ptr, ptr }
%struct.msi_msg = type { i32, i32, i64 }
@GICP_SET_SEI_OFFSET = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @mvebu_sei_cp_compose_msi_msg], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mvebu_sei_cp_compose_msi_msg(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1) #0 {
%3 = getelementptr inbounds %struct.irq_data, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.mvebu_sei, ptr %4, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = load i64, ptr %6, align 8, !tbaa !13
%8 = load i64, ptr @GICP_SET_SEI_OFFSET, align 8, !tbaa !15
%9 = add nsw i64 %8, %7
%10 = load i64, ptr %0, align 8, !tbaa !16
%11 = load ptr, ptr %4, align 8, !tbaa !17
%12 = load i64, ptr %11, align 8, !tbaa !18
%13 = add nsw i64 %12, %10
%14 = getelementptr inbounds %struct.msi_msg, ptr %1, i64 0, i32 2
store i64 %13, ptr %14, align 8, !tbaa !21
%15 = tail call i32 @lower_32_bits(i64 noundef %9) #2
%16 = getelementptr inbounds %struct.msi_msg, ptr %1, i64 0, i32 1
store i32 %15, ptr %16, align 4, !tbaa !24
%17 = tail call i32 @upper_32_bits(i64 noundef %9) #2
store i32 %17, ptr %1, align 8, !tbaa !25
ret void
}
declare i32 @lower_32_bits(i64 noundef) local_unnamed_addr #1
declare i32 @upper_32_bits(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"irq_data", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"mvebu_sei", !10, i64 0, !10, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_4__", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 0}
!17 = !{!12, !10, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"TYPE_6__", !20, i64 0}
!20 = !{!"TYPE_5__", !7, i64 0}
!21 = !{!22, !7, i64 8}
!22 = !{!"msi_msg", !23, i64 0, !23, i64 4, !7, i64 8}
!23 = !{!"int", !8, i64 0}
!24 = !{!22, !23, i64 4}
!25 = !{!22, !23, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/irqchip/extr_irq-mvebu-sei.c_mvebu_sei_cp_compose_msi_msg.c'
source_filename = "AnghaBench/linux/drivers/irqchip/extr_irq-mvebu-sei.c_mvebu_sei_cp_compose_msi_msg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GICP_SET_SEI_OFFSET = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @mvebu_sei_cp_compose_msi_msg], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mvebu_sei_cp_compose_msi_msg(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %4, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = load i64, ptr %6, align 8, !tbaa !14
%8 = load i64, ptr @GICP_SET_SEI_OFFSET, align 8, !tbaa !16
%9 = add nsw i64 %8, %7
%10 = load i64, ptr %0, align 8, !tbaa !17
%11 = load ptr, ptr %4, align 8, !tbaa !18
%12 = load i64, ptr %11, align 8, !tbaa !19
%13 = add nsw i64 %12, %10
%14 = getelementptr inbounds i8, ptr %1, i64 8
store i64 %13, ptr %14, align 8, !tbaa !22
%15 = tail call i32 @lower_32_bits(i64 noundef %9) #2
%16 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %15, ptr %16, align 4, !tbaa !25
%17 = tail call i32 @upper_32_bits(i64 noundef %9) #2
store i32 %17, ptr %1, align 8, !tbaa !26
ret void
}
declare i32 @lower_32_bits(i64 noundef) local_unnamed_addr #1
declare i32 @upper_32_bits(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"irq_data", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"mvebu_sei", !11, i64 0, !11, i64 8}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_4__", !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !8, i64 0}
!18 = !{!13, !11, i64 0}
!19 = !{!20, !8, i64 0}
!20 = !{!"TYPE_6__", !21, i64 0}
!21 = !{!"TYPE_5__", !8, i64 0}
!22 = !{!23, !8, i64 8}
!23 = !{!"msi_msg", !24, i64 0, !24, i64 4, !8, i64 8}
!24 = !{!"int", !9, i64 0}
!25 = !{!23, !24, i64 4}
!26 = !{!23, !24, i64 0}
| linux_drivers_irqchip_extr_irq-mvebu-sei.c_mvebu_sei_cp_compose_msi_msg |
; ModuleID = 'AnghaBench/linux/drivers/leds/extr_leds-wm831x-status.c_wm831x_status_src_show.c'
source_filename = "AnghaBench/linux/drivers/leds/extr_leds-wm831x-status.c_wm831x_status_src_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.wm831x_status = type { i32, i32 }
@led_src_texts = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [6 x i8] c"[%s] \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @wm831x_status_src_show], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @wm831x_status_src_show(ptr noundef %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @dev_get_drvdata(ptr noundef %0) #2
%5 = tail call ptr @to_wm831x_status(ptr noundef %4) #2
%6 = getelementptr inbounds %struct.wm831x_status, ptr %5, i64 0, i32 1
%7 = tail call i32 @mutex_lock(ptr noundef nonnull %6) #2
%8 = load ptr, ptr @led_src_texts, align 8, !tbaa !5
%9 = tail call i32 @ARRAY_SIZE(ptr noundef %8) #2
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %29
11: ; preds = %3, %11
%12 = phi i64 [ %24, %11 ], [ 0, %3 ]
%13 = phi i64 [ %23, %11 ], [ 0, %3 ]
%14 = load i32, ptr %5, align 4, !tbaa !9
%15 = zext i32 %14 to i64
%16 = icmp eq i64 %12, %15
%17 = getelementptr inbounds i8, ptr %2, i64 %13
%18 = load ptr, ptr @led_src_texts, align 8, !tbaa !5
%19 = getelementptr inbounds ptr, ptr %18, i64 %12
%20 = load ptr, ptr %19, align 8, !tbaa !5
%21 = select i1 %16, ptr @.str, ptr @.str.1
%22 = tail call i64 (ptr, ptr, ...) @sprintf(ptr noundef %17, ptr noundef nonnull %21, ptr noundef %20) #2
%23 = add i64 %22, %13
%24 = add nuw nsw i64 %12, 1
%25 = load ptr, ptr @led_src_texts, align 8, !tbaa !5
%26 = tail call i32 @ARRAY_SIZE(ptr noundef %25) #2
%27 = sext i32 %26 to i64
%28 = icmp slt i64 %24, %27
br i1 %28, label %11, label %29, !llvm.loop !12
29: ; preds = %11, %3
%30 = phi i64 [ 0, %3 ], [ %23, %11 ]
%31 = tail call i32 @mutex_unlock(ptr noundef nonnull %6) #2
%32 = getelementptr inbounds i8, ptr %2, i64 %30
%33 = tail call i64 (ptr, ptr, ...) @sprintf(ptr noundef %32, ptr noundef nonnull @.str.2) #2
%34 = add i64 %33, %30
ret i64 %34
}
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare ptr @to_wm831x_status(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(ptr noundef) local_unnamed_addr #1
declare i64 @sprintf(ptr noundef, 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, !11, i64 0}
!10 = !{!"wm831x_status", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/leds/extr_leds-wm831x-status.c_wm831x_status_src_show.c'
source_filename = "AnghaBench/linux/drivers/leds/extr_leds-wm831x-status.c_wm831x_status_src_show.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@led_src_texts = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [6 x i8] c"[%s] \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @wm831x_status_src_show], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @wm831x_status_src_show(ptr noundef %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @dev_get_drvdata(ptr noundef %0) #2
%5 = tail call ptr @to_wm831x_status(ptr noundef %4) #2
%6 = getelementptr inbounds i8, ptr %5, i64 4
%7 = tail call i32 @mutex_lock(ptr noundef nonnull %6) #2
%8 = load ptr, ptr @led_src_texts, align 8, !tbaa !6
%9 = tail call i32 @ARRAY_SIZE(ptr noundef %8) #2
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %29
11: ; preds = %3, %11
%12 = phi i64 [ %24, %11 ], [ 0, %3 ]
%13 = phi i64 [ %23, %11 ], [ 0, %3 ]
%14 = load i32, ptr %5, align 4, !tbaa !10
%15 = zext i32 %14 to i64
%16 = icmp eq i64 %12, %15
%17 = getelementptr inbounds i8, ptr %2, i64 %13
%18 = load ptr, ptr @led_src_texts, align 8, !tbaa !6
%19 = getelementptr inbounds ptr, ptr %18, i64 %12
%20 = load ptr, ptr %19, align 8, !tbaa !6
%21 = select i1 %16, ptr @.str, ptr @.str.1
%22 = tail call i64 (ptr, ptr, ...) @sprintf(ptr noundef %17, ptr noundef nonnull %21, ptr noundef %20) #2
%23 = add i64 %22, %13
%24 = add nuw nsw i64 %12, 1
%25 = load ptr, ptr @led_src_texts, align 8, !tbaa !6
%26 = tail call i32 @ARRAY_SIZE(ptr noundef %25) #2
%27 = sext i32 %26 to i64
%28 = icmp slt i64 %24, %27
br i1 %28, label %11, label %29, !llvm.loop !13
29: ; preds = %11, %3
%30 = phi i64 [ 0, %3 ], [ %23, %11 ]
%31 = tail call i32 @mutex_unlock(ptr noundef nonnull %6) #2
%32 = getelementptr inbounds i8, ptr %2, i64 %30
%33 = tail call i64 (ptr, ptr, ...) @sprintf(ptr noundef %32, ptr noundef nonnull @.str.2) #2
%34 = add i64 %33, %30
ret i64 %34
}
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare ptr @to_wm831x_status(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(ptr noundef) local_unnamed_addr #1
declare i64 @sprintf(ptr noundef, 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, !12, i64 0}
!11 = !{!"wm831x_status", !12, i64 0, !12, i64 4}
!12 = !{!"int", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| linux_drivers_leds_extr_leds-wm831x-status.c_wm831x_status_src_show |
; ModuleID = 'AnghaBench/linux/drivers/tty/extr_synclink.c_mgsl_free_intermediate_rxbuffer_memory.c'
source_filename = "AnghaBench/linux/drivers/tty/extr_synclink.c_mgsl_free_intermediate_rxbuffer_memory.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.mgsl_struct = type { ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @mgsl_free_intermediate_rxbuffer_memory], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mgsl_free_intermediate_rxbuffer_memory(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds %struct.mgsl_struct, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = tail call i32 @kfree(ptr noundef %3) #2
store ptr null, ptr %2, align 8, !tbaa !5
%5 = load ptr, ptr %0, align 8, !tbaa !10
%6 = tail call i32 @kfree(ptr noundef %5) #2
store ptr null, ptr %0, align 8, !tbaa !10
ret void
}
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"mgsl_struct", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/tty/extr_synclink.c_mgsl_free_intermediate_rxbuffer_memory.c'
source_filename = "AnghaBench/linux/drivers/tty/extr_synclink.c_mgsl_free_intermediate_rxbuffer_memory.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 @mgsl_free_intermediate_rxbuffer_memory], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mgsl_free_intermediate_rxbuffer_memory(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = tail call i32 @kfree(ptr noundef %3) #2
store ptr null, ptr %2, align 8, !tbaa !6
%5 = load ptr, ptr %0, align 8, !tbaa !11
%6 = tail call i32 @kfree(ptr noundef %5) #2
store ptr null, ptr %0, align 8, !tbaa !11
ret void
}
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"mgsl_struct", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
| linux_drivers_tty_extr_synclink.c_mgsl_free_intermediate_rxbuffer_memory |
; ModuleID = 'AnghaBench/linux/drivers/spi/extr_spi-omap2-mcspi.c_omap2_mcspi_set_enable.c'
source_filename = "AnghaBench/linux/drivers/spi/extr_spi-omap2-mcspi.c_omap2_mcspi_set_enable.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"
@OMAP2_MCSPI_CHCTRL_EN = dso_local local_unnamed_addr global i32 0, align 4
@OMAP2_MCSPI_CHCTRL0 = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @omap2_mcspi_set_enable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @omap2_mcspi_set_enable(ptr noundef %0, i32 noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load i32, ptr %3, align 4, !tbaa !10
%5 = icmp eq i32 %1, 0
%6 = load i32, ptr @OMAP2_MCSPI_CHCTRL_EN, align 4, !tbaa !13
%7 = or i32 %6, %4
%8 = xor i32 %6, -1
%9 = and i32 %4, %8
%10 = select i1 %5, i32 %9, i32 %7
store i32 %10, ptr %3, align 4, !tbaa !10
%11 = load i32, ptr @OMAP2_MCSPI_CHCTRL0, align 4, !tbaa !13
%12 = tail call i32 @mcspi_write_cs_reg(ptr noundef nonnull %0, i32 noundef %11, i32 noundef %10) #2
%13 = load i32, ptr @OMAP2_MCSPI_CHCTRL0, align 4, !tbaa !13
%14 = tail call i32 @mcspi_read_cs_reg(ptr noundef nonnull %0, i32 noundef %13) #2
ret void
}
declare i32 @mcspi_write_cs_reg(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mcspi_read_cs_reg(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"spi_device", !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 = !{!"omap2_mcspi_cs", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!12, !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/spi/extr_spi-omap2-mcspi.c_omap2_mcspi_set_enable.c'
source_filename = "AnghaBench/linux/drivers/spi/extr_spi-omap2-mcspi.c_omap2_mcspi_set_enable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OMAP2_MCSPI_CHCTRL_EN = common local_unnamed_addr global i32 0, align 4
@OMAP2_MCSPI_CHCTRL0 = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @omap2_mcspi_set_enable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @omap2_mcspi_set_enable(ptr noundef %0, i32 noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load i32, ptr %3, align 4, !tbaa !11
%5 = icmp eq i32 %1, 0
%6 = load i32, ptr @OMAP2_MCSPI_CHCTRL_EN, align 4, !tbaa !14
%7 = or i32 %6, %4
%8 = xor i32 %6, -1
%9 = and i32 %4, %8
%10 = select i1 %5, i32 %9, i32 %7
store i32 %10, ptr %3, align 4, !tbaa !11
%11 = load i32, ptr @OMAP2_MCSPI_CHCTRL0, align 4, !tbaa !14
%12 = tail call i32 @mcspi_write_cs_reg(ptr noundef nonnull %0, i32 noundef %11, i32 noundef %10) #2
%13 = load i32, ptr @OMAP2_MCSPI_CHCTRL0, align 4, !tbaa !14
%14 = tail call i32 @mcspi_read_cs_reg(ptr noundef nonnull %0, i32 noundef %13) #2
ret void
}
declare i32 @mcspi_write_cs_reg(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mcspi_read_cs_reg(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"spi_device", !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 = !{!"omap2_mcspi_cs", !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!13, !13, i64 0}
| linux_drivers_spi_extr_spi-omap2-mcspi.c_omap2_mcspi_set_enable |
; ModuleID = 'AnghaBench/openssl/apps/extr_openssl.c_cleanup_trace.c'
source_filename = "AnghaBench/openssl/apps/extr_openssl.c_cleanup_trace.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"
@trace_data_stack = dso_local local_unnamed_addr global i32 0, align 4
@tracedata_free = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cleanup_trace], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @cleanup_trace() #0 {
%1 = load i32, ptr @trace_data_stack, align 4, !tbaa !5
%2 = load i32, ptr @tracedata_free, align 4, !tbaa !5
%3 = tail call i32 @sk_tracedata_pop_free(i32 noundef %1, i32 noundef %2) #2
ret void
}
declare i32 @sk_tracedata_pop_free(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/openssl/apps/extr_openssl.c_cleanup_trace.c'
source_filename = "AnghaBench/openssl/apps/extr_openssl.c_cleanup_trace.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@trace_data_stack = common local_unnamed_addr global i32 0, align 4
@tracedata_free = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cleanup_trace], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @cleanup_trace() #0 {
%1 = load i32, ptr @trace_data_stack, align 4, !tbaa !6
%2 = load i32, ptr @tracedata_free, align 4, !tbaa !6
%3 = tail call i32 @sk_tracedata_pop_free(i32 noundef %1, i32 noundef %2) #2
ret void
}
declare i32 @sk_tracedata_pop_free(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"}
| openssl_apps_extr_openssl.c_cleanup_trace |
; ModuleID = 'AnghaBench/qmk_firmware/keyboards/ergodox_ez/keymaps/vim/extr_vim.h_VIM_RIGHT.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/ergodox_ez/keymaps/vim/extr_vim.h_VIM_RIGHT.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 [11 x i8] c"\1B[31ml\1B[0m\00", align 1
@KC_NO = dso_local local_unnamed_addr global i32 0, align 4
@KC_RIGHT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @VIM_RIGHT() local_unnamed_addr #0 {
%1 = tail call i32 @print(ptr noundef nonnull @.str) #2
%2 = load i32, ptr @KC_NO, align 4, !tbaa !5
%3 = tail call i32 @VIM_LEADER(i32 noundef %2) #2
%4 = load i32, ptr @KC_RIGHT, align 4, !tbaa !5
%5 = tail call i32 @TAP(i32 noundef %4) #2
ret void
}
declare i32 @print(ptr noundef) local_unnamed_addr #1
declare i32 @VIM_LEADER(i32 noundef) local_unnamed_addr #1
declare i32 @TAP(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/qmk_firmware/keyboards/ergodox_ez/keymaps/vim/extr_vim.h_VIM_RIGHT.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/ergodox_ez/keymaps/vim/extr_vim.h_VIM_RIGHT.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 [11 x i8] c"\1B[31ml\1B[0m\00", align 1
@KC_NO = common local_unnamed_addr global i32 0, align 4
@KC_RIGHT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @VIM_RIGHT() local_unnamed_addr #0 {
%1 = tail call i32 @print(ptr noundef nonnull @.str) #2
%2 = load i32, ptr @KC_NO, align 4, !tbaa !6
%3 = tail call i32 @VIM_LEADER(i32 noundef %2) #2
%4 = load i32, ptr @KC_RIGHT, align 4, !tbaa !6
%5 = tail call i32 @TAP(i32 noundef %4) #2
ret void
}
declare i32 @print(ptr noundef) local_unnamed_addr #1
declare i32 @VIM_LEADER(i32 noundef) local_unnamed_addr #1
declare i32 @TAP(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"}
| qmk_firmware_keyboards_ergodox_ez_keymaps_vim_extr_vim.h_VIM_RIGHT |
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_gnu-v2-abi.c_gnuv2_baseclass_offset.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_gnu-v2-abi.c_gnuv2_baseclass_offset.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 @gnuv2_baseclass_offset(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = tail call ptr @TYPE_BASECLASS(ptr noundef %0, i32 noundef %1) #2
%6 = tail call i64 @BASETYPE_VIA_VIRTUAL(ptr noundef %0, i32 noundef %1) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %35, label %8
8: ; preds = %4
%9 = tail call i32 @TYPE_NFIELDS(ptr noundef %0) #2
%10 = tail call i32 @TYPE_N_BASECLASSES(ptr noundef %0) #2
%11 = icmp slt i32 %10, %9
br i1 %11, label %12, label %27
12: ; preds = %8, %24
%13 = phi i32 [ %25, %24 ], [ %10, %8 ]
%14 = tail call i64 @vb_match(ptr noundef %0, i32 noundef %13, ptr noundef %5) #2
%15 = icmp eq i64 %14, 0
br i1 %15, label %24, label %16
16: ; preds = %12
%17 = tail call i32 @TYPE_FIELD_TYPE(ptr noundef %0, i32 noundef %13) #2
%18 = tail call i32 @TYPE_FIELD_BITPOS(ptr noundef %0, i32 noundef %13) #2
%19 = sdiv i32 %18, 8
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %2, i64 %20
%22 = tail call i32 @unpack_pointer(i32 noundef %17, ptr noundef %21) #2
%23 = sub nsw i32 %22, %3
br label %38
24: ; preds = %12
%25 = add nsw i32 %13, 1
%26 = icmp eq i32 %25, %9
br i1 %26, label %27, label %12, !llvm.loop !5
27: ; preds = %24, %8
br label %28
28: ; preds = %27, %32
%29 = phi i32 [ %30, %32 ], [ %1, %27 ]
%30 = add nsw i32 %29, 1
%31 = icmp slt i32 %30, %10
br i1 %31, label %32, label %38
32: ; preds = %28
%33 = tail call i32 @baseclass_offset(ptr noundef %0, i32 noundef %30, ptr noundef %2, i32 noundef %3) #2
%34 = icmp eq i32 %33, 0
br i1 %34, label %28, label %38, !llvm.loop !7
35: ; preds = %4
%36 = tail call i32 @TYPE_BASECLASS_BITPOS(ptr noundef %0, i32 noundef %1) #2
%37 = sdiv i32 %36, 8
br label %38
38: ; preds = %32, %28, %16, %35
%39 = phi i32 [ %37, %35 ], [ %23, %16 ], [ -1, %28 ], [ %33, %32 ]
ret i32 %39
}
declare ptr @TYPE_BASECLASS(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @BASETYPE_VIA_VIRTUAL(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TYPE_NFIELDS(ptr noundef) local_unnamed_addr #1
declare i32 @TYPE_N_BASECLASSES(ptr noundef) local_unnamed_addr #1
declare i64 @vb_match(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @unpack_pointer(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @TYPE_FIELD_TYPE(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TYPE_FIELD_BITPOS(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @baseclass_offset(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TYPE_BASECLASS_BITPOS(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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_gnu-v2-abi.c_gnuv2_baseclass_offset.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_gnu-v2-abi.c_gnuv2_baseclass_offset.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 @gnuv2_baseclass_offset(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = tail call ptr @TYPE_BASECLASS(ptr noundef %0, i32 noundef %1) #2
%6 = tail call i64 @BASETYPE_VIA_VIRTUAL(ptr noundef %0, i32 noundef %1) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %35, label %8
8: ; preds = %4
%9 = tail call i32 @TYPE_NFIELDS(ptr noundef %0) #2
%10 = tail call i32 @TYPE_N_BASECLASSES(ptr noundef %0) #2
%11 = icmp slt i32 %10, %9
br i1 %11, label %12, label %27
12: ; preds = %8, %24
%13 = phi i32 [ %25, %24 ], [ %10, %8 ]
%14 = tail call i64 @vb_match(ptr noundef %0, i32 noundef %13, ptr noundef %5) #2
%15 = icmp eq i64 %14, 0
br i1 %15, label %24, label %16
16: ; preds = %12
%17 = tail call i32 @TYPE_FIELD_TYPE(ptr noundef %0, i32 noundef %13) #2
%18 = tail call i32 @TYPE_FIELD_BITPOS(ptr noundef %0, i32 noundef %13) #2
%19 = sdiv i32 %18, 8
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %2, i64 %20
%22 = tail call i32 @unpack_pointer(i32 noundef %17, ptr noundef %21) #2
%23 = sub nsw i32 %22, %3
br label %38
24: ; preds = %12
%25 = add nsw i32 %13, 1
%26 = icmp eq i32 %25, %9
br i1 %26, label %27, label %12, !llvm.loop !6
27: ; preds = %24, %8
br label %28
28: ; preds = %27, %32
%29 = phi i32 [ %30, %32 ], [ %1, %27 ]
%30 = add nsw i32 %29, 1
%31 = icmp slt i32 %30, %10
br i1 %31, label %32, label %38
32: ; preds = %28
%33 = tail call i32 @baseclass_offset(ptr noundef %0, i32 noundef %30, ptr noundef %2, i32 noundef %3) #2
%34 = icmp eq i32 %33, 0
br i1 %34, label %28, label %38, !llvm.loop !8
35: ; preds = %4
%36 = tail call i32 @TYPE_BASECLASS_BITPOS(ptr noundef %0, i32 noundef %1) #2
%37 = sdiv i32 %36, 8
br label %38
38: ; preds = %32, %28, %16, %35
%39 = phi i32 [ %37, %35 ], [ %23, %16 ], [ -1, %28 ], [ %33, %32 ]
ret i32 %39
}
declare ptr @TYPE_BASECLASS(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @BASETYPE_VIA_VIRTUAL(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TYPE_NFIELDS(ptr noundef) local_unnamed_addr #1
declare i32 @TYPE_N_BASECLASSES(ptr noundef) local_unnamed_addr #1
declare i64 @vb_match(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @unpack_pointer(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @TYPE_FIELD_TYPE(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TYPE_FIELD_BITPOS(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @baseclass_offset(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TYPE_BASECLASS_BITPOS(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 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| freebsd_contrib_gdb_gdb_extr_gnu-v2-abi.c_gnuv2_baseclass_offset |
; ModuleID = 'AnghaBench/linux/drivers/scsi/bfa/extr_bfa_fcs.c_bfa_fcs_fabric_sm_auth.c'
source_filename = "AnghaBench/linux/drivers/scsi/bfa/extr_bfa_fcs.c_bfa_fcs_fabric_sm_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.bfa_fcs_fabric_s = type { i32, i32, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
@bfa_fcs_fabric_sm_auth_failed = dso_local local_unnamed_addr global i32 0, align 4
@BFA_LPS_SM_OFFLINE = dso_local local_unnamed_addr global i32 0, align 4
@bfa_fcs_fabric_sm_online = dso_local local_unnamed_addr global i32 0, align 4
@bfa_fcs_fabric_sm_evfp = dso_local local_unnamed_addr global i32 0, align 4
@bfa_fcs_fabric_sm_linkdown = dso_local local_unnamed_addr global i32 0, align 4
@bfa_fcs_fabric_sm_deleting = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bfa_fcs_fabric_sm_auth], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bfa_fcs_fabric_sm_auth(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = getelementptr inbounds %struct.bfa_fcs_fabric_s, ptr %0, i64 0, i32 2
%5 = load i32, ptr %4, align 4, !tbaa !12
%6 = tail call i32 @bfa_trc(i32 noundef %3, i32 noundef %5) #2
%7 = load i32, ptr %0, align 4, !tbaa !5
%8 = tail call i32 @bfa_trc(i32 noundef %7, i32 noundef %1) #2
switch i32 %1, label %34 [
i32 132, label %9
i32 131, label %16
i32 128, label %20
i32 129, label %23
i32 130, label %30
]
9: ; preds = %2
%10 = load i32, ptr @bfa_fcs_fabric_sm_auth_failed, align 4, !tbaa !13
%11 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %10) #2
%12 = getelementptr inbounds %struct.bfa_fcs_fabric_s, ptr %0, i64 0, i32 1
%13 = load i32, ptr %12, align 4, !tbaa !14
%14 = load i32, ptr @BFA_LPS_SM_OFFLINE, align 4, !tbaa !13
%15 = tail call i32 @bfa_sm_send_event(i32 noundef %13, i32 noundef %14) #2
br label %37
16: ; preds = %2
%17 = load i32, ptr @bfa_fcs_fabric_sm_online, align 4, !tbaa !13
%18 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %17) #2
%19 = tail call i32 @bfa_fcs_fabric_notify_online(ptr noundef nonnull %0) #2
br label %37
20: ; preds = %2
%21 = load i32, ptr @bfa_fcs_fabric_sm_evfp, align 4, !tbaa !13
%22 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %21) #2
br label %37
23: ; preds = %2
%24 = load i32, ptr @bfa_fcs_fabric_sm_linkdown, align 4, !tbaa !13
%25 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %24) #2
%26 = getelementptr inbounds %struct.bfa_fcs_fabric_s, ptr %0, i64 0, i32 1
%27 = load i32, ptr %26, align 4, !tbaa !14
%28 = load i32, ptr @BFA_LPS_SM_OFFLINE, align 4, !tbaa !13
%29 = tail call i32 @bfa_sm_send_event(i32 noundef %27, i32 noundef %28) #2
br label %37
30: ; preds = %2
%31 = load i32, ptr @bfa_fcs_fabric_sm_deleting, align 4, !tbaa !13
%32 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %31) #2
%33 = tail call i32 @bfa_fcs_fabric_delete(ptr noundef nonnull %0) #2
br label %37
34: ; preds = %2
%35 = load i32, ptr %0, align 4, !tbaa !5
%36 = tail call i32 @bfa_sm_fault(i32 noundef %35, i32 noundef %1) #2
br label %37
37: ; preds = %34, %30, %23, %20, %16, %9
ret void
}
declare i32 @bfa_trc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bfa_sm_set_state(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bfa_sm_send_event(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bfa_fcs_fabric_notify_online(ptr noundef) local_unnamed_addr #1
declare i32 @bfa_fcs_fabric_delete(ptr noundef) local_unnamed_addr #1
declare i32 @bfa_sm_fault(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"bfa_fcs_fabric_s", !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 = !{!"TYPE_4__", !11, i64 0}
!11 = !{!"TYPE_3__", !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/bfa/extr_bfa_fcs.c_bfa_fcs_fabric_sm_auth.c'
source_filename = "AnghaBench/linux/drivers/scsi/bfa/extr_bfa_fcs.c_bfa_fcs_fabric_sm_auth.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@bfa_fcs_fabric_sm_auth_failed = common local_unnamed_addr global i32 0, align 4
@BFA_LPS_SM_OFFLINE = common local_unnamed_addr global i32 0, align 4
@bfa_fcs_fabric_sm_online = common local_unnamed_addr global i32 0, align 4
@bfa_fcs_fabric_sm_evfp = common local_unnamed_addr global i32 0, align 4
@bfa_fcs_fabric_sm_linkdown = common local_unnamed_addr global i32 0, align 4
@bfa_fcs_fabric_sm_deleting = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bfa_fcs_fabric_sm_auth], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bfa_fcs_fabric_sm_auth(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i32, ptr %4, align 4, !tbaa !13
%6 = tail call i32 @bfa_trc(i32 noundef %3, i32 noundef %5) #2
%7 = load i32, ptr %0, align 4, !tbaa !6
%8 = tail call i32 @bfa_trc(i32 noundef %7, i32 noundef %1) #2
switch i32 %1, label %34 [
i32 132, label %9
i32 131, label %16
i32 128, label %20
i32 129, label %23
i32 130, label %30
]
9: ; preds = %2
%10 = load i32, ptr @bfa_fcs_fabric_sm_auth_failed, align 4, !tbaa !14
%11 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %10) #2
%12 = getelementptr inbounds i8, ptr %0, i64 4
%13 = load i32, ptr %12, align 4, !tbaa !15
%14 = load i32, ptr @BFA_LPS_SM_OFFLINE, align 4, !tbaa !14
%15 = tail call i32 @bfa_sm_send_event(i32 noundef %13, i32 noundef %14) #2
br label %37
16: ; preds = %2
%17 = load i32, ptr @bfa_fcs_fabric_sm_online, align 4, !tbaa !14
%18 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %17) #2
%19 = tail call i32 @bfa_fcs_fabric_notify_online(ptr noundef nonnull %0) #2
br label %37
20: ; preds = %2
%21 = load i32, ptr @bfa_fcs_fabric_sm_evfp, align 4, !tbaa !14
%22 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %21) #2
br label %37
23: ; preds = %2
%24 = load i32, ptr @bfa_fcs_fabric_sm_linkdown, align 4, !tbaa !14
%25 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %24) #2
%26 = getelementptr inbounds i8, ptr %0, i64 4
%27 = load i32, ptr %26, align 4, !tbaa !15
%28 = load i32, ptr @BFA_LPS_SM_OFFLINE, align 4, !tbaa !14
%29 = tail call i32 @bfa_sm_send_event(i32 noundef %27, i32 noundef %28) #2
br label %37
30: ; preds = %2
%31 = load i32, ptr @bfa_fcs_fabric_sm_deleting, align 4, !tbaa !14
%32 = tail call i32 @bfa_sm_set_state(ptr noundef nonnull %0, i32 noundef %31) #2
%33 = tail call i32 @bfa_fcs_fabric_delete(ptr noundef nonnull %0) #2
br label %37
34: ; preds = %2
%35 = load i32, ptr %0, align 4, !tbaa !6
%36 = tail call i32 @bfa_sm_fault(i32 noundef %35, i32 noundef %1) #2
br label %37
37: ; preds = %34, %30, %23, %20, %16, %9
ret void
}
declare i32 @bfa_trc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bfa_sm_set_state(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bfa_sm_send_event(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bfa_fcs_fabric_notify_online(ptr noundef) local_unnamed_addr #1
declare i32 @bfa_fcs_fabric_delete(ptr noundef) local_unnamed_addr #1
declare i32 @bfa_sm_fault(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"bfa_fcs_fabric_s", !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 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"TYPE_3__", !8, i64 0}
!13 = !{!7, !8, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!7, !8, i64 4}
| linux_drivers_scsi_bfa_extr_bfa_fcs.c_bfa_fcs_fabric_sm_auth |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/broadcom/extr_cnic.c_cnic_service_bnx2x_bh.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/broadcom/extr_cnic.c_cnic_service_bnx2x_bh.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.cnic_dev = type { i32, i32, ptr }
%struct.cnic_local = type { i32, %struct.TYPE_2__, ptr, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i64, i32 }
@CNIC_F_CNIC_UP = dso_local local_unnamed_addr global i32 0, align 4
@MAX_KCQ_IDX = dso_local local_unnamed_addr global i64 0, align 8
@IGU_SEG_ACCESS_DEF = dso_local local_unnamed_addr global i32 0, align 4
@IGU_INT_ENABLE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cnic_service_bnx2x_bh], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @cnic_service_bnx2x_bh(i64 noundef %0) #0 {
%2 = inttoptr i64 %0 to ptr
%3 = getelementptr inbounds %struct.cnic_dev, ptr %2, i64 0, i32 2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.cnic_dev, ptr %2, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !11
%7 = tail call ptr @netdev_priv(i32 noundef %6) #2
%8 = load i32, ptr @CNIC_F_CNIC_UP, align 4, !tbaa !12
%9 = tail call i32 @test_bit(i32 noundef %8, ptr noundef %2) #2
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i64 @unlikely(i32 noundef %11) #2
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %45
14: ; preds = %1
%15 = getelementptr inbounds %struct.cnic_local, ptr %4, i64 0, i32 3
%16 = getelementptr inbounds %struct.cnic_local, ptr %4, i64 0, i32 3, i32 1
%17 = getelementptr inbounds %struct.cnic_local, ptr %4, i64 0, i32 1
br label %18
18: ; preds = %14, %31
%19 = tail call i64 @cnic_service_bnx2x_kcq(ptr noundef %2, ptr noundef nonnull %15) #2
%20 = load i32, ptr %16, align 8, !tbaa !13
%21 = load i64, ptr %15, align 8, !tbaa !17
%22 = load i64, ptr @MAX_KCQ_IDX, align 8, !tbaa !18
%23 = add nsw i64 %22, %21
%24 = tail call i32 @CNIC_WR16(ptr noundef %2, i32 noundef %20, i64 noundef %23) #2
%25 = tail call i32 @CNIC_SUPPORTS_FCOE(ptr noundef %7) #2
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %18
%28 = getelementptr inbounds %struct.cnic_local, ptr %4, i64 0, i32 2
%29 = load ptr, ptr %28, align 8, !tbaa !19
%30 = tail call i32 %29(ptr noundef %2, i64 noundef %19) #2
br label %45
31: ; preds = %18
%32 = tail call i64 @cnic_service_bnx2x_kcq(ptr noundef %2, ptr noundef nonnull %17) #2
%33 = icmp eq i64 %32, %19
br i1 %33, label %34, label %18
34: ; preds = %31
%35 = getelementptr inbounds %struct.cnic_local, ptr %4, i64 0, i32 1, i32 1
%36 = load i32, ptr %35, align 8, !tbaa !20
%37 = load i64, ptr %17, align 8, !tbaa !21
%38 = load i64, ptr @MAX_KCQ_IDX, align 8, !tbaa !18
%39 = add nsw i64 %38, %37
%40 = tail call i32 @CNIC_WR16(ptr noundef %2, i32 noundef %36, i64 noundef %39) #2
%41 = load i32, ptr %4, align 8, !tbaa !22
%42 = load i32, ptr @IGU_SEG_ACCESS_DEF, align 4, !tbaa !12
%43 = load i32, ptr @IGU_INT_ENABLE, align 4, !tbaa !12
%44 = tail call i32 @cnic_ack_igu_sb(ptr noundef %2, i32 noundef %41, i32 noundef %42, i64 noundef %19, i32 noundef %43, i32 noundef 1) #2
br label %45
45: ; preds = %27, %34, %1
ret void
}
declare ptr @netdev_priv(i32 noundef) local_unnamed_addr #1
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare i32 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @cnic_service_bnx2x_kcq(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @CNIC_WR16(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @CNIC_SUPPORTS_FCOE(ptr noundef) local_unnamed_addr #1
declare i32 @cnic_ack_igu_sb(ptr noundef, i32 noundef, i32 noundef, i64 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 = !{!"cnic_dev", !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 = !{!6, !7, i64 4}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 40}
!14 = !{!"cnic_local", !7, i64 0, !15, i64 8, !10, i64 24, !15, i64 32}
!15 = !{!"TYPE_2__", !16, i64 0, !7, i64 8}
!16 = !{!"long", !8, i64 0}
!17 = !{!14, !16, i64 32}
!18 = !{!16, !16, i64 0}
!19 = !{!14, !10, i64 24}
!20 = !{!14, !7, i64 16}
!21 = !{!14, !16, i64 8}
!22 = !{!14, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/broadcom/extr_cnic.c_cnic_service_bnx2x_bh.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/broadcom/extr_cnic.c_cnic_service_bnx2x_bh.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CNIC_F_CNIC_UP = common local_unnamed_addr global i32 0, align 4
@MAX_KCQ_IDX = common local_unnamed_addr global i64 0, align 8
@IGU_SEG_ACCESS_DEF = common local_unnamed_addr global i32 0, align 4
@IGU_INT_ENABLE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cnic_service_bnx2x_bh], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @cnic_service_bnx2x_bh(i64 noundef %0) #0 {
%2 = inttoptr i64 %0 to ptr
%3 = getelementptr inbounds i8, ptr %2, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %2, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !12
%7 = tail call ptr @netdev_priv(i32 noundef %6) #2
%8 = load i32, ptr @CNIC_F_CNIC_UP, align 4, !tbaa !13
%9 = tail call i32 @test_bit(i32 noundef %8, ptr noundef %2) #2
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i64 @unlikely(i32 noundef %11) #2
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %45
14: ; preds = %1
%15 = getelementptr inbounds i8, ptr %4, i64 32
%16 = getelementptr inbounds i8, ptr %4, i64 40
%17 = getelementptr inbounds i8, ptr %4, i64 8
br label %18
18: ; preds = %14, %31
%19 = tail call i64 @cnic_service_bnx2x_kcq(ptr noundef %2, ptr noundef nonnull %15) #2
%20 = load i32, ptr %16, align 8, !tbaa !14
%21 = load i64, ptr %15, align 8, !tbaa !18
%22 = load i64, ptr @MAX_KCQ_IDX, align 8, !tbaa !19
%23 = add nsw i64 %22, %21
%24 = tail call i32 @CNIC_WR16(ptr noundef %2, i32 noundef %20, i64 noundef %23) #2
%25 = tail call i32 @CNIC_SUPPORTS_FCOE(ptr noundef %7) #2
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %18
%28 = getelementptr inbounds i8, ptr %4, i64 24
%29 = load ptr, ptr %28, align 8, !tbaa !20
%30 = tail call i32 %29(ptr noundef %2, i64 noundef %19) #2
br label %45
31: ; preds = %18
%32 = tail call i64 @cnic_service_bnx2x_kcq(ptr noundef %2, ptr noundef nonnull %17) #2
%33 = icmp eq i64 %32, %19
br i1 %33, label %34, label %18
34: ; preds = %31
%35 = getelementptr inbounds i8, ptr %4, i64 16
%36 = load i32, ptr %35, align 8, !tbaa !21
%37 = load i64, ptr %17, align 8, !tbaa !22
%38 = load i64, ptr @MAX_KCQ_IDX, align 8, !tbaa !19
%39 = add nsw i64 %38, %37
%40 = tail call i32 @CNIC_WR16(ptr noundef %2, i32 noundef %36, i64 noundef %39) #2
%41 = load i32, ptr %4, align 8, !tbaa !23
%42 = load i32, ptr @IGU_SEG_ACCESS_DEF, align 4, !tbaa !13
%43 = load i32, ptr @IGU_INT_ENABLE, align 4, !tbaa !13
%44 = tail call i32 @cnic_ack_igu_sb(ptr noundef %2, i32 noundef %41, i32 noundef %42, i64 noundef %19, i32 noundef %43, i32 noundef 1) #2
br label %45
45: ; preds = %27, %34, %1
ret void
}
declare ptr @netdev_priv(i32 noundef) local_unnamed_addr #1
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare i32 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @cnic_service_bnx2x_kcq(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @CNIC_WR16(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @CNIC_SUPPORTS_FCOE(ptr noundef) local_unnamed_addr #1
declare i32 @cnic_ack_igu_sb(ptr noundef, i32 noundef, i32 noundef, i64 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 = !{!"cnic_dev", !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 = !{!7, !8, i64 4}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !8, i64 40}
!15 = !{!"cnic_local", !8, i64 0, !16, i64 8, !11, i64 24, !16, i64 32}
!16 = !{!"TYPE_2__", !17, i64 0, !8, i64 8}
!17 = !{!"long", !9, i64 0}
!18 = !{!15, !17, i64 32}
!19 = !{!17, !17, i64 0}
!20 = !{!15, !11, i64 24}
!21 = !{!15, !8, i64 16}
!22 = !{!15, !17, i64 8}
!23 = !{!15, !8, i64 0}
| linux_drivers_net_ethernet_broadcom_extr_cnic.c_cnic_service_bnx2x_bh |
; ModuleID = 'AnghaBench/linux/sound/pci/ac97/extr_ac97_codec.c_snd_ac97_page_restore.c'
source_filename = "AnghaBench/linux/sound/pci/ac97/extr_ac97_codec.c_snd_ac97_page_restore.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"
@AC97_INT_PAGING = dso_local local_unnamed_addr global i32 0, align 4
@AC97_PAGE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_ac97_page_restore], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @snd_ac97_page_restore(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp sgt i32 %1, -1
br i1 %3, label %4, label %9
4: ; preds = %2
%5 = load i32, ptr @AC97_INT_PAGING, align 4, !tbaa !5
%6 = load i32, ptr @AC97_PAGE_MASK, align 4, !tbaa !5
%7 = tail call i32 @snd_ac97_update_bits(ptr noundef %0, i32 noundef %5, i32 noundef %6, i32 noundef %1) #2
%8 = tail call i32 @mutex_unlock(ptr noundef %0) #2
br label %9
9: ; preds = %4, %2
ret void
}
declare i32 @snd_ac97_update_bits(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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/sound/pci/ac97/extr_ac97_codec.c_snd_ac97_page_restore.c'
source_filename = "AnghaBench/linux/sound/pci/ac97/extr_ac97_codec.c_snd_ac97_page_restore.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AC97_INT_PAGING = common local_unnamed_addr global i32 0, align 4
@AC97_PAGE_MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @snd_ac97_page_restore], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @snd_ac97_page_restore(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp sgt i32 %1, -1
br i1 %3, label %4, label %9
4: ; preds = %2
%5 = load i32, ptr @AC97_INT_PAGING, align 4, !tbaa !6
%6 = load i32, ptr @AC97_PAGE_MASK, align 4, !tbaa !6
%7 = tail call i32 @snd_ac97_update_bits(ptr noundef %0, i32 noundef %5, i32 noundef %6, i32 noundef %1) #2
%8 = tail call i32 @mutex_unlock(ptr noundef %0) #2
br label %9
9: ; preds = %4, %2
ret void
}
declare i32 @snd_ac97_update_bits(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { 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_sound_pci_ac97_extr_ac97_codec.c_snd_ac97_page_restore |
; ModuleID = 'AnghaBench/freebsd/sys/fs/tmpfs/extr_tmpfs_vnops.c_tmpfs_readdir.c'
source_filename = "AnghaBench/freebsd/sys/fs/tmpfs/extr_tmpfs_vnops.c_tmpfs_readdir.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.vop_readdir_args = type { ptr, ptr, ptr, ptr, ptr }
%struct.vnode = type { i64, i32 }
%struct.uio = type { i64, i64 }
@VDIR = dso_local local_unnamed_addr global i64 0, align 8
@ENOTDIR = dso_local local_unnamed_addr global i32 0, align 4
@M_TEMP = dso_local local_unnamed_addr global i32 0, align 4
@M_WAITOK = dso_local local_unnamed_addr global i32 0, align 4
@EJUSTRETURN = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@TMPFS_DIRCOOKIE_EOF = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @tmpfs_readdir], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @tmpfs_readdir(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.vop_readdir_args, ptr %0, i64 0, i32 4
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.vop_readdir_args, ptr %0, i64 0, i32 3
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = load ptr, ptr %0, align 8, !tbaa !11
%7 = getelementptr inbounds %struct.vop_readdir_args, ptr %0, i64 0, i32 2
%8 = load ptr, ptr %7, align 8, !tbaa !12
%9 = getelementptr inbounds %struct.vop_readdir_args, ptr %0, i64 0, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !13
%11 = load i64, ptr %3, align 8, !tbaa !14
%12 = load i64, ptr @VDIR, align 8, !tbaa !18
%13 = icmp eq i64 %11, %12
br i1 %13, label %16, label %14
14: ; preds = %1
%15 = load i32, ptr @ENOTDIR, align 4, !tbaa !19
br label %73
16: ; preds = %1
%17 = tail call ptr @VP_TO_TMPFS_DIR(ptr noundef nonnull %3) #2
%18 = getelementptr inbounds %struct.vnode, ptr %3, i64 0, i32 1
%19 = load i32, ptr %18, align 8, !tbaa !20
%20 = tail call ptr @VFS_TO_TMPFS(i32 noundef %19) #2
%21 = load i64, ptr %5, align 8, !tbaa !21
%22 = icmp ne ptr %8, null
%23 = icmp ne ptr %10, null
%24 = select i1 %22, i1 %23, i1 false
br i1 %24, label %25, label %33
25: ; preds = %16
%26 = load i32, ptr %17, align 4, !tbaa !23
%27 = tail call i32 @howmany(i32 noundef %26, i32 noundef 4) #2
%28 = add nsw i32 %27, 2
%29 = shl i32 %28, 2
%30 = load i32, ptr @M_TEMP, align 4, !tbaa !19
%31 = load i32, ptr @M_WAITOK, align 4, !tbaa !19
%32 = tail call ptr @malloc(i32 noundef %29, i32 noundef %30, i32 noundef %31) #2
store ptr %32, ptr %8, align 8, !tbaa !25
store i32 0, ptr %10, align 4, !tbaa !19
br label %39
33: ; preds = %16
%34 = icmp eq ptr %8, null
br i1 %34, label %37, label %35
35: ; preds = %33
%36 = load ptr, ptr %8, align 8, !tbaa !25
br label %39
37: ; preds = %33
%38 = tail call i32 @tmpfs_dir_getdents(ptr noundef %20, ptr noundef %17, ptr noundef nonnull %5, i32 noundef 0, ptr noundef null, ptr noundef null) #2
br label %43
39: ; preds = %35, %25
%40 = phi ptr [ %32, %25 ], [ %36, %35 ]
%41 = phi i32 [ %28, %25 ], [ 0, %35 ]
%42 = tail call i32 @tmpfs_dir_getdents(ptr noundef %20, ptr noundef %17, ptr noundef nonnull %5, i32 noundef %41, ptr noundef %40, ptr noundef %10) #2
br label %43
43: ; preds = %39, %37
%44 = phi i32 [ %38, %37 ], [ %42, %39 ]
%45 = load i32, ptr @EJUSTRETURN, align 4, !tbaa !19
%46 = icmp eq i32 %44, %45
br i1 %46, label %47, label %52
47: ; preds = %43
%48 = load i64, ptr %5, align 8, !tbaa !21
%49 = icmp eq i64 %48, %21
%50 = load i32, ptr @EINVAL, align 4
%51 = select i1 %49, i32 %50, i32 0
br label %52
52: ; preds = %47, %43
%53 = phi i32 [ %51, %47 ], [ %44, %43 ]
%54 = icmp ne i32 %53, 0
%55 = and i1 %22, %54
%56 = select i1 %55, i1 %23, i1 false
br i1 %56, label %57, label %61
57: ; preds = %52
%58 = load ptr, ptr %8, align 8, !tbaa !25
%59 = load i32, ptr @M_TEMP, align 4, !tbaa !19
%60 = tail call i32 @free(ptr noundef %58, i32 noundef %59) #2
store ptr null, ptr %8, align 8, !tbaa !25
store i32 0, ptr %10, align 4, !tbaa !19
br label %61
61: ; preds = %57, %52
%62 = icmp eq ptr %6, null
br i1 %62, label %73, label %63
63: ; preds = %61
%64 = icmp eq i32 %53, 0
br i1 %64, label %65, label %71
65: ; preds = %63
%66 = getelementptr inbounds %struct.uio, ptr %5, i64 0, i32 1
%67 = load i64, ptr %66, align 8, !tbaa !26
%68 = load i64, ptr @TMPFS_DIRCOOKIE_EOF, align 8, !tbaa !18
%69 = icmp eq i64 %67, %68
%70 = zext i1 %69 to i32
br label %71
71: ; preds = %65, %63
%72 = phi i32 [ 0, %63 ], [ %70, %65 ]
store i32 %72, ptr %6, align 4, !tbaa !19
br label %73
73: ; preds = %61, %71, %14
%74 = phi i32 [ %15, %14 ], [ %53, %71 ], [ %53, %61 ]
ret i32 %74
}
declare ptr @VP_TO_TMPFS_DIR(ptr noundef) local_unnamed_addr #1
declare ptr @VFS_TO_TMPFS(i32 noundef) local_unnamed_addr #1
declare i32 @howmany(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tmpfs_dir_getdents(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @free(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 32}
!6 = !{!"vop_readdir_args", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 24}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 8}
!14 = !{!15, !16, i64 0}
!15 = !{!"vnode", !16, i64 0, !17, i64 8}
!16 = !{!"long", !8, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!16, !16, i64 0}
!19 = !{!17, !17, i64 0}
!20 = !{!15, !17, i64 8}
!21 = !{!22, !16, i64 0}
!22 = !{!"uio", !16, i64 0, !16, i64 8}
!23 = !{!24, !17, i64 0}
!24 = !{!"tmpfs_node", !17, i64 0}
!25 = !{!7, !7, i64 0}
!26 = !{!22, !16, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/sys/fs/tmpfs/extr_tmpfs_vnops.c_tmpfs_readdir.c'
source_filename = "AnghaBench/freebsd/sys/fs/tmpfs/extr_tmpfs_vnops.c_tmpfs_readdir.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VDIR = common local_unnamed_addr global i64 0, align 8
@ENOTDIR = common local_unnamed_addr global i32 0, align 4
@M_TEMP = common local_unnamed_addr global i32 0, align 4
@M_WAITOK = common local_unnamed_addr global i32 0, align 4
@EJUSTRETURN = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@TMPFS_DIRCOOKIE_EOF = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @tmpfs_readdir], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @tmpfs_readdir(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 32
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 24
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load ptr, ptr %0, align 8, !tbaa !12
%7 = getelementptr inbounds i8, ptr %0, i64 16
%8 = load ptr, ptr %7, align 8, !tbaa !13
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load ptr, ptr %9, align 8, !tbaa !14
%11 = load i64, ptr %3, align 8, !tbaa !15
%12 = load i64, ptr @VDIR, align 8, !tbaa !19
%13 = icmp eq i64 %11, %12
br i1 %13, label %16, label %14
14: ; preds = %1
%15 = load i32, ptr @ENOTDIR, align 4, !tbaa !20
br label %73
16: ; preds = %1
%17 = tail call ptr @VP_TO_TMPFS_DIR(ptr noundef nonnull %3) #2
%18 = getelementptr inbounds i8, ptr %3, i64 8
%19 = load i32, ptr %18, align 8, !tbaa !21
%20 = tail call ptr @VFS_TO_TMPFS(i32 noundef %19) #2
%21 = load i64, ptr %5, align 8, !tbaa !22
%22 = icmp ne ptr %8, null
%23 = icmp ne ptr %10, null
%24 = select i1 %22, i1 %23, i1 false
br i1 %24, label %25, label %33
25: ; preds = %16
%26 = load i32, ptr %17, align 4, !tbaa !24
%27 = tail call i32 @howmany(i32 noundef %26, i32 noundef 4) #2
%28 = add nsw i32 %27, 2
%29 = shl i32 %28, 2
%30 = load i32, ptr @M_TEMP, align 4, !tbaa !20
%31 = load i32, ptr @M_WAITOK, align 4, !tbaa !20
%32 = tail call ptr @malloc(i32 noundef %29, i32 noundef %30, i32 noundef %31) #2
store ptr %32, ptr %8, align 8, !tbaa !26
store i32 0, ptr %10, align 4, !tbaa !20
br label %39
33: ; preds = %16
%34 = icmp eq ptr %8, null
br i1 %34, label %37, label %35
35: ; preds = %33
%36 = load ptr, ptr %8, align 8, !tbaa !26
br label %39
37: ; preds = %33
%38 = tail call i32 @tmpfs_dir_getdents(ptr noundef %20, ptr noundef %17, ptr noundef nonnull %5, i32 noundef 0, ptr noundef null, ptr noundef null) #2
br label %43
39: ; preds = %35, %25
%40 = phi ptr [ %32, %25 ], [ %36, %35 ]
%41 = phi i32 [ %28, %25 ], [ 0, %35 ]
%42 = tail call i32 @tmpfs_dir_getdents(ptr noundef %20, ptr noundef %17, ptr noundef nonnull %5, i32 noundef %41, ptr noundef %40, ptr noundef %10) #2
br label %43
43: ; preds = %39, %37
%44 = phi i32 [ %38, %37 ], [ %42, %39 ]
%45 = load i32, ptr @EJUSTRETURN, align 4, !tbaa !20
%46 = icmp eq i32 %44, %45
br i1 %46, label %47, label %52
47: ; preds = %43
%48 = load i64, ptr %5, align 8, !tbaa !22
%49 = icmp eq i64 %48, %21
%50 = load i32, ptr @EINVAL, align 4
%51 = select i1 %49, i32 %50, i32 0
br label %52
52: ; preds = %47, %43
%53 = phi i32 [ %51, %47 ], [ %44, %43 ]
%54 = icmp ne i32 %53, 0
%55 = and i1 %22, %54
%56 = select i1 %55, i1 %23, i1 false
br i1 %56, label %57, label %61
57: ; preds = %52
%58 = load ptr, ptr %8, align 8, !tbaa !26
%59 = load i32, ptr @M_TEMP, align 4, !tbaa !20
%60 = tail call i32 @free(ptr noundef %58, i32 noundef %59) #2
store ptr null, ptr %8, align 8, !tbaa !26
store i32 0, ptr %10, align 4, !tbaa !20
br label %61
61: ; preds = %57, %52
%62 = icmp eq ptr %6, null
br i1 %62, label %73, label %63
63: ; preds = %61
%64 = icmp eq i32 %53, 0
br i1 %64, label %65, label %71
65: ; preds = %63
%66 = getelementptr inbounds i8, ptr %5, i64 8
%67 = load i64, ptr %66, align 8, !tbaa !27
%68 = load i64, ptr @TMPFS_DIRCOOKIE_EOF, align 8, !tbaa !19
%69 = icmp eq i64 %67, %68
%70 = zext i1 %69 to i32
br label %71
71: ; preds = %65, %63
%72 = phi i32 [ 0, %63 ], [ %70, %65 ]
store i32 %72, ptr %6, align 4, !tbaa !20
br label %73
73: ; preds = %61, %71, %14
%74 = phi i32 [ %15, %14 ], [ %53, %71 ], [ %53, %61 ]
ret i32 %74
}
declare ptr @VP_TO_TMPFS_DIR(ptr noundef) local_unnamed_addr #1
declare ptr @VFS_TO_TMPFS(i32 noundef) local_unnamed_addr #1
declare i32 @howmany(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tmpfs_dir_getdents(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @free(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 32}
!7 = !{!"vop_readdir_args", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 24}
!12 = !{!7, !8, i64 0}
!13 = !{!7, !8, i64 16}
!14 = !{!7, !8, i64 8}
!15 = !{!16, !17, i64 0}
!16 = !{!"vnode", !17, i64 0, !18, i64 8}
!17 = !{!"long", !9, i64 0}
!18 = !{!"int", !9, i64 0}
!19 = !{!17, !17, i64 0}
!20 = !{!18, !18, i64 0}
!21 = !{!16, !18, i64 8}
!22 = !{!23, !17, i64 0}
!23 = !{!"uio", !17, i64 0, !17, i64 8}
!24 = !{!25, !18, i64 0}
!25 = !{!"tmpfs_node", !18, i64 0}
!26 = !{!8, !8, i64 0}
!27 = !{!23, !17, i64 8}
| freebsd_sys_fs_tmpfs_extr_tmpfs_vnops.c_tmpfs_readdir |
; ModuleID = 'AnghaBench/linux/drivers/accessibility/braille/extr_braille_console.c_vc_maybe_cursor_moved.c'
source_filename = "AnghaBench/linux/drivers/accessibility/braille/extr_braille_console.c_vc_maybe_cursor_moved.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.vc_data = type { i64, i64 }
@lastvc_x = dso_local local_unnamed_addr global i64 0, align 8
@lastvc_y = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @vc_maybe_cursor_moved], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @vc_maybe_cursor_moved(ptr noundef %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = load i64, ptr @lastvc_x, align 8, !tbaa !10
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = getelementptr inbounds %struct.vc_data, ptr %0, i64 0, i32 1
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = load i64, ptr @lastvc_y, align 8, !tbaa !10
%9 = icmp eq i64 %7, %8
br i1 %9, label %12, label %10
10: ; preds = %5, %1
%11 = tail call i32 @vc_follow_cursor(ptr noundef nonnull %0) #2
br label %12
12: ; preds = %10, %5
ret void
}
declare i32 @vc_follow_cursor(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 = !{!"vc_data", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/accessibility/braille/extr_braille_console.c_vc_maybe_cursor_moved.c'
source_filename = "AnghaBench/linux/drivers/accessibility/braille/extr_braille_console.c_vc_maybe_cursor_moved.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@lastvc_x = common local_unnamed_addr global i64 0, align 8
@lastvc_y = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @vc_maybe_cursor_moved], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @vc_maybe_cursor_moved(ptr noundef %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = load i64, ptr @lastvc_x, align 8, !tbaa !11
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = load i64, ptr @lastvc_y, align 8, !tbaa !11
%9 = icmp eq i64 %7, %8
br i1 %9, label %12, label %10
10: ; preds = %5, %1
%11 = tail call i32 @vc_follow_cursor(ptr noundef nonnull %0) #2
br label %12
12: ; preds = %10, %5
ret void
}
declare i32 @vc_follow_cursor(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 = !{!"vc_data", !8, i64 0, !8, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !8, i64 8}
| linux_drivers_accessibility_braille_extr_braille_console.c_vc_maybe_cursor_moved |
; ModuleID = 'AnghaBench/freebsd/sys/dev/ocs_fc/extr_ocs_utils.c_ocs_pool_get_instance.c'
source_filename = "AnghaBench/freebsd/sys/dev/ocs_fc/extr_ocs_utils.c_ocs_pool_get_instance.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 @ocs_pool_get_instance(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call ptr @ocs_array_get(i32 noundef %3, i32 noundef %1) #2
%5 = icmp eq ptr %4, null
%6 = getelementptr inbounds i8, ptr %4, i64 1
%7 = select i1 %5, ptr null, ptr %6
ret ptr %7
}
declare ptr @ocs_array_get(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_3__", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/ocs_fc/extr_ocs_utils.c_ocs_pool_get_instance.c'
source_filename = "AnghaBench/freebsd/sys/dev/ocs_fc/extr_ocs_utils.c_ocs_pool_get_instance.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 @ocs_pool_get_instance(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = tail call ptr @ocs_array_get(i32 noundef %3, i32 noundef %1) #2
%5 = icmp eq ptr %4, null
%6 = getelementptr inbounds i8, ptr %4, i64 1
%7 = select i1 %5, ptr null, ptr %6
ret ptr %7
}
declare ptr @ocs_array_get(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_3__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_dev_ocs_fc_extr_ocs_utils.c_ocs_pool_get_instance |
; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/function/extr_uvc_configfs.c_uvcg_format_bma_controls_store.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/function/extr_uvc_configfs.c_uvcg_format_bma_controls_store.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.uvcg_format = type { i32, i64, %struct.TYPE_10__ }
%struct.TYPE_10__ = type { %struct.TYPE_9__, ptr }
%struct.TYPE_9__ = type { ptr }
%struct.f_uvc_opts = type { %struct.mutex, i64 }
%struct.mutex = type { i32 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@EBUSY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @uvcg_format_bma_controls_store], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @uvcg_format_bma_controls_store(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = getelementptr inbounds %struct.uvcg_format, ptr %0, i64 0, i32 2
%5 = getelementptr inbounds %struct.uvcg_format, ptr %0, i64 0, i32 2, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = load i32, ptr @EINVAL, align 4, !tbaa !14
%8 = sub nsw i32 0, %7
%9 = tail call i32 @mutex_lock(ptr noundef %6) #2
%10 = load ptr, ptr %4, align 8, !tbaa !15
%11 = load ptr, ptr %10, align 8, !tbaa !16
%12 = load ptr, ptr %11, align 8, !tbaa !18
%13 = tail call ptr @to_f_uvc_opts(ptr noundef %12) #2
%14 = tail call i32 @mutex_lock(ptr noundef %13) #2
%15 = getelementptr inbounds %struct.uvcg_format, ptr %0, i64 0, i32 1
%16 = load i64, ptr %15, align 8, !tbaa !20
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %3
%19 = getelementptr inbounds %struct.f_uvc_opts, ptr %13, i64 0, i32 1
%20 = load i64, ptr %19, align 8, !tbaa !21
%21 = icmp eq i64 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %18, %3
%23 = load i32, ptr @EBUSY, align 4, !tbaa !14
%24 = sub nsw i32 0, %23
br label %40
25: ; preds = %18
%26 = icmp ult i64 %2, 4
br i1 %26, label %40, label %27
27: ; preds = %25
%28 = load i8, ptr %1, align 1, !tbaa !24
%29 = icmp eq i8 %28, 48
br i1 %29, label %30, label %40
30: ; preds = %27
%31 = getelementptr inbounds i8, ptr %1, i64 1
%32 = load i8, ptr %31, align 1, !tbaa !24
switch i8 %32, label %40 [
i8 120, label %33
i8 88, label %33
]
33: ; preds = %30, %30
%34 = load i32, ptr %0, align 8, !tbaa !25
%35 = getelementptr inbounds i8, ptr %1, i64 2
%36 = tail call i32 @hex2bin(i32 noundef %34, ptr noundef nonnull %35, i32 noundef 1) #2
%37 = icmp slt i32 %36, 0
%38 = trunc i64 %2 to i32
%39 = select i1 %37, i32 %36, i32 %38
br label %40
40: ; preds = %33, %30, %25, %27, %22
%41 = phi i32 [ %24, %22 ], [ %8, %25 ], [ %8, %27 ], [ %8, %30 ], [ %39, %33 ]
%42 = tail call i32 @mutex_unlock(ptr noundef %13) #2
%43 = tail call i32 @mutex_unlock(ptr noundef %6) #2
ret i32 %41
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare ptr @to_f_uvc_opts(ptr noundef) local_unnamed_addr #1
declare i32 @hex2bin(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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, !13, i64 24}
!6 = !{!"uvcg_format", !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 = !{!"TYPE_10__", !12, i64 0, !13, i64 8}
!12 = !{!"TYPE_9__", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !13, i64 16}
!16 = !{!17, !13, i64 0}
!17 = !{!"TYPE_8__", !13, i64 0}
!18 = !{!19, !13, i64 0}
!19 = !{!"TYPE_7__", !13, i64 0}
!20 = !{!6, !10, i64 8}
!21 = !{!22, !10, i64 8}
!22 = !{!"f_uvc_opts", !23, i64 0, !10, i64 8}
!23 = !{!"mutex", !7, i64 0}
!24 = !{!8, !8, i64 0}
!25 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/function/extr_uvc_configfs.c_uvcg_format_bma_controls_store.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/function/extr_uvc_configfs.c_uvcg_format_bma_controls_store.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@EBUSY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @uvcg_format_bma_controls_store], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @uvcg_format_bma_controls_store(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 16
%5 = getelementptr inbounds i8, ptr %0, i64 24
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = load i32, ptr @EINVAL, align 4, !tbaa !15
%8 = sub nsw i32 0, %7
%9 = tail call i32 @mutex_lock(ptr noundef %6) #2
%10 = load ptr, ptr %4, align 8, !tbaa !16
%11 = load ptr, ptr %10, align 8, !tbaa !17
%12 = load ptr, ptr %11, align 8, !tbaa !19
%13 = tail call ptr @to_f_uvc_opts(ptr noundef %12) #2
%14 = tail call i32 @mutex_lock(ptr noundef %13) #2
%15 = getelementptr inbounds i8, ptr %0, i64 8
%16 = load i64, ptr %15, align 8, !tbaa !21
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %3
%19 = getelementptr inbounds i8, ptr %13, i64 8
%20 = load i64, ptr %19, align 8, !tbaa !22
%21 = icmp eq i64 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %18, %3
%23 = load i32, ptr @EBUSY, align 4, !tbaa !15
%24 = sub nsw i32 0, %23
br label %40
25: ; preds = %18
%26 = icmp ult i64 %2, 4
br i1 %26, label %40, label %27
27: ; preds = %25
%28 = load i8, ptr %1, align 1, !tbaa !25
%29 = icmp eq i8 %28, 48
br i1 %29, label %30, label %40
30: ; preds = %27
%31 = getelementptr inbounds i8, ptr %1, i64 1
%32 = load i8, ptr %31, align 1, !tbaa !25
switch i8 %32, label %40 [
i8 120, label %33
i8 88, label %33
]
33: ; preds = %30, %30
%34 = load i32, ptr %0, align 8, !tbaa !26
%35 = getelementptr inbounds i8, ptr %1, i64 2
%36 = tail call i32 @hex2bin(i32 noundef %34, ptr noundef nonnull %35, i32 noundef 1) #2
%37 = icmp slt i32 %36, 0
%38 = trunc i64 %2 to i32
%39 = select i1 %37, i32 %36, i32 %38
br label %40
40: ; preds = %33, %30, %25, %27, %22
%41 = phi i32 [ %24, %22 ], [ %8, %25 ], [ %8, %27 ], [ %8, %30 ], [ %39, %33 ]
%42 = tail call i32 @mutex_unlock(ptr noundef %13) #2
%43 = tail call i32 @mutex_unlock(ptr noundef %6) #2
ret i32 %41
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare ptr @to_f_uvc_opts(ptr noundef) local_unnamed_addr #1
declare i32 @hex2bin(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { 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, !14, i64 24}
!7 = !{!"uvcg_format", !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 = !{!"TYPE_10__", !13, i64 0, !14, i64 8}
!13 = !{!"TYPE_9__", !14, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!7, !14, i64 16}
!17 = !{!18, !14, i64 0}
!18 = !{!"TYPE_8__", !14, i64 0}
!19 = !{!20, !14, i64 0}
!20 = !{!"TYPE_7__", !14, i64 0}
!21 = !{!7, !11, i64 8}
!22 = !{!23, !11, i64 8}
!23 = !{!"f_uvc_opts", !24, i64 0, !11, i64 8}
!24 = !{!"mutex", !8, i64 0}
!25 = !{!9, !9, i64 0}
!26 = !{!7, !8, i64 0}
| linux_drivers_usb_gadget_function_extr_uvc_configfs.c_uvcg_format_bma_controls_store |
; ModuleID = 'AnghaBench/Quake-III-Arena/code/botlib/extr_be_ai_char.c_BotInterpolateCharacters.c'
source_filename = "AnghaBench/Quake-III-Arena/code/botlib/extr_be_ai_char.c_BotInterpolateCharacters.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 { float, ptr, ptr }
%struct.TYPE_7__ = type { i64, %struct.TYPE_6__ }
%struct.TYPE_6__ = type { float, ptr, i32 }
@MAX_CLIENTS = dso_local local_unnamed_addr global i32 0, align 4
@botcharacters = dso_local local_unnamed_addr global ptr null, align 8
@MAX_CHARACTERISTICS = dso_local local_unnamed_addr global i32 0, align 4
@CT_FLOAT = dso_local local_unnamed_addr global i64 0, align 8
@CT_INTEGER = dso_local local_unnamed_addr global i64 0, align 8
@CT_STRING = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local i32 @BotInterpolateCharacters(i32 noundef %0, i32 noundef %1, float noundef %2) local_unnamed_addr #0 {
%4 = tail call ptr @BotCharacterFromHandle(i32 noundef %0) #4
%5 = tail call ptr @BotCharacterFromHandle(i32 noundef %1) #4
%6 = icmp ne ptr %4, null
%7 = icmp ne ptr %5, null
%8 = select i1 %6, i1 %7, i1 false
br i1 %8, label %9, label %104
9: ; preds = %3
%10 = load i32, ptr @MAX_CLIENTS, align 4, !tbaa !5
%11 = icmp slt i32 %10, 1
br i1 %11, label %104, label %12
12: ; preds = %9
%13 = load ptr, ptr @botcharacters, align 8, !tbaa !9
%14 = add nuw i32 %10, 1
%15 = zext i32 %14 to i64
br label %16
16: ; preds = %12, %21
%17 = phi i64 [ 1, %12 ], [ %22, %21 ]
%18 = getelementptr inbounds ptr, ptr %13, i64 %17
%19 = load ptr, ptr %18, align 8, !tbaa !9
%20 = icmp eq ptr %19, null
br i1 %20, label %24, label %21
21: ; preds = %16
%22 = add nuw nsw i64 %17, 1
%23 = icmp eq i64 %22, %15
br i1 %23, label %104, label %16, !llvm.loop !11
24: ; preds = %16
%25 = trunc i64 %17 to i32
%26 = load i32, ptr @MAX_CHARACTERISTICS, align 4, !tbaa !5
%27 = shl i32 %26, 2
%28 = add i32 %27, 24
%29 = tail call i64 @GetClearedMemory(i32 noundef %28) #4
%30 = inttoptr i64 %29 to ptr
store float %2, ptr %30, align 8, !tbaa !13
%31 = getelementptr inbounds %struct.TYPE_8__, ptr %30, i64 0, i32 1
%32 = load ptr, ptr %31, align 8, !tbaa !16
%33 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 1
%34 = load ptr, ptr %33, align 8, !tbaa !16
%35 = tail call i32 @strcpy(ptr noundef %32, ptr noundef %34) #4
%36 = load ptr, ptr @botcharacters, align 8, !tbaa !9
%37 = and i64 %17, 4294967295
%38 = getelementptr inbounds ptr, ptr %36, i64 %37
store ptr %30, ptr %38, align 8, !tbaa !9
%39 = load float, ptr %4, align 8, !tbaa !13
%40 = fsub float %2, %39
%41 = load float, ptr %5, align 8, !tbaa !13
%42 = fsub float %41, %39
%43 = fdiv float %40, %42
%44 = load i32, ptr @MAX_CHARACTERISTICS, align 4, !tbaa !5
%45 = icmp sgt i32 %44, 0
br i1 %45, label %46, label %104
46: ; preds = %24
%47 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 2
%48 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 2
%49 = getelementptr inbounds %struct.TYPE_8__, ptr %30, i64 0, i32 2
br label %50
50: ; preds = %46, %99
%51 = phi i64 [ 0, %46 ], [ %100, %99 ]
%52 = load ptr, ptr %47, align 8, !tbaa !17
%53 = getelementptr inbounds %struct.TYPE_7__, ptr %52, i64 %51
%54 = load i64, ptr %53, align 8, !tbaa !18
%55 = load i64, ptr @CT_FLOAT, align 8, !tbaa !22
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %72
57: ; preds = %50
%58 = load ptr, ptr %48, align 8, !tbaa !17
%59 = getelementptr inbounds %struct.TYPE_7__, ptr %58, i64 %51
%60 = load i64, ptr %59, align 8, !tbaa !18
%61 = icmp eq i64 %60, %54
br i1 %61, label %62, label %72
62: ; preds = %57
%63 = load ptr, ptr %49, align 8, !tbaa !17
%64 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %51
store i64 %54, ptr %64, align 8, !tbaa !18
%65 = getelementptr inbounds %struct.TYPE_7__, ptr %52, i64 %51, i32 1
%66 = load float, ptr %65, align 8, !tbaa !23
%67 = getelementptr inbounds %struct.TYPE_7__, ptr %58, i64 %51, i32 1
%68 = load float, ptr %67, align 8, !tbaa !23
%69 = fsub float %68, %66
%70 = tail call float @llvm.fmuladd.f32(float %69, float %43, float %66)
%71 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %51, i32 1
store float %70, ptr %71, align 8, !tbaa !23
br label %99
72: ; preds = %57, %50
%73 = load i64, ptr @CT_INTEGER, align 8, !tbaa !22
%74 = icmp eq i64 %54, %73
br i1 %74, label %75, label %81
75: ; preds = %72
%76 = load ptr, ptr %49, align 8, !tbaa !17
%77 = getelementptr inbounds %struct.TYPE_7__, ptr %76, i64 %51
store i64 %54, ptr %77, align 8, !tbaa !18
%78 = getelementptr inbounds %struct.TYPE_7__, ptr %52, i64 %51, i32 1, i32 2
%79 = load i32, ptr %78, align 8, !tbaa !24
%80 = getelementptr inbounds %struct.TYPE_7__, ptr %76, i64 %51, i32 1, i32 2
store i32 %79, ptr %80, align 8, !tbaa !24
br label %99
81: ; preds = %72
%82 = load i64, ptr @CT_STRING, align 8, !tbaa !22
%83 = icmp eq i64 %54, %82
br i1 %83, label %84, label %99
84: ; preds = %81
%85 = load ptr, ptr %49, align 8, !tbaa !17
%86 = getelementptr inbounds %struct.TYPE_7__, ptr %85, i64 %51
store i64 %54, ptr %86, align 8, !tbaa !18
%87 = getelementptr inbounds %struct.TYPE_7__, ptr %52, i64 %51, i32 1, i32 1
%88 = load ptr, ptr %87, align 8, !tbaa !25
%89 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %88)
%90 = add nsw i64 %89, 1
%91 = tail call i64 @GetMemory(i64 noundef %90) #4
%92 = inttoptr i64 %91 to ptr
%93 = load ptr, ptr %49, align 8, !tbaa !17
%94 = getelementptr inbounds %struct.TYPE_7__, ptr %93, i64 %51, i32 1, i32 1
store ptr %92, ptr %94, align 8, !tbaa !25
%95 = load ptr, ptr %47, align 8, !tbaa !17
%96 = getelementptr inbounds %struct.TYPE_7__, ptr %95, i64 %51, i32 1, i32 1
%97 = load ptr, ptr %96, align 8, !tbaa !25
%98 = tail call i32 @strcpy(ptr noundef %92, ptr noundef %97) #4
br label %99
99: ; preds = %62, %81, %84, %75
%100 = add nuw nsw i64 %51, 1
%101 = load i32, ptr @MAX_CHARACTERISTICS, align 4, !tbaa !5
%102 = sext i32 %101 to i64
%103 = icmp slt i64 %100, %102
br i1 %103, label %50, label %104, !llvm.loop !26
104: ; preds = %21, %99, %9, %24, %3
%105 = phi i32 [ 0, %3 ], [ %25, %24 ], [ 0, %9 ], [ %25, %99 ], [ 0, %21 ]
ret i32 %105
}
declare ptr @BotCharacterFromHandle(i32 noundef) local_unnamed_addr #1
declare i64 @GetClearedMemory(i32 noundef) local_unnamed_addr #1
declare i32 @strcpy(ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i64 @GetMemory(i64 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_8__", !15, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !10, i64 16}
!18 = !{!19, !20, i64 0}
!19 = !{!"TYPE_7__", !20, i64 0, !21, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!"TYPE_6__", !15, i64 0, !10, i64 8, !6, i64 16}
!22 = !{!20, !20, i64 0}
!23 = !{!19, !15, i64 8}
!24 = !{!19, !6, i64 24}
!25 = !{!19, !10, i64 16}
!26 = distinct !{!26, !12}
| ; ModuleID = 'AnghaBench/Quake-III-Arena/code/botlib/extr_be_ai_char.c_BotInterpolateCharacters.c'
source_filename = "AnghaBench/Quake-III-Arena/code/botlib/extr_be_ai_char.c_BotInterpolateCharacters.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_7__ = type { i64, %struct.TYPE_6__ }
%struct.TYPE_6__ = type { float, ptr, i32 }
@MAX_CLIENTS = common local_unnamed_addr global i32 0, align 4
@botcharacters = common local_unnamed_addr global ptr null, align 8
@MAX_CHARACTERISTICS = common local_unnamed_addr global i32 0, align 4
@CT_FLOAT = common local_unnamed_addr global i64 0, align 8
@CT_INTEGER = common local_unnamed_addr global i64 0, align 8
@CT_STRING = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @BotInterpolateCharacters(i32 noundef %0, i32 noundef %1, float noundef %2) local_unnamed_addr #0 {
%4 = tail call ptr @BotCharacterFromHandle(i32 noundef %0) #4
%5 = tail call ptr @BotCharacterFromHandle(i32 noundef %1) #4
%6 = icmp ne ptr %4, null
%7 = icmp ne ptr %5, null
%8 = select i1 %6, i1 %7, i1 false
br i1 %8, label %9, label %104
9: ; preds = %3
%10 = load i32, ptr @MAX_CLIENTS, align 4, !tbaa !6
%11 = icmp slt i32 %10, 1
br i1 %11, label %104, label %12
12: ; preds = %9
%13 = load ptr, ptr @botcharacters, align 8, !tbaa !10
%14 = add nuw i32 %10, 1
%15 = zext i32 %14 to i64
br label %16
16: ; preds = %12, %21
%17 = phi i64 [ 1, %12 ], [ %22, %21 ]
%18 = getelementptr inbounds ptr, ptr %13, i64 %17
%19 = load ptr, ptr %18, align 8, !tbaa !10
%20 = icmp eq ptr %19, null
br i1 %20, label %24, label %21
21: ; preds = %16
%22 = add nuw nsw i64 %17, 1
%23 = icmp eq i64 %22, %15
br i1 %23, label %104, label %16, !llvm.loop !12
24: ; preds = %16
%25 = trunc nuw nsw i64 %17 to i32
%26 = load i32, ptr @MAX_CHARACTERISTICS, align 4, !tbaa !6
%27 = shl i32 %26, 2
%28 = add i32 %27, 24
%29 = tail call i64 @GetClearedMemory(i32 noundef %28) #4
%30 = inttoptr i64 %29 to ptr
store float %2, ptr %30, align 8, !tbaa !14
%31 = getelementptr inbounds i8, ptr %30, i64 8
%32 = load ptr, ptr %31, align 8, !tbaa !17
%33 = getelementptr inbounds i8, ptr %4, i64 8
%34 = load ptr, ptr %33, align 8, !tbaa !17
%35 = tail call i32 @strcpy(ptr noundef %32, ptr noundef %34) #4
%36 = load ptr, ptr @botcharacters, align 8, !tbaa !10
%37 = and i64 %17, 4294967295
%38 = getelementptr inbounds ptr, ptr %36, i64 %37
store ptr %30, ptr %38, align 8, !tbaa !10
%39 = load float, ptr %4, align 8, !tbaa !14
%40 = fsub float %2, %39
%41 = load float, ptr %5, align 8, !tbaa !14
%42 = fsub float %41, %39
%43 = fdiv float %40, %42
%44 = load i32, ptr @MAX_CHARACTERISTICS, align 4, !tbaa !6
%45 = icmp sgt i32 %44, 0
br i1 %45, label %46, label %104
46: ; preds = %24
%47 = getelementptr inbounds i8, ptr %4, i64 16
%48 = getelementptr inbounds i8, ptr %5, i64 16
%49 = getelementptr inbounds i8, ptr %30, i64 16
br label %50
50: ; preds = %46, %99
%51 = phi i64 [ 0, %46 ], [ %100, %99 ]
%52 = load ptr, ptr %47, align 8, !tbaa !18
%53 = getelementptr inbounds %struct.TYPE_7__, ptr %52, i64 %51
%54 = load i64, ptr %53, align 8, !tbaa !19
%55 = load i64, ptr @CT_FLOAT, align 8, !tbaa !23
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %72
57: ; preds = %50
%58 = load ptr, ptr %48, align 8, !tbaa !18
%59 = getelementptr inbounds %struct.TYPE_7__, ptr %58, i64 %51
%60 = load i64, ptr %59, align 8, !tbaa !19
%61 = icmp eq i64 %60, %54
br i1 %61, label %62, label %72
62: ; preds = %57
%63 = load ptr, ptr %49, align 8, !tbaa !18
%64 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %51
store i64 %54, ptr %64, align 8, !tbaa !19
%65 = getelementptr inbounds %struct.TYPE_7__, ptr %52, i64 %51, i32 1
%66 = load float, ptr %65, align 8, !tbaa !24
%67 = getelementptr inbounds %struct.TYPE_7__, ptr %58, i64 %51, i32 1
%68 = load float, ptr %67, align 8, !tbaa !24
%69 = fsub float %68, %66
%70 = tail call float @llvm.fmuladd.f32(float %69, float %43, float %66)
%71 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %51, i32 1
store float %70, ptr %71, align 8, !tbaa !24
br label %99
72: ; preds = %57, %50
%73 = load i64, ptr @CT_INTEGER, align 8, !tbaa !23
%74 = icmp eq i64 %54, %73
br i1 %74, label %75, label %81
75: ; preds = %72
%76 = load ptr, ptr %49, align 8, !tbaa !18
%77 = getelementptr inbounds %struct.TYPE_7__, ptr %76, i64 %51
store i64 %54, ptr %77, align 8, !tbaa !19
%78 = getelementptr inbounds %struct.TYPE_7__, ptr %52, i64 %51, i32 1, i32 2
%79 = load i32, ptr %78, align 8, !tbaa !25
%80 = getelementptr inbounds %struct.TYPE_7__, ptr %76, i64 %51, i32 1, i32 2
store i32 %79, ptr %80, align 8, !tbaa !25
br label %99
81: ; preds = %72
%82 = load i64, ptr @CT_STRING, align 8, !tbaa !23
%83 = icmp eq i64 %54, %82
br i1 %83, label %84, label %99
84: ; preds = %81
%85 = load ptr, ptr %49, align 8, !tbaa !18
%86 = getelementptr inbounds %struct.TYPE_7__, ptr %85, i64 %51
store i64 %54, ptr %86, align 8, !tbaa !19
%87 = getelementptr inbounds %struct.TYPE_7__, ptr %52, i64 %51, i32 1, i32 1
%88 = load ptr, ptr %87, align 8, !tbaa !26
%89 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %88)
%90 = add nsw i64 %89, 1
%91 = tail call i64 @GetMemory(i64 noundef %90) #4
%92 = inttoptr i64 %91 to ptr
%93 = load ptr, ptr %49, align 8, !tbaa !18
%94 = getelementptr inbounds %struct.TYPE_7__, ptr %93, i64 %51, i32 1, i32 1
store ptr %92, ptr %94, align 8, !tbaa !26
%95 = load ptr, ptr %47, align 8, !tbaa !18
%96 = getelementptr inbounds %struct.TYPE_7__, ptr %95, i64 %51, i32 1, i32 1
%97 = load ptr, ptr %96, align 8, !tbaa !26
%98 = tail call i32 @strcpy(ptr noundef %92, ptr noundef %97) #4
br label %99
99: ; preds = %62, %81, %84, %75
%100 = add nuw nsw i64 %51, 1
%101 = load i32, ptr @MAX_CHARACTERISTICS, align 4, !tbaa !6
%102 = sext i32 %101 to i64
%103 = icmp slt i64 %100, %102
br i1 %103, label %50, label %104, !llvm.loop !27
104: ; preds = %21, %99, %9, %24, %3
%105 = phi i32 [ 0, %3 ], [ %25, %24 ], [ 0, %9 ], [ %25, %99 ], [ 0, %21 ]
ret i32 %105
}
declare ptr @BotCharacterFromHandle(i32 noundef) local_unnamed_addr #1
declare i64 @GetClearedMemory(i32 noundef) local_unnamed_addr #1
declare i32 @strcpy(ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i64 @GetMemory(i64 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #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 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !16, i64 0}
!15 = !{!"TYPE_8__", !16, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"float", !8, i64 0}
!17 = !{!15, !11, i64 8}
!18 = !{!15, !11, i64 16}
!19 = !{!20, !21, i64 0}
!20 = !{!"TYPE_7__", !21, i64 0, !22, i64 8}
!21 = !{!"long", !8, i64 0}
!22 = !{!"TYPE_6__", !16, i64 0, !11, i64 8, !7, i64 16}
!23 = !{!21, !21, i64 0}
!24 = !{!20, !16, i64 8}
!25 = !{!20, !7, i64 24}
!26 = !{!20, !11, i64 16}
!27 = distinct !{!27, !13}
| Quake-III-Arena_code_botlib_extr_be_ai_char.c_BotInterpolateCharacters |
; ModuleID = 'AnghaBench/linux/arch/mips/lantiq/falcon/extr_sysctrl.c_sysctl_activate.c'
source_filename = "AnghaBench/linux/arch/mips/lantiq/falcon/extr_sysctrl.c_sysctl_activate.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.clk = type { i32, i32 }
@SYSCTL_CLKEN = dso_local local_unnamed_addr global i32 0, align 4
@SYSCTL_ACT = dso_local local_unnamed_addr global i32 0, align 4
@SYSCTL_ACTS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sysctl_activate], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @sysctl_activate(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.clk, ptr %0, i64 0, i32 1
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = load i32, ptr %0, align 4, !tbaa !10
%5 = load i32, ptr @SYSCTL_CLKEN, align 4, !tbaa !11
%6 = tail call i32 @sysctl_w32(i32 noundef %3, i32 noundef %4, i32 noundef %5) #2
%7 = load i32, ptr %2, align 4, !tbaa !5
%8 = load i32, ptr %0, align 4, !tbaa !10
%9 = load i32, ptr @SYSCTL_ACT, align 4, !tbaa !11
%10 = tail call i32 @sysctl_w32(i32 noundef %7, i32 noundef %8, i32 noundef %9) #2
%11 = load i32, ptr %0, align 4, !tbaa !10
%12 = load i32, ptr @SYSCTL_ACTS, align 4, !tbaa !11
%13 = tail call i32 @sysctl_wait(ptr noundef nonnull %0, i32 noundef %11, i32 noundef %12) #2
ret i32 0
}
declare i32 @sysctl_w32(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sysctl_wait(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"clk", !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 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/arch/mips/lantiq/falcon/extr_sysctrl.c_sysctl_activate.c'
source_filename = "AnghaBench/linux/arch/mips/lantiq/falcon/extr_sysctrl.c_sysctl_activate.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SYSCTL_CLKEN = common local_unnamed_addr global i32 0, align 4
@SYSCTL_ACT = common local_unnamed_addr global i32 0, align 4
@SYSCTL_ACTS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sysctl_activate], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @sysctl_activate(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = load i32, ptr %0, align 4, !tbaa !11
%5 = load i32, ptr @SYSCTL_CLKEN, align 4, !tbaa !12
%6 = tail call i32 @sysctl_w32(i32 noundef %3, i32 noundef %4, i32 noundef %5) #2
%7 = load i32, ptr %2, align 4, !tbaa !6
%8 = load i32, ptr %0, align 4, !tbaa !11
%9 = load i32, ptr @SYSCTL_ACT, align 4, !tbaa !12
%10 = tail call i32 @sysctl_w32(i32 noundef %7, i32 noundef %8, i32 noundef %9) #2
%11 = load i32, ptr %0, align 4, !tbaa !11
%12 = load i32, ptr @SYSCTL_ACTS, align 4, !tbaa !12
%13 = tail call i32 @sysctl_wait(ptr noundef nonnull %0, i32 noundef %11, i32 noundef %12) #2
ret i32 0
}
declare i32 @sysctl_w32(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sysctl_wait(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"clk", !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 = !{!8, !8, i64 0}
| linux_arch_mips_lantiq_falcon_extr_sysctrl.c_sysctl_activate |
; ModuleID = 'AnghaBench/sumatrapdf/ext/mujs/extr_jsvalue.c_jsV_newstring.c'
source_filename = "AnghaBench/sumatrapdf/ext/mujs/extr_jsvalue.c_jsV_newstring.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_10__ = type { i32, i32 }
@JS_CSTRING = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @jsV_newstring], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @jsV_newstring(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @JS_CSTRING, align 4, !tbaa !5
%4 = load i32, ptr %0, align 4, !tbaa !9
%5 = tail call ptr @jsV_newobject(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %4) #2
%6 = tail call i32 @js_intern(ptr noundef nonnull %0, ptr noundef %1) #2
%7 = getelementptr inbounds %struct.TYPE_10__, ptr %5, i64 0, i32 1
store i32 %6, ptr %7, align 4, !tbaa !11
%8 = tail call i32 @utflen(ptr noundef %1) #2
store i32 %8, ptr %5, align 4, !tbaa !15
ret ptr %5
}
declare ptr @jsV_newobject(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @js_intern(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @utflen(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_12__", !6, i64 0}
!11 = !{!12, !6, i64 4}
!12 = !{!"TYPE_13__", !13, i64 0}
!13 = !{!"TYPE_11__", !14, i64 0}
!14 = !{!"TYPE_10__", !6, i64 0, !6, i64 4}
!15 = !{!12, !6, i64 0}
| ; ModuleID = 'AnghaBench/sumatrapdf/ext/mujs/extr_jsvalue.c_jsV_newstring.c'
source_filename = "AnghaBench/sumatrapdf/ext/mujs/extr_jsvalue.c_jsV_newstring.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@JS_CSTRING = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @jsV_newstring], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @jsV_newstring(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @JS_CSTRING, align 4, !tbaa !6
%4 = load i32, ptr %0, align 4, !tbaa !10
%5 = tail call ptr @jsV_newobject(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %4) #2
%6 = tail call i32 @js_intern(ptr noundef nonnull %0, ptr noundef %1) #2
%7 = getelementptr inbounds i8, ptr %5, i64 4
store i32 %6, ptr %7, align 4, !tbaa !12
%8 = tail call i32 @utflen(ptr noundef %1) #2
store i32 %8, ptr %5, align 4, !tbaa !16
ret ptr %5
}
declare ptr @jsV_newobject(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @js_intern(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @utflen(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_12__", !7, i64 0}
!12 = !{!13, !7, i64 4}
!13 = !{!"TYPE_13__", !14, i64 0}
!14 = !{!"TYPE_11__", !15, i64 0}
!15 = !{!"TYPE_10__", !7, i64 0, !7, i64 4}
!16 = !{!13, !7, i64 0}
| sumatrapdf_ext_mujs_extr_jsvalue.c_jsV_newstring |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/rsn_supp/extr_tdls.c_copy_supp_rates.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/rsn_supp/extr_tdls.c_copy_supp_rates.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.wpa_eapol_ie_parse = type { i64, ptr, i64, i64 }
%struct.wpa_tdls_peer = type { i32, i32 }
@MSG_DEBUG = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"TDLS: No supported rates received\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @copy_supp_rates], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @copy_supp_rates(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) #0 {
%3 = getelementptr inbounds %struct.wpa_eapol_ie_parse, ptr %0, i64 0, i32 3
%4 = load i64, ptr %3, align 8, !tbaa !5
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !11
%8 = tail call i32 @wpa_printf(i32 noundef %7, ptr noundef nonnull @.str) #2
br label %27
9: ; preds = %2
%10 = load i32, ptr %1, align 4, !tbaa !13
%11 = add nsw i64 %4, 2
%12 = getelementptr inbounds %struct.wpa_eapol_ie_parse, ptr %0, i64 0, i32 2
%13 = load i64, ptr %12, align 8, !tbaa !15
%14 = add nsw i64 %13, -2
%15 = getelementptr inbounds %struct.wpa_eapol_ie_parse, ptr %0, i64 0, i32 1
%16 = load ptr, ptr %15, align 8, !tbaa !16
%17 = icmp eq ptr %16, null
%18 = getelementptr inbounds i32, ptr %16, i64 2
%19 = select i1 %17, ptr null, ptr %18
br i1 %17, label %23, label %20
20: ; preds = %9
%21 = load i64, ptr %0, align 8, !tbaa !17
%22 = add nsw i64 %21, -2
br label %23
23: ; preds = %9, %20
%24 = phi i64 [ %22, %20 ], [ 0, %9 ]
%25 = tail call i32 @merge_byte_arrays(i32 noundef %10, i32 noundef 4, i64 noundef %11, i64 noundef %14, ptr noundef %19, i64 noundef %24) #2
%26 = getelementptr inbounds %struct.wpa_tdls_peer, ptr %1, i64 0, i32 1
store i32 %25, ptr %26, align 4, !tbaa !18
br label %27
27: ; preds = %23, %6
%28 = phi i32 [ 0, %23 ], [ -1, %6 ]
ret i32 %28
}
declare i32 @wpa_printf(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @merge_byte_arrays(i32 noundef, i32 noundef, i64 noundef, i64 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, !7, i64 24}
!6 = !{!"wpa_eapol_ie_parse", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"wpa_tdls_peer", !12, i64 0, !12, i64 4}
!15 = !{!6, !7, i64 16}
!16 = !{!6, !10, i64 8}
!17 = !{!6, !7, i64 0}
!18 = !{!14, !12, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/rsn_supp/extr_tdls.c_copy_supp_rates.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/rsn_supp/extr_tdls.c_copy_supp_rates.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MSG_DEBUG = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"TDLS: No supported rates received\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @copy_supp_rates], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, 1) i32 @copy_supp_rates(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 24
%4 = load i64, ptr %3, align 8, !tbaa !6
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !12
%8 = tail call i32 @wpa_printf(i32 noundef %7, ptr noundef nonnull @.str) #2
br label %27
9: ; preds = %2
%10 = load i32, ptr %1, align 4, !tbaa !14
%11 = add nsw i64 %4, 2
%12 = getelementptr inbounds i8, ptr %0, i64 16
%13 = load i64, ptr %12, align 8, !tbaa !16
%14 = add nsw i64 %13, -2
%15 = getelementptr inbounds i8, ptr %0, i64 8
%16 = load ptr, ptr %15, align 8, !tbaa !17
%17 = icmp eq ptr %16, null
%18 = getelementptr inbounds i8, ptr %16, i64 8
%19 = select i1 %17, ptr null, ptr %18
br i1 %17, label %23, label %20
20: ; preds = %9
%21 = load i64, ptr %0, align 8, !tbaa !18
%22 = add nsw i64 %21, -2
br label %23
23: ; preds = %9, %20
%24 = phi i64 [ %22, %20 ], [ 0, %9 ]
%25 = tail call i32 @merge_byte_arrays(i32 noundef %10, i32 noundef 4, i64 noundef %11, i64 noundef %14, ptr noundef %19, i64 noundef %24) #2
%26 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %25, ptr %26, align 4, !tbaa !19
br label %27
27: ; preds = %23, %6
%28 = phi i32 [ 0, %23 ], [ -1, %6 ]
ret i32 %28
}
declare i32 @wpa_printf(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @merge_byte_arrays(i32 noundef, i32 noundef, i64 noundef, i64 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, !8, i64 24}
!7 = !{!"wpa_eapol_ie_parse", !8, i64 0, !11, i64 8, !8, i64 16, !8, i64 24}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"wpa_tdls_peer", !13, i64 0, !13, i64 4}
!16 = !{!7, !8, i64 16}
!17 = !{!7, !11, i64 8}
!18 = !{!7, !8, i64 0}
!19 = !{!15, !13, i64 4}
| freebsd_contrib_wpa_src_rsn_supp_extr_tdls.c_copy_supp_rates |
; ModuleID = 'AnghaBench/Quake-III-Arena/code/server/extr_sv_game.c_SV_InitGameProgs.c'
source_filename = "AnghaBench/Quake-III-Arena/code/server/extr_sv_game.c_SV_InitGameProgs.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 [11 x i8] c"bot_enable\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@CVAR_LATCH = dso_local local_unnamed_addr global i32 0, align 4
@bot_enable = external local_unnamed_addr global i32, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"qagame\00", align 1
@SV_GameSystemCalls = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [8 x i8] c"vm_game\00", align 1
@gvm = dso_local local_unnamed_addr global i32 0, align 4
@ERR_FATAL = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [25 x i8] c"VM_Create on game failed\00", align 1
@qfalse = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @SV_InitGameProgs() local_unnamed_addr #0 {
%1 = load i32, ptr @CVAR_LATCH, align 4, !tbaa !5
%2 = tail call ptr @Cvar_Get(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef %1) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = load i32, ptr %2, align 4, !tbaa !9
br label %6
6: ; preds = %0, %4
%7 = phi i32 [ %5, %4 ], [ 0, %0 ]
store i32 %7, ptr @bot_enable, align 4, !tbaa !5
%8 = load i32, ptr @SV_GameSystemCalls, align 4, !tbaa !5
%9 = tail call i32 @Cvar_VariableValue(ptr noundef nonnull @.str.3) #2
%10 = tail call i32 @VM_Create(ptr noundef nonnull @.str.2, i32 noundef %8, i32 noundef %9) #2
store i32 %10, ptr @gvm, align 4, !tbaa !5
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %6
%13 = load i32, ptr @ERR_FATAL, align 4, !tbaa !5
%14 = tail call i32 @Com_Error(i32 noundef %13, ptr noundef nonnull @.str.4) #2
br label %15
15: ; preds = %12, %6
%16 = load i32, ptr @qfalse, align 4, !tbaa !5
%17 = tail call i32 @SV_InitGameVM(i32 noundef %16) #2
ret void
}
declare ptr @Cvar_Get(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @VM_Create(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @Cvar_VariableValue(ptr noundef) local_unnamed_addr #1
declare i32 @Com_Error(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @SV_InitGameVM(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_3__", !6, i64 0}
| ; ModuleID = 'AnghaBench/Quake-III-Arena/code/server/extr_sv_game.c_SV_InitGameProgs.c'
source_filename = "AnghaBench/Quake-III-Arena/code/server/extr_sv_game.c_SV_InitGameProgs.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 [11 x i8] c"bot_enable\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@CVAR_LATCH = common local_unnamed_addr global i32 0, align 4
@bot_enable = external local_unnamed_addr global i32, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"qagame\00", align 1
@SV_GameSystemCalls = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [8 x i8] c"vm_game\00", align 1
@gvm = common local_unnamed_addr global i32 0, align 4
@ERR_FATAL = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [25 x i8] c"VM_Create on game failed\00", align 1
@qfalse = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @SV_InitGameProgs() local_unnamed_addr #0 {
%1 = load i32, ptr @CVAR_LATCH, align 4, !tbaa !6
%2 = tail call ptr @Cvar_Get(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef %1) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = load i32, ptr %2, align 4, !tbaa !10
br label %6
6: ; preds = %0, %4
%7 = phi i32 [ %5, %4 ], [ 0, %0 ]
store i32 %7, ptr @bot_enable, align 4, !tbaa !6
%8 = load i32, ptr @SV_GameSystemCalls, align 4, !tbaa !6
%9 = tail call i32 @Cvar_VariableValue(ptr noundef nonnull @.str.3) #2
%10 = tail call i32 @VM_Create(ptr noundef nonnull @.str.2, i32 noundef %8, i32 noundef %9) #2
store i32 %10, ptr @gvm, align 4, !tbaa !6
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %6
%13 = load i32, ptr @ERR_FATAL, align 4, !tbaa !6
%14 = tail call i32 @Com_Error(i32 noundef %13, ptr noundef nonnull @.str.4) #2
br label %15
15: ; preds = %12, %6
%16 = load i32, ptr @qfalse, align 4, !tbaa !6
%17 = tail call i32 @SV_InitGameVM(i32 noundef %16) #2
ret void
}
declare ptr @Cvar_Get(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @VM_Create(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @Cvar_VariableValue(ptr noundef) local_unnamed_addr #1
declare i32 @Com_Error(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @SV_InitGameVM(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_3__", !7, i64 0}
| Quake-III-Arena_code_server_extr_sv_game.c_SV_InitGameProgs |
; ModuleID = 'AnghaBench/postgres/contrib/pgcrypto/extr_imath.c_LOWER_HALF.c'
source_filename = "AnghaBench/postgres/contrib/pgcrypto/extr_imath.c_LOWER_HALF.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 @LOWER_HALF], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @LOWER_HALF(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/postgres/contrib/pgcrypto/extr_imath.c_LOWER_HALF.c'
source_filename = "AnghaBench/postgres/contrib/pgcrypto/extr_imath.c_LOWER_HALF.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 @LOWER_HALF], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @LOWER_HALF(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)"}
| postgres_contrib_pgcrypto_extr_imath.c_LOWER_HALF |
; ModuleID = 'AnghaBench/freebsd/lib/libc/rpc/extr_rpc_dtablesize.c__rpc_dtablesize.c'
source_filename = "AnghaBench/freebsd/lib/libc/rpc/extr_rpc_dtablesize.c__rpc_dtablesize.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"
@_rpc_dtablesize.size = internal unnamed_addr global i32 0, align 4
@FD_SETSIZE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @_rpc_dtablesize() local_unnamed_addr #0 {
%1 = load i32, ptr @_rpc_dtablesize.size, align 4, !tbaa !5
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i32 (...) @getdtablesize() #3
%5 = load i32, ptr @FD_SETSIZE, align 4, !tbaa !5
%6 = tail call i32 @llvm.smin.i32(i32 %4, i32 %5)
store i32 %6, ptr @_rpc_dtablesize.size, align 4
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ %6, %3 ], [ %1, %0 ]
ret i32 %8
}
declare i32 @getdtablesize(...) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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"}
| ; ModuleID = 'AnghaBench/freebsd/lib/libc/rpc/extr_rpc_dtablesize.c__rpc_dtablesize.c'
source_filename = "AnghaBench/freebsd/lib/libc/rpc/extr_rpc_dtablesize.c__rpc_dtablesize.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@_rpc_dtablesize.size = internal unnamed_addr global i32 0, align 4
@FD_SETSIZE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @_rpc_dtablesize() local_unnamed_addr #0 {
%1 = load i32, ptr @_rpc_dtablesize.size, align 4, !tbaa !6
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i32 @getdtablesize() #3
%5 = load i32, ptr @FD_SETSIZE, align 4, !tbaa !6
%6 = tail call i32 @llvm.smin.i32(i32 %4, i32 %5)
store i32 %6, ptr @_rpc_dtablesize.size, align 4
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ %6, %3 ], [ %1, %0 ]
ret i32 %8
}
declare i32 @getdtablesize(...) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_lib_libc_rpc_extr_rpc_dtablesize.c__rpc_dtablesize |
; ModuleID = 'AnghaBench/linux/drivers/base/extr_core.c_dev_uevent_filter.c'
source_filename = "AnghaBench/linux/drivers/base/extr_core.c_dev_uevent_filter.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.kobj_type = type { i32 }
%struct.device = type { i64, i64 }
@device_ktype = dso_local global %struct.kobj_type zeroinitializer, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dev_uevent_filter], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @dev_uevent_filter(ptr nocapture readnone %0, ptr noundef %1) #0 {
%3 = tail call ptr @get_ktype(ptr noundef %1) #2
%4 = icmp eq ptr %3, @device_ktype
br i1 %4, label %5, label %13
5: ; preds = %2
%6 = tail call ptr @kobj_to_dev(ptr noundef %1) #2
%7 = getelementptr inbounds %struct.device, ptr %6, i64 0, i32 1
%8 = load i64, ptr %7, align 8, !tbaa !5
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = load i64, ptr %6, align 8, !tbaa !10
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10, %2
br label %14
14: ; preds = %5, %10, %13
%15 = phi i32 [ 0, %13 ], [ 1, %10 ], [ 1, %5 ]
ret i32 %15
}
declare ptr @get_ktype(ptr noundef) local_unnamed_addr #1
declare ptr @kobj_to_dev(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"device", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/base/extr_core.c_dev_uevent_filter.c'
source_filename = "AnghaBench/linux/drivers/base/extr_core.c_dev_uevent_filter.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.kobj_type = type { i32 }
@device_ktype = common global %struct.kobj_type zeroinitializer, align 4
@llvm.used = appending global [1 x ptr] [ptr @dev_uevent_filter], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @dev_uevent_filter(ptr nocapture readnone %0, ptr noundef %1) #0 {
%3 = tail call ptr @get_ktype(ptr noundef %1) #2
%4 = icmp eq ptr %3, @device_ktype
br i1 %4, label %5, label %13
5: ; preds = %2
%6 = tail call ptr @kobj_to_dev(ptr noundef %1) #2
%7 = getelementptr inbounds i8, ptr %6, i64 8
%8 = load i64, ptr %7, align 8, !tbaa !6
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = load i64, ptr %6, align 8, !tbaa !11
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10, %2
br label %14
14: ; preds = %5, %10, %13
%15 = phi i32 [ 0, %13 ], [ 1, %10 ], [ 1, %5 ]
ret i32 %15
}
declare ptr @get_ktype(ptr noundef) local_unnamed_addr #1
declare ptr @kobj_to_dev(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"device", !8, i64 0, !8, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
| linux_drivers_base_extr_core.c_dev_uevent_filter |
; ModuleID = 'AnghaBench/git/extr_rerere.c_find_rerere_dir.c'
source_filename = "AnghaBench/git/extr_rerere.c_find_rerere_dir.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.rerere_dir = type { i64, i64, ptr, i32 }
@GIT_MAX_RAWSZ = dso_local local_unnamed_addr global i32 0, align 4
@rerere_dir = dso_local local_unnamed_addr global ptr null, align 8
@rerere_dir_nr = dso_local local_unnamed_addr global i32 0, align 4
@rerere_dir_hash = dso_local local_unnamed_addr global i32 0, align 4
@rerere_dir_alloc = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @find_rerere_dir], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @find_rerere_dir(ptr noundef %0) #0 {
%2 = load i32, ptr @GIT_MAX_RAWSZ, align 4, !tbaa !5
%3 = zext i32 %2 to i64
%4 = alloca i8, i64 %3, align 16
%5 = call i64 @get_sha1_hex(ptr noundef %0, ptr noundef nonnull %4) #3
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %42
7: ; preds = %1
%8 = load ptr, ptr @rerere_dir, align 8, !tbaa !9
%9 = load i32, ptr @rerere_dir_nr, align 4, !tbaa !5
%10 = load i32, ptr @rerere_dir_hash, align 4, !tbaa !5
%11 = call i32 @sha1_pos(ptr noundef nonnull %4, ptr noundef %8, i32 noundef %9, i32 noundef %10) #3
%12 = icmp slt i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %7
%14 = zext nneg i32 %11 to i64
br label %37
15: ; preds = %7
%16 = call ptr @xmalloc(i32 noundef 32) #3
%17 = getelementptr inbounds %struct.rerere_dir, ptr %16, i64 0, i32 3
%18 = load i32, ptr %17, align 8, !tbaa !11
%19 = call i32 @hashcpy(i32 noundef %18, ptr noundef nonnull %4) #3
%20 = xor i32 %11, -1
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %16, i8 0, i64 24, i1 false)
%21 = load ptr, ptr @rerere_dir, align 8, !tbaa !9
%22 = load i32, ptr @rerere_dir_nr, align 4, !tbaa !5
%23 = add nsw i32 %22, 1
%24 = load i32, ptr @rerere_dir_alloc, align 4, !tbaa !5
%25 = call i32 @ALLOC_GROW(ptr noundef %21, i32 noundef %23, i32 noundef %24) #3
%26 = load i32, ptr @rerere_dir_nr, align 4, !tbaa !5
%27 = add nsw i32 %26, 1
store i32 %27, ptr @rerere_dir_nr, align 4, !tbaa !5
%28 = load ptr, ptr @rerere_dir, align 8, !tbaa !9
%29 = zext nneg i32 %20 to i64
%30 = getelementptr inbounds ptr, ptr %28, i64 %29
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = add i32 %27, %11
%33 = call i32 @MOVE_ARRAY(ptr noundef nonnull %31, ptr noundef %30, i32 noundef %32) #3
%34 = load ptr, ptr @rerere_dir, align 8, !tbaa !9
%35 = getelementptr inbounds ptr, ptr %34, i64 %29
store ptr %16, ptr %35, align 8, !tbaa !9
%36 = call i32 @scan_rerere_dir(ptr noundef nonnull %16) #3
br label %37
37: ; preds = %13, %15
%38 = phi i64 [ %14, %13 ], [ %29, %15 ]
%39 = load ptr, ptr @rerere_dir, align 8, !tbaa !9
%40 = getelementptr inbounds ptr, ptr %39, i64 %38
%41 = load ptr, ptr %40, align 8, !tbaa !9
br label %42
42: ; preds = %1, %37
%43 = phi ptr [ %41, %37 ], [ null, %1 ]
ret ptr %43
}
declare i64 @get_sha1_hex(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sha1_pos(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @xmalloc(i32 noundef) local_unnamed_addr #1
declare i32 @hashcpy(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ALLOC_GROW(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MOVE_ARRAY(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @scan_rerere_dir(ptr 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, !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, !6, i64 24}
!12 = !{!"rerere_dir", !13, i64 0, !13, i64 8, !10, i64 16, !6, i64 24}
!13 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/git/extr_rerere.c_find_rerere_dir.c'
source_filename = "AnghaBench/git/extr_rerere.c_find_rerere_dir.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GIT_MAX_RAWSZ = common local_unnamed_addr global i32 0, align 4
@rerere_dir = common local_unnamed_addr global ptr null, align 8
@rerere_dir_nr = common local_unnamed_addr global i32 0, align 4
@rerere_dir_hash = common local_unnamed_addr global i32 0, align 4
@rerere_dir_alloc = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @find_rerere_dir], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @find_rerere_dir(ptr noundef %0) #0 {
%2 = load i32, ptr @GIT_MAX_RAWSZ, align 4, !tbaa !6
%3 = zext i32 %2 to i64
%4 = alloca i8, i64 %3, align 1
%5 = call i64 @get_sha1_hex(ptr noundef %0, ptr noundef nonnull %4) #3
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %42
7: ; preds = %1
%8 = load ptr, ptr @rerere_dir, align 8, !tbaa !10
%9 = load i32, ptr @rerere_dir_nr, align 4, !tbaa !6
%10 = load i32, ptr @rerere_dir_hash, align 4, !tbaa !6
%11 = call i32 @sha1_pos(ptr noundef nonnull %4, ptr noundef %8, i32 noundef %9, i32 noundef %10) #3
%12 = icmp slt i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %7
%14 = zext nneg i32 %11 to i64
br label %37
15: ; preds = %7
%16 = call ptr @xmalloc(i32 noundef 32) #3
%17 = getelementptr inbounds i8, ptr %16, i64 24
%18 = load i32, ptr %17, align 8, !tbaa !12
%19 = call i32 @hashcpy(i32 noundef %18, ptr noundef nonnull %4) #3
%20 = xor i32 %11, -1
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %16, i8 0, i64 24, i1 false)
%21 = load ptr, ptr @rerere_dir, align 8, !tbaa !10
%22 = load i32, ptr @rerere_dir_nr, align 4, !tbaa !6
%23 = add nsw i32 %22, 1
%24 = load i32, ptr @rerere_dir_alloc, align 4, !tbaa !6
%25 = call i32 @ALLOC_GROW(ptr noundef %21, i32 noundef %23, i32 noundef %24) #3
%26 = load i32, ptr @rerere_dir_nr, align 4, !tbaa !6
%27 = add nsw i32 %26, 1
store i32 %27, ptr @rerere_dir_nr, align 4, !tbaa !6
%28 = load ptr, ptr @rerere_dir, align 8, !tbaa !10
%29 = zext nneg i32 %20 to i64
%30 = getelementptr inbounds ptr, ptr %28, i64 %29
%31 = getelementptr inbounds i8, ptr %30, i64 8
%32 = add i32 %27, %11
%33 = call i32 @MOVE_ARRAY(ptr noundef nonnull %31, ptr noundef %30, i32 noundef %32) #3
%34 = load ptr, ptr @rerere_dir, align 8, !tbaa !10
%35 = getelementptr inbounds ptr, ptr %34, i64 %29
store ptr %16, ptr %35, align 8, !tbaa !10
%36 = call i32 @scan_rerere_dir(ptr noundef nonnull %16) #3
br label %37
37: ; preds = %13, %15
%38 = phi i64 [ %14, %13 ], [ %29, %15 ]
%39 = load ptr, ptr @rerere_dir, align 8, !tbaa !10
%40 = getelementptr inbounds ptr, ptr %39, i64 %38
%41 = load ptr, ptr %40, align 8, !tbaa !10
br label %42
42: ; preds = %1, %37
%43 = phi ptr [ %41, %37 ], [ null, %1 ]
ret ptr %43
}
declare i64 @get_sha1_hex(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sha1_pos(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @xmalloc(i32 noundef) local_unnamed_addr #1
declare i32 @hashcpy(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ALLOC_GROW(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MOVE_ARRAY(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @scan_rerere_dir(ptr 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, !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, !7, i64 24}
!13 = !{!"rerere_dir", !14, i64 0, !14, i64 8, !11, i64 16, !7, i64 24}
!14 = !{!"long", !8, i64 0}
| git_extr_rerere.c_find_rerere_dir |
; ModuleID = 'AnghaBench/kphp-kdb/vv/extr_vv-tl-parse.c___tl_nbit_fetch_mark_delete.c'
source_filename = "AnghaBench/kphp-kdb/vv/extr_vv-tl-parse.c___tl_nbit_fetch_mark_delete.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"
@TL_IN_MARK = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @__tl_nbit_fetch_mark_delete], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @__tl_nbit_fetch_mark_delete() #0 {
%1 = load i64, ptr @TL_IN_MARK, align 8, !tbaa !5
%2 = tail call i32 @assert(i64 noundef %1) #2
%3 = load i64, ptr @TL_IN_MARK, align 8, !tbaa !5
%4 = tail call i32 @zfree(i64 noundef %3, i32 noundef 4) #2
store i64 0, ptr @TL_IN_MARK, align 8, !tbaa !5
ret void
}
declare i32 @assert(i64 noundef) local_unnamed_addr #1
declare i32 @zfree(i64 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/kphp-kdb/vv/extr_vv-tl-parse.c___tl_nbit_fetch_mark_delete.c'
source_filename = "AnghaBench/kphp-kdb/vv/extr_vv-tl-parse.c___tl_nbit_fetch_mark_delete.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TL_IN_MARK = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @__tl_nbit_fetch_mark_delete], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @__tl_nbit_fetch_mark_delete() #0 {
%1 = load i64, ptr @TL_IN_MARK, align 8, !tbaa !6
%2 = tail call i32 @assert(i64 noundef %1) #2
%3 = load i64, ptr @TL_IN_MARK, align 8, !tbaa !6
%4 = tail call i32 @zfree(i64 noundef %3, i32 noundef 4) #2
store i64 0, ptr @TL_IN_MARK, align 8, !tbaa !6
ret void
}
declare i32 @assert(i64 noundef) local_unnamed_addr #1
declare i32 @zfree(i64 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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| kphp-kdb_vv_extr_vv-tl-parse.c___tl_nbit_fetch_mark_delete |
; ModuleID = 'AnghaBench/linux/arch/mips/loongson64/loongson-3/extr_hpet.c_hpet_set_state_shutdown.c'
source_filename = "AnghaBench/linux/arch/mips/loongson64/loongson-3/extr_hpet.c_hpet_set_state_shutdown.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"
@hpet_lock = dso_local global i32 0, align 4
@HPET_T0_CFG = dso_local local_unnamed_addr global i32 0, align 4
@HPET_TN_ENABLE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hpet_set_state_shutdown], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @hpet_set_state_shutdown(ptr nocapture readnone %0) #0 {
%2 = tail call i32 @spin_lock(ptr noundef nonnull @hpet_lock) #2
%3 = load i32, ptr @HPET_T0_CFG, align 4, !tbaa !5
%4 = tail call i32 @hpet_read(i32 noundef %3) #2
%5 = load i32, ptr @HPET_TN_ENABLE, align 4, !tbaa !5
%6 = xor i32 %5, -1
%7 = and i32 %4, %6
%8 = load i32, ptr @HPET_T0_CFG, align 4, !tbaa !5
%9 = tail call i32 @hpet_write(i32 noundef %8, i32 noundef %7) #2
%10 = tail call i32 @spin_unlock(ptr noundef nonnull @hpet_lock) #2
ret i32 0
}
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @hpet_read(i32 noundef) local_unnamed_addr #1
declare i32 @hpet_write(i32 noundef, i32 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/arch/mips/loongson64/loongson-3/extr_hpet.c_hpet_set_state_shutdown.c'
source_filename = "AnghaBench/linux/arch/mips/loongson64/loongson-3/extr_hpet.c_hpet_set_state_shutdown.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@hpet_lock = common global i32 0, align 4
@HPET_T0_CFG = common local_unnamed_addr global i32 0, align 4
@HPET_TN_ENABLE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @hpet_set_state_shutdown], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @hpet_set_state_shutdown(ptr nocapture readnone %0) #0 {
%2 = tail call i32 @spin_lock(ptr noundef nonnull @hpet_lock) #2
%3 = load i32, ptr @HPET_T0_CFG, align 4, !tbaa !6
%4 = tail call i32 @hpet_read(i32 noundef %3) #2
%5 = load i32, ptr @HPET_TN_ENABLE, align 4, !tbaa !6
%6 = xor i32 %5, -1
%7 = and i32 %4, %6
%8 = load i32, ptr @HPET_T0_CFG, align 4, !tbaa !6
%9 = tail call i32 @hpet_write(i32 noundef %8, i32 noundef %7) #2
%10 = tail call i32 @spin_unlock(ptr noundef nonnull @hpet_lock) #2
ret i32 0
}
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @hpet_read(i32 noundef) local_unnamed_addr #1
declare i32 @hpet_write(i32 noundef, i32 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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_arch_mips_loongson64_loongson-3_extr_hpet.c_hpet_set_state_shutdown |
; ModuleID = 'AnghaBench/sqlcipher/src/extr_pager.c_sqlite3PagerMemUsed.c'
source_filename = "AnghaBench/sqlcipher/src/extr_pager.c_sqlite3PagerMemUsed.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 }
; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3PagerMemUsed(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%4 = load i32, ptr %3, align 4, !tbaa !10
%5 = add i32 %2, 44
%6 = add i32 %5, %4
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
%8 = load i32, ptr %7, align 4, !tbaa !11
%9 = tail call i32 @sqlite3PcachePagecount(i32 noundef %8) #2
%10 = mul nsw i32 %9, %6
%11 = tail call i32 @sqlite3MallocSize(ptr noundef nonnull %0) #2
%12 = add nsw i32 %10, %11
%13 = load i32, ptr %0, align 4, !tbaa !5
%14 = add nsw i32 %12, %13
ret i32 %14
}
declare i32 @sqlite3PcachePagecount(i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3MallocSize(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_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 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
| ; ModuleID = 'AnghaBench/sqlcipher/src/extr_pager.c_sqlite3PagerMemUsed.c'
source_filename = "AnghaBench/sqlcipher/src/extr_pager.c_sqlite3PagerMemUsed.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 @sqlite3PagerMemUsed(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = getelementptr inbounds i8, ptr %0, i64 4
%4 = load i32, ptr %3, align 4, !tbaa !11
%5 = add i32 %2, 44
%6 = add i32 %5, %4
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load i32, ptr %7, align 4, !tbaa !12
%9 = tail call i32 @sqlite3PcachePagecount(i32 noundef %8) #2
%10 = mul nsw i32 %9, %6
%11 = tail call i32 @sqlite3MallocSize(ptr noundef nonnull %0) #2
%12 = add nsw i32 %10, %11
%13 = load i32, ptr %0, align 4, !tbaa !6
%14 = add nsw i32 %12, %13
ret i32 %14
}
declare i32 @sqlite3PcachePagecount(i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3MallocSize(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_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 = !{!7, !8, i64 4}
!12 = !{!7, !8, i64 8}
| sqlcipher_src_extr_pager.c_sqlite3PagerMemUsed |
; ModuleID = 'AnghaBench/qmk_firmware/tmk_core/protocol/extr_adb.c_wait_data_hi.c'
source_filename = "AnghaBench/qmk_firmware/tmk_core/protocol/extr_adb.c_wait_data_hi.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"
@F_CPU = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @wait_data_hi], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i64 @wait_data_hi(i64 noundef %0) #0 {
br label %2
2: ; preds = %6, %1
%3 = phi i64 [ %0, %1 ], [ %13, %6 ]
%4 = tail call i64 (...) @data_in() #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %15
6: ; preds = %2
%7 = load i32, ptr @F_CPU, align 4, !tbaa !5
%8 = sitofp i32 %7 to double
%9 = fdiv double 6.000000e+06, %8
%10 = fsub double 1.000000e+00, %9
%11 = fptosi double %10 to i32
%12 = tail call i32 @_delay_us(i32 noundef %11) #2
%13 = add nsw i64 %3, -1
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %2, !llvm.loop !9
15: ; preds = %2, %6
%16 = phi i64 [ %3, %2 ], [ 0, %6 ]
ret i64 %16
}
declare i64 @data_in(...) local_unnamed_addr #1
declare i32 @_delay_us(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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/qmk_firmware/tmk_core/protocol/extr_adb.c_wait_data_hi.c'
source_filename = "AnghaBench/qmk_firmware/tmk_core/protocol/extr_adb.c_wait_data_hi.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@F_CPU = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @wait_data_hi], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i64 @wait_data_hi(i64 noundef %0) #0 {
br label %2
2: ; preds = %6, %1
%3 = phi i64 [ %0, %1 ], [ %13, %6 ]
%4 = tail call i64 @data_in() #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %15
6: ; preds = %2
%7 = load i32, ptr @F_CPU, align 4, !tbaa !6
%8 = sitofp i32 %7 to double
%9 = fdiv double 6.000000e+06, %8
%10 = fsub double 1.000000e+00, %9
%11 = fptosi double %10 to i32
%12 = tail call i32 @_delay_us(i32 noundef %11) #2
%13 = add nsw i64 %3, -1
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %2, !llvm.loop !10
15: ; preds = %2, %6
%16 = phi i64 [ %3, %2 ], [ 0, %6 ]
ret i64 %16
}
declare i64 @data_in(...) local_unnamed_addr #1
declare i32 @_delay_us(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"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| qmk_firmware_tmk_core_protocol_extr_adb.c_wait_data_hi |
; ModuleID = 'AnghaBench/zfs/module/lua/extr_llex.c_luaX_setinput.c'
source_filename = "AnghaBench/zfs/module/lua/extr_llex.c_luaX_setinput.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 { i8, i32, i32, i32, i32, ptr, i32, ptr, ptr, ptr, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32 }
@TK_EOS = dso_local local_unnamed_addr global i32 0, align 4
@LUA_ENV = dso_local local_unnamed_addr global i32 0, align 4
@LUA_MINBUFFER = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @luaX_setinput(ptr noundef %0, ptr nocapture noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #0 {
store i8 46, ptr %1, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 5
store ptr %0, ptr %6, align 8, !tbaa !12
%7 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 1
store i32 %4, ptr %7, align 4, !tbaa !13
%8 = load i32, ptr @TK_EOS, align 4, !tbaa !14
%9 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 10
store i32 %8, ptr %9, align 8, !tbaa !15
%10 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 9
store ptr %2, ptr %10, align 8, !tbaa !16
%11 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 8
store ptr null, ptr %11, align 8, !tbaa !17
%12 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 2
store i32 1, ptr %12, align 8, !tbaa !18
%13 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 3
store i32 1, ptr %13, align 4, !tbaa !19
%14 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 7
store ptr %3, ptr %14, align 8, !tbaa !20
%15 = load i32, ptr @LUA_ENV, align 4, !tbaa !14
%16 = tail call i32 @luaS_new(ptr noundef %0, i32 noundef %15) #2
%17 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 6
store i32 %16, ptr %17, align 8, !tbaa !21
%18 = tail call i32 @luaS_fix(i32 noundef %16) #2
%19 = load ptr, ptr %6, align 8, !tbaa !12
%20 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 4
%21 = load i32, ptr %20, align 8, !tbaa !22
%22 = load i32, ptr @LUA_MINBUFFER, align 4, !tbaa !14
%23 = tail call i32 @luaZ_resizebuffer(ptr noundef %19, i32 noundef %21, i32 noundef %22) #2
ret void
}
declare i32 @luaS_new(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @luaS_fix(i32 noundef) local_unnamed_addr #1
declare i32 @luaZ_resizebuffer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_5__", !7, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !10, i64 24, !9, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !11, i64 64}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"TYPE_4__", !9, i64 0}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !9, i64 4}
!14 = !{!9, !9, i64 0}
!15 = !{!6, !9, i64 64}
!16 = !{!6, !10, i64 56}
!17 = !{!6, !10, i64 48}
!18 = !{!6, !9, i64 8}
!19 = !{!6, !9, i64 12}
!20 = !{!6, !10, i64 40}
!21 = !{!6, !9, i64 32}
!22 = !{!6, !9, i64 16}
| ; ModuleID = 'AnghaBench/zfs/module/lua/extr_llex.c_luaX_setinput.c'
source_filename = "AnghaBench/zfs/module/lua/extr_llex.c_luaX_setinput.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TK_EOS = common local_unnamed_addr global i32 0, align 4
@LUA_ENV = common local_unnamed_addr global i32 0, align 4
@LUA_MINBUFFER = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @luaX_setinput(ptr noundef %0, ptr nocapture noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #0 {
store i8 46, ptr %1, align 8, !tbaa !6
%6 = getelementptr inbounds i8, ptr %1, i64 24
store ptr %0, ptr %6, align 8, !tbaa !13
%7 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %4, ptr %7, align 4, !tbaa !14
%8 = load i32, ptr @TK_EOS, align 4, !tbaa !15
%9 = getelementptr inbounds i8, ptr %1, i64 64
store i32 %8, ptr %9, align 8, !tbaa !16
%10 = getelementptr inbounds i8, ptr %1, i64 56
store ptr %2, ptr %10, align 8, !tbaa !17
%11 = getelementptr inbounds i8, ptr %1, i64 48
store ptr null, ptr %11, align 8, !tbaa !18
%12 = getelementptr inbounds i8, ptr %1, i64 8
store <2 x i32> <i32 1, i32 1>, ptr %12, align 8, !tbaa !15
%13 = getelementptr inbounds i8, ptr %1, i64 40
store ptr %3, ptr %13, align 8, !tbaa !19
%14 = load i32, ptr @LUA_ENV, align 4, !tbaa !15
%15 = tail call i32 @luaS_new(ptr noundef %0, i32 noundef %14) #2
%16 = getelementptr inbounds i8, ptr %1, i64 32
store i32 %15, ptr %16, align 8, !tbaa !20
%17 = tail call i32 @luaS_fix(i32 noundef %15) #2
%18 = load ptr, ptr %6, align 8, !tbaa !13
%19 = getelementptr inbounds i8, ptr %1, i64 16
%20 = load i32, ptr %19, align 8, !tbaa !21
%21 = load i32, ptr @LUA_MINBUFFER, align 4, !tbaa !15
%22 = tail call i32 @luaZ_resizebuffer(ptr noundef %18, i32 noundef %20, i32 noundef %21) #2
ret void
}
declare i32 @luaS_new(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @luaS_fix(i32 noundef) local_unnamed_addr #1
declare i32 @luaZ_resizebuffer(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_5__", !8, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !10, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !12, i64 64}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"TYPE_4__", !10, i64 0}
!13 = !{!7, !11, i64 24}
!14 = !{!7, !10, i64 4}
!15 = !{!10, !10, i64 0}
!16 = !{!7, !10, i64 64}
!17 = !{!7, !11, i64 56}
!18 = !{!7, !11, i64 48}
!19 = !{!7, !11, i64 40}
!20 = !{!7, !10, i64 32}
!21 = !{!7, !10, i64 16}
| zfs_module_lua_extr_llex.c_luaX_setinput |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/pcmcia/extr_i82092.c_indirect_read.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/pcmcia/extr_i82092.c_indirect_read.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 { i16 }
@port_lock = dso_local global i32 0, align 4
@sockets = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @indirect_read], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal zeroext i8 @indirect_read(i32 noundef %0, i16 noundef zeroext %1) #0 {
%3 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @port_lock, i64 noundef undef) #2
%4 = trunc i32 %0 to i16
%5 = shl i16 %4, 6
%6 = add i16 %5, %1
%7 = load ptr, ptr @sockets, align 8, !tbaa !5
%8 = sext i32 %0 to i64
%9 = getelementptr inbounds %struct.TYPE_2__, ptr %7, i64 %8
%10 = load i16, ptr %9, align 2, !tbaa !9
%11 = tail call i32 @outb(i16 noundef zeroext %6, i16 noundef zeroext %10) #2
%12 = add i16 %10, 1
%13 = tail call zeroext i8 @inb(i16 noundef zeroext %12) #2
%14 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @port_lock, i64 noundef undef) #2
ret i8 %13
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @outb(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #1
declare zeroext i8 @inb(i16 noundef zeroext) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_2__", !11, i64 0}
!11 = !{!"short", !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/pcmcia/extr_i82092.c_indirect_read.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/pcmcia/extr_i82092.c_indirect_read.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 { i16 }
@port_lock = common global i32 0, align 4
@sockets = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @indirect_read], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal zeroext i8 @indirect_read(i32 noundef %0, i16 noundef zeroext %1) #0 {
%3 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @port_lock, i64 noundef undef) #2
%4 = trunc i32 %0 to i16
%5 = shl i16 %4, 6
%6 = add i16 %5, %1
%7 = load ptr, ptr @sockets, align 8, !tbaa !6
%8 = sext i32 %0 to i64
%9 = getelementptr inbounds %struct.TYPE_2__, ptr %7, i64 %8
%10 = load i16, ptr %9, align 2, !tbaa !10
%11 = tail call i32 @outb(i16 noundef zeroext %6, i16 noundef zeroext %10) #2
%12 = add i16 %10, 1
%13 = tail call zeroext i8 @inb(i16 noundef zeroext %12) #2
%14 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @port_lock, i64 noundef undef) #2
ret i8 %13
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @outb(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #1
declare zeroext i8 @inb(i16 noundef zeroext) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"short", !8, i64 0}
| fastsocket_kernel_drivers_pcmcia_extr_i82092.c_indirect_read |
; ModuleID = 'AnghaBench/redis/deps/jemalloc/test/integration/extr_extent.c_test_extent_body.c'
source_filename = "AnghaBench/redis/deps/jemalloc/test/integration/extr_extent.c_test_extent_body.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"
@MALLOCX_TCACHE_NONE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"arenas.lextent.0.size\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"Unexpected arenas.lextent.0.size failure\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"arenas.lextent.1.size\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"Unexpected arenas.lextent.1.size failure\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"arenas.lextent.2.size\00", align 1
@.str.5 = private unnamed_addr constant [41 x i8] c"Unexpected arenas.lextent.2.size failure\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"arena.0.purge\00", align 1
@.str.7 = private unnamed_addr constant [38 x i8] c"Unexpected mallctlnametomib() failure\00", align 1
@called_alloc = dso_local local_unnamed_addr global i32 0, align 4
@try_alloc = dso_local local_unnamed_addr global i32 0, align 4
@try_dalloc = dso_local local_unnamed_addr global i32 0, align 4
@try_decommit = dso_local local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [27 x i8] c"Unexpected mallocx() error\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"Expected alloc call\00", align 1
@called_dalloc = dso_local local_unnamed_addr global i32 0, align 4
@called_decommit = dso_local local_unnamed_addr global i32 0, align 4
@did_purge_lazy = dso_local local_unnamed_addr global i32 0, align 4
@did_purge_forced = dso_local local_unnamed_addr global i32 0, align 4
@called_split = dso_local local_unnamed_addr global i32 0, align 4
@.str.10 = private unnamed_addr constant [32 x i8] c"Unexpected arena.%u.purge error\00", align 1
@.str.11 = private unnamed_addr constant [21 x i8] c"Expected dalloc call\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"Expected decommit call\00", align 1
@.str.13 = private unnamed_addr constant [15 x i8] c"Expected purge\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"Expected split call\00", align 1
@did_decommit = dso_local local_unnamed_addr global i32 0, align 4
@did_commit = dso_local local_unnamed_addr global i32 0, align 4
@did_split = dso_local local_unnamed_addr global i32 0, align 4
@did_merge = dso_local local_unnamed_addr global i32 0, align 4
@.str.15 = private unnamed_addr constant [15 x i8] c"Expected split\00", align 1
@.str.16 = private unnamed_addr constant [31 x i8] c"Expected decommit/commit match\00", align 1
@.str.17 = private unnamed_addr constant [15 x i8] c"Expected merge\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @test_extent_body], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @test_extent_body(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca [3 x i64], align 16
%7 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%8 = tail call i32 @MALLOCX_ARENA(i32 noundef %0) #3
%9 = load i32, ptr @MALLOCX_TCACHE_NONE, align 4, !tbaa !5
%10 = or i32 %9, %8
store i64 8, ptr %5, align 8, !tbaa !9
%11 = call i32 @mallctl(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %5, ptr noundef null, i32 noundef 0) #3
%12 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %11, i32 noundef 0, ptr noundef nonnull @.str.1) #3
%13 = call i32 @mallctl(ptr noundef nonnull @.str.2, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef null, i32 noundef 0) #3
%14 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %13, i32 noundef 0, ptr noundef nonnull @.str.3) #3
%15 = call i32 @mallctl(ptr noundef nonnull @.str.4, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef null, i32 noundef 0) #3
%16 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %15, i32 noundef 0, ptr noundef nonnull @.str.5) #3
store i64 3, ptr %7, align 8, !tbaa !9
%17 = call i32 @mallctlnametomib(ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %7) #3
%18 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %17, i32 noundef 0, ptr noundef nonnull @.str.7) #3
%19 = zext i32 %0 to i64
%20 = getelementptr inbounds [3 x i64], ptr %6, i64 0, i64 1
store i64 %19, ptr %20, align 8, !tbaa !9
store i32 0, ptr @called_alloc, align 4, !tbaa !5
store i32 1, ptr @try_alloc, align 4, !tbaa !5
store i32 0, ptr @try_dalloc, align 4, !tbaa !5
store i32 0, ptr @try_decommit, align 4, !tbaa !5
%21 = load i64, ptr %2, align 8, !tbaa !9
%22 = trunc i64 %21 to i32
%23 = shl i32 %22, 1
%24 = call ptr @mallocx(i32 noundef %23, i32 noundef %10) #3
%25 = call i32 @assert_ptr_not_null(ptr noundef %24, ptr noundef nonnull @.str.8) #3
%26 = load i32, ptr @called_alloc, align 4, !tbaa !5
%27 = call i32 @assert_true(i32 noundef %26, ptr noundef nonnull @.str.9) #3
store i32 0, ptr @called_dalloc, align 4, !tbaa !5
store i32 0, ptr @called_decommit, align 4, !tbaa !5
store i32 0, ptr @did_purge_lazy, align 4, !tbaa !5
store i32 0, ptr @did_purge_forced, align 4, !tbaa !5
store i32 0, ptr @called_split, align 4, !tbaa !5
%28 = load i64, ptr %2, align 8, !tbaa !9
%29 = call i64 @xallocx(ptr noundef %24, i64 noundef %28, i32 noundef 0, i32 noundef %10) #3
%30 = load i64, ptr %2, align 8, !tbaa !9
%31 = icmp eq i64 %29, %30
%32 = load i64, ptr %7, align 8, !tbaa !9
%33 = call i32 @mallctlbymib(ptr noundef nonnull %6, i64 noundef %32, ptr noundef null, ptr noundef null, ptr noundef null, i32 noundef 0) #3
%34 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %33, i32 noundef 0, ptr noundef nonnull @.str.10, i32 noundef %0) #3
br i1 %31, label %35, label %47
35: ; preds = %1
%36 = load i32, ptr @called_dalloc, align 4, !tbaa !5
%37 = call i32 @assert_true(i32 noundef %36, ptr noundef nonnull @.str.11) #3
%38 = load i32, ptr @called_decommit, align 4, !tbaa !5
%39 = call i32 @assert_true(i32 noundef %38, ptr noundef nonnull @.str.12) #3
%40 = load i32, ptr @did_purge_lazy, align 4, !tbaa !5
%41 = icmp ne i32 %40, 0
%42 = load i32, ptr @did_purge_forced, align 4
%43 = icmp ne i32 %42, 0
%44 = select i1 %41, i1 true, i1 %43
%45 = zext i1 %44 to i32
%46 = call i32 @assert_true(i32 noundef %45, ptr noundef nonnull @.str.13) #3
br label %47
47: ; preds = %35, %1
%48 = load i32, ptr @called_split, align 4, !tbaa !5
%49 = call i32 @assert_true(i32 noundef %48, ptr noundef nonnull @.str.14) #3
%50 = call i32 @dallocx(ptr noundef %24, i32 noundef %10) #3
store i32 0, ptr @try_dalloc, align 4, !tbaa !5
store i32 1, ptr @try_decommit, align 4, !tbaa !5
%51 = load i64, ptr %2, align 8, !tbaa !9
%52 = trunc i64 %51 to i32
%53 = shl i32 %52, 1
%54 = call ptr @mallocx(i32 noundef %53, i32 noundef %10) #3
%55 = call i32 @assert_ptr_not_null(ptr noundef %54, ptr noundef nonnull @.str.8) #3
store i32 0, ptr @did_decommit, align 4, !tbaa !5
store i32 0, ptr @did_commit, align 4, !tbaa !5
store i32 0, ptr @called_split, align 4, !tbaa !5
store i32 0, ptr @did_split, align 4, !tbaa !5
store i32 0, ptr @did_merge, align 4, !tbaa !5
%56 = load i64, ptr %2, align 8, !tbaa !9
%57 = call i64 @xallocx(ptr noundef %54, i64 noundef %56, i32 noundef 0, i32 noundef %10) #3
%58 = load i64, ptr %2, align 8, !tbaa !9
%59 = icmp eq i64 %57, %58
%60 = load i64, ptr %7, align 8, !tbaa !9
%61 = call i32 @mallctlbymib(ptr noundef nonnull %6, i64 noundef %60, ptr noundef null, ptr noundef null, ptr noundef null, i32 noundef 0) #3
%62 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %61, i32 noundef 0, ptr noundef nonnull @.str.10, i32 noundef %0) #3
br i1 %59, label %63, label %66
63: ; preds = %47
%64 = load i32, ptr @did_split, align 4, !tbaa !5
%65 = call i32 @assert_true(i32 noundef %64, ptr noundef nonnull @.str.15) #3
br label %66
66: ; preds = %63, %47
%67 = load i64, ptr %2, align 8, !tbaa !9
%68 = shl i64 %67, 1
%69 = call i64 @xallocx(ptr noundef %54, i64 noundef %68, i32 noundef 0, i32 noundef %10) #3
%70 = load i64, ptr %2, align 8, !tbaa !9
%71 = shl i64 %70, 1
%72 = icmp eq i64 %69, %71
%73 = load i32, ptr @did_split, align 4, !tbaa !5
%74 = icmp eq i32 %73, 0
br i1 %74, label %79, label %75
75: ; preds = %66
%76 = load i32, ptr @did_decommit, align 4, !tbaa !5
%77 = load i32, ptr @did_commit, align 4, !tbaa !5
%78 = call i32 @assert_b_eq(i32 noundef %76, i32 noundef %77, ptr noundef nonnull @.str.16) #3
br label %79
79: ; preds = %75, %66
%80 = select i1 %59, i1 %72, i1 false
br i1 %80, label %81, label %84
81: ; preds = %79
%82 = load i32, ptr @did_merge, align 4, !tbaa !5
%83 = call i32 @assert_true(i32 noundef %82, ptr noundef nonnull @.str.17) #3
br label %84
84: ; preds = %81, %79
%85 = call i32 @dallocx(ptr noundef %54, i32 noundef %10) #3
store i32 1, ptr @try_dalloc, align 4, !tbaa !5
store i32 0, ptr @try_decommit, align 4, !tbaa !5
%86 = call ptr @mallocx(i32 noundef 42, i32 noundef %10) #3
%87 = call i32 @assert_ptr_not_null(ptr noundef %86, ptr noundef nonnull @.str.8) #3
%88 = call i32 @dallocx(ptr noundef %86, i32 noundef %10) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 8, 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 @MALLOCX_ARENA(i32 noundef) local_unnamed_addr #2
declare i32 @assert_d_eq(i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @mallctl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mallctlnametomib(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @mallocx(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @assert_ptr_not_null(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @assert_true(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @xallocx(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mallctlbymib(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @dallocx(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @assert_b_eq(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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/redis/deps/jemalloc/test/integration/extr_extent.c_test_extent_body.c'
source_filename = "AnghaBench/redis/deps/jemalloc/test/integration/extr_extent.c_test_extent_body.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MALLOCX_TCACHE_NONE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"arenas.lextent.0.size\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"Unexpected arenas.lextent.0.size failure\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"arenas.lextent.1.size\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"Unexpected arenas.lextent.1.size failure\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"arenas.lextent.2.size\00", align 1
@.str.5 = private unnamed_addr constant [41 x i8] c"Unexpected arenas.lextent.2.size failure\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"arena.0.purge\00", align 1
@.str.7 = private unnamed_addr constant [38 x i8] c"Unexpected mallctlnametomib() failure\00", align 1
@called_alloc = common local_unnamed_addr global i32 0, align 4
@try_alloc = common local_unnamed_addr global i32 0, align 4
@try_dalloc = common local_unnamed_addr global i32 0, align 4
@try_decommit = common local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [27 x i8] c"Unexpected mallocx() error\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"Expected alloc call\00", align 1
@called_dalloc = common local_unnamed_addr global i32 0, align 4
@called_decommit = common local_unnamed_addr global i32 0, align 4
@did_purge_lazy = common local_unnamed_addr global i32 0, align 4
@did_purge_forced = common local_unnamed_addr global i32 0, align 4
@called_split = common local_unnamed_addr global i32 0, align 4
@.str.10 = private unnamed_addr constant [32 x i8] c"Unexpected arena.%u.purge error\00", align 1
@.str.11 = private unnamed_addr constant [21 x i8] c"Expected dalloc call\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"Expected decommit call\00", align 1
@.str.13 = private unnamed_addr constant [15 x i8] c"Expected purge\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"Expected split call\00", align 1
@did_decommit = common local_unnamed_addr global i32 0, align 4
@did_commit = common local_unnamed_addr global i32 0, align 4
@did_split = common local_unnamed_addr global i32 0, align 4
@did_merge = common local_unnamed_addr global i32 0, align 4
@.str.15 = private unnamed_addr constant [15 x i8] c"Expected split\00", align 1
@.str.16 = private unnamed_addr constant [31 x i8] c"Expected decommit/commit match\00", align 1
@.str.17 = private unnamed_addr constant [15 x i8] c"Expected merge\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @test_extent_body], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @test_extent_body(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca [3 x i64], align 8
%7 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%8 = tail call i32 @MALLOCX_ARENA(i32 noundef %0) #3
%9 = load i32, ptr @MALLOCX_TCACHE_NONE, align 4, !tbaa !6
%10 = or i32 %9, %8
store i64 8, ptr %5, align 8, !tbaa !10
%11 = call i32 @mallctl(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %5, ptr noundef null, i32 noundef 0) #3
%12 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %11, i32 noundef 0, ptr noundef nonnull @.str.1) #3
%13 = call i32 @mallctl(ptr noundef nonnull @.str.2, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef null, i32 noundef 0) #3
%14 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %13, i32 noundef 0, ptr noundef nonnull @.str.3) #3
%15 = call i32 @mallctl(ptr noundef nonnull @.str.4, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef null, i32 noundef 0) #3
%16 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %15, i32 noundef 0, ptr noundef nonnull @.str.5) #3
store i64 3, ptr %7, align 8, !tbaa !10
%17 = call i32 @mallctlnametomib(ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %7) #3
%18 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %17, i32 noundef 0, ptr noundef nonnull @.str.7) #3
%19 = zext i32 %0 to i64
%20 = getelementptr inbounds i8, ptr %6, i64 8
store i64 %19, ptr %20, align 8, !tbaa !10
store i32 0, ptr @called_alloc, align 4, !tbaa !6
store i32 1, ptr @try_alloc, align 4, !tbaa !6
store i32 0, ptr @try_dalloc, align 4, !tbaa !6
store i32 0, ptr @try_decommit, align 4, !tbaa !6
%21 = load i64, ptr %2, align 8, !tbaa !10
%22 = trunc i64 %21 to i32
%23 = shl i32 %22, 1
%24 = call ptr @mallocx(i32 noundef %23, i32 noundef %10) #3
%25 = call i32 @assert_ptr_not_null(ptr noundef %24, ptr noundef nonnull @.str.8) #3
%26 = load i32, ptr @called_alloc, align 4, !tbaa !6
%27 = call i32 @assert_true(i32 noundef %26, ptr noundef nonnull @.str.9) #3
store i32 0, ptr @called_dalloc, align 4, !tbaa !6
store i32 0, ptr @called_decommit, align 4, !tbaa !6
store i32 0, ptr @did_purge_lazy, align 4, !tbaa !6
store i32 0, ptr @did_purge_forced, align 4, !tbaa !6
store i32 0, ptr @called_split, align 4, !tbaa !6
%28 = load i64, ptr %2, align 8, !tbaa !10
%29 = call i64 @xallocx(ptr noundef %24, i64 noundef %28, i32 noundef 0, i32 noundef %10) #3
%30 = load i64, ptr %2, align 8, !tbaa !10
%31 = icmp eq i64 %29, %30
%32 = load i64, ptr %7, align 8, !tbaa !10
%33 = call i32 @mallctlbymib(ptr noundef nonnull %6, i64 noundef %32, ptr noundef null, ptr noundef null, ptr noundef null, i32 noundef 0) #3
%34 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %33, i32 noundef 0, ptr noundef nonnull @.str.10, i32 noundef %0) #3
br i1 %31, label %35, label %47
35: ; preds = %1
%36 = load i32, ptr @called_dalloc, align 4, !tbaa !6
%37 = call i32 @assert_true(i32 noundef %36, ptr noundef nonnull @.str.11) #3
%38 = load i32, ptr @called_decommit, align 4, !tbaa !6
%39 = call i32 @assert_true(i32 noundef %38, ptr noundef nonnull @.str.12) #3
%40 = load i32, ptr @did_purge_lazy, align 4, !tbaa !6
%41 = icmp ne i32 %40, 0
%42 = load i32, ptr @did_purge_forced, align 4
%43 = icmp ne i32 %42, 0
%44 = select i1 %41, i1 true, i1 %43
%45 = zext i1 %44 to i32
%46 = call i32 @assert_true(i32 noundef %45, ptr noundef nonnull @.str.13) #3
br label %47
47: ; preds = %35, %1
%48 = load i32, ptr @called_split, align 4, !tbaa !6
%49 = call i32 @assert_true(i32 noundef %48, ptr noundef nonnull @.str.14) #3
%50 = call i32 @dallocx(ptr noundef %24, i32 noundef %10) #3
store i32 0, ptr @try_dalloc, align 4, !tbaa !6
store i32 1, ptr @try_decommit, align 4, !tbaa !6
%51 = load i64, ptr %2, align 8, !tbaa !10
%52 = trunc i64 %51 to i32
%53 = shl i32 %52, 1
%54 = call ptr @mallocx(i32 noundef %53, i32 noundef %10) #3
%55 = call i32 @assert_ptr_not_null(ptr noundef %54, ptr noundef nonnull @.str.8) #3
store i32 0, ptr @did_decommit, align 4, !tbaa !6
store i32 0, ptr @did_commit, align 4, !tbaa !6
store i32 0, ptr @called_split, align 4, !tbaa !6
store i32 0, ptr @did_split, align 4, !tbaa !6
store i32 0, ptr @did_merge, align 4, !tbaa !6
%56 = load i64, ptr %2, align 8, !tbaa !10
%57 = call i64 @xallocx(ptr noundef %54, i64 noundef %56, i32 noundef 0, i32 noundef %10) #3
%58 = load i64, ptr %2, align 8, !tbaa !10
%59 = icmp eq i64 %57, %58
%60 = load i64, ptr %7, align 8, !tbaa !10
%61 = call i32 @mallctlbymib(ptr noundef nonnull %6, i64 noundef %60, ptr noundef null, ptr noundef null, ptr noundef null, i32 noundef 0) #3
%62 = call i32 (i32, i32, ptr, ...) @assert_d_eq(i32 noundef %61, i32 noundef 0, ptr noundef nonnull @.str.10, i32 noundef %0) #3
br i1 %59, label %63, label %66
63: ; preds = %47
%64 = load i32, ptr @did_split, align 4, !tbaa !6
%65 = call i32 @assert_true(i32 noundef %64, ptr noundef nonnull @.str.15) #3
br label %66
66: ; preds = %63, %47
%67 = load i64, ptr %2, align 8, !tbaa !10
%68 = shl i64 %67, 1
%69 = call i64 @xallocx(ptr noundef %54, i64 noundef %68, i32 noundef 0, i32 noundef %10) #3
%70 = load i64, ptr %2, align 8, !tbaa !10
%71 = shl i64 %70, 1
%72 = icmp eq i64 %69, %71
%73 = load i32, ptr @did_split, align 4, !tbaa !6
%74 = icmp eq i32 %73, 0
br i1 %74, label %79, label %75
75: ; preds = %66
%76 = load i32, ptr @did_decommit, align 4, !tbaa !6
%77 = load i32, ptr @did_commit, align 4, !tbaa !6
%78 = call i32 @assert_b_eq(i32 noundef %76, i32 noundef %77, ptr noundef nonnull @.str.16) #3
br label %79
79: ; preds = %75, %66
%80 = select i1 %59, i1 %72, i1 false
br i1 %80, label %81, label %84
81: ; preds = %79
%82 = load i32, ptr @did_merge, align 4, !tbaa !6
%83 = call i32 @assert_true(i32 noundef %82, ptr noundef nonnull @.str.17) #3
br label %84
84: ; preds = %81, %79
%85 = call i32 @dallocx(ptr noundef %54, i32 noundef %10) #3
store i32 1, ptr @try_dalloc, align 4, !tbaa !6
store i32 0, ptr @try_decommit, align 4, !tbaa !6
%86 = call ptr @mallocx(i32 noundef 42, i32 noundef %10) #3
%87 = call i32 @assert_ptr_not_null(ptr noundef %86, ptr noundef nonnull @.str.8) #3
%88 = call i32 @dallocx(ptr noundef %86, i32 noundef %10) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 8, 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 @MALLOCX_ARENA(i32 noundef) local_unnamed_addr #2
declare i32 @assert_d_eq(i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @mallctl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mallctlnametomib(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @mallocx(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @assert_ptr_not_null(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @assert_true(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @xallocx(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mallctlbymib(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @dallocx(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @assert_b_eq(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"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
| redis_deps_jemalloc_test_integration_extr_extent.c_test_extent_body |
; ModuleID = 'AnghaBench/exploitdb/exploits/windows/local/extr_14764.c_evil.c'
source_filename = "AnghaBench/exploitdb/exploits/windows/local/extr_14764.c_evil.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"calc\00", align 1
; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @evil() local_unnamed_addr #0 {
%1 = tail call i32 @WinExec(ptr noundef nonnull @.str, i32 noundef 0) #3
%2 = tail call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i32 @WinExec(ptr noundef, i32 noundef) 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)"}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/windows/local/extr_14764.c_evil.c'
source_filename = "AnghaBench/exploitdb/exploits/windows/local/extr_14764.c_evil.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [5 x i8] c"calc\00", align 1
; Function Attrs: noreturn nounwind ssp uwtable(sync)
define noundef i32 @evil() local_unnamed_addr #0 {
%1 = tail call i32 @WinExec(ptr noundef nonnull @.str, i32 noundef 0) #3
%2 = tail call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i32 @WinExec(ptr noundef, i32 noundef) 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)"}
| exploitdb_exploits_windows_local_extr_14764.c_evil |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/power/extr_pcf50633-charger.c_show_usblim.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/power/extr_pcf50633-charger.c_show_usblim.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"
@PCF50633_REG_MBCC7 = dso_local local_unnamed_addr global i32 0, align 4
@PCF50633_MBCC7_USB_MASK = dso_local local_unnamed_addr global i64 0, align 8
@PCF50633_MBCC7_USB_1000mA = dso_local local_unnamed_addr global i64 0, align 8
@PCF50633_MBCC7_USB_500mA = dso_local local_unnamed_addr global i64 0, align 8
@PCF50633_MBCC7_USB_100mA = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @show_usblim], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @show_usblim(ptr noundef %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @dev_get_drvdata(ptr noundef %0) #2
%5 = load i32, ptr %4, align 4, !tbaa !5
%6 = load i32, ptr @PCF50633_REG_MBCC7, align 4, !tbaa !10
%7 = tail call i64 @pcf50633_reg_read(i32 noundef %5, i32 noundef %6) #2
%8 = load i64, ptr @PCF50633_MBCC7_USB_MASK, align 8, !tbaa !11
%9 = and i64 %8, %7
%10 = load i64, ptr @PCF50633_MBCC7_USB_1000mA, align 8, !tbaa !11
%11 = icmp eq i64 %9, %10
br i1 %11, label %19, label %12
12: ; preds = %3
%13 = load i64, ptr @PCF50633_MBCC7_USB_500mA, align 8, !tbaa !11
%14 = icmp eq i64 %9, %13
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = load i64, ptr @PCF50633_MBCC7_USB_100mA, align 8, !tbaa !11
%17 = icmp eq i64 %9, %16
%18 = select i1 %17, i32 100, i32 0
br label %19
19: ; preds = %15, %12, %3
%20 = phi i32 [ 1000, %3 ], [ 500, %12 ], [ %18, %15 ]
%21 = tail call i32 @sprintf(ptr noundef %2, ptr noundef nonnull @.str, i32 noundef %20) #2
ret i32 %21
}
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i64 @pcf50633_reg_read(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sprintf(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, !7, i64 0}
!6 = !{!"pcf50633_mbc", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/power/extr_pcf50633-charger.c_show_usblim.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/power/extr_pcf50633-charger.c_show_usblim.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCF50633_REG_MBCC7 = common local_unnamed_addr global i32 0, align 4
@PCF50633_MBCC7_USB_MASK = common local_unnamed_addr global i64 0, align 8
@PCF50633_MBCC7_USB_1000mA = common local_unnamed_addr global i64 0, align 8
@PCF50633_MBCC7_USB_500mA = common local_unnamed_addr global i64 0, align 8
@PCF50633_MBCC7_USB_100mA = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @show_usblim], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @show_usblim(ptr noundef %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @dev_get_drvdata(ptr noundef %0) #2
%5 = load i32, ptr %4, align 4, !tbaa !6
%6 = load i32, ptr @PCF50633_REG_MBCC7, align 4, !tbaa !11
%7 = tail call i64 @pcf50633_reg_read(i32 noundef %5, i32 noundef %6) #2
%8 = load i64, ptr @PCF50633_MBCC7_USB_MASK, align 8, !tbaa !12
%9 = and i64 %8, %7
%10 = load i64, ptr @PCF50633_MBCC7_USB_1000mA, align 8, !tbaa !12
%11 = icmp eq i64 %9, %10
br i1 %11, label %19, label %12
12: ; preds = %3
%13 = load i64, ptr @PCF50633_MBCC7_USB_500mA, align 8, !tbaa !12
%14 = icmp eq i64 %9, %13
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = load i64, ptr @PCF50633_MBCC7_USB_100mA, align 8, !tbaa !12
%17 = icmp eq i64 %9, %16
%18 = select i1 %17, i32 100, i32 0
br label %19
19: ; preds = %15, %12, %3
%20 = phi i32 [ 1000, %3 ], [ 500, %12 ], [ %18, %15 ]
%21 = tail call i32 @sprintf(ptr noundef %2, ptr noundef nonnull @.str, i32 noundef %20) #2
ret i32 %21
}
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i64 @pcf50633_reg_read(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sprintf(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, !8, i64 0}
!7 = !{!"pcf50633_mbc", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !9, i64 0}
| fastsocket_kernel_drivers_power_extr_pcf50633-charger.c_show_usblim |
; ModuleID = 'AnghaBench/linux/fs/f2fs/extr_inline.c_f2fs_add_inline_entry.c'
source_filename = "AnghaBench/linux/fs/f2fs/extr_inline.c_f2fs_add_inline_entry.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.f2fs_dentry_ptr = type { i32, i32 }
@EAGAIN = dso_local local_unnamed_addr global i32 0, align 4
@NODE = dso_local local_unnamed_addr global i32 0, align 4
@FI_NEW_INODE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @f2fs_add_inline_entry(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
%7 = alloca %struct.f2fs_dentry_ptr, align 4
%8 = tail call ptr @F2FS_I_SB(ptr noundef %0) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = tail call i32 @GET_DENTRY_SLOTS(i32 noundef %9) #3
%11 = load i32, ptr %0, align 4, !tbaa !10
%12 = tail call ptr @f2fs_get_node_page(ptr noundef %8, i32 noundef %11) #3
%13 = tail call i64 @IS_ERR(ptr noundef %12) #3
%14 = icmp eq i64 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %6
%16 = tail call i32 @PTR_ERR(ptr noundef %12) #3
br label %69
17: ; preds = %6
%18 = tail call ptr @inline_data_addr(ptr noundef nonnull %0, ptr noundef %12) #3
%19 = call i32 @make_dentry_ptr_inline(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef %18) #3
%20 = getelementptr inbounds %struct.f2fs_dentry_ptr, ptr %7, i64 0, i32 1
%21 = load i32, ptr %20, align 4, !tbaa !12
%22 = load i32, ptr %7, align 4, !tbaa !14
%23 = call i32 @f2fs_room_for_filename(i32 noundef %21, i32 noundef %10, i32 noundef %22) #3
%24 = load i32, ptr %7, align 4, !tbaa !14
%25 = icmp ult i32 %23, %24
br i1 %25, label %32, label %26
26: ; preds = %17
%27 = call i32 @f2fs_convert_inline_dir(ptr noundef nonnull %0, ptr noundef %12, ptr noundef %18) #3
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %69
29: ; preds = %26
%30 = load i32, ptr @EAGAIN, align 4, !tbaa !15
%31 = sub nsw i32 0, %30
br label %66
32: ; preds = %17
%33 = icmp eq ptr %3, null
br i1 %33, label %42, label %34
34: ; preds = %32
%35 = call ptr @F2FS_I(ptr noundef nonnull %3) #3
%36 = call i32 @down_write(ptr noundef %35) #3
%37 = call ptr @f2fs_init_inode_metadata(ptr noundef nonnull %3, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %12) #3
%38 = call i64 @IS_ERR(ptr noundef %37) #3
%39 = icmp eq i64 %38, 0
br i1 %39, label %42, label %40
40: ; preds = %34
%41 = call i32 @PTR_ERR(ptr noundef %37) #3
br label %62
42: ; preds = %34, %32
%43 = phi ptr [ %37, %34 ], [ null, %32 ]
%44 = load i32, ptr @NODE, align 4, !tbaa !15
%45 = call i32 @f2fs_wait_on_page_writeback(ptr noundef %12, i32 noundef %44, i32 noundef 1, i32 noundef 1) #3
%46 = call i32 @f2fs_dentry_hash(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef null) #3
%47 = call i32 @f2fs_update_dentry(i32 noundef %4, i32 noundef %5, ptr noundef nonnull %7, ptr noundef nonnull %1, i32 noundef %46, i32 noundef %23) #3
%48 = call i32 @set_page_dirty(ptr noundef %12) #3
br i1 %33, label %49, label %51
49: ; preds = %42
%50 = call i32 @f2fs_update_parent_metadata(ptr noundef nonnull %0, ptr noundef null, i32 noundef 0) #3
br label %66
51: ; preds = %42
%52 = load i32, ptr %0, align 4, !tbaa !10
%53 = call i32 @f2fs_i_pino_write(ptr noundef nonnull %3, i32 noundef %52) #3
%54 = load i32, ptr @FI_NEW_INODE, align 4, !tbaa !15
%55 = call i64 @is_inode_flag_set(ptr noundef nonnull %3, i32 noundef %54) #3
%56 = icmp eq i64 %55, 0
br i1 %56, label %59, label %57
57: ; preds = %51
%58 = call i32 @f2fs_update_inode(ptr noundef nonnull %3, ptr noundef %43) #3
br label %59
59: ; preds = %51, %57
%60 = call i32 @f2fs_put_page(ptr noundef %43, i32 noundef 1) #3
%61 = call i32 @f2fs_update_parent_metadata(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 0) #3
br label %62
62: ; preds = %59, %40
%63 = phi i32 [ %41, %40 ], [ 0, %59 ]
%64 = call ptr @F2FS_I(ptr noundef nonnull %3) #3
%65 = call i32 @up_write(ptr noundef %64) #3
br label %66
66: ; preds = %49, %62, %29
%67 = phi i32 [ %31, %29 ], [ %63, %62 ], [ 0, %49 ]
%68 = call i32 @f2fs_put_page(ptr noundef %12, i32 noundef 1) #3
br label %69
69: ; preds = %26, %66, %15
%70 = phi i32 [ %16, %15 ], [ %67, %66 ], [ %27, %26 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
ret i32 %70
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @F2FS_I_SB(ptr noundef) local_unnamed_addr #2
declare i32 @GET_DENTRY_SLOTS(i32 noundef) local_unnamed_addr #2
declare ptr @f2fs_get_node_page(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #2
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #2
declare ptr @inline_data_addr(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @make_dentry_ptr_inline(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_room_for_filename(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @f2fs_convert_inline_dir(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @down_write(ptr noundef) local_unnamed_addr #2
declare ptr @F2FS_I(ptr noundef) local_unnamed_addr #2
declare ptr @f2fs_init_inode_metadata(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_wait_on_page_writeback(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @f2fs_dentry_hash(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_update_dentry(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @set_page_dirty(ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_i_pino_write(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @is_inode_flag_set(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @f2fs_update_inode(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_put_page(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @f2fs_update_parent_metadata(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @up_write(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 = !{!"qstr", !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 = !{!"inode", !7, i64 0}
!12 = !{!13, !7, i64 4}
!13 = !{!"f2fs_dentry_ptr", !7, i64 0, !7, i64 4}
!14 = !{!13, !7, i64 0}
!15 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/f2fs/extr_inline.c_f2fs_add_inline_entry.c'
source_filename = "AnghaBench/linux/fs/f2fs/extr_inline.c_f2fs_add_inline_entry.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.f2fs_dentry_ptr = type { i32, i32 }
@EAGAIN = common local_unnamed_addr global i32 0, align 4
@NODE = common local_unnamed_addr global i32 0, align 4
@FI_NEW_INODE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @f2fs_add_inline_entry(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
%7 = alloca %struct.f2fs_dentry_ptr, align 4
%8 = tail call ptr @F2FS_I_SB(ptr noundef %0) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%9 = load i32, ptr %1, align 4, !tbaa !6
%10 = tail call i32 @GET_DENTRY_SLOTS(i32 noundef %9) #3
%11 = load i32, ptr %0, align 4, !tbaa !11
%12 = tail call ptr @f2fs_get_node_page(ptr noundef %8, i32 noundef %11) #3
%13 = tail call i64 @IS_ERR(ptr noundef %12) #3
%14 = icmp eq i64 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %6
%16 = tail call i32 @PTR_ERR(ptr noundef %12) #3
br label %69
17: ; preds = %6
%18 = tail call ptr @inline_data_addr(ptr noundef nonnull %0, ptr noundef %12) #3
%19 = call i32 @make_dentry_ptr_inline(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef %18) #3
%20 = getelementptr inbounds i8, ptr %7, i64 4
%21 = load i32, ptr %20, align 4, !tbaa !13
%22 = load i32, ptr %7, align 4, !tbaa !15
%23 = call i32 @f2fs_room_for_filename(i32 noundef %21, i32 noundef %10, i32 noundef %22) #3
%24 = load i32, ptr %7, align 4, !tbaa !15
%25 = icmp ult i32 %23, %24
br i1 %25, label %32, label %26
26: ; preds = %17
%27 = call i32 @f2fs_convert_inline_dir(ptr noundef nonnull %0, ptr noundef %12, ptr noundef %18) #3
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %69
29: ; preds = %26
%30 = load i32, ptr @EAGAIN, align 4, !tbaa !16
%31 = sub nsw i32 0, %30
br label %66
32: ; preds = %17
%33 = icmp eq ptr %3, null
br i1 %33, label %42, label %34
34: ; preds = %32
%35 = call ptr @F2FS_I(ptr noundef nonnull %3) #3
%36 = call i32 @down_write(ptr noundef %35) #3
%37 = call ptr @f2fs_init_inode_metadata(ptr noundef nonnull %3, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %12) #3
%38 = call i64 @IS_ERR(ptr noundef %37) #3
%39 = icmp eq i64 %38, 0
br i1 %39, label %42, label %40
40: ; preds = %34
%41 = call i32 @PTR_ERR(ptr noundef %37) #3
br label %62
42: ; preds = %34, %32
%43 = phi ptr [ %37, %34 ], [ null, %32 ]
%44 = load i32, ptr @NODE, align 4, !tbaa !16
%45 = call i32 @f2fs_wait_on_page_writeback(ptr noundef %12, i32 noundef %44, i32 noundef 1, i32 noundef 1) #3
%46 = call i32 @f2fs_dentry_hash(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef null) #3
%47 = call i32 @f2fs_update_dentry(i32 noundef %4, i32 noundef %5, ptr noundef nonnull %7, ptr noundef nonnull %1, i32 noundef %46, i32 noundef %23) #3
%48 = call i32 @set_page_dirty(ptr noundef %12) #3
br i1 %33, label %49, label %51
49: ; preds = %42
%50 = call i32 @f2fs_update_parent_metadata(ptr noundef nonnull %0, ptr noundef null, i32 noundef 0) #3
br label %66
51: ; preds = %42
%52 = load i32, ptr %0, align 4, !tbaa !11
%53 = call i32 @f2fs_i_pino_write(ptr noundef nonnull %3, i32 noundef %52) #3
%54 = load i32, ptr @FI_NEW_INODE, align 4, !tbaa !16
%55 = call i64 @is_inode_flag_set(ptr noundef nonnull %3, i32 noundef %54) #3
%56 = icmp eq i64 %55, 0
br i1 %56, label %59, label %57
57: ; preds = %51
%58 = call i32 @f2fs_update_inode(ptr noundef nonnull %3, ptr noundef %43) #3
br label %59
59: ; preds = %51, %57
%60 = call i32 @f2fs_put_page(ptr noundef %43, i32 noundef 1) #3
%61 = call i32 @f2fs_update_parent_metadata(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 0) #3
br label %62
62: ; preds = %59, %40
%63 = phi i32 [ %41, %40 ], [ 0, %59 ]
%64 = call ptr @F2FS_I(ptr noundef nonnull %3) #3
%65 = call i32 @up_write(ptr noundef %64) #3
br label %66
66: ; preds = %49, %62, %29
%67 = phi i32 [ %31, %29 ], [ %63, %62 ], [ 0, %49 ]
%68 = call i32 @f2fs_put_page(ptr noundef %12, i32 noundef 1) #3
br label %69
69: ; preds = %26, %66, %15
%70 = phi i32 [ %16, %15 ], [ %67, %66 ], [ %27, %26 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
ret i32 %70
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @F2FS_I_SB(ptr noundef) local_unnamed_addr #2
declare i32 @GET_DENTRY_SLOTS(i32 noundef) local_unnamed_addr #2
declare ptr @f2fs_get_node_page(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #2
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #2
declare ptr @inline_data_addr(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @make_dentry_ptr_inline(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_room_for_filename(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @f2fs_convert_inline_dir(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @down_write(ptr noundef) local_unnamed_addr #2
declare ptr @F2FS_I(ptr noundef) local_unnamed_addr #2
declare ptr @f2fs_init_inode_metadata(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_wait_on_page_writeback(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @f2fs_dentry_hash(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_update_dentry(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @set_page_dirty(ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_i_pino_write(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @is_inode_flag_set(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @f2fs_update_inode(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @f2fs_put_page(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @f2fs_update_parent_metadata(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @up_write(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 = !{!"qstr", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"inode", !8, i64 0}
!13 = !{!14, !8, i64 4}
!14 = !{!"f2fs_dentry_ptr", !8, i64 0, !8, i64 4}
!15 = !{!14, !8, i64 0}
!16 = !{!8, !8, i64 0}
| linux_fs_f2fs_extr_inline.c_f2fs_add_inline_entry |
; ModuleID = 'AnghaBench/zfs/module/nvpair/extr_nvpair.c_nvlist_add_int16.c'
source_filename = "AnghaBench/zfs/module/nvpair/extr_nvpair.c_nvlist_add_int16.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"
@DATA_TYPE_INT16 = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @nvlist_add_int16(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = alloca i32, align 4
store i32 %2, ptr %4, align 4, !tbaa !5
%5 = load i32, ptr @DATA_TYPE_INT16, align 4, !tbaa !5
%6 = call i32 @nvlist_add_common(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef 1, ptr noundef nonnull %4) #2
ret i32 %6
}
declare i32 @nvlist_add_common(ptr noundef, ptr noundef, 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/zfs/module/nvpair/extr_nvpair.c_nvlist_add_int16.c'
source_filename = "AnghaBench/zfs/module/nvpair/extr_nvpair.c_nvlist_add_int16.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DATA_TYPE_INT16 = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @nvlist_add_int16(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = alloca i32, align 4
store i32 %2, ptr %4, align 4, !tbaa !6
%5 = load i32, ptr @DATA_TYPE_INT16, align 4, !tbaa !6
%6 = call i32 @nvlist_add_common(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef 1, ptr noundef nonnull %4) #2
ret i32 %6
}
declare i32 @nvlist_add_common(ptr noundef, ptr noundef, 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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| zfs_module_nvpair_extr_nvpair.c_nvlist_add_int16 |
; ModuleID = 'AnghaBench/redis/deps/hiredis/extr_sds.c_sdsll2str.c'
source_filename = "AnghaBench/redis/deps/hiredis/extr_sds.c_sdsll2str.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local noundef i32 @sdsll2str(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = tail call i64 @llvm.abs.i64(i64 %1, i1 true)
br label %4
4: ; preds = %4, %2
%5 = phi ptr [ %0, %2 ], [ %10, %4 ]
%6 = phi i64 [ %3, %2 ], [ %11, %4 ]
%7 = urem i64 %6, 10
%8 = trunc i64 %7 to i8
%9 = or disjoint i8 %8, 48
%10 = getelementptr inbounds i8, ptr %5, i64 1
store i8 %9, ptr %5, align 1, !tbaa !5
%11 = udiv i64 %6, 10
%12 = icmp ult i64 %6, 10
br i1 %12, label %13, label %4, !llvm.loop !8
13: ; preds = %4
%14 = icmp slt i64 %1, 0
br i1 %14, label %15, label %17
15: ; preds = %13
%16 = getelementptr inbounds i8, ptr %5, i64 2
store i8 45, ptr %10, align 1, !tbaa !5
br label %17
17: ; preds = %15, %13
%18 = phi ptr [ %16, %15 ], [ %10, %13 ]
store i8 0, ptr %18, align 1, !tbaa !5
%19 = getelementptr inbounds i8, ptr %18, i64 -1
%20 = icmp ugt ptr %19, %0
br i1 %20, label %21, label %29
21: ; preds = %17, %21
%22 = phi ptr [ %27, %21 ], [ %19, %17 ]
%23 = phi ptr [ %26, %21 ], [ %0, %17 ]
%24 = load i8, ptr %23, align 1, !tbaa !5
%25 = load i8, ptr %22, align 1, !tbaa !5
store i8 %25, ptr %23, align 1, !tbaa !5
store i8 %24, ptr %22, align 1, !tbaa !5
%26 = getelementptr inbounds i8, ptr %23, i64 1
%27 = getelementptr inbounds i8, ptr %22, i64 -1
%28 = icmp ult ptr %26, %27
br i1 %28, label %21, label %29, !llvm.loop !10
29: ; preds = %21, %17
%30 = ptrtoint ptr %18 to i64
%31 = ptrtoint ptr %0 to i64
%32 = sub i64 %30, %31
%33 = trunc i64 %32 to i32
ret i32 %33
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.abs.i64(i64, i1 immarg) #1
attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
| ; ModuleID = 'AnghaBench/redis/deps/hiredis/extr_sds.c_sdsll2str.c'
source_filename = "AnghaBench/redis/deps/hiredis/extr_sds.c_sdsll2str.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync)
define noundef i32 @sdsll2str(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = tail call i64 @llvm.abs.i64(i64 %1, i1 true)
br label %4
4: ; preds = %4, %2
%5 = phi ptr [ %0, %2 ], [ %13, %4 ]
%6 = phi i64 [ %3, %2 ], [ %8, %4 ]
%7 = freeze i64 %6
%8 = udiv i64 %7, 10
%9 = mul i64 %8, 10
%10 = sub i64 %7, %9
%11 = trunc nuw nsw i64 %10 to i8
%12 = or disjoint i8 %11, 48
%13 = getelementptr inbounds i8, ptr %5, i64 1
store i8 %12, ptr %5, align 1, !tbaa !6
%14 = icmp ult i64 %6, 10
br i1 %14, label %15, label %4, !llvm.loop !9
15: ; preds = %4
%16 = icmp slt i64 %1, 0
br i1 %16, label %17, label %19
17: ; preds = %15
%18 = getelementptr inbounds i8, ptr %5, i64 2
store i8 45, ptr %13, align 1, !tbaa !6
br label %19
19: ; preds = %17, %15
%20 = phi ptr [ %18, %17 ], [ %13, %15 ]
store i8 0, ptr %20, align 1, !tbaa !6
%21 = getelementptr inbounds i8, ptr %20, i64 -1
%22 = icmp ugt ptr %21, %0
br i1 %22, label %23, label %31
23: ; preds = %19, %23
%24 = phi ptr [ %29, %23 ], [ %21, %19 ]
%25 = phi ptr [ %28, %23 ], [ %0, %19 ]
%26 = load i8, ptr %25, align 1, !tbaa !6
%27 = load i8, ptr %24, align 1, !tbaa !6
store i8 %27, ptr %25, align 1, !tbaa !6
store i8 %26, ptr %24, align 1, !tbaa !6
%28 = getelementptr inbounds i8, ptr %25, i64 1
%29 = getelementptr inbounds i8, ptr %24, i64 -1
%30 = icmp ult ptr %28, %29
br i1 %30, label %23, label %31, !llvm.loop !11
31: ; preds = %23, %19
%32 = ptrtoint ptr %20 to i64
%33 = ptrtoint ptr %0 to i64
%34 = sub i64 %32, %33
%35 = trunc i64 %34 to i32
ret i32 %35
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.abs.i64(i64, i1 immarg) #1
attributes #0 = { nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| redis_deps_hiredis_extr_sds.c_sdsll2str |
; ModuleID = 'AnghaBench/nodemcu-firmware/app/lua/extr_ldo.c_luaD_protectedparser.c'
source_filename = "AnghaBench/nodemcu-firmware/app/lua/extr_ldo.c_luaD_protectedparser.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.SParser = type { ptr, i32, ptr }
%struct.TYPE_7__ = type { i32, i32 }
@f_parser = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @luaD_protectedparser(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca %struct.SParser, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
%5 = getelementptr inbounds %struct.SParser, ptr %4, i64 0, i32 2
store ptr %1, ptr %5, align 8, !tbaa !5
store ptr %2, ptr %4, align 8, !tbaa !11
%6 = getelementptr inbounds %struct.SParser, ptr %4, i64 0, i32 1
%7 = call i32 @luaZ_initbuffer(ptr noundef %0, ptr noundef nonnull %6) #3
%8 = load i32, ptr @f_parser, align 4, !tbaa !12
%9 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 1
%10 = load i32, ptr %9, align 4, !tbaa !13
%11 = call i32 @savestack(ptr noundef %0, i32 noundef %10) #3
%12 = load i32, ptr %0, align 4, !tbaa !15
%13 = call i32 @luaD_pcall(ptr noundef nonnull %0, i32 noundef %8, ptr noundef nonnull %4, i32 noundef %11, i32 noundef %12) #3
%14 = call i32 @luaZ_freebuffer(ptr noundef nonnull %0, ptr noundef nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
ret i32 %13
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @luaZ_initbuffer(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @luaD_pcall(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @savestack(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @luaZ_freebuffer(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, !7, i64 16}
!6 = !{!"SParser", !7, i64 0, !10, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"TYPE_7__", !10, i64 0, !10, i64 4}
!15 = !{!14, !10, i64 0}
| ; ModuleID = 'AnghaBench/nodemcu-firmware/app/lua/extr_ldo.c_luaD_protectedparser.c'
source_filename = "AnghaBench/nodemcu-firmware/app/lua/extr_ldo.c_luaD_protectedparser.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.SParser = type { ptr, i32, ptr }
@f_parser = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @luaD_protectedparser(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca %struct.SParser, align 8
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
%5 = getelementptr inbounds i8, ptr %4, i64 16
store ptr %1, ptr %5, align 8, !tbaa !6
store ptr %2, ptr %4, align 8, !tbaa !12
%6 = getelementptr inbounds i8, ptr %4, i64 8
%7 = call i32 @luaZ_initbuffer(ptr noundef %0, ptr noundef nonnull %6) #3
%8 = load i32, ptr @f_parser, align 4, !tbaa !13
%9 = getelementptr inbounds i8, ptr %0, i64 4
%10 = load i32, ptr %9, align 4, !tbaa !14
%11 = call i32 @savestack(ptr noundef %0, i32 noundef %10) #3
%12 = load i32, ptr %0, align 4, !tbaa !16
%13 = call i32 @luaD_pcall(ptr noundef nonnull %0, i32 noundef %8, ptr noundef nonnull %4, i32 noundef %11, i32 noundef %12) #3
%14 = call i32 @luaZ_freebuffer(ptr noundef nonnull %0, ptr noundef nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
ret i32 %13
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @luaZ_initbuffer(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @luaD_pcall(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @savestack(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @luaZ_freebuffer(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, !8, i64 16}
!7 = !{!"SParser", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 4}
!15 = !{!"TYPE_7__", !11, i64 0, !11, i64 4}
!16 = !{!15, !11, i64 0}
| nodemcu-firmware_app_lua_extr_ldo.c_luaD_protectedparser |
; ModuleID = 'AnghaBench/postgres/src/backend/commands/extr_event_trigger.c_EventTriggerDDLCommandStart.c'
source_filename = "AnghaBench/postgres/src/backend/commands/extr_event_trigger.c_EventTriggerDDLCommandStart.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"
@IsUnderPostmaster = dso_local local_unnamed_addr global i32 0, align 4
@EVT_DDLCommandStart = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"ddl_command_start\00", align 1
@NIL = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local void @EventTriggerDDLCommandStart(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = load i32, ptr @IsUnderPostmaster, align 4, !tbaa !5
%4 = icmp eq i32 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %1
%6 = load i32, ptr @EVT_DDLCommandStart, align 4, !tbaa !5
%7 = call ptr @EventTriggerCommonSetup(ptr noundef %0, i32 noundef %6, ptr noundef nonnull @.str, ptr noundef nonnull %2) #3
%8 = load ptr, ptr @NIL, align 8, !tbaa !9
%9 = icmp eq ptr %7, %8
br i1 %9, label %14, label %10
10: ; preds = %5
%11 = call i32 @EventTriggerInvoke(ptr noundef %7, ptr noundef nonnull %2) #3
%12 = call i32 @list_free(ptr noundef %7) #3
%13 = call i32 (...) @CommandCounterIncrement() #3
br label %14
14: ; preds = %5, %1, %10
call void @llvm.lifetime.end.p0(i64 4, 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 ptr @EventTriggerCommonSetup(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @EventTriggerInvoke(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @list_free(ptr noundef) local_unnamed_addr #2
declare i32 @CommandCounterIncrement(...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/postgres/src/backend/commands/extr_event_trigger.c_EventTriggerDDLCommandStart.c'
source_filename = "AnghaBench/postgres/src/backend/commands/extr_event_trigger.c_EventTriggerDDLCommandStart.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IsUnderPostmaster = common local_unnamed_addr global i32 0, align 4
@EVT_DDLCommandStart = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"ddl_command_start\00", align 1
@NIL = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @EventTriggerDDLCommandStart(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = load i32, ptr @IsUnderPostmaster, align 4, !tbaa !6
%4 = icmp eq i32 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %1
%6 = load i32, ptr @EVT_DDLCommandStart, align 4, !tbaa !6
%7 = call ptr @EventTriggerCommonSetup(ptr noundef %0, i32 noundef %6, ptr noundef nonnull @.str, ptr noundef nonnull %2) #3
%8 = load ptr, ptr @NIL, align 8, !tbaa !10
%9 = icmp eq ptr %7, %8
br i1 %9, label %14, label %10
10: ; preds = %5
%11 = call i32 @EventTriggerInvoke(ptr noundef %7, ptr noundef nonnull %2) #3
%12 = call i32 @list_free(ptr noundef %7) #3
%13 = call i32 @CommandCounterIncrement() #3
br label %14
14: ; preds = %5, %1, %10
call void @llvm.lifetime.end.p0(i64 4, 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 ptr @EventTriggerCommonSetup(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @EventTriggerInvoke(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @list_free(ptr noundef) local_unnamed_addr #2
declare i32 @CommandCounterIncrement(...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
| postgres_src_backend_commands_extr_event_trigger.c_EventTriggerDDLCommandStart |
; ModuleID = 'AnghaBench/linux/tools/testing/selftests/powerpc/ptrace/extr_child.h_init_child_sync.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/powerpc/ptrace/extr_child.h_init_child_sync.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.child_sync = type { i32, i32 }
@.str = private unnamed_addr constant [32 x i8] c"Semaphore initialization failed\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @init_child_sync(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.child_sync, ptr %0, i64 0, i32 1
%3 = tail call i32 @sem_init(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i32 @sem_init(ptr noundef %0, i32 noundef 1, i32 noundef 0) #2
%7 = icmp eq i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5, %1
%9 = tail call i32 @perror(ptr noundef nonnull @.str) #2
br label %10
10: ; preds = %8, %5
%11 = phi i32 [ 0, %5 ], [ 1, %8 ]
ret i32 %11
}
declare i32 @sem_init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @perror(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/tools/testing/selftests/powerpc/ptrace/extr_child.h_init_child_sync.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/powerpc/ptrace/extr_child.h_init_child_sync.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [32 x i8] c"Semaphore initialization failed\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @init_child_sync(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = tail call i32 @sem_init(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i32 @sem_init(ptr noundef %0, i32 noundef 1, i32 noundef 0) #2
%7 = icmp eq i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5, %1
%9 = tail call i32 @perror(ptr noundef nonnull @.str) #2
br label %10
10: ; preds = %8, %5
%11 = phi i32 [ 0, %5 ], [ 1, %8 ]
ret i32 %11
}
declare i32 @sem_init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @perror(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_tools_testing_selftests_powerpc_ptrace_extr_child.h_init_child_sync |
; ModuleID = 'AnghaBench/kphp-kdb/targ/extr_targ-engine.c_sighup_handler.c'
source_filename = "AnghaBench/kphp-kdb/targ/extr_targ-engine.c_sighup_handler.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"
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"got SIGHUP.\0A\00", align 1
@SIGHUP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sighup_handler], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @sighup_handler(i32 %0) #0 {
%2 = load i32, ptr @stderr, align 4, !tbaa !5
%3 = tail call i32 @fprintf(i32 noundef %2, ptr noundef nonnull @.str) #2
%4 = load i32, ptr @SIGHUP, align 4, !tbaa !5
%5 = tail call i32 @signal(i32 noundef %4, ptr noundef nonnull @sighup_handler) #2
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @signal(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/kphp-kdb/targ/extr_targ-engine.c_sighup_handler.c'
source_filename = "AnghaBench/kphp-kdb/targ/extr_targ-engine.c_sighup_handler.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@stderr = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"got SIGHUP.\0A\00", align 1
@SIGHUP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sighup_handler], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @sighup_handler(i32 %0) #0 {
%2 = load i32, ptr @stderr, align 4, !tbaa !6
%3 = tail call i32 @fprintf(i32 noundef %2, ptr noundef nonnull @.str) #2
%4 = load i32, ptr @SIGHUP, align 4, !tbaa !6
%5 = tail call i32 @signal(i32 noundef %4, ptr noundef nonnull @sighup_handler) #2
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @signal(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"}
| kphp-kdb_targ_extr_targ-engine.c_sighup_handler |
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/mips/extr_vp9_mc_msa.c_common_hv_8ht_8vt_and_aver_dst_8w_msa.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/mips/extr_vp9_mc_msa.c_common_hv_8ht_8vt_and_aver_dst_8w_msa.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"
@mc_filt_mask_arr = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @common_hv_8ht_8vt_and_aver_dst_8w_msa], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @common_hv_8ht_8vt_and_aver_dst_8w_msa(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = load ptr, ptr @mc_filt_mask_arr, align 8, !tbaa !5
%9 = tail call i64 @LD_UB(ptr noundef %8) #2
%10 = mul i32 %1, -3
%11 = add i32 %10, -3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %0, i64 %12
%14 = tail call i64 @LD_SH(ptr noundef %4) #2
%15 = tail call i32 @SPLATI_H4_SB(i64 noundef %14, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%16 = add nsw i64 %9, 2
%17 = add nsw i64 %9, 4
%18 = add nsw i64 %9, 6
%19 = tail call i32 @LD_SB7(ptr noundef %13, i32 noundef %1, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%20 = tail call i32 @XORI_B7_128_SB(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%21 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%22 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%23 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%24 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%25 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%26 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%27 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%28 = tail call i64 @LD_SH(ptr noundef %5) #2
%29 = tail call i32 @SPLATI_H4_SH(i64 noundef %28, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%30 = tail call i32 @ILVEV_B2_SH(i64 noundef %21, i64 noundef %22, i64 noundef %23, i64 noundef %24, i64 noundef undef, i64 noundef undef) #2
%31 = tail call i32 @ILVEV_B2_SH(i64 noundef %25, i64 noundef %26, i64 noundef %22, i64 noundef %23, i64 noundef undef, i64 noundef undef) #2
%32 = tail call i32 @ILVEV_B2_SH(i64 noundef %24, i64 noundef %25, i64 noundef %26, i64 noundef %27, i64 noundef undef, i64 noundef undef) #2
%33 = icmp ult i32 %6, 4
br i1 %33, label %83, label %34
34: ; preds = %7
%35 = ashr i32 %6, 2
%36 = mul nsw i32 %1, 7
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %13, i64 %37
%39 = shl nsw i32 %1, 2
%40 = sext i32 %39 to i64
%41 = shl nsw i32 %3, 2
%42 = sext i32 %41 to i64
br label %43
43: ; preds = %34, %43
%44 = phi ptr [ %38, %34 ], [ %57, %43 ]
%45 = phi ptr [ %2, %34 ], [ %81, %43 ]
%46 = phi i32 [ %35, %34 ], [ %54, %43 ]
%47 = phi i64 [ undef, %34 ], [ %76, %43 ]
%48 = phi i64 [ undef, %34 ], [ %68, %43 ]
%49 = phi i64 [ undef, %34 ], [ %47, %43 ]
%50 = phi i64 [ undef, %34 ], [ %72, %43 ]
%51 = phi i64 [ undef, %34 ], [ %64, %43 ]
%52 = phi i64 [ undef, %34 ], [ %50, %43 ]
%53 = phi i64 [ %27, %34 ], [ %74, %43 ]
%54 = add nsw i32 %46, -1
%55 = tail call i32 @LD_SB4(ptr noundef %44, i32 noundef %1, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%56 = tail call i32 @XORI_B4_128_SB(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%57 = getelementptr inbounds i32, ptr %44, i64 %40
%58 = tail call i32 @LD4(ptr noundef %45, i32 noundef %3, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%59 = tail call i32 @INSERT_D2_UB(i32 noundef undef, i32 noundef undef, i64 noundef undef) #2
%60 = tail call i32 @INSERT_D2_UB(i32 noundef undef, i32 noundef undef, i64 noundef undef) #2
%61 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%62 = trunc i64 %61 to i32
%63 = trunc i64 %53 to i32
%64 = tail call i64 @__msa_ilvev_b(i32 noundef %62, i32 noundef %63) #2
%65 = tail call i64 @FILT_8TAP_DPADD_S_H(i64 noundef %52, i64 noundef %51, i64 noundef %50, i64 noundef %64, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%66 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%67 = trunc i64 %66 to i32
%68 = tail call i64 @__msa_ilvev_b(i32 noundef %67, i32 noundef %62) #2
%69 = tail call i64 @FILT_8TAP_DPADD_S_H(i64 noundef %49, i64 noundef %48, i64 noundef %47, i64 noundef %68, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%70 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%71 = trunc i64 %70 to i32
%72 = tail call i64 @__msa_ilvev_b(i32 noundef %71, i32 noundef %67) #2
%73 = tail call i64 @FILT_8TAP_DPADD_S_H(i64 noundef %51, i64 noundef %50, i64 noundef %64, i64 noundef %72, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%74 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%75 = trunc i64 %74 to i32
%76 = tail call i64 @__msa_ilvev_b(i32 noundef %75, i32 noundef %71) #2
%77 = tail call i64 @FILT_8TAP_DPADD_S_H(i64 noundef %48, i64 noundef %47, i64 noundef %68, i64 noundef %76, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%78 = tail call i32 @SRARI_H4_SH(i64 noundef %65, i64 noundef %69, i64 noundef %73, i64 noundef %77, i32 noundef 7) #2
%79 = tail call i32 @SAT_SH4_SH(i64 noundef %65, i64 noundef %69, i64 noundef %73, i64 noundef %77, i32 noundef 7) #2
%80 = tail call i32 @CONVERT_UB_AVG_ST8x4_UB(i64 noundef %65, i64 noundef %69, i64 noundef %73, i64 noundef %77, i64 noundef undef, i64 noundef undef, ptr noundef %45, i32 noundef %3) #2
%81 = getelementptr inbounds i32, ptr %45, i64 %42
%82 = icmp eq i32 %54, 0
br i1 %82, label %83, label %43, !llvm.loop !9
83: ; preds = %43, %7
ret void
}
declare i64 @LD_UB(ptr noundef) local_unnamed_addr #1
declare i64 @LD_SH(ptr noundef) local_unnamed_addr #1
declare i32 @SPLATI_H4_SB(i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD_SB7(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @XORI_B7_128_SB(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @HORIZ_8TAP_FILT(i32 noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SPLATI_H4_SH(i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ILVEV_B2_SH(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @LD_SB4(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @XORI_B4_128_SB(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD4(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @INSERT_D2_UB(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @__msa_ilvev_b(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @FILT_8TAP_DPADD_S_H(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @SRARI_H4_SH(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SAT_SH4_SH(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CONVERT_UB_AVG_ST8x4_UB(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/FFmpeg/libavcodec/mips/extr_vp9_mc_msa.c_common_hv_8ht_8vt_and_aver_dst_8w_msa.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/mips/extr_vp9_mc_msa.c_common_hv_8ht_8vt_and_aver_dst_8w_msa.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@mc_filt_mask_arr = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @common_hv_8ht_8vt_and_aver_dst_8w_msa], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @common_hv_8ht_8vt_and_aver_dst_8w_msa(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = load ptr, ptr @mc_filt_mask_arr, align 8, !tbaa !6
%9 = tail call i64 @LD_UB(ptr noundef %8) #2
%10 = mul i32 %1, -3
%11 = add i32 %10, -3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %0, i64 %12
%14 = tail call i64 @LD_SH(ptr noundef %4) #2
%15 = tail call i32 @SPLATI_H4_SB(i64 noundef %14, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%16 = add nsw i64 %9, 2
%17 = add nsw i64 %9, 4
%18 = add nsw i64 %9, 6
%19 = tail call i32 @LD_SB7(ptr noundef %13, i32 noundef %1, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%20 = tail call i32 @XORI_B7_128_SB(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%21 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%22 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%23 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%24 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%25 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%26 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%27 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%28 = tail call i64 @LD_SH(ptr noundef %5) #2
%29 = tail call i32 @SPLATI_H4_SH(i64 noundef %28, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%30 = tail call i32 @ILVEV_B2_SH(i64 noundef %21, i64 noundef %22, i64 noundef %23, i64 noundef %24, i64 noundef undef, i64 noundef undef) #2
%31 = tail call i32 @ILVEV_B2_SH(i64 noundef %25, i64 noundef %26, i64 noundef %22, i64 noundef %23, i64 noundef undef, i64 noundef undef) #2
%32 = tail call i32 @ILVEV_B2_SH(i64 noundef %24, i64 noundef %25, i64 noundef %26, i64 noundef %27, i64 noundef undef, i64 noundef undef) #2
%33 = icmp ult i32 %6, 4
br i1 %33, label %83, label %34
34: ; preds = %7
%35 = ashr i32 %6, 2
%36 = mul nsw i32 %1, 7
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %13, i64 %37
%39 = shl nsw i32 %1, 2
%40 = sext i32 %39 to i64
%41 = shl nsw i32 %3, 2
%42 = sext i32 %41 to i64
br label %43
43: ; preds = %34, %43
%44 = phi ptr [ %38, %34 ], [ %57, %43 ]
%45 = phi ptr [ %2, %34 ], [ %81, %43 ]
%46 = phi i32 [ %35, %34 ], [ %54, %43 ]
%47 = phi i64 [ undef, %34 ], [ %76, %43 ]
%48 = phi i64 [ undef, %34 ], [ %68, %43 ]
%49 = phi i64 [ undef, %34 ], [ %47, %43 ]
%50 = phi i64 [ undef, %34 ], [ %72, %43 ]
%51 = phi i64 [ undef, %34 ], [ %64, %43 ]
%52 = phi i64 [ undef, %34 ], [ %50, %43 ]
%53 = phi i64 [ %27, %34 ], [ %74, %43 ]
%54 = add nsw i32 %46, -1
%55 = tail call i32 @LD_SB4(ptr noundef %44, i32 noundef %1, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%56 = tail call i32 @XORI_B4_128_SB(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%57 = getelementptr inbounds i32, ptr %44, i64 %40
%58 = tail call i32 @LD4(ptr noundef %45, i32 noundef %3, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%59 = tail call i32 @INSERT_D2_UB(i32 noundef undef, i32 noundef undef, i64 noundef undef) #2
%60 = tail call i32 @INSERT_D2_UB(i32 noundef undef, i32 noundef undef, i64 noundef undef) #2
%61 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%62 = trunc i64 %61 to i32
%63 = trunc i64 %53 to i32
%64 = tail call i64 @__msa_ilvev_b(i32 noundef %62, i32 noundef %63) #2
%65 = tail call i64 @FILT_8TAP_DPADD_S_H(i64 noundef %52, i64 noundef %51, i64 noundef %50, i64 noundef %64, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%66 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%67 = trunc i64 %66 to i32
%68 = tail call i64 @__msa_ilvev_b(i32 noundef %67, i32 noundef %62) #2
%69 = tail call i64 @FILT_8TAP_DPADD_S_H(i64 noundef %49, i64 noundef %48, i64 noundef %47, i64 noundef %68, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%70 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%71 = trunc i64 %70 to i32
%72 = tail call i64 @__msa_ilvev_b(i32 noundef %71, i32 noundef %67) #2
%73 = tail call i64 @FILT_8TAP_DPADD_S_H(i64 noundef %51, i64 noundef %50, i64 noundef %64, i64 noundef %72, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%74 = tail call i64 @HORIZ_8TAP_FILT(i32 noundef undef, i32 noundef undef, i64 noundef %9, i64 noundef %16, i64 noundef %17, i64 noundef %18, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%75 = trunc i64 %74 to i32
%76 = tail call i64 @__msa_ilvev_b(i32 noundef %75, i32 noundef %71) #2
%77 = tail call i64 @FILT_8TAP_DPADD_S_H(i64 noundef %48, i64 noundef %47, i64 noundef %68, i64 noundef %76, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%78 = tail call i32 @SRARI_H4_SH(i64 noundef %65, i64 noundef %69, i64 noundef %73, i64 noundef %77, i32 noundef 7) #2
%79 = tail call i32 @SAT_SH4_SH(i64 noundef %65, i64 noundef %69, i64 noundef %73, i64 noundef %77, i32 noundef 7) #2
%80 = tail call i32 @CONVERT_UB_AVG_ST8x4_UB(i64 noundef %65, i64 noundef %69, i64 noundef %73, i64 noundef %77, i64 noundef undef, i64 noundef undef, ptr noundef %45, i32 noundef %3) #2
%81 = getelementptr inbounds i32, ptr %45, i64 %42
%82 = icmp eq i32 %54, 0
br i1 %82, label %83, label %43, !llvm.loop !10
83: ; preds = %43, %7
ret void
}
declare i64 @LD_UB(ptr noundef) local_unnamed_addr #1
declare i64 @LD_SH(ptr noundef) local_unnamed_addr #1
declare i32 @SPLATI_H4_SB(i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD_SB7(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @XORI_B7_128_SB(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @HORIZ_8TAP_FILT(i32 noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SPLATI_H4_SH(i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ILVEV_B2_SH(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @LD_SB4(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @XORI_B4_128_SB(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD4(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @INSERT_D2_UB(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @__msa_ilvev_b(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @FILT_8TAP_DPADD_S_H(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @SRARI_H4_SH(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SAT_SH4_SH(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CONVERT_UB_AVG_ST8x4_UB(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 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"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| FFmpeg_libavcodec_mips_extr_vp9_mc_msa.c_common_hv_8ht_8vt_and_aver_dst_8w_msa |
; ModuleID = 'AnghaBench/freebsd/contrib/libarchive/libarchive/extr_archive_read_support_filter_rpm.c_archive_read_support_filter_rpm.c'
source_filename = "AnghaBench/freebsd/contrib/libarchive/libarchive/extr_archive_read_support_filter_rpm.c_archive_read_support_filter_rpm.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.archive_read_filter_bidder = type { ptr, ptr, ptr, i32, i32, ptr }
@ARCHIVE_READ_MAGIC = dso_local local_unnamed_addr global i32 0, align 4
@ARCHIVE_STATE_NEW = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"archive_read_support_filter_rpm\00", align 1
@ARCHIVE_OK = dso_local local_unnamed_addr global i64 0, align 8
@ARCHIVE_FATAL = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"rpm\00", align 1
@rpm_bidder_bid = dso_local local_unnamed_addr global i32 0, align 4
@rpm_bidder_init = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @archive_read_support_filter_rpm(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%3 = load i32, ptr @ARCHIVE_READ_MAGIC, align 4, !tbaa !5
%4 = load i32, ptr @ARCHIVE_STATE_NEW, align 4, !tbaa !5
%5 = tail call i32 @archive_check_magic(ptr noundef %0, i32 noundef %3, i32 noundef %4, ptr noundef nonnull @.str) #4
%6 = call i64 @__archive_read_get_bidder(ptr noundef %0, ptr noundef nonnull %2) #4
%7 = load i64, ptr @ARCHIVE_OK, align 8, !tbaa !9
%8 = icmp eq i64 %6, %7
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = load i32, ptr @ARCHIVE_FATAL, align 4, !tbaa !5
br label %21
11: ; preds = %1
%12 = load ptr, ptr %2, align 8, !tbaa !11
%13 = getelementptr inbounds %struct.archive_read_filter_bidder, ptr %12, i64 0, i32 5
store ptr null, ptr %13, align 8, !tbaa !13
store ptr @.str.1, ptr %12, align 8, !tbaa !15
%14 = load i32, ptr @rpm_bidder_bid, align 4, !tbaa !5
%15 = load ptr, ptr %2, align 8, !tbaa !11
%16 = getelementptr inbounds %struct.archive_read_filter_bidder, ptr %15, i64 0, i32 4
store i32 %14, ptr %16, align 4, !tbaa !16
%17 = load i32, ptr @rpm_bidder_init, align 4, !tbaa !5
%18 = getelementptr inbounds %struct.archive_read_filter_bidder, ptr %15, i64 0, i32 3
store i32 %17, ptr %18, align 8, !tbaa !17
%19 = getelementptr inbounds %struct.archive_read_filter_bidder, ptr %15, i64 0, i32 1
%20 = trunc i64 %6 to i32
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, i8 0, i64 16, i1 false)
br label %21
21: ; preds = %11, %9
%22 = phi i32 [ %10, %9 ], [ %20, %11 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret i32 %22
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @archive_check_magic(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @__archive_read_get_bidder(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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 32}
!14 = !{!"archive_read_filter_bidder", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !6, i64 28, !12, i64 32}
!15 = !{!14, !12, i64 0}
!16 = !{!14, !6, i64 28}
!17 = !{!14, !6, i64 24}
| ; ModuleID = 'AnghaBench/freebsd/contrib/libarchive/libarchive/extr_archive_read_support_filter_rpm.c_archive_read_support_filter_rpm.c'
source_filename = "AnghaBench/freebsd/contrib/libarchive/libarchive/extr_archive_read_support_filter_rpm.c_archive_read_support_filter_rpm.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ARCHIVE_READ_MAGIC = common local_unnamed_addr global i32 0, align 4
@ARCHIVE_STATE_NEW = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"archive_read_support_filter_rpm\00", align 1
@ARCHIVE_OK = common local_unnamed_addr global i64 0, align 8
@ARCHIVE_FATAL = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"rpm\00", align 1
@rpm_bidder_bid = common local_unnamed_addr global i32 0, align 4
@rpm_bidder_init = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @archive_read_support_filter_rpm(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%3 = load i32, ptr @ARCHIVE_READ_MAGIC, align 4, !tbaa !6
%4 = load i32, ptr @ARCHIVE_STATE_NEW, align 4, !tbaa !6
%5 = tail call i32 @archive_check_magic(ptr noundef %0, i32 noundef %3, i32 noundef %4, ptr noundef nonnull @.str) #4
%6 = call i64 @__archive_read_get_bidder(ptr noundef %0, ptr noundef nonnull %2) #4
%7 = load i64, ptr @ARCHIVE_OK, align 8, !tbaa !10
%8 = icmp eq i64 %6, %7
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = load i32, ptr @ARCHIVE_FATAL, align 4, !tbaa !6
br label %21
11: ; preds = %1
%12 = load ptr, ptr %2, align 8, !tbaa !12
%13 = getelementptr inbounds i8, ptr %12, i64 32
store ptr null, ptr %13, align 8, !tbaa !14
store ptr @.str.1, ptr %12, align 8, !tbaa !16
%14 = load i32, ptr @rpm_bidder_bid, align 4, !tbaa !6
%15 = load ptr, ptr %2, align 8, !tbaa !12
%16 = getelementptr inbounds i8, ptr %15, i64 28
store i32 %14, ptr %16, align 4, !tbaa !17
%17 = load i32, ptr @rpm_bidder_init, align 4, !tbaa !6
%18 = getelementptr inbounds i8, ptr %15, i64 24
store i32 %17, ptr %18, align 8, !tbaa !18
%19 = getelementptr inbounds i8, ptr %15, i64 8
%20 = trunc i64 %6 to i32
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, i8 0, i64 16, i1 false)
br label %21
21: ; preds = %11, %9
%22 = phi i32 [ %10, %9 ], [ %20, %11 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret i32 %22
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @archive_check_magic(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @__archive_read_get_bidder(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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"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, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !13, i64 32}
!15 = !{!"archive_read_filter_bidder", !13, i64 0, !13, i64 8, !13, i64 16, !7, i64 24, !7, i64 28, !13, i64 32}
!16 = !{!15, !13, i64 0}
!17 = !{!15, !7, i64 28}
!18 = !{!15, !7, i64 24}
| freebsd_contrib_libarchive_libarchive_extr_archive_read_support_filter_rpm.c_archive_read_support_filter_rpm |
; ModuleID = 'AnghaBench/Quake-III-Arena/q3map/extr_facebsp.c_MakeVisibleBspFaceList.c'
source_filename = "AnghaBench/Quake-III-Arena/q3map/extr_facebsp.c_MakeVisibleBspFaceList.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_9__ = type { i32, ptr, i64, ptr }
%struct.TYPE_7__ = type { i32, i32, ptr }
%struct.TYPE_8__ = type { i32, i32, ptr, i32 }
@SURF_HINT = dso_local local_unnamed_addr global i32 0, align 4
@qtrue = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @MakeVisibleBspFaceList(ptr noundef readonly %0) local_unnamed_addr #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %48, label %3
3: ; preds = %1, %43
%4 = phi ptr [ %44, %43 ], [ null, %1 ]
%5 = phi ptr [ %46, %43 ], [ %0, %1 ]
%6 = getelementptr inbounds %struct.TYPE_9__, ptr %5, i64 0, i32 2
%7 = load i64, ptr %6, align 8, !tbaa !5
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %43
9: ; preds = %3
%10 = load i32, ptr %5, align 8, !tbaa !12
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %43
12: ; preds = %9
%13 = getelementptr inbounds %struct.TYPE_9__, ptr %5, i64 0, i32 1
br label %14
14: ; preds = %12, %37
%15 = phi i64 [ 0, %12 ], [ %39, %37 ]
%16 = phi ptr [ %4, %12 ], [ %38, %37 ]
%17 = load ptr, ptr %13, align 8, !tbaa !13
%18 = getelementptr inbounds %struct.TYPE_7__, ptr %17, i64 %15, i32 2
%19 = load ptr, ptr %18, align 8, !tbaa !14
%20 = icmp eq ptr %19, null
br i1 %20, label %37, label %21
21: ; preds = %14
%22 = getelementptr inbounds %struct.TYPE_7__, ptr %17, i64 %15
%23 = tail call ptr (...) @AllocBspFace() #2
%24 = tail call i32 @CopyWinding(ptr noundef nonnull %19) #2
%25 = getelementptr inbounds %struct.TYPE_8__, ptr %23, i64 0, i32 3
store i32 %24, ptr %25, align 8, !tbaa !16
%26 = load i32, ptr %22, align 8, !tbaa !18
%27 = and i32 %26, -2
store i32 %27, ptr %23, align 8, !tbaa !19
%28 = getelementptr inbounds %struct.TYPE_8__, ptr %23, i64 0, i32 2
store ptr %16, ptr %28, align 8, !tbaa !20
%29 = getelementptr inbounds %struct.TYPE_7__, ptr %17, i64 %15, i32 1
%30 = load i32, ptr %29, align 4, !tbaa !21
%31 = load i32, ptr @SURF_HINT, align 4, !tbaa !22
%32 = and i32 %31, %30
%33 = icmp eq i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %21
%35 = load i32, ptr @qtrue, align 4, !tbaa !22
%36 = getelementptr inbounds %struct.TYPE_8__, ptr %23, i64 0, i32 1
store i32 %35, ptr %36, align 4, !tbaa !23
br label %37
37: ; preds = %21, %34, %14
%38 = phi ptr [ %16, %14 ], [ %23, %34 ], [ %23, %21 ]
%39 = add nuw nsw i64 %15, 1
%40 = load i32, ptr %5, align 8, !tbaa !12
%41 = sext i32 %40 to i64
%42 = icmp slt i64 %39, %41
br i1 %42, label %14, label %43, !llvm.loop !24
43: ; preds = %37, %9, %3
%44 = phi ptr [ %4, %3 ], [ %4, %9 ], [ %38, %37 ]
%45 = getelementptr inbounds %struct.TYPE_9__, ptr %5, i64 0, i32 3
%46 = load ptr, ptr %45, align 8, !tbaa !26
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %3, !llvm.loop !27
48: ; preds = %43, %1
%49 = phi ptr [ null, %1 ], [ %44, %43 ]
ret ptr %49
}
declare ptr @AllocBspFace(...) local_unnamed_addr #1
declare i32 @CopyWinding(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 16}
!6 = !{!"TYPE_9__", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!15, !10, i64 8}
!15 = !{!"TYPE_7__", !7, i64 0, !7, i64 4, !10, i64 8}
!16 = !{!17, !7, i64 16}
!17 = !{!"TYPE_8__", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 16}
!18 = !{!15, !7, i64 0}
!19 = !{!17, !7, i64 0}
!20 = !{!17, !10, i64 8}
!21 = !{!15, !7, i64 4}
!22 = !{!7, !7, i64 0}
!23 = !{!17, !7, i64 4}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !10, i64 24}
!27 = distinct !{!27, !25}
| ; ModuleID = 'AnghaBench/Quake-III-Arena/q3map/extr_facebsp.c_MakeVisibleBspFaceList.c'
source_filename = "AnghaBench/Quake-III-Arena/q3map/extr_facebsp.c_MakeVisibleBspFaceList.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_7__ = type { i32, i32, ptr }
@SURF_HINT = common local_unnamed_addr global i32 0, align 4
@qtrue = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @MakeVisibleBspFaceList(ptr noundef readonly %0) local_unnamed_addr #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %48, label %3
3: ; preds = %1, %43
%4 = phi ptr [ %44, %43 ], [ null, %1 ]
%5 = phi ptr [ %46, %43 ], [ %0, %1 ]
%6 = getelementptr inbounds i8, ptr %5, i64 16
%7 = load i64, ptr %6, align 8, !tbaa !6
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %43
9: ; preds = %3
%10 = load i32, ptr %5, align 8, !tbaa !13
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %43
12: ; preds = %9
%13 = getelementptr inbounds i8, ptr %5, i64 8
br label %14
14: ; preds = %12, %37
%15 = phi i64 [ 0, %12 ], [ %39, %37 ]
%16 = phi ptr [ %4, %12 ], [ %38, %37 ]
%17 = load ptr, ptr %13, align 8, !tbaa !14
%18 = getelementptr inbounds %struct.TYPE_7__, ptr %17, i64 %15
%19 = getelementptr inbounds i8, ptr %18, i64 8
%20 = load ptr, ptr %19, align 8, !tbaa !15
%21 = icmp eq ptr %20, null
br i1 %21, label %37, label %22
22: ; preds = %14
%23 = tail call ptr @AllocBspFace() #2
%24 = tail call i32 @CopyWinding(ptr noundef nonnull %20) #2
%25 = getelementptr inbounds i8, ptr %23, i64 16
store i32 %24, ptr %25, align 8, !tbaa !17
%26 = load i32, ptr %18, align 8, !tbaa !19
%27 = and i32 %26, -2
store i32 %27, ptr %23, align 8, !tbaa !20
%28 = getelementptr inbounds i8, ptr %23, i64 8
store ptr %16, ptr %28, align 8, !tbaa !21
%29 = getelementptr inbounds i8, ptr %18, i64 4
%30 = load i32, ptr %29, align 4, !tbaa !22
%31 = load i32, ptr @SURF_HINT, align 4, !tbaa !23
%32 = and i32 %31, %30
%33 = icmp eq i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %22
%35 = load i32, ptr @qtrue, align 4, !tbaa !23
%36 = getelementptr inbounds i8, ptr %23, i64 4
store i32 %35, ptr %36, align 4, !tbaa !24
br label %37
37: ; preds = %22, %34, %14
%38 = phi ptr [ %16, %14 ], [ %23, %34 ], [ %23, %22 ]
%39 = add nuw nsw i64 %15, 1
%40 = load i32, ptr %5, align 8, !tbaa !13
%41 = sext i32 %40 to i64
%42 = icmp slt i64 %39, %41
br i1 %42, label %14, label %43, !llvm.loop !25
43: ; preds = %37, %9, %3
%44 = phi ptr [ %4, %3 ], [ %4, %9 ], [ %38, %37 ]
%45 = getelementptr inbounds i8, ptr %5, i64 24
%46 = load ptr, ptr %45, align 8, !tbaa !27
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %3, !llvm.loop !28
48: ; preds = %43, %1
%49 = phi ptr [ null, %1 ], [ %44, %43 ]
ret ptr %49
}
declare ptr @AllocBspFace(...) local_unnamed_addr #1
declare i32 @CopyWinding(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 16}
!7 = !{!"TYPE_9__", !8, i64 0, !11, i64 8, !12, i64 16, !11, i64 24}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!7, !11, i64 8}
!15 = !{!16, !11, i64 8}
!16 = !{!"TYPE_7__", !8, i64 0, !8, i64 4, !11, i64 8}
!17 = !{!18, !8, i64 16}
!18 = !{!"TYPE_8__", !8, i64 0, !8, i64 4, !11, i64 8, !8, i64 16}
!19 = !{!16, !8, i64 0}
!20 = !{!18, !8, i64 0}
!21 = !{!18, !11, i64 8}
!22 = !{!16, !8, i64 4}
!23 = !{!8, !8, i64 0}
!24 = !{!18, !8, i64 4}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!7, !11, i64 24}
!28 = distinct !{!28, !26}
| Quake-III-Arena_q3map_extr_facebsp.c_MakeVisibleBspFaceList |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/atlx/extr_atlx.c_atlx_clear_phy_int.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/atlx/extr_atlx.c_atlx_clear_phy_int.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.atlx_adapter = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @atlx_clear_phy_int], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @atlx_clear_phy_int(ptr noundef %0) #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = tail call i32 @spin_lock_irqsave(ptr noundef %0, i64 noundef undef) #3
%4 = getelementptr inbounds %struct.atlx_adapter, ptr %0, i64 0, i32 1
%5 = call i32 @atlx_read_phy_reg(ptr noundef nonnull %4, i32 noundef 19, ptr noundef nonnull %2) #3
%6 = call i32 @spin_unlock_irqrestore(ptr noundef %0, i64 noundef undef) #3
call void @llvm.lifetime.end.p0(i64 4, 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 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @atlx_read_phy_reg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 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)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/atlx/extr_atlx.c_atlx_clear_phy_int.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/atlx/extr_atlx.c_atlx_clear_phy_int.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 @atlx_clear_phy_int], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @atlx_clear_phy_int(ptr noundef %0) #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = tail call i32 @spin_lock_irqsave(ptr noundef %0, i64 noundef undef) #3
%4 = getelementptr inbounds i8, ptr %0, i64 4
%5 = call i32 @atlx_read_phy_reg(ptr noundef nonnull %4, i32 noundef 19, ptr noundef nonnull %2) #3
%6 = call i32 @spin_unlock_irqrestore(ptr noundef %0, i64 noundef undef) #3
call void @llvm.lifetime.end.p0(i64 4, 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 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @atlx_read_phy_reg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 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)"}
| fastsocket_kernel_drivers_net_atlx_extr_atlx.c_atlx_clear_phy_int |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/ac97/extr_ac97_codec.c_tune_hp_only.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/ac97/extr_ac97_codec.c_tune_hp_only.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 [23 x i8] c"Master Playback Switch\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Master Playback Volume\00", align 1
@ENOENT = dso_local local_unnamed_addr global i32 0, align 4
@bind_hp_volsw_put = dso_local local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [19 x i8] c"Headphone Playback\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"Switch\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Volume\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @tune_hp_only], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @tune_hp_only(ptr noundef %0) #0 {
%2 = tail call ptr @ctl_find(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef null) #2
%3 = tail call ptr @ctl_find(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef null) #2
%4 = icmp ne ptr %2, null
%5 = icmp ne ptr %3, null
%6 = select i1 %4, i1 %5, i1 false
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load i32, ptr @ENOENT, align 4, !tbaa !5
%9 = sub nsw i32 0, %8
br label %14
10: ; preds = %1
%11 = load ptr, ptr @bind_hp_volsw_put, align 8, !tbaa !9
store ptr %11, ptr %2, align 8, !tbaa !11
store ptr %11, ptr %3, align 8, !tbaa !11
%12 = tail call i32 @snd_ac97_remove_ctl(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3) #2
%13 = tail call i32 @snd_ac97_remove_ctl(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.4) #2
br label %14
14: ; preds = %10, %7
%15 = phi i32 [ 0, %10 ], [ %9, %7 ]
ret i32 %15
}
declare ptr @ctl_find(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @snd_ac97_remove_ctl(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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 = !{!"snd_kcontrol", !10, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/ac97/extr_ac97_codec.c_tune_hp_only.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/ac97/extr_ac97_codec.c_tune_hp_only.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 [23 x i8] c"Master Playback Switch\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Master Playback Volume\00", align 1
@ENOENT = common local_unnamed_addr global i32 0, align 4
@bind_hp_volsw_put = common local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [19 x i8] c"Headphone Playback\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"Switch\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Volume\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @tune_hp_only], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @tune_hp_only(ptr noundef %0) #0 {
%2 = tail call ptr @ctl_find(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef null) #2
%3 = tail call ptr @ctl_find(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef null) #2
%4 = icmp ne ptr %2, null
%5 = icmp ne ptr %3, null
%6 = select i1 %4, i1 %5, i1 false
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load i32, ptr @ENOENT, align 4, !tbaa !6
%9 = sub nsw i32 0, %8
br label %14
10: ; preds = %1
%11 = load ptr, ptr @bind_hp_volsw_put, align 8, !tbaa !10
store ptr %11, ptr %2, align 8, !tbaa !12
store ptr %11, ptr %3, align 8, !tbaa !12
%12 = tail call i32 @snd_ac97_remove_ctl(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3) #2
%13 = tail call i32 @snd_ac97_remove_ctl(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.4) #2
br label %14
14: ; preds = %10, %7
%15 = phi i32 [ 0, %10 ], [ %9, %7 ]
ret i32 %15
}
declare ptr @ctl_find(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @snd_ac97_remove_ctl(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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 = !{!"snd_kcontrol", !11, i64 0}
| fastsocket_kernel_sound_pci_ac97_extr_ac97_codec.c_tune_hp_only |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/b43legacy/extr_dma.c_alloc_ringmemory.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/b43legacy/extr_dma.c_alloc_ringmemory.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.b43legacy_dmaring = type { i32, i32, ptr }
@B43legacy_DMA_RINGMEMSIZE = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @alloc_ringmemory], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @alloc_ringmemory(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.b43legacy_dmaring, ptr %0, i64 0, i32 2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = load i32, ptr %4, align 4, !tbaa !13
%6 = load i32, ptr @B43legacy_DMA_RINGMEMSIZE, align 4, !tbaa !15
%7 = getelementptr inbounds %struct.b43legacy_dmaring, ptr %0, i64 0, i32 1
%8 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !15
%9 = tail call i32 @dma_alloc_coherent(i32 noundef %5, i32 noundef %6, ptr noundef nonnull %7, i32 noundef %8) #2
store i32 %9, ptr %0, align 8, !tbaa !16
%10 = icmp eq i32 %9, 0
%11 = load i32, ptr @ENOMEM, align 4
%12 = sub nsw i32 0, %11
%13 = select i1 %10, i32 %12, i32 0
ret i32 %13
}
declare i32 @dma_alloc_coherent(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"b43legacy_dmaring", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"TYPE_4__", !10, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_3__", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/b43legacy/extr_dma.c_alloc_ringmemory.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/b43legacy/extr_dma.c_alloc_ringmemory.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@B43legacy_DMA_RINGMEMSIZE = common local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @alloc_ringmemory], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @alloc_ringmemory(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !12
%5 = load i32, ptr %4, align 4, !tbaa !14
%6 = load i32, ptr @B43legacy_DMA_RINGMEMSIZE, align 4, !tbaa !16
%7 = getelementptr inbounds i8, ptr %0, i64 4
%8 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !16
%9 = tail call i32 @dma_alloc_coherent(i32 noundef %5, i32 noundef %6, ptr noundef nonnull %7, i32 noundef %8) #2
store i32 %9, ptr %0, align 8, !tbaa !17
%10 = icmp eq i32 %9, 0
%11 = load i32, ptr @ENOMEM, align 4
%12 = sub nsw i32 0, %11
%13 = select i1 %10, i32 %12, i32 0
ret i32 %13
}
declare i32 @dma_alloc_coherent(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"b43legacy_dmaring", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_4__", !11, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_3__", !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !8, i64 0}
| linux_drivers_net_wireless_broadcom_b43legacy_extr_dma.c_alloc_ringmemory |
; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_ov2640.c_ov2640_probe.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_ov2640.c_ov2640_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.i2c_client = type { %struct.TYPE_12__, ptr }
%struct.TYPE_12__ = type { i64 }
%struct.ov2640_priv = type { i32, i32, %struct.TYPE_14__, %struct.TYPE_13__, %struct.TYPE_16__, i32, i32 }
%struct.TYPE_14__ = type { i32, ptr }
%struct.TYPE_13__ = type { i32, %struct.TYPE_15__, ptr }
%struct.TYPE_15__ = type { i32 }
%struct.TYPE_16__ = type { i32 }
@I2C_FUNC_SMBUS_BYTE_DATA = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"OV2640: I2C-Adapter doesn't support SMBUS\0A\00", align 1
@EIO = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"xvclk\00", align 1
@SVGA_WIDTH = dso_local local_unnamed_addr global i32 0, align 4
@SVGA_HEIGHT = dso_local local_unnamed_addr global i32 0, align 4
@MEDIA_BUS_FMT_UYVY8_2X8 = dso_local local_unnamed_addr global i32 0, align 4
@ov2640_subdev_ops = dso_local global i32 0, align 4
@V4L2_SUBDEV_FL_HAS_DEVNODE = dso_local local_unnamed_addr global i32 0, align 4
@V4L2_SUBDEV_FL_HAS_EVENTS = dso_local local_unnamed_addr global i32 0, align 4
@ov2640_ctrl_ops = dso_local global i32 0, align 4
@V4L2_CID_VFLIP = dso_local local_unnamed_addr global i32 0, align 4
@V4L2_CID_HFLIP = dso_local local_unnamed_addr global i32 0, align 4
@V4L2_CID_TEST_PATTERN = dso_local local_unnamed_addr global i32 0, align 4
@ov2640_test_pattern_menu = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [15 x i8] c"OV2640 Probed\0A\00", align 1
@MEDIA_ENT_F_CAM_SENSOR = dso_local local_unnamed_addr global i32 0, align 4
@MEDIA_PAD_FL_SOURCE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ov2640_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ov2640_probe(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.i2c_client, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr @I2C_FUNC_SMBUS_BYTE_DATA, align 4, !tbaa !12
%5 = tail call i32 @i2c_check_functionality(ptr noundef %3, i32 noundef %4) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = tail call i32 @dev_err(ptr noundef %3, ptr noundef nonnull @.str) #2
%9 = load i32, ptr @EIO, align 4, !tbaa !12
%10 = sub nsw i32 0, %9
br label %86
11: ; preds = %1
%12 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !12
%13 = tail call ptr @devm_kzalloc(ptr noundef nonnull %0, i32 noundef 56, i32 noundef %12) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr @ENOMEM, align 4, !tbaa !12
%17 = sub nsw i32 0, %16
br label %86
18: ; preds = %11
%19 = load i64, ptr %0, align 8, !tbaa !14
%20 = icmp eq i64 %19, 0
br i1 %20, label %31, label %21
21: ; preds = %18
%22 = tail call i32 @devm_clk_get(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #2
store i32 %22, ptr %13, align 8, !tbaa !15
%23 = tail call i64 @IS_ERR(i32 noundef %22) #2
%24 = icmp eq i64 %23, 0
%25 = load i32, ptr %13, align 8, !tbaa !15
br i1 %24, label %28, label %26
26: ; preds = %21
%27 = tail call i32 @PTR_ERR(i32 noundef %25) #2
br label %86
28: ; preds = %21
%29 = tail call i32 @clk_prepare_enable(i32 noundef %25) #2
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %86
31: ; preds = %28, %18
%32 = tail call i32 @ov2640_probe_dt(ptr noundef nonnull %0, ptr noundef nonnull %13) #2
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %82
34: ; preds = %31
%35 = load i32, ptr @SVGA_WIDTH, align 4, !tbaa !12
%36 = load i32, ptr @SVGA_HEIGHT, align 4, !tbaa !12
%37 = tail call i32 @ov2640_select_win(i32 noundef %35, i32 noundef %36) #2
%38 = getelementptr inbounds %struct.ov2640_priv, ptr %13, i64 0, i32 6
store i32 %37, ptr %38, align 8, !tbaa !21
%39 = load i32, ptr @MEDIA_BUS_FMT_UYVY8_2X8, align 4, !tbaa !12
%40 = getelementptr inbounds %struct.ov2640_priv, ptr %13, i64 0, i32 5
store i32 %39, ptr %40, align 4, !tbaa !22
%41 = getelementptr inbounds %struct.ov2640_priv, ptr %13, i64 0, i32 3
%42 = tail call i32 @v4l2_i2c_subdev_init(ptr noundef nonnull %41, ptr noundef nonnull %0, ptr noundef nonnull @ov2640_subdev_ops) #2
%43 = load i32, ptr @V4L2_SUBDEV_FL_HAS_DEVNODE, align 4, !tbaa !12
%44 = load i32, ptr @V4L2_SUBDEV_FL_HAS_EVENTS, align 4, !tbaa !12
%45 = or i32 %44, %43
%46 = load i32, ptr %41, align 8, !tbaa !23
%47 = or i32 %45, %46
store i32 %47, ptr %41, align 8, !tbaa !23
%48 = getelementptr inbounds %struct.ov2640_priv, ptr %13, i64 0, i32 1
%49 = tail call i32 @mutex_init(ptr noundef nonnull %48) #2
%50 = getelementptr inbounds %struct.ov2640_priv, ptr %13, i64 0, i32 2
%51 = tail call i32 @v4l2_ctrl_handler_init(ptr noundef nonnull %50, i32 noundef 3) #2
%52 = getelementptr inbounds %struct.ov2640_priv, ptr %13, i64 0, i32 2, i32 1
store ptr %48, ptr %52, align 8, !tbaa !24
%53 = load i32, ptr @V4L2_CID_VFLIP, align 4, !tbaa !12
%54 = tail call i32 @v4l2_ctrl_new_std(ptr noundef nonnull %50, ptr noundef nonnull @ov2640_ctrl_ops, i32 noundef %53, i32 noundef 0, i32 noundef 1, i32 noundef 1, i32 noundef 0) #2
%55 = load i32, ptr @V4L2_CID_HFLIP, align 4, !tbaa !12
%56 = tail call i32 @v4l2_ctrl_new_std(ptr noundef nonnull %50, ptr noundef nonnull @ov2640_ctrl_ops, i32 noundef %55, i32 noundef 0, i32 noundef 1, i32 noundef 1, i32 noundef 0) #2
%57 = load i32, ptr @V4L2_CID_TEST_PATTERN, align 4, !tbaa !12
%58 = load i32, ptr @ov2640_test_pattern_menu, align 4, !tbaa !12
%59 = tail call i64 @ARRAY_SIZE(i32 noundef %58) #2
%60 = add nsw i64 %59, -1
%61 = load i32, ptr @ov2640_test_pattern_menu, align 4, !tbaa !12
%62 = tail call i32 @v4l2_ctrl_new_std_menu_items(ptr noundef nonnull %50, ptr noundef nonnull @ov2640_ctrl_ops, i32 noundef %57, i64 noundef %60, i32 noundef 0, i32 noundef 0, i32 noundef %61) #2
%63 = getelementptr inbounds %struct.ov2640_priv, ptr %13, i64 0, i32 3, i32 2
store ptr %50, ptr %63, align 8, !tbaa !25
%64 = load i32, ptr %50, align 8, !tbaa !26
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %78
66: ; preds = %34
%67 = tail call i32 @ov2640_video_probe(ptr noundef nonnull %0) #2
%68 = icmp slt i32 %67, 0
br i1 %68, label %74, label %69
69: ; preds = %66
%70 = tail call i32 @v4l2_async_register_subdev(ptr noundef nonnull %41) #2
%71 = icmp slt i32 %70, 0
br i1 %71, label %74, label %72
72: ; preds = %69
%73 = tail call i32 @dev_info(ptr noundef %3, ptr noundef nonnull @.str.2) #2
br label %86
74: ; preds = %69, %66
%75 = phi i32 [ %67, %66 ], [ %70, %69 ]
%76 = getelementptr inbounds %struct.ov2640_priv, ptr %13, i64 0, i32 3, i32 1
%77 = tail call i32 @media_entity_cleanup(ptr noundef nonnull %76) #2
br label %78
78: ; preds = %34, %74
%79 = phi i32 [ %75, %74 ], [ %64, %34 ]
%80 = tail call i32 @v4l2_ctrl_handler_free(ptr noundef nonnull %50) #2
%81 = tail call i32 @mutex_destroy(ptr noundef nonnull %48) #2
br label %82
82: ; preds = %31, %78
%83 = phi i32 [ %32, %31 ], [ %79, %78 ]
%84 = load i32, ptr %13, align 8, !tbaa !15
%85 = tail call i32 @clk_disable_unprepare(i32 noundef %84) #2
br label %86
86: ; preds = %28, %82, %72, %26, %15, %7
%87 = phi i32 [ %27, %26 ], [ %83, %82 ], [ 0, %72 ], [ %17, %15 ], [ %10, %7 ], [ %29, %28 ]
ret i32 %87
}
declare i32 @i2c_check_functionality(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @devm_clk_get(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @clk_prepare_enable(i32 noundef) local_unnamed_addr #1
declare i32 @ov2640_probe_dt(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ov2640_select_win(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_i2c_subdev_init(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mutex_init(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_ctrl_handler_init(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_ctrl_new_std(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_ctrl_new_std_menu_items(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @ARRAY_SIZE(i32 noundef) local_unnamed_addr #1
declare i32 @ov2640_video_probe(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_async_register_subdev(ptr noundef) local_unnamed_addr #1
declare i32 @dev_info(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @media_entity_cleanup(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_ctrl_handler_free(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @clk_disable_unprepare(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 8}
!6 = !{!"i2c_client", !7, i64 0, !11, i64 8}
!7 = !{!"TYPE_12__", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!6, !8, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"ov2640_priv", !13, i64 0, !13, i64 4, !17, i64 8, !18, i64 24, !20, i64 40, !13, i64 44, !13, i64 48}
!17 = !{!"TYPE_14__", !13, i64 0, !11, i64 8}
!18 = !{!"TYPE_13__", !13, i64 0, !19, i64 4, !11, i64 8}
!19 = !{!"TYPE_15__", !13, i64 0}
!20 = !{!"TYPE_16__", !13, i64 0}
!21 = !{!16, !13, i64 48}
!22 = !{!16, !13, i64 44}
!23 = !{!16, !13, i64 24}
!24 = !{!16, !11, i64 16}
!25 = !{!16, !11, i64 32}
!26 = !{!16, !13, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_ov2640.c_ov2640_probe.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_ov2640.c_ov2640_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@I2C_FUNC_SMBUS_BYTE_DATA = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"OV2640: I2C-Adapter doesn't support SMBUS\0A\00", align 1
@EIO = common local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"xvclk\00", align 1
@SVGA_WIDTH = common local_unnamed_addr global i32 0, align 4
@SVGA_HEIGHT = common local_unnamed_addr global i32 0, align 4
@MEDIA_BUS_FMT_UYVY8_2X8 = common local_unnamed_addr global i32 0, align 4
@ov2640_subdev_ops = common global i32 0, align 4
@V4L2_SUBDEV_FL_HAS_DEVNODE = common local_unnamed_addr global i32 0, align 4
@V4L2_SUBDEV_FL_HAS_EVENTS = common local_unnamed_addr global i32 0, align 4
@ov2640_ctrl_ops = common global i32 0, align 4
@V4L2_CID_VFLIP = common local_unnamed_addr global i32 0, align 4
@V4L2_CID_HFLIP = common local_unnamed_addr global i32 0, align 4
@V4L2_CID_TEST_PATTERN = common local_unnamed_addr global i32 0, align 4
@ov2640_test_pattern_menu = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [15 x i8] c"OV2640 Probed\0A\00", align 1
@MEDIA_ENT_F_CAM_SENSOR = common local_unnamed_addr global i32 0, align 4
@MEDIA_PAD_FL_SOURCE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ov2640_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ov2640_probe(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr @I2C_FUNC_SMBUS_BYTE_DATA, align 4, !tbaa !13
%5 = tail call i32 @i2c_check_functionality(ptr noundef %3, i32 noundef %4) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = tail call i32 @dev_err(ptr noundef %3, ptr noundef nonnull @.str) #2
%9 = load i32, ptr @EIO, align 4, !tbaa !13
%10 = sub nsw i32 0, %9
br label %86
11: ; preds = %1
%12 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !13
%13 = tail call ptr @devm_kzalloc(ptr noundef nonnull %0, i32 noundef 56, i32 noundef %12) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr @ENOMEM, align 4, !tbaa !13
%17 = sub nsw i32 0, %16
br label %86
18: ; preds = %11
%19 = load i64, ptr %0, align 8, !tbaa !15
%20 = icmp eq i64 %19, 0
br i1 %20, label %31, label %21
21: ; preds = %18
%22 = tail call i32 @devm_clk_get(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #2
store i32 %22, ptr %13, align 8, !tbaa !16
%23 = tail call i64 @IS_ERR(i32 noundef %22) #2
%24 = icmp eq i64 %23, 0
%25 = load i32, ptr %13, align 8, !tbaa !16
br i1 %24, label %28, label %26
26: ; preds = %21
%27 = tail call i32 @PTR_ERR(i32 noundef %25) #2
br label %86
28: ; preds = %21
%29 = tail call i32 @clk_prepare_enable(i32 noundef %25) #2
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %86
31: ; preds = %28, %18
%32 = tail call i32 @ov2640_probe_dt(ptr noundef nonnull %0, ptr noundef nonnull %13) #2
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %82
34: ; preds = %31
%35 = load i32, ptr @SVGA_WIDTH, align 4, !tbaa !13
%36 = load i32, ptr @SVGA_HEIGHT, align 4, !tbaa !13
%37 = tail call i32 @ov2640_select_win(i32 noundef %35, i32 noundef %36) #2
%38 = getelementptr inbounds i8, ptr %13, i64 48
store i32 %37, ptr %38, align 8, !tbaa !22
%39 = load i32, ptr @MEDIA_BUS_FMT_UYVY8_2X8, align 4, !tbaa !13
%40 = getelementptr inbounds i8, ptr %13, i64 44
store i32 %39, ptr %40, align 4, !tbaa !23
%41 = getelementptr inbounds i8, ptr %13, i64 24
%42 = tail call i32 @v4l2_i2c_subdev_init(ptr noundef nonnull %41, ptr noundef nonnull %0, ptr noundef nonnull @ov2640_subdev_ops) #2
%43 = load i32, ptr @V4L2_SUBDEV_FL_HAS_DEVNODE, align 4, !tbaa !13
%44 = load i32, ptr @V4L2_SUBDEV_FL_HAS_EVENTS, align 4, !tbaa !13
%45 = or i32 %44, %43
%46 = load i32, ptr %41, align 8, !tbaa !24
%47 = or i32 %45, %46
store i32 %47, ptr %41, align 8, !tbaa !24
%48 = getelementptr inbounds i8, ptr %13, i64 4
%49 = tail call i32 @mutex_init(ptr noundef nonnull %48) #2
%50 = getelementptr inbounds i8, ptr %13, i64 8
%51 = tail call i32 @v4l2_ctrl_handler_init(ptr noundef nonnull %50, i32 noundef 3) #2
%52 = getelementptr inbounds i8, ptr %13, i64 16
store ptr %48, ptr %52, align 8, !tbaa !25
%53 = load i32, ptr @V4L2_CID_VFLIP, align 4, !tbaa !13
%54 = tail call i32 @v4l2_ctrl_new_std(ptr noundef nonnull %50, ptr noundef nonnull @ov2640_ctrl_ops, i32 noundef %53, i32 noundef 0, i32 noundef 1, i32 noundef 1, i32 noundef 0) #2
%55 = load i32, ptr @V4L2_CID_HFLIP, align 4, !tbaa !13
%56 = tail call i32 @v4l2_ctrl_new_std(ptr noundef nonnull %50, ptr noundef nonnull @ov2640_ctrl_ops, i32 noundef %55, i32 noundef 0, i32 noundef 1, i32 noundef 1, i32 noundef 0) #2
%57 = load i32, ptr @V4L2_CID_TEST_PATTERN, align 4, !tbaa !13
%58 = load i32, ptr @ov2640_test_pattern_menu, align 4, !tbaa !13
%59 = tail call i64 @ARRAY_SIZE(i32 noundef %58) #2
%60 = add nsw i64 %59, -1
%61 = load i32, ptr @ov2640_test_pattern_menu, align 4, !tbaa !13
%62 = tail call i32 @v4l2_ctrl_new_std_menu_items(ptr noundef nonnull %50, ptr noundef nonnull @ov2640_ctrl_ops, i32 noundef %57, i64 noundef %60, i32 noundef 0, i32 noundef 0, i32 noundef %61) #2
%63 = getelementptr inbounds i8, ptr %13, i64 32
store ptr %50, ptr %63, align 8, !tbaa !26
%64 = load i32, ptr %50, align 8, !tbaa !27
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %78
66: ; preds = %34
%67 = tail call i32 @ov2640_video_probe(ptr noundef nonnull %0) #2
%68 = icmp slt i32 %67, 0
br i1 %68, label %74, label %69
69: ; preds = %66
%70 = tail call i32 @v4l2_async_register_subdev(ptr noundef nonnull %41) #2
%71 = icmp slt i32 %70, 0
br i1 %71, label %74, label %72
72: ; preds = %69
%73 = tail call i32 @dev_info(ptr noundef %3, ptr noundef nonnull @.str.2) #2
br label %86
74: ; preds = %69, %66
%75 = phi i32 [ %67, %66 ], [ %70, %69 ]
%76 = getelementptr inbounds i8, ptr %13, i64 28
%77 = tail call i32 @media_entity_cleanup(ptr noundef nonnull %76) #2
br label %78
78: ; preds = %34, %74
%79 = phi i32 [ %75, %74 ], [ %64, %34 ]
%80 = tail call i32 @v4l2_ctrl_handler_free(ptr noundef nonnull %50) #2
%81 = tail call i32 @mutex_destroy(ptr noundef nonnull %48) #2
br label %82
82: ; preds = %31, %78
%83 = phi i32 [ %32, %31 ], [ %79, %78 ]
%84 = load i32, ptr %13, align 8, !tbaa !16
%85 = tail call i32 @clk_disable_unprepare(i32 noundef %84) #2
br label %86
86: ; preds = %28, %82, %72, %26, %15, %7
%87 = phi i32 [ %27, %26 ], [ %83, %82 ], [ 0, %72 ], [ %17, %15 ], [ %10, %7 ], [ %29, %28 ]
ret i32 %87
}
declare i32 @i2c_check_functionality(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @devm_clk_get(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @clk_prepare_enable(i32 noundef) local_unnamed_addr #1
declare i32 @ov2640_probe_dt(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ov2640_select_win(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_i2c_subdev_init(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mutex_init(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_ctrl_handler_init(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_ctrl_new_std(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_ctrl_new_std_menu_items(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @ARRAY_SIZE(i32 noundef) local_unnamed_addr #1
declare i32 @ov2640_video_probe(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_async_register_subdev(ptr noundef) local_unnamed_addr #1
declare i32 @dev_info(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @media_entity_cleanup(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_ctrl_handler_free(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @clk_disable_unprepare(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 8}
!7 = !{!"i2c_client", !8, i64 0, !12, i64 8}
!8 = !{!"TYPE_12__", !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!7, !9, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"ov2640_priv", !14, i64 0, !14, i64 4, !18, i64 8, !19, i64 24, !21, i64 40, !14, i64 44, !14, i64 48}
!18 = !{!"TYPE_14__", !14, i64 0, !12, i64 8}
!19 = !{!"TYPE_13__", !14, i64 0, !20, i64 4, !12, i64 8}
!20 = !{!"TYPE_15__", !14, i64 0}
!21 = !{!"TYPE_16__", !14, i64 0}
!22 = !{!17, !14, i64 48}
!23 = !{!17, !14, i64 44}
!24 = !{!17, !14, i64 24}
!25 = !{!17, !12, i64 16}
!26 = !{!17, !12, i64 32}
!27 = !{!17, !14, i64 8}
| linux_drivers_media_i2c_extr_ov2640.c_ov2640_probe |
; ModuleID = 'AnghaBench/freebsd/sys/riscv/riscv/extr_riscv_console.c_riscv_cnterm.c'
source_filename = "AnghaBench/freebsd/sys/riscv/riscv/extr_riscv_console.c_riscv_cnterm.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 @riscv_cnterm], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @riscv_cnterm(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/freebsd/sys/riscv/riscv/extr_riscv_console.c_riscv_cnterm.c'
source_filename = "AnghaBench/freebsd/sys/riscv/riscv/extr_riscv_console.c_riscv_cnterm.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 @riscv_cnterm], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @riscv_cnterm(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)"}
| freebsd_sys_riscv_riscv_extr_riscv_console.c_riscv_cnterm |
; ModuleID = 'AnghaBench/mimikatz/modules/extr_kull_m_acr.c_kull_m_arc_sendrecv.c'
source_filename = "AnghaBench/mimikatz/modules/extr_kull_m_acr.c_kull_m_arc_sendrecv.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, i64, i64 }
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@ACR_MAX_LEN = dso_local local_unnamed_addr constant i64 0, align 8
@.str = private unnamed_addr constant [8 x i32] [i32 65, i32 67, i32 82, i32 32, i32 32, i32 62, i32 32, i32 0], align 4
@.str.1 = private unnamed_addr constant [2 x i32] [i32 10, i32 0], align 4
@IOCTL_CCID_ESCAPE = dso_local local_unnamed_addr global i32 0, align 4
@SCARD_S_SUCCESS = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [8 x i32] [i32 65, i32 67, i32 82, i32 32, i32 32, i32 60, i32 32, i32 0], align 4
@.str.3 = private unnamed_addr constant [12 x i32] [i32 37, i32 115, i32 58, i32 32, i32 48, i32 120, i32 37, i32 48, i32 56, i32 120, i32 10, i32 0], align 4
@.str.4 = private unnamed_addr constant [13 x i32] [i32 83, i32 67, i32 97, i32 114, i32 100, i32 67, i32 111, i32 110, i32 116, i32 114, i32 111, i32 108, i32 0], align 4
@.str.5 = private unnamed_addr constant [14 x i32] [i32 83, i32 67, i32 97, i32 114, i32 100, i32 84, i32 114, i32 97, i32 110, i32 115, i32 109, i32 105, i32 116, i32 0], align 4
@.str.6 = private unnamed_addr constant [44 x i32] [i32 99, i32 98, i32 68, i32 97, i32 116, i32 97, i32 32, i32 61, i32 32, i32 37, i32 104, i32 117, i32 32, i32 47, i32 32, i32 99, i32 98, i32 82, i32 101, i32 115, i32 117, i32 108, i32 116, i32 32, i32 61, i32 32, i32 37, i32 104, i32 117, i32 32, i32 40, i32 109, i32 97, i32 120, i32 32, i32 105, i32 115, i32 32, i32 37, i32 104, i32 117, i32 41, i32 10, i32 0], align 4
@.str.7 = private unnamed_addr constant [19 x i32] [i32 78, i32 111, i32 32, i32 104, i32 97, i32 110, i32 100, i32 108, i32 101, i32 32, i32 116, i32 111, i32 32, i32 67, i32 97, i32 114, i32 100, i32 10, i32 0], align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @kull_m_arc_sendrecv(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = alloca i64, align 8
%7 = load i32, ptr @FALSE, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%8 = load i64, ptr %4, align 8, !tbaa !9
store i64 %8, ptr %6, align 8, !tbaa !9
%9 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 2
%10 = load i64, ptr %9, align 8, !tbaa !11
%11 = icmp eq i64 %10, 0
br i1 %11, label %56, label %12
12: ; preds = %5
%13 = icmp slt i64 %2, 1
br i1 %13, label %14, label %54
14: ; preds = %12
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%16 = load i64, ptr %15, align 8, !tbaa !13
%17 = icmp eq i64 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %14
%19 = tail call i32 @kprintf(ptr noundef nonnull @.str) #3
%20 = tail call i32 @kull_m_string_wprintf_hex(ptr noundef %1, i64 noundef %2, i32 noundef 1) #3
%21 = tail call i32 @kprintf(ptr noundef nonnull @.str.1) #3
br label %22
22: ; preds = %18, %14
%23 = load i64, ptr %0, align 8, !tbaa !14
%24 = icmp eq i64 %23, 0
%25 = load i64, ptr %9, align 8, !tbaa !11
br i1 %24, label %30, label %26
26: ; preds = %22
%27 = load i32, ptr @IOCTL_CCID_ESCAPE, align 4, !tbaa !5
%28 = load i64, ptr %4, align 8, !tbaa !9
%29 = call i64 @SCardControl(i64 noundef %25, i32 noundef %27, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %28, ptr noundef nonnull %6) #3
br label %32
30: ; preds = %22
%31 = call i64 @SCardTransmit(i64 noundef %25, ptr noundef null, ptr noundef %1, i64 noundef %2, ptr noundef null, ptr noundef %3, ptr noundef nonnull %6) #3
br label %32
32: ; preds = %30, %26
%33 = phi i64 [ %29, %26 ], [ %31, %30 ]
%34 = load i64, ptr @SCARD_S_SUCCESS, align 8, !tbaa !9
%35 = icmp eq i64 %33, %34
br i1 %35, label %36, label %49
36: ; preds = %32
%37 = load i64, ptr %15, align 8, !tbaa !13
%38 = icmp eq i64 %37, 0
br i1 %38, label %44, label %39
39: ; preds = %36
%40 = call i32 @kprintf(ptr noundef nonnull @.str.2) #3
%41 = load i64, ptr %6, align 8, !tbaa !9
%42 = call i32 @kull_m_string_wprintf_hex(ptr noundef %3, i64 noundef %41, i32 noundef 1) #3
%43 = call i32 @kprintf(ptr noundef nonnull @.str.1) #3
br label %44
44: ; preds = %39, %36
%45 = load i64, ptr %6, align 8, !tbaa !9
%46 = load i64, ptr %4, align 8, !tbaa !9
%47 = icmp sgt i64 %45, %46
br i1 %47, label %58, label %48
48: ; preds = %44
store i64 %45, ptr %4, align 8, !tbaa !9
br label %58
49: ; preds = %32
%50 = load i64, ptr %0, align 8, !tbaa !14
%51 = icmp eq i64 %50, 0
%52 = select i1 %51, ptr @.str.5, ptr @.str.4
%53 = call i32 (ptr, ...) @PRINT_ERROR(ptr noundef nonnull @.str.3, ptr noundef nonnull %52, i64 noundef %33) #3
br label %58
54: ; preds = %12
%55 = tail call i32 (ptr, ...) @PRINT_ERROR(ptr noundef nonnull @.str.6, i64 noundef %2, ptr noundef nonnull %4, i64 noundef 0) #3
br label %58
56: ; preds = %5
%57 = tail call i32 (ptr, ...) @PRINT_ERROR(ptr noundef nonnull @.str.7) #3
br label %58
58: ; preds = %54, %44, %48, %49, %56
%59 = phi i32 [ 1, %48 ], [ 0, %44 ], [ %7, %49 ], [ %7, %54 ], [ %7, %56 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret i32 %59
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @kprintf(ptr noundef) local_unnamed_addr #2
declare i32 @kull_m_string_wprintf_hex(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @SCardControl(i64 noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @SCardTransmit(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @PRINT_ERROR(ptr noundef, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"TYPE_3__", !10, i64 0, !10, i64 8, !10, i64 16}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 0}
| ; ModuleID = 'AnghaBench/mimikatz/modules/extr_kull_m_acr.c_kull_m_arc_sendrecv.c'
source_filename = "AnghaBench/mimikatz/modules/extr_kull_m_acr.c_kull_m_arc_sendrecv.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
@ACR_MAX_LEN = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [8 x i32] [i32 65, i32 67, i32 82, i32 32, i32 32, i32 62, i32 32, i32 0], align 4
@.str.1 = private unnamed_addr constant [2 x i32] [i32 10, i32 0], align 4
@IOCTL_CCID_ESCAPE = common local_unnamed_addr global i32 0, align 4
@SCARD_S_SUCCESS = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [8 x i32] [i32 65, i32 67, i32 82, i32 32, i32 32, i32 60, i32 32, i32 0], align 4
@.str.3 = private unnamed_addr constant [12 x i32] [i32 37, i32 115, i32 58, i32 32, i32 48, i32 120, i32 37, i32 48, i32 56, i32 120, i32 10, i32 0], align 4
@.str.4 = private unnamed_addr constant [13 x i32] [i32 83, i32 67, i32 97, i32 114, i32 100, i32 67, i32 111, i32 110, i32 116, i32 114, i32 111, i32 108, i32 0], align 4
@.str.5 = private unnamed_addr constant [14 x i32] [i32 83, i32 67, i32 97, i32 114, i32 100, i32 84, i32 114, i32 97, i32 110, i32 115, i32 109, i32 105, i32 116, i32 0], align 4
@.str.6 = private unnamed_addr constant [44 x i32] [i32 99, i32 98, i32 68, i32 97, i32 116, i32 97, i32 32, i32 61, i32 32, i32 37, i32 104, i32 117, i32 32, i32 47, i32 32, i32 99, i32 98, i32 82, i32 101, i32 115, i32 117, i32 108, i32 116, i32 32, i32 61, i32 32, i32 37, i32 104, i32 117, i32 32, i32 40, i32 109, i32 97, i32 120, i32 32, i32 105, i32 115, i32 32, i32 37, i32 104, i32 117, i32 41, i32 10, i32 0], align 4
@.str.7 = private unnamed_addr constant [19 x i32] [i32 78, i32 111, i32 32, i32 104, i32 97, i32 110, i32 100, i32 108, i32 101, i32 32, i32 116, i32 111, i32 32, i32 67, i32 97, i32 114, i32 100, i32 10, i32 0], align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @kull_m_arc_sendrecv(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = alloca i64, align 8
%7 = load i32, ptr @FALSE, align 4, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%8 = load i64, ptr %4, align 8, !tbaa !10
store i64 %8, ptr %6, align 8, !tbaa !10
%9 = getelementptr inbounds i8, ptr %0, i64 16
%10 = load i64, ptr %9, align 8, !tbaa !12
%11 = icmp eq i64 %10, 0
br i1 %11, label %57, label %12
12: ; preds = %5
%13 = load i64, ptr @ACR_MAX_LEN, align 8, !tbaa !10
%14 = icmp slt i64 %13, %2
br i1 %14, label %55, label %15
15: ; preds = %12
%16 = getelementptr inbounds i8, ptr %0, i64 8
%17 = load i64, ptr %16, align 8, !tbaa !14
%18 = icmp eq i64 %17, 0
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = tail call i32 @kprintf(ptr noundef nonnull @.str) #3
%21 = tail call i32 @kull_m_string_wprintf_hex(ptr noundef %1, i64 noundef %2, i32 noundef 1) #3
%22 = tail call i32 @kprintf(ptr noundef nonnull @.str.1) #3
br label %23
23: ; preds = %19, %15
%24 = load i64, ptr %0, align 8, !tbaa !15
%25 = icmp eq i64 %24, 0
%26 = load i64, ptr %9, align 8, !tbaa !12
br i1 %25, label %31, label %27
27: ; preds = %23
%28 = load i32, ptr @IOCTL_CCID_ESCAPE, align 4, !tbaa !6
%29 = load i64, ptr %4, align 8, !tbaa !10
%30 = call i64 @SCardControl(i64 noundef %26, i32 noundef %28, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %29, ptr noundef nonnull %6) #3
br label %33
31: ; preds = %23
%32 = call i64 @SCardTransmit(i64 noundef %26, ptr noundef null, ptr noundef %1, i64 noundef %2, ptr noundef null, ptr noundef %3, ptr noundef nonnull %6) #3
br label %33
33: ; preds = %31, %27
%34 = phi i64 [ %30, %27 ], [ %32, %31 ]
%35 = load i64, ptr @SCARD_S_SUCCESS, align 8, !tbaa !10
%36 = icmp eq i64 %34, %35
br i1 %36, label %37, label %50
37: ; preds = %33
%38 = load i64, ptr %16, align 8, !tbaa !14
%39 = icmp eq i64 %38, 0
br i1 %39, label %45, label %40
40: ; preds = %37
%41 = call i32 @kprintf(ptr noundef nonnull @.str.2) #3
%42 = load i64, ptr %6, align 8, !tbaa !10
%43 = call i32 @kull_m_string_wprintf_hex(ptr noundef %3, i64 noundef %42, i32 noundef 1) #3
%44 = call i32 @kprintf(ptr noundef nonnull @.str.1) #3
br label %45
45: ; preds = %40, %37
%46 = load i64, ptr %6, align 8, !tbaa !10
%47 = load i64, ptr %4, align 8, !tbaa !10
%48 = icmp sgt i64 %46, %47
br i1 %48, label %59, label %49
49: ; preds = %45
store i64 %46, ptr %4, align 8, !tbaa !10
br label %59
50: ; preds = %33
%51 = load i64, ptr %0, align 8, !tbaa !15
%52 = icmp eq i64 %51, 0
%53 = select i1 %52, ptr @.str.5, ptr @.str.4
%54 = call i32 (ptr, ...) @PRINT_ERROR(ptr noundef nonnull @.str.3, ptr noundef nonnull %53, i64 noundef %34) #3
br label %59
55: ; preds = %12
%56 = tail call i32 (ptr, ...) @PRINT_ERROR(ptr noundef nonnull @.str.6, i64 noundef %2, ptr noundef nonnull %4, i64 noundef %13) #3
br label %59
57: ; preds = %5
%58 = tail call i32 (ptr, ...) @PRINT_ERROR(ptr noundef nonnull @.str.7) #3
br label %59
59: ; preds = %55, %45, %49, %50, %57
%60 = phi i32 [ 1, %49 ], [ 0, %45 ], [ %7, %50 ], [ %7, %55 ], [ %7, %57 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret i32 %60
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @kprintf(ptr noundef) local_unnamed_addr #2
declare i32 @kull_m_string_wprintf_hex(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @SCardControl(i64 noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @SCardTransmit(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @PRINT_ERROR(ptr noundef, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !11, i64 16}
!13 = !{!"TYPE_3__", !11, i64 0, !11, i64 8, !11, i64 16}
!14 = !{!13, !11, i64 8}
!15 = !{!13, !11, i64 0}
| mimikatz_modules_extr_kull_m_acr.c_kull_m_arc_sendrecv |
; ModuleID = 'AnghaBench/TDengine/src/system/detail/src/extr_vnodeQueryImpl.c_allocNewPage.c'
source_filename = "AnghaBench/TDengine/src/system/detail/src/extr_vnodeQueryImpl.c_allocNewPage.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, i32, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @allocNewPage], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @allocNewPage(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
%5 = load i32, ptr %4, align 4, !tbaa !11
%6 = add nsw i32 %5, -1
%7 = icmp eq i32 %3, %6
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = sext i32 %5 to i64
%10 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%11 = load i64, ptr %10, align 8, !tbaa !12
%12 = add nsw i64 %11, %9
%13 = tail call i32 @extendDiskBuf(ptr noundef nonnull %0, i64 noundef %12) #2
%14 = load i32, ptr %0, align 8, !tbaa !5
br label %15
15: ; preds = %8, %2
%16 = phi i32 [ %14, %8 ], [ %3, %2 ]
%17 = add nsw i32 %16, 1
store i32 %17, ptr %0, align 8, !tbaa !5
store i32 %17, ptr %1, align 4, !tbaa !13
%18 = tail call ptr @getFilePage(ptr noundef nonnull %0, i32 noundef %17) #2
ret ptr %18
}
declare i32 @extendDiskBuf(ptr noundef, i64 noundef) local_unnamed_addr #1
declare ptr @getFilePage(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_5__", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 8}
!13 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/TDengine/src/system/detail/src/extr_vnodeQueryImpl.c_allocNewPage.c'
source_filename = "AnghaBench/TDengine/src/system/detail/src/extr_vnodeQueryImpl.c_allocNewPage.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 @allocNewPage], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @allocNewPage(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 4
%5 = load i32, ptr %4, align 4, !tbaa !12
%6 = add nsw i32 %5, -1
%7 = icmp eq i32 %3, %6
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = sext i32 %5 to i64
%10 = getelementptr inbounds i8, ptr %0, i64 8
%11 = load i64, ptr %10, align 8, !tbaa !13
%12 = add nsw i64 %11, %9
%13 = tail call i32 @extendDiskBuf(ptr noundef nonnull %0, i64 noundef %12) #2
%14 = load i32, ptr %0, align 8, !tbaa !6
br label %15
15: ; preds = %8, %2
%16 = phi i32 [ %14, %8 ], [ %3, %2 ]
%17 = add nsw i32 %16, 1
store i32 %17, ptr %0, align 8, !tbaa !6
store i32 %17, ptr %1, align 4, !tbaa !14
%18 = tail call ptr @getFilePage(ptr noundef nonnull %0, i32 noundef %17) #2
ret ptr %18
}
declare i32 @extendDiskBuf(ptr noundef, i64 noundef) local_unnamed_addr #1
declare ptr @getFilePage(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_5__", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!7, !8, i64 4}
!13 = !{!7, !11, i64 8}
!14 = !{!8, !8, i64 0}
| TDengine_src_system_detail_src_extr_vnodeQueryImpl.c_allocNewPage |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/netfilter/extr_nfnetlink_log.c_instance_lookup_get.c'
source_filename = "AnghaBench/fastsocket/kernel/net/netfilter/extr_nfnetlink_log.c_instance_lookup_get.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@instances_lock = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @instance_lookup_get], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @instance_lookup_get(i32 noundef %0) #0 {
%2 = tail call i32 @read_lock_bh(ptr noundef nonnull @instances_lock) #2
%3 = tail call ptr @__instance_lookup(i32 noundef %0) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 @instance_get(ptr noundef nonnull %3) #2
br label %7
7: ; preds = %5, %1
%8 = tail call i32 @read_unlock_bh(ptr noundef nonnull @instances_lock) #2
ret ptr %3
}
declare i32 @read_lock_bh(ptr noundef) local_unnamed_addr #1
declare ptr @__instance_lookup(i32 noundef) local_unnamed_addr #1
declare i32 @instance_get(ptr noundef) local_unnamed_addr #1
declare i32 @read_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)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/netfilter/extr_nfnetlink_log.c_instance_lookup_get.c'
source_filename = "AnghaBench/fastsocket/kernel/net/netfilter/extr_nfnetlink_log.c_instance_lookup_get.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@instances_lock = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @instance_lookup_get], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @instance_lookup_get(i32 noundef %0) #0 {
%2 = tail call i32 @read_lock_bh(ptr noundef nonnull @instances_lock) #2
%3 = tail call ptr @__instance_lookup(i32 noundef %0) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 @instance_get(ptr noundef nonnull %3) #2
br label %7
7: ; preds = %5, %1
%8 = tail call i32 @read_unlock_bh(ptr noundef nonnull @instances_lock) #2
ret ptr %3
}
declare i32 @read_lock_bh(ptr noundef) local_unnamed_addr #1
declare ptr @__instance_lookup(i32 noundef) local_unnamed_addr #1
declare i32 @instance_get(ptr noundef) local_unnamed_addr #1
declare i32 @read_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)"}
| fastsocket_kernel_net_netfilter_extr_nfnetlink_log.c_instance_lookup_get |
; ModuleID = 'AnghaBench/freebsd/sys/arm/samsung/exynos/extr_exynos_uart.c_exynos4210_bus_ioctl.c'
source_filename = "AnghaBench/freebsd/sys/arm/samsung/exynos/extr_exynos_uart.c_exynos4210_bus_ioctl.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"
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @exynos4210_bus_ioctl], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @exynos4210_bus_ioctl(ptr nocapture readnone %0, i32 %1, i64 %2) #0 {
%4 = load i32, ptr @EINVAL, align 4, !tbaa !5
ret i32 %4
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/arm/samsung/exynos/extr_exynos_uart.c_exynos4210_bus_ioctl.c'
source_filename = "AnghaBench/freebsd/sys/arm/samsung/exynos/extr_exynos_uart.c_exynos4210_bus_ioctl.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @exynos4210_bus_ioctl], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal i32 @exynos4210_bus_ioctl(ptr nocapture readnone %0, i32 %1, i64 %2) #0 {
%4 = load i32, ptr @EINVAL, align 4, !tbaa !6
ret i32 %4
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_arm_samsung_exynos_extr_exynos_uart.c_exynos4210_bus_ioctl |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/korg1212/extr_korg1212.c_snd_korg1212_control_put.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/korg1212/extr_korg1212.c_snd_korg1212_control_put.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.snd_korg1212 = type { i64, i64, i32 }
@k1212MinADCSens = dso_local local_unnamed_addr global i64 0, align 8
@k1212MaxADCSens = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_korg1212_control_put], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @snd_korg1212_control_put(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @snd_kcontrol_chip(ptr noundef %0) #2
%4 = getelementptr inbounds %struct.snd_korg1212, ptr %3, i64 0, i32 2
%5 = tail call i32 @spin_lock_irq(ptr noundef nonnull %4) #2
%6 = load ptr, ptr %1, align 8, !tbaa !5
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = load i64, ptr @k1212MinADCSens, align 8, !tbaa !12
%9 = icmp slt i64 %7, %8
%10 = load i64, ptr @k1212MaxADCSens, align 8
%11 = icmp sgt i64 %7, %10
%12 = select i1 %9, i1 true, i1 %11
br i1 %12, label %19, label %13
13: ; preds = %2
%14 = load i64, ptr %3, align 8, !tbaa !14
%15 = icmp eq i64 %7, %14
br i1 %15, label %19, label %16
16: ; preds = %13
store i64 %7, ptr %3, align 8, !tbaa !14
%17 = load i64, ptr @k1212MinADCSens, align 8, !tbaa !12
%18 = load i64, ptr @k1212MaxADCSens, align 8
br label %19
19: ; preds = %16, %13, %2
%20 = phi i64 [ %18, %16 ], [ %10, %13 ], [ %10, %2 ]
%21 = phi i64 [ %17, %16 ], [ %8, %13 ], [ %8, %2 ]
%22 = phi i1 [ false, %16 ], [ true, %13 ], [ true, %2 ]
%23 = getelementptr inbounds i64, ptr %6, i64 1
%24 = load i64, ptr %23, align 8, !tbaa !12
%25 = icmp slt i64 %24, %21
%26 = icmp sgt i64 %24, %20
%27 = select i1 %25, i1 true, i1 %26
br i1 %27, label %34, label %28
28: ; preds = %19
%29 = getelementptr inbounds %struct.snd_korg1212, ptr %3, i64 0, i32 1
%30 = load i64, ptr %29, align 8, !tbaa !17
%31 = icmp eq i64 %24, %30
br i1 %31, label %34, label %32
32: ; preds = %28
store i64 %24, ptr %29, align 8, !tbaa !17
%33 = tail call i32 @spin_unlock_irq(ptr noundef nonnull %4) #2
br label %36
34: ; preds = %28, %19
%35 = tail call i32 @spin_unlock_irq(ptr noundef nonnull %4) #2
br i1 %22, label %38, label %36
36: ; preds = %32, %34
%37 = tail call i32 @snd_korg1212_WriteADCSensitivity(ptr noundef %3) #2
br label %38
38: ; preds = %36, %34
%39 = phi i32 [ 1, %36 ], [ 0, %34 ]
ret i32 %39
}
declare ptr @snd_kcontrol_chip(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @snd_korg1212_WriteADCSensitivity(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, !9, i64 0}
!6 = !{!"snd_ctl_elem_value", !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"}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !10, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"snd_korg1212", !13, i64 0, !13, i64 8, !16, i64 16}
!16 = !{!"int", !10, i64 0}
!17 = !{!15, !13, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/korg1212/extr_korg1212.c_snd_korg1212_control_put.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/korg1212/extr_korg1212.c_snd_korg1212_control_put.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@k1212MinADCSens = common local_unnamed_addr global i64 0, align 8
@k1212MaxADCSens = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @snd_korg1212_control_put], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @snd_korg1212_control_put(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @snd_kcontrol_chip(ptr noundef %0) #2
%4 = getelementptr inbounds i8, ptr %3, i64 16
%5 = tail call i32 @spin_lock_irq(ptr noundef nonnull %4) #2
%6 = load ptr, ptr %1, align 8, !tbaa !6
%7 = load i64, ptr %6, align 8, !tbaa !13
%8 = load i64, ptr @k1212MinADCSens, align 8, !tbaa !13
%9 = icmp slt i64 %7, %8
%10 = load i64, ptr @k1212MaxADCSens, align 8
%11 = icmp sgt i64 %7, %10
%12 = select i1 %9, i1 true, i1 %11
br i1 %12, label %19, label %13
13: ; preds = %2
%14 = load i64, ptr %3, align 8, !tbaa !15
%15 = icmp eq i64 %7, %14
br i1 %15, label %19, label %16
16: ; preds = %13
store i64 %7, ptr %3, align 8, !tbaa !15
%17 = load i64, ptr @k1212MinADCSens, align 8, !tbaa !13
%18 = load i64, ptr @k1212MaxADCSens, align 8
br label %19
19: ; preds = %16, %13, %2
%20 = phi i64 [ %18, %16 ], [ %10, %13 ], [ %10, %2 ]
%21 = phi i64 [ %17, %16 ], [ %8, %13 ], [ %8, %2 ]
%22 = phi i1 [ false, %16 ], [ true, %13 ], [ true, %2 ]
%23 = getelementptr inbounds i8, ptr %6, i64 8
%24 = load i64, ptr %23, align 8, !tbaa !13
%25 = icmp slt i64 %24, %21
%26 = icmp sgt i64 %24, %20
%27 = select i1 %25, i1 true, i1 %26
br i1 %27, label %34, label %28
28: ; preds = %19
%29 = getelementptr inbounds i8, ptr %3, i64 8
%30 = load i64, ptr %29, align 8, !tbaa !18
%31 = icmp eq i64 %24, %30
br i1 %31, label %34, label %32
32: ; preds = %28
store i64 %24, ptr %29, align 8, !tbaa !18
%33 = tail call i32 @spin_unlock_irq(ptr noundef nonnull %4) #2
br label %36
34: ; preds = %28, %19
%35 = tail call i32 @spin_unlock_irq(ptr noundef nonnull %4) #2
br i1 %22, label %38, label %36
36: ; preds = %32, %34
%37 = tail call i32 @snd_korg1212_WriteADCSensitivity(ptr noundef %3) #2
br label %38
38: ; preds = %36, %34
%39 = phi i32 [ 1, %36 ], [ 0, %34 ]
ret i32 %39
}
declare ptr @snd_kcontrol_chip(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @snd_korg1212_WriteADCSensitivity(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, !10, i64 0}
!7 = !{!"snd_ctl_elem_value", !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"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !11, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"snd_korg1212", !14, i64 0, !14, i64 8, !17, i64 16}
!17 = !{!"int", !11, i64 0}
!18 = !{!16, !14, i64 8}
| fastsocket_kernel_sound_pci_korg1212_extr_korg1212.c_snd_korg1212_control_put |
; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/riched20/extr_richole.c_test_ITextSelection_GetFont.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/riched20/extr_richole.c_test_ITextSelection_GetFont.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"
@test_ITextSelection_GetFont.test_text1 = internal constant [13 x i8] c"TestSomeText\00", align 1
@WM_SETTEXT = dso_local local_unnamed_addr global i32 0, align 4
@EM_SETSEL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"got wrong ref count: %d\0A\00", align 1
@S_OK = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [24 x i8] c"ITextSelection_GetFont\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"A new pointer should be return\0A\00", align 1
@CO_E_RELEASED = dso_local local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [41 x i8] c"ITextFont after ITextDocument destroyed\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @test_ITextSelection_GetFont], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @test_ITextSelection_GetFont() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
store ptr null, ptr %2, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
store ptr null, ptr %3, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
store ptr null, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
store ptr null, ptr %5, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
store ptr null, ptr %6, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
%8 = call i32 @create_interfaces(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
%9 = load i32, ptr %1, align 4, !tbaa !9
%10 = load i32, ptr @WM_SETTEXT, align 4, !tbaa !9
%11 = call i32 @SendMessageA(i32 noundef %9, i32 noundef %10, i32 noundef 0, i32 noundef ptrtoint (ptr @test_ITextSelection_GetFont.test_text1 to i32)) #3
%12 = load i32, ptr %1, align 4, !tbaa !9
%13 = load i32, ptr @EM_SETSEL, align 4, !tbaa !9
%14 = call i32 @SendMessageA(i32 noundef %12, i32 noundef %13, i32 noundef 4, i32 noundef 4) #3
%15 = load ptr, ptr %4, align 8, !tbaa !5
%16 = call i32 @get_refcount(ptr noundef %15) #3
%17 = icmp eq i32 %16, 2
%18 = zext i1 %17 to i32
%19 = call i32 (i32, ptr, ...) @ok(i32 noundef %18, ptr noundef nonnull @.str, i32 noundef %16) #3
%20 = load ptr, ptr %4, align 8, !tbaa !5
%21 = call i64 @ITextSelection_GetFont(ptr noundef %20, ptr noundef nonnull %5) #3
%22 = load i64, ptr @S_OK, align 8, !tbaa !11
%23 = icmp eq i64 %21, %22
%24 = zext i1 %23 to i32
%25 = call i32 (i32, ptr, ...) @ok(i32 noundef %24, ptr noundef nonnull @.str.1) #3
%26 = load ptr, ptr %5, align 8, !tbaa !5
%27 = call i32 @get_refcount(ptr noundef %26) #3
%28 = icmp eq i32 %27, 1
%29 = zext i1 %28 to i32
%30 = call i32 (i32, ptr, ...) @ok(i32 noundef %29, ptr noundef nonnull @.str, i32 noundef %27) #3
%31 = load ptr, ptr %4, align 8, !tbaa !5
%32 = call i32 @get_refcount(ptr noundef %31) #3
%33 = icmp eq i32 %32, 3
%34 = zext i1 %33 to i32
%35 = call i32 (i32, ptr, ...) @ok(i32 noundef %34, ptr noundef nonnull @.str, i32 noundef %32) #3
%36 = load ptr, ptr %4, align 8, !tbaa !5
%37 = call i64 @ITextSelection_GetFont(ptr noundef %36, ptr noundef nonnull %6) #3
%38 = load i64, ptr @S_OK, align 8, !tbaa !11
%39 = icmp eq i64 %37, %38
%40 = zext i1 %39 to i32
%41 = call i32 (i32, ptr, ...) @ok(i32 noundef %40, ptr noundef nonnull @.str.1) #3
%42 = load ptr, ptr %6, align 8, !tbaa !5
%43 = load ptr, ptr %5, align 8, !tbaa !5
%44 = icmp ne ptr %42, %43
%45 = zext i1 %44 to i32
%46 = call i32 (i32, ptr, ...) @ok(i32 noundef %45, ptr noundef nonnull @.str.2) #3
%47 = load ptr, ptr %6, align 8, !tbaa !5
%48 = call i32 @get_refcount(ptr noundef %47) #3
%49 = icmp eq i32 %48, 1
%50 = zext i1 %49 to i32
%51 = call i32 (i32, ptr, ...) @ok(i32 noundef %50, ptr noundef nonnull @.str, i32 noundef %48) #3
%52 = load ptr, ptr %6, align 8, !tbaa !5
%53 = call i32 @ITextFont_Release(ptr noundef %52) #3
%54 = load ptr, ptr %4, align 8, !tbaa !5
%55 = call i32 @get_refcount(ptr noundef %54) #3
%56 = icmp eq i32 %55, 3
%57 = zext i1 %56 to i32
%58 = call i32 (i32, ptr, ...) @ok(i32 noundef %57, ptr noundef nonnull @.str, i32 noundef %55) #3
%59 = call i32 @release_interfaces(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
%60 = load ptr, ptr %5, align 8, !tbaa !5
%61 = call i64 @ITextFont_GetOutline(ptr noundef %60, ptr noundef nonnull %7) #3
%62 = load i64, ptr @CO_E_RELEASED, align 8, !tbaa !11
%63 = icmp eq i64 %61, %62
%64 = zext i1 %63 to i32
%65 = call i32 (i32, ptr, ...) @ok(i32 noundef %64, ptr noundef nonnull @.str.3) #3
%66 = load ptr, ptr %5, align 8, !tbaa !5
%67 = call i32 @ITextFont_Release(ptr noundef %66) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @create_interfaces(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SendMessageA(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @get_refcount(ptr noundef) local_unnamed_addr #2
declare i32 @ok(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i64 @ITextSelection_GetFont(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ITextFont_Release(ptr noundef) local_unnamed_addr #2
declare i32 @release_interfaces(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ITextFont_GetOutline(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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/riched20/extr_richole.c_test_ITextSelection_GetFont.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/riched20/extr_richole.c_test_ITextSelection_GetFont.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@test_ITextSelection_GetFont.test_text1 = internal constant [13 x i8] c"TestSomeText\00", align 1
@WM_SETTEXT = common local_unnamed_addr global i32 0, align 4
@EM_SETSEL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"got wrong ref count: %d\0A\00", align 1
@S_OK = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [24 x i8] c"ITextSelection_GetFont\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"A new pointer should be return\0A\00", align 1
@CO_E_RELEASED = common local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [41 x i8] c"ITextFont after ITextDocument destroyed\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @test_ITextSelection_GetFont], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @test_ITextSelection_GetFont() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
store ptr null, ptr %2, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
store ptr null, ptr %3, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
store ptr null, ptr %4, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
store ptr null, ptr %5, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
store ptr null, ptr %6, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
%8 = call i32 @create_interfaces(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
%9 = load i32, ptr %1, align 4, !tbaa !10
%10 = load i32, ptr @WM_SETTEXT, align 4, !tbaa !10
%11 = call i32 @SendMessageA(i32 noundef %9, i32 noundef %10, i32 noundef 0, i32 noundef ptrtoint (ptr @test_ITextSelection_GetFont.test_text1 to i32)) #3
%12 = load i32, ptr %1, align 4, !tbaa !10
%13 = load i32, ptr @EM_SETSEL, align 4, !tbaa !10
%14 = call i32 @SendMessageA(i32 noundef %12, i32 noundef %13, i32 noundef 4, i32 noundef 4) #3
%15 = load ptr, ptr %4, align 8, !tbaa !6
%16 = call i32 @get_refcount(ptr noundef %15) #3
%17 = icmp eq i32 %16, 2
%18 = zext i1 %17 to i32
%19 = call i32 (i32, ptr, ...) @ok(i32 noundef %18, ptr noundef nonnull @.str, i32 noundef %16) #3
%20 = load ptr, ptr %4, align 8, !tbaa !6
%21 = call i64 @ITextSelection_GetFont(ptr noundef %20, ptr noundef nonnull %5) #3
%22 = load i64, ptr @S_OK, align 8, !tbaa !12
%23 = icmp eq i64 %21, %22
%24 = zext i1 %23 to i32
%25 = call i32 (i32, ptr, ...) @ok(i32 noundef %24, ptr noundef nonnull @.str.1) #3
%26 = load ptr, ptr %5, align 8, !tbaa !6
%27 = call i32 @get_refcount(ptr noundef %26) #3
%28 = icmp eq i32 %27, 1
%29 = zext i1 %28 to i32
%30 = call i32 (i32, ptr, ...) @ok(i32 noundef %29, ptr noundef nonnull @.str, i32 noundef %27) #3
%31 = load ptr, ptr %4, align 8, !tbaa !6
%32 = call i32 @get_refcount(ptr noundef %31) #3
%33 = icmp eq i32 %32, 3
%34 = zext i1 %33 to i32
%35 = call i32 (i32, ptr, ...) @ok(i32 noundef %34, ptr noundef nonnull @.str, i32 noundef %32) #3
%36 = load ptr, ptr %4, align 8, !tbaa !6
%37 = call i64 @ITextSelection_GetFont(ptr noundef %36, ptr noundef nonnull %6) #3
%38 = load i64, ptr @S_OK, align 8, !tbaa !12
%39 = icmp eq i64 %37, %38
%40 = zext i1 %39 to i32
%41 = call i32 (i32, ptr, ...) @ok(i32 noundef %40, ptr noundef nonnull @.str.1) #3
%42 = load ptr, ptr %6, align 8, !tbaa !6
%43 = load ptr, ptr %5, align 8, !tbaa !6
%44 = icmp ne ptr %42, %43
%45 = zext i1 %44 to i32
%46 = call i32 (i32, ptr, ...) @ok(i32 noundef %45, ptr noundef nonnull @.str.2) #3
%47 = load ptr, ptr %6, align 8, !tbaa !6
%48 = call i32 @get_refcount(ptr noundef %47) #3
%49 = icmp eq i32 %48, 1
%50 = zext i1 %49 to i32
%51 = call i32 (i32, ptr, ...) @ok(i32 noundef %50, ptr noundef nonnull @.str, i32 noundef %48) #3
%52 = load ptr, ptr %6, align 8, !tbaa !6
%53 = call i32 @ITextFont_Release(ptr noundef %52) #3
%54 = load ptr, ptr %4, align 8, !tbaa !6
%55 = call i32 @get_refcount(ptr noundef %54) #3
%56 = icmp eq i32 %55, 3
%57 = zext i1 %56 to i32
%58 = call i32 (i32, ptr, ...) @ok(i32 noundef %57, ptr noundef nonnull @.str, i32 noundef %55) #3
%59 = call i32 @release_interfaces(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
%60 = load ptr, ptr %5, align 8, !tbaa !6
%61 = call i64 @ITextFont_GetOutline(ptr noundef %60, ptr noundef nonnull %7) #3
%62 = load i64, ptr @CO_E_RELEASED, align 8, !tbaa !12
%63 = icmp eq i64 %61, %62
%64 = zext i1 %63 to i32
%65 = call i32 (i32, ptr, ...) @ok(i32 noundef %64, ptr noundef nonnull @.str.3) #3
%66 = load ptr, ptr %5, align 8, !tbaa !6
%67 = call i32 @ITextFont_Release(ptr noundef %66) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @create_interfaces(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SendMessageA(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @get_refcount(ptr noundef) local_unnamed_addr #2
declare i32 @ok(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i64 @ITextSelection_GetFont(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ITextFont_Release(ptr noundef) local_unnamed_addr #2
declare i32 @release_interfaces(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ITextFont_GetOutline(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, !13, i64 0}
!13 = !{!"long", !8, i64 0}
| reactos_modules_rostests_winetests_riched20_extr_richole.c_test_ITextSelection_GetFont |
; ModuleID = 'AnghaBench/linux/kernel/locking/extr_osq_lock.c_osq_unlock.c'
source_filename = "AnghaBench/linux/kernel/locking/extr_osq_lock.c_osq_unlock.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.optimistic_spin_node = type { i32, i32 }
@OSQ_UNLOCKED_VAL = dso_local local_unnamed_addr global i32 0, align 4
@osq_node = dso_local global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @osq_unlock(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 (...) @smp_processor_id() #2
%3 = tail call i32 @encode_cpu(i32 noundef %2) #2
%4 = load i32, ptr @OSQ_UNLOCKED_VAL, align 4, !tbaa !5
%5 = tail call i32 @atomic_cmpxchg_release(ptr noundef %0, i32 noundef %3, i32 noundef %4) #2
%6 = icmp eq i32 %5, %3
%7 = zext i1 %6 to i32
%8 = tail call i64 @likely(i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %22
10: ; preds = %1
%11 = tail call ptr @this_cpu_ptr(ptr noundef nonnull @osq_node) #2
%12 = getelementptr inbounds %struct.optimistic_spin_node, ptr %11, i64 0, i32 1
%13 = tail call ptr @xchg(ptr noundef nonnull %12, ptr noundef null) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = tail call ptr @osq_wait_next(ptr noundef %0, ptr noundef %11, ptr noundef null) #2
%17 = icmp eq ptr %16, null
br i1 %17, label %22, label %18
18: ; preds = %15, %10
%19 = phi ptr [ %13, %10 ], [ %16, %15 ]
%20 = load i32, ptr %19, align 4, !tbaa !9
%21 = tail call i32 @WRITE_ONCE(i32 noundef %20, i32 noundef 1) #2
br label %22
22: ; preds = %18, %15, %1
ret void
}
declare i32 @encode_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @smp_processor_id(...) local_unnamed_addr #1
declare i64 @likely(i32 noundef) local_unnamed_addr #1
declare i32 @atomic_cmpxchg_release(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @this_cpu_ptr(ptr noundef) local_unnamed_addr #1
declare ptr @xchg(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @WRITE_ONCE(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @osq_wait_next(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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 = !{!"optimistic_spin_node", !6, i64 0, !6, i64 4}
| ; ModuleID = 'AnghaBench/linux/kernel/locking/extr_osq_lock.c_osq_unlock.c'
source_filename = "AnghaBench/linux/kernel/locking/extr_osq_lock.c_osq_unlock.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OSQ_UNLOCKED_VAL = common local_unnamed_addr global i32 0, align 4
@osq_node = common global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @osq_unlock(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @smp_processor_id() #2
%3 = tail call i32 @encode_cpu(i32 noundef %2) #2
%4 = load i32, ptr @OSQ_UNLOCKED_VAL, align 4, !tbaa !6
%5 = tail call i32 @atomic_cmpxchg_release(ptr noundef %0, i32 noundef %3, i32 noundef %4) #2
%6 = icmp eq i32 %5, %3
%7 = zext i1 %6 to i32
%8 = tail call i64 @likely(i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %22
10: ; preds = %1
%11 = tail call ptr @this_cpu_ptr(ptr noundef nonnull @osq_node) #2
%12 = getelementptr inbounds i8, ptr %11, i64 4
%13 = tail call ptr @xchg(ptr noundef nonnull %12, ptr noundef null) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = tail call ptr @osq_wait_next(ptr noundef %0, ptr noundef %11, ptr noundef null) #2
%17 = icmp eq ptr %16, null
br i1 %17, label %22, label %18
18: ; preds = %15, %10
%19 = phi ptr [ %13, %10 ], [ %16, %15 ]
%20 = load i32, ptr %19, align 4, !tbaa !10
%21 = tail call i32 @WRITE_ONCE(i32 noundef %20, i32 noundef 1) #2
br label %22
22: ; preds = %18, %15, %1
ret void
}
declare i32 @encode_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @smp_processor_id(...) local_unnamed_addr #1
declare i64 @likely(i32 noundef) local_unnamed_addr #1
declare i32 @atomic_cmpxchg_release(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @this_cpu_ptr(ptr noundef) local_unnamed_addr #1
declare ptr @xchg(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @WRITE_ONCE(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @osq_wait_next(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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 = !{!"optimistic_spin_node", !7, i64 0, !7, i64 4}
| linux_kernel_locking_extr_osq_lock.c_osq_unlock |
; ModuleID = 'AnghaBench/linux/sound/core/seq/extr_seq_fifo.c_snd_seq_fifo_new.c'
source_filename = "AnghaBench/linux/sound/core/seq/extr_seq_fifo.c_snd_seq_fifo_new.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.snd_seq_fifo = type { i64, ptr, ptr, i32, i32, i32, i32, ptr }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @snd_seq_fifo_new(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%3 = tail call ptr @kzalloc(i32 noundef 48, i32 noundef %2) #3
%4 = icmp eq ptr %3, null
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = tail call ptr @snd_seq_pool_new(i32 noundef %0) #3
%7 = getelementptr inbounds %struct.snd_seq_fifo, ptr %3, i64 0, i32 7
store ptr %6, ptr %7, align 8, !tbaa !9
%8 = icmp eq ptr %6, null
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = tail call i32 @kfree(ptr noundef nonnull %3) #3
br label %26
11: ; preds = %5
%12 = tail call i64 @snd_seq_pool_init(ptr noundef nonnull %6) #3
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = tail call i32 @snd_seq_pool_delete(ptr noundef nonnull %7) #3
%16 = tail call i32 @kfree(ptr noundef nonnull %3) #3
br label %26
17: ; preds = %11
%18 = getelementptr inbounds %struct.snd_seq_fifo, ptr %3, i64 0, i32 6
%19 = tail call i32 @spin_lock_init(ptr noundef nonnull %18) #3
%20 = getelementptr inbounds %struct.snd_seq_fifo, ptr %3, i64 0, i32 5
%21 = tail call i32 @snd_use_lock_init(ptr noundef nonnull %20) #3
%22 = getelementptr inbounds %struct.snd_seq_fifo, ptr %3, i64 0, i32 4
%23 = tail call i32 @init_waitqueue_head(ptr noundef nonnull %22) #3
%24 = getelementptr inbounds %struct.snd_seq_fifo, ptr %3, i64 0, i32 3
%25 = tail call i32 @atomic_set(ptr noundef nonnull %24, i32 noundef 0) #3
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
br label %26
26: ; preds = %1, %17, %14, %9
%27 = phi ptr [ null, %9 ], [ null, %14 ], [ %3, %17 ], [ null, %1 ]
ret ptr %27
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @snd_seq_pool_new(i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i64 @snd_seq_pool_init(ptr noundef) local_unnamed_addr #1
declare i32 @snd_seq_pool_delete(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_init(ptr noundef) local_unnamed_addr #1
declare i32 @snd_use_lock_init(ptr noundef) local_unnamed_addr #1
declare i32 @init_waitqueue_head(ptr noundef) local_unnamed_addr #1
declare i32 @atomic_set(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"snd_seq_fifo", !11, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !12, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/sound/core/seq/extr_seq_fifo.c_snd_seq_fifo_new.c'
source_filename = "AnghaBench/linux/sound/core/seq/extr_seq_fifo.c_snd_seq_fifo_new.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
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @snd_seq_fifo_new(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%3 = tail call ptr @kzalloc(i32 noundef 48, i32 noundef %2) #3
%4 = icmp eq ptr %3, null
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = tail call ptr @snd_seq_pool_new(i32 noundef %0) #3
%7 = getelementptr inbounds i8, ptr %3, i64 40
store ptr %6, ptr %7, align 8, !tbaa !10
%8 = icmp eq ptr %6, null
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = tail call i32 @kfree(ptr noundef nonnull %3) #3
br label %26
11: ; preds = %5
%12 = tail call i64 @snd_seq_pool_init(ptr noundef nonnull %6) #3
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = tail call i32 @snd_seq_pool_delete(ptr noundef nonnull %7) #3
%16 = tail call i32 @kfree(ptr noundef nonnull %3) #3
br label %26
17: ; preds = %11
%18 = getelementptr inbounds i8, ptr %3, i64 36
%19 = tail call i32 @spin_lock_init(ptr noundef nonnull %18) #3
%20 = getelementptr inbounds i8, ptr %3, i64 32
%21 = tail call i32 @snd_use_lock_init(ptr noundef nonnull %20) #3
%22 = getelementptr inbounds i8, ptr %3, i64 28
%23 = tail call i32 @init_waitqueue_head(ptr noundef nonnull %22) #3
%24 = getelementptr inbounds i8, ptr %3, i64 24
%25 = tail call i32 @atomic_set(ptr noundef nonnull %24, i32 noundef 0) #3
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
br label %26
26: ; preds = %1, %17, %14, %9
%27 = phi ptr [ null, %9 ], [ null, %14 ], [ %3, %17 ], [ null, %1 ]
ret ptr %27
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @snd_seq_pool_new(i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i64 @snd_seq_pool_init(ptr noundef) local_unnamed_addr #1
declare i32 @snd_seq_pool_delete(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_init(ptr noundef) local_unnamed_addr #1
declare i32 @snd_use_lock_init(ptr noundef) local_unnamed_addr #1
declare i32 @init_waitqueue_head(ptr noundef) local_unnamed_addr #1
declare i32 @atomic_set(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 40}
!11 = !{!"snd_seq_fifo", !12, i64 0, !13, i64 8, !13, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !13, i64 40}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
| linux_sound_core_seq_extr_seq_fifo.c_snd_seq_fifo_new |
; ModuleID = 'AnghaBench/Quake-III-Arena/code/bspc/extr_l_bsp_q1.c_Q1_FreeMaxBSP.c'
source_filename = "AnghaBench/Quake-III-Arena/code/bspc/extr_l_bsp_q1.c_Q1_FreeMaxBSP.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"
@q1_nummodels = dso_local local_unnamed_addr global i64 0, align 8
@q1_dmodels = dso_local local_unnamed_addr global ptr null, align 8
@q1_visdatasize = dso_local local_unnamed_addr global i64 0, align 8
@q1_dvisdata = dso_local local_unnamed_addr global ptr null, align 8
@q1_lightdatasize = dso_local local_unnamed_addr global i64 0, align 8
@q1_dlightdata = dso_local local_unnamed_addr global ptr null, align 8
@q1_texdatasize = dso_local local_unnamed_addr global i64 0, align 8
@q1_dtexdata = dso_local local_unnamed_addr global ptr null, align 8
@q1_entdatasize = dso_local local_unnamed_addr global i64 0, align 8
@q1_dentdata = dso_local local_unnamed_addr global ptr null, align 8
@q1_numleafs = dso_local local_unnamed_addr global i64 0, align 8
@q1_dleafs = dso_local local_unnamed_addr global ptr null, align 8
@q1_numplanes = dso_local local_unnamed_addr global i64 0, align 8
@q1_dplanes = dso_local local_unnamed_addr global ptr null, align 8
@q1_numvertexes = dso_local local_unnamed_addr global i64 0, align 8
@q1_dvertexes = dso_local local_unnamed_addr global ptr null, align 8
@q1_numnodes = dso_local local_unnamed_addr global i64 0, align 8
@q1_dnodes = dso_local local_unnamed_addr global ptr null, align 8
@q1_numtexinfo = dso_local local_unnamed_addr global i64 0, align 8
@q1_texinfo = dso_local local_unnamed_addr global ptr null, align 8
@q1_numfaces = dso_local local_unnamed_addr global i64 0, align 8
@q1_dfaces = dso_local local_unnamed_addr global ptr null, align 8
@q1_numclipnodes = dso_local local_unnamed_addr global i64 0, align 8
@q1_dclipnodes = dso_local local_unnamed_addr global ptr null, align 8
@q1_numedges = dso_local local_unnamed_addr global i64 0, align 8
@q1_dedges = dso_local local_unnamed_addr global ptr null, align 8
@q1_nummarksurfaces = dso_local local_unnamed_addr global i64 0, align 8
@q1_dmarksurfaces = dso_local local_unnamed_addr global ptr null, align 8
@q1_numsurfedges = dso_local local_unnamed_addr global i64 0, align 8
@q1_dsurfedges = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [7 x i8] c"freed \00", align 1
@q1_allocatedbspmem = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [16 x i8] c" of BSP memory\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @Q1_FreeMaxBSP() local_unnamed_addr #0 {
store i64 0, ptr @q1_nummodels, align 8, !tbaa !5
%1 = load ptr, ptr @q1_dmodels, align 8, !tbaa !9
%2 = tail call i32 @FreeMemory(ptr noundef %1) #2
store ptr null, ptr @q1_dmodels, align 8, !tbaa !9
store i64 0, ptr @q1_visdatasize, align 8, !tbaa !5
%3 = load ptr, ptr @q1_dvisdata, align 8, !tbaa !9
%4 = tail call i32 @FreeMemory(ptr noundef %3) #2
store ptr null, ptr @q1_dvisdata, align 8, !tbaa !9
store i64 0, ptr @q1_lightdatasize, align 8, !tbaa !5
%5 = load ptr, ptr @q1_dlightdata, align 8, !tbaa !9
%6 = tail call i32 @FreeMemory(ptr noundef %5) #2
store ptr null, ptr @q1_dlightdata, align 8, !tbaa !9
store i64 0, ptr @q1_texdatasize, align 8, !tbaa !5
%7 = load ptr, ptr @q1_dtexdata, align 8, !tbaa !9
%8 = tail call i32 @FreeMemory(ptr noundef %7) #2
store ptr null, ptr @q1_dtexdata, align 8, !tbaa !9
store i64 0, ptr @q1_entdatasize, align 8, !tbaa !5
%9 = load ptr, ptr @q1_dentdata, align 8, !tbaa !9
%10 = tail call i32 @FreeMemory(ptr noundef %9) #2
store ptr null, ptr @q1_dentdata, align 8, !tbaa !9
store i64 0, ptr @q1_numleafs, align 8, !tbaa !5
%11 = load ptr, ptr @q1_dleafs, align 8, !tbaa !9
%12 = tail call i32 @FreeMemory(ptr noundef %11) #2
store ptr null, ptr @q1_dleafs, align 8, !tbaa !9
store i64 0, ptr @q1_numplanes, align 8, !tbaa !5
%13 = load ptr, ptr @q1_dplanes, align 8, !tbaa !9
%14 = tail call i32 @FreeMemory(ptr noundef %13) #2
store ptr null, ptr @q1_dplanes, align 8, !tbaa !9
store i64 0, ptr @q1_numvertexes, align 8, !tbaa !5
%15 = load ptr, ptr @q1_dvertexes, align 8, !tbaa !9
%16 = tail call i32 @FreeMemory(ptr noundef %15) #2
store ptr null, ptr @q1_dvertexes, align 8, !tbaa !9
store i64 0, ptr @q1_numnodes, align 8, !tbaa !5
%17 = load ptr, ptr @q1_dnodes, align 8, !tbaa !9
%18 = tail call i32 @FreeMemory(ptr noundef %17) #2
store ptr null, ptr @q1_dnodes, align 8, !tbaa !9
store i64 0, ptr @q1_numtexinfo, align 8, !tbaa !5
%19 = load ptr, ptr @q1_texinfo, align 8, !tbaa !9
%20 = tail call i32 @FreeMemory(ptr noundef %19) #2
store ptr null, ptr @q1_texinfo, align 8, !tbaa !9
store i64 0, ptr @q1_numfaces, align 8, !tbaa !5
%21 = load ptr, ptr @q1_dfaces, align 8, !tbaa !9
%22 = tail call i32 @FreeMemory(ptr noundef %21) #2
store ptr null, ptr @q1_dfaces, align 8, !tbaa !9
store i64 0, ptr @q1_numclipnodes, align 8, !tbaa !5
%23 = load ptr, ptr @q1_dclipnodes, align 8, !tbaa !9
%24 = tail call i32 @FreeMemory(ptr noundef %23) #2
store ptr null, ptr @q1_dclipnodes, align 8, !tbaa !9
store i64 0, ptr @q1_numedges, align 8, !tbaa !5
%25 = load ptr, ptr @q1_dedges, align 8, !tbaa !9
%26 = tail call i32 @FreeMemory(ptr noundef %25) #2
store ptr null, ptr @q1_dedges, align 8, !tbaa !9
store i64 0, ptr @q1_nummarksurfaces, align 8, !tbaa !5
%27 = load ptr, ptr @q1_dmarksurfaces, align 8, !tbaa !9
%28 = tail call i32 @FreeMemory(ptr noundef %27) #2
store ptr null, ptr @q1_dmarksurfaces, align 8, !tbaa !9
store i64 0, ptr @q1_numsurfedges, align 8, !tbaa !5
%29 = load ptr, ptr @q1_dsurfedges, align 8, !tbaa !9
%30 = tail call i32 @FreeMemory(ptr noundef %29) #2
store ptr null, ptr @q1_dsurfedges, align 8, !tbaa !9
%31 = tail call i32 @Log_Print(ptr noundef nonnull @.str) #2
%32 = load i64, ptr @q1_allocatedbspmem, align 8, !tbaa !5
%33 = tail call i32 @PrintMemorySize(i64 noundef %32) #2
%34 = tail call i32 @Log_Print(ptr noundef nonnull @.str.1) #2
store i64 0, ptr @q1_allocatedbspmem, align 8, !tbaa !5
ret void
}
declare i32 @FreeMemory(ptr noundef) local_unnamed_addr #1
declare i32 @Log_Print(ptr noundef) local_unnamed_addr #1
declare i32 @PrintMemorySize(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 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/Quake-III-Arena/code/bspc/extr_l_bsp_q1.c_Q1_FreeMaxBSP.c'
source_filename = "AnghaBench/Quake-III-Arena/code/bspc/extr_l_bsp_q1.c_Q1_FreeMaxBSP.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@q1_nummodels = common local_unnamed_addr global i64 0, align 8
@q1_dmodels = common local_unnamed_addr global ptr null, align 8
@q1_visdatasize = common local_unnamed_addr global i64 0, align 8
@q1_dvisdata = common local_unnamed_addr global ptr null, align 8
@q1_lightdatasize = common local_unnamed_addr global i64 0, align 8
@q1_dlightdata = common local_unnamed_addr global ptr null, align 8
@q1_texdatasize = common local_unnamed_addr global i64 0, align 8
@q1_dtexdata = common local_unnamed_addr global ptr null, align 8
@q1_entdatasize = common local_unnamed_addr global i64 0, align 8
@q1_dentdata = common local_unnamed_addr global ptr null, align 8
@q1_numleafs = common local_unnamed_addr global i64 0, align 8
@q1_dleafs = common local_unnamed_addr global ptr null, align 8
@q1_numplanes = common local_unnamed_addr global i64 0, align 8
@q1_dplanes = common local_unnamed_addr global ptr null, align 8
@q1_numvertexes = common local_unnamed_addr global i64 0, align 8
@q1_dvertexes = common local_unnamed_addr global ptr null, align 8
@q1_numnodes = common local_unnamed_addr global i64 0, align 8
@q1_dnodes = common local_unnamed_addr global ptr null, align 8
@q1_numtexinfo = common local_unnamed_addr global i64 0, align 8
@q1_texinfo = common local_unnamed_addr global ptr null, align 8
@q1_numfaces = common local_unnamed_addr global i64 0, align 8
@q1_dfaces = common local_unnamed_addr global ptr null, align 8
@q1_numclipnodes = common local_unnamed_addr global i64 0, align 8
@q1_dclipnodes = common local_unnamed_addr global ptr null, align 8
@q1_numedges = common local_unnamed_addr global i64 0, align 8
@q1_dedges = common local_unnamed_addr global ptr null, align 8
@q1_nummarksurfaces = common local_unnamed_addr global i64 0, align 8
@q1_dmarksurfaces = common local_unnamed_addr global ptr null, align 8
@q1_numsurfedges = common local_unnamed_addr global i64 0, align 8
@q1_dsurfedges = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [7 x i8] c"freed \00", align 1
@q1_allocatedbspmem = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [16 x i8] c" of BSP memory\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @Q1_FreeMaxBSP() local_unnamed_addr #0 {
store i64 0, ptr @q1_nummodels, align 8, !tbaa !6
%1 = load ptr, ptr @q1_dmodels, align 8, !tbaa !10
%2 = tail call i32 @FreeMemory(ptr noundef %1) #2
store ptr null, ptr @q1_dmodels, align 8, !tbaa !10
store i64 0, ptr @q1_visdatasize, align 8, !tbaa !6
%3 = load ptr, ptr @q1_dvisdata, align 8, !tbaa !10
%4 = tail call i32 @FreeMemory(ptr noundef %3) #2
store ptr null, ptr @q1_dvisdata, align 8, !tbaa !10
store i64 0, ptr @q1_lightdatasize, align 8, !tbaa !6
%5 = load ptr, ptr @q1_dlightdata, align 8, !tbaa !10
%6 = tail call i32 @FreeMemory(ptr noundef %5) #2
store ptr null, ptr @q1_dlightdata, align 8, !tbaa !10
store i64 0, ptr @q1_texdatasize, align 8, !tbaa !6
%7 = load ptr, ptr @q1_dtexdata, align 8, !tbaa !10
%8 = tail call i32 @FreeMemory(ptr noundef %7) #2
store ptr null, ptr @q1_dtexdata, align 8, !tbaa !10
store i64 0, ptr @q1_entdatasize, align 8, !tbaa !6
%9 = load ptr, ptr @q1_dentdata, align 8, !tbaa !10
%10 = tail call i32 @FreeMemory(ptr noundef %9) #2
store ptr null, ptr @q1_dentdata, align 8, !tbaa !10
store i64 0, ptr @q1_numleafs, align 8, !tbaa !6
%11 = load ptr, ptr @q1_dleafs, align 8, !tbaa !10
%12 = tail call i32 @FreeMemory(ptr noundef %11) #2
store ptr null, ptr @q1_dleafs, align 8, !tbaa !10
store i64 0, ptr @q1_numplanes, align 8, !tbaa !6
%13 = load ptr, ptr @q1_dplanes, align 8, !tbaa !10
%14 = tail call i32 @FreeMemory(ptr noundef %13) #2
store ptr null, ptr @q1_dplanes, align 8, !tbaa !10
store i64 0, ptr @q1_numvertexes, align 8, !tbaa !6
%15 = load ptr, ptr @q1_dvertexes, align 8, !tbaa !10
%16 = tail call i32 @FreeMemory(ptr noundef %15) #2
store ptr null, ptr @q1_dvertexes, align 8, !tbaa !10
store i64 0, ptr @q1_numnodes, align 8, !tbaa !6
%17 = load ptr, ptr @q1_dnodes, align 8, !tbaa !10
%18 = tail call i32 @FreeMemory(ptr noundef %17) #2
store ptr null, ptr @q1_dnodes, align 8, !tbaa !10
store i64 0, ptr @q1_numtexinfo, align 8, !tbaa !6
%19 = load ptr, ptr @q1_texinfo, align 8, !tbaa !10
%20 = tail call i32 @FreeMemory(ptr noundef %19) #2
store ptr null, ptr @q1_texinfo, align 8, !tbaa !10
store i64 0, ptr @q1_numfaces, align 8, !tbaa !6
%21 = load ptr, ptr @q1_dfaces, align 8, !tbaa !10
%22 = tail call i32 @FreeMemory(ptr noundef %21) #2
store ptr null, ptr @q1_dfaces, align 8, !tbaa !10
store i64 0, ptr @q1_numclipnodes, align 8, !tbaa !6
%23 = load ptr, ptr @q1_dclipnodes, align 8, !tbaa !10
%24 = tail call i32 @FreeMemory(ptr noundef %23) #2
store ptr null, ptr @q1_dclipnodes, align 8, !tbaa !10
store i64 0, ptr @q1_numedges, align 8, !tbaa !6
%25 = load ptr, ptr @q1_dedges, align 8, !tbaa !10
%26 = tail call i32 @FreeMemory(ptr noundef %25) #2
store ptr null, ptr @q1_dedges, align 8, !tbaa !10
store i64 0, ptr @q1_nummarksurfaces, align 8, !tbaa !6
%27 = load ptr, ptr @q1_dmarksurfaces, align 8, !tbaa !10
%28 = tail call i32 @FreeMemory(ptr noundef %27) #2
store ptr null, ptr @q1_dmarksurfaces, align 8, !tbaa !10
store i64 0, ptr @q1_numsurfedges, align 8, !tbaa !6
%29 = load ptr, ptr @q1_dsurfedges, align 8, !tbaa !10
%30 = tail call i32 @FreeMemory(ptr noundef %29) #2
store ptr null, ptr @q1_dsurfedges, align 8, !tbaa !10
%31 = tail call i32 @Log_Print(ptr noundef nonnull @.str) #2
%32 = load i64, ptr @q1_allocatedbspmem, align 8, !tbaa !6
%33 = tail call i32 @PrintMemorySize(i64 noundef %32) #2
%34 = tail call i32 @Log_Print(ptr noundef nonnull @.str.1) #2
store i64 0, ptr @q1_allocatedbspmem, align 8, !tbaa !6
ret void
}
declare i32 @FreeMemory(ptr noundef) local_unnamed_addr #1
declare i32 @Log_Print(ptr noundef) local_unnamed_addr #1
declare i32 @PrintMemorySize(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 = !{!"any pointer", !8, i64 0}
| Quake-III-Arena_code_bspc_extr_l_bsp_q1.c_Q1_FreeMaxBSP |
; ModuleID = 'AnghaBench/linux/drivers/iio/adc/extr_xilinx-xadc-events.c_xadc_get_threshold_offset.c'
source_filename = "AnghaBench/linux/drivers/iio/adc/extr_xilinx-xadc-events.c_xadc_get_threshold_offset.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_chan_spec = type { i64, i32 }
@IIO_TEMP = dso_local local_unnamed_addr global i64 0, align 8
@XADC_THRESHOLD_OT_MAX = dso_local local_unnamed_addr global i32 0, align 4
@IIO_EV_DIR_FALLING = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @xadc_get_threshold_offset], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal i32 @xadc_get_threshold_offset(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = load i64, ptr @IIO_TEMP, align 8, !tbaa !11
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = load i32, ptr @XADC_THRESHOLD_OT_MAX, align 4, !tbaa !12
br label %16
8: ; preds = %2
%9 = getelementptr inbounds %struct.iio_chan_spec, ptr %0, i64 0, i32 1
%10 = load i32, ptr %9, align 8, !tbaa !13
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = add nsw i32 %10, 1
br label %16
14: ; preds = %8
%15 = add nuw nsw i32 %10, 6
br label %16
16: ; preds = %12, %14, %6
%17 = phi i32 [ %7, %6 ], [ %13, %12 ], [ %15, %14 ]
%18 = load i32, ptr @IIO_EV_DIR_FALLING, align 4, !tbaa !12
%19 = icmp eq i32 %18, %1
%20 = add i32 %17, 4
%21 = select i1 %19, i32 %20, i32 %17
ret i32 %21
}
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 = !{!"iio_chan_spec", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/iio/adc/extr_xilinx-xadc-events.c_xadc_get_threshold_offset.c'
source_filename = "AnghaBench/linux/drivers/iio/adc/extr_xilinx-xadc-events.c_xadc_get_threshold_offset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IIO_TEMP = common local_unnamed_addr global i64 0, align 8
@XADC_THRESHOLD_OT_MAX = common local_unnamed_addr global i32 0, align 4
@IIO_EV_DIR_FALLING = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @xadc_get_threshold_offset], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal i32 @xadc_get_threshold_offset(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = load i64, ptr @IIO_TEMP, align 8, !tbaa !12
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = load i32, ptr @XADC_THRESHOLD_OT_MAX, align 4, !tbaa !13
br label %16
8: ; preds = %2
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load i32, ptr %9, align 8, !tbaa !14
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = add nsw i32 %10, 1
br label %16
14: ; preds = %8
%15 = add nuw nsw i32 %10, 6
br label %16
16: ; preds = %12, %14, %6
%17 = phi i32 [ %7, %6 ], [ %13, %12 ], [ %15, %14 ]
%18 = load i32, ptr @IIO_EV_DIR_FALLING, align 4, !tbaa !13
%19 = icmp eq i32 %18, %1
%20 = add i32 %17, 4
%21 = select i1 %19, i32 %20, i32 %17
ret i32 %21
}
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 = !{!"iio_chan_spec", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !11, i64 8}
| linux_drivers_iio_adc_extr_xilinx-xadc-events.c_xadc_get_threshold_offset |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/extr_dm.c_rtl8723be_dm_is_edca_turbo_disable.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/extr_dm.c_rtl8723be_dm_is_edca_turbo_disable.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"
@WIRELESS_MODE_B = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @rtl8723be_dm_is_edca_turbo_disable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @rtl8723be_dm_is_edca_turbo_disable(ptr noundef %0) #0 {
%2 = tail call ptr @rtl_priv(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = load i64, ptr @WIRELESS_MODE_B, align 8, !tbaa !11
%5 = icmp eq i64 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
declare ptr @rtl_priv(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 = !{!"rtl_priv", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/extr_dm.c_rtl8723be_dm_is_edca_turbo_disable.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/extr_dm.c_rtl8723be_dm_is_edca_turbo_disable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WIRELESS_MODE_B = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @rtl8723be_dm_is_edca_turbo_disable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @rtl8723be_dm_is_edca_turbo_disable(ptr noundef %0) #0 {
%2 = tail call ptr @rtl_priv(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = load i64, ptr @WIRELESS_MODE_B, align 8, !tbaa !12
%5 = icmp eq i64 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
declare ptr @rtl_priv(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 = !{!"rtl_priv", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!9, !9, i64 0}
| linux_drivers_net_wireless_realtek_rtlwifi_rtl8723be_extr_dm.c_rtl8723be_dm_is_edca_turbo_disable |
; ModuleID = 'AnghaBench/reactos/base/applications/mmc/extr_console.c_DoSaveFile.c'
source_filename = "AnghaBench/reactos/base/applications/mmc/extr_console.c_DoSaveFile.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 [15 x i8] c"pChildInfo %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"FileName %S\0A\00", align 1
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @DoSaveFile], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @DoSaveFile(i32 noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @DPRINT1(ptr noundef nonnull @.str, ptr noundef %1) #2
%4 = load ptr, ptr %1, align 8, !tbaa !5
%5 = tail call i32 @DPRINT1(ptr noundef nonnull @.str.1, ptr noundef %4) #2
%6 = load ptr, ptr %1, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @DoSaveFileAs(i32 noundef %0, ptr noundef nonnull %1) #2
br label %12
10: ; preds = %2
%11 = load i32, ptr @TRUE, align 4, !tbaa !10
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
ret i32 %13
}
declare i32 @DPRINT1(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @DoSaveFileAs(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_5__", !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}
| ; ModuleID = 'AnghaBench/reactos/base/applications/mmc/extr_console.c_DoSaveFile.c'
source_filename = "AnghaBench/reactos/base/applications/mmc/extr_console.c_DoSaveFile.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 [15 x i8] c"pChildInfo %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"FileName %S\0A\00", align 1
@TRUE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @DoSaveFile], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @DoSaveFile(i32 noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @DPRINT1(ptr noundef nonnull @.str, ptr noundef %1) #2
%4 = load ptr, ptr %1, align 8, !tbaa !6
%5 = tail call i32 @DPRINT1(ptr noundef nonnull @.str.1, ptr noundef %4) #2
%6 = load ptr, ptr %1, align 8, !tbaa !6
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @DoSaveFileAs(i32 noundef %0, ptr noundef nonnull %1) #2
br label %12
10: ; preds = %2
%11 = load i32, ptr @TRUE, align 4, !tbaa !11
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
ret i32 %13
}
declare i32 @DPRINT1(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @DoSaveFileAs(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_5__", !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 = !{!"int", !9, i64 0}
| reactos_base_applications_mmc_extr_console.c_DoSaveFile |
; ModuleID = 'AnghaBench/freebsd/contrib/ldns/extr_host2str.c_ldns_pkt2str.c'
source_filename = "AnghaBench/freebsd/contrib/ldns/extr_host2str.c_ldns_pkt2str.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"
@ldns_output_format_default = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @ldns_pkt2str(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @ldns_output_format_default, align 4, !tbaa !5
%3 = tail call ptr @ldns_pkt2str_fmt(i32 noundef %2, ptr noundef %0) #2
ret ptr %3
}
declare ptr @ldns_pkt2str_fmt(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/freebsd/contrib/ldns/extr_host2str.c_ldns_pkt2str.c'
source_filename = "AnghaBench/freebsd/contrib/ldns/extr_host2str.c_ldns_pkt2str.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ldns_output_format_default = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @ldns_pkt2str(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @ldns_output_format_default, align 4, !tbaa !6
%3 = tail call ptr @ldns_pkt2str_fmt(i32 noundef %2, ptr noundef %0) #2
ret ptr %3
}
declare ptr @ldns_pkt2str_fmt(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"}
| freebsd_contrib_ldns_extr_host2str.c_ldns_pkt2str |
; ModuleID = 'AnghaBench/linux/sound/soc/dwc/extr_dwc-i2s.c_dw_i2s_config.c'
source_filename = "AnghaBench/linux/sound/soc/dwc/extr_dwc-i2s.c_dw_i2s_config.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.dw_i2s_dev = type { i32, i32, i32, %struct.i2s_clk_config_data }
%struct.i2s_clk_config_data = type { i32 }
@SNDRV_PCM_STREAM_PLAYBACK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dw_i2s_config], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @dw_i2s_config(ptr noundef %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds %struct.dw_i2s_dev, ptr %0, i64 0, i32 3
%4 = tail call i32 @i2s_disable_channels(ptr noundef %0, i32 noundef %1) #2
%5 = load i32, ptr %3, align 4, !tbaa !5
%6 = icmp sgt i32 %5, 1
br i1 %6, label %7, label %44
7: ; preds = %2
%8 = getelementptr inbounds %struct.dw_i2s_dev, ptr %0, i64 0, i32 2
%9 = getelementptr inbounds %struct.dw_i2s_dev, ptr %0, i64 0, i32 1
br label %10
10: ; preds = %7, %39
%11 = phi i32 [ 0, %7 ], [ %40, %39 ]
%12 = load i32, ptr @SNDRV_PCM_STREAM_PLAYBACK, align 4, !tbaa !10
%13 = icmp eq i32 %12, %1
%14 = load i32, ptr %8, align 4, !tbaa !11
br i1 %13, label %15, label %27
15: ; preds = %10
%16 = tail call i32 @TCR(i32 noundef %11) #2
%17 = load i32, ptr %0, align 4, !tbaa !13
%18 = tail call i32 @i2s_write_reg(i32 noundef %14, i32 noundef %16, i32 noundef %17) #2
%19 = load i32, ptr %8, align 4, !tbaa !11
%20 = tail call i32 @TFCR(i32 noundef %11) #2
%21 = load i32, ptr %9, align 4, !tbaa !14
%22 = add nsw i32 %21, -1
%23 = tail call i32 @i2s_write_reg(i32 noundef %19, i32 noundef %20, i32 noundef %22) #2
%24 = load i32, ptr %8, align 4, !tbaa !11
%25 = tail call i32 @TER(i32 noundef %11) #2
%26 = tail call i32 @i2s_write_reg(i32 noundef %24, i32 noundef %25, i32 noundef 1) #2
br label %39
27: ; preds = %10
%28 = tail call i32 @RCR(i32 noundef %11) #2
%29 = load i32, ptr %0, align 4, !tbaa !13
%30 = tail call i32 @i2s_write_reg(i32 noundef %14, i32 noundef %28, i32 noundef %29) #2
%31 = load i32, ptr %8, align 4, !tbaa !11
%32 = tail call i32 @RFCR(i32 noundef %11) #2
%33 = load i32, ptr %9, align 4, !tbaa !14
%34 = add nsw i32 %33, -1
%35 = tail call i32 @i2s_write_reg(i32 noundef %31, i32 noundef %32, i32 noundef %34) #2
%36 = load i32, ptr %8, align 4, !tbaa !11
%37 = tail call i32 @RER(i32 noundef %11) #2
%38 = tail call i32 @i2s_write_reg(i32 noundef %36, i32 noundef %37, i32 noundef 1) #2
br label %39
39: ; preds = %15, %27
%40 = add nuw nsw i32 %11, 1
%41 = load i32, ptr %3, align 4, !tbaa !5
%42 = sdiv i32 %41, 2
%43 = icmp slt i32 %40, %42
br i1 %43, label %10, label %44, !llvm.loop !15
44: ; preds = %39, %2
ret void
}
declare i32 @i2s_disable_channels(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @i2s_write_reg(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TCR(i32 noundef) local_unnamed_addr #1
declare i32 @TFCR(i32 noundef) local_unnamed_addr #1
declare i32 @TER(i32 noundef) local_unnamed_addr #1
declare i32 @RCR(i32 noundef) local_unnamed_addr #1
declare i32 @RFCR(i32 noundef) local_unnamed_addr #1
declare i32 @RER(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 = !{!"i2s_clk_config_data", !7, i64 0}
!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 8}
!12 = !{!"dw_i2s_dev", !7, i64 0, !7, i64 4, !7, i64 8, !6, i64 12}
!13 = !{!12, !7, i64 0}
!14 = !{!12, !7, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/sound/soc/dwc/extr_dwc-i2s.c_dw_i2s_config.c'
source_filename = "AnghaBench/linux/sound/soc/dwc/extr_dwc-i2s.c_dw_i2s_config.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SNDRV_PCM_STREAM_PLAYBACK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dw_i2s_config], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @dw_i2s_config(ptr noundef %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 12
%4 = tail call i32 @i2s_disable_channels(ptr noundef %0, i32 noundef %1) #2
%5 = load i32, ptr %3, align 4, !tbaa !6
%6 = icmp sgt i32 %5, 1
br i1 %6, label %7, label %44
7: ; preds = %2
%8 = getelementptr inbounds i8, ptr %0, i64 8
%9 = getelementptr inbounds i8, ptr %0, i64 4
br label %10
10: ; preds = %7, %39
%11 = phi i32 [ 0, %7 ], [ %40, %39 ]
%12 = load i32, ptr @SNDRV_PCM_STREAM_PLAYBACK, align 4, !tbaa !11
%13 = icmp eq i32 %12, %1
%14 = load i32, ptr %8, align 4, !tbaa !12
br i1 %13, label %15, label %27
15: ; preds = %10
%16 = tail call i32 @TCR(i32 noundef %11) #2
%17 = load i32, ptr %0, align 4, !tbaa !14
%18 = tail call i32 @i2s_write_reg(i32 noundef %14, i32 noundef %16, i32 noundef %17) #2
%19 = load i32, ptr %8, align 4, !tbaa !12
%20 = tail call i32 @TFCR(i32 noundef %11) #2
%21 = load i32, ptr %9, align 4, !tbaa !15
%22 = add nsw i32 %21, -1
%23 = tail call i32 @i2s_write_reg(i32 noundef %19, i32 noundef %20, i32 noundef %22) #2
%24 = load i32, ptr %8, align 4, !tbaa !12
%25 = tail call i32 @TER(i32 noundef %11) #2
%26 = tail call i32 @i2s_write_reg(i32 noundef %24, i32 noundef %25, i32 noundef 1) #2
br label %39
27: ; preds = %10
%28 = tail call i32 @RCR(i32 noundef %11) #2
%29 = load i32, ptr %0, align 4, !tbaa !14
%30 = tail call i32 @i2s_write_reg(i32 noundef %14, i32 noundef %28, i32 noundef %29) #2
%31 = load i32, ptr %8, align 4, !tbaa !12
%32 = tail call i32 @RFCR(i32 noundef %11) #2
%33 = load i32, ptr %9, align 4, !tbaa !15
%34 = add nsw i32 %33, -1
%35 = tail call i32 @i2s_write_reg(i32 noundef %31, i32 noundef %32, i32 noundef %34) #2
%36 = load i32, ptr %8, align 4, !tbaa !12
%37 = tail call i32 @RER(i32 noundef %11) #2
%38 = tail call i32 @i2s_write_reg(i32 noundef %36, i32 noundef %37, i32 noundef 1) #2
br label %39
39: ; preds = %15, %27
%40 = add nuw nsw i32 %11, 1
%41 = load i32, ptr %3, align 4, !tbaa !6
%42 = sdiv i32 %41, 2
%43 = icmp slt i32 %40, %42
br i1 %43, label %10, label %44, !llvm.loop !16
44: ; preds = %39, %2
ret void
}
declare i32 @i2s_disable_channels(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @i2s_write_reg(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @TCR(i32 noundef) local_unnamed_addr #1
declare i32 @TFCR(i32 noundef) local_unnamed_addr #1
declare i32 @TER(i32 noundef) local_unnamed_addr #1
declare i32 @RCR(i32 noundef) local_unnamed_addr #1
declare i32 @RFCR(i32 noundef) local_unnamed_addr #1
declare i32 @RER(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 = !{!"i2s_clk_config_data", !8, i64 0}
!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 8}
!13 = !{!"dw_i2s_dev", !8, i64 0, !8, i64 4, !8, i64 8, !7, i64 12}
!14 = !{!13, !8, i64 0}
!15 = !{!13, !8, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| linux_sound_soc_dwc_extr_dwc-i2s.c_dw_i2s_config |
; ModuleID = 'AnghaBench/Quake-III-Arena/code/server/extr_sv_init.c_SV_GetConfigstring.c'
source_filename = "AnghaBench/Quake-III-Arena/code/server/extr_sv_init.c_SV_GetConfigstring.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 }
@ERR_DROP = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"SV_GetConfigstring: bufferSize == %i\00", align 1
@MAX_CONFIGSTRINGS = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"SV_GetConfigstring: bad index %i\0A\00", align 1
@sv = dso_local local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 8
; Function Attrs: nounwind uwtable
define dso_local void @SV_GetConfigstring(i32 noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = icmp slt i32 %2, 1
br i1 %4, label %5, label %8
5: ; preds = %3
%6 = load i32, ptr @ERR_DROP, align 4, !tbaa !5
%7 = tail call i32 @Com_Error(i32 noundef %6, ptr noundef nonnull @.str, i32 noundef %2) #2
br label %8
8: ; preds = %5, %3
%9 = icmp sgt i32 %0, -1
%10 = load i32, ptr @MAX_CONFIGSTRINGS, align 4
%11 = icmp sgt i32 %10, %0
%12 = select i1 %9, i1 %11, i1 false
br i1 %12, label %16, label %13
13: ; preds = %8
%14 = load i32, ptr @ERR_DROP, align 4, !tbaa !5
%15 = tail call i32 @Com_Error(i32 noundef %14, ptr noundef nonnull @.str.1, i32 noundef %0) #2
br label %16
16: ; preds = %8, %13
%17 = load ptr, ptr @sv, align 8, !tbaa !9
%18 = sext i32 %0 to i64
%19 = getelementptr inbounds i32, ptr %17, i64 %18
%20 = load i32, ptr %19, align 4, !tbaa !5
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %16
store i8 0, ptr %1, align 1, !tbaa !12
br label %25
23: ; preds = %16
%24 = tail call i32 @Q_strncpyz(ptr noundef %1, i32 noundef %20, i32 noundef %2) #2
br label %25
25: ; preds = %23, %22
ret void
}
declare i32 @Com_Error(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @Q_strncpyz(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, !11, i64 0}
!10 = !{!"TYPE_2__", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/Quake-III-Arena/code/server/extr_sv_init.c_SV_GetConfigstring.c'
source_filename = "AnghaBench/Quake-III-Arena/code/server/extr_sv_init.c_SV_GetConfigstring.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 }
@ERR_DROP = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"SV_GetConfigstring: bufferSize == %i\00", align 1
@MAX_CONFIGSTRINGS = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"SV_GetConfigstring: bad index %i\0A\00", align 1
@sv = common local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @SV_GetConfigstring(i32 noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = icmp slt i32 %2, 1
br i1 %4, label %5, label %8
5: ; preds = %3
%6 = load i32, ptr @ERR_DROP, align 4, !tbaa !6
%7 = tail call i32 @Com_Error(i32 noundef %6, ptr noundef nonnull @.str, i32 noundef %2) #2
br label %8
8: ; preds = %5, %3
%9 = icmp sgt i32 %0, -1
%10 = load i32, ptr @MAX_CONFIGSTRINGS, align 4
%11 = icmp sgt i32 %10, %0
%12 = select i1 %9, i1 %11, i1 false
br i1 %12, label %16, label %13
13: ; preds = %8
%14 = load i32, ptr @ERR_DROP, align 4, !tbaa !6
%15 = tail call i32 @Com_Error(i32 noundef %14, ptr noundef nonnull @.str.1, i32 noundef %0) #2
br label %16
16: ; preds = %8, %13
%17 = load ptr, ptr @sv, align 8, !tbaa !10
%18 = sext i32 %0 to i64
%19 = getelementptr inbounds i32, ptr %17, i64 %18
%20 = load i32, ptr %19, align 4, !tbaa !6
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %16
store i8 0, ptr %1, align 1, !tbaa !13
br label %25
23: ; preds = %16
%24 = tail call i32 @Q_strncpyz(ptr noundef %1, i32 noundef %20, i32 noundef %2) #2
br label %25
25: ; preds = %23, %22
ret void
}
declare i32 @Com_Error(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @Q_strncpyz(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, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
| Quake-III-Arena_code_server_extr_sv_init.c_SV_GetConfigstring |
; ModuleID = 'AnghaBench/curl/lib/extr_parsedate.c_skip.c'
source_filename = "AnghaBench/curl/lib/extr_parsedate.c_skip.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 @skip], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @skip(ptr nocapture noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i8, ptr %2, align 1, !tbaa !9
%4 = icmp eq i8 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %1, %9
%6 = phi i8 [ %12, %9 ], [ %3, %1 ]
%7 = tail call i32 @ISALNUM(i8 noundef signext %6) #2
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %5
%10 = load ptr, ptr %0, align 8, !tbaa !5
%11 = getelementptr inbounds i8, ptr %10, i64 1
store ptr %11, ptr %0, align 8, !tbaa !5
%12 = load i8, ptr %11, align 1, !tbaa !9
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %5, !llvm.loop !10
14: ; preds = %5, %9, %1
ret void
}
declare i32 @ISALNUM(i8 noundef signext) 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/curl/lib/extr_parsedate.c_skip.c'
source_filename = "AnghaBench/curl/lib/extr_parsedate.c_skip.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 @skip], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @skip(ptr nocapture noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i8, ptr %2, align 1, !tbaa !10
%4 = icmp eq i8 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %1, %9
%6 = phi i8 [ %12, %9 ], [ %3, %1 ]
%7 = tail call i32 @ISALNUM(i8 noundef signext %6) #2
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %5
%10 = load ptr, ptr %0, align 8, !tbaa !6
%11 = getelementptr inbounds i8, ptr %10, i64 1
store ptr %11, ptr %0, align 8, !tbaa !6
%12 = load i8, ptr %11, align 1, !tbaa !10
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %5, !llvm.loop !11
14: ; preds = %5, %9, %1
ret void
}
declare i32 @ISALNUM(i8 noundef signext) 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 = !{!8, !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| curl_lib_extr_parsedate.c_skip |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/iwlegacy/extr_3945-mac.c_il3945_set_static_key.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/iwlegacy/extr_3945-mac.c_il3945_set_static_key.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"
@WLAN_CIPHER_SUITE_WEP40 = dso_local local_unnamed_addr global i64 0, align 8
@WLAN_CIPHER_SUITE_WEP104 = dso_local local_unnamed_addr global i64 0, align 8
@EOPNOTSUPP = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"Static key invalid: cipher %x\0A\00", align 1
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @il3945_set_static_key], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @il3945_set_static_key(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %1, align 8, !tbaa !5
%4 = load i64, ptr @WLAN_CIPHER_SUITE_WEP40, align 8, !tbaa !10
%5 = icmp eq i64 %3, %4
%6 = load i64, ptr @WLAN_CIPHER_SUITE_WEP104, align 8
%7 = icmp eq i64 %3, %6
%8 = select i1 %5, i1 true, i1 %7
br i1 %8, label %11, label %9
9: ; preds = %2
%10 = tail call i32 @IL_ERR(ptr noundef nonnull @.str, i64 noundef %3) #2
br label %11
11: ; preds = %2, %9
%12 = phi ptr [ @EINVAL, %9 ], [ @EOPNOTSUPP, %2 ]
%13 = load i32, ptr %12, align 4, !tbaa !11
%14 = sub nsw i32 0, %13
ret i32 %14
}
declare i32 @IL_ERR(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ieee80211_key_conf", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/iwlegacy/extr_3945-mac.c_il3945_set_static_key.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/iwlegacy/extr_3945-mac.c_il3945_set_static_key.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WLAN_CIPHER_SUITE_WEP40 = common local_unnamed_addr global i64 0, align 8
@WLAN_CIPHER_SUITE_WEP104 = common local_unnamed_addr global i64 0, align 8
@EOPNOTSUPP = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"Static key invalid: cipher %x\0A\00", align 1
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @il3945_set_static_key], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @il3945_set_static_key(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %1, align 8, !tbaa !6
%4 = load i64, ptr @WLAN_CIPHER_SUITE_WEP40, align 8, !tbaa !11
%5 = icmp eq i64 %3, %4
%6 = load i64, ptr @WLAN_CIPHER_SUITE_WEP104, align 8
%7 = icmp eq i64 %3, %6
%8 = select i1 %5, i1 true, i1 %7
br i1 %8, label %11, label %9
9: ; preds = %2
%10 = tail call i32 @IL_ERR(ptr noundef nonnull @.str, i64 noundef %3) #2
br label %11
11: ; preds = %2, %9
%12 = phi ptr [ @EINVAL, %9 ], [ @EOPNOTSUPP, %2 ]
%13 = load i32, ptr %12, align 4, !tbaa !12
%14 = sub nsw i32 0, %13
ret i32 %14
}
declare i32 @IL_ERR(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ieee80211_key_conf", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
| fastsocket_kernel_drivers_net_wireless_iwlegacy_extr_3945-mac.c_il3945_set_static_key |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/micrel/extr_ksz884x.c_hw_set_desc_base.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/micrel/extr_ksz884x.c_hw_set_desc_base.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"
@KS_DMA_TX_ADDR = dso_local local_unnamed_addr global i64 0, align 8
@KS_DMA_RX_ADDR = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @hw_set_desc_base], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @hw_set_desc_base(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = load i64, ptr @KS_DMA_TX_ADDR, align 8, !tbaa !10
%6 = add nsw i64 %5, %4
%7 = tail call i32 @writel(i32 noundef %1, i64 noundef %6) #2
%8 = load i64, ptr %0, align 8, !tbaa !5
%9 = load i64, ptr @KS_DMA_RX_ADDR, align 8, !tbaa !10
%10 = add nsw i64 %9, %8
%11 = tail call i32 @writel(i32 noundef %2, i64 noundef %10) #2
ret void
}
declare i32 @writel(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, !7, i64 0}
!6 = !{!"ksz_hw", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/micrel/extr_ksz884x.c_hw_set_desc_base.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/micrel/extr_ksz884x.c_hw_set_desc_base.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@KS_DMA_TX_ADDR = common local_unnamed_addr global i64 0, align 8
@KS_DMA_RX_ADDR = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @hw_set_desc_base], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @hw_set_desc_base(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = load i64, ptr @KS_DMA_TX_ADDR, align 8, !tbaa !11
%6 = add nsw i64 %5, %4
%7 = tail call i32 @writel(i32 noundef %1, i64 noundef %6) #2
%8 = load i64, ptr %0, align 8, !tbaa !6
%9 = load i64, ptr @KS_DMA_RX_ADDR, align 8, !tbaa !11
%10 = add nsw i64 %9, %8
%11 = tail call i32 @writel(i32 noundef %2, i64 noundef %10) #2
ret void
}
declare i32 @writel(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, !8, i64 0}
!7 = !{!"ksz_hw", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| linux_drivers_net_ethernet_micrel_extr_ksz884x.c_hw_set_desc_base |
; ModuleID = 'AnghaBench/libevent/extr_watch.c_evwatch_prepare_new.c'
source_filename = "AnghaBench/libevent/extr_watch.c_evwatch_prepare_new.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"
@EVWATCH_PREPARE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @evwatch_prepare_new(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @EVWATCH_PREPARE, align 4, !tbaa !5
%5 = tail call ptr @evwatch_new(ptr noundef %0, i32 %1, ptr noundef %2, i32 noundef %4) #2
ret ptr %5
}
declare ptr @evwatch_new(ptr noundef, i32, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/libevent/extr_watch.c_evwatch_prepare_new.c'
source_filename = "AnghaBench/libevent/extr_watch.c_evwatch_prepare_new.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EVWATCH_PREPARE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @evwatch_prepare_new(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @EVWATCH_PREPARE, align 4, !tbaa !6
%5 = zext i32 %1 to i64
%6 = tail call ptr @evwatch_new(ptr noundef %0, i64 %5, ptr noundef %2, i32 noundef %4) #2
ret ptr %6
}
declare ptr @evwatch_new(ptr noundef, i64, 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"}
| libevent_extr_watch.c_evwatch_prepare_new |
; ModuleID = 'AnghaBench/linux/fs/fuse/extr_dir.c_fuse_dentry_release.c'
source_filename = "AnghaBench/linux/fs/fuse/extr_dir.c_fuse_dentry_release.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@rcu = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @fuse_dentry_release], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @fuse_dentry_release(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr @rcu, align 4, !tbaa !10
%4 = tail call i32 @kfree_rcu(ptr noundef %2, i32 noundef %3) #2
ret void
}
declare i32 @kfree_rcu(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 = !{!"dentry", !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}
| ; ModuleID = 'AnghaBench/linux/fs/fuse/extr_dir.c_fuse_dentry_release.c'
source_filename = "AnghaBench/linux/fs/fuse/extr_dir.c_fuse_dentry_release.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@rcu = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @fuse_dentry_release], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @fuse_dentry_release(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr @rcu, align 4, !tbaa !11
%4 = tail call i32 @kfree_rcu(ptr noundef %2, i32 noundef %3) #2
ret void
}
declare i32 @kfree_rcu(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 = !{!"dentry", !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 = !{!"int", !9, i64 0}
| linux_fs_fuse_extr_dir.c_fuse_dentry_release |
; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/ole32/extr_storage32.c_test_hglobal_storage_creation.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/ole32/extr_storage32.c_test_hglobal_storage_creation.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_11__ = type { %struct.TYPE_9__, i32 }
%struct.TYPE_9__ = type { %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32 }
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@S_OK = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [41 x i8] c"CreateILockBytesOnHGlobal failed, hr=%x\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"ILockBytes_WriteAt failed, hr=%x\0A\00", align 1
@STGM_CREATE = dso_local local_unnamed_addr global i32 0, align 4
@STGM_SHARE_EXCLUSIVE = dso_local local_unnamed_addr global i32 0, align 4
@STGM_READWRITE = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [44 x i8] c"StgCreateDocfileOnILockBytes failed, hr=%x\0A\00", align 1
@STGM_READ = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [42 x i8] c"StgOpenStorageOnILockBytes failed, hr=%x\0A\00", align 1
@STATFLAG_NONAME = dso_local local_unnamed_addr global i32 0, align 4
@GUID_NULL = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [24 x i8] c"unexpected CLSID value\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"ILockBytes_Stat failed, hr=%x\0A\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"expected truncated size, got %d\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @test_hglobal_storage_creation], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @test_hglobal_storage_creation() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca %struct.TYPE_11__, align 4
%4 = alloca [512 x i8], align 16
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
store ptr null, ptr %1, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
store ptr null, ptr %2, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %4) #3
%5 = load i32, ptr @TRUE, align 4, !tbaa !9
%6 = call i64 @CreateILockBytesOnHGlobal(ptr noundef null, i32 noundef %5, ptr noundef nonnull %1) #3
%7 = load i64, ptr @S_OK, align 8, !tbaa !11
%8 = icmp eq i64 %6, %7
%9 = zext i1 %8 to i32
%10 = call i32 (i32, ptr, ...) @ok(i32 noundef %9, ptr noundef nonnull @.str, i64 noundef %6) #3
%11 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 170, i32 noundef 512) #3
%12 = load ptr, ptr %1, align 8, !tbaa !5
%13 = call i64 @ILockBytes_WriteAt(ptr noundef %12, i32 0, ptr noundef nonnull %4, i32 noundef 512, ptr noundef null) #3
%14 = load i64, ptr @S_OK, align 8, !tbaa !11
%15 = icmp eq i64 %13, %14
%16 = zext i1 %15 to i32
%17 = call i32 (i32, ptr, ...) @ok(i32 noundef %16, ptr noundef nonnull @.str.1, i64 noundef %13) #3
%18 = load ptr, ptr %1, align 8, !tbaa !5
%19 = call i64 @ILockBytes_WriteAt(ptr noundef %18, i32 2000, ptr noundef nonnull %4, i32 noundef 512, ptr noundef null) #3
%20 = load i64, ptr @S_OK, align 8, !tbaa !11
%21 = icmp eq i64 %19, %20
%22 = zext i1 %21 to i32
%23 = call i32 (i32, ptr, ...) @ok(i32 noundef %22, ptr noundef nonnull @.str.1, i64 noundef %19) #3
%24 = load ptr, ptr %1, align 8, !tbaa !5
%25 = load i32, ptr @STGM_CREATE, align 4, !tbaa !9
%26 = load i32, ptr @STGM_SHARE_EXCLUSIVE, align 4, !tbaa !9
%27 = or i32 %26, %25
%28 = load i32, ptr @STGM_READWRITE, align 4, !tbaa !9
%29 = or i32 %27, %28
%30 = call i64 @StgCreateDocfileOnILockBytes(ptr noundef %24, i32 noundef %29, i32 noundef 0, ptr noundef nonnull %2) #3
%31 = load i64, ptr @S_OK, align 8, !tbaa !11
%32 = icmp eq i64 %30, %31
%33 = zext i1 %32 to i32
%34 = call i32 (i32, ptr, ...) @ok(i32 noundef %33, ptr noundef nonnull @.str.2, i64 noundef %30) #3
%35 = load ptr, ptr %2, align 8, !tbaa !5
%36 = call i32 @IStorage_Release(ptr noundef %35) #3
%37 = load ptr, ptr %1, align 8, !tbaa !5
%38 = load i32, ptr @STGM_READ, align 4, !tbaa !9
%39 = load i32, ptr @STGM_SHARE_EXCLUSIVE, align 4, !tbaa !9
%40 = or i32 %39, %38
%41 = call i64 @StgOpenStorageOnILockBytes(ptr noundef %37, ptr noundef null, i32 noundef %40, ptr noundef null, i32 noundef 0, ptr noundef nonnull %2) #3
%42 = load i64, ptr @S_OK, align 8, !tbaa !11
%43 = icmp eq i64 %41, %42
%44 = zext i1 %43 to i32
%45 = call i32 (i32, ptr, ...) @ok(i32 noundef %44, ptr noundef nonnull @.str.3, i64 noundef %41) #3
%46 = call i64 @SUCCEEDED(i64 noundef %41) #3
%47 = icmp eq i64 %46, 0
br i1 %47, label %61, label %48
48: ; preds = %0
%49 = load ptr, ptr %2, align 8, !tbaa !5
%50 = load i32, ptr @STATFLAG_NONAME, align 4, !tbaa !9
%51 = call i64 @IStorage_Stat(ptr noundef %49, ptr noundef nonnull %3, i32 noundef %50) #3
%52 = load i64, ptr @S_OK, align 8, !tbaa !11
%53 = icmp eq i64 %51, %52
%54 = zext i1 %53 to i32
%55 = call i32 (i32, ptr, ...) @ok(i32 noundef %54, ptr noundef nonnull @.str.3, i64 noundef %51) #3
%56 = getelementptr inbounds %struct.TYPE_11__, ptr %3, i64 0, i32 1
%57 = call i32 @IsEqualCLSID(ptr noundef nonnull %56, ptr noundef nonnull @GUID_NULL) #3
%58 = call i32 (i32, ptr, ...) @ok(i32 noundef %57, ptr noundef nonnull @.str.4) #3
%59 = load ptr, ptr %2, align 8, !tbaa !5
%60 = call i32 @IStorage_Release(ptr noundef %59) #3
br label %61
61: ; preds = %48, %0
%62 = load ptr, ptr %1, align 8, !tbaa !5
%63 = load i32, ptr @STATFLAG_NONAME, align 4, !tbaa !9
%64 = call i64 @ILockBytes_Stat(ptr noundef %62, ptr noundef nonnull %3, i32 noundef %63) #3
%65 = load i64, ptr @S_OK, align 8, !tbaa !11
%66 = icmp eq i64 %64, %65
%67 = zext i1 %66 to i32
%68 = call i32 (i32, ptr, ...) @ok(i32 noundef %67, ptr noundef nonnull @.str.5, i64 noundef %64) #3
%69 = load i32, ptr %3, align 4, !tbaa !13
%70 = icmp slt i32 %69, 2512
%71 = zext i1 %70 to i32
%72 = call i32 (i32, ptr, ...) @ok(i32 noundef %71, ptr noundef nonnull @.str.6, i32 noundef %69) #3
%73 = load ptr, ptr %1, align 8, !tbaa !5
%74 = call i32 @ILockBytes_Release(ptr noundef %73) #3
call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @CreateILockBytesOnHGlobal(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ok(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ILockBytes_WriteAt(ptr noundef, i32, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @StgCreateDocfileOnILockBytes(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @IStorage_Release(ptr noundef) local_unnamed_addr #2
declare i64 @StgOpenStorageOnILockBytes(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @SUCCEEDED(i64 noundef) local_unnamed_addr #2
declare i64 @IStorage_Stat(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @IsEqualCLSID(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ILockBytes_Stat(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ILockBytes_Release(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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"TYPE_11__", !15, i64 0, !10, i64 4}
!15 = !{!"TYPE_9__", !16, i64 0}
!16 = !{!"TYPE_8__", !10, i64 0}
| ; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/ole32/extr_storage32.c_test_hglobal_storage_creation.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/ole32/extr_storage32.c_test_hglobal_storage_creation.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_11__ = type { %struct.TYPE_9__, i32 }
%struct.TYPE_9__ = type { %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32 }
@TRUE = common local_unnamed_addr global i32 0, align 4
@S_OK = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [41 x i8] c"CreateILockBytesOnHGlobal failed, hr=%x\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"ILockBytes_WriteAt failed, hr=%x\0A\00", align 1
@STGM_CREATE = common local_unnamed_addr global i32 0, align 4
@STGM_SHARE_EXCLUSIVE = common local_unnamed_addr global i32 0, align 4
@STGM_READWRITE = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [44 x i8] c"StgCreateDocfileOnILockBytes failed, hr=%x\0A\00", align 1
@STGM_READ = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [42 x i8] c"StgOpenStorageOnILockBytes failed, hr=%x\0A\00", align 1
@STATFLAG_NONAME = common local_unnamed_addr global i32 0, align 4
@GUID_NULL = common global i32 0, align 4
@.str.4 = private unnamed_addr constant [24 x i8] c"unexpected CLSID value\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"ILockBytes_Stat failed, hr=%x\0A\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"expected truncated size, got %d\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @test_hglobal_storage_creation], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @test_hglobal_storage_creation() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca %struct.TYPE_11__, align 4
%4 = alloca [512 x i8], align 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
store ptr null, ptr %1, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
store ptr null, ptr %2, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %4) #3
%5 = load i32, ptr @TRUE, align 4, !tbaa !10
%6 = call i64 @CreateILockBytesOnHGlobal(ptr noundef null, i32 noundef %5, ptr noundef nonnull %1) #3
%7 = load i64, ptr @S_OK, align 8, !tbaa !12
%8 = icmp eq i64 %6, %7
%9 = zext i1 %8 to i32
%10 = call i32 (i32, ptr, ...) @ok(i32 noundef %9, ptr noundef nonnull @.str, i64 noundef %6) #3
%11 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 170, i32 noundef 512) #3
%12 = load ptr, ptr %1, align 8, !tbaa !6
%13 = call i64 @ILockBytes_WriteAt(ptr noundef %12, i64 0, ptr noundef nonnull %4, i32 noundef 512, ptr noundef null) #3
%14 = load i64, ptr @S_OK, align 8, !tbaa !12
%15 = icmp eq i64 %13, %14
%16 = zext i1 %15 to i32
%17 = call i32 (i32, ptr, ...) @ok(i32 noundef %16, ptr noundef nonnull @.str.1, i64 noundef %13) #3
%18 = load ptr, ptr %1, align 8, !tbaa !6
%19 = call i64 @ILockBytes_WriteAt(ptr noundef %18, i64 2000, ptr noundef nonnull %4, i32 noundef 512, ptr noundef null) #3
%20 = load i64, ptr @S_OK, align 8, !tbaa !12
%21 = icmp eq i64 %19, %20
%22 = zext i1 %21 to i32
%23 = call i32 (i32, ptr, ...) @ok(i32 noundef %22, ptr noundef nonnull @.str.1, i64 noundef %19) #3
%24 = load ptr, ptr %1, align 8, !tbaa !6
%25 = load i32, ptr @STGM_CREATE, align 4, !tbaa !10
%26 = load i32, ptr @STGM_SHARE_EXCLUSIVE, align 4, !tbaa !10
%27 = or i32 %26, %25
%28 = load i32, ptr @STGM_READWRITE, align 4, !tbaa !10
%29 = or i32 %27, %28
%30 = call i64 @StgCreateDocfileOnILockBytes(ptr noundef %24, i32 noundef %29, i32 noundef 0, ptr noundef nonnull %2) #3
%31 = load i64, ptr @S_OK, align 8, !tbaa !12
%32 = icmp eq i64 %30, %31
%33 = zext i1 %32 to i32
%34 = call i32 (i32, ptr, ...) @ok(i32 noundef %33, ptr noundef nonnull @.str.2, i64 noundef %30) #3
%35 = load ptr, ptr %2, align 8, !tbaa !6
%36 = call i32 @IStorage_Release(ptr noundef %35) #3
%37 = load ptr, ptr %1, align 8, !tbaa !6
%38 = load i32, ptr @STGM_READ, align 4, !tbaa !10
%39 = load i32, ptr @STGM_SHARE_EXCLUSIVE, align 4, !tbaa !10
%40 = or i32 %39, %38
%41 = call i64 @StgOpenStorageOnILockBytes(ptr noundef %37, ptr noundef null, i32 noundef %40, ptr noundef null, i32 noundef 0, ptr noundef nonnull %2) #3
%42 = load i64, ptr @S_OK, align 8, !tbaa !12
%43 = icmp eq i64 %41, %42
%44 = zext i1 %43 to i32
%45 = call i32 (i32, ptr, ...) @ok(i32 noundef %44, ptr noundef nonnull @.str.3, i64 noundef %41) #3
%46 = call i64 @SUCCEEDED(i64 noundef %41) #3
%47 = icmp eq i64 %46, 0
br i1 %47, label %61, label %48
48: ; preds = %0
%49 = load ptr, ptr %2, align 8, !tbaa !6
%50 = load i32, ptr @STATFLAG_NONAME, align 4, !tbaa !10
%51 = call i64 @IStorage_Stat(ptr noundef %49, ptr noundef nonnull %3, i32 noundef %50) #3
%52 = load i64, ptr @S_OK, align 8, !tbaa !12
%53 = icmp eq i64 %51, %52
%54 = zext i1 %53 to i32
%55 = call i32 (i32, ptr, ...) @ok(i32 noundef %54, ptr noundef nonnull @.str.3, i64 noundef %51) #3
%56 = getelementptr inbounds i8, ptr %3, i64 4
%57 = call i32 @IsEqualCLSID(ptr noundef nonnull %56, ptr noundef nonnull @GUID_NULL) #3
%58 = call i32 (i32, ptr, ...) @ok(i32 noundef %57, ptr noundef nonnull @.str.4) #3
%59 = load ptr, ptr %2, align 8, !tbaa !6
%60 = call i32 @IStorage_Release(ptr noundef %59) #3
br label %61
61: ; preds = %48, %0
%62 = load ptr, ptr %1, align 8, !tbaa !6
%63 = load i32, ptr @STATFLAG_NONAME, align 4, !tbaa !10
%64 = call i64 @ILockBytes_Stat(ptr noundef %62, ptr noundef nonnull %3, i32 noundef %63) #3
%65 = load i64, ptr @S_OK, align 8, !tbaa !12
%66 = icmp eq i64 %64, %65
%67 = zext i1 %66 to i32
%68 = call i32 (i32, ptr, ...) @ok(i32 noundef %67, ptr noundef nonnull @.str.5, i64 noundef %64) #3
%69 = load i32, ptr %3, align 4, !tbaa !14
%70 = icmp slt i32 %69, 2512
%71 = zext i1 %70 to i32
%72 = call i32 (i32, ptr, ...) @ok(i32 noundef %71, ptr noundef nonnull @.str.6, i32 noundef %69) #3
%73 = load ptr, ptr %1, align 8, !tbaa !6
%74 = call i32 @ILockBytes_Release(ptr noundef %73) #3
call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @CreateILockBytesOnHGlobal(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ok(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ILockBytes_WriteAt(ptr noundef, i64, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @StgCreateDocfileOnILockBytes(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @IStorage_Release(ptr noundef) local_unnamed_addr #2
declare i64 @StgOpenStorageOnILockBytes(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @SUCCEEDED(i64 noundef) local_unnamed_addr #2
declare i64 @IStorage_Stat(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @IsEqualCLSID(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ILockBytes_Stat(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ILockBytes_Release(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, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"TYPE_11__", !16, i64 0, !11, i64 4}
!16 = !{!"TYPE_9__", !17, i64 0}
!17 = !{!"TYPE_8__", !11, i64 0}
| reactos_modules_rostests_winetests_ole32_extr_storage32.c_test_hglobal_storage_creation |
; ModuleID = 'AnghaBench/freebsd/crypto/heimdal/appl/ftp/ftpd/extr_gssapi.c_gss_decode.c'
source_filename = "AnghaBench/freebsd/crypto/heimdal/appl/ftp/ftpd/extr_gssapi.c_gss_decode.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, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @gss_decode], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @gss_decode(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2, i32 %3) #0 {
%5 = alloca i32, align 4
%6 = alloca %struct.TYPE_5__, align 8
%7 = alloca %struct.TYPE_5__, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
store i32 %2, ptr %6, align 8, !tbaa !5
%10 = getelementptr inbounds %struct.TYPE_5__, ptr %6, i64 0, i32 1
store ptr %1, ptr %10, align 8, !tbaa !11
%11 = load i32, ptr %0, align 4, !tbaa !12
%12 = call i32 @gss_unwrap(ptr noundef nonnull %5, i32 noundef %11, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %8) #3
%13 = call i64 @GSS_ERROR(i32 noundef %12) #3
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %4
%16 = getelementptr inbounds %struct.TYPE_5__, ptr %7, i64 0, i32 1
%17 = load ptr, ptr %16, align 8, !tbaa !11
%18 = load i32, ptr %7, align 8, !tbaa !5
%19 = call i32 @memmove(ptr noundef %1, ptr noundef %17, i32 noundef %18) #3
%20 = load i32, ptr %7, align 8, !tbaa !5
%21 = call i32 @gss_release_buffer(ptr noundef nonnull %5, ptr noundef nonnull %7) #3
br label %22
22: ; preds = %4, %15
%23 = phi i32 [ %20, %15 ], [ -1, %4 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %23
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @gss_unwrap(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @GSS_ERROR(i32 noundef) local_unnamed_addr #2
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @gss_release_buffer(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, !7, i64 0}
!6 = !{!"TYPE_5__", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !7, i64 0}
!13 = !{!"gssapi_data", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/crypto/heimdal/appl/ftp/ftpd/extr_gssapi.c_gss_decode.c'
source_filename = "AnghaBench/freebsd/crypto/heimdal/appl/ftp/ftpd/extr_gssapi.c_gss_decode.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, ptr }
@llvm.used = appending global [1 x ptr] [ptr @gss_decode], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @gss_decode(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2, i32 %3) #0 {
%5 = alloca i32, align 4
%6 = alloca %struct.TYPE_5__, align 8
%7 = alloca %struct.TYPE_5__, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
store i32 %2, ptr %6, align 8, !tbaa !6
%10 = getelementptr inbounds i8, ptr %6, i64 8
store ptr %1, ptr %10, align 8, !tbaa !12
%11 = load i32, ptr %0, align 4, !tbaa !13
%12 = call i32 @gss_unwrap(ptr noundef nonnull %5, i32 noundef %11, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %8) #3
%13 = call i64 @GSS_ERROR(i32 noundef %12) #3
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %4
%16 = getelementptr inbounds i8, ptr %7, i64 8
%17 = load ptr, ptr %16, align 8, !tbaa !12
%18 = load i32, ptr %7, align 8, !tbaa !6
%19 = call i32 @memmove(ptr noundef %1, ptr noundef %17, i32 noundef %18) #3
%20 = load i32, ptr %7, align 8, !tbaa !6
%21 = call i32 @gss_release_buffer(ptr noundef nonnull %5, ptr noundef nonnull %7) #3
br label %22
22: ; preds = %4, %15
%23 = phi i32 [ %20, %15 ], [ -1, %4 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %23
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @gss_unwrap(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @GSS_ERROR(i32 noundef) local_unnamed_addr #2
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @gss_release_buffer(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, !8, i64 0}
!7 = !{!"TYPE_5__", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!14, !8, i64 0}
!14 = !{!"gssapi_data", !8, i64 0}
| freebsd_crypto_heimdal_appl_ftp_ftpd_extr_gssapi.c_gss_decode |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hv/extr_vmbus_drv.c_vmbus_remove.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hv/extr_vmbus_drv.c_vmbus_remove.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"remove not set for driver %s\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @vmbus_remove], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @vmbus_remove(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = tail call ptr @drv_to_hv_drv(i32 noundef %2) #2
%4 = tail call ptr @device_to_hv_device(ptr noundef nonnull %0) #2
%5 = load ptr, ptr %3, align 8, !tbaa !10
%6 = icmp eq ptr %5, null
br i1 %6, label %9, label %7
7: ; preds = %1
%8 = tail call i32 %5(ptr noundef %4) #2
br label %12
9: ; preds = %1
%10 = tail call i32 @dev_name(ptr noundef nonnull %0) #2
%11 = tail call i32 @pr_err(ptr noundef nonnull @.str, i32 noundef %10) #2
br label %12
12: ; preds = %9, %7
ret i32 0
}
declare ptr @drv_to_hv_drv(i32 noundef) local_unnamed_addr #1
declare ptr @device_to_hv_device(ptr noundef) local_unnamed_addr #1
declare i32 @pr_err(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_name(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 = !{!"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 = !{!"hv_driver", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hv/extr_vmbus_drv.c_vmbus_remove.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hv/extr_vmbus_drv.c_vmbus_remove.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 [30 x i8] c"remove not set for driver %s\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @vmbus_remove], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @vmbus_remove(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = tail call ptr @drv_to_hv_drv(i32 noundef %2) #2
%4 = tail call ptr @device_to_hv_device(ptr noundef nonnull %0) #2
%5 = load ptr, ptr %3, align 8, !tbaa !11
%6 = icmp eq ptr %5, null
br i1 %6, label %9, label %7
7: ; preds = %1
%8 = tail call i32 %5(ptr noundef %4) #2
br label %12
9: ; preds = %1
%10 = tail call i32 @dev_name(ptr noundef nonnull %0) #2
%11 = tail call i32 @pr_err(ptr noundef nonnull @.str, i32 noundef %10) #2
br label %12
12: ; preds = %9, %7
ret i32 0
}
declare ptr @drv_to_hv_drv(i32 noundef) local_unnamed_addr #1
declare ptr @device_to_hv_device(ptr noundef) local_unnamed_addr #1
declare i32 @pr_err(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_name(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 = !{!"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 = !{!"hv_driver", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
| fastsocket_kernel_drivers_hv_extr_vmbus_drv.c_vmbus_remove |
; ModuleID = 'AnghaBench/linux/fs/cifs/extr_smb2ops.c_smb2_next_header.c'
source_filename = "AnghaBench/linux/fs/cifs/extr_smb2ops.c_smb2_next_header.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.smb2_sync_hdr = type { i64, i32 }
@SMB2_TRANSFORM_PROTO_NUM = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @smb2_next_header], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @smb2_next_header(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8
%3 = load i64, ptr @SMB2_TRANSFORM_PROTO_NUM, align 8, !tbaa !5
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = trunc i64 %2 to i32
%7 = tail call i32 @le32_to_cpu(i32 noundef %6) #2
%8 = add i32 %7, 4
br label %13
9: ; preds = %1
%10 = getelementptr inbounds %struct.smb2_sync_hdr, ptr %0, i64 0, i32 1
%11 = load i32, ptr %10, align 8, !tbaa !9
%12 = tail call i32 @le32_to_cpu(i32 noundef %11) #2
br label %13
13: ; preds = %9, %5
%14 = phi i32 [ %8, %5 ], [ %12, %9 ]
ret i32 %14
}
declare i32 @le32_to_cpu(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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"smb2_sync_hdr", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/cifs/extr_smb2ops.c_smb2_next_header.c'
source_filename = "AnghaBench/linux/fs/cifs/extr_smb2ops.c_smb2_next_header.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SMB2_TRANSFORM_PROTO_NUM = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @smb2_next_header], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @smb2_next_header(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8
%3 = load i64, ptr @SMB2_TRANSFORM_PROTO_NUM, align 8, !tbaa !6
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = trunc i64 %2 to i32
%7 = tail call i32 @le32_to_cpu(i32 noundef %6) #2
%8 = add i32 %7, 4
br label %13
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %0, i64 8
%11 = load i32, ptr %10, align 8, !tbaa !10
%12 = tail call i32 @le32_to_cpu(i32 noundef %11) #2
br label %13
13: ; preds = %9, %5
%14 = phi i32 [ %8, %5 ], [ %12, %9 ]
ret i32 %14
}
declare i32 @le32_to_cpu(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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"smb2_sync_hdr", !7, i64 0, !12, i64 8}
!12 = !{!"int", !8, i64 0}
| linux_fs_cifs_extr_smb2ops.c_smb2_next_header |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_switchx2.c_mlxsw_sx_ports_remove.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_switchx2.c_mlxsw_sx_ports_remove.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.mlxsw_sx = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @mlxsw_sx_ports_remove], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mlxsw_sx_ports_remove(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.mlxsw_sx, ptr %0, i64 0, i32 1
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = tail call i32 @mlxsw_core_max_ports(i32 noundef %3) #2
%5 = icmp sgt i32 %4, 1
br i1 %5, label %6, label %17
6: ; preds = %1, %12
%7 = phi i32 [ %13, %12 ], [ 1, %1 ]
%8 = tail call i64 @mlxsw_sx_port_created(ptr noundef nonnull %0, i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @mlxsw_sx_port_remove(ptr noundef nonnull %0, i32 noundef %7) #2
br label %12
12: ; preds = %6, %10
%13 = add nuw nsw i32 %7, 1
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = tail call i32 @mlxsw_core_max_ports(i32 noundef %14) #2
%16 = icmp slt i32 %13, %15
br i1 %16, label %6, label %17, !llvm.loop !10
17: ; preds = %12, %1
%18 = load i32, ptr %0, align 4, !tbaa !12
%19 = tail call i32 @kfree(i32 noundef %18) #2
ret void
}
declare i32 @mlxsw_core_max_ports(i32 noundef) local_unnamed_addr #1
declare i64 @mlxsw_sx_port_created(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_sx_port_remove(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(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 = !{!"mlxsw_sx", !7, i64 0, !7, i64 4}
!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 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_switchx2.c_mlxsw_sx_ports_remove.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_switchx2.c_mlxsw_sx_ports_remove.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @mlxsw_sx_ports_remove], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mlxsw_sx_ports_remove(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = tail call i32 @mlxsw_core_max_ports(i32 noundef %3) #2
%5 = icmp sgt i32 %4, 1
br i1 %5, label %6, label %17
6: ; preds = %1, %12
%7 = phi i32 [ %13, %12 ], [ 1, %1 ]
%8 = tail call i64 @mlxsw_sx_port_created(ptr noundef nonnull %0, i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @mlxsw_sx_port_remove(ptr noundef nonnull %0, i32 noundef %7) #2
br label %12
12: ; preds = %6, %10
%13 = add nuw nsw i32 %7, 1
%14 = load i32, ptr %2, align 4, !tbaa !6
%15 = tail call i32 @mlxsw_core_max_ports(i32 noundef %14) #2
%16 = icmp slt i32 %13, %15
br i1 %16, label %6, label %17, !llvm.loop !11
17: ; preds = %12, %1
%18 = load i32, ptr %0, align 4, !tbaa !13
%19 = tail call i32 @kfree(i32 noundef %18) #2
ret void
}
declare i32 @mlxsw_core_max_ports(i32 noundef) local_unnamed_addr #1
declare i64 @mlxsw_sx_port_created(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlxsw_sx_port_remove(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(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 = !{!"mlxsw_sx", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !8, i64 0}
| linux_drivers_net_ethernet_mellanox_mlxsw_extr_switchx2.c_mlxsw_sx_ports_remove |
; ModuleID = 'AnghaBench/RetroArch/gfx/drivers/extr_gl_core.c_gl_core_wrap_type_to_enum.c'
source_filename = "AnghaBench/RetroArch/gfx/drivers/extr_gl_core.c_gl_core_wrap_type_to_enum.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"
@GL_CLAMP_TO_BORDER = dso_local local_unnamed_addr global i32 0, align 4
@GL_CLAMP_TO_EDGE = dso_local local_unnamed_addr global i32 0, align 4
@GL_REPEAT = dso_local local_unnamed_addr global i32 0, align 4
@GL_MIRRORED_REPEAT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @gl_core_wrap_type_to_enum], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @gl_core_wrap_type_to_enum(i32 noundef %0) #0 {
switch i32 %0, label %10 [
i32 131, label %2
i32 130, label %4
i32 128, label %6
i32 129, label %8
]
2: ; preds = %1
%3 = load i32, ptr @GL_CLAMP_TO_BORDER, align 4, !tbaa !5
br label %10
4: ; preds = %1
%5 = load i32, ptr @GL_CLAMP_TO_EDGE, align 4, !tbaa !5
br label %10
6: ; preds = %1
%7 = load i32, ptr @GL_REPEAT, align 4, !tbaa !5
br label %10
8: ; preds = %1
%9 = load i32, ptr @GL_MIRRORED_REPEAT, align 4, !tbaa !5
br label %10
10: ; preds = %1, %8, %6, %4, %2
%11 = phi i32 [ %9, %8 ], [ %7, %6 ], [ %5, %4 ], [ %3, %2 ], [ 0, %1 ]
ret i32 %11
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/RetroArch/gfx/drivers/extr_gl_core.c_gl_core_wrap_type_to_enum.c'
source_filename = "AnghaBench/RetroArch/gfx/drivers/extr_gl_core.c_gl_core_wrap_type_to_enum.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GL_CLAMP_TO_BORDER = common local_unnamed_addr global i32 0, align 4
@GL_CLAMP_TO_EDGE = common local_unnamed_addr global i32 0, align 4
@GL_REPEAT = common local_unnamed_addr global i32 0, align 4
@GL_MIRRORED_REPEAT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @gl_core_wrap_type_to_enum], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal i32 @gl_core_wrap_type_to_enum(i32 noundef %0) #0 {
switch i32 %0, label %10 [
i32 131, label %2
i32 130, label %4
i32 128, label %6
i32 129, label %8
]
2: ; preds = %1
%3 = load i32, ptr @GL_CLAMP_TO_BORDER, align 4, !tbaa !6
br label %10
4: ; preds = %1
%5 = load i32, ptr @GL_CLAMP_TO_EDGE, align 4, !tbaa !6
br label %10
6: ; preds = %1
%7 = load i32, ptr @GL_REPEAT, align 4, !tbaa !6
br label %10
8: ; preds = %1
%9 = load i32, ptr @GL_MIRRORED_REPEAT, align 4, !tbaa !6
br label %10
10: ; preds = %1, %8, %6, %4, %2
%11 = phi i32 [ %9, %8 ], [ %7, %6 ], [ %5, %4 ], [ %3, %2 ], [ 0, %1 ]
ret i32 %11
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| RetroArch_gfx_drivers_extr_gl_core.c_gl_core_wrap_type_to_enum |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/mvm/extr_utils.c_iwl_mvm_legacy_rate_to_mac80211_idx.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/mvm/extr_utils.c_iwl_mvm_legacy_rate_to_mac80211_idx.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"
@RATE_LEGACY_RATE_MSK = dso_local local_unnamed_addr global i32 0, align 4
@NL80211_BAND_5GHZ = dso_local local_unnamed_addr global i32 0, align 4
@IWL_FIRST_OFDM_RATE = dso_local local_unnamed_addr global i32 0, align 4
@IWL_RATE_COUNT_LEGACY = dso_local local_unnamed_addr global i32 0, align 4
@fw_rate_idx_to_plcp = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define dso_local i32 @iwl_mvm_legacy_rate_to_mac80211_idx(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @RATE_LEGACY_RATE_MSK, align 4, !tbaa !5
%4 = and i32 %3, %0
%5 = load i32, ptr @NL80211_BAND_5GHZ, align 4, !tbaa !5
%6 = icmp eq i32 %5, %1
%7 = load i32, ptr @IWL_FIRST_OFDM_RATE, align 4
%8 = select i1 %6, i32 %7, i32 0
%9 = load i32, ptr @IWL_RATE_COUNT_LEGACY, align 4, !tbaa !5
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %26
11: ; preds = %2
%12 = load ptr, ptr @fw_rate_idx_to_plcp, align 8, !tbaa !9
%13 = sext i32 %8 to i64
br label %14
14: ; preds = %11, %22
%15 = phi i64 [ %13, %11 ], [ %23, %22 ]
%16 = getelementptr inbounds i32, ptr %12, i64 %15
%17 = load i32, ptr %16, align 4, !tbaa !5
%18 = icmp eq i32 %17, %4
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = trunc i64 %15 to i32
%21 = sub nsw i32 %20, %8
br label %26
22: ; preds = %14
%23 = add nsw i64 %15, 1
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %9, %24
br i1 %25, label %26, label %14, !llvm.loop !11
26: ; preds = %22, %2, %19
%27 = phi i32 [ %21, %19 ], [ -1, %2 ], [ -1, %22 ]
ret i32 %27
}
attributes #0 = { nofree norecurse nosync nounwind 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, !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"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/mvm/extr_utils.c_iwl_mvm_legacy_rate_to_mac80211_idx.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/mvm/extr_utils.c_iwl_mvm_legacy_rate_to_mac80211_idx.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RATE_LEGACY_RATE_MSK = common local_unnamed_addr global i32 0, align 4
@NL80211_BAND_5GHZ = common local_unnamed_addr global i32 0, align 4
@IWL_FIRST_OFDM_RATE = common local_unnamed_addr global i32 0, align 4
@IWL_RATE_COUNT_LEGACY = common local_unnamed_addr global i32 0, align 4
@fw_rate_idx_to_plcp = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define i32 @iwl_mvm_legacy_rate_to_mac80211_idx(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @RATE_LEGACY_RATE_MSK, align 4, !tbaa !6
%4 = and i32 %3, %0
%5 = load i32, ptr @NL80211_BAND_5GHZ, align 4, !tbaa !6
%6 = icmp eq i32 %5, %1
%7 = load i32, ptr @IWL_FIRST_OFDM_RATE, align 4
%8 = select i1 %6, i32 %7, i32 0
%9 = load i32, ptr @IWL_RATE_COUNT_LEGACY, align 4, !tbaa !6
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %26
11: ; preds = %2
%12 = load ptr, ptr @fw_rate_idx_to_plcp, align 8, !tbaa !10
%13 = sext i32 %8 to i64
br label %14
14: ; preds = %11, %22
%15 = phi i64 [ %13, %11 ], [ %23, %22 ]
%16 = getelementptr inbounds i32, ptr %12, i64 %15
%17 = load i32, ptr %16, align 4, !tbaa !6
%18 = icmp eq i32 %17, %4
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = trunc nsw i64 %15 to i32
%21 = sub nsw i32 %20, %8
br label %26
22: ; preds = %14
%23 = add nsw i64 %15, 1
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %9, %24
br i1 %25, label %26, label %14, !llvm.loop !12
26: ; preds = %22, %2, %19
%27 = phi i32 [ %21, %19 ], [ -1, %2 ], [ -1, %22 ]
ret i32 %27
}
attributes #0 = { nofree norecurse nosync nounwind ssp 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, !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"}
| linux_drivers_net_wireless_intel_iwlwifi_mvm_extr_utils.c_iwl_mvm_legacy_rate_to_mac80211_idx |
; ModuleID = 'AnghaBench/obs-studio/plugins/obs-outputs/librtmp/extr_amf.c_AMF_DecodeBoolean.c'
source_filename = "AnghaBench/obs-studio/plugins/obs-outputs/librtmp/extr_amf.c_AMF_DecodeBoolean.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: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @AMF_DecodeBoolean(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i8, ptr %0, align 1, !tbaa !5
%3 = icmp ne i8 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/obs-studio/plugins/obs-outputs/librtmp/extr_amf.c_AMF_DecodeBoolean.c'
source_filename = "AnghaBench/obs-studio/plugins/obs-outputs/librtmp/extr_amf.c_AMF_DecodeBoolean.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: read) uwtable(sync)
define range(i32 0, 2) i32 @AMF_DecodeBoolean(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i8, ptr %0, align 1, !tbaa !6
%3 = icmp ne i8 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) 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 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| obs-studio_plugins_obs-outputs_librtmp_extr_amf.c_AMF_DecodeBoolean |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/kern/extr_subr_prf.c_tprintf_open.c'
source_filename = "AnghaBench/darwin-xnu/bsd/kern/extr_subr_prf.c_tprintf_open.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@P_CONTROLT = dso_local local_unnamed_addr global i32 0, align 4
@SESSION_NULL = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local i32 @tprintf_open(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @proc_session(ptr noundef %0) #2
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = load i32, ptr @P_CONTROLT, align 4, !tbaa !10
%5 = and i32 %4, %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %1
%8 = load i64, ptr %2, align 8, !tbaa !11
%9 = icmp eq i64 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = ptrtoint ptr %2 to i64
%12 = trunc i64 %11 to i32
br label %18
13: ; preds = %7, %1
%14 = load ptr, ptr @SESSION_NULL, align 8, !tbaa !14
%15 = icmp eq ptr %2, %14
br i1 %15, label %18, label %16
16: ; preds = %13
%17 = tail call i32 @session_rele(ptr noundef %2) #2
br label %18
18: ; preds = %13, %16, %10
%19 = phi i32 [ %12, %10 ], [ 0, %16 ], [ 0, %13 ]
ret i32 %19
}
declare ptr @proc_session(ptr noundef) local_unnamed_addr #1
declare i32 @session_rele(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 = !{!"proc", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"session", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/kern/extr_subr_prf.c_tprintf_open.c'
source_filename = "AnghaBench/darwin-xnu/bsd/kern/extr_subr_prf.c_tprintf_open.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@P_CONTROLT = common local_unnamed_addr global i32 0, align 4
@SESSION_NULL = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @tprintf_open(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @proc_session(ptr noundef %0) #2
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = load i32, ptr @P_CONTROLT, align 4, !tbaa !11
%5 = and i32 %4, %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %1
%8 = load i64, ptr %2, align 8, !tbaa !12
%9 = icmp eq i64 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = ptrtoint ptr %2 to i64
%12 = trunc i64 %11 to i32
br label %18
13: ; preds = %7, %1
%14 = load ptr, ptr @SESSION_NULL, align 8, !tbaa !15
%15 = icmp eq ptr %2, %14
br i1 %15, label %18, label %16
16: ; preds = %13
%17 = tail call i32 @session_rele(ptr noundef %2) #2
br label %18
18: ; preds = %13, %16, %10
%19 = phi i32 [ %12, %10 ], [ 0, %16 ], [ 0, %13 ]
ret i32 %19
}
declare ptr @proc_session(ptr noundef) local_unnamed_addr #1
declare i32 @session_rele(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 = !{!"proc", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"session", !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !9, i64 0}
| darwin-xnu_bsd_kern_extr_subr_prf.c_tprintf_open |
; ModuleID = 'AnghaBench/exploitdb/exploits/hardware/dos/extr_21103.c_host_to_ip.c'
source_filename = "AnghaBench/exploitdb/exploits/hardware/dos/extr_21103.c_host_to_ip.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 { i32, i32 }
@host_to_ip.ip_bytes = internal global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @host_to_ip(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @gethostbyname(ptr noundef %0) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %10, label %4
4: ; preds = %1
%5 = getelementptr inbounds %struct.hostent, ptr %2, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = load i32, ptr %2, align 4, !tbaa !10
%8 = tail call i32 @memcpy(ptr noundef nonnull @host_to_ip.ip_bytes, i32 noundef %6, i32 noundef %7) #2
%9 = load i32, ptr @host_to_ip.ip_bytes, align 4, !tbaa !11
br label %10
10: ; preds = %1, %4
%11 = phi i32 [ %9, %4 ], [ 0, %1 ]
ret i32 %11
}
declare ptr @gethostbyname(ptr noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"hostent", !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 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/hardware/dos/extr_21103.c_host_to_ip.c'
source_filename = "AnghaBench/exploitdb/exploits/hardware/dos/extr_21103.c_host_to_ip.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@host_to_ip.ip_bytes = internal global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @host_to_ip(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @gethostbyname(ptr noundef %0) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %10, label %4
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %2, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = load i32, ptr %2, align 4, !tbaa !11
%8 = tail call i32 @memcpy(ptr noundef nonnull @host_to_ip.ip_bytes, i32 noundef %6, i32 noundef %7) #2
%9 = load i32, ptr @host_to_ip.ip_bytes, align 4, !tbaa !12
br label %10
10: ; preds = %1, %4
%11 = phi i32 [ %9, %4 ], [ 0, %1 ]
ret i32 %11
}
declare ptr @gethostbyname(ptr noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"hostent", !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 = !{!8, !8, i64 0}
| exploitdb_exploits_hardware_dos_extr_21103.c_host_to_ip |
; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/shlwapi/extr_ordinal.c_test_SHPropertyBag_ReadLONG.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/shlwapi/extr_ordinal.c_test_SHPropertyBag_ReadLONG.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, %struct.TYPE_5__ }
%struct.TYPE_5__ = type { ptr }
@test_SHPropertyBag_ReadLONG.szName1 = internal constant [6 x i8] c"name1\00", align 1
@prop_vtbl = dso_local global i32 0, align 4
@E_INVALIDARG = dso_local local_unnamed_addr global i64 0, align 8
@S_OK = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [21 x i8] c"incorrect return %x\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"value should not have changed\0A\00", align 1
@S_FALSE = dso_local local_unnamed_addr global i64 0, align 8
@DISP_E_BADVARTYPE = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [34 x i8] c"value should not have changed %x\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @test_SHPropertyBag_ReadLONG], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @test_SHPropertyBag_ReadLONG() #0 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
%2 = tail call i32 (...) @GetProcessHeap() #3
%3 = tail call ptr @HeapAlloc(i32 noundef %2, i32 noundef 0, i32 noundef 16) #3
store i32 1, ptr %3, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i64 0, i32 1
store ptr @prop_vtbl, ptr %4, align 8, !tbaa !12
store i32 -17958194, ptr %1, align 4, !tbaa !13
%5 = call i64 @pSHPropertyBag_ReadLONG(ptr noundef null, ptr noundef nonnull @test_SHPropertyBag_ReadLONG.szName1, ptr noundef nonnull %1) #3
%6 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !14
%7 = icmp eq i64 %5, %6
br i1 %7, label %15, label %8
8: ; preds = %0
%9 = load i64, ptr @S_OK, align 8, !tbaa !14
%10 = icmp eq i64 %5, %9
%11 = zext i1 %10 to i32
%12 = call i64 @broken(i32 noundef %11) #3
%13 = icmp ne i64 %12, 0
%14 = zext i1 %13 to i32
br label %15
15: ; preds = %8, %0
%16 = phi i32 [ 1, %0 ], [ %14, %8 ]
%17 = call i32 (i32, ptr, ...) @ok(i32 noundef %16, ptr noundef nonnull @.str, i64 noundef %5) #3
%18 = load i32, ptr %1, align 4, !tbaa !13
%19 = icmp eq i32 %18, -17958194
%20 = zext i1 %19 to i32
%21 = call i32 (i32, ptr, ...) @ok(i32 noundef %20, ptr noundef nonnull @.str.1) #3
%22 = call i64 @pSHPropertyBag_ReadLONG(ptr noundef nonnull %4, ptr noundef null, ptr noundef nonnull %1) #3
%23 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !14
%24 = icmp eq i64 %22, %23
br i1 %24, label %38, label %25
25: ; preds = %15
%26 = load i64, ptr @S_OK, align 8, !tbaa !14
%27 = icmp eq i64 %22, %26
%28 = zext i1 %27 to i32
%29 = call i64 @broken(i32 noundef %28) #3
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %25
%32 = load i64, ptr @S_FALSE, align 8, !tbaa !14
%33 = icmp eq i64 %22, %32
%34 = zext i1 %33 to i32
%35 = call i64 @broken(i32 noundef %34) #3
%36 = icmp ne i64 %35, 0
%37 = zext i1 %36 to i32
br label %38
38: ; preds = %31, %25, %15
%39 = phi i32 [ 1, %25 ], [ 1, %15 ], [ %37, %31 ]
%40 = call i32 (i32, ptr, ...) @ok(i32 noundef %39, ptr noundef nonnull @.str, i64 noundef %22) #3
%41 = load i32, ptr %1, align 4, !tbaa !13
%42 = icmp eq i32 %41, -17958194
%43 = zext i1 %42 to i32
%44 = call i32 (i32, ptr, ...) @ok(i32 noundef %43, ptr noundef nonnull @.str.1) #3
%45 = call i64 @pSHPropertyBag_ReadLONG(ptr noundef nonnull %4, ptr noundef nonnull @test_SHPropertyBag_ReadLONG.szName1, ptr noundef null) #3
%46 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !14
%47 = icmp eq i64 %45, %46
br i1 %47, label %61, label %48
48: ; preds = %38
%49 = load i64, ptr @S_OK, align 8, !tbaa !14
%50 = icmp eq i64 %45, %49
%51 = zext i1 %50 to i32
%52 = call i64 @broken(i32 noundef %51) #3
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %48
%55 = load i64, ptr @S_FALSE, align 8, !tbaa !14
%56 = icmp eq i64 %45, %55
%57 = zext i1 %56 to i32
%58 = call i64 @broken(i32 noundef %57) #3
%59 = icmp ne i64 %58, 0
%60 = zext i1 %59 to i32
br label %61
61: ; preds = %54, %48, %38
%62 = phi i32 [ 1, %48 ], [ 1, %38 ], [ %60, %54 ]
%63 = call i32 (i32, ptr, ...) @ok(i32 noundef %62, ptr noundef nonnull @.str, i64 noundef %45) #3
%64 = call i64 @pSHPropertyBag_ReadLONG(ptr noundef nonnull %4, ptr noundef nonnull @test_SHPropertyBag_ReadLONG.szName1, ptr noundef nonnull %1) #3
%65 = load i64, ptr @DISP_E_BADVARTYPE, align 8, !tbaa !14
%66 = icmp eq i64 %64, %65
br i1 %66, label %80, label %67
67: ; preds = %61
%68 = load i64, ptr @S_OK, align 8, !tbaa !14
%69 = icmp eq i64 %64, %68
%70 = zext i1 %69 to i32
%71 = call i64 @broken(i32 noundef %70) #3
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %80
73: ; preds = %67
%74 = load i64, ptr @S_FALSE, align 8, !tbaa !14
%75 = icmp eq i64 %64, %74
%76 = zext i1 %75 to i32
%77 = call i64 @broken(i32 noundef %76) #3
%78 = icmp ne i64 %77, 0
%79 = zext i1 %78 to i32
br label %80
80: ; preds = %73, %67, %61
%81 = phi i32 [ 1, %67 ], [ 1, %61 ], [ %79, %73 ]
%82 = call i32 (i32, ptr, ...) @ok(i32 noundef %81, ptr noundef nonnull @.str, i64 noundef %64) #3
%83 = load i32, ptr %1, align 4, !tbaa !13
%84 = icmp eq i32 %83, -17958194
br i1 %84, label %92, label %85
85: ; preds = %80
%86 = icmp eq i32 %83, -17958400
%87 = zext i1 %86 to i32
%88 = call i64 @broken(i32 noundef %87) #3
%89 = icmp ne i64 %88, 0
%90 = zext i1 %89 to i32
%91 = load i32, ptr %1, align 4, !tbaa !13
br label %92
92: ; preds = %85, %80
%93 = phi i32 [ -17958194, %80 ], [ %91, %85 ]
%94 = phi i32 [ 1, %80 ], [ %90, %85 ]
%95 = call i32 (i32, ptr, ...) @ok(i32 noundef %94, ptr noundef nonnull @.str.2, i32 noundef %93) #3
%96 = call i32 @IUnknown_Release(ptr noundef nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @HeapAlloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GetProcessHeap(...) local_unnamed_addr #2
declare i64 @pSHPropertyBag_ReadLONG(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ok(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i64 @broken(i32 noundef) local_unnamed_addr #2
declare i32 @IUnknown_Release(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_4__", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_5__", !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 8}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !8, i64 0}
| ; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/shlwapi/extr_ordinal.c_test_SHPropertyBag_ReadLONG.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/shlwapi/extr_ordinal.c_test_SHPropertyBag_ReadLONG.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@test_SHPropertyBag_ReadLONG.szName1 = internal constant [6 x i8] c"name1\00", align 1
@prop_vtbl = common global i32 0, align 4
@E_INVALIDARG = common local_unnamed_addr global i64 0, align 8
@S_OK = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [21 x i8] c"incorrect return %x\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"value should not have changed\0A\00", align 1
@S_FALSE = common local_unnamed_addr global i64 0, align 8
@DISP_E_BADVARTYPE = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [34 x i8] c"value should not have changed %x\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @test_SHPropertyBag_ReadLONG], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @test_SHPropertyBag_ReadLONG() #0 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
%2 = tail call i32 @GetProcessHeap() #3
%3 = tail call ptr @HeapAlloc(i32 noundef %2, i32 noundef 0, i32 noundef 16) #3
store i32 1, ptr %3, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %3, i64 8
store ptr @prop_vtbl, ptr %4, align 8, !tbaa !13
store i32 -17958194, ptr %1, align 4, !tbaa !14
%5 = call i64 @pSHPropertyBag_ReadLONG(ptr noundef null, ptr noundef nonnull @test_SHPropertyBag_ReadLONG.szName1, ptr noundef nonnull %1) #3
%6 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !15
%7 = icmp eq i64 %5, %6
br i1 %7, label %15, label %8
8: ; preds = %0
%9 = load i64, ptr @S_OK, align 8, !tbaa !15
%10 = icmp eq i64 %5, %9
%11 = zext i1 %10 to i32
%12 = call i64 @broken(i32 noundef %11) #3
%13 = icmp ne i64 %12, 0
%14 = zext i1 %13 to i32
br label %15
15: ; preds = %8, %0
%16 = phi i32 [ 1, %0 ], [ %14, %8 ]
%17 = call i32 (i32, ptr, ...) @ok(i32 noundef %16, ptr noundef nonnull @.str, i64 noundef %5) #3
%18 = load i32, ptr %1, align 4, !tbaa !14
%19 = icmp eq i32 %18, -17958194
%20 = zext i1 %19 to i32
%21 = call i32 (i32, ptr, ...) @ok(i32 noundef %20, ptr noundef nonnull @.str.1) #3
%22 = call i64 @pSHPropertyBag_ReadLONG(ptr noundef nonnull %4, ptr noundef null, ptr noundef nonnull %1) #3
%23 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !15
%24 = icmp eq i64 %22, %23
br i1 %24, label %38, label %25
25: ; preds = %15
%26 = load i64, ptr @S_OK, align 8, !tbaa !15
%27 = icmp eq i64 %22, %26
%28 = zext i1 %27 to i32
%29 = call i64 @broken(i32 noundef %28) #3
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %25
%32 = load i64, ptr @S_FALSE, align 8, !tbaa !15
%33 = icmp eq i64 %22, %32
%34 = zext i1 %33 to i32
%35 = call i64 @broken(i32 noundef %34) #3
%36 = icmp ne i64 %35, 0
%37 = zext i1 %36 to i32
br label %38
38: ; preds = %31, %25, %15
%39 = phi i32 [ 1, %25 ], [ 1, %15 ], [ %37, %31 ]
%40 = call i32 (i32, ptr, ...) @ok(i32 noundef %39, ptr noundef nonnull @.str, i64 noundef %22) #3
%41 = load i32, ptr %1, align 4, !tbaa !14
%42 = icmp eq i32 %41, -17958194
%43 = zext i1 %42 to i32
%44 = call i32 (i32, ptr, ...) @ok(i32 noundef %43, ptr noundef nonnull @.str.1) #3
%45 = call i64 @pSHPropertyBag_ReadLONG(ptr noundef nonnull %4, ptr noundef nonnull @test_SHPropertyBag_ReadLONG.szName1, ptr noundef null) #3
%46 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !15
%47 = icmp eq i64 %45, %46
br i1 %47, label %61, label %48
48: ; preds = %38
%49 = load i64, ptr @S_OK, align 8, !tbaa !15
%50 = icmp eq i64 %45, %49
%51 = zext i1 %50 to i32
%52 = call i64 @broken(i32 noundef %51) #3
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %48
%55 = load i64, ptr @S_FALSE, align 8, !tbaa !15
%56 = icmp eq i64 %45, %55
%57 = zext i1 %56 to i32
%58 = call i64 @broken(i32 noundef %57) #3
%59 = icmp ne i64 %58, 0
%60 = zext i1 %59 to i32
br label %61
61: ; preds = %54, %48, %38
%62 = phi i32 [ 1, %48 ], [ 1, %38 ], [ %60, %54 ]
%63 = call i32 (i32, ptr, ...) @ok(i32 noundef %62, ptr noundef nonnull @.str, i64 noundef %45) #3
%64 = call i64 @pSHPropertyBag_ReadLONG(ptr noundef nonnull %4, ptr noundef nonnull @test_SHPropertyBag_ReadLONG.szName1, ptr noundef nonnull %1) #3
%65 = load i64, ptr @DISP_E_BADVARTYPE, align 8, !tbaa !15
%66 = icmp eq i64 %64, %65
br i1 %66, label %80, label %67
67: ; preds = %61
%68 = load i64, ptr @S_OK, align 8, !tbaa !15
%69 = icmp eq i64 %64, %68
%70 = zext i1 %69 to i32
%71 = call i64 @broken(i32 noundef %70) #3
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %80
73: ; preds = %67
%74 = load i64, ptr @S_FALSE, align 8, !tbaa !15
%75 = icmp eq i64 %64, %74
%76 = zext i1 %75 to i32
%77 = call i64 @broken(i32 noundef %76) #3
%78 = icmp ne i64 %77, 0
%79 = zext i1 %78 to i32
br label %80
80: ; preds = %73, %67, %61
%81 = phi i32 [ 1, %67 ], [ 1, %61 ], [ %79, %73 ]
%82 = call i32 (i32, ptr, ...) @ok(i32 noundef %81, ptr noundef nonnull @.str, i64 noundef %64) #3
%83 = load i32, ptr %1, align 4, !tbaa !14
%84 = icmp eq i32 %83, -17958194
br i1 %84, label %92, label %85
85: ; preds = %80
%86 = icmp eq i32 %83, -17958400
%87 = zext i1 %86 to i32
%88 = call i64 @broken(i32 noundef %87) #3
%89 = icmp ne i64 %88, 0
%90 = zext i1 %89 to i32
%91 = load i32, ptr %1, align 4, !tbaa !14
br label %92
92: ; preds = %85, %80
%93 = phi i32 [ -17958194, %80 ], [ %91, %85 ]
%94 = phi i32 [ 1, %80 ], [ %90, %85 ]
%95 = call i32 (i32, ptr, ...) @ok(i32 noundef %94, ptr noundef nonnull @.str.2, i32 noundef %93) #3
%96 = call i32 @IUnknown_Release(ptr noundef nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @HeapAlloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GetProcessHeap(...) local_unnamed_addr #2
declare i64 @pSHPropertyBag_ReadLONG(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ok(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i64 @broken(i32 noundef) local_unnamed_addr #2
declare i32 @IUnknown_Release(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_4__", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_5__", !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!7, !12, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !9, i64 0}
| reactos_modules_rostests_winetests_shlwapi_extr_ordinal.c_test_SHPropertyBag_ReadLONG |
; ModuleID = 'AnghaBench/linux/drivers/net/dsa/mv88e6xxx/extr_global1_vtu.c_mv88e6xxx_g1_vtu_vid_write.c'
source_filename = "AnghaBench/linux/drivers/net/dsa/mv88e6xxx/extr_global1_vtu.c_mv88e6xxx_g1_vtu_vid_write.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.mv88e6xxx_vtu_entry = type { i32, i64 }
@MV88E6390_G1_VTU_VID_PAGE = dso_local local_unnamed_addr global i32 0, align 4
@MV88E6XXX_G1_VTU_VID_VALID = dso_local local_unnamed_addr global i32 0, align 4
@MV88E6XXX_G1_VTU_VID = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mv88e6xxx_g1_vtu_vid_write], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mv88e6xxx_g1_vtu_vid_write(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 8, !tbaa !5
%4 = and i32 %3, 4095
%5 = and i32 %3, 4096
%6 = icmp eq i32 %5, 0
%7 = load i32, ptr @MV88E6390_G1_VTU_VID_PAGE, align 4
%8 = select i1 %6, i32 0, i32 %7
%9 = or i32 %8, %4
%10 = getelementptr inbounds %struct.mv88e6xxx_vtu_entry, ptr %1, i64 0, i32 1
%11 = load i64, ptr %10, align 8, !tbaa !11
%12 = icmp eq i64 %11, 0
%13 = load i32, ptr @MV88E6XXX_G1_VTU_VID_VALID, align 4
%14 = select i1 %12, i32 0, i32 %13
%15 = or i32 %9, %14
%16 = load i32, ptr @MV88E6XXX_G1_VTU_VID, align 4, !tbaa !12
%17 = tail call i32 @mv88e6xxx_g1_write(ptr noundef %0, i32 noundef %16, i32 noundef %15) #2
ret i32 %17
}
declare i32 @mv88e6xxx_g1_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"mv88e6xxx_vtu_entry", !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 = !{!6, !10, i64 8}
!12 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/dsa/mv88e6xxx/extr_global1_vtu.c_mv88e6xxx_g1_vtu_vid_write.c'
source_filename = "AnghaBench/linux/drivers/net/dsa/mv88e6xxx/extr_global1_vtu.c_mv88e6xxx_g1_vtu_vid_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MV88E6390_G1_VTU_VID_PAGE = common local_unnamed_addr global i32 0, align 4
@MV88E6XXX_G1_VTU_VID_VALID = common local_unnamed_addr global i32 0, align 4
@MV88E6XXX_G1_VTU_VID = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mv88e6xxx_g1_vtu_vid_write], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mv88e6xxx_g1_vtu_vid_write(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 8, !tbaa !6
%4 = and i32 %3, 4095
%5 = and i32 %3, 4096
%6 = icmp eq i32 %5, 0
%7 = load i32, ptr @MV88E6390_G1_VTU_VID_PAGE, align 4
%8 = select i1 %6, i32 0, i32 %7
%9 = or i32 %8, %4
%10 = getelementptr inbounds i8, ptr %1, i64 8
%11 = load i64, ptr %10, align 8, !tbaa !12
%12 = icmp eq i64 %11, 0
%13 = load i32, ptr @MV88E6XXX_G1_VTU_VID_VALID, align 4
%14 = select i1 %12, i32 0, i32 %13
%15 = or i32 %9, %14
%16 = load i32, ptr @MV88E6XXX_G1_VTU_VID, align 4, !tbaa !13
%17 = tail call i32 @mv88e6xxx_g1_write(ptr noundef %0, i32 noundef %16, i32 noundef %15) #2
ret i32 %17
}
declare i32 @mv88e6xxx_g1_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"mv88e6xxx_vtu_entry", !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 = !{!7, !11, i64 8}
!13 = !{!8, !8, i64 0}
| linux_drivers_net_dsa_mv88e6xxx_extr_global1_vtu.c_mv88e6xxx_g1_vtu_vid_write |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/extr_hosts.c_scsi_remove_host.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/extr_hosts.c_scsi_remove_host.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.Scsi_Host = type { i32, i32, i32, i32 }
@SHOST_CANCEL = dso_local local_unnamed_addr global i32 0, align 4
@SHOST_CANCEL_RECOVERY = dso_local local_unnamed_addr global i32 0, align 4
@SHOST_DEL = dso_local local_unnamed_addr global i32 0, align 4
@SHOST_DEL_RECOVERY = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @scsi_remove_host(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.Scsi_Host, ptr %0, i64 0, i32 3
%3 = tail call i32 @mutex_lock(ptr noundef nonnull %2) #2
%4 = getelementptr inbounds %struct.Scsi_Host, ptr %0, i64 0, i32 2
%5 = load i32, ptr %4, align 4, !tbaa !5
%6 = tail call i32 @spin_lock_irqsave(i32 noundef %5, i64 noundef undef) #2
%7 = load i32, ptr @SHOST_CANCEL, align 4, !tbaa !10
%8 = tail call i64 @scsi_host_set_state(ptr noundef %0, i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %18, label %10
10: ; preds = %1
%11 = load i32, ptr @SHOST_CANCEL_RECOVERY, align 4, !tbaa !10
%12 = tail call i64 @scsi_host_set_state(ptr noundef nonnull %0, i32 noundef %11) #2
%13 = icmp eq i64 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i32, ptr %4, align 4, !tbaa !5
%16 = tail call i32 @spin_unlock_irqrestore(i32 noundef %15, i64 noundef undef) #2
%17 = tail call i32 @mutex_unlock(ptr noundef nonnull %2) #2
br label %40
18: ; preds = %10, %1
%19 = load i32, ptr %4, align 4, !tbaa !5
%20 = tail call i32 @spin_unlock_irqrestore(i32 noundef %19, i64 noundef undef) #2
%21 = tail call i32 @scsi_forget_host(ptr noundef nonnull %0) #2
%22 = tail call i32 @mutex_unlock(ptr noundef nonnull %2) #2
%23 = tail call i32 @scsi_proc_host_rm(ptr noundef nonnull %0) #2
%24 = load i32, ptr %4, align 4, !tbaa !5
%25 = tail call i32 @spin_lock_irqsave(i32 noundef %24, i64 noundef undef) #2
%26 = load i32, ptr @SHOST_DEL, align 4, !tbaa !10
%27 = tail call i64 @scsi_host_set_state(ptr noundef nonnull %0, i32 noundef %26) #2
%28 = icmp eq i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %18
%30 = load i32, ptr @SHOST_DEL_RECOVERY, align 4, !tbaa !10
%31 = tail call i64 @scsi_host_set_state(ptr noundef nonnull %0, i32 noundef %30) #2
%32 = tail call i32 @BUG_ON(i64 noundef %31) #2
br label %33
33: ; preds = %29, %18
%34 = load i32, ptr %4, align 4, !tbaa !5
%35 = tail call i32 @spin_unlock_irqrestore(i32 noundef %34, i64 noundef undef) #2
%36 = tail call i32 @transport_unregister_device(ptr noundef nonnull %0) #2
%37 = getelementptr inbounds %struct.Scsi_Host, ptr %0, i64 0, i32 1
%38 = tail call i32 @device_unregister(ptr noundef nonnull %37) #2
%39 = tail call i32 @device_del(ptr noundef nonnull %0) #2
br label %40
40: ; preds = %33, %14
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @scsi_host_set_state(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @scsi_forget_host(ptr noundef) local_unnamed_addr #1
declare i32 @scsi_proc_host_rm(ptr noundef) local_unnamed_addr #1
declare i32 @BUG_ON(i64 noundef) local_unnamed_addr #1
declare i32 @transport_unregister_device(ptr noundef) local_unnamed_addr #1
declare i32 @device_unregister(ptr noundef) local_unnamed_addr #1
declare i32 @device_del(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"Scsi_Host", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/extr_hosts.c_scsi_remove_host.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/extr_hosts.c_scsi_remove_host.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SHOST_CANCEL = common local_unnamed_addr global i32 0, align 4
@SHOST_CANCEL_RECOVERY = common local_unnamed_addr global i32 0, align 4
@SHOST_DEL = common local_unnamed_addr global i32 0, align 4
@SHOST_DEL_RECOVERY = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @scsi_remove_host(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 12
%3 = tail call i32 @mutex_lock(ptr noundef nonnull %2) #2
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i32, ptr %4, align 4, !tbaa !6
%6 = tail call i32 @spin_lock_irqsave(i32 noundef %5, i64 noundef undef) #2
%7 = load i32, ptr @SHOST_CANCEL, align 4, !tbaa !11
%8 = tail call i64 @scsi_host_set_state(ptr noundef %0, i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %18, label %10
10: ; preds = %1
%11 = load i32, ptr @SHOST_CANCEL_RECOVERY, align 4, !tbaa !11
%12 = tail call i64 @scsi_host_set_state(ptr noundef nonnull %0, i32 noundef %11) #2
%13 = icmp eq i64 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i32, ptr %4, align 4, !tbaa !6
%16 = tail call i32 @spin_unlock_irqrestore(i32 noundef %15, i64 noundef undef) #2
%17 = tail call i32 @mutex_unlock(ptr noundef nonnull %2) #2
br label %40
18: ; preds = %10, %1
%19 = load i32, ptr %4, align 4, !tbaa !6
%20 = tail call i32 @spin_unlock_irqrestore(i32 noundef %19, i64 noundef undef) #2
%21 = tail call i32 @scsi_forget_host(ptr noundef nonnull %0) #2
%22 = tail call i32 @mutex_unlock(ptr noundef nonnull %2) #2
%23 = tail call i32 @scsi_proc_host_rm(ptr noundef nonnull %0) #2
%24 = load i32, ptr %4, align 4, !tbaa !6
%25 = tail call i32 @spin_lock_irqsave(i32 noundef %24, i64 noundef undef) #2
%26 = load i32, ptr @SHOST_DEL, align 4, !tbaa !11
%27 = tail call i64 @scsi_host_set_state(ptr noundef nonnull %0, i32 noundef %26) #2
%28 = icmp eq i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %18
%30 = load i32, ptr @SHOST_DEL_RECOVERY, align 4, !tbaa !11
%31 = tail call i64 @scsi_host_set_state(ptr noundef nonnull %0, i32 noundef %30) #2
%32 = tail call i32 @BUG_ON(i64 noundef %31) #2
br label %33
33: ; preds = %29, %18
%34 = load i32, ptr %4, align 4, !tbaa !6
%35 = tail call i32 @spin_unlock_irqrestore(i32 noundef %34, i64 noundef undef) #2
%36 = tail call i32 @transport_unregister_device(ptr noundef nonnull %0) #2
%37 = getelementptr inbounds i8, ptr %0, i64 4
%38 = tail call i32 @device_unregister(ptr noundef nonnull %37) #2
%39 = tail call i32 @device_del(ptr noundef nonnull %0) #2
br label %40
40: ; preds = %33, %14
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @scsi_host_set_state(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @scsi_forget_host(ptr noundef) local_unnamed_addr #1
declare i32 @scsi_proc_host_rm(ptr noundef) local_unnamed_addr #1
declare i32 @BUG_ON(i64 noundef) local_unnamed_addr #1
declare i32 @transport_unregister_device(ptr noundef) local_unnamed_addr #1
declare i32 @device_unregister(ptr noundef) local_unnamed_addr #1
declare i32 @device_del(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"Scsi_Host", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| fastsocket_kernel_drivers_scsi_extr_hosts.c_scsi_remove_host |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_c-parser.c_c_parser_declspecs.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_c-parser.c_c_parser_declspecs.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 { i64, i32, ptr }
@CPP_NAME = dso_local local_unnamed_addr global i32 0, align 4
@CPP_KEYWORD = dso_local local_unnamed_addr global i32 0, align 4
@CPP_LESS = dso_local local_unnamed_addr global i32 0, align 4
@C_ID_TYPENAME = dso_local local_unnamed_addr global i64 0, align 8
@C_ID_CLASSNAME = dso_local local_unnamed_addr global i64 0, align 8
@ctsk_typedef = dso_local local_unnamed_addr global ptr null, align 8
@NULL_TREE = dso_local local_unnamed_addr global ptr null, align 8
@ctsk_objc = dso_local local_unnamed_addr global ptr null, align 8
@ctsk_resword = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @c_parser_declspecs], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @c_parser_declspecs(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = load i32, ptr %1, align 4, !tbaa !5
%7 = icmp eq i32 %3, 0
%8 = icmp eq i32 %2, 0
br label %9
9: ; preds = %104, %5
%10 = phi i32 [ %6, %5 ], [ %105, %104 ]
%11 = phi i32 [ %4, %5 ], [ %106, %104 ]
%12 = load i32, ptr @CPP_NAME, align 4, !tbaa !10
%13 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %12) #2
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %9
%16 = load i32, ptr @CPP_KEYWORD, align 4, !tbaa !10
%17 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %16) #2
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = tail call i64 (...) @c_dialect_objc() #2
%21 = icmp eq i64 %20, 0
br i1 %21, label %147, label %22
22: ; preds = %19
%23 = load i32, ptr @CPP_LESS, align 4, !tbaa !10
%24 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %23) #2
%25 = icmp eq i64 %24, 0
br i1 %25, label %147, label %26
26: ; preds = %15, %9, %22
%27 = load i32, ptr @CPP_NAME, align 4, !tbaa !10
%28 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %27) #2
%29 = icmp eq i64 %28, 0
br i1 %29, label %75, label %30
30: ; preds = %26
%31 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%32 = getelementptr inbounds %struct.TYPE_2__, ptr %31, i64 0, i32 2
%33 = load ptr, ptr %32, align 8, !tbaa !11
%34 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%35 = load i64, ptr %34, align 8, !tbaa !15
%36 = icmp ne i32 %10, 0
%37 = select i1 %7, i1 true, i1 %36
br i1 %37, label %147, label %38
38: ; preds = %30
%39 = load i64, ptr @C_ID_TYPENAME, align 8, !tbaa !16
%40 = icmp eq i64 %35, %39
%41 = load i64, ptr @C_ID_CLASSNAME, align 8
%42 = icmp eq i64 %35, %41
%43 = select i1 %40, i1 true, i1 %42
br i1 %43, label %44, label %147
44: ; preds = %38
%45 = tail call i32 @c_parser_consume_token(ptr noundef %0) #2
%46 = load i64, ptr @C_ID_TYPENAME, align 8, !tbaa !16
%47 = icmp eq i64 %35, %46
br i1 %47, label %48, label %58
48: ; preds = %44
%49 = tail call i64 (...) @c_dialect_objc() #2
%50 = icmp eq i64 %49, 0
br i1 %50, label %55, label %51
51: ; preds = %48
%52 = load i32, ptr @CPP_LESS, align 4, !tbaa !10
%53 = tail call i64 @c_parser_next_token_is_not(ptr noundef %0, i32 noundef %52) #2
%54 = icmp eq i64 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %51, %48
%56 = load ptr, ptr @ctsk_typedef, align 8, !tbaa !17
%57 = tail call ptr @lookup_name(ptr noundef %33) #2
br label %71
58: ; preds = %51, %44
%59 = load ptr, ptr @NULL_TREE, align 8, !tbaa !17
%60 = tail call i64 (...) @c_dialect_objc() #2
%61 = tail call i32 @gcc_assert(i64 noundef %60) #2
%62 = load ptr, ptr @ctsk_objc, align 8, !tbaa !17
%63 = load i32, ptr @CPP_LESS, align 4, !tbaa !10
%64 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %63) #2
%65 = icmp eq i64 %64, 0
br i1 %65, label %68, label %66
66: ; preds = %58
%67 = tail call ptr @c_parser_objc_protocol_refs(ptr noundef %0) #2
br label %68
68: ; preds = %66, %58
%69 = phi ptr [ %67, %66 ], [ %59, %58 ]
%70 = tail call ptr @objc_get_protocol_qualified_type(ptr noundef %33, ptr noundef %69) #2
br label %71
71: ; preds = %68, %55
%72 = phi ptr [ %57, %55 ], [ %70, %68 ]
%73 = phi ptr [ %56, %55 ], [ %62, %68 ]
%74 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, ptr %72, ptr %73) #2
br label %104
75: ; preds = %26
%76 = load i32, ptr @CPP_LESS, align 4, !tbaa !10
%77 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %76) #2
%78 = icmp eq i64 %77, 0
br i1 %78, label %90, label %79
79: ; preds = %75
%80 = tail call i64 (...) @c_dialect_objc() #2
%81 = tail call i32 @gcc_assert(i64 noundef %80) #2
%82 = icmp ne i32 %10, 0
%83 = select i1 %7, i1 true, i1 %82
br i1 %83, label %147, label %84
84: ; preds = %79
%85 = tail call ptr @c_parser_objc_protocol_refs(ptr noundef %0) #2
%86 = load ptr, ptr @ctsk_objc, align 8, !tbaa !17
%87 = load ptr, ptr @NULL_TREE, align 8, !tbaa !17
%88 = tail call ptr @objc_get_protocol_qualified_type(ptr noundef %87, ptr noundef %85) #2
%89 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, ptr %88, ptr %86) #2
br label %104
90: ; preds = %75
%91 = load i32, ptr @CPP_KEYWORD, align 4, !tbaa !10
%92 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %91) #2
%93 = tail call i32 @gcc_assert(i64 noundef %92) #2
%94 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%95 = getelementptr inbounds %struct.TYPE_2__, ptr %94, i64 0, i32 1
%96 = load i32, ptr %95, align 8, !tbaa !18
switch i32 %96, label %147 [
i32 136, label %97
i32 145, label %97
i32 140, label %97
i32 133, label %97
i32 143, label %97
i32 155, label %97
i32 134, label %97
i32 130, label %107
i32 141, label %107
i32 138, label %107
i32 137, label %107
i32 152, label %107
i32 142, label %107
i32 153, label %107
i32 144, label %107
i32 147, label %107
i32 129, label %107
i32 149, label %107
i32 148, label %107
i32 150, label %107
i32 154, label %107
i32 146, label %116
i32 135, label %122
i32 131, label %122
i32 132, label %128
i32 151, label %136
i32 128, label %136
i32 139, label %136
i32 156, label %142
]
97: ; preds = %90, %90, %90, %90, %90, %90, %90
br i1 %8, label %147, label %98
98: ; preds = %97
%99 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%100 = getelementptr inbounds %struct.TYPE_2__, ptr %99, i64 0, i32 2
%101 = load ptr, ptr %100, align 8, !tbaa !11
%102 = tail call i32 @declspecs_add_scspec(ptr noundef nonnull %1, ptr noundef %101) #2
%103 = tail call i32 @c_parser_consume_token(ptr noundef %0) #2
br label %104
104: ; preds = %98, %108, %117, %123, %131, %136, %144, %84, %71
%105 = phi i32 [ 1, %71 ], [ 0, %84 ], [ %10, %144 ], [ %10, %136 ], [ 1, %131 ], [ 1, %123 ], [ 1, %117 ], [ 1, %108 ], [ %10, %98 ]
%106 = phi i32 [ 1, %71 ], [ %11, %84 ], [ %11, %144 ], [ 1, %136 ], [ 1, %131 ], [ 1, %123 ], [ 1, %117 ], [ 1, %108 ], [ 1, %98 ]
br label %9, !llvm.loop !19
107: ; preds = %90, %90, %90, %90, %90, %90, %90, %90, %90, %90, %90, %90, %90, %90
br i1 %7, label %147, label %108
108: ; preds = %107
%109 = tail call i32 @OBJC_NEED_RAW_IDENTIFIER(i32 noundef 1) #2
%110 = load ptr, ptr @ctsk_resword, align 8, !tbaa !17
%111 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%112 = getelementptr inbounds %struct.TYPE_2__, ptr %111, i64 0, i32 2
%113 = load ptr, ptr %112, align 8, !tbaa !11
%114 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, ptr %113, ptr %110) #2
%115 = tail call i32 @c_parser_consume_token(ptr noundef %0) #2
br label %104
116: ; preds = %90
br i1 %7, label %147, label %117
117: ; preds = %116
%118 = tail call { ptr, ptr } @c_parser_enum_specifier(ptr noundef %0) #2
%119 = extractvalue { ptr, ptr } %118, 0
%120 = extractvalue { ptr, ptr } %118, 1
%121 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, ptr %119, ptr %120) #2
br label %104
122: ; preds = %90, %90
br i1 %7, label %147, label %123
123: ; preds = %122
%124 = tail call { ptr, ptr } @c_parser_struct_or_union_specifier(ptr noundef %0) #2
%125 = extractvalue { ptr, ptr } %124, 0
%126 = extractvalue { ptr, ptr } %124, 1
%127 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, ptr %125, ptr %126) #2
br label %104
128: ; preds = %90
%129 = icmp ne i32 %10, 0
%130 = select i1 %7, i1 true, i1 %129
br i1 %130, label %147, label %131
131: ; preds = %128
%132 = tail call { ptr, ptr } @c_parser_typeof_specifier(ptr noundef %0) #2
%133 = extractvalue { ptr, ptr } %132, 0
%134 = extractvalue { ptr, ptr } %132, 1
%135 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, ptr %133, ptr %134) #2
br label %104
136: ; preds = %90, %90, %90
%137 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%138 = getelementptr inbounds %struct.TYPE_2__, ptr %137, i64 0, i32 2
%139 = load ptr, ptr %138, align 8, !tbaa !11
%140 = tail call i32 @declspecs_add_qual(ptr noundef nonnull %1, ptr noundef %139) #2
%141 = tail call i32 @c_parser_consume_token(ptr noundef %0) #2
br label %104
142: ; preds = %90
%143 = icmp eq i32 %11, 0
br i1 %143, label %147, label %144
144: ; preds = %142
%145 = tail call ptr @c_parser_attributes(ptr noundef %0) #2
%146 = tail call i32 @declspecs_add_attrs(ptr noundef nonnull %1, ptr noundef %145) #2
br label %104
147: ; preds = %90, %142, %128, %122, %116, %107, %97, %79, %30, %38, %22, %19
ret void
}
declare i64 @c_parser_next_token_is(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @c_dialect_objc(...) local_unnamed_addr #1
declare ptr @c_parser_peek_token(ptr noundef) local_unnamed_addr #1
declare i32 @c_parser_consume_token(ptr noundef) local_unnamed_addr #1
declare i64 @c_parser_next_token_is_not(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @lookup_name(ptr noundef) local_unnamed_addr #1
declare i32 @gcc_assert(i64 noundef) local_unnamed_addr #1
declare ptr @c_parser_objc_protocol_refs(ptr noundef) local_unnamed_addr #1
declare ptr @objc_get_protocol_qualified_type(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @declspecs_add_type(ptr noundef, ptr, ptr) local_unnamed_addr #1
declare i32 @declspecs_add_scspec(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @OBJC_NEED_RAW_IDENTIFIER(i32 noundef) local_unnamed_addr #1
declare { ptr, ptr } @c_parser_enum_specifier(ptr noundef) local_unnamed_addr #1
declare { ptr, ptr } @c_parser_struct_or_union_specifier(ptr noundef) local_unnamed_addr #1
declare { ptr, ptr } @c_parser_typeof_specifier(ptr noundef) local_unnamed_addr #1
declare i32 @declspecs_add_qual(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @c_parser_attributes(ptr noundef) local_unnamed_addr #1
declare i32 @declspecs_add_attrs(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"c_declspecs", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !14, i64 16}
!12 = !{!"TYPE_2__", !13, i64 0, !7, i64 8, !14, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!12, !13, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!14, !14, i64 0}
!18 = !{!12, !7, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_c-parser.c_c_parser_declspecs.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_c-parser.c_c_parser_declspecs.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CPP_NAME = common local_unnamed_addr global i32 0, align 4
@CPP_KEYWORD = common local_unnamed_addr global i32 0, align 4
@CPP_LESS = common local_unnamed_addr global i32 0, align 4
@C_ID_TYPENAME = common local_unnamed_addr global i64 0, align 8
@C_ID_CLASSNAME = common local_unnamed_addr global i64 0, align 8
@ctsk_typedef = common local_unnamed_addr global ptr null, align 8
@NULL_TREE = common local_unnamed_addr global ptr null, align 8
@ctsk_objc = common local_unnamed_addr global ptr null, align 8
@ctsk_resword = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @c_parser_declspecs], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @c_parser_declspecs(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = load i32, ptr %1, align 4, !tbaa !6
%7 = icmp eq i32 %3, 0
%8 = icmp eq i32 %2, 0
br label %9
9: ; preds = %112, %5
%10 = phi i32 [ %6, %5 ], [ %113, %112 ]
%11 = phi i32 [ %4, %5 ], [ %114, %112 ]
%12 = load i32, ptr @CPP_NAME, align 4, !tbaa !11
%13 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %12) #2
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %9
%16 = load i32, ptr @CPP_KEYWORD, align 4, !tbaa !11
%17 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %16) #2
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = tail call i64 @c_dialect_objc() #2
%21 = icmp eq i64 %20, 0
br i1 %21, label %153, label %22
22: ; preds = %19
%23 = load i32, ptr @CPP_LESS, align 4, !tbaa !11
%24 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %23) #2
%25 = icmp eq i64 %24, 0
br i1 %25, label %153, label %26
26: ; preds = %15, %9, %22
%27 = load i32, ptr @CPP_NAME, align 4, !tbaa !11
%28 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %27) #2
%29 = icmp eq i64 %28, 0
br i1 %29, label %79, label %30
30: ; preds = %26
%31 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%32 = getelementptr inbounds i8, ptr %31, i64 16
%33 = load ptr, ptr %32, align 8, !tbaa !12
%34 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%35 = load i64, ptr %34, align 8, !tbaa !16
%36 = icmp ne i32 %10, 0
%37 = select i1 %7, i1 true, i1 %36
br i1 %37, label %153, label %38
38: ; preds = %30
%39 = load i64, ptr @C_ID_TYPENAME, align 8, !tbaa !17
%40 = icmp eq i64 %35, %39
%41 = load i64, ptr @C_ID_CLASSNAME, align 8
%42 = icmp eq i64 %35, %41
%43 = select i1 %40, i1 true, i1 %42
br i1 %43, label %44, label %153
44: ; preds = %38
%45 = tail call i32 @c_parser_consume_token(ptr noundef %0) #2
%46 = load i64, ptr @C_ID_TYPENAME, align 8, !tbaa !17
%47 = icmp eq i64 %35, %46
br i1 %47, label %48, label %58
48: ; preds = %44
%49 = tail call i64 @c_dialect_objc() #2
%50 = icmp eq i64 %49, 0
br i1 %50, label %55, label %51
51: ; preds = %48
%52 = load i32, ptr @CPP_LESS, align 4, !tbaa !11
%53 = tail call i64 @c_parser_next_token_is_not(ptr noundef %0, i32 noundef %52) #2
%54 = icmp eq i64 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %51, %48
%56 = load ptr, ptr @ctsk_typedef, align 8, !tbaa !18
%57 = tail call ptr @lookup_name(ptr noundef %33) #2
br label %71
58: ; preds = %51, %44
%59 = load ptr, ptr @NULL_TREE, align 8, !tbaa !18
%60 = tail call i64 @c_dialect_objc() #2
%61 = tail call i32 @gcc_assert(i64 noundef %60) #2
%62 = load ptr, ptr @ctsk_objc, align 8, !tbaa !18
%63 = load i32, ptr @CPP_LESS, align 4, !tbaa !11
%64 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %63) #2
%65 = icmp eq i64 %64, 0
br i1 %65, label %68, label %66
66: ; preds = %58
%67 = tail call ptr @c_parser_objc_protocol_refs(ptr noundef %0) #2
br label %68
68: ; preds = %66, %58
%69 = phi ptr [ %67, %66 ], [ %59, %58 ]
%70 = tail call ptr @objc_get_protocol_qualified_type(ptr noundef %33, ptr noundef %69) #2
br label %71
71: ; preds = %68, %55
%72 = phi ptr [ %57, %55 ], [ %70, %68 ]
%73 = phi ptr [ %56, %55 ], [ %62, %68 ]
%74 = ptrtoint ptr %72 to i64
%75 = insertvalue [2 x i64] poison, i64 %74, 0
%76 = ptrtoint ptr %73 to i64
%77 = insertvalue [2 x i64] %75, i64 %76, 1
%78 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, [2 x i64] %77) #2
br label %112
79: ; preds = %26
%80 = load i32, ptr @CPP_LESS, align 4, !tbaa !11
%81 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %80) #2
%82 = icmp eq i64 %81, 0
br i1 %82, label %98, label %83
83: ; preds = %79
%84 = tail call i64 @c_dialect_objc() #2
%85 = tail call i32 @gcc_assert(i64 noundef %84) #2
%86 = icmp ne i32 %10, 0
%87 = select i1 %7, i1 true, i1 %86
br i1 %87, label %153, label %88
88: ; preds = %83
%89 = tail call ptr @c_parser_objc_protocol_refs(ptr noundef %0) #2
%90 = load ptr, ptr @ctsk_objc, align 8, !tbaa !18
%91 = load ptr, ptr @NULL_TREE, align 8, !tbaa !18
%92 = tail call ptr @objc_get_protocol_qualified_type(ptr noundef %91, ptr noundef %89) #2
%93 = ptrtoint ptr %92 to i64
%94 = insertvalue [2 x i64] poison, i64 %93, 0
%95 = ptrtoint ptr %90 to i64
%96 = insertvalue [2 x i64] %94, i64 %95, 1
%97 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, [2 x i64] %96) #2
br label %112
98: ; preds = %79
%99 = load i32, ptr @CPP_KEYWORD, align 4, !tbaa !11
%100 = tail call i64 @c_parser_next_token_is(ptr noundef %0, i32 noundef %99) #2
%101 = tail call i32 @gcc_assert(i64 noundef %100) #2
%102 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%103 = getelementptr inbounds i8, ptr %102, i64 8
%104 = load i32, ptr %103, align 8, !tbaa !19
switch i32 %104, label %153 [
i32 136, label %105
i32 145, label %105
i32 140, label %105
i32 133, label %105
i32 143, label %105
i32 155, label %105
i32 134, label %105
i32 130, label %115
i32 141, label %115
i32 138, label %115
i32 137, label %115
i32 152, label %115
i32 142, label %115
i32 153, label %115
i32 144, label %115
i32 147, label %115
i32 129, label %115
i32 149, label %115
i32 148, label %115
i32 150, label %115
i32 154, label %115
i32 146, label %128
i32 135, label %132
i32 131, label %132
i32 132, label %136
i32 151, label %142
i32 128, label %142
i32 139, label %142
i32 156, label %148
]
105: ; preds = %98, %98, %98, %98, %98, %98, %98
br i1 %8, label %153, label %106
106: ; preds = %105
%107 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%108 = getelementptr inbounds i8, ptr %107, i64 16
%109 = load ptr, ptr %108, align 8, !tbaa !12
%110 = tail call i32 @declspecs_add_scspec(ptr noundef nonnull %1, ptr noundef %109) #2
%111 = tail call i32 @c_parser_consume_token(ptr noundef %0) #2
br label %112
112: ; preds = %106, %116, %129, %133, %139, %142, %150, %88, %71
%113 = phi i32 [ 1, %71 ], [ 0, %88 ], [ %10, %150 ], [ %10, %142 ], [ 1, %139 ], [ 1, %133 ], [ 1, %129 ], [ 1, %116 ], [ %10, %106 ]
%114 = phi i32 [ 1, %71 ], [ %11, %88 ], [ %11, %150 ], [ 1, %142 ], [ 1, %139 ], [ 1, %133 ], [ 1, %129 ], [ 1, %116 ], [ 1, %106 ]
br label %9, !llvm.loop !20
115: ; preds = %98, %98, %98, %98, %98, %98, %98, %98, %98, %98, %98, %98, %98, %98
br i1 %7, label %153, label %116
116: ; preds = %115
%117 = tail call i32 @OBJC_NEED_RAW_IDENTIFIER(i32 noundef 1) #2
%118 = load ptr, ptr @ctsk_resword, align 8, !tbaa !18
%119 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%120 = getelementptr inbounds i8, ptr %119, i64 16
%121 = load ptr, ptr %120, align 8, !tbaa !12
%122 = ptrtoint ptr %121 to i64
%123 = insertvalue [2 x i64] poison, i64 %122, 0
%124 = ptrtoint ptr %118 to i64
%125 = insertvalue [2 x i64] %123, i64 %124, 1
%126 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, [2 x i64] %125) #2
%127 = tail call i32 @c_parser_consume_token(ptr noundef %0) #2
br label %112
128: ; preds = %98
br i1 %7, label %153, label %129
129: ; preds = %128
%130 = tail call [2 x i64] @c_parser_enum_specifier(ptr noundef %0) #2
%131 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, [2 x i64] %130) #2
br label %112
132: ; preds = %98, %98
br i1 %7, label %153, label %133
133: ; preds = %132
%134 = tail call [2 x i64] @c_parser_struct_or_union_specifier(ptr noundef %0) #2
%135 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, [2 x i64] %134) #2
br label %112
136: ; preds = %98
%137 = icmp ne i32 %10, 0
%138 = select i1 %7, i1 true, i1 %137
br i1 %138, label %153, label %139
139: ; preds = %136
%140 = tail call [2 x i64] @c_parser_typeof_specifier(ptr noundef %0) #2
%141 = tail call i32 @declspecs_add_type(ptr noundef nonnull %1, [2 x i64] %140) #2
br label %112
142: ; preds = %98, %98, %98
%143 = tail call ptr @c_parser_peek_token(ptr noundef %0) #2
%144 = getelementptr inbounds i8, ptr %143, i64 16
%145 = load ptr, ptr %144, align 8, !tbaa !12
%146 = tail call i32 @declspecs_add_qual(ptr noundef nonnull %1, ptr noundef %145) #2
%147 = tail call i32 @c_parser_consume_token(ptr noundef %0) #2
br label %112
148: ; preds = %98
%149 = icmp eq i32 %11, 0
br i1 %149, label %153, label %150
150: ; preds = %148
%151 = tail call ptr @c_parser_attributes(ptr noundef %0) #2
%152 = tail call i32 @declspecs_add_attrs(ptr noundef nonnull %1, ptr noundef %151) #2
br label %112
153: ; preds = %98, %148, %136, %132, %128, %115, %105, %83, %30, %38, %22, %19
ret void
}
declare i64 @c_parser_next_token_is(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @c_dialect_objc(...) local_unnamed_addr #1
declare ptr @c_parser_peek_token(ptr noundef) local_unnamed_addr #1
declare i32 @c_parser_consume_token(ptr noundef) local_unnamed_addr #1
declare i64 @c_parser_next_token_is_not(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @lookup_name(ptr noundef) local_unnamed_addr #1
declare i32 @gcc_assert(i64 noundef) local_unnamed_addr #1
declare ptr @c_parser_objc_protocol_refs(ptr noundef) local_unnamed_addr #1
declare ptr @objc_get_protocol_qualified_type(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @declspecs_add_type(ptr noundef, [2 x i64]) local_unnamed_addr #1
declare i32 @declspecs_add_scspec(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @OBJC_NEED_RAW_IDENTIFIER(i32 noundef) local_unnamed_addr #1
declare [2 x i64] @c_parser_enum_specifier(ptr noundef) local_unnamed_addr #1
declare [2 x i64] @c_parser_struct_or_union_specifier(ptr noundef) local_unnamed_addr #1
declare [2 x i64] @c_parser_typeof_specifier(ptr noundef) local_unnamed_addr #1
declare i32 @declspecs_add_qual(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @c_parser_attributes(ptr noundef) local_unnamed_addr #1
declare i32 @declspecs_add_attrs(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"c_declspecs", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !15, i64 16}
!13 = !{!"TYPE_2__", !14, i64 0, !8, i64 8, !15, i64 16}
!14 = !{!"long", !9, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!13, !14, i64 0}
!17 = !{!14, !14, i64 0}
!18 = !{!15, !15, i64 0}
!19 = !{!13, !8, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
| freebsd_contrib_gcc_extr_c-parser.c_c_parser_declspecs |
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_dcache.c_dcache_hit.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_dcache.c_dcache_hit.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.dcache_block = type { i64, ptr, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @dcache_hit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @dcache_hit(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = icmp eq ptr %3, null
br i1 %4, label %18, label %5
5: ; preds = %2, %14
%6 = phi ptr [ %16, %14 ], [ %3, %2 ]
%7 = tail call i64 @MASK(i32 noundef %1) #2
%8 = load i64, ptr %6, align 8, !tbaa !9
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = getelementptr inbounds %struct.dcache_block, ptr %6, i64 0, i32 2
%12 = load i32, ptr %11, align 8, !tbaa !13
%13 = add nsw i32 %12, 1
store i32 %13, ptr %11, align 8, !tbaa !13
br label %18
14: ; preds = %5
%15 = getelementptr inbounds %struct.dcache_block, ptr %6, i64 0, i32 1
%16 = load ptr, ptr %15, align 8, !tbaa !5
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %5, !llvm.loop !14
18: ; preds = %14, %2, %10
%19 = phi ptr [ %6, %10 ], [ null, %2 ], [ null, %14 ]
ret ptr %19
}
declare i64 @MASK(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"}
!9 = !{!10, !11, i64 0}
!10 = !{!"dcache_block", !11, i64 0, !6, i64 8, !12, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !12, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_dcache.c_dcache_hit.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_dcache.c_dcache_hit.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 @dcache_hit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @dcache_hit(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = icmp eq ptr %3, null
br i1 %4, label %18, label %5
5: ; preds = %2, %14
%6 = phi ptr [ %16, %14 ], [ %3, %2 ]
%7 = tail call i64 @MASK(i32 noundef %1) #2
%8 = load i64, ptr %6, align 8, !tbaa !10
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = getelementptr inbounds i8, ptr %6, i64 16
%12 = load i32, ptr %11, align 8, !tbaa !14
%13 = add nsw i32 %12, 1
store i32 %13, ptr %11, align 8, !tbaa !14
br label %18
14: ; preds = %5
%15 = getelementptr inbounds i8, ptr %6, i64 8
%16 = load ptr, ptr %15, align 8, !tbaa !6
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %5, !llvm.loop !15
18: ; preds = %14, %2, %10
%19 = phi ptr [ %6, %10 ], [ null, %2 ], [ null, %14 ]
ret ptr %19
}
declare i64 @MASK(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"}
!10 = !{!11, !12, i64 0}
!11 = !{!"dcache_block", !12, i64 0, !7, i64 8, !13, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !13, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
| freebsd_contrib_gdb_gdb_extr_dcache.c_dcache_hit |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/broadcom/bnxt/extr_bnxt.c_bnxt_fw_health_check.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/broadcom/bnxt/extr_bnxt.c_bnxt_fw_health_check.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.bnxt = type { i32, i32, ptr }
%struct.bnxt_fw_health = type { i64, i64, i64, i64, i32 }
@BNXT_STATE_IN_FW_RESET = dso_local local_unnamed_addr global i32 0, align 4
@BNXT_FW_HEARTBEAT_REG = dso_local local_unnamed_addr global i32 0, align 4
@BNXT_FW_RESET_CNT_REG = dso_local local_unnamed_addr global i32 0, align 4
@BNXT_FW_EXCEPTION_SP_EVENT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bnxt_fw_health_check], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bnxt_fw_health_check(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = icmp eq ptr %3, null
br i1 %4, label %38, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.bnxt_fw_health, ptr %3, i64 0, i32 4
%7 = load i32, ptr %6, align 8, !tbaa !11
%8 = icmp eq i32 %7, 0
br i1 %8, label %38, label %9
9: ; preds = %5
%10 = load i32, ptr @BNXT_STATE_IN_FW_RESET, align 4, !tbaa !14
%11 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 1
%12 = tail call i64 @test_bit(i32 noundef %10, ptr noundef nonnull %11) #2
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %38
14: ; preds = %9
%15 = getelementptr inbounds %struct.bnxt_fw_health, ptr %3, i64 0, i32 3
%16 = load i64, ptr %15, align 8, !tbaa !15
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %14
%19 = add nsw i64 %16, -1
store i64 %19, ptr %15, align 8, !tbaa !15
br label %38
20: ; preds = %14
%21 = load i32, ptr @BNXT_FW_HEARTBEAT_REG, align 4, !tbaa !14
%22 = tail call i64 @bnxt_fw_health_readl(ptr noundef nonnull %0, i32 noundef %21) #2
%23 = load i64, ptr %3, align 8, !tbaa !16
%24 = icmp eq i64 %22, %23
br i1 %24, label %34, label %25
25: ; preds = %20
store i64 %22, ptr %3, align 8, !tbaa !16
%26 = load i32, ptr @BNXT_FW_RESET_CNT_REG, align 4, !tbaa !14
%27 = tail call i64 @bnxt_fw_health_readl(ptr noundef nonnull %0, i32 noundef %26) #2
%28 = getelementptr inbounds %struct.bnxt_fw_health, ptr %3, i64 0, i32 1
%29 = load i64, ptr %28, align 8, !tbaa !17
%30 = icmp eq i64 %27, %29
br i1 %30, label %31, label %34
31: ; preds = %25
%32 = getelementptr inbounds %struct.bnxt_fw_health, ptr %3, i64 0, i32 2
%33 = load i64, ptr %32, align 8, !tbaa !18
store i64 %33, ptr %15, align 8, !tbaa !15
br label %38
34: ; preds = %25, %20
%35 = load i32, ptr @BNXT_FW_EXCEPTION_SP_EVENT, align 4, !tbaa !14
%36 = tail call i32 @set_bit(i32 noundef %35, ptr noundef nonnull %0) #2
%37 = tail call i32 @bnxt_queue_sp_work(ptr noundef nonnull %0) #2
br label %38
38: ; preds = %1, %5, %9, %34, %31, %18
ret void
}
declare i64 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @bnxt_fw_health_readl(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @bnxt_queue_sp_work(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"bnxt", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 32}
!12 = !{!"bnxt_fw_health", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !7, i64 32}
!13 = !{!"long", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !13, i64 24}
!16 = !{!12, !13, i64 0}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !13, i64 16}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/broadcom/bnxt/extr_bnxt.c_bnxt_fw_health_check.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/broadcom/bnxt/extr_bnxt.c_bnxt_fw_health_check.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BNXT_STATE_IN_FW_RESET = common local_unnamed_addr global i32 0, align 4
@BNXT_FW_HEARTBEAT_REG = common local_unnamed_addr global i32 0, align 4
@BNXT_FW_RESET_CNT_REG = common local_unnamed_addr global i32 0, align 4
@BNXT_FW_EXCEPTION_SP_EVENT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bnxt_fw_health_check], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bnxt_fw_health_check(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = icmp eq ptr %3, null
br i1 %4, label %38, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %3, i64 32
%7 = load i32, ptr %6, align 8, !tbaa !12
%8 = icmp eq i32 %7, 0
br i1 %8, label %38, label %9
9: ; preds = %5
%10 = load i32, ptr @BNXT_STATE_IN_FW_RESET, align 4, !tbaa !15
%11 = getelementptr inbounds i8, ptr %0, i64 4
%12 = tail call i64 @test_bit(i32 noundef %10, ptr noundef nonnull %11) #2
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %38
14: ; preds = %9
%15 = getelementptr inbounds i8, ptr %3, i64 24
%16 = load i64, ptr %15, align 8, !tbaa !16
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %14
%19 = add nsw i64 %16, -1
store i64 %19, ptr %15, align 8, !tbaa !16
br label %38
20: ; preds = %14
%21 = load i32, ptr @BNXT_FW_HEARTBEAT_REG, align 4, !tbaa !15
%22 = tail call i64 @bnxt_fw_health_readl(ptr noundef nonnull %0, i32 noundef %21) #2
%23 = load i64, ptr %3, align 8, !tbaa !17
%24 = icmp eq i64 %22, %23
br i1 %24, label %34, label %25
25: ; preds = %20
store i64 %22, ptr %3, align 8, !tbaa !17
%26 = load i32, ptr @BNXT_FW_RESET_CNT_REG, align 4, !tbaa !15
%27 = tail call i64 @bnxt_fw_health_readl(ptr noundef nonnull %0, i32 noundef %26) #2
%28 = getelementptr inbounds i8, ptr %3, i64 8
%29 = load i64, ptr %28, align 8, !tbaa !18
%30 = icmp eq i64 %27, %29
br i1 %30, label %31, label %34
31: ; preds = %25
%32 = getelementptr inbounds i8, ptr %3, i64 16
%33 = load i64, ptr %32, align 8, !tbaa !19
store i64 %33, ptr %15, align 8, !tbaa !16
br label %38
34: ; preds = %25, %20
%35 = load i32, ptr @BNXT_FW_EXCEPTION_SP_EVENT, align 4, !tbaa !15
%36 = tail call i32 @set_bit(i32 noundef %35, ptr noundef nonnull %0) #2
%37 = tail call i32 @bnxt_queue_sp_work(ptr noundef nonnull %0) #2
br label %38
38: ; preds = %1, %5, %9, %34, %31, %18
ret void
}
declare i64 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @bnxt_fw_health_readl(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @bnxt_queue_sp_work(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"bnxt", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 32}
!13 = !{!"bnxt_fw_health", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !8, i64 32}
!14 = !{!"long", !9, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!13, !14, i64 24}
!17 = !{!13, !14, i64 0}
!18 = !{!13, !14, i64 8}
!19 = !{!13, !14, i64 16}
| linux_drivers_net_ethernet_broadcom_bnxt_extr_bnxt.c_bnxt_fw_health_check |
; ModuleID = 'AnghaBench/linux/drivers/tty/extr_tty_audit.c_tty_audit_tiocsti.c'
source_filename = "AnghaBench/linux/drivers/tty/extr_tty_audit.c_tty_audit_tiocsti.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.tty_struct = type { i64, ptr }
%struct.TYPE_2__ = type { i32, i32 }
@audit_enabled = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [14 x i8] c"ioctl=TIOCSTI\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @tty_audit_tiocsti(ptr nocapture noundef readonly %0, i8 noundef signext %1) local_unnamed_addr #0 {
%3 = alloca i8, align 1
store i8 %1, ptr %3, align 1, !tbaa !5
%4 = getelementptr inbounds %struct.tty_struct, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !8
%6 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i64 0, i32 1
%7 = load i32, ptr %6, align 4, !tbaa !12
%8 = load i32, ptr %5, align 4, !tbaa !15
%9 = tail call i64 @MKDEV(i32 noundef %7, i32 noundef %8) #2
%10 = load i64, ptr %0, align 8, !tbaa !16
%11 = tail call i64 (...) @tty_audit_push() #2
%12 = icmp ne i64 %11, 0
%13 = load i64, ptr @audit_enabled, align 8
%14 = icmp eq i64 %13, 0
%15 = select i1 %12, i1 true, i1 %14
br i1 %15, label %19, label %16
16: ; preds = %2
%17 = add nsw i64 %10, %9
%18 = call i32 @tty_audit_log(ptr noundef nonnull @.str, i64 noundef %17, ptr noundef nonnull %3, i32 noundef 1) #2
br label %19
19: ; preds = %16, %2
ret void
}
declare i64 @MKDEV(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @tty_audit_push(...) local_unnamed_addr #1
declare i32 @tty_audit_log(ptr noundef, i64 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"tty_struct", !10, i64 0, !11, i64 8}
!10 = !{!"long", !6, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!13, !14, i64 4}
!13 = !{!"TYPE_2__", !14, i64 0, !14, i64 4}
!14 = !{!"int", !6, i64 0}
!15 = !{!13, !14, i64 0}
!16 = !{!9, !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/tty/extr_tty_audit.c_tty_audit_tiocsti.c'
source_filename = "AnghaBench/linux/drivers/tty/extr_tty_audit.c_tty_audit_tiocsti.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@audit_enabled = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [14 x i8] c"ioctl=TIOCSTI\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @tty_audit_tiocsti(ptr nocapture noundef readonly %0, i8 noundef signext %1) local_unnamed_addr #0 {
%3 = alloca i8, align 1
store i8 %1, ptr %3, align 1, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !9
%6 = getelementptr inbounds i8, ptr %5, i64 4
%7 = load i32, ptr %6, align 4, !tbaa !13
%8 = load i32, ptr %5, align 4, !tbaa !16
%9 = tail call i64 @MKDEV(i32 noundef %7, i32 noundef %8) #2
%10 = load i64, ptr %0, align 8, !tbaa !17
%11 = tail call i64 @tty_audit_push() #2
%12 = icmp ne i64 %11, 0
%13 = load i64, ptr @audit_enabled, align 8
%14 = icmp eq i64 %13, 0
%15 = select i1 %12, i1 true, i1 %14
br i1 %15, label %19, label %16
16: ; preds = %2
%17 = add nsw i64 %10, %9
%18 = call i32 @tty_audit_log(ptr noundef nonnull @.str, i64 noundef %17, ptr noundef nonnull %3, i32 noundef 1) #2
br label %19
19: ; preds = %16, %2
ret void
}
declare i64 @MKDEV(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @tty_audit_push(...) local_unnamed_addr #1
declare i32 @tty_audit_log(ptr noundef, i64 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 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"tty_struct", !11, i64 0, !12, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !15, i64 4}
!14 = !{!"TYPE_2__", !15, i64 0, !15, i64 4}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 0}
!17 = !{!10, !11, i64 0}
| linux_drivers_tty_extr_tty_audit.c_tty_audit_tiocsti |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn20/extr_dcn20_optc.c_optc2_set_gsl.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn20/extr_dcn20_optc.c_optc2_set_gsl.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.gsl_params = type { i32, i32, i32, i32, i32 }
@OTG_GSL_CONTROL = dso_local local_unnamed_addr global i32 0, align 4
@OTG_GSL0_EN = dso_local local_unnamed_addr global i32 0, align 4
@OTG_GSL1_EN = dso_local local_unnamed_addr global i32 0, align 4
@OTG_GSL2_EN = dso_local local_unnamed_addr global i32 0, align 4
@OTG_GSL_MASTER_EN = dso_local local_unnamed_addr global i32 0, align 4
@OTG_GSL_MASTER_MODE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @optc2_set_gsl(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = tail call ptr @DCN10TG_FROM_TG(ptr noundef %0) #2
%4 = load i32, ptr @OTG_GSL_CONTROL, align 4, !tbaa !5
%5 = load i32, ptr @OTG_GSL0_EN, align 4, !tbaa !5
%6 = getelementptr inbounds %struct.gsl_params, ptr %1, i64 0, i32 4
%7 = load i32, ptr %6, align 4, !tbaa !9
%8 = load i32, ptr @OTG_GSL1_EN, align 4, !tbaa !5
%9 = getelementptr inbounds %struct.gsl_params, ptr %1, i64 0, i32 3
%10 = load i32, ptr %9, align 4, !tbaa !11
%11 = load i32, ptr @OTG_GSL2_EN, align 4, !tbaa !5
%12 = getelementptr inbounds %struct.gsl_params, ptr %1, i64 0, i32 2
%13 = load i32, ptr %12, align 4, !tbaa !12
%14 = load i32, ptr @OTG_GSL_MASTER_EN, align 4, !tbaa !5
%15 = getelementptr inbounds %struct.gsl_params, ptr %1, i64 0, i32 1
%16 = load i32, ptr %15, align 4, !tbaa !13
%17 = load i32, ptr @OTG_GSL_MASTER_MODE, align 4, !tbaa !5
%18 = load i32, ptr %1, align 4, !tbaa !14
%19 = tail call i32 @REG_UPDATE_5(i32 noundef %4, i32 noundef %5, i32 noundef %7, i32 noundef %8, i32 noundef %10, i32 noundef %11, i32 noundef %13, i32 noundef %14, i32 noundef %16, i32 noundef %17, i32 noundef %18) #2
ret void
}
declare ptr @DCN10TG_FROM_TG(ptr noundef) local_unnamed_addr #1
declare i32 @REG_UPDATE_5(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"gsl_params", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!11 = !{!10, !6, i64 12}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 4}
!14 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn20/extr_dcn20_optc.c_optc2_set_gsl.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn20/extr_dcn20_optc.c_optc2_set_gsl.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OTG_GSL_CONTROL = common local_unnamed_addr global i32 0, align 4
@OTG_GSL0_EN = common local_unnamed_addr global i32 0, align 4
@OTG_GSL1_EN = common local_unnamed_addr global i32 0, align 4
@OTG_GSL2_EN = common local_unnamed_addr global i32 0, align 4
@OTG_GSL_MASTER_EN = common local_unnamed_addr global i32 0, align 4
@OTG_GSL_MASTER_MODE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @optc2_set_gsl(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = tail call ptr @DCN10TG_FROM_TG(ptr noundef %0) #2
%4 = load i32, ptr @OTG_GSL_CONTROL, align 4, !tbaa !6
%5 = load i32, ptr @OTG_GSL0_EN, align 4, !tbaa !6
%6 = getelementptr inbounds i8, ptr %1, i64 16
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = load i32, ptr @OTG_GSL1_EN, align 4, !tbaa !6
%9 = getelementptr inbounds i8, ptr %1, i64 12
%10 = load i32, ptr %9, align 4, !tbaa !12
%11 = load i32, ptr @OTG_GSL2_EN, align 4, !tbaa !6
%12 = getelementptr inbounds i8, ptr %1, i64 8
%13 = load i32, ptr %12, align 4, !tbaa !13
%14 = load i32, ptr @OTG_GSL_MASTER_EN, align 4, !tbaa !6
%15 = getelementptr inbounds i8, ptr %1, i64 4
%16 = load i32, ptr %15, align 4, !tbaa !14
%17 = load i32, ptr @OTG_GSL_MASTER_MODE, align 4, !tbaa !6
%18 = load i32, ptr %1, align 4, !tbaa !15
%19 = tail call i32 @REG_UPDATE_5(i32 noundef %4, i32 noundef %5, i32 noundef %7, i32 noundef %8, i32 noundef %10, i32 noundef %11, i32 noundef %13, i32 noundef %14, i32 noundef %16, i32 noundef %17, i32 noundef %18) #2
ret void
}
declare ptr @DCN10TG_FROM_TG(ptr noundef) local_unnamed_addr #1
declare i32 @REG_UPDATE_5(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, 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, !7, i64 16}
!11 = !{!"gsl_params", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!12 = !{!11, !7, i64 12}
!13 = !{!11, !7, i64 8}
!14 = !{!11, !7, i64 4}
!15 = !{!11, !7, i64 0}
| linux_drivers_gpu_drm_amd_display_dc_dcn20_extr_dcn20_optc.c_optc2_set_gsl |
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_amd64-tdep.c_amd64_frame_base_address.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_amd64-tdep.c_amd64_frame_base_address.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 @amd64_frame_base_address], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @amd64_frame_base_address(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @amd64_frame_cache(ptr noundef %0, ptr noundef %1) #2
%4 = load i32, ptr %3, align 4, !tbaa !5
ret i32 %4
}
declare ptr @amd64_frame_cache(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"amd64_frame_cache", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_amd64-tdep.c_amd64_frame_base_address.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_amd64-tdep.c_amd64_frame_base_address.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 @amd64_frame_base_address], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @amd64_frame_base_address(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @amd64_frame_cache(ptr noundef %0, ptr noundef %1) #2
%4 = load i32, ptr %3, align 4, !tbaa !6
ret i32 %4
}
declare ptr @amd64_frame_cache(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"amd64_frame_cache", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_gdb_gdb_extr_amd64-tdep.c_amd64_frame_base_address |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_smu7_smumgr.c_smu7_send_msg_to_smc_offset.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_smu7_smumgr.c_smu7_send_msg_to_smc_offset.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"
@mmSMC_MSG_ARG_0 = dso_local local_unnamed_addr global i32 0, align 4
@mmSMC_MESSAGE_0 = dso_local local_unnamed_addr global i32 0, align 4
@PPSMC_MSG_Test = dso_local local_unnamed_addr global i32 0, align 4
@SMC_RESP_0 = dso_local local_unnamed_addr global i32 0, align 4
@SMC_RESP = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Failed to send Message.\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @smu7_send_msg_to_smc_offset(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = load i32, ptr @mmSMC_MSG_ARG_0, align 4, !tbaa !10
%4 = tail call i32 @cgs_write_register(i32 noundef %2, i32 noundef %3, i32 noundef 131072) #2
%5 = load i32, ptr %0, align 4, !tbaa !5
%6 = load i32, ptr @mmSMC_MESSAGE_0, align 4, !tbaa !10
%7 = load i32, ptr @PPSMC_MSG_Test, align 4, !tbaa !10
%8 = tail call i32 @cgs_write_register(i32 noundef %5, i32 noundef %6, i32 noundef %7) #2
%9 = load i32, ptr @SMC_RESP_0, align 4, !tbaa !10
%10 = load i32, ptr @SMC_RESP, align 4, !tbaa !10
%11 = tail call i32 @PHM_WAIT_FIELD_UNEQUAL(ptr noundef nonnull %0, i32 noundef %9, i32 noundef %10, i32 noundef 0) #2
%12 = load i32, ptr %0, align 4, !tbaa !5
%13 = load i32, ptr @SMC_RESP_0, align 4, !tbaa !10
%14 = load i32, ptr @SMC_RESP, align 4, !tbaa !10
%15 = tail call i32 @PHM_READ_FIELD(i32 noundef %12, i32 noundef %13, i32 noundef %14) #2
%16 = icmp eq i32 %15, 1
br i1 %16, label %19, label %17
17: ; preds = %1
%18 = tail call i32 @pr_info(ptr noundef nonnull @.str) #2
br label %19
19: ; preds = %17, %1
ret i32 0
}
declare i32 @cgs_write_register(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PHM_WAIT_FIELD_UNEQUAL(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PHM_READ_FIELD(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pr_info(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 = !{!"pp_hwmgr", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_smu7_smumgr.c_smu7_send_msg_to_smc_offset.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_smu7_smumgr.c_smu7_send_msg_to_smc_offset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@mmSMC_MSG_ARG_0 = common local_unnamed_addr global i32 0, align 4
@mmSMC_MESSAGE_0 = common local_unnamed_addr global i32 0, align 4
@PPSMC_MSG_Test = common local_unnamed_addr global i32 0, align 4
@SMC_RESP_0 = common local_unnamed_addr global i32 0, align 4
@SMC_RESP = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Failed to send Message.\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @smu7_send_msg_to_smc_offset(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = load i32, ptr @mmSMC_MSG_ARG_0, align 4, !tbaa !11
%4 = tail call i32 @cgs_write_register(i32 noundef %2, i32 noundef %3, i32 noundef 131072) #2
%5 = load i32, ptr %0, align 4, !tbaa !6
%6 = load i32, ptr @mmSMC_MESSAGE_0, align 4, !tbaa !11
%7 = load i32, ptr @PPSMC_MSG_Test, align 4, !tbaa !11
%8 = tail call i32 @cgs_write_register(i32 noundef %5, i32 noundef %6, i32 noundef %7) #2
%9 = load i32, ptr @SMC_RESP_0, align 4, !tbaa !11
%10 = load i32, ptr @SMC_RESP, align 4, !tbaa !11
%11 = tail call i32 @PHM_WAIT_FIELD_UNEQUAL(ptr noundef nonnull %0, i32 noundef %9, i32 noundef %10, i32 noundef 0) #2
%12 = load i32, ptr %0, align 4, !tbaa !6
%13 = load i32, ptr @SMC_RESP_0, align 4, !tbaa !11
%14 = load i32, ptr @SMC_RESP, align 4, !tbaa !11
%15 = tail call i32 @PHM_READ_FIELD(i32 noundef %12, i32 noundef %13, i32 noundef %14) #2
%16 = icmp eq i32 %15, 1
br i1 %16, label %19, label %17
17: ; preds = %1
%18 = tail call i32 @pr_info(ptr noundef nonnull @.str) #2
br label %19
19: ; preds = %17, %1
ret i32 0
}
declare i32 @cgs_write_register(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PHM_WAIT_FIELD_UNEQUAL(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PHM_READ_FIELD(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pr_info(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 = !{!"pp_hwmgr", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| linux_drivers_gpu_drm_amd_powerplay_smumgr_extr_smu7_smumgr.c_smu7_send_msg_to_smc_offset |
; ModuleID = 'AnghaBench/reactos/modules/rosapps/applications/net/ncftp/ncftp/extr_spool.c_RunBatch.c'
source_filename = "AnghaBench/reactos/modules/rosapps/applications/net/ncftp/ncftp/extr_spool.c_RunBatch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"pipe\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"ncftpbatch\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"-d\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"-|\00", align 1
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [41 x i8] c"Could not run %s. Is it in your $PATH?\0A\00", align 1
@BINDIR = dso_local local_unnamed_addr global i32 0, align 4
@SW_SHOWNORMAL = dso_local local_unnamed_addr global i32 0, align 4
@gOurInstallationPath = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local void @RunBatch(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca [2 x i32], align 4
%4 = alloca [32 x i8], align 16
%5 = alloca [8 x ptr], align 16
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
%6 = icmp eq i32 %0, 0
br i1 %6, label %54, label %7
7: ; preds = %2
%8 = call i64 @pipe(ptr noundef nonnull %3) #5
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @perror(ptr noundef nonnull @.str) #5
br label %12
12: ; preds = %10, %7
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = call i32 @sprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.1, i32 noundef %13) #5
%15 = call i32 (...) @fork() #5
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %12
%18 = load i32, ptr %3, align 4, !tbaa !5
%19 = call i32 @close(i32 noundef %18) #5
%20 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%21 = load i32, ptr %20, align 4, !tbaa !5
%22 = call i32 @close(i32 noundef %21) #5
%23 = call i32 @perror(ptr noundef nonnull @.str.2) #5
br label %41
24: ; preds = %12
%25 = icmp eq i32 %15, 0
br i1 %25, label %26, label %41
26: ; preds = %24
%27 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%28 = load i32, ptr %27, align 4, !tbaa !5
%29 = call i32 @close(i32 noundef %28) #5
store ptr @.str.3, ptr %5, align 16, !tbaa !9
%30 = getelementptr inbounds [8 x ptr], ptr %5, i64 0, i64 1
store ptr @.str.4, ptr %30, align 8, !tbaa !9
%31 = getelementptr inbounds [8 x ptr], ptr %5, i64 0, i64 2
store ptr @.str.5, ptr %31, align 16, !tbaa !9
%32 = getelementptr inbounds [8 x ptr], ptr %5, i64 0, i64 3
store ptr %4, ptr %32, align 8, !tbaa !9
%33 = getelementptr inbounds [8 x ptr], ptr %5, i64 0, i64 4
store ptr null, ptr %33, align 16, !tbaa !9
%34 = call i32 @execvp(ptr noundef nonnull @.str.3, ptr noundef nonnull %5) #5
%35 = load i32, ptr @stderr, align 4, !tbaa !5
%36 = load ptr, ptr %5, align 16, !tbaa !9
%37 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %35, ptr noundef nonnull @.str.6, ptr noundef %36) #5
%38 = load ptr, ptr %5, align 16, !tbaa !9
%39 = call i32 @perror(ptr noundef %38) #5
%40 = call i32 @exit(i32 noundef 1) #6
unreachable
41: ; preds = %24, %17
%42 = load i32, ptr %3, align 4, !tbaa !5
%43 = call i32 @close(i32 noundef %42) #5
%44 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%45 = load i32, ptr %44, align 4, !tbaa !5
%46 = load i64, ptr %1, align 8, !tbaa !11
%47 = inttoptr i64 %46 to ptr
%48 = call i32 @PWrite(i32 noundef %45, ptr noundef %47, i32 noundef 4) #5
%49 = load i32, ptr %44, align 4, !tbaa !5
%50 = call i32 @PWrite(i32 noundef %49, ptr noundef nonnull %1, i32 noundef 4) #5
%51 = load i32, ptr %44, align 4, !tbaa !5
%52 = call i32 @close(i32 noundef %51) #5
%53 = call i32 @CloseControlConnection(ptr noundef nonnull %1) #5
br label %71
54: ; preds = %2
%55 = tail call i32 (...) @fork() #5
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = tail call i32 @perror(ptr noundef nonnull @.str.2) #5
br label %76
59: ; preds = %54
%60 = icmp eq i32 %55, 0
br i1 %60, label %61, label %71
61: ; preds = %59
store ptr @.str.3, ptr %5, align 16, !tbaa !9
%62 = getelementptr inbounds [8 x ptr], ptr %5, i64 0, i64 1
store ptr @.str.4, ptr %62, align 8, !tbaa !9
%63 = getelementptr inbounds [8 x ptr], ptr %5, i64 0, i64 2
store ptr null, ptr %63, align 16, !tbaa !9
%64 = call i32 @execvp(ptr noundef nonnull @.str.3, ptr noundef nonnull %5) #5
%65 = load i32, ptr @stderr, align 4, !tbaa !5
%66 = load ptr, ptr %5, align 16, !tbaa !9
%67 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %65, ptr noundef nonnull @.str.6, ptr noundef %66) #5
%68 = load ptr, ptr %5, align 16, !tbaa !9
%69 = call i32 @perror(ptr noundef %68) #5
%70 = call i32 @exit(i32 noundef 1) #6
unreachable
71: ; preds = %59, %41
%72 = phi i32 [ %15, %41 ], [ %55, %59 ]
%73 = icmp sgt i32 %72, 1
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = call i32 @wait(ptr noundef null) #5
br label %76
76: ; preds = %57, %74, %71
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
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 i64 @pipe(ptr noundef) local_unnamed_addr #2
declare i32 @perror(ptr noundef) local_unnamed_addr #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @fork(...) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree
declare i32 @execvp(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #4
declare i32 @PWrite(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CloseControlConnection(ptr noundef) local_unnamed_addr #2
declare i32 @wait(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 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 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/modules/rosapps/applications/net/ncftp/ncftp/extr_spool.c_RunBatch.c'
source_filename = "AnghaBench/reactos/modules/rosapps/applications/net/ncftp/ncftp/extr_spool.c_RunBatch.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [5 x i8] c"pipe\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"ncftpbatch\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"-d\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"-|\00", align 1
@stderr = common local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [41 x i8] c"Could not run %s. Is it in your $PATH?\0A\00", align 1
@BINDIR = common local_unnamed_addr global i32 0, align 4
@SW_SHOWNORMAL = common local_unnamed_addr global i32 0, align 4
@gOurInstallationPath = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @RunBatch(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca [2 x i32], align 4
%4 = alloca [32 x i8], align 1
%5 = alloca [8 x ptr], align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
%6 = icmp eq i32 %0, 0
br i1 %6, label %54, label %7
7: ; preds = %2
%8 = call i64 @pipe(ptr noundef nonnull %3) #5
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @perror(ptr noundef nonnull @.str) #5
br label %12
12: ; preds = %10, %7
%13 = load i32, ptr %3, align 4, !tbaa !6
%14 = call i32 @sprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.1, i32 noundef %13) #5
%15 = call i32 @fork() #5
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %12
%18 = load i32, ptr %3, align 4, !tbaa !6
%19 = call i32 @close(i32 noundef %18) #5
%20 = getelementptr inbounds i8, ptr %3, i64 4
%21 = load i32, ptr %20, align 4, !tbaa !6
%22 = call i32 @close(i32 noundef %21) #5
%23 = call i32 @perror(ptr noundef nonnull @.str.2) #5
br label %41
24: ; preds = %12
%25 = icmp eq i32 %15, 0
br i1 %25, label %26, label %41
26: ; preds = %24
%27 = getelementptr inbounds i8, ptr %3, i64 4
%28 = load i32, ptr %27, align 4, !tbaa !6
%29 = call i32 @close(i32 noundef %28) #5
store ptr @.str.3, ptr %5, align 8, !tbaa !10
%30 = getelementptr inbounds i8, ptr %5, i64 8
store ptr @.str.4, ptr %30, align 8, !tbaa !10
%31 = getelementptr inbounds i8, ptr %5, i64 16
store ptr @.str.5, ptr %31, align 8, !tbaa !10
%32 = getelementptr inbounds i8, ptr %5, i64 24
store ptr %4, ptr %32, align 8, !tbaa !10
%33 = getelementptr inbounds i8, ptr %5, i64 32
store ptr null, ptr %33, align 8, !tbaa !10
%34 = call i32 @execvp(ptr noundef nonnull @.str.3, ptr noundef nonnull %5) #5
%35 = load i32, ptr @stderr, align 4, !tbaa !6
%36 = load ptr, ptr %5, align 8, !tbaa !10
%37 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %35, ptr noundef nonnull @.str.6, ptr noundef %36) #5
%38 = load ptr, ptr %5, align 8, !tbaa !10
%39 = call i32 @perror(ptr noundef %38) #5
%40 = call i32 @exit(i32 noundef 1) #6
unreachable
41: ; preds = %24, %17
%42 = load i32, ptr %3, align 4, !tbaa !6
%43 = call i32 @close(i32 noundef %42) #5
%44 = getelementptr inbounds i8, ptr %3, i64 4
%45 = load i32, ptr %44, align 4, !tbaa !6
%46 = load i64, ptr %1, align 8, !tbaa !12
%47 = inttoptr i64 %46 to ptr
%48 = call i32 @PWrite(i32 noundef %45, ptr noundef %47, i32 noundef 4) #5
%49 = load i32, ptr %44, align 4, !tbaa !6
%50 = call i32 @PWrite(i32 noundef %49, ptr noundef nonnull %1, i32 noundef 4) #5
%51 = load i32, ptr %44, align 4, !tbaa !6
%52 = call i32 @close(i32 noundef %51) #5
%53 = call i32 @CloseControlConnection(ptr noundef nonnull %1) #5
br label %71
54: ; preds = %2
%55 = tail call i32 @fork() #5
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = tail call i32 @perror(ptr noundef nonnull @.str.2) #5
br label %76
59: ; preds = %54
%60 = icmp eq i32 %55, 0
br i1 %60, label %61, label %71
61: ; preds = %59
store ptr @.str.3, ptr %5, align 8, !tbaa !10
%62 = getelementptr inbounds i8, ptr %5, i64 8
store ptr @.str.4, ptr %62, align 8, !tbaa !10
%63 = getelementptr inbounds i8, ptr %5, i64 16
store ptr null, ptr %63, align 8, !tbaa !10
%64 = call i32 @execvp(ptr noundef nonnull @.str.3, ptr noundef nonnull %5) #5
%65 = load i32, ptr @stderr, align 4, !tbaa !6
%66 = load ptr, ptr %5, align 8, !tbaa !10
%67 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %65, ptr noundef nonnull @.str.6, ptr noundef %66) #5
%68 = load ptr, ptr %5, align 8, !tbaa !10
%69 = call i32 @perror(ptr noundef %68) #5
%70 = call i32 @exit(i32 noundef 1) #6
unreachable
71: ; preds = %59, %41
%72 = phi i32 [ %15, %41 ], [ %55, %59 ]
%73 = icmp sgt i32 %72, 1
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = call i32 @wait(ptr noundef null) #5
br label %76
76: ; preds = %57, %74, %71
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
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 i64 @pipe(ptr noundef) local_unnamed_addr #2
declare i32 @perror(ptr noundef) local_unnamed_addr #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @fork(...) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree
declare i32 @execvp(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #4
declare i32 @PWrite(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CloseControlConnection(ptr noundef) local_unnamed_addr #2
declare i32 @wait(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nofree "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"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 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"long", !8, i64 0}
| reactos_modules_rosapps_applications_net_ncftp_ncftp_extr_spool.c_RunBatch |
; ModuleID = 'AnghaBench/linux/drivers/input/misc/extr_yealink.c_store_line.c'
source_filename = "AnghaBench/linux/drivers/input/misc/extr_yealink.c_store_line.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"
@sysfs_rwsema = dso_local global i32 0, align 4
@ENODEV = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @store_line], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @store_line(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, i32 noundef %3, i64 noundef %4) #0 {
%6 = tail call i32 @down_write(ptr noundef nonnull @sysfs_rwsema) #3
%7 = tail call ptr @dev_get_drvdata(ptr noundef %0) #3
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = tail call i32 @up_write(ptr noundef nonnull @sysfs_rwsema) #3
%11 = load i64, ptr @ENODEV, align 8, !tbaa !5
%12 = sub i64 0, %11
br label %27
13: ; preds = %5
%14 = tail call i64 @llvm.umin.i64(i64 %4, i64 %2)
%15 = icmp eq i64 %14, 0
br i1 %15, label %25, label %16
16: ; preds = %13, %16
%17 = phi i64 [ %23, %16 ], [ 0, %13 ]
%18 = phi i32 [ %19, %16 ], [ %3, %13 ]
%19 = add nsw i32 %18, 1
%20 = getelementptr inbounds i8, ptr %1, i64 %17
%21 = load i8, ptr %20, align 1, !tbaa !9
%22 = tail call i32 @setChar(ptr noundef nonnull %7, i32 noundef %18, i8 noundef signext %21) #3
%23 = add nuw i64 %17, 1
%24 = icmp eq i64 %23, %14
br i1 %24, label %25, label %16, !llvm.loop !10
25: ; preds = %16, %13
%26 = tail call i32 @up_write(ptr noundef nonnull @sysfs_rwsema) #3
br label %27
27: ; preds = %25, %9
%28 = phi i64 [ %12, %9 ], [ %2, %25 ]
ret i64 %28
}
declare i32 @down_write(ptr noundef) local_unnamed_addr #1
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @up_write(ptr noundef) local_unnamed_addr #1
declare i32 @setChar(ptr noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/input/misc/extr_yealink.c_store_line.c'
source_filename = "AnghaBench/linux/drivers/input/misc/extr_yealink.c_store_line.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@sysfs_rwsema = common global i32 0, align 4
@ENODEV = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @store_line], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @store_line(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, i32 noundef %3, i64 noundef %4) #0 {
%6 = tail call i32 @down_write(ptr noundef nonnull @sysfs_rwsema) #3
%7 = tail call ptr @dev_get_drvdata(ptr noundef %0) #3
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = tail call i32 @up_write(ptr noundef nonnull @sysfs_rwsema) #3
%11 = load i64, ptr @ENODEV, align 8, !tbaa !6
%12 = sub i64 0, %11
br label %27
13: ; preds = %5
%14 = tail call i64 @llvm.umin.i64(i64 %4, i64 %2)
%15 = icmp eq i64 %14, 0
br i1 %15, label %25, label %16
16: ; preds = %13, %16
%17 = phi i64 [ %23, %16 ], [ 0, %13 ]
%18 = phi i32 [ %19, %16 ], [ %3, %13 ]
%19 = add nsw i32 %18, 1
%20 = getelementptr inbounds i8, ptr %1, i64 %17
%21 = load i8, ptr %20, align 1, !tbaa !10
%22 = tail call i32 @setChar(ptr noundef nonnull %7, i32 noundef %18, i8 noundef signext %21) #3
%23 = add nuw i64 %17, 1
%24 = icmp eq i64 %23, %14
br i1 %24, label %25, label %16, !llvm.loop !11
25: ; preds = %16, %13
%26 = tail call i32 @up_write(ptr noundef nonnull @sysfs_rwsema) #3
br label %27
27: ; preds = %25, %9
%28 = phi i64 [ %12, %9 ], [ %2, %25 ]
ret i64 %28
}
declare i32 @down_write(ptr noundef) local_unnamed_addr #1
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @up_write(ptr noundef) local_unnamed_addr #1
declare i32 @setChar(ptr noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.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 = !{!8, !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| linux_drivers_input_misc_extr_yealink.c_store_line |
; ModuleID = 'AnghaBench/qmk_firmware/keyboards/claw44/rev1/extr_matrix.c_matrix_rows.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/claw44/rev1/extr_matrix.c_matrix_rows.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"
@MATRIX_ROWS = dso_local local_unnamed_addr global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/qmk_firmware/keyboards/claw44/rev1/extr_matrix.c_matrix_rows.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/claw44/rev1/extr_matrix.c_matrix_rows.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MATRIX_ROWS = common local_unnamed_addr global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| qmk_firmware_keyboards_claw44_rev1_extr_matrix.c_matrix_rows |
; ModuleID = 'AnghaBench/qmk_firmware/keyboards/xd75/keymaps/xo/extr_keymap.c_layer_state_set_user.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/xd75/keymaps/xo/extr_keymap.c_layer_state_set_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"
@BASE_COLOR = dso_local local_unnamed_addr global i32 0, align 4
@RGB_AZURE = dso_local local_unnamed_addr global i32 0, align 4
@RGB_PURPLE = dso_local local_unnamed_addr global i32 0, align 4
@switch.table.layer_state_set_user = private unnamed_addr constant [3 x ptr] [ptr @BASE_COLOR, ptr @RGB_AZURE, ptr @RGB_PURPLE], align 8
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @layer_state_set_user(i32 noundef returned %0) local_unnamed_addr #0 {
%2 = tail call i32 @get_highest_layer(i32 noundef %0) #2
%3 = icmp ult i32 %2, 3
br i1 %3, label %4, label %10
4: ; preds = %1
%5 = zext nneg i32 %2 to i64
%6 = getelementptr inbounds [3 x ptr], ptr @switch.table.layer_state_set_user, i64 0, i64 %5
%7 = load ptr, ptr %6, align 8
%8 = load i32, ptr %7, align 4, !tbaa !5
%9 = tail call i32 @rgblight_setrgb(i32 noundef %8) #2
br label %10
10: ; preds = %1, %4
ret i32 %0
}
declare i32 @get_highest_layer(i32 noundef) local_unnamed_addr #1
declare i32 @rgblight_setrgb(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/qmk_firmware/keyboards/xd75/keymaps/xo/extr_keymap.c_layer_state_set_user.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/xd75/keymaps/xo/extr_keymap.c_layer_state_set_user.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BASE_COLOR = common local_unnamed_addr global i32 0, align 4
@RGB_AZURE = common local_unnamed_addr global i32 0, align 4
@RGB_PURPLE = common local_unnamed_addr global i32 0, align 4
@switch.table.layer_state_set_user = private unnamed_addr constant [3 x ptr] [ptr @BASE_COLOR, ptr @RGB_AZURE, ptr @RGB_PURPLE], align 8
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @layer_state_set_user(i32 noundef returned %0) local_unnamed_addr #0 {
%2 = tail call i32 @get_highest_layer(i32 noundef %0) #2
%3 = icmp ult i32 %2, 3
br i1 %3, label %4, label %10
4: ; preds = %1
%5 = zext nneg i32 %2 to i64
%6 = getelementptr inbounds [3 x ptr], ptr @switch.table.layer_state_set_user, i64 0, i64 %5
%7 = load ptr, ptr %6, align 8
%8 = load i32, ptr %7, align 4, !tbaa !6
%9 = tail call i32 @rgblight_setrgb(i32 noundef %8) #2
br label %10
10: ; preds = %1, %4
ret i32 %0
}
declare i32 @get_highest_layer(i32 noundef) local_unnamed_addr #1
declare i32 @rgblight_setrgb(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"}
| qmk_firmware_keyboards_xd75_keymaps_xo_extr_keymap.c_layer_state_set_user |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.