llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpv3nppqs0.c'
source_filename = "/tmp/tmpv3nppqs0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Trocou %d por %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bubSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %4, align 4
store i32 %9, ptr %5, align 4
br label %10
10: ; preds = %70, %2
%11 = load i32, ptr %5, align 4
%12 = icmp sge i32 %11, 1
br i1 %12, label %13, label %73
13: ; preds = %10
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %66, %13
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %69
18: ; preds = %14
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %24, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp sgt i32 %23, %29
br i1 %30, label %31, label %65
31: ; preds = %18
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
store i32 %36, ptr %7, align 4
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
store i32 %42, ptr %46, align 4
%47 = load i32, ptr %7, align 4
%48 = load ptr, ptr %3, align 8
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %48, i64 %51
store i32 %47, ptr %52, align 4
%53 = load ptr, ptr %3, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %58, i64 %61
%63 = load i32, ptr %62, align 4
%64 = call i32 @printf(ptr noundef @.str, i32 noundef %57, i32 noundef %63)
br label %65
65: ; preds = %31, %18
br label %66
66: ; preds = %65
%67 = load i32, ptr %6, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %6, align 4
br label %14, !llvm.loop !6
69: ; preds = %14
br label %70
70: ; preds = %69
%71 = load i32, ptr %5, align 4
%72 = add nsw i32 %71, -1
store i32 %72, ptr %5, align 4
br label %10, !llvm.loop !8
73: ; preds = %10
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv3nppqs0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Trocou %d por %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bubSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %4, align 4
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sge i32 %10, 1
br i1 %11, label %.lr.ph2, label %76
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %71
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %70
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %64
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %22, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp sgt i32 %21, %27
br i1 %28, label %29, label %63
29: ; preds = %16
%30 = load ptr, ptr %3, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
store i32 %34, ptr %7, align 4
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %35, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 %40, ptr %44, align 4
%45 = load i32, ptr %7, align 4
%46 = load ptr, ptr %3, align 8
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %46, i64 %49
store i32 %45, ptr %50, align 4
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
%55 = load i32, ptr %54, align 4
%56 = load ptr, ptr %3, align 8
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %56, i64 %59
%61 = load i32, ptr %60, align 4
%62 = call i32 @printf(ptr noundef @.str, i32 noundef %55, i32 noundef %61)
br label %63
63: ; preds = %29, %16
br label %64
64: ; preds = %63
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
%67 = load i32, ptr %6, align 4
%68 = load i32, ptr %5, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %64
br label %70
70: ; preds = %._crit_edge, %12
br label %71
71: ; preds = %70
%72 = load i32, ptr %5, align 4
%73 = add nsw i32 %72, -1
store i32 %73, ptr %5, align 4
%74 = load i32, ptr %5, align 4
%75 = icmp sge i32 %74, 1
br i1 %75, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %71
br label %76
76: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpz92ipcyl.c'
source_filename = "/tmp/tmpz92ipcyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.FillBase64Area.Tbl = private unnamed_addr constant [65 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @FillBase64Area(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [20 x i32], align 16
%4 = alloca [65 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.FillBase64Area.Tbl, i64 65, i1 false)
%10 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 0
%11 = call i32 @FillClientVersionArea(ptr noundef %10)
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %15, %1
%13 = load i32, ptr %9, align 4
%14 = icmp slt i32 %13, 24
br i1 %14, label %15, label %82
15: ; preds = %12
%16 = load i32, ptr %8, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %8, align 4
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %8, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %8, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = sext i32 %26 to i64
%29 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %5, align 4
%32 = and i32 %31, 252
%33 = ashr i32 %32, 2
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %9, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
store i8 %36, ptr %41, align 1
%42 = load i32, ptr %5, align 4
%43 = and i32 %42, 3
%44 = shl i32 %43, 4
%45 = load i32, ptr %6, align 4
%46 = and i32 %45, 240
%47 = ashr i32 %46, 4
%48 = or i32 %44, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %9, align 4
%55 = sext i32 %53 to i64
%56 = getelementptr inbounds i8, ptr %52, i64 %55
store i8 %51, ptr %56, align 1
%57 = load i32, ptr %6, align 4
%58 = and i32 %57, 15
%59 = shl i32 %58, 2
%60 = load i32, ptr %7, align 4
%61 = and i32 %60, 192
%62 = ashr i32 %61, 6
%63 = or i32 %59, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = load ptr, ptr %2, align 8
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %9, align 4
%70 = sext i32 %68 to i64
%71 = getelementptr inbounds i8, ptr %67, i64 %70
store i8 %66, ptr %71, align 1
%72 = load i32, ptr %7, align 4
%73 = and i32 %72, 63
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = load ptr, ptr %2, align 8
%78 = load i32, ptr %9, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %9, align 4
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds i8, ptr %77, i64 %80
store i8 %76, ptr %81, align 1
br label %12, !llvm.loop !6
82: ; preds = %12
%83 = load i32, ptr %8, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %8, align 4
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %85
%87 = load i32, ptr %86, align 4
store i32 %87, ptr %5, align 4
%88 = load i32, ptr %8, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %8, align 4
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %90
%92 = load i32, ptr %91, align 4
store i32 %92, ptr %6, align 4
%93 = load i32, ptr %5, align 4
%94 = and i32 %93, 252
%95 = ashr i32 %94, 2
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %96
%98 = load i8, ptr %97, align 1
%99 = load ptr, ptr %2, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 24
store i8 %98, ptr %100, align 1
%101 = load i32, ptr %5, align 4
%102 = and i32 %101, 3
%103 = shl i32 %102, 4
%104 = load i32, ptr %6, align 4
%105 = and i32 %104, 240
%106 = ashr i32 %105, 4
%107 = or i32 %103, %106
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %108
%110 = load i8, ptr %109, align 1
%111 = load ptr, ptr %2, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 25
store i8 %110, ptr %112, align 1
%113 = load i32, ptr %6, align 4
%114 = and i32 %113, 15
%115 = shl i32 %114, 2
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %116
%118 = load i8, ptr %117, align 1
%119 = load ptr, ptr %2, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 26
store i8 %118, ptr %120, align 1
%121 = load ptr, ptr %2, align 8
%122 = getelementptr inbounds i8, ptr %121, i64 27
store i8 61, ptr %122, align 1
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @FillClientVersionArea(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz92ipcyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.FillBase64Area.Tbl = private unnamed_addr constant [65 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @FillBase64Area(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [20 x i32], align 16
%4 = alloca [65 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.FillBase64Area.Tbl, i64 65, i1 false)
%10 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 0
%11 = call i32 @FillClientVersionArea(ptr noundef %10)
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = icmp slt i32 %12, 24
br i1 %13, label %.lr.ph, label %83
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr %8, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %8, align 4
%17 = sext i32 %15 to i64
%18 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %8, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %8, align 4
%22 = sext i32 %20 to i64
%23 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %5, align 4
%31 = and i32 %30, 252
%32 = ashr i32 %31, 2
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %9, align 4
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
store i8 %35, ptr %40, align 1
%41 = load i32, ptr %5, align 4
%42 = and i32 %41, 3
%43 = shl i32 %42, 4
%44 = load i32, ptr %6, align 4
%45 = and i32 %44, 240
%46 = ashr i32 %45, 4
%47 = or i32 %43, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = load ptr, ptr %2, align 8
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %9, align 4
%54 = sext i32 %52 to i64
%55 = getelementptr inbounds i8, ptr %51, i64 %54
store i8 %50, ptr %55, align 1
%56 = load i32, ptr %6, align 4
%57 = and i32 %56, 15
%58 = shl i32 %57, 2
%59 = load i32, ptr %7, align 4
%60 = and i32 %59, 192
%61 = ashr i32 %60, 6
%62 = or i32 %58, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = load ptr, ptr %2, align 8
%67 = load i32, ptr %9, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %9, align 4
%69 = sext i32 %67 to i64
%70 = getelementptr inbounds i8, ptr %66, i64 %69
store i8 %65, ptr %70, align 1
%71 = load i32, ptr %7, align 4
%72 = and i32 %71, 63
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %73
%75 = load i8, ptr %74, align 1
%76 = load ptr, ptr %2, align 8
%77 = load i32, ptr %9, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %9, align 4
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds i8, ptr %76, i64 %79
store i8 %75, ptr %80, align 1
%81 = load i32, ptr %9, align 4
%82 = icmp slt i32 %81, 24
br i1 %82, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %83
83: ; preds = %._crit_edge, %1
%84 = load i32, ptr %8, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %8, align 4
%86 = sext i32 %84 to i64
%87 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %86
%88 = load i32, ptr %87, align 4
store i32 %88, ptr %5, align 4
%89 = load i32, ptr %8, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %8, align 4
%91 = sext i32 %89 to i64
%92 = getelementptr inbounds [20 x i32], ptr %3, i64 0, i64 %91
%93 = load i32, ptr %92, align 4
store i32 %93, ptr %6, align 4
%94 = load i32, ptr %5, align 4
%95 = and i32 %94, 252
%96 = ashr i32 %95, 2
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %97
%99 = load i8, ptr %98, align 1
%100 = load ptr, ptr %2, align 8
%101 = getelementptr inbounds i8, ptr %100, i64 24
store i8 %99, ptr %101, align 1
%102 = load i32, ptr %5, align 4
%103 = and i32 %102, 3
%104 = shl i32 %103, 4
%105 = load i32, ptr %6, align 4
%106 = and i32 %105, 240
%107 = ashr i32 %106, 4
%108 = or i32 %104, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %109
%111 = load i8, ptr %110, align 1
%112 = load ptr, ptr %2, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 25
store i8 %111, ptr %113, align 1
%114 = load i32, ptr %6, align 4
%115 = and i32 %114, 15
%116 = shl i32 %115, 2
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [65 x i8], ptr %4, i64 0, i64 %117
%119 = load i8, ptr %118, align 1
%120 = load ptr, ptr %2, align 8
%121 = getelementptr inbounds i8, ptr %120, i64 26
store i8 %119, ptr %121, align 1
%122 = load ptr, ptr %2, align 8
%123 = getelementptr inbounds i8, ptr %122, i64 27
store i8 61, ptr %123, align 1
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @FillClientVersionArea(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp39e38ijb.c'
source_filename = "/tmp/tmp39e38ijb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"%sHello, %sworld!%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"\1B[0;31m\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"\1B[9;34m\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"%sHello%s, %sworld!\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"\1B[4;32m\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"\1B[1;36m\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"Vanilla hello\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.4, ptr noundef @.str.7)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef @.str.4)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = load i32, ptr @EXIT_SUCCESS, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp39e38ijb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"%sHello, %sworld!%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"\1B[0;31m\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"\1B[9;34m\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"%sHello%s, %sworld!\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"\1B[4;32m\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"\1B[1;36m\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"Vanilla hello\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.4, ptr noundef @.str.7)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef @.str.4)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = load i32, ptr @EXIT_SUCCESS, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu8r0bgsv.c'
source_filename = "/tmp/tmpu8r0bgsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Button1 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pageBackward(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @Button1, align 4
%5 = call i32 @SendMouseEvent(ptr noundef %3, i32 noundef %4, i32 noundef 50, i32 noundef 300, i32 noundef 1)
%6 = call i32 @usleep(i32 noundef 10000)
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr @Button1, align 4
%9 = call i32 @SendMouseEvent(ptr noundef %7, i32 noundef %8, i32 noundef 50, i32 noundef 300, i32 noundef 0)
ret void
}
declare i32 @SendMouseEvent(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu8r0bgsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Button1 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pageBackward(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @Button1, align 4
%5 = call i32 @SendMouseEvent(ptr noundef %3, i32 noundef %4, i32 noundef 50, i32 noundef 300, i32 noundef 1)
%6 = call i32 @usleep(i32 noundef 10000)
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr @Button1, align 4
%9 = call i32 @SendMouseEvent(ptr noundef %7, i32 noundef %8, i32 noundef 50, i32 noundef 300, i32 noundef 0)
ret void
}
declare i32 @SendMouseEvent(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjad9x02f.c'
source_filename = "/tmp/tmpjad9x02f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"=\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c";\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_matched(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
%12 = load ptr, ptr %5, align 8
%13 = call ptr @strtok_r(ptr noundef %12, ptr noundef @.str, ptr noundef %8)
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %3
store i32 0, ptr %4, align 4
br label %50
16: ; preds = %3
br label %17
17: ; preds = %47, %16
%18 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str.1, ptr noundef %8)
store ptr %18, ptr %9, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %48
20: ; preds = %17
store i32 0, ptr %11, align 4
br label %21
21: ; preds = %44, %20
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %47
25: ; preds = %21
%26 = load ptr, ptr %9, align 8
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %11, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %11, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %32, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = call i32 @strlen(ptr noundef %36)
%38 = call i64 @strncmp(ptr noundef %26, ptr noundef %31, i32 noundef %37)
%39 = icmp eq i64 0, %38
br i1 %39, label %40, label %43
40: ; preds = %25
%41 = load i32, ptr %10, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %10, align 4
br label %47
43: ; preds = %25
br label %44
44: ; preds = %43
%45 = load i32, ptr %11, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %11, align 4
br label %21, !llvm.loop !6
47: ; preds = %40, %21
br label %17, !llvm.loop !8
48: ; preds = %17
%49 = load i32, ptr %10, align 4
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %48, %15
%51 = load i32, ptr %4, align 4
ret i32 %51
}
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjad9x02f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"=\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c";\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_matched(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
%12 = load ptr, ptr %5, align 8
%13 = call ptr @strtok_r(ptr noundef %12, ptr noundef @.str, ptr noundef %8)
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %3
store i32 0, ptr %4, align 4
br label %53
16: ; preds = %3
%17 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str.1, ptr noundef %8)
store ptr %17, ptr %9, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %.lr.ph1, label %51
.lr.ph1: ; preds = %16
br label %19
19: ; preds = %.lr.ph1, %48
store i32 0, ptr %11, align 4
%20 = load i32, ptr %11, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %42
%24 = load ptr, ptr %9, align 8
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %11, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = call i32 @strlen(ptr noundef %34)
%36 = call i64 @strncmp(ptr noundef %24, ptr noundef %29, i32 noundef %35)
%37 = icmp eq i64 0, %36
br i1 %37, label %38, label %41
38: ; preds = %23
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %10, align 4
br label %48
41: ; preds = %23
br label %42
42: ; preds = %41
%43 = load i32, ptr %11, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %11, align 4
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %23, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %42
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %19
br label %48
48: ; preds = %.loopexit, %38
%49 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str.1, ptr noundef %8)
store ptr %49, ptr %9, align 8
%50 = icmp ne ptr %49, null
br i1 %50, label %19, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %48
br label %51
51: ; preds = %._crit_edge, %16
%52 = load i32, ptr %10, align 4
store i32 %52, ptr %4, align 4
br label %53
53: ; preds = %51, %15
%54 = load i32, ptr %4, align 4
ret i32 %54
}
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpnd1p_a44.c'
source_filename = "/tmp/tmpnd1p_a44.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2666 x i8] c"\0AProgram: gkmtrain (lsgkm program for SVM model training)\0AVersion: v0.1.1\0A\0AUsage: gkmtrain [options] <posfile> <negfile> <outprefix>\0A\0A train gkm-SVM using libSVM\0A\0AArguments:\0A posfile: positive sequence file (FASTA format)\0A negfile: negative sequence file (FASTA format)\0A outprefix: prefix of output file(s) <outprefix>.model.txt or\0A <outprefix>.cvpred.txt\0A\0AOptions:\0A -t <0 ~ 5> set kernel function (default: 2 gkm)\0A NOTE: RBF kernels (3 and 5) work best with -c 10 -g 2\0A 0 -- gapped-kmer\0A 1 -- estimated l-mer with full filter\0A 2 -- estimated l-mer with truncated filter (gkm)\0A 3 -- gkm + RBF (gkmrbf)\0A 4 -- gkm + center weighted (wgkm)\0A [weight = max(M, floor(M*exp(-ln(2)*D/H)+1))]\0A 5 -- gkm + center weighted + RBF (wgkmrbf)\0A -l <int> set word length, 3<=l<=12 (default: 11)\0A -k <int> set number of informative column, k<=l (default: 7)\0A -d <int> set maximum number of mismatches to consider, d<=4 (default: 3)\0A -g <float> set gamma for RBF kernel. -t 3 or 5 only (default: 1.0)\0A -M <int> set the initial value (M) of the exponential decay function\0A for wgkm-kernels. max=255, -t 4 or 5 only (default: 50)\0A -H <float> set the half-life parameter (H) that is the distance (D) required\0A to fall to half of its initial value in the exponential decay\0A function for wgkm-kernels. -t 4 or 5 only (default: 50)\0A -R if set, reverse-complement is not considered as the same feature\0A -c <float> set the regularization parameter SVM-C (default: 1.0)\0A -e <float> set the precision parameter epsilon (default: 0.001)\0A -w <float> set the parameter SVM-C to w*C for the positive set (default: 1.0)\0A -m <float> set cache memory size in MB (default: 100.0)\0A NOTE: Large cache signifcantly reduces runtime. >4Gb is recommended\0A -s if set, use the shrinking heuristics\0A -x <int> set N-fold cross validation mode (default: no cross validation)\0A -i <int> run i-th cross validation only 1<=i<=ncv (default: all)\0A -r <int> set random seed for shuffling in cross validation mode (default: 1)\0A -v <0 ~ 4> set the level of verbosity (default: 2)\0A 0 -- error msgs only (ERROR)\0A 1 -- warning msgs (WARN)\0A 2 -- progress msgs at coarse-grained level (INFO)\0A 3 -- progress msgs at fine-grained level (DEBUG)\0A 4 -- progress msgs at finer-grained level (TRACE)\0A-T <1|4|16> set the number of threads for parallel calculation, 1, 4, or 16\0A (default: 1)\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage_and_exit() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnd1p_a44.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2666 x i8] c"\0AProgram: gkmtrain (lsgkm program for SVM model training)\0AVersion: v0.1.1\0A\0AUsage: gkmtrain [options] <posfile> <negfile> <outprefix>\0A\0A train gkm-SVM using libSVM\0A\0AArguments:\0A posfile: positive sequence file (FASTA format)\0A negfile: negative sequence file (FASTA format)\0A outprefix: prefix of output file(s) <outprefix>.model.txt or\0A <outprefix>.cvpred.txt\0A\0AOptions:\0A -t <0 ~ 5> set kernel function (default: 2 gkm)\0A NOTE: RBF kernels (3 and 5) work best with -c 10 -g 2\0A 0 -- gapped-kmer\0A 1 -- estimated l-mer with full filter\0A 2 -- estimated l-mer with truncated filter (gkm)\0A 3 -- gkm + RBF (gkmrbf)\0A 4 -- gkm + center weighted (wgkm)\0A [weight = max(M, floor(M*exp(-ln(2)*D/H)+1))]\0A 5 -- gkm + center weighted + RBF (wgkmrbf)\0A -l <int> set word length, 3<=l<=12 (default: 11)\0A -k <int> set number of informative column, k<=l (default: 7)\0A -d <int> set maximum number of mismatches to consider, d<=4 (default: 3)\0A -g <float> set gamma for RBF kernel. -t 3 or 5 only (default: 1.0)\0A -M <int> set the initial value (M) of the exponential decay function\0A for wgkm-kernels. max=255, -t 4 or 5 only (default: 50)\0A -H <float> set the half-life parameter (H) that is the distance (D) required\0A to fall to half of its initial value in the exponential decay\0A function for wgkm-kernels. -t 4 or 5 only (default: 50)\0A -R if set, reverse-complement is not considered as the same feature\0A -c <float> set the regularization parameter SVM-C (default: 1.0)\0A -e <float> set the precision parameter epsilon (default: 0.001)\0A -w <float> set the parameter SVM-C to w*C for the positive set (default: 1.0)\0A -m <float> set cache memory size in MB (default: 100.0)\0A NOTE: Large cache signifcantly reduces runtime. >4Gb is recommended\0A -s if set, use the shrinking heuristics\0A -x <int> set N-fold cross validation mode (default: no cross validation)\0A -i <int> run i-th cross validation only 1<=i<=ncv (default: all)\0A -r <int> set random seed for shuffling in cross validation mode (default: 1)\0A -v <0 ~ 4> set the level of verbosity (default: 2)\0A 0 -- error msgs only (ERROR)\0A 1 -- warning msgs (WARN)\0A 2 -- progress msgs at coarse-grained level (INFO)\0A 3 -- progress msgs at fine-grained level (DEBUG)\0A 4 -- progress msgs at finer-grained level (TRACE)\0A-T <1|4|16> set the number of threads for parallel calculation, 1, 4, or 16\0A (default: 1)\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage_and_exit() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx1_y4t9g.c'
source_filename = "/tmp/tmpx1_y4t9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"CORRECT!\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"FAILED!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @compare(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 1, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %11
11: ; preds = %35, %4
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %38
15: ; preds = %11
%16 = load i32, ptr %9, align 4
%17 = icmp eq i32 %16, 3
br i1 %17, label %18, label %19
18: ; preds = %15
br label %35
19: ; preds = %15
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = zext i8 %24 to i32
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = icmp ne i32 %25, %31
br i1 %32, label %33, label %34
33: ; preds = %19
store i32 0, ptr %10, align 4
br label %34
34: ; preds = %33, %19
br label %35
35: ; preds = %34, %18
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %9, align 4
br label %11, !llvm.loop !6
38: ; preds = %11
%39 = load i32, ptr %8, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %51, label %41
41: ; preds = %38
%42 = load i32, ptr %10, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %41
%45 = load i32, ptr @stderr, align 4
%46 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str)
br label %50
47: ; preds = %41
%48 = load i32, ptr @stderr, align 4
%49 = call i32 @fprintf(i32 noundef %48, ptr noundef @.str.1)
br label %50
50: ; preds = %47, %44
br label %51
51: ; preds = %50, %38
%52 = load i32, ptr %10, align 4
ret i32 %52
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx1_y4t9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"CORRECT!\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"FAILED!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @compare(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 1, ptr %10, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %40
.lr.ph: ; preds = %4
br label %14
14: ; preds = %.lr.ph, %34
%15 = load i32, ptr %9, align 4
%16 = icmp eq i32 %15, 3
br i1 %16, label %17, label %18
17: ; preds = %14
br label %34
18: ; preds = %14
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = icmp ne i32 %24, %30
br i1 %31, label %32, label %33
32: ; preds = %18
store i32 0, ptr %10, align 4
br label %33
33: ; preds = %32, %18
br label %34
34: ; preds = %33, %17
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %4
%41 = load i32, ptr %8, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %53, label %43
43: ; preds = %40
%44 = load i32, ptr %10, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i32, ptr @stderr, align 4
%48 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str)
br label %52
49: ; preds = %43
%50 = load i32, ptr @stderr, align 4
%51 = call i32 @fprintf(i32 noundef %50, ptr noundef @.str.1)
br label %52
52: ; preds = %49, %46
br label %53
53: ; preds = %52, %40
%54 = load i32, ptr %10, align 4
ret i32 %54
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpayf2kwf9.c'
source_filename = "/tmp/tmpayf2kwf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpayf2kwf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2yh9icmu.c'
source_filename = "/tmp/tmp2yh9icmu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"idx = %ld, val = 0x%lx\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [8 x i64], align 16
%7 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %7, align 8
br label %8
8: ; preds = %23, %2
%9 = load i64, ptr %7, align 8
%10 = icmp slt i64 %9, 8
br i1 %10, label %11, label %26
11: ; preds = %8
%12 = load i64, ptr %7, align 8
%13 = add nsw i64 %12, -1
%14 = call i64 @switchv(i64 noundef %13)
%15 = load i64, ptr %7, align 8
%16 = getelementptr inbounds [8 x i64], ptr %6, i64 0, i64 %15
store i64 %14, ptr %16, align 8
%17 = load i64, ptr %7, align 8
%18 = add nsw i64 %17, -1
%19 = load i64, ptr %7, align 8
%20 = getelementptr inbounds [8 x i64], ptr %6, i64 0, i64 %19
%21 = load i64, ptr %20, align 8
%22 = call i32 @printf(ptr noundef @.str, i64 noundef %18, i64 noundef %21)
br label %23
23: ; preds = %11
%24 = load i64, ptr %7, align 8
%25 = add nsw i64 %24, 1
store i64 %25, ptr %7, align 8
br label %8, !llvm.loop !6
26: ; preds = %8
ret i32 0
}
declare i64 @switchv(i64 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2yh9icmu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"idx = %ld, val = 0x%lx\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [8 x i64], align 16
%7 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %7, align 8
%8 = load i64, ptr %7, align 8
%9 = icmp slt i64 %8, 8
br i1 %9, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %22
%11 = load i64, ptr %7, align 8
%12 = add nsw i64 %11, -1
%13 = call i64 @switchv(i64 noundef %12)
%14 = load i64, ptr %7, align 8
%15 = getelementptr inbounds [8 x i64], ptr %6, i64 0, i64 %14
store i64 %13, ptr %15, align 8
%16 = load i64, ptr %7, align 8
%17 = add nsw i64 %16, -1
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds [8 x i64], ptr %6, i64 0, i64 %18
%20 = load i64, ptr %19, align 8
%21 = call i32 @printf(ptr noundef @.str, i64 noundef %17, i64 noundef %20)
br label %22
22: ; preds = %10
%23 = load i64, ptr %7, align 8
%24 = add nsw i64 %23, 1
store i64 %24, ptr %7, align 8
%25 = load i64, ptr %7, align 8
%26 = icmp slt i64 %25, 8
br i1 %26, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %2
ret i32 0
}
declare i64 @switchv(i64 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpr15zl0r_.c'
source_filename = "/tmp/tmpr15zl0r_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [61 x i8] c"failed test %d MAX(%luUL, %d): %lldLL == %lluLLU <= i == %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [64 x i8] c"failed test %d MAX(%luUL, %d): %lldLL == %lluLLU != u == %luUL\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_test_MAX_biggerulong_smallerint(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i32, align 4
store i64 %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = sub i64 %5, %6
%8 = load i64, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = sub i64 %8, %9
%11 = add i64 %10, 1
%12 = sub i64 %7, %11
%13 = load i64, ptr %3, align 8
%14 = load i64, ptr %3, align 8
%15 = sub i64 %13, %14
%16 = icmp ult i64 %12, %15
br i1 %16, label %17, label %64
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = sub nsw i32 %18, %19
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = sub nsw i32 %21, %22
%24 = add nsw i32 %23, 1
%25 = sub nsw i32 %20, %24
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = sub nsw i32 %26, %27
%29 = icmp slt i32 %25, %28
br i1 %29, label %30, label %42
30: ; preds = %17
%31 = load i64, ptr %3, align 8
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = icmp sgt i64 %31, %33
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = load i64, ptr %3, align 8
br label %40
37: ; preds = %30
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
br label %40
40: ; preds = %37, %35
%41 = phi i64 [ %36, %35 ], [ %39, %37 ]
br label %62
42: ; preds = %17
%43 = load i64, ptr %3, align 8
%44 = icmp ult i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, ptr %4, align 4
%47 = sext i32 %46 to i64
br label %60
48: ; preds = %42
%49 = load i64, ptr %3, align 8
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = icmp ugt i64 %49, %51
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = load i64, ptr %3, align 8
br label %58
55: ; preds = %48
%56 = load i32, ptr %4, align 4
%57 = sext i32 %56 to i64
br label %58
58: ; preds = %55, %53
%59 = phi i64 [ %54, %53 ], [ %57, %55 ]
br label %60
60: ; preds = %58, %45
%61 = phi i64 [ %47, %45 ], [ %59, %58 ]
br label %62
62: ; preds = %60, %40
%63 = phi i64 [ %41, %40 ], [ %61, %60 ]
br label %110
64: ; preds = %2
%65 = load i32, ptr %4, align 4
%66 = load i32, ptr %4, align 4
%67 = sub nsw i32 %65, %66
%68 = load i32, ptr %4, align 4
%69 = load i32, ptr %4, align 4
%70 = sub nsw i32 %68, %69
%71 = add nsw i32 %70, 1
%72 = sub nsw i32 %67, %71
%73 = load i32, ptr %4, align 4
%74 = load i32, ptr %4, align 4
%75 = sub nsw i32 %73, %74
%76 = icmp slt i32 %72, %75
br i1 %76, label %77, label %96
77: ; preds = %64
%78 = load i32, ptr %4, align 4
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = load i64, ptr %3, align 8
br label %94
82: ; preds = %77
%83 = load i64, ptr %3, align 8
%84 = load i32, ptr %4, align 4
%85 = sext i32 %84 to i64
%86 = icmp ugt i64 %83, %85
br i1 %86, label %87, label %89
87: ; preds = %82
%88 = load i64, ptr %3, align 8
br label %92
89: ; preds = %82
%90 = load i32, ptr %4, align 4
%91 = sext i32 %90 to i64
br label %92
92: ; preds = %89, %87
%93 = phi i64 [ %88, %87 ], [ %91, %89 ]
br label %94
94: ; preds = %92, %80
%95 = phi i64 [ %81, %80 ], [ %93, %92 ]
br label %108
96: ; preds = %64
%97 = load i64, ptr %3, align 8
%98 = load i32, ptr %4, align 4
%99 = sext i32 %98 to i64
%100 = icmp ugt i64 %97, %99
br i1 %100, label %101, label %103
101: ; preds = %96
%102 = load i64, ptr %3, align 8
br label %106
103: ; preds = %96
%104 = load i32, ptr %4, align 4
%105 = sext i32 %104 to i64
br label %106
106: ; preds = %103, %101
%107 = phi i64 [ %102, %101 ], [ %105, %103 ]
br label %108
108: ; preds = %106, %94
%109 = phi i64 [ %95, %94 ], [ %107, %106 ]
br label %110
110: ; preds = %108, %62
%111 = phi i64 [ %63, %62 ], [ %109, %108 ]
%112 = load i32, ptr %4, align 4
%113 = sext i32 %112 to i64
%114 = icmp ule i64 %111, %113
br i1 %114, label %115, label %335
115: ; preds = %110
%116 = load i64, ptr %3, align 8
%117 = load i32, ptr %4, align 4
%118 = load i64, ptr %3, align 8
%119 = load i64, ptr %3, align 8
%120 = sub i64 %118, %119
%121 = load i64, ptr %3, align 8
%122 = load i64, ptr %3, align 8
%123 = sub i64 %121, %122
%124 = add i64 %123, 1
%125 = sub i64 %120, %124
%126 = load i64, ptr %3, align 8
%127 = load i64, ptr %3, align 8
%128 = sub i64 %126, %127
%129 = icmp ult i64 %125, %128
br i1 %129, label %130, label %177
130: ; preds = %115
%131 = load i32, ptr %4, align 4
%132 = load i32, ptr %4, align 4
%133 = sub nsw i32 %131, %132
%134 = load i32, ptr %4, align 4
%135 = load i32, ptr %4, align 4
%136 = sub nsw i32 %134, %135
%137 = add nsw i32 %136, 1
%138 = sub nsw i32 %133, %137
%139 = load i32, ptr %4, align 4
%140 = load i32, ptr %4, align 4
%141 = sub nsw i32 %139, %140
%142 = icmp slt i32 %138, %141
br i1 %142, label %143, label %155
143: ; preds = %130
%144 = load i64, ptr %3, align 8
%145 = load i32, ptr %4, align 4
%146 = sext i32 %145 to i64
%147 = icmp sgt i64 %144, %146
br i1 %147, label %148, label %150
148: ; preds = %143
%149 = load i64, ptr %3, align 8
br label %153
150: ; preds = %143
%151 = load i32, ptr %4, align 4
%152 = sext i32 %151 to i64
br label %153
153: ; preds = %150, %148
%154 = phi i64 [ %149, %148 ], [ %152, %150 ]
br label %175
155: ; preds = %130
%156 = load i64, ptr %3, align 8
%157 = icmp ult i64 %156, 0
br i1 %157, label %158, label %161
158: ; preds = %155
%159 = load i32, ptr %4, align 4
%160 = sext i32 %159 to i64
br label %173
161: ; preds = %155
%162 = load i64, ptr %3, align 8
%163 = load i32, ptr %4, align 4
%164 = sext i32 %163 to i64
%165 = icmp ugt i64 %162, %164
br i1 %165, label %166, label %168
166: ; preds = %161
%167 = load i64, ptr %3, align 8
br label %171
168: ; preds = %161
%169 = load i32, ptr %4, align 4
%170 = sext i32 %169 to i64
br label %171
171: ; preds = %168, %166
%172 = phi i64 [ %167, %166 ], [ %170, %168 ]
br label %173
173: ; preds = %171, %158
%174 = phi i64 [ %160, %158 ], [ %172, %171 ]
br label %175
175: ; preds = %173, %153
%176 = phi i64 [ %154, %153 ], [ %174, %173 ]
br label %223
177: ; preds = %115
%178 = load i32, ptr %4, align 4
%179 = load i32, ptr %4, align 4
%180 = sub nsw i32 %178, %179
%181 = load i32, ptr %4, align 4
%182 = load i32, ptr %4, align 4
%183 = sub nsw i32 %181, %182
%184 = add nsw i32 %183, 1
%185 = sub nsw i32 %180, %184
%186 = load i32, ptr %4, align 4
%187 = load i32, ptr %4, align 4
%188 = sub nsw i32 %186, %187
%189 = icmp slt i32 %185, %188
br i1 %189, label %190, label %209
190: ; preds = %177
%191 = load i32, ptr %4, align 4
%192 = icmp slt i32 %191, 0
br i1 %192, label %193, label %195
193: ; preds = %190
%194 = load i64, ptr %3, align 8
br label %207
195: ; preds = %190
%196 = load i64, ptr %3, align 8
%197 = load i32, ptr %4, align 4
%198 = sext i32 %197 to i64
%199 = icmp ugt i64 %196, %198
br i1 %199, label %200, label %202
200: ; preds = %195
%201 = load i64, ptr %3, align 8
br label %205
202: ; preds = %195
%203 = load i32, ptr %4, align 4
%204 = sext i32 %203 to i64
br label %205
205: ; preds = %202, %200
%206 = phi i64 [ %201, %200 ], [ %204, %202 ]
br label %207
207: ; preds = %205, %193
%208 = phi i64 [ %194, %193 ], [ %206, %205 ]
br label %221
209: ; preds = %177
%210 = load i64, ptr %3, align 8
%211 = load i32, ptr %4, align 4
%212 = sext i32 %211 to i64
%213 = icmp ugt i64 %210, %212
br i1 %213, label %214, label %216
214: ; preds = %209
%215 = load i64, ptr %3, align 8
br label %219
216: ; preds = %209
%217 = load i32, ptr %4, align 4
%218 = sext i32 %217 to i64
br label %219
219: ; preds = %216, %214
%220 = phi i64 [ %215, %214 ], [ %218, %216 ]
br label %221
221: ; preds = %219, %207
%222 = phi i64 [ %208, %207 ], [ %220, %219 ]
br label %223
223: ; preds = %221, %175
%224 = phi i64 [ %176, %175 ], [ %222, %221 ]
%225 = load i64, ptr %3, align 8
%226 = load i64, ptr %3, align 8
%227 = sub i64 %225, %226
%228 = load i64, ptr %3, align 8
%229 = load i64, ptr %3, align 8
%230 = sub i64 %228, %229
%231 = add i64 %230, 1
%232 = sub i64 %227, %231
%233 = load i64, ptr %3, align 8
%234 = load i64, ptr %3, align 8
%235 = sub i64 %233, %234
%236 = icmp ult i64 %232, %235
br i1 %236, label %237, label %284
237: ; preds = %223
%238 = load i32, ptr %4, align 4
%239 = load i32, ptr %4, align 4
%240 = sub nsw i32 %238, %239
%241 = load i32, ptr %4, align 4
%242 = load i32, ptr %4, align 4
%243 = sub nsw i32 %241, %242
%244 = add nsw i32 %243, 1
%245 = sub nsw i32 %240, %244
%246 = load i32, ptr %4, align 4
%247 = load i32, ptr %4, align 4
%248 = sub nsw i32 %246, %247
%249 = icmp slt i32 %245, %248
br i1 %249, label %250, label %262
250: ; preds = %237
%251 = load i64, ptr %3, align 8
%252 = load i32, ptr %4, align 4
%253 = sext i32 %252 to i64
%254 = icmp sgt i64 %251, %253
br i1 %254, label %255, label %257
255: ; preds = %250
%256 = load i64, ptr %3, align 8
br label %260
257: ; preds = %250
%258 = load i32, ptr %4, align 4
%259 = sext i32 %258 to i64
br label %260
260: ; preds = %257, %255
%261 = phi i64 [ %256, %255 ], [ %259, %257 ]
br label %282
262: ; preds = %237
%263 = load i64, ptr %3, align 8
%264 = icmp ult i64 %263, 0
br i1 %264, label %265, label %268
265: ; preds = %262
%266 = load i32, ptr %4, align 4
%267 = sext i32 %266 to i64
br label %280
268: ; preds = %262
%269 = load i64, ptr %3, align 8
%270 = load i32, ptr %4, align 4
%271 = sext i32 %270 to i64
%272 = icmp ugt i64 %269, %271
br i1 %272, label %273, label %275
273: ; preds = %268
%274 = load i64, ptr %3, align 8
br label %278
275: ; preds = %268
%276 = load i32, ptr %4, align 4
%277 = sext i32 %276 to i64
br label %278
278: ; preds = %275, %273
%279 = phi i64 [ %274, %273 ], [ %277, %275 ]
br label %280
280: ; preds = %278, %265
%281 = phi i64 [ %267, %265 ], [ %279, %278 ]
br label %282
282: ; preds = %280, %260
%283 = phi i64 [ %261, %260 ], [ %281, %280 ]
br label %330
284: ; preds = %223
%285 = load i32, ptr %4, align 4
%286 = load i32, ptr %4, align 4
%287 = sub nsw i32 %285, %286
%288 = load i32, ptr %4, align 4
%289 = load i32, ptr %4, align 4
%290 = sub nsw i32 %288, %289
%291 = add nsw i32 %290, 1
%292 = sub nsw i32 %287, %291
%293 = load i32, ptr %4, align 4
%294 = load i32, ptr %4, align 4
%295 = sub nsw i32 %293, %294
%296 = icmp slt i32 %292, %295
br i1 %296, label %297, label %316
297: ; preds = %284
%298 = load i32, ptr %4, align 4
%299 = icmp slt i32 %298, 0
br i1 %299, label %300, label %302
300: ; preds = %297
%301 = load i64, ptr %3, align 8
br label %314
302: ; preds = %297
%303 = load i64, ptr %3, align 8
%304 = load i32, ptr %4, align 4
%305 = sext i32 %304 to i64
%306 = icmp ugt i64 %303, %305
br i1 %306, label %307, label %309
307: ; preds = %302
%308 = load i64, ptr %3, align 8
br label %312
309: ; preds = %302
%310 = load i32, ptr %4, align 4
%311 = sext i32 %310 to i64
br label %312
312: ; preds = %309, %307
%313 = phi i64 [ %308, %307 ], [ %311, %309 ]
br label %314
314: ; preds = %312, %300
%315 = phi i64 [ %301, %300 ], [ %313, %312 ]
br label %328
316: ; preds = %284
%317 = load i64, ptr %3, align 8
%318 = load i32, ptr %4, align 4
%319 = sext i32 %318 to i64
%320 = icmp ugt i64 %317, %319
br i1 %320, label %321, label %323
321: ; preds = %316
%322 = load i64, ptr %3, align 8
br label %326
323: ; preds = %316
%324 = load i32, ptr %4, align 4
%325 = sext i32 %324 to i64
br label %326
326: ; preds = %323, %321
%327 = phi i64 [ %322, %321 ], [ %325, %323 ]
br label %328
328: ; preds = %326, %314
%329 = phi i64 [ %315, %314 ], [ %327, %326 ]
br label %330
330: ; preds = %328, %282
%331 = phi i64 [ %283, %282 ], [ %329, %328 ]
%332 = load i32, ptr %4, align 4
%333 = sext i32 %332 to i64
%334 = call i32 @printf(ptr noundef @.str, i32 noundef 614, i64 noundef %116, i32 noundef %117, i64 noundef %224, i64 noundef %331, i64 noundef %333)
br label %335
335: ; preds = %330, %110
%336 = load i64, ptr %3, align 8
%337 = load i64, ptr %3, align 8
%338 = sub i64 %336, %337
%339 = load i64, ptr %3, align 8
%340 = load i64, ptr %3, align 8
%341 = sub i64 %339, %340
%342 = add i64 %341, 1
%343 = sub i64 %338, %342
%344 = load i64, ptr %3, align 8
%345 = load i64, ptr %3, align 8
%346 = sub i64 %344, %345
%347 = icmp ult i64 %343, %346
br i1 %347, label %348, label %395
348: ; preds = %335
%349 = load i32, ptr %4, align 4
%350 = load i32, ptr %4, align 4
%351 = sub nsw i32 %349, %350
%352 = load i32, ptr %4, align 4
%353 = load i32, ptr %4, align 4
%354 = sub nsw i32 %352, %353
%355 = add nsw i32 %354, 1
%356 = sub nsw i32 %351, %355
%357 = load i32, ptr %4, align 4
%358 = load i32, ptr %4, align 4
%359 = sub nsw i32 %357, %358
%360 = icmp slt i32 %356, %359
br i1 %360, label %361, label %373
361: ; preds = %348
%362 = load i64, ptr %3, align 8
%363 = load i32, ptr %4, align 4
%364 = sext i32 %363 to i64
%365 = icmp sgt i64 %362, %364
br i1 %365, label %366, label %368
366: ; preds = %361
%367 = load i64, ptr %3, align 8
br label %371
368: ; preds = %361
%369 = load i32, ptr %4, align 4
%370 = sext i32 %369 to i64
br label %371
371: ; preds = %368, %366
%372 = phi i64 [ %367, %366 ], [ %370, %368 ]
br label %393
373: ; preds = %348
%374 = load i64, ptr %3, align 8
%375 = icmp ult i64 %374, 0
br i1 %375, label %376, label %379
376: ; preds = %373
%377 = load i32, ptr %4, align 4
%378 = sext i32 %377 to i64
br label %391
379: ; preds = %373
%380 = load i64, ptr %3, align 8
%381 = load i32, ptr %4, align 4
%382 = sext i32 %381 to i64
%383 = icmp ugt i64 %380, %382
br i1 %383, label %384, label %386
384: ; preds = %379
%385 = load i64, ptr %3, align 8
br label %389
386: ; preds = %379
%387 = load i32, ptr %4, align 4
%388 = sext i32 %387 to i64
br label %389
389: ; preds = %386, %384
%390 = phi i64 [ %385, %384 ], [ %388, %386 ]
br label %391
391: ; preds = %389, %376
%392 = phi i64 [ %378, %376 ], [ %390, %389 ]
br label %393
393: ; preds = %391, %371
%394 = phi i64 [ %372, %371 ], [ %392, %391 ]
br label %441
395: ; preds = %335
%396 = load i32, ptr %4, align 4
%397 = load i32, ptr %4, align 4
%398 = sub nsw i32 %396, %397
%399 = load i32, ptr %4, align 4
%400 = load i32, ptr %4, align 4
%401 = sub nsw i32 %399, %400
%402 = add nsw i32 %401, 1
%403 = sub nsw i32 %398, %402
%404 = load i32, ptr %4, align 4
%405 = load i32, ptr %4, align 4
%406 = sub nsw i32 %404, %405
%407 = icmp slt i32 %403, %406
br i1 %407, label %408, label %427
408: ; preds = %395
%409 = load i32, ptr %4, align 4
%410 = icmp slt i32 %409, 0
br i1 %410, label %411, label %413
411: ; preds = %408
%412 = load i64, ptr %3, align 8
br label %425
413: ; preds = %408
%414 = load i64, ptr %3, align 8
%415 = load i32, ptr %4, align 4
%416 = sext i32 %415 to i64
%417 = icmp ugt i64 %414, %416
br i1 %417, label %418, label %420
418: ; preds = %413
%419 = load i64, ptr %3, align 8
br label %423
420: ; preds = %413
%421 = load i32, ptr %4, align 4
%422 = sext i32 %421 to i64
br label %423
423: ; preds = %420, %418
%424 = phi i64 [ %419, %418 ], [ %422, %420 ]
br label %425
425: ; preds = %423, %411
%426 = phi i64 [ %412, %411 ], [ %424, %423 ]
br label %439
427: ; preds = %395
%428 = load i64, ptr %3, align 8
%429 = load i32, ptr %4, align 4
%430 = sext i32 %429 to i64
%431 = icmp ugt i64 %428, %430
br i1 %431, label %432, label %434
432: ; preds = %427
%433 = load i64, ptr %3, align 8
br label %437
434: ; preds = %427
%435 = load i32, ptr %4, align 4
%436 = sext i32 %435 to i64
br label %437
437: ; preds = %434, %432
%438 = phi i64 [ %433, %432 ], [ %436, %434 ]
br label %439
439: ; preds = %437, %425
%440 = phi i64 [ %426, %425 ], [ %438, %437 ]
br label %441
441: ; preds = %439, %393
%442 = phi i64 [ %394, %393 ], [ %440, %439 ]
%443 = load i64, ptr %3, align 8
%444 = icmp ne i64 %442, %443
br i1 %444, label %445, label %664
445: ; preds = %441
%446 = load i64, ptr %3, align 8
%447 = load i32, ptr %4, align 4
%448 = load i64, ptr %3, align 8
%449 = load i64, ptr %3, align 8
%450 = sub i64 %448, %449
%451 = load i64, ptr %3, align 8
%452 = load i64, ptr %3, align 8
%453 = sub i64 %451, %452
%454 = add i64 %453, 1
%455 = sub i64 %450, %454
%456 = load i64, ptr %3, align 8
%457 = load i64, ptr %3, align 8
%458 = sub i64 %456, %457
%459 = icmp ult i64 %455, %458
br i1 %459, label %460, label %507
460: ; preds = %445
%461 = load i32, ptr %4, align 4
%462 = load i32, ptr %4, align 4
%463 = sub nsw i32 %461, %462
%464 = load i32, ptr %4, align 4
%465 = load i32, ptr %4, align 4
%466 = sub nsw i32 %464, %465
%467 = add nsw i32 %466, 1
%468 = sub nsw i32 %463, %467
%469 = load i32, ptr %4, align 4
%470 = load i32, ptr %4, align 4
%471 = sub nsw i32 %469, %470
%472 = icmp slt i32 %468, %471
br i1 %472, label %473, label %485
473: ; preds = %460
%474 = load i64, ptr %3, align 8
%475 = load i32, ptr %4, align 4
%476 = sext i32 %475 to i64
%477 = icmp sgt i64 %474, %476
br i1 %477, label %478, label %480
478: ; preds = %473
%479 = load i64, ptr %3, align 8
br label %483
480: ; preds = %473
%481 = load i32, ptr %4, align 4
%482 = sext i32 %481 to i64
br label %483
483: ; preds = %480, %478
%484 = phi i64 [ %479, %478 ], [ %482, %480 ]
br label %505
485: ; preds = %460
%486 = load i64, ptr %3, align 8
%487 = icmp ult i64 %486, 0
br i1 %487, label %488, label %491
488: ; preds = %485
%489 = load i32, ptr %4, align 4
%490 = sext i32 %489 to i64
br label %503
491: ; preds = %485
%492 = load i64, ptr %3, align 8
%493 = load i32, ptr %4, align 4
%494 = sext i32 %493 to i64
%495 = icmp ugt i64 %492, %494
br i1 %495, label %496, label %498
496: ; preds = %491
%497 = load i64, ptr %3, align 8
br label %501
498: ; preds = %491
%499 = load i32, ptr %4, align 4
%500 = sext i32 %499 to i64
br label %501
501: ; preds = %498, %496
%502 = phi i64 [ %497, %496 ], [ %500, %498 ]
br label %503
503: ; preds = %501, %488
%504 = phi i64 [ %490, %488 ], [ %502, %501 ]
br label %505
505: ; preds = %503, %483
%506 = phi i64 [ %484, %483 ], [ %504, %503 ]
br label %553
507: ; preds = %445
%508 = load i32, ptr %4, align 4
%509 = load i32, ptr %4, align 4
%510 = sub nsw i32 %508, %509
%511 = load i32, ptr %4, align 4
%512 = load i32, ptr %4, align 4
%513 = sub nsw i32 %511, %512
%514 = add nsw i32 %513, 1
%515 = sub nsw i32 %510, %514
%516 = load i32, ptr %4, align 4
%517 = load i32, ptr %4, align 4
%518 = sub nsw i32 %516, %517
%519 = icmp slt i32 %515, %518
br i1 %519, label %520, label %539
520: ; preds = %507
%521 = load i32, ptr %4, align 4
%522 = icmp slt i32 %521, 0
br i1 %522, label %523, label %525
523: ; preds = %520
%524 = load i64, ptr %3, align 8
br label %537
525: ; preds = %520
%526 = load i64, ptr %3, align 8
%527 = load i32, ptr %4, align 4
%528 = sext i32 %527 to i64
%529 = icmp ugt i64 %526, %528
br i1 %529, label %530, label %532
530: ; preds = %525
%531 = load i64, ptr %3, align 8
br label %535
532: ; preds = %525
%533 = load i32, ptr %4, align 4
%534 = sext i32 %533 to i64
br label %535
535: ; preds = %532, %530
%536 = phi i64 [ %531, %530 ], [ %534, %532 ]
br label %537
537: ; preds = %535, %523
%538 = phi i64 [ %524, %523 ], [ %536, %535 ]
br label %551
539: ; preds = %507
%540 = load i64, ptr %3, align 8
%541 = load i32, ptr %4, align 4
%542 = sext i32 %541 to i64
%543 = icmp ugt i64 %540, %542
br i1 %543, label %544, label %546
544: ; preds = %539
%545 = load i64, ptr %3, align 8
br label %549
546: ; preds = %539
%547 = load i32, ptr %4, align 4
%548 = sext i32 %547 to i64
br label %549
549: ; preds = %546, %544
%550 = phi i64 [ %545, %544 ], [ %548, %546 ]
br label %551
551: ; preds = %549, %537
%552 = phi i64 [ %538, %537 ], [ %550, %549 ]
br label %553
553: ; preds = %551, %505
%554 = phi i64 [ %506, %505 ], [ %552, %551 ]
%555 = load i64, ptr %3, align 8
%556 = load i64, ptr %3, align 8
%557 = sub i64 %555, %556
%558 = load i64, ptr %3, align 8
%559 = load i64, ptr %3, align 8
%560 = sub i64 %558, %559
%561 = add i64 %560, 1
%562 = sub i64 %557, %561
%563 = load i64, ptr %3, align 8
%564 = load i64, ptr %3, align 8
%565 = sub i64 %563, %564
%566 = icmp ult i64 %562, %565
br i1 %566, label %567, label %614
567: ; preds = %553
%568 = load i32, ptr %4, align 4
%569 = load i32, ptr %4, align 4
%570 = sub nsw i32 %568, %569
%571 = load i32, ptr %4, align 4
%572 = load i32, ptr %4, align 4
%573 = sub nsw i32 %571, %572
%574 = add nsw i32 %573, 1
%575 = sub nsw i32 %570, %574
%576 = load i32, ptr %4, align 4
%577 = load i32, ptr %4, align 4
%578 = sub nsw i32 %576, %577
%579 = icmp slt i32 %575, %578
br i1 %579, label %580, label %592
580: ; preds = %567
%581 = load i64, ptr %3, align 8
%582 = load i32, ptr %4, align 4
%583 = sext i32 %582 to i64
%584 = icmp sgt i64 %581, %583
br i1 %584, label %585, label %587
585: ; preds = %580
%586 = load i64, ptr %3, align 8
br label %590
587: ; preds = %580
%588 = load i32, ptr %4, align 4
%589 = sext i32 %588 to i64
br label %590
590: ; preds = %587, %585
%591 = phi i64 [ %586, %585 ], [ %589, %587 ]
br label %612
592: ; preds = %567
%593 = load i64, ptr %3, align 8
%594 = icmp ult i64 %593, 0
br i1 %594, label %595, label %598
595: ; preds = %592
%596 = load i32, ptr %4, align 4
%597 = sext i32 %596 to i64
br label %610
598: ; preds = %592
%599 = load i64, ptr %3, align 8
%600 = load i32, ptr %4, align 4
%601 = sext i32 %600 to i64
%602 = icmp ugt i64 %599, %601
br i1 %602, label %603, label %605
603: ; preds = %598
%604 = load i64, ptr %3, align 8
br label %608
605: ; preds = %598
%606 = load i32, ptr %4, align 4
%607 = sext i32 %606 to i64
br label %608
608: ; preds = %605, %603
%609 = phi i64 [ %604, %603 ], [ %607, %605 ]
br label %610
610: ; preds = %608, %595
%611 = phi i64 [ %597, %595 ], [ %609, %608 ]
br label %612
612: ; preds = %610, %590
%613 = phi i64 [ %591, %590 ], [ %611, %610 ]
br label %660
614: ; preds = %553
%615 = load i32, ptr %4, align 4
%616 = load i32, ptr %4, align 4
%617 = sub nsw i32 %615, %616
%618 = load i32, ptr %4, align 4
%619 = load i32, ptr %4, align 4
%620 = sub nsw i32 %618, %619
%621 = add nsw i32 %620, 1
%622 = sub nsw i32 %617, %621
%623 = load i32, ptr %4, align 4
%624 = load i32, ptr %4, align 4
%625 = sub nsw i32 %623, %624
%626 = icmp slt i32 %622, %625
br i1 %626, label %627, label %646
627: ; preds = %614
%628 = load i32, ptr %4, align 4
%629 = icmp slt i32 %628, 0
br i1 %629, label %630, label %632
630: ; preds = %627
%631 = load i64, ptr %3, align 8
br label %644
632: ; preds = %627
%633 = load i64, ptr %3, align 8
%634 = load i32, ptr %4, align 4
%635 = sext i32 %634 to i64
%636 = icmp ugt i64 %633, %635
br i1 %636, label %637, label %639
637: ; preds = %632
%638 = load i64, ptr %3, align 8
br label %642
639: ; preds = %632
%640 = load i32, ptr %4, align 4
%641 = sext i32 %640 to i64
br label %642
642: ; preds = %639, %637
%643 = phi i64 [ %638, %637 ], [ %641, %639 ]
br label %644
644: ; preds = %642, %630
%645 = phi i64 [ %631, %630 ], [ %643, %642 ]
br label %658
646: ; preds = %614
%647 = load i64, ptr %3, align 8
%648 = load i32, ptr %4, align 4
%649 = sext i32 %648 to i64
%650 = icmp ugt i64 %647, %649
br i1 %650, label %651, label %653
651: ; preds = %646
%652 = load i64, ptr %3, align 8
br label %656
653: ; preds = %646
%654 = load i32, ptr %4, align 4
%655 = sext i32 %654 to i64
br label %656
656: ; preds = %653, %651
%657 = phi i64 [ %652, %651 ], [ %655, %653 ]
br label %658
658: ; preds = %656, %644
%659 = phi i64 [ %645, %644 ], [ %657, %656 ]
br label %660
660: ; preds = %658, %612
%661 = phi i64 [ %613, %612 ], [ %659, %658 ]
%662 = load i64, ptr %3, align 8
%663 = call i32 @printf(ptr noundef @.str.1, i32 noundef 617, i64 noundef %446, i32 noundef %447, i64 noundef %554, i64 noundef %661, i64 noundef %662)
br label %664
664: ; preds = %660, %441
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i64 noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr15zl0r_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [61 x i8] c"failed test %d MAX(%luUL, %d): %lldLL == %lluLLU <= i == %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [64 x i8] c"failed test %d MAX(%luUL, %d): %lldLL == %lluLLU != u == %luUL\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_test_MAX_biggerulong_smallerint(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i32, align 4
store i64 %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = sub i64 %5, %6
%8 = load i64, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = sub i64 %8, %9
%11 = add i64 %10, 1
%12 = sub i64 %7, %11
%13 = load i64, ptr %3, align 8
%14 = load i64, ptr %3, align 8
%15 = sub i64 %13, %14
%16 = icmp ult i64 %12, %15
br i1 %16, label %17, label %64
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = sub nsw i32 %18, %19
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = sub nsw i32 %21, %22
%24 = add nsw i32 %23, 1
%25 = sub nsw i32 %20, %24
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = sub nsw i32 %26, %27
%29 = icmp slt i32 %25, %28
br i1 %29, label %30, label %42
30: ; preds = %17
%31 = load i64, ptr %3, align 8
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = icmp sgt i64 %31, %33
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = load i64, ptr %3, align 8
br label %40
37: ; preds = %30
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
br label %40
40: ; preds = %37, %35
%41 = phi i64 [ %36, %35 ], [ %39, %37 ]
br label %62
42: ; preds = %17
%43 = load i64, ptr %3, align 8
%44 = icmp ult i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, ptr %4, align 4
%47 = sext i32 %46 to i64
br label %60
48: ; preds = %42
%49 = load i64, ptr %3, align 8
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = icmp ugt i64 %49, %51
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = load i64, ptr %3, align 8
br label %58
55: ; preds = %48
%56 = load i32, ptr %4, align 4
%57 = sext i32 %56 to i64
br label %58
58: ; preds = %55, %53
%59 = phi i64 [ %54, %53 ], [ %57, %55 ]
br label %60
60: ; preds = %58, %45
%61 = phi i64 [ %47, %45 ], [ %59, %58 ]
br label %62
62: ; preds = %60, %40
%63 = phi i64 [ %41, %40 ], [ %61, %60 ]
br label %110
64: ; preds = %2
%65 = load i32, ptr %4, align 4
%66 = load i32, ptr %4, align 4
%67 = sub nsw i32 %65, %66
%68 = load i32, ptr %4, align 4
%69 = load i32, ptr %4, align 4
%70 = sub nsw i32 %68, %69
%71 = add nsw i32 %70, 1
%72 = sub nsw i32 %67, %71
%73 = load i32, ptr %4, align 4
%74 = load i32, ptr %4, align 4
%75 = sub nsw i32 %73, %74
%76 = icmp slt i32 %72, %75
br i1 %76, label %77, label %96
77: ; preds = %64
%78 = load i32, ptr %4, align 4
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = load i64, ptr %3, align 8
br label %94
82: ; preds = %77
%83 = load i64, ptr %3, align 8
%84 = load i32, ptr %4, align 4
%85 = sext i32 %84 to i64
%86 = icmp ugt i64 %83, %85
br i1 %86, label %87, label %89
87: ; preds = %82
%88 = load i64, ptr %3, align 8
br label %92
89: ; preds = %82
%90 = load i32, ptr %4, align 4
%91 = sext i32 %90 to i64
br label %92
92: ; preds = %89, %87
%93 = phi i64 [ %88, %87 ], [ %91, %89 ]
br label %94
94: ; preds = %92, %80
%95 = phi i64 [ %81, %80 ], [ %93, %92 ]
br label %108
96: ; preds = %64
%97 = load i64, ptr %3, align 8
%98 = load i32, ptr %4, align 4
%99 = sext i32 %98 to i64
%100 = icmp ugt i64 %97, %99
br i1 %100, label %101, label %103
101: ; preds = %96
%102 = load i64, ptr %3, align 8
br label %106
103: ; preds = %96
%104 = load i32, ptr %4, align 4
%105 = sext i32 %104 to i64
br label %106
106: ; preds = %103, %101
%107 = phi i64 [ %102, %101 ], [ %105, %103 ]
br label %108
108: ; preds = %106, %94
%109 = phi i64 [ %95, %94 ], [ %107, %106 ]
br label %110
110: ; preds = %108, %62
%111 = phi i64 [ %63, %62 ], [ %109, %108 ]
%112 = load i32, ptr %4, align 4
%113 = sext i32 %112 to i64
%114 = icmp ule i64 %111, %113
br i1 %114, label %115, label %335
115: ; preds = %110
%116 = load i64, ptr %3, align 8
%117 = load i32, ptr %4, align 4
%118 = load i64, ptr %3, align 8
%119 = load i64, ptr %3, align 8
%120 = sub i64 %118, %119
%121 = load i64, ptr %3, align 8
%122 = load i64, ptr %3, align 8
%123 = sub i64 %121, %122
%124 = add i64 %123, 1
%125 = sub i64 %120, %124
%126 = load i64, ptr %3, align 8
%127 = load i64, ptr %3, align 8
%128 = sub i64 %126, %127
%129 = icmp ult i64 %125, %128
br i1 %129, label %130, label %177
130: ; preds = %115
%131 = load i32, ptr %4, align 4
%132 = load i32, ptr %4, align 4
%133 = sub nsw i32 %131, %132
%134 = load i32, ptr %4, align 4
%135 = load i32, ptr %4, align 4
%136 = sub nsw i32 %134, %135
%137 = add nsw i32 %136, 1
%138 = sub nsw i32 %133, %137
%139 = load i32, ptr %4, align 4
%140 = load i32, ptr %4, align 4
%141 = sub nsw i32 %139, %140
%142 = icmp slt i32 %138, %141
br i1 %142, label %143, label %155
143: ; preds = %130
%144 = load i64, ptr %3, align 8
%145 = load i32, ptr %4, align 4
%146 = sext i32 %145 to i64
%147 = icmp sgt i64 %144, %146
br i1 %147, label %148, label %150
148: ; preds = %143
%149 = load i64, ptr %3, align 8
br label %153
150: ; preds = %143
%151 = load i32, ptr %4, align 4
%152 = sext i32 %151 to i64
br label %153
153: ; preds = %150, %148
%154 = phi i64 [ %149, %148 ], [ %152, %150 ]
br label %175
155: ; preds = %130
%156 = load i64, ptr %3, align 8
%157 = icmp ult i64 %156, 0
br i1 %157, label %158, label %161
158: ; preds = %155
%159 = load i32, ptr %4, align 4
%160 = sext i32 %159 to i64
br label %173
161: ; preds = %155
%162 = load i64, ptr %3, align 8
%163 = load i32, ptr %4, align 4
%164 = sext i32 %163 to i64
%165 = icmp ugt i64 %162, %164
br i1 %165, label %166, label %168
166: ; preds = %161
%167 = load i64, ptr %3, align 8
br label %171
168: ; preds = %161
%169 = load i32, ptr %4, align 4
%170 = sext i32 %169 to i64
br label %171
171: ; preds = %168, %166
%172 = phi i64 [ %167, %166 ], [ %170, %168 ]
br label %173
173: ; preds = %171, %158
%174 = phi i64 [ %160, %158 ], [ %172, %171 ]
br label %175
175: ; preds = %173, %153
%176 = phi i64 [ %154, %153 ], [ %174, %173 ]
br label %223
177: ; preds = %115
%178 = load i32, ptr %4, align 4
%179 = load i32, ptr %4, align 4
%180 = sub nsw i32 %178, %179
%181 = load i32, ptr %4, align 4
%182 = load i32, ptr %4, align 4
%183 = sub nsw i32 %181, %182
%184 = add nsw i32 %183, 1
%185 = sub nsw i32 %180, %184
%186 = load i32, ptr %4, align 4
%187 = load i32, ptr %4, align 4
%188 = sub nsw i32 %186, %187
%189 = icmp slt i32 %185, %188
br i1 %189, label %190, label %209
190: ; preds = %177
%191 = load i32, ptr %4, align 4
%192 = icmp slt i32 %191, 0
br i1 %192, label %193, label %195
193: ; preds = %190
%194 = load i64, ptr %3, align 8
br label %207
195: ; preds = %190
%196 = load i64, ptr %3, align 8
%197 = load i32, ptr %4, align 4
%198 = sext i32 %197 to i64
%199 = icmp ugt i64 %196, %198
br i1 %199, label %200, label %202
200: ; preds = %195
%201 = load i64, ptr %3, align 8
br label %205
202: ; preds = %195
%203 = load i32, ptr %4, align 4
%204 = sext i32 %203 to i64
br label %205
205: ; preds = %202, %200
%206 = phi i64 [ %201, %200 ], [ %204, %202 ]
br label %207
207: ; preds = %205, %193
%208 = phi i64 [ %194, %193 ], [ %206, %205 ]
br label %221
209: ; preds = %177
%210 = load i64, ptr %3, align 8
%211 = load i32, ptr %4, align 4
%212 = sext i32 %211 to i64
%213 = icmp ugt i64 %210, %212
br i1 %213, label %214, label %216
214: ; preds = %209
%215 = load i64, ptr %3, align 8
br label %219
216: ; preds = %209
%217 = load i32, ptr %4, align 4
%218 = sext i32 %217 to i64
br label %219
219: ; preds = %216, %214
%220 = phi i64 [ %215, %214 ], [ %218, %216 ]
br label %221
221: ; preds = %219, %207
%222 = phi i64 [ %208, %207 ], [ %220, %219 ]
br label %223
223: ; preds = %221, %175
%224 = phi i64 [ %176, %175 ], [ %222, %221 ]
%225 = load i64, ptr %3, align 8
%226 = load i64, ptr %3, align 8
%227 = sub i64 %225, %226
%228 = load i64, ptr %3, align 8
%229 = load i64, ptr %3, align 8
%230 = sub i64 %228, %229
%231 = add i64 %230, 1
%232 = sub i64 %227, %231
%233 = load i64, ptr %3, align 8
%234 = load i64, ptr %3, align 8
%235 = sub i64 %233, %234
%236 = icmp ult i64 %232, %235
br i1 %236, label %237, label %284
237: ; preds = %223
%238 = load i32, ptr %4, align 4
%239 = load i32, ptr %4, align 4
%240 = sub nsw i32 %238, %239
%241 = load i32, ptr %4, align 4
%242 = load i32, ptr %4, align 4
%243 = sub nsw i32 %241, %242
%244 = add nsw i32 %243, 1
%245 = sub nsw i32 %240, %244
%246 = load i32, ptr %4, align 4
%247 = load i32, ptr %4, align 4
%248 = sub nsw i32 %246, %247
%249 = icmp slt i32 %245, %248
br i1 %249, label %250, label %262
250: ; preds = %237
%251 = load i64, ptr %3, align 8
%252 = load i32, ptr %4, align 4
%253 = sext i32 %252 to i64
%254 = icmp sgt i64 %251, %253
br i1 %254, label %255, label %257
255: ; preds = %250
%256 = load i64, ptr %3, align 8
br label %260
257: ; preds = %250
%258 = load i32, ptr %4, align 4
%259 = sext i32 %258 to i64
br label %260
260: ; preds = %257, %255
%261 = phi i64 [ %256, %255 ], [ %259, %257 ]
br label %282
262: ; preds = %237
%263 = load i64, ptr %3, align 8
%264 = icmp ult i64 %263, 0
br i1 %264, label %265, label %268
265: ; preds = %262
%266 = load i32, ptr %4, align 4
%267 = sext i32 %266 to i64
br label %280
268: ; preds = %262
%269 = load i64, ptr %3, align 8
%270 = load i32, ptr %4, align 4
%271 = sext i32 %270 to i64
%272 = icmp ugt i64 %269, %271
br i1 %272, label %273, label %275
273: ; preds = %268
%274 = load i64, ptr %3, align 8
br label %278
275: ; preds = %268
%276 = load i32, ptr %4, align 4
%277 = sext i32 %276 to i64
br label %278
278: ; preds = %275, %273
%279 = phi i64 [ %274, %273 ], [ %277, %275 ]
br label %280
280: ; preds = %278, %265
%281 = phi i64 [ %267, %265 ], [ %279, %278 ]
br label %282
282: ; preds = %280, %260
%283 = phi i64 [ %261, %260 ], [ %281, %280 ]
br label %330
284: ; preds = %223
%285 = load i32, ptr %4, align 4
%286 = load i32, ptr %4, align 4
%287 = sub nsw i32 %285, %286
%288 = load i32, ptr %4, align 4
%289 = load i32, ptr %4, align 4
%290 = sub nsw i32 %288, %289
%291 = add nsw i32 %290, 1
%292 = sub nsw i32 %287, %291
%293 = load i32, ptr %4, align 4
%294 = load i32, ptr %4, align 4
%295 = sub nsw i32 %293, %294
%296 = icmp slt i32 %292, %295
br i1 %296, label %297, label %316
297: ; preds = %284
%298 = load i32, ptr %4, align 4
%299 = icmp slt i32 %298, 0
br i1 %299, label %300, label %302
300: ; preds = %297
%301 = load i64, ptr %3, align 8
br label %314
302: ; preds = %297
%303 = load i64, ptr %3, align 8
%304 = load i32, ptr %4, align 4
%305 = sext i32 %304 to i64
%306 = icmp ugt i64 %303, %305
br i1 %306, label %307, label %309
307: ; preds = %302
%308 = load i64, ptr %3, align 8
br label %312
309: ; preds = %302
%310 = load i32, ptr %4, align 4
%311 = sext i32 %310 to i64
br label %312
312: ; preds = %309, %307
%313 = phi i64 [ %308, %307 ], [ %311, %309 ]
br label %314
314: ; preds = %312, %300
%315 = phi i64 [ %301, %300 ], [ %313, %312 ]
br label %328
316: ; preds = %284
%317 = load i64, ptr %3, align 8
%318 = load i32, ptr %4, align 4
%319 = sext i32 %318 to i64
%320 = icmp ugt i64 %317, %319
br i1 %320, label %321, label %323
321: ; preds = %316
%322 = load i64, ptr %3, align 8
br label %326
323: ; preds = %316
%324 = load i32, ptr %4, align 4
%325 = sext i32 %324 to i64
br label %326
326: ; preds = %323, %321
%327 = phi i64 [ %322, %321 ], [ %325, %323 ]
br label %328
328: ; preds = %326, %314
%329 = phi i64 [ %315, %314 ], [ %327, %326 ]
br label %330
330: ; preds = %328, %282
%331 = phi i64 [ %283, %282 ], [ %329, %328 ]
%332 = load i32, ptr %4, align 4
%333 = sext i32 %332 to i64
%334 = call i32 @printf(ptr noundef @.str, i32 noundef 614, i64 noundef %116, i32 noundef %117, i64 noundef %224, i64 noundef %331, i64 noundef %333)
br label %335
335: ; preds = %330, %110
%336 = load i64, ptr %3, align 8
%337 = load i64, ptr %3, align 8
%338 = sub i64 %336, %337
%339 = load i64, ptr %3, align 8
%340 = load i64, ptr %3, align 8
%341 = sub i64 %339, %340
%342 = add i64 %341, 1
%343 = sub i64 %338, %342
%344 = load i64, ptr %3, align 8
%345 = load i64, ptr %3, align 8
%346 = sub i64 %344, %345
%347 = icmp ult i64 %343, %346
br i1 %347, label %348, label %395
348: ; preds = %335
%349 = load i32, ptr %4, align 4
%350 = load i32, ptr %4, align 4
%351 = sub nsw i32 %349, %350
%352 = load i32, ptr %4, align 4
%353 = load i32, ptr %4, align 4
%354 = sub nsw i32 %352, %353
%355 = add nsw i32 %354, 1
%356 = sub nsw i32 %351, %355
%357 = load i32, ptr %4, align 4
%358 = load i32, ptr %4, align 4
%359 = sub nsw i32 %357, %358
%360 = icmp slt i32 %356, %359
br i1 %360, label %361, label %373
361: ; preds = %348
%362 = load i64, ptr %3, align 8
%363 = load i32, ptr %4, align 4
%364 = sext i32 %363 to i64
%365 = icmp sgt i64 %362, %364
br i1 %365, label %366, label %368
366: ; preds = %361
%367 = load i64, ptr %3, align 8
br label %371
368: ; preds = %361
%369 = load i32, ptr %4, align 4
%370 = sext i32 %369 to i64
br label %371
371: ; preds = %368, %366
%372 = phi i64 [ %367, %366 ], [ %370, %368 ]
br label %393
373: ; preds = %348
%374 = load i64, ptr %3, align 8
%375 = icmp ult i64 %374, 0
br i1 %375, label %376, label %379
376: ; preds = %373
%377 = load i32, ptr %4, align 4
%378 = sext i32 %377 to i64
br label %391
379: ; preds = %373
%380 = load i64, ptr %3, align 8
%381 = load i32, ptr %4, align 4
%382 = sext i32 %381 to i64
%383 = icmp ugt i64 %380, %382
br i1 %383, label %384, label %386
384: ; preds = %379
%385 = load i64, ptr %3, align 8
br label %389
386: ; preds = %379
%387 = load i32, ptr %4, align 4
%388 = sext i32 %387 to i64
br label %389
389: ; preds = %386, %384
%390 = phi i64 [ %385, %384 ], [ %388, %386 ]
br label %391
391: ; preds = %389, %376
%392 = phi i64 [ %378, %376 ], [ %390, %389 ]
br label %393
393: ; preds = %391, %371
%394 = phi i64 [ %372, %371 ], [ %392, %391 ]
br label %441
395: ; preds = %335
%396 = load i32, ptr %4, align 4
%397 = load i32, ptr %4, align 4
%398 = sub nsw i32 %396, %397
%399 = load i32, ptr %4, align 4
%400 = load i32, ptr %4, align 4
%401 = sub nsw i32 %399, %400
%402 = add nsw i32 %401, 1
%403 = sub nsw i32 %398, %402
%404 = load i32, ptr %4, align 4
%405 = load i32, ptr %4, align 4
%406 = sub nsw i32 %404, %405
%407 = icmp slt i32 %403, %406
br i1 %407, label %408, label %427
408: ; preds = %395
%409 = load i32, ptr %4, align 4
%410 = icmp slt i32 %409, 0
br i1 %410, label %411, label %413
411: ; preds = %408
%412 = load i64, ptr %3, align 8
br label %425
413: ; preds = %408
%414 = load i64, ptr %3, align 8
%415 = load i32, ptr %4, align 4
%416 = sext i32 %415 to i64
%417 = icmp ugt i64 %414, %416
br i1 %417, label %418, label %420
418: ; preds = %413
%419 = load i64, ptr %3, align 8
br label %423
420: ; preds = %413
%421 = load i32, ptr %4, align 4
%422 = sext i32 %421 to i64
br label %423
423: ; preds = %420, %418
%424 = phi i64 [ %419, %418 ], [ %422, %420 ]
br label %425
425: ; preds = %423, %411
%426 = phi i64 [ %412, %411 ], [ %424, %423 ]
br label %439
427: ; preds = %395
%428 = load i64, ptr %3, align 8
%429 = load i32, ptr %4, align 4
%430 = sext i32 %429 to i64
%431 = icmp ugt i64 %428, %430
br i1 %431, label %432, label %434
432: ; preds = %427
%433 = load i64, ptr %3, align 8
br label %437
434: ; preds = %427
%435 = load i32, ptr %4, align 4
%436 = sext i32 %435 to i64
br label %437
437: ; preds = %434, %432
%438 = phi i64 [ %433, %432 ], [ %436, %434 ]
br label %439
439: ; preds = %437, %425
%440 = phi i64 [ %426, %425 ], [ %438, %437 ]
br label %441
441: ; preds = %439, %393
%442 = phi i64 [ %394, %393 ], [ %440, %439 ]
%443 = load i64, ptr %3, align 8
%444 = icmp ne i64 %442, %443
br i1 %444, label %445, label %664
445: ; preds = %441
%446 = load i64, ptr %3, align 8
%447 = load i32, ptr %4, align 4
%448 = load i64, ptr %3, align 8
%449 = load i64, ptr %3, align 8
%450 = sub i64 %448, %449
%451 = load i64, ptr %3, align 8
%452 = load i64, ptr %3, align 8
%453 = sub i64 %451, %452
%454 = add i64 %453, 1
%455 = sub i64 %450, %454
%456 = load i64, ptr %3, align 8
%457 = load i64, ptr %3, align 8
%458 = sub i64 %456, %457
%459 = icmp ult i64 %455, %458
br i1 %459, label %460, label %507
460: ; preds = %445
%461 = load i32, ptr %4, align 4
%462 = load i32, ptr %4, align 4
%463 = sub nsw i32 %461, %462
%464 = load i32, ptr %4, align 4
%465 = load i32, ptr %4, align 4
%466 = sub nsw i32 %464, %465
%467 = add nsw i32 %466, 1
%468 = sub nsw i32 %463, %467
%469 = load i32, ptr %4, align 4
%470 = load i32, ptr %4, align 4
%471 = sub nsw i32 %469, %470
%472 = icmp slt i32 %468, %471
br i1 %472, label %473, label %485
473: ; preds = %460
%474 = load i64, ptr %3, align 8
%475 = load i32, ptr %4, align 4
%476 = sext i32 %475 to i64
%477 = icmp sgt i64 %474, %476
br i1 %477, label %478, label %480
478: ; preds = %473
%479 = load i64, ptr %3, align 8
br label %483
480: ; preds = %473
%481 = load i32, ptr %4, align 4
%482 = sext i32 %481 to i64
br label %483
483: ; preds = %480, %478
%484 = phi i64 [ %479, %478 ], [ %482, %480 ]
br label %505
485: ; preds = %460
%486 = load i64, ptr %3, align 8
%487 = icmp ult i64 %486, 0
br i1 %487, label %488, label %491
488: ; preds = %485
%489 = load i32, ptr %4, align 4
%490 = sext i32 %489 to i64
br label %503
491: ; preds = %485
%492 = load i64, ptr %3, align 8
%493 = load i32, ptr %4, align 4
%494 = sext i32 %493 to i64
%495 = icmp ugt i64 %492, %494
br i1 %495, label %496, label %498
496: ; preds = %491
%497 = load i64, ptr %3, align 8
br label %501
498: ; preds = %491
%499 = load i32, ptr %4, align 4
%500 = sext i32 %499 to i64
br label %501
501: ; preds = %498, %496
%502 = phi i64 [ %497, %496 ], [ %500, %498 ]
br label %503
503: ; preds = %501, %488
%504 = phi i64 [ %490, %488 ], [ %502, %501 ]
br label %505
505: ; preds = %503, %483
%506 = phi i64 [ %484, %483 ], [ %504, %503 ]
br label %553
507: ; preds = %445
%508 = load i32, ptr %4, align 4
%509 = load i32, ptr %4, align 4
%510 = sub nsw i32 %508, %509
%511 = load i32, ptr %4, align 4
%512 = load i32, ptr %4, align 4
%513 = sub nsw i32 %511, %512
%514 = add nsw i32 %513, 1
%515 = sub nsw i32 %510, %514
%516 = load i32, ptr %4, align 4
%517 = load i32, ptr %4, align 4
%518 = sub nsw i32 %516, %517
%519 = icmp slt i32 %515, %518
br i1 %519, label %520, label %539
520: ; preds = %507
%521 = load i32, ptr %4, align 4
%522 = icmp slt i32 %521, 0
br i1 %522, label %523, label %525
523: ; preds = %520
%524 = load i64, ptr %3, align 8
br label %537
525: ; preds = %520
%526 = load i64, ptr %3, align 8
%527 = load i32, ptr %4, align 4
%528 = sext i32 %527 to i64
%529 = icmp ugt i64 %526, %528
br i1 %529, label %530, label %532
530: ; preds = %525
%531 = load i64, ptr %3, align 8
br label %535
532: ; preds = %525
%533 = load i32, ptr %4, align 4
%534 = sext i32 %533 to i64
br label %535
535: ; preds = %532, %530
%536 = phi i64 [ %531, %530 ], [ %534, %532 ]
br label %537
537: ; preds = %535, %523
%538 = phi i64 [ %524, %523 ], [ %536, %535 ]
br label %551
539: ; preds = %507
%540 = load i64, ptr %3, align 8
%541 = load i32, ptr %4, align 4
%542 = sext i32 %541 to i64
%543 = icmp ugt i64 %540, %542
br i1 %543, label %544, label %546
544: ; preds = %539
%545 = load i64, ptr %3, align 8
br label %549
546: ; preds = %539
%547 = load i32, ptr %4, align 4
%548 = sext i32 %547 to i64
br label %549
549: ; preds = %546, %544
%550 = phi i64 [ %545, %544 ], [ %548, %546 ]
br label %551
551: ; preds = %549, %537
%552 = phi i64 [ %538, %537 ], [ %550, %549 ]
br label %553
553: ; preds = %551, %505
%554 = phi i64 [ %506, %505 ], [ %552, %551 ]
%555 = load i64, ptr %3, align 8
%556 = load i64, ptr %3, align 8
%557 = sub i64 %555, %556
%558 = load i64, ptr %3, align 8
%559 = load i64, ptr %3, align 8
%560 = sub i64 %558, %559
%561 = add i64 %560, 1
%562 = sub i64 %557, %561
%563 = load i64, ptr %3, align 8
%564 = load i64, ptr %3, align 8
%565 = sub i64 %563, %564
%566 = icmp ult i64 %562, %565
br i1 %566, label %567, label %614
567: ; preds = %553
%568 = load i32, ptr %4, align 4
%569 = load i32, ptr %4, align 4
%570 = sub nsw i32 %568, %569
%571 = load i32, ptr %4, align 4
%572 = load i32, ptr %4, align 4
%573 = sub nsw i32 %571, %572
%574 = add nsw i32 %573, 1
%575 = sub nsw i32 %570, %574
%576 = load i32, ptr %4, align 4
%577 = load i32, ptr %4, align 4
%578 = sub nsw i32 %576, %577
%579 = icmp slt i32 %575, %578
br i1 %579, label %580, label %592
580: ; preds = %567
%581 = load i64, ptr %3, align 8
%582 = load i32, ptr %4, align 4
%583 = sext i32 %582 to i64
%584 = icmp sgt i64 %581, %583
br i1 %584, label %585, label %587
585: ; preds = %580
%586 = load i64, ptr %3, align 8
br label %590
587: ; preds = %580
%588 = load i32, ptr %4, align 4
%589 = sext i32 %588 to i64
br label %590
590: ; preds = %587, %585
%591 = phi i64 [ %586, %585 ], [ %589, %587 ]
br label %612
592: ; preds = %567
%593 = load i64, ptr %3, align 8
%594 = icmp ult i64 %593, 0
br i1 %594, label %595, label %598
595: ; preds = %592
%596 = load i32, ptr %4, align 4
%597 = sext i32 %596 to i64
br label %610
598: ; preds = %592
%599 = load i64, ptr %3, align 8
%600 = load i32, ptr %4, align 4
%601 = sext i32 %600 to i64
%602 = icmp ugt i64 %599, %601
br i1 %602, label %603, label %605
603: ; preds = %598
%604 = load i64, ptr %3, align 8
br label %608
605: ; preds = %598
%606 = load i32, ptr %4, align 4
%607 = sext i32 %606 to i64
br label %608
608: ; preds = %605, %603
%609 = phi i64 [ %604, %603 ], [ %607, %605 ]
br label %610
610: ; preds = %608, %595
%611 = phi i64 [ %597, %595 ], [ %609, %608 ]
br label %612
612: ; preds = %610, %590
%613 = phi i64 [ %591, %590 ], [ %611, %610 ]
br label %660
614: ; preds = %553
%615 = load i32, ptr %4, align 4
%616 = load i32, ptr %4, align 4
%617 = sub nsw i32 %615, %616
%618 = load i32, ptr %4, align 4
%619 = load i32, ptr %4, align 4
%620 = sub nsw i32 %618, %619
%621 = add nsw i32 %620, 1
%622 = sub nsw i32 %617, %621
%623 = load i32, ptr %4, align 4
%624 = load i32, ptr %4, align 4
%625 = sub nsw i32 %623, %624
%626 = icmp slt i32 %622, %625
br i1 %626, label %627, label %646
627: ; preds = %614
%628 = load i32, ptr %4, align 4
%629 = icmp slt i32 %628, 0
br i1 %629, label %630, label %632
630: ; preds = %627
%631 = load i64, ptr %3, align 8
br label %644
632: ; preds = %627
%633 = load i64, ptr %3, align 8
%634 = load i32, ptr %4, align 4
%635 = sext i32 %634 to i64
%636 = icmp ugt i64 %633, %635
br i1 %636, label %637, label %639
637: ; preds = %632
%638 = load i64, ptr %3, align 8
br label %642
639: ; preds = %632
%640 = load i32, ptr %4, align 4
%641 = sext i32 %640 to i64
br label %642
642: ; preds = %639, %637
%643 = phi i64 [ %638, %637 ], [ %641, %639 ]
br label %644
644: ; preds = %642, %630
%645 = phi i64 [ %631, %630 ], [ %643, %642 ]
br label %658
646: ; preds = %614
%647 = load i64, ptr %3, align 8
%648 = load i32, ptr %4, align 4
%649 = sext i32 %648 to i64
%650 = icmp ugt i64 %647, %649
br i1 %650, label %651, label %653
651: ; preds = %646
%652 = load i64, ptr %3, align 8
br label %656
653: ; preds = %646
%654 = load i32, ptr %4, align 4
%655 = sext i32 %654 to i64
br label %656
656: ; preds = %653, %651
%657 = phi i64 [ %652, %651 ], [ %655, %653 ]
br label %658
658: ; preds = %656, %644
%659 = phi i64 [ %645, %644 ], [ %657, %656 ]
br label %660
660: ; preds = %658, %612
%661 = phi i64 [ %613, %612 ], [ %659, %658 ]
%662 = load i64, ptr %3, align 8
%663 = call i32 @printf(ptr noundef @.str.1, i32 noundef 617, i64 noundef %446, i32 noundef %447, i64 noundef %554, i64 noundef %661, i64 noundef %662)
br label %664
664: ; preds = %660, %441
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i64 noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ye11ra9.c'
source_filename = "/tmp/tmp_ye11ra9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Will compute for the %dth prime...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @compute_prime(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 2, ptr %3, align 4
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %8, align 4
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
br label %13
13: ; preds = %1, %42
store i32 1, ptr %7, align 4
store i32 2, ptr %6, align 4
br label %14
14: ; preds = %27, %13
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = mul nsw i32 %15, %16
%18 = load i32, ptr %3, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %30
20: ; preds = %14
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %6, align 4
%23 = srem i32 %21, %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %20
store i32 0, ptr %7, align 4
br label %30
26: ; preds = %20
br label %27
27: ; preds = %26
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %14, !llvm.loop !6
30: ; preds = %25, %14
%31 = load i32, ptr %7, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %42
33: ; preds = %30
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %4, align 4
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = inttoptr i64 %39 to ptr
ret ptr %40
41: ; preds = %33
br label %42
42: ; preds = %41, %30
%43 = load i32, ptr %3, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %3, align 4
br label %13
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ye11ra9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Will compute for the %dth prime...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @compute_prime(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 2, ptr %3, align 4
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %8, align 4
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
br label %13
13: ; preds = %46, %1
store i32 1, ptr %7, align 4
store i32 2, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = mul nsw i32 %14, %15
%17 = load i32, ptr %3, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %13
br label %19
19: ; preds = %.lr.ph, %26
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %6, align 4
%22 = srem i32 %20, %21
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 0, ptr %7, align 4
br label %34
25: ; preds = %19
br label %26
26: ; preds = %25
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = mul nsw i32 %29, %30
%32 = load i32, ptr %3, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %19, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %26
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %13
br label %34
34: ; preds = %.loopexit, %24
%35 = load i32, ptr %7, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %46
37: ; preds = %34
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, -1
store i32 %39, ptr %4, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %37
%42 = load i32, ptr %3, align 4
%43 = sext i32 %42 to i64
%44 = inttoptr i64 %43 to ptr
ret ptr %44
45: ; preds = %37
br label %46
46: ; preds = %45, %34
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %3, align 4
br label %13
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3acx9nzu.c'
source_filename = "/tmp/tmp3acx9nzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.gpioevent_request = type { i32, i32, ptr, i32, ptr, ptr }
%struct.gpiohandle_data = type { i32, i32, ptr, i32, ptr, ptr }
%struct.gpioevent_data = type { i32, i32 }
@.str = private unnamed_addr constant [8 x i8] c"/dev/%s\00", align 1
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"Failed to open %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"gpio-event-mon\00", align 1
@GPIO_GET_LINEEVENT_IOCTL = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [38 x i8] c"Failed to issue GET EVENT IOCTL (%d)\0A\00", align 1
@GPIOHANDLE_GET_LINE_VALUES_IOCTL = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [55 x i8] c"Failed to issue GPIOHANDLE GET LINE VALUES IOCTL (%d)\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [26 x i8] c"Monitoring line %d on %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Initial line value: %d\0A\00", align 1
@EAGAIN = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [19 x i8] c"nothing available\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"Failed to read event (%d)\0A\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"Reading event failed\0A\00", align 1
@EIO = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [18 x i8] c"GPIO EVENT %llu: \00", align 1
@.str.11 = private unnamed_addr constant [12 x i8] c"rising edge\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"falling edge\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"unknown event\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.15 = private unnamed_addr constant [43 x i8] c"Failed to close GPIO character device file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @monitor_device(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca %struct.gpioevent_request, align 8
%13 = alloca %struct.gpiohandle_data, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca %struct.gpioevent_data, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 0, ptr %17, align 4
%19 = load ptr, ptr %7, align 8
%20 = call i32 @asprintf(ptr noundef %14, ptr noundef @.str, ptr noundef %19)
store i32 %20, ptr %16, align 4
%21 = load i32, ptr %16, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %5
%24 = load i32, ptr @ENOMEM, align 4
%25 = sub nsw i32 0, %24
store i32 %25, ptr %6, align 4
br label %149
26: ; preds = %5
%27 = load ptr, ptr %14, align 8
%28 = call i32 @open(ptr noundef %27, i32 noundef 0)
store i32 %28, ptr %15, align 4
%29 = load i32, ptr %15, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %37
31: ; preds = %26
%32 = load i32, ptr @errno, align 4
%33 = sub nsw i32 0, %32
store i32 %33, ptr %16, align 4
%34 = load i32, ptr @stderr, align 4
%35 = load ptr, ptr %14, align 8
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %34, ptr noundef @.str.1, ptr noundef %35)
br label %145
37: ; preds = %26
%38 = load i32, ptr %8, align 4
%39 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 0
store i32 %38, ptr %39, align 8
%40 = load ptr, ptr %9, align 8
%41 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 5
store ptr %40, ptr %41, align 8
%42 = load ptr, ptr %10, align 8
%43 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 4
store ptr %42, ptr %43, align 8
%44 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 3
%45 = load i32, ptr %44, align 8
%46 = call i32 @strcpy(i32 noundef %45, ptr noundef @.str.2)
%47 = load i32, ptr %15, align 4
%48 = load i32, ptr @GPIO_GET_LINEEVENT_IOCTL, align 4
%49 = call i32 @ioctl(i32 noundef %47, i32 noundef %48, ptr noundef %12)
store i32 %49, ptr %16, align 4
%50 = load i32, ptr %16, align 4
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %58
52: ; preds = %37
%53 = load i32, ptr @errno, align 4
%54 = sub nsw i32 0, %53
store i32 %54, ptr %16, align 4
%55 = load i32, ptr @stderr, align 4
%56 = load i32, ptr %16, align 4
%57 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %55, ptr noundef @.str.3, i32 noundef %56)
br label %138
58: ; preds = %37
%59 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = load i32, ptr @GPIOHANDLE_GET_LINE_VALUES_IOCTL, align 4
%62 = call i32 @ioctl(i32 noundef %60, i32 noundef %61, ptr noundef %13)
store i32 %62, ptr %16, align 4
%63 = load i32, ptr %16, align 4
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %71
65: ; preds = %58
%66 = load i32, ptr @errno, align 4
%67 = sub nsw i32 0, %66
store i32 %67, ptr %16, align 4
%68 = load i32, ptr @stderr, align 4
%69 = load i32, ptr %16, align 4
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %68, ptr noundef @.str.4, i32 noundef %69)
br label %138
71: ; preds = %58
%72 = load i32, ptr @stdout, align 4
%73 = load i32, ptr %8, align 4
%74 = load ptr, ptr %7, align 8
%75 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %72, ptr noundef @.str.5, i32 noundef %73, ptr noundef %74)
%76 = load i32, ptr @stdout, align 4
%77 = getelementptr inbounds %struct.gpiohandle_data, ptr %13, i32 0, i32 2
%78 = load ptr, ptr %77, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 0
%80 = load i32, ptr %79, align 4
%81 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %76, ptr noundef @.str.6, i32 noundef %80)
br label %82
82: ; preds = %71, %93, %136
%83 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 1
%84 = load i32, ptr %83, align 4
%85 = call i32 @read(i32 noundef %84, ptr noundef %18, i32 noundef 8)
store i32 %85, ptr %16, align 4
%86 = load i32, ptr %16, align 4
%87 = icmp eq i32 %86, -1
br i1 %87, label %88, label %102
88: ; preds = %82
%89 = load i32, ptr @errno, align 4
%90 = load i32, ptr @EAGAIN, align 4
%91 = sub nsw i32 0, %90
%92 = icmp eq i32 %89, %91
br i1 %92, label %93, label %96
93: ; preds = %88
%94 = load i32, ptr @stderr, align 4
%95 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %94, ptr noundef @.str.7)
br label %82
96: ; preds = %88
%97 = load i32, ptr @errno, align 4
%98 = sub nsw i32 0, %97
store i32 %98, ptr %16, align 4
%99 = load i32, ptr @stderr, align 4
%100 = load i32, ptr %16, align 4
%101 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %99, ptr noundef @.str.8, i32 noundef %100)
br label %137
102: ; preds = %82
%103 = load i32, ptr %16, align 4
%104 = sext i32 %103 to i64
%105 = icmp ne i64 %104, 8
br i1 %105, label %106, label %111
106: ; preds = %102
%107 = load i32, ptr @stderr, align 4
%108 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %107, ptr noundef @.str.9)
%109 = load i32, ptr @EIO, align 4
%110 = sub nsw i32 0, %109
store i32 %110, ptr %16, align 4
br label %137
111: ; preds = %102
%112 = load i32, ptr @stdout, align 4
%113 = getelementptr inbounds %struct.gpioevent_data, ptr %18, i32 0, i32 1
%114 = load i32, ptr %113, align 4
%115 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %112, ptr noundef @.str.10, i32 noundef %114)
%116 = getelementptr inbounds %struct.gpioevent_data, ptr %18, i32 0, i32 0
%117 = load i32, ptr %116, align 4
switch i32 %117, label %124 [
i32 128, label %118
i32 129, label %121
]
118: ; preds = %111
%119 = load i32, ptr @stdout, align 4
%120 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %119, ptr noundef @.str.11)
br label %127
121: ; preds = %111
%122 = load i32, ptr @stdout, align 4
%123 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %122, ptr noundef @.str.12)
br label %127
124: ; preds = %111
%125 = load i32, ptr @stdout, align 4
%126 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %125, ptr noundef @.str.13)
br label %127
127: ; preds = %124, %121, %118
%128 = load i32, ptr @stdout, align 4
%129 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %128, ptr noundef @.str.14)
%130 = load i32, ptr %17, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %17, align 4
%132 = load i32, ptr %17, align 4
%133 = load i32, ptr %11, align 4
%134 = icmp eq i32 %132, %133
br i1 %134, label %135, label %136
135: ; preds = %127
br label %137
136: ; preds = %127
br label %82
137: ; preds = %135, %106, %96
br label %138
138: ; preds = %137, %65, %52
%139 = load i32, ptr %15, align 4
%140 = call i32 @close(i32 noundef %139)
%141 = icmp eq i32 %140, -1
br i1 %141, label %142, label %144
142: ; preds = %138
%143 = call i32 @perror(ptr noundef @.str.15)
br label %144
144: ; preds = %142, %138
br label %145
145: ; preds = %144, %31
%146 = load ptr, ptr %14, align 8
%147 = call i32 @free(ptr noundef %146)
%148 = load i32, ptr %16, align 4
store i32 %148, ptr %6, align 4
br label %149
149: ; preds = %145, %23
%150 = load i32, ptr %6, align 4
ret i32 %150
}
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @strcpy(i32 noundef, ptr noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3acx9nzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.gpioevent_request = type { i32, i32, ptr, i32, ptr, ptr }
%struct.gpiohandle_data = type { i32, i32, ptr, i32, ptr, ptr }
%struct.gpioevent_data = type { i32, i32 }
@.str = private unnamed_addr constant [8 x i8] c"/dev/%s\00", align 1
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"Failed to open %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"gpio-event-mon\00", align 1
@GPIO_GET_LINEEVENT_IOCTL = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [38 x i8] c"Failed to issue GET EVENT IOCTL (%d)\0A\00", align 1
@GPIOHANDLE_GET_LINE_VALUES_IOCTL = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [55 x i8] c"Failed to issue GPIOHANDLE GET LINE VALUES IOCTL (%d)\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [26 x i8] c"Monitoring line %d on %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Initial line value: %d\0A\00", align 1
@EAGAIN = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [19 x i8] c"nothing available\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"Failed to read event (%d)\0A\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"Reading event failed\0A\00", align 1
@EIO = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [18 x i8] c"GPIO EVENT %llu: \00", align 1
@.str.11 = private unnamed_addr constant [12 x i8] c"rising edge\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"falling edge\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"unknown event\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.15 = private unnamed_addr constant [43 x i8] c"Failed to close GPIO character device file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @monitor_device(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca %struct.gpioevent_request, align 8
%13 = alloca %struct.gpiohandle_data, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca %struct.gpioevent_data, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 0, ptr %17, align 4
%19 = load ptr, ptr %7, align 8
%20 = call i32 @asprintf(ptr noundef %14, ptr noundef @.str, ptr noundef %19)
store i32 %20, ptr %16, align 4
%21 = load i32, ptr %16, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %5
%24 = load i32, ptr @ENOMEM, align 4
%25 = sub nsw i32 0, %24
store i32 %25, ptr %6, align 4
br label %149
26: ; preds = %5
%27 = load ptr, ptr %14, align 8
%28 = call i32 @open(ptr noundef %27, i32 noundef 0)
store i32 %28, ptr %15, align 4
%29 = load i32, ptr %15, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %37
31: ; preds = %26
%32 = load i32, ptr @errno, align 4
%33 = sub nsw i32 0, %32
store i32 %33, ptr %16, align 4
%34 = load i32, ptr @stderr, align 4
%35 = load ptr, ptr %14, align 8
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %34, ptr noundef @.str.1, ptr noundef %35)
br label %145
37: ; preds = %26
%38 = load i32, ptr %8, align 4
%39 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 0
store i32 %38, ptr %39, align 8
%40 = load ptr, ptr %9, align 8
%41 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 5
store ptr %40, ptr %41, align 8
%42 = load ptr, ptr %10, align 8
%43 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 4
store ptr %42, ptr %43, align 8
%44 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 3
%45 = load i32, ptr %44, align 8
%46 = call i32 @strcpy(i32 noundef %45, ptr noundef @.str.2)
%47 = load i32, ptr %15, align 4
%48 = load i32, ptr @GPIO_GET_LINEEVENT_IOCTL, align 4
%49 = call i32 @ioctl(i32 noundef %47, i32 noundef %48, ptr noundef %12)
store i32 %49, ptr %16, align 4
%50 = load i32, ptr %16, align 4
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %58
52: ; preds = %37
%53 = load i32, ptr @errno, align 4
%54 = sub nsw i32 0, %53
store i32 %54, ptr %16, align 4
%55 = load i32, ptr @stderr, align 4
%56 = load i32, ptr %16, align 4
%57 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %55, ptr noundef @.str.3, i32 noundef %56)
br label %138
58: ; preds = %37
%59 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = load i32, ptr @GPIOHANDLE_GET_LINE_VALUES_IOCTL, align 4
%62 = call i32 @ioctl(i32 noundef %60, i32 noundef %61, ptr noundef %13)
store i32 %62, ptr %16, align 4
%63 = load i32, ptr %16, align 4
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %71
65: ; preds = %58
%66 = load i32, ptr @errno, align 4
%67 = sub nsw i32 0, %66
store i32 %67, ptr %16, align 4
%68 = load i32, ptr @stderr, align 4
%69 = load i32, ptr %16, align 4
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %68, ptr noundef @.str.4, i32 noundef %69)
br label %138
71: ; preds = %58
%72 = load i32, ptr @stdout, align 4
%73 = load i32, ptr %8, align 4
%74 = load ptr, ptr %7, align 8
%75 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %72, ptr noundef @.str.5, i32 noundef %73, ptr noundef %74)
%76 = load i32, ptr @stdout, align 4
%77 = getelementptr inbounds %struct.gpiohandle_data, ptr %13, i32 0, i32 2
%78 = load ptr, ptr %77, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 0
%80 = load i32, ptr %79, align 4
%81 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %76, ptr noundef @.str.6, i32 noundef %80)
br label %82
82: ; preds = %.backedge, %71
%83 = getelementptr inbounds %struct.gpioevent_request, ptr %12, i32 0, i32 1
%84 = load i32, ptr %83, align 4
%85 = call i32 @read(i32 noundef %84, ptr noundef %18, i32 noundef 8)
store i32 %85, ptr %16, align 4
%86 = load i32, ptr %16, align 4
%87 = icmp eq i32 %86, -1
br i1 %87, label %88, label %102
88: ; preds = %82
%89 = load i32, ptr @errno, align 4
%90 = load i32, ptr @EAGAIN, align 4
%91 = sub nsw i32 0, %90
%92 = icmp eq i32 %89, %91
br i1 %92, label %93, label %96
93: ; preds = %88
%94 = load i32, ptr @stderr, align 4
%95 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %94, ptr noundef @.str.7)
br label %.backedge
.backedge: ; preds = %93, %136
br label %82
96: ; preds = %88
%97 = load i32, ptr @errno, align 4
%98 = sub nsw i32 0, %97
store i32 %98, ptr %16, align 4
%99 = load i32, ptr @stderr, align 4
%100 = load i32, ptr %16, align 4
%101 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %99, ptr noundef @.str.8, i32 noundef %100)
br label %137
102: ; preds = %82
%103 = load i32, ptr %16, align 4
%104 = sext i32 %103 to i64
%105 = icmp ne i64 %104, 8
br i1 %105, label %106, label %111
106: ; preds = %102
%107 = load i32, ptr @stderr, align 4
%108 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %107, ptr noundef @.str.9)
%109 = load i32, ptr @EIO, align 4
%110 = sub nsw i32 0, %109
store i32 %110, ptr %16, align 4
br label %137
111: ; preds = %102
%112 = load i32, ptr @stdout, align 4
%113 = getelementptr inbounds %struct.gpioevent_data, ptr %18, i32 0, i32 1
%114 = load i32, ptr %113, align 4
%115 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %112, ptr noundef @.str.10, i32 noundef %114)
%116 = getelementptr inbounds %struct.gpioevent_data, ptr %18, i32 0, i32 0
%117 = load i32, ptr %116, align 4
switch i32 %117, label %124 [
i32 128, label %118
i32 129, label %121
]
118: ; preds = %111
%119 = load i32, ptr @stdout, align 4
%120 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %119, ptr noundef @.str.11)
br label %127
121: ; preds = %111
%122 = load i32, ptr @stdout, align 4
%123 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %122, ptr noundef @.str.12)
br label %127
124: ; preds = %111
%125 = load i32, ptr @stdout, align 4
%126 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %125, ptr noundef @.str.13)
br label %127
127: ; preds = %124, %121, %118
%128 = load i32, ptr @stdout, align 4
%129 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %128, ptr noundef @.str.14)
%130 = load i32, ptr %17, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %17, align 4
%132 = load i32, ptr %17, align 4
%133 = load i32, ptr %11, align 4
%134 = icmp eq i32 %132, %133
br i1 %134, label %135, label %136
135: ; preds = %127
br label %137
136: ; preds = %127
br label %.backedge
137: ; preds = %135, %106, %96
br label %138
138: ; preds = %137, %65, %52
%139 = load i32, ptr %15, align 4
%140 = call i32 @close(i32 noundef %139)
%141 = icmp eq i32 %140, -1
br i1 %141, label %142, label %144
142: ; preds = %138
%143 = call i32 @perror(ptr noundef @.str.15)
br label %144
144: ; preds = %142, %138
br label %145
145: ; preds = %144, %31
%146 = load ptr, ptr %14, align 8
%147 = call i32 @free(ptr noundef %146)
%148 = load i32, ptr %16, align 4
store i32 %148, ptr %6, align 4
br label %149
149: ; preds = %145, %23
%150 = load i32, ptr %6, align 4
ret i32 %150
}
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @strcpy(i32 noundef, ptr noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo1gf1f6m.c'
source_filename = "/tmp/tmpo1gf1f6m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [68 x i8] c" %4.2f NaN %7.1f %8.1f NaN NaN %8.1f %8.1f\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c" %4.2f NaN %7.1f %8.1f %8.1f %8.1f %8.1f %8.1f\0A\00", align 1
@.str.2 = private unnamed_addr constant [60 x i8] c" %4.2f %7.1f %7.1f %8.1f %8.1f %8.1f %8.1f %8.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_result_sv(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
store double %0, ptr %9, align 8
store double %1, ptr %10, align 8
store double %2, ptr %11, align 8
store double %3, ptr %12, align 8
store double %4, ptr %13, align 8
store double %5, ptr %14, align 8
store double %6, ptr %15, align 8
store double %7, ptr %16, align 8
%17 = load double, ptr %10, align 8
%18 = call i64 @my_isnan(double noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %41
20: ; preds = %8
%21 = load double, ptr %13, align 8
%22 = call i64 @my_isnan(double noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = load double, ptr %9, align 8
%26 = load double, ptr %11, align 8
%27 = load double, ptr %12, align 8
%28 = load double, ptr %15, align 8
%29 = load double, ptr %16, align 8
%30 = call i32 (ptr, double, double, double, double, double, ...) @printf(ptr noundef @.str, double noundef %25, double noundef %26, double noundef %27, double noundef %28, double noundef %29)
br label %40
31: ; preds = %20
%32 = load double, ptr %9, align 8
%33 = load double, ptr %11, align 8
%34 = load double, ptr %12, align 8
%35 = load double, ptr %13, align 8
%36 = load double, ptr %14, align 8
%37 = load double, ptr %15, align 8
%38 = load double, ptr %16, align 8
%39 = call i32 (ptr, double, double, double, double, double, ...) @printf(ptr noundef @.str.1, double noundef %32, double noundef %33, double noundef %34, double noundef %35, double noundef %36, double noundef %37, double noundef %38)
br label %40
40: ; preds = %31, %24
br label %51
41: ; preds = %8
%42 = load double, ptr %9, align 8
%43 = load double, ptr %10, align 8
%44 = load double, ptr %11, align 8
%45 = load double, ptr %12, align 8
%46 = load double, ptr %13, align 8
%47 = load double, ptr %14, align 8
%48 = load double, ptr %15, align 8
%49 = load double, ptr %16, align 8
%50 = call i32 (ptr, double, double, double, double, double, ...) @printf(ptr noundef @.str.2, double noundef %42, double noundef %43, double noundef %44, double noundef %45, double noundef %46, double noundef %47, double noundef %48, double noundef %49)
br label %51
51: ; preds = %41, %40
ret void
}
declare i64 @my_isnan(double noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1gf1f6m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [68 x i8] c" %4.2f NaN %7.1f %8.1f NaN NaN %8.1f %8.1f\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c" %4.2f NaN %7.1f %8.1f %8.1f %8.1f %8.1f %8.1f\0A\00", align 1
@.str.2 = private unnamed_addr constant [60 x i8] c" %4.2f %7.1f %7.1f %8.1f %8.1f %8.1f %8.1f %8.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_result_sv(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
store double %0, ptr %9, align 8
store double %1, ptr %10, align 8
store double %2, ptr %11, align 8
store double %3, ptr %12, align 8
store double %4, ptr %13, align 8
store double %5, ptr %14, align 8
store double %6, ptr %15, align 8
store double %7, ptr %16, align 8
%17 = load double, ptr %10, align 8
%18 = call i64 @my_isnan(double noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %41
20: ; preds = %8
%21 = load double, ptr %13, align 8
%22 = call i64 @my_isnan(double noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = load double, ptr %9, align 8
%26 = load double, ptr %11, align 8
%27 = load double, ptr %12, align 8
%28 = load double, ptr %15, align 8
%29 = load double, ptr %16, align 8
%30 = call i32 (ptr, double, double, double, double, double, ...) @printf(ptr noundef @.str, double noundef %25, double noundef %26, double noundef %27, double noundef %28, double noundef %29)
br label %40
31: ; preds = %20
%32 = load double, ptr %9, align 8
%33 = load double, ptr %11, align 8
%34 = load double, ptr %12, align 8
%35 = load double, ptr %13, align 8
%36 = load double, ptr %14, align 8
%37 = load double, ptr %15, align 8
%38 = load double, ptr %16, align 8
%39 = call i32 (ptr, double, double, double, double, double, ...) @printf(ptr noundef @.str.1, double noundef %32, double noundef %33, double noundef %34, double noundef %35, double noundef %36, double noundef %37, double noundef %38)
br label %40
40: ; preds = %31, %24
br label %51
41: ; preds = %8
%42 = load double, ptr %9, align 8
%43 = load double, ptr %10, align 8
%44 = load double, ptr %11, align 8
%45 = load double, ptr %12, align 8
%46 = load double, ptr %13, align 8
%47 = load double, ptr %14, align 8
%48 = load double, ptr %15, align 8
%49 = load double, ptr %16, align 8
%50 = call i32 (ptr, double, double, double, double, double, ...) @printf(ptr noundef @.str.2, double noundef %42, double noundef %43, double noundef %44, double noundef %45, double noundef %46, double noundef %47, double noundef %48, double noundef %49)
br label %51
51: ; preds = %41, %40
ret void
}
declare i64 @my_isnan(double noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4jh6swks.c'
source_filename = "/tmp/tmp4jh6swks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Podaj dwie liczby calkowite: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%i %i\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Wczytano liczby %i i %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Wieksza liczba jest liczba: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6, i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load i32, ptr %2, align 4
br label %16
14: ; preds = %0
%15 = load i32, ptr %3, align 4
br label %16
16: ; preds = %14, %12
%17 = phi i32 [ %13, %12 ], [ %15, %14 ]
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4jh6swks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Podaj dwie liczby calkowite: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%i %i\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Wczytano liczby %i i %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Wieksza liczba jest liczba: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6, i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load i32, ptr %2, align 4
br label %16
14: ; preds = %0
%15 = load i32, ptr %3, align 4
br label %16
16: ; preds = %14, %12
%17 = phi i32 [ %13, %12 ], [ %15, %14 ]
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcd2uhvin.c'
source_filename = "/tmp/tmpcd2uhvin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
@.str = private unnamed_addr constant [3 x i8] c"-h\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [51 x i8] c"usage: %s [<number of files>] [<filename length>]\0A\00", align 1
@errno = dso_local global i64 0, align 8
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"filename was:\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c" %02hhx\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"close\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.timeval, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca [4096 x i8], align 16
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 1, ptr %8, align 8
store i64 32, ptr %9, align 8
%14 = load i32, ptr %4, align 4
%15 = icmp sge i32 %14, 2
br i1 %15, label %16, label %34
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %16
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %26)
%28 = call i32 @exit(i32 noundef 1) #3
unreachable
29: ; preds = %16
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strtoul(ptr noundef %32, ptr noundef null, i32 noundef 0)
store i64 %33, ptr %8, align 8
br label %34
34: ; preds = %29, %2
%35 = load i32, ptr %4, align 4
%36 = icmp sge i32 %35, 3
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i64 @strtoul(ptr noundef %40, ptr noundef null, i32 noundef 0)
store i64 %41, ptr %9, align 8
br label %42
42: ; preds = %37, %34
%43 = load i64, ptr %9, align 8
%44 = icmp uge i64 %43, 4096
br i1 %44, label %45, label %46
45: ; preds = %42
store i64 4095, ptr %9, align 8
br label %46
46: ; preds = %45, %42
%47 = call i32 @gettimeofday(ptr noundef %6, ptr noundef null)
%48 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
%49 = load i64, ptr %48, align 8
%50 = trunc i64 %49 to i32
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = urem i32 %51, 86400
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = mul i32 %53, 1000
store i32 %54, ptr %7, align 4
%55 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%56 = load i32, ptr %55, align 8
%57 = sdiv i32 %56, 1000
%58 = load i32, ptr %7, align 4
%59 = add i32 %58, %57
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %7, align 4
%61 = call i32 @srandom(i32 noundef %60)
store i64 0, ptr %11, align 8
br label %62
62: ; preds = %116, %46
%63 = load i64, ptr %11, align 8
%64 = load i64, ptr %8, align 8
%65 = icmp ult i64 %63, %64
br i1 %65, label %66, label %119
66: ; preds = %62
%67 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%68 = load i64, ptr %9, align 8
%69 = call i32 @garbage(ptr noundef %67, i64 noundef %68)
%70 = load i64, ptr %9, align 8
%71 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %70
store i8 0, ptr %71, align 1
store i64 0, ptr @errno, align 8
%72 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%73 = load i32, ptr @O_RDONLY, align 4
%74 = call i32 (ptr, i32, ...) @open(ptr noundef %72, i32 noundef %73)
store i32 %74, ptr %12, align 4
%75 = load i32, ptr %12, align 4
%76 = icmp ne i32 %75, -1
br i1 %76, label %77, label %82
77: ; preds = %66
%78 = load i32, ptr %12, align 4
%79 = call i64 @close(i32 noundef %78)
%80 = load i64, ptr %11, align 8
%81 = add i64 %80, -1
store i64 %81, ptr %11, align 8
br label %116
82: ; preds = %66
%83 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%84 = load i32, ptr @O_WRONLY, align 4
%85 = load i32, ptr @O_CREAT, align 4
%86 = or i32 %84, %85
%87 = call i32 (ptr, i32, ...) @open(ptr noundef %83, i32 noundef %86, i32 noundef 420)
store i32 %87, ptr %12, align 4
%88 = load i32, ptr %12, align 4
%89 = icmp slt i32 %88, 0
br i1 %89, label %90, label %109
90: ; preds = %82
%91 = call i32 @perror(ptr noundef @.str.2)
%92 = load i32, ptr @stderr, align 4
%93 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %92, ptr noundef @.str.3)
store i64 0, ptr %13, align 8
br label %94
94: ; preds = %104, %90
%95 = load i64, ptr %13, align 8
%96 = icmp ult i64 %95, 4096
br i1 %96, label %97, label %107
97: ; preds = %94
%98 = load i32, ptr @stderr, align 4
%99 = load i64, ptr %13, align 8
%100 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %99
%101 = load i8, ptr %100, align 1
%102 = zext i8 %101 to i32
%103 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %98, ptr noundef @.str.4, i32 noundef %102)
br label %104
104: ; preds = %97
%105 = load i64, ptr %13, align 8
%106 = add i64 %105, 1
store i64 %106, ptr %13, align 8
br label %94, !llvm.loop !6
107: ; preds = %94
%108 = call i32 @exit(i32 noundef 1) #3
unreachable
109: ; preds = %82
store i64 0, ptr @errno, align 8
%110 = load i32, ptr %12, align 4
%111 = call i64 @close(i32 noundef %110)
%112 = icmp ne i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %109
%114 = call i32 @perror(ptr noundef @.str.5)
br label %115
115: ; preds = %113, %109
br label %116
116: ; preds = %115, %77
%117 = load i64, ptr %11, align 8
%118 = add i64 %117, 1
store i64 %118, ptr %11, align 8
br label %62, !llvm.loop !8
119: ; preds = %62
ret i32 0
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @srandom(i32 noundef) #1
declare i32 @garbage(ptr noundef, i64 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i64 @close(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcd2uhvin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
@.str = private unnamed_addr constant [3 x i8] c"-h\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [51 x i8] c"usage: %s [<number of files>] [<filename length>]\0A\00", align 1
@errno = dso_local global i64 0, align 8
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"filename was:\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c" %02hhx\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"close\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.timeval, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca [4096 x i8], align 16
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 1, ptr %8, align 8
store i64 32, ptr %9, align 8
%14 = load i32, ptr %4, align 4
%15 = icmp sge i32 %14, 2
br i1 %15, label %16, label %34
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %16
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %26)
%28 = call i32 @exit(i32 noundef 1) #3
unreachable
29: ; preds = %16
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strtoul(ptr noundef %32, ptr noundef null, i32 noundef 0)
store i64 %33, ptr %8, align 8
br label %34
34: ; preds = %29, %2
%35 = load i32, ptr %4, align 4
%36 = icmp sge i32 %35, 3
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i64 @strtoul(ptr noundef %40, ptr noundef null, i32 noundef 0)
store i64 %41, ptr %9, align 8
br label %42
42: ; preds = %37, %34
%43 = load i64, ptr %9, align 8
%44 = icmp uge i64 %43, 4096
br i1 %44, label %45, label %46
45: ; preds = %42
store i64 4095, ptr %9, align 8
br label %46
46: ; preds = %45, %42
%47 = call i32 @gettimeofday(ptr noundef %6, ptr noundef null)
%48 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
%49 = load i64, ptr %48, align 8
%50 = trunc i64 %49 to i32
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = urem i32 %51, 86400
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = mul i32 %53, 1000
store i32 %54, ptr %7, align 4
%55 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%56 = load i32, ptr %55, align 8
%57 = sdiv i32 %56, 1000
%58 = load i32, ptr %7, align 4
%59 = add i32 %58, %57
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %7, align 4
%61 = call i32 @srandom(i32 noundef %60)
store i64 0, ptr %11, align 8
%62 = load i64, ptr %11, align 8
%63 = load i64, ptr %8, align 8
%64 = icmp ult i64 %62, %63
br i1 %64, label %.lr.ph, label %122
.lr.ph: ; preds = %46
br label %65
65: ; preds = %.lr.ph, %116
%66 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%67 = load i64, ptr %9, align 8
%68 = call i32 @garbage(ptr noundef %66, i64 noundef %67)
%69 = load i64, ptr %9, align 8
%70 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %69
store i8 0, ptr %70, align 1
store i64 0, ptr @errno, align 8
%71 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%72 = load i32, ptr @O_RDONLY, align 4
%73 = call i32 (ptr, i32, ...) @open(ptr noundef %71, i32 noundef %72)
store i32 %73, ptr %12, align 4
%74 = load i32, ptr %12, align 4
%75 = icmp ne i32 %74, -1
br i1 %75, label %76, label %81
76: ; preds = %65
%77 = load i32, ptr %12, align 4
%78 = call i64 @close(i32 noundef %77)
%79 = load i64, ptr %11, align 8
%80 = add i64 %79, -1
store i64 %80, ptr %11, align 8
br label %116
81: ; preds = %65
%82 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%83 = load i32, ptr @O_WRONLY, align 4
%84 = load i32, ptr @O_CREAT, align 4
%85 = or i32 %83, %84
%86 = call i32 (ptr, i32, ...) @open(ptr noundef %82, i32 noundef %85, i32 noundef 420)
store i32 %86, ptr %12, align 4
%87 = load i32, ptr %12, align 4
%88 = icmp slt i32 %87, 0
br i1 %88, label %89, label %109
89: ; preds = %81
%90 = call i32 @perror(ptr noundef @.str.2)
%91 = load i32, ptr @stderr, align 4
%92 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %91, ptr noundef @.str.3)
store i64 0, ptr %13, align 8
%93 = load i64, ptr %13, align 8
%94 = icmp ult i64 %93, 4096
br i1 %94, label %.lr.ph2, label %107
.lr.ph2: ; preds = %89
br label %95
95: ; preds = %.lr.ph2, %102
%96 = load i32, ptr @stderr, align 4
%97 = load i64, ptr %13, align 8
%98 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %97
%99 = load i8, ptr %98, align 1
%100 = zext i8 %99 to i32
%101 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %96, ptr noundef @.str.4, i32 noundef %100)
br label %102
102: ; preds = %95
%103 = load i64, ptr %13, align 8
%104 = add i64 %103, 1
store i64 %104, ptr %13, align 8
%105 = load i64, ptr %13, align 8
%106 = icmp ult i64 %105, 4096
br i1 %106, label %95, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %102
br label %107
107: ; preds = %._crit_edge3, %89
%108 = call i32 @exit(i32 noundef 1) #3
unreachable
109: ; preds = %81
store i64 0, ptr @errno, align 8
%110 = load i32, ptr %12, align 4
%111 = call i64 @close(i32 noundef %110)
%112 = icmp ne i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %109
%114 = call i32 @perror(ptr noundef @.str.5)
br label %115
115: ; preds = %113, %109
br label %116
116: ; preds = %115, %76
%117 = load i64, ptr %11, align 8
%118 = add i64 %117, 1
store i64 %118, ptr %11, align 8
%119 = load i64, ptr %11, align 8
%120 = load i64, ptr %8, align 8
%121 = icmp ult i64 %119, %120
br i1 %121, label %65, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %116
br label %122
122: ; preds = %._crit_edge, %46
ret i32 0
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @srandom(i32 noundef) #1
declare i32 @garbage(ptr noundef, i64 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i64 @close(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjgx8i47a.c'
source_filename = "/tmp/tmpjgx8i47a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stream_write_fd(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %9, align 4
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %6, align 8
%14 = call i32 @write(i32 noundef %11, ptr noundef %12, i64 noundef %13)
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %7, align 4
ret i32 %15
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjgx8i47a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stream_write_fd(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %9, align 4
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %6, align 8
%14 = call i32 @write(i32 noundef %11, ptr noundef %12, i64 noundef %13)
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %7, align 4
ret i32 %15
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzo7bt6cd.c'
source_filename = "/tmp/tmpzo7bt6cd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"MODULE?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @a_0_65() #0 {
%1 = call i32 @a_0_55(i32 noundef 11, ptr noundef @.str)
ret void
}
declare i32 @a_0_55(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzo7bt6cd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"MODULE?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @a_0_65() #0 {
%1 = call i32 @a_0_55(i32 noundef 11, ptr noundef @.str)
ret void
}
declare i32 @a_0_55(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8bqmyjpf.c'
source_filename = "/tmp/tmp8bqmyjpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @vox_get_song_tpl(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @sv_get_song_tpl(i32 noundef %3)
ret i32 %4
}
declare i32 @sv_get_song_tpl(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8bqmyjpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @vox_get_song_tpl(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @sv_get_song_tpl(i32 noundef %3)
ret i32 %4
}
declare i32 @sv_get_song_tpl(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgsr4oyc5.c'
source_filename = "/tmp/tmpgsr4oyc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ERANGE = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgsr4oyc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ERANGE = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdft1357_.c'
source_filename = "/tmp/tmpdft1357_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"EEK, parse error! Message: [%s]\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Line %3d of File %s \0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"qgrammar.y\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @yyerror(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1, i32 noundef 572, ptr noundef @.str.2)
ret i32 -1
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdft1357_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"EEK, parse error! Message: [%s]\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Line %3d of File %s \0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"qgrammar.y\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @yyerror(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1, i32 noundef 572, ptr noundef @.str.2)
ret i32 -1
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq8jkmspx.c'
source_filename = "/tmp/tmpq8jkmspx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Wrong number of arguments.\0A\00", align 1
@EIO = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str)
%12 = load i32, ptr @EIO, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @print_times_table(i32 noundef %19)
%21 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %21
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @print_times_table(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq8jkmspx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Wrong number of arguments.\0A\00", align 1
@EIO = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str)
%12 = load i32, ptr @EIO, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @print_times_table(i32 noundef %19)
%21 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %21
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @print_times_table(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2r7j9hh3.c'
source_filename = "/tmp/tmp2r7j9hh3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @build_ref_for_offset(ptr noundef null, i32 noundef 32)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort() #3
unreachable
8: ; preds = %0
ret i32 0
}
declare ptr @build_ref_for_offset(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2r7j9hh3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @build_ref_for_offset(ptr noundef null, i32 noundef 32)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort() #3
unreachable
8: ; preds = %0
ret i32 0
}
declare ptr @build_ref_for_offset(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprdst388_.c'
source_filename = "/tmp/tmprdst388_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprdst388_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplusbf5gd.c'
source_filename = "/tmp/tmplusbf5gd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@max = external global i32, align 4
@.str = private unnamed_addr constant [52 x i8] c" --- Ejercio 2.c modificando el codigo de 2.a---- \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@linea_max = external global [1000 x i8], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr @max, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %4
4: ; preds = %13, %0
%5 = call i32 (...) @obtenlinea()
store i32 %5, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = icmp sgt i32 %8, 80
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = call i32 (...) @copia()
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @linea_max)
br label %13
13: ; preds = %10, %7
br label %4, !llvm.loop !6
14: ; preds = %4
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @obtenlinea(...) #1
declare i32 @copia(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplusbf5gd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@max = external global i32, align 4
@.str = private unnamed_addr constant [52 x i8] c" --- Ejercio 2.c modificando el codigo de 2.a---- \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@linea_max = external global [1000 x i8], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr @max, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 (...) @obtenlinea()
store i32 %4, ptr %2, align 4
%5 = icmp sgt i32 %4, 0
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %12
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 %7, 80
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = call i32 (...) @copia()
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @linea_max)
br label %12
12: ; preds = %9, %6
%13 = call i32 (...) @obtenlinea()
store i32 %13, ptr %2, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %15
15: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @obtenlinea(...) #1
declare i32 @copia(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpizci6aza.c'
source_filename = "/tmp/tmpizci6aza.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @clear() #0 {
%1 = call i32 @system(ptr noundef @.str)
%2 = load i32, ptr @stdin, align 4
%3 = call i32 @fflush(i32 noundef %2)
ret void
}
declare i32 @system(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpizci6aza.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @clear() #0 {
%1 = call i32 @system(ptr noundef @.str)
%2 = load i32, ptr @stdin, align 4
%3 = call i32 @fflush(i32 noundef %2)
ret void
}
declare i32 @system(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7mr4m64t.c'
source_filename = "/tmp/tmp7mr4m64t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%zu\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @displayMatrix(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %7
7: ; preds = %32, %2
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %35
11: ; preds = %7
store i64 0, ptr %6, align 8
br label %12
12: ; preds = %26, %11
%13 = load i64, ptr %6, align 8
%14 = load i64, ptr %4, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %29
16: ; preds = %12
%17 = load i32, ptr @stdout, align 4
%18 = load ptr, ptr %3, align 8
%19 = load i64, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %18, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load i64, ptr %6, align 8
%23 = getelementptr inbounds i64, ptr %21, i64 %22
%24 = load i64, ptr %23, align 8
%25 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str, i64 noundef %24)
br label %26
26: ; preds = %16
%27 = load i64, ptr %6, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %6, align 8
br label %12, !llvm.loop !6
29: ; preds = %12
%30 = load i32, ptr @stdout, align 4
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef @.str.1)
br label %32
32: ; preds = %29
%33 = load i64, ptr %5, align 8
%34 = add i64 %33, 1
store i64 %34, ptr %5, align 8
br label %7, !llvm.loop !8
35: ; preds = %7
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7mr4m64t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%zu\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @displayMatrix(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %.lr.ph2, label %39
.lr.ph2: ; preds = %2
br label %10
10: ; preds = %.lr.ph2, %33
store i64 0, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = load i64, ptr %4, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %.lr.ph, label %30
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %24
%15 = load i32, ptr @stdout, align 4
%16 = load ptr, ptr %3, align 8
%17 = load i64, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %16, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = load i64, ptr %6, align 8
%21 = getelementptr inbounds i64, ptr %19, i64 %20
%22 = load i64, ptr %21, align 8
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, i64 noundef %22)
br label %24
24: ; preds = %14
%25 = load i64, ptr %6, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %6, align 8
%27 = load i64, ptr %6, align 8
%28 = load i64, ptr %4, align 8
%29 = icmp ult i64 %27, %28
br i1 %29, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %10
%31 = load i32, ptr @stdout, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.1)
br label %33
33: ; preds = %30
%34 = load i64, ptr %5, align 8
%35 = add i64 %34, 1
store i64 %35, ptr %5, align 8
%36 = load i64, ptr %5, align 8
%37 = load i64, ptr %4, align 8
%38 = icmp ult i64 %36, %37
br i1 %38, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %39
39: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpfdkqlbsv.c'
source_filename = "/tmp/tmpfdkqlbsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @bar()
%3 = sub nsw i32 %2, 42
ret i32 %3
}
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfdkqlbsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @bar()
%3 = sub nsw i32 %2, 42
ret i32 %3
}
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp06f5484z.c'
source_filename = "/tmp/tmp06f5484z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lcat(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %10, align 8
%13 = load ptr, ptr %7, align 8
store ptr %13, ptr %11, align 8
store i64 0, ptr %9, align 8
br label %14
14: ; preds = %26, %4
%15 = load i64, ptr %9, align 8
%16 = load i64, ptr %8, align 8
%17 = icmp ult i64 %15, %16
br i1 %17, label %18, label %29
18: ; preds = %14
%19 = load ptr, ptr %10, align 8
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %11, align 8
%22 = load i64, ptr %9, align 8
%23 = getelementptr inbounds ptr, ptr %21, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i32 @lappend(ptr noundef %19, ptr noundef %20, ptr noundef %24)
br label %26
26: ; preds = %18
%27 = load i64, ptr %9, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %9, align 8
br label %14, !llvm.loop !6
29: ; preds = %14
ret void
}
declare i32 @lappend(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp06f5484z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lcat(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %10, align 8
%13 = load ptr, ptr %7, align 8
store ptr %13, ptr %11, align 8
store i64 0, ptr %9, align 8
%14 = load i64, ptr %9, align 8
%15 = load i64, ptr %8, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %.lr.ph, label %31
.lr.ph: ; preds = %4
br label %17
17: ; preds = %.lr.ph, %25
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %11, align 8
%21 = load i64, ptr %9, align 8
%22 = getelementptr inbounds ptr, ptr %20, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i32 @lappend(ptr noundef %18, ptr noundef %19, ptr noundef %23)
br label %25
25: ; preds = %17
%26 = load i64, ptr %9, align 8
%27 = add i64 %26, 1
store i64 %27, ptr %9, align 8
%28 = load i64, ptr %9, align 8
%29 = load i64, ptr %8, align 8
%30 = icmp ult i64 %28, %29
br i1 %30, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %4
ret void
}
declare i32 @lappend(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe1o8tcza.c'
source_filename = "/tmp/tmpe1o8tcza.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fputs_unlocked(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i32 @fwrite_unlocked(ptr noundef %5, i32 noundef 1, i32 noundef %7, ptr noundef %8)
ret i32 %9
}
declare i32 @fwrite_unlocked(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe1o8tcza.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fputs_unlocked(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i32 @fwrite_unlocked(ptr noundef %5, i32 noundef 1, i32 noundef %7, ptr noundef %8)
ret i32 %9
}
declare i32 @fwrite_unlocked(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5mcryl34.c'
source_filename = "/tmp/tmp5mcryl34.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pd9p_enc4(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = srem i32 %5, 256
%7 = trunc i32 %6 to i8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 0
store i8 %7, ptr %9, align 1
%10 = load i32, ptr %4, align 4
%11 = ashr i32 %10, 8
%12 = srem i32 %11, 256
%13 = trunc i32 %12 to i8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 1
store i8 %13, ptr %15, align 1
%16 = load i32, ptr %4, align 4
%17 = ashr i32 %16, 16
%18 = srem i32 %17, 256
%19 = trunc i32 %18 to i8
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 2
store i8 %19, ptr %21, align 1
%22 = load i32, ptr %4, align 4
%23 = ashr i32 %22, 24
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 3
store i8 %24, ptr %26, align 1
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 4
ret ptr %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5mcryl34.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pd9p_enc4(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = srem i32 %5, 256
%7 = trunc i32 %6 to i8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 0
store i8 %7, ptr %9, align 1
%10 = load i32, ptr %4, align 4
%11 = ashr i32 %10, 8
%12 = srem i32 %11, 256
%13 = trunc i32 %12 to i8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 1
store i8 %13, ptr %15, align 1
%16 = load i32, ptr %4, align 4
%17 = ashr i32 %16, 16
%18 = srem i32 %17, 256
%19 = trunc i32 %18 to i8
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 2
store i8 %19, ptr %21, align 1
%22 = load i32, ptr %4, align 4
%23 = ashr i32 %22, 24
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 3
store i8 %24, ptr %26, align 1
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 4
ret ptr %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsjxsivp3.c'
source_filename = "/tmp/tmpsjxsivp3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"%s: remount device [ro][rw]\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"ro\00", align 1
@MS_RDONLY = dso_local global i32 0, align 4
@MS_REMOUNT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"rw\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"%s: ro or rw required.\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"umount\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %14)
store i32 1, ptr %3, align 4
br label %60
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call ptr @getdev(ptr noundef %19)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %27, label %23
23: ; preds = %16
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %6, align 8
br label %27
27: ; preds = %23, %16
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
%31 = call i64 @strcmp(ptr noundef %30, ptr noundef @.str.1)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %27
%34 = load i32, ptr @MS_RDONLY, align 4
%35 = load i32, ptr @MS_REMOUNT, align 4
%36 = or i32 %34, %35
store i32 %36, ptr %7, align 4
br label %52
37: ; preds = %27
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i64 @strcmp(ptr noundef %40, ptr noundef @.str.2)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %37
%44 = load i32, ptr @MS_REMOUNT, align 4
store i32 %44, ptr %7, align 4
br label %51
45: ; preds = %37
%46 = load i32, ptr @stderr, align 4
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 0
%49 = load ptr, ptr %48, align 8
%50 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.3, ptr noundef %49)
store i32 1, ptr %3, align 4
br label %60
51: ; preds = %43
br label %52
52: ; preds = %51, %33
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %7, align 4
%55 = call i64 @remount(ptr noundef %53, i32 noundef %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %52
%58 = call i32 @perror(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %60
59: ; preds = %52
store i32 0, ptr %3, align 4
br label %60
60: ; preds = %59, %57, %45, %10
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @getdev(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @remount(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsjxsivp3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"%s: remount device [ro][rw]\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"ro\00", align 1
@MS_RDONLY = dso_local global i32 0, align 4
@MS_REMOUNT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"rw\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"%s: ro or rw required.\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"umount\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %14)
store i32 1, ptr %3, align 4
br label %60
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call ptr @getdev(ptr noundef %19)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %27, label %23
23: ; preds = %16
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %6, align 8
br label %27
27: ; preds = %23, %16
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
%31 = call i64 @strcmp(ptr noundef %30, ptr noundef @.str.1)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %27
%34 = load i32, ptr @MS_RDONLY, align 4
%35 = load i32, ptr @MS_REMOUNT, align 4
%36 = or i32 %34, %35
store i32 %36, ptr %7, align 4
br label %52
37: ; preds = %27
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i64 @strcmp(ptr noundef %40, ptr noundef @.str.2)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %37
%44 = load i32, ptr @MS_REMOUNT, align 4
store i32 %44, ptr %7, align 4
br label %51
45: ; preds = %37
%46 = load i32, ptr @stderr, align 4
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 0
%49 = load ptr, ptr %48, align 8
%50 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.3, ptr noundef %49)
store i32 1, ptr %3, align 4
br label %60
51: ; preds = %43
br label %52
52: ; preds = %51, %33
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %7, align 4
%55 = call i64 @remount(ptr noundef %53, i32 noundef %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %52
%58 = call i32 @perror(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %60
59: ; preds = %52
store i32 0, ptr %3, align 4
br label %60
60: ; preds = %59, %57, %45, %10
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @getdev(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @remount(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqkq7rc8y.c'
source_filename = "/tmp/tmpqkq7rc8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"benchmark_initbatch: entry\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @benchmark_initbatch(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqkq7rc8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"benchmark_initbatch: entry\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @benchmark_initbatch(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmxnc4uo_.c'
source_filename = "/tmp/tmpmxnc4uo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @idwt2(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store i32 %7, ptr %16, align 4
store i32 0, ptr %17, align 4
br label %20
20: ; preds = %47, %8
%21 = load i32, ptr %17, align 4
%22 = load i32, ptr %13, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %50
24: ; preds = %20
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %10, align 8
%27 = load i32, ptr %15, align 4
%28 = load i32, ptr %17, align 4
%29 = mul nsw i32 %27, %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, ptr %26, i64 %30
%32 = load ptr, ptr %11, align 8
%33 = load i32, ptr %16, align 4
%34 = load i32, ptr %17, align 4
%35 = mul nsw i32 %33, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, ptr %32, i64 %36
%38 = load i32, ptr %12, align 4
%39 = load i32, ptr %14, align 4
%40 = load i32, ptr %15, align 4
%41 = load i32, ptr %13, align 4
%42 = mul nsw i32 %40, %41
%43 = load i32, ptr %16, align 4
%44 = load i32, ptr %13, align 4
%45 = mul nsw i32 %43, %44
%46 = call i32 @idwt(ptr noundef %25, ptr noundef %31, ptr noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %42, i32 noundef %45)
br label %47
47: ; preds = %24
%48 = load i32, ptr %17, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %17, align 4
br label %20, !llvm.loop !6
50: ; preds = %20
store i32 0, ptr %18, align 4
br label %51
51: ; preds = %71, %50
%52 = load i32, ptr %18, align 4
%53 = load i32, ptr %13, align 4
%54 = load i32, ptr %14, align 4
%55 = mul nsw i32 %53, %54
%56 = icmp slt i32 %52, %55
br i1 %56, label %57, label %74
57: ; preds = %51
%58 = load ptr, ptr %10, align 8
%59 = load i32, ptr %18, align 4
%60 = load i32, ptr %15, align 4
%61 = mul nsw i32 %59, %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds float, ptr %58, i64 %62
%64 = load float, ptr %63, align 4
%65 = load ptr, ptr %11, align 8
%66 = load i32, ptr %18, align 4
%67 = load i32, ptr %16, align 4
%68 = mul nsw i32 %66, %67
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds float, ptr %65, i64 %69
store float %64, ptr %70, align 4
br label %71
71: ; preds = %57
%72 = load i32, ptr %18, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %18, align 4
br label %51, !llvm.loop !8
74: ; preds = %51
store i32 0, ptr %19, align 4
br label %75
75: ; preds = %102, %74
%76 = load i32, ptr %19, align 4
%77 = load i32, ptr %14, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %105
79: ; preds = %75
%80 = load ptr, ptr %9, align 8
%81 = load ptr, ptr %10, align 8
%82 = load i32, ptr %15, align 4
%83 = load i32, ptr %13, align 4
%84 = mul nsw i32 %82, %83
%85 = load i32, ptr %19, align 4
%86 = mul nsw i32 %84, %85
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds float, ptr %81, i64 %87
%89 = load ptr, ptr %11, align 8
%90 = load i32, ptr %16, align 4
%91 = load i32, ptr %13, align 4
%92 = mul nsw i32 %90, %91
%93 = load i32, ptr %19, align 4
%94 = mul nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds float, ptr %89, i64 %95
%97 = load i32, ptr %12, align 4
%98 = load i32, ptr %13, align 4
%99 = load i32, ptr %15, align 4
%100 = load i32, ptr %16, align 4
%101 = call i32 @idwt(ptr noundef %80, ptr noundef %88, ptr noundef %96, i32 noundef %97, i32 noundef %98, i32 noundef %99, i32 noundef %100)
br label %102
102: ; preds = %79
%103 = load i32, ptr %19, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %19, align 4
br label %75, !llvm.loop !9
105: ; preds = %75
ret void
}
declare i32 @idwt(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmxnc4uo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @idwt2(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store i32 %7, ptr %16, align 4
store i32 0, ptr %17, align 4
%20 = load i32, ptr %17, align 4
%21 = load i32, ptr %13, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %52
.lr.ph: ; preds = %8
br label %23
23: ; preds = %.lr.ph, %46
%24 = load ptr, ptr %9, align 8
%25 = load ptr, ptr %10, align 8
%26 = load i32, ptr %15, align 4
%27 = load i32, ptr %17, align 4
%28 = mul nsw i32 %26, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds float, ptr %25, i64 %29
%31 = load ptr, ptr %11, align 8
%32 = load i32, ptr %16, align 4
%33 = load i32, ptr %17, align 4
%34 = mul nsw i32 %32, %33
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds float, ptr %31, i64 %35
%37 = load i32, ptr %12, align 4
%38 = load i32, ptr %14, align 4
%39 = load i32, ptr %15, align 4
%40 = load i32, ptr %13, align 4
%41 = mul nsw i32 %39, %40
%42 = load i32, ptr %16, align 4
%43 = load i32, ptr %13, align 4
%44 = mul nsw i32 %42, %43
%45 = call i32 @idwt(ptr noundef %24, ptr noundef %30, ptr noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %41, i32 noundef %44)
br label %46
46: ; preds = %23
%47 = load i32, ptr %17, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %17, align 4
%49 = load i32, ptr %17, align 4
%50 = load i32, ptr %13, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %52
52: ; preds = %._crit_edge, %8
store i32 0, ptr %18, align 4
%53 = load i32, ptr %18, align 4
%54 = load i32, ptr %13, align 4
%55 = load i32, ptr %14, align 4
%56 = mul nsw i32 %54, %55
%57 = icmp slt i32 %53, %56
br i1 %57, label %.lr.ph2, label %80
.lr.ph2: ; preds = %52
br label %58
58: ; preds = %.lr.ph2, %72
%59 = load ptr, ptr %10, align 8
%60 = load i32, ptr %18, align 4
%61 = load i32, ptr %15, align 4
%62 = mul nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds float, ptr %59, i64 %63
%65 = load float, ptr %64, align 4
%66 = load ptr, ptr %11, align 8
%67 = load i32, ptr %18, align 4
%68 = load i32, ptr %16, align 4
%69 = mul nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds float, ptr %66, i64 %70
store float %65, ptr %71, align 4
br label %72
72: ; preds = %58
%73 = load i32, ptr %18, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %18, align 4
%75 = load i32, ptr %18, align 4
%76 = load i32, ptr %13, align 4
%77 = load i32, ptr %14, align 4
%78 = mul nsw i32 %76, %77
%79 = icmp slt i32 %75, %78
br i1 %79, label %58, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %72
br label %80
80: ; preds = %._crit_edge3, %52
store i32 0, ptr %19, align 4
%81 = load i32, ptr %19, align 4
%82 = load i32, ptr %14, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %.lr.ph5, label %113
.lr.ph5: ; preds = %80
br label %84
84: ; preds = %.lr.ph5, %107
%85 = load ptr, ptr %9, align 8
%86 = load ptr, ptr %10, align 8
%87 = load i32, ptr %15, align 4
%88 = load i32, ptr %13, align 4
%89 = mul nsw i32 %87, %88
%90 = load i32, ptr %19, align 4
%91 = mul nsw i32 %89, %90
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %86, i64 %92
%94 = load ptr, ptr %11, align 8
%95 = load i32, ptr %16, align 4
%96 = load i32, ptr %13, align 4
%97 = mul nsw i32 %95, %96
%98 = load i32, ptr %19, align 4
%99 = mul nsw i32 %97, %98
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds float, ptr %94, i64 %100
%102 = load i32, ptr %12, align 4
%103 = load i32, ptr %13, align 4
%104 = load i32, ptr %15, align 4
%105 = load i32, ptr %16, align 4
%106 = call i32 @idwt(ptr noundef %85, ptr noundef %93, ptr noundef %101, i32 noundef %102, i32 noundef %103, i32 noundef %104, i32 noundef %105)
br label %107
107: ; preds = %84
%108 = load i32, ptr %19, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %19, align 4
%110 = load i32, ptr %19, align 4
%111 = load i32, ptr %14, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %84, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %107
br label %113
113: ; preds = %._crit_edge6, %80
ret void
}
declare i32 @idwt(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp1bkxk33k.c'
source_filename = "/tmp/tmp1bkxk33k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"fnord\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [128 x i8], align 16
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %30, %0
%5 = load i64, ptr %3, align 8
%6 = icmp ult i64 %5, 100
br i1 %6, label %7, label %33
7: ; preds = %4
%8 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @memset(ptr noundef %8, i8 noundef signext 120, i32 noundef 128)
%10 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%11 = load i64, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %10, i64 %11
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
%14 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%15 = load i64, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %14, i64 %15
%17 = call i32 @strcmp(ptr noundef %16, ptr noundef @.str)
%18 = icmp ne i32 %17, 0
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = load i64, ptr %3, align 8
%23 = add i64 %22, 6
%24 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 120
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
br label %30
30: ; preds = %7
%31 = load i64, ptr %3, align 8
%32 = add i64 %31, 1
store i64 %32, ptr %3, align 8
br label %4, !llvm.loop !6
33: ; preds = %4
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1bkxk33k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"fnord\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [128 x i8], align 16
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp ult i64 %4, 100
br i1 %5, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %29
%7 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i8 noundef signext 120, i32 noundef 128)
%9 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%10 = load i64, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str)
%13 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%14 = load i64, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = call i32 @strcmp(ptr noundef %15, ptr noundef @.str)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
%21 = load i64, ptr %3, align 8
%22 = add i64 %21, 6
%23 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 120
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 noundef %27)
br label %29
29: ; preds = %6
%30 = load i64, ptr %3, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %3, align 8
%32 = load i64, ptr %3, align 8
%33 = icmp ult i64 %32, 100
br i1 %33, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %0
%35 = load i32, ptr %1, align 4
ret i32 %35
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7rkve3eg.c'
source_filename = "/tmp/tmp7rkve3eg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DebugBreak() #0 {
%1 = call i32 (...) @__coverity_panic__()
ret void
}
declare i32 @__coverity_panic__(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7rkve3eg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DebugBreak() #0 {
%1 = call i32 (...) @__coverity_panic__()
ret void
}
declare i32 @__coverity_panic__(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxsng00dz.c'
source_filename = "/tmp/tmpxsng00dz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"receive/test.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"10.10.1.100\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"9001\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rdpr_test() #0 {
%1 = call i32 @rdp_filestream_open(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @rdp_receiver(ptr noundef @.str.2, ptr noundef @.str.3)
%3 = call i32 (...) @rdp_receiver_receive()
%4 = call i32 (...) @rdp_filestream_close()
%5 = call i32 (...) @rdp_receiver_stats()
ret void
}
declare i32 @rdp_filestream_open(ptr noundef, ptr noundef) #1
declare i32 @rdp_receiver(ptr noundef, ptr noundef) #1
declare i32 @rdp_receiver_receive(...) #1
declare i32 @rdp_filestream_close(...) #1
declare i32 @rdp_receiver_stats(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxsng00dz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"receive/test.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"10.10.1.100\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"9001\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rdpr_test() #0 {
%1 = call i32 @rdp_filestream_open(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @rdp_receiver(ptr noundef @.str.2, ptr noundef @.str.3)
%3 = call i32 (...) @rdp_receiver_receive()
%4 = call i32 (...) @rdp_filestream_close()
%5 = call i32 (...) @rdp_receiver_stats()
ret void
}
declare i32 @rdp_filestream_open(ptr noundef, ptr noundef) #1
declare i32 @rdp_receiver(ptr noundef, ptr noundef) #1
declare i32 @rdp_receiver_receive(...) #1
declare i32 @rdp_filestream_close(...) #1
declare i32 @rdp_receiver_stats(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoesqdigp.c'
source_filename = "/tmp/tmpoesqdigp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sqlite3UnixRandomSeed(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 256)
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %20
12: ; preds = %1
%13 = call i32 @time(ptr noundef %5)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @memcpy(ptr noundef %14, ptr noundef %5, i32 noundef 4)
%16 = call i32 (...) @getpid()
store i32 %16, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 4
%19 = call i32 @memcpy(ptr noundef %18, ptr noundef %3, i32 noundef 4)
br label %26
20: ; preds = %1
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %2, align 8
%23 = call i32 @read(i32 noundef %21, ptr noundef %22, i32 noundef 256)
%24 = load i32, ptr %4, align 4
%25 = call i32 @close(i32 noundef %24)
br label %26
26: ; preds = %20, %12
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoesqdigp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sqlite3UnixRandomSeed(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 256)
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %20
12: ; preds = %1
%13 = call i32 @time(ptr noundef %5)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @memcpy(ptr noundef %14, ptr noundef %5, i32 noundef 4)
%16 = call i32 (...) @getpid()
store i32 %16, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 4
%19 = call i32 @memcpy(ptr noundef %18, ptr noundef %3, i32 noundef 4)
br label %26
20: ; preds = %1
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %2, align 8
%23 = call i32 @read(i32 noundef %21, ptr noundef %22, i32 noundef 256)
%24 = load i32, ptr %4, align 4
%25 = call i32 @close(i32 noundef %24)
br label %26
26: ; preds = %20, %12
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph_9388vt.c'
source_filename = "/tmp/tmph_9388vt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Enter plain text: \00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"\0AEnter key with 26 character:\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"\0A%c\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Your cipher text is:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [30 x i8], align 16
%2 = alloca [27 x i8], align 16
%3 = alloca [30 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = getelementptr inbounds [30 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @gets(ptr noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %27, %0
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 26
br i1 %12, label %13, label %30
13: ; preds = %10
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 97
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
%17 = call signext i8 (...) @getchar()
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [27 x i8], ptr %2, i64 0, i64 %19
store i8 %17, ptr %20, align 1
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [27 x i8], ptr %2, i64 0, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
br label %27
27: ; preds = %13
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %10, !llvm.loop !6
30: ; preds = %10
store i32 0, ptr %4, align 4
br label %31
31: ; preds = %50, %30
%32 = load i32, ptr %4, align 4
%33 = getelementptr inbounds [30 x i8], ptr %1, i64 0, i64 0
%34 = call i32 @strlen(ptr noundef %33)
%35 = icmp slt i32 %32, %34
br i1 %35, label %36, label %53
36: ; preds = %31
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [30 x i8], ptr %1, i64 0, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = sub nsw i32 %41, 97
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [27 x i8], ptr %2, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [30 x i8], ptr %3, i64 0, i64 %48
store i8 %46, ptr %49, align 1
br label %50
50: ; preds = %36
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %4, align 4
br label %31, !llvm.loop !8
53: ; preds = %31
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %4, align 4
br label %55
55: ; preds = %67, %53
%56 = load i32, ptr %4, align 4
%57 = getelementptr inbounds [30 x i8], ptr %1, i64 0, i64 0
%58 = call i32 @strlen(ptr noundef %57)
%59 = icmp slt i32 %56, %58
br i1 %59, label %60, label %70
60: ; preds = %55
%61 = load i32, ptr %4, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [30 x i8], ptr %3, i64 0, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %65)
br label %67
67: ; preds = %60
%68 = load i32, ptr %4, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %4, align 4
br label %55, !llvm.loop !9
70: ; preds = %55
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph_9388vt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Enter plain text: \00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"\0AEnter key with 26 character:\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"\0A%c\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Your cipher text is:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [30 x i8], align 16
%2 = alloca [27 x i8], align 16
%3 = alloca [30 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = getelementptr inbounds [30 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @gets(ptr noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 26
br i1 %11, label %.lr.ph, label %31
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %26
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 97
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
%16 = call signext i8 (...) @getchar()
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [27 x i8], ptr %2, i64 0, i64 %18
store i8 %16, ptr %19, align 1
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [27 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %24)
br label %26
26: ; preds = %12
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %29, 26
br i1 %30, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %0
store i32 0, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = getelementptr inbounds [30 x i8], ptr %1, i64 0, i64 0
%34 = call i32 @strlen(ptr noundef %33)
%35 = icmp slt i32 %32, %34
br i1 %35, label %.lr.ph2, label %56
.lr.ph2: ; preds = %31
br label %36
36: ; preds = %.lr.ph2, %50
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [30 x i8], ptr %1, i64 0, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = sub nsw i32 %41, 97
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [27 x i8], ptr %2, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [30 x i8], ptr %3, i64 0, i64 %48
store i8 %46, ptr %49, align 1
br label %50
50: ; preds = %36
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %4, align 4
%54 = call i32 @strlen(ptr noundef %33)
%55 = icmp slt i32 %53, %54
br i1 %55, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %31
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %4, align 4
%58 = load i32, ptr %4, align 4
%59 = getelementptr inbounds [30 x i8], ptr %1, i64 0, i64 0
%60 = call i32 @strlen(ptr noundef %59)
%61 = icmp slt i32 %58, %60
br i1 %61, label %.lr.ph5, label %75
.lr.ph5: ; preds = %56
br label %62
62: ; preds = %.lr.ph5, %69
%63 = load i32, ptr %4, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [30 x i8], ptr %3, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %67)
br label %69
69: ; preds = %62
%70 = load i32, ptr %4, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %4, align 4
%72 = load i32, ptr %4, align 4
%73 = call i32 @strlen(ptr noundef %59)
%74 = icmp slt i32 %72, %73
br i1 %74, label %62, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %69
br label %75
75: ; preds = %._crit_edge6, %56
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpx07u73_g.c'
source_filename = "/tmp/tmpx07u73_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx07u73_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmb84i2dn.c'
source_filename = "/tmp/tmpmb84i2dn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LONG_MAX = dso_local global i64 0, align 8
@LONG_MIN = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmb84i2dn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LONG_MAX = dso_local global i64 0, align 8
@LONG_MIN = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx4kra7ar.c'
source_filename = "/tmp/tmpx4kra7ar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx4kra7ar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1m2kjh7t.c'
source_filename = "/tmp/tmp1m2kjh7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"-- Invalidate icache all done --\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Xil_TestICacheAll() #0 {
%1 = call i32 (...) @Xil_ICacheInvalidate()
%2 = call i32 @xil_printf(ptr noundef @.str)
ret i32 0
}
declare i32 @Xil_ICacheInvalidate(...) #1
declare i32 @xil_printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1m2kjh7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"-- Invalidate icache all done --\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Xil_TestICacheAll() #0 {
%1 = call i32 (...) @Xil_ICacheInvalidate()
%2 = call i32 @xil_printf(ptr noundef @.str)
ret i32 0
}
declare i32 @Xil_ICacheInvalidate(...) #1
declare i32 @xil_printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7zhqiutz.c'
source_filename = "/tmp/tmp7zhqiutz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7zhqiutz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpew1yv4xv.c'
source_filename = "/tmp/tmpew1yv4xv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"%2c, %2c: \00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c" : %2d<=>%2d\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"%2d, %2d: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @heapSort2(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef 105, i32 noundef 106)
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @printData(ptr noundef %10, i32 noundef %11)
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %80, %2
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %83
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 1
store i32 %19, ptr %6, align 4
br label %20
20: ; preds = %70, %17
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %79
24: ; preds = %20
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = sitofp i32 %26 to float
%28 = load i32, ptr %5, align 4
%29 = sitofp i32 %28 to float
%30 = fsub float %27, %29
%31 = fpext float %30 to double
%32 = fsub double %31, 5.000000e-01
%33 = fdiv double %32, 2.000000e+00
%34 = fptosi double %33 to i32
%35 = add nsw i32 %25, %34
store i32 %35, ptr %7, align 4
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = icmp slt i32 %40, %45
br i1 %46, label %47, label %70
47: ; preds = %24
%48 = load ptr, ptr %3, align 8
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
store i32 %52, ptr %8, align 4
%53 = load ptr, ptr %3, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %7, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
store i32 %57, ptr %61, align 4
%62 = load i32, ptr %8, align 4
%63 = load ptr, ptr %3, align 8
%64 = load i32, ptr %6, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
store i32 %62, ptr %66, align 4
%67 = load i32, ptr %7, align 4
%68 = load i32, ptr %6, align 4
%69 = call i32 @printf(ptr noundef @.str.1, i32 noundef %67, i32 noundef %68)
br label %70
70: ; preds = %47, %24
%71 = load i32, ptr %5, align 4
%72 = load i32, ptr %6, align 4
%73 = call i32 @printf(ptr noundef @.str.2, i32 noundef %71, i32 noundef %72)
%74 = load ptr, ptr %3, align 8
%75 = load i32, ptr %4, align 4
%76 = call i32 @printData(ptr noundef %74, i32 noundef %75)
%77 = load i32, ptr %6, align 4
%78 = add nsw i32 %77, -1
store i32 %78, ptr %6, align 4
br label %20, !llvm.loop !6
79: ; preds = %20
br label %80
80: ; preds = %79
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %5, align 4
br label %13, !llvm.loop !8
83: ; preds = %13
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printData(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpew1yv4xv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"%2c, %2c: \00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c" : %2d<=>%2d\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"%2d, %2d: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @heapSort2(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef 105, i32 noundef 106)
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @printData(ptr noundef %10, i32 noundef %11)
store i32 0, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph2, label %87
.lr.ph2: ; preds = %2
br label %16
16: ; preds = %.lr.ph2, %81
%17 = load i32, ptr %4, align 4
%18 = sub nsw i32 %17, 1
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp sgt i32 %19, %20
br i1 %21, label %.lr.ph, label %80
.lr.ph: ; preds = %16
br label %22
22: ; preds = %.lr.ph, %68
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = sitofp i32 %24 to float
%26 = load i32, ptr %5, align 4
%27 = sitofp i32 %26 to float
%28 = fsub float %25, %27
%29 = fpext float %28 to double
%30 = fsub double %29, 5.000000e-01
%31 = fdiv double %30, 2.000000e+00
%32 = fptosi double %31 to i32
%33 = add nsw i32 %23, %32
store i32 %33, ptr %7, align 4
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
%44 = icmp slt i32 %38, %43
br i1 %44, label %45, label %68
45: ; preds = %22
%46 = load ptr, ptr %3, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
store i32 %50, ptr %8, align 4
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
%55 = load i32, ptr %54, align 4
%56 = load ptr, ptr %3, align 8
%57 = load i32, ptr %7, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
store i32 %55, ptr %59, align 4
%60 = load i32, ptr %8, align 4
%61 = load ptr, ptr %3, align 8
%62 = load i32, ptr %6, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %6, align 4
%67 = call i32 @printf(ptr noundef @.str.1, i32 noundef %65, i32 noundef %66)
br label %68
68: ; preds = %45, %22
%69 = load i32, ptr %5, align 4
%70 = load i32, ptr %6, align 4
%71 = call i32 @printf(ptr noundef @.str.2, i32 noundef %69, i32 noundef %70)
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %4, align 4
%74 = call i32 @printData(ptr noundef %72, i32 noundef %73)
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %75, -1
store i32 %76, ptr %6, align 4
%77 = load i32, ptr %6, align 4
%78 = load i32, ptr %5, align 4
%79 = icmp sgt i32 %77, %78
br i1 %79, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %68
br label %80
80: ; preds = %._crit_edge, %16
br label %81
81: ; preds = %80
%82 = load i32, ptr %5, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %5, align 4
%84 = load i32, ptr %5, align 4
%85 = load i32, ptr %4, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %81
br label %87
87: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printData(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp6m7dm3ya.c'
source_filename = "/tmp/tmp6m7dm3ya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"ds:word ptr\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emitoneoperandw() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @emitanoperand(i32 noundef 1, ptr noundef @.str.1, i32 noundef 1)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @emitanoperand(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6m7dm3ya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"ds:word ptr\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emitoneoperandw() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @emitanoperand(i32 noundef 1, ptr noundef @.str.1, i32 noundef 1)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @emitanoperand(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5_fgh3dj.c'
source_filename = "/tmp/tmp5_fgh3dj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [3 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6], [3 x i32] [i32 7, i32 8, i32 9]], align 16
@.str = private unnamed_addr constant [24 x i8] c"\E8\BF\99\E6\98\AF\E5\8E\9F\E6\9D\A5\E7\9A\84\E7\9F\A9\E9\98\B5:\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"\E8\BF\99\E6\98\AF\E8\BD\AC\E7\BD\AE\E5\90\8E\E7\9A\84\E7\9F\A9\E9\98\B5:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [3 x [3 x i32]], align 16
%5 = alloca [3 x [3 x i32]], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.a, i64 36, i1 false)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
br label %7
7: ; preds = %41, %0
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %44
10: ; preds = %7
store i32 0, ptr %3, align 4
br label %11
11: ; preds = %36, %10
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %39
14: ; preds = %11
%15 = load i32, ptr %2, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [3 x [3 x i32]], ptr %5, i64 0, i64 %16
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [3 x i32], ptr %17, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [3 x [3 x i32]], ptr %4, i64 0, i64 %23
%25 = load i32, ptr %2, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [3 x i32], ptr %24, i64 0, i64 %26
store i32 %21, ptr %27, align 4
%28 = load i32, ptr %2, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [3 x [3 x i32]], ptr %5, i64 0, i64 %29
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [3 x i32], ptr %30, i64 0, i64 %32
%34 = load i32, ptr %33, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %34)
br label %36
36: ; preds = %14
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %3, align 4
br label %11, !llvm.loop !6
39: ; preds = %11
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %41
41: ; preds = %39
%42 = load i32, ptr %2, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %2, align 4
br label %7, !llvm.loop !8
44: ; preds = %7
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %47
47: ; preds = %68, %44
%48 = load i32, ptr %2, align 4
%49 = icmp slt i32 %48, 3
br i1 %49, label %50, label %71
50: ; preds = %47
store i32 0, ptr %3, align 4
br label %51
51: ; preds = %63, %50
%52 = load i32, ptr %3, align 4
%53 = icmp slt i32 %52, 3
br i1 %53, label %54, label %66
54: ; preds = %51
%55 = load i32, ptr %2, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [3 x [3 x i32]], ptr %4, i64 0, i64 %56
%58 = load i32, ptr %3, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [3 x i32], ptr %57, i64 0, i64 %59
%61 = load i32, ptr %60, align 4
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %61)
br label %63
63: ; preds = %54
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %3, align 4
br label %51, !llvm.loop !9
66: ; preds = %51
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %68
68: ; preds = %66
%69 = load i32, ptr %2, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %2, align 4
br label %47, !llvm.loop !10
71: ; preds = %47
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5_fgh3dj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [3 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6], [3 x i32] [i32 7, i32 8, i32 9]], align 16
@.str = private unnamed_addr constant [24 x i8] c"\E8\BF\99\E6\98\AF\E5\8E\9F\E6\9D\A5\E7\9A\84\E7\9F\A9\E9\98\B5:\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"\E8\BF\99\E6\98\AF\E8\BD\AC\E7\BD\AE\E5\90\8E\E7\9A\84\E7\9F\A9\E9\98\B5:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [3 x [3 x i32]], align 16
%5 = alloca [3 x [3 x i32]], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.a, i64 36, i1 false)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %41
store i32 0, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %.lr.ph, label %39
.lr.ph: ; preds = %9
br label %12
12: ; preds = %.lr.ph, %34
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [3 x [3 x i32]], ptr %5, i64 0, i64 %14
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [3 x i32], ptr %15, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [3 x [3 x i32]], ptr %4, i64 0, i64 %21
%23 = load i32, ptr %2, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [3 x i32], ptr %22, i64 0, i64 %24
store i32 %19, ptr %25, align 4
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [3 x [3 x i32]], ptr %5, i64 0, i64 %27
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [3 x i32], ptr %28, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %32)
br label %34
34: ; preds = %12
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %37, 3
br i1 %38, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %39
39: ; preds = %._crit_edge, %9
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %41
41: ; preds = %39
%42 = load i32, ptr %2, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %2, align 4
%44 = load i32, ptr %2, align 4
%45 = icmp slt i32 %44, 3
br i1 %45, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%49 = load i32, ptr %2, align 4
%50 = icmp slt i32 %49, 3
br i1 %50, label %.lr.ph8, label %75
.lr.ph8: ; preds = %46
br label %51
51: ; preds = %.lr.ph8, %70
store i32 0, ptr %3, align 4
%52 = load i32, ptr %3, align 4
%53 = icmp slt i32 %52, 3
br i1 %53, label %.lr.ph5, label %68
.lr.ph5: ; preds = %51
br label %54
54: ; preds = %.lr.ph5, %63
%55 = load i32, ptr %2, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [3 x [3 x i32]], ptr %4, i64 0, i64 %56
%58 = load i32, ptr %3, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [3 x i32], ptr %57, i64 0, i64 %59
%61 = load i32, ptr %60, align 4
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %61)
br label %63
63: ; preds = %54
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %3, align 4
%66 = load i32, ptr %3, align 4
%67 = icmp slt i32 %66, 3
br i1 %67, label %54, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %63
br label %68
68: ; preds = %._crit_edge6, %51
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %70
70: ; preds = %68
%71 = load i32, ptr %2, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %2, align 4
%73 = load i32, ptr %2, align 4
%74 = icmp slt i32 %73, 3
br i1 %74, label %51, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %70
br label %75
75: ; preds = %._crit_edge9, %46
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpe2fjs191.c'
source_filename = "/tmp/tmpe2fjs191.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe2fjs191.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe2lj200q.c'
source_filename = "/tmp/tmpe2lj200q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.n1 = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
@__const.main.p1 = private unnamed_addr constant [3 x i32] [i32 1, i32 3, i32 2], align 4
@__const.main.n2 = private unnamed_addr constant [3 x i32] [i32 3, i32 2, i32 1], align 4
@__const.main.p2 = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
@__const.main.n3 = private unnamed_addr constant [3 x i32] [i32 1, i32 5, i32 5], align 4
@__const.main.p3 = private unnamed_addr constant [3 x i32] [i32 5, i32 1, i32 5], align 4
@.str = private unnamed_addr constant [17 x i8] c"assert fail: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"n1\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"n2\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"n3\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"everything is fine!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [3 x i32], align 4
%7 = alloca [3 x i32], align 4
%8 = alloca [3 x i32], align 4
%9 = alloca [3 x i32], align 4
%10 = alloca [3 x i32], align 4
%11 = alloca [3 x i32], align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.n1, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @__const.main.p1, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 @__const.main.n2, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 @__const.main.p2, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 @__const.main.n3, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 @__const.main.p3, i64 12, i1 false)
%15 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%16 = call i32 @nextPermutation(ptr noundef %15, i32 noundef 3)
store i32 0, ptr %12, align 4
br label %17
17: ; preds = %33, %2
%18 = load i32, ptr %12, align 4
%19 = icmp slt i32 %18, 3
br i1 %19, label %20, label %36
20: ; preds = %17
%21 = load i32, ptr %12, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %12, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp eq i32 %24, %28
br i1 %29, label %32, label %30
30: ; preds = %20
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %82
32: ; preds = %20
br label %33
33: ; preds = %32
%34 = load i32, ptr %12, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %12, align 4
br label %17, !llvm.loop !6
36: ; preds = %17
%37 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 0
%38 = call i32 @nextPermutation(ptr noundef %37, i32 noundef 3)
store i32 0, ptr %13, align 4
br label %39
39: ; preds = %55, %36
%40 = load i32, ptr %13, align 4
%41 = icmp slt i32 %40, 3
br i1 %41, label %42, label %58
42: ; preds = %39
%43 = load i32, ptr %13, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = icmp eq i32 %46, %50
br i1 %51, label %54, label %52
52: ; preds = %42
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %82
54: ; preds = %42
br label %55
55: ; preds = %54
%56 = load i32, ptr %13, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %13, align 4
br label %39, !llvm.loop !8
58: ; preds = %39
%59 = getelementptr inbounds [3 x i32], ptr %10, i64 0, i64 0
%60 = call i32 @nextPermutation(ptr noundef %59, i32 noundef 3)
store i32 0, ptr %14, align 4
br label %61
61: ; preds = %77, %58
%62 = load i32, ptr %14, align 4
%63 = icmp slt i32 %62, 3
br i1 %63, label %64, label %80
64: ; preds = %61
%65 = load i32, ptr %14, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 %66
%68 = load i32, ptr %67, align 4
%69 = load i32, ptr %14, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [3 x i32], ptr %10, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = icmp eq i32 %68, %72
br i1 %73, label %76, label %74
74: ; preds = %64
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %82
76: ; preds = %64
br label %77
77: ; preds = %76
%78 = load i32, ptr %14, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %14, align 4
br label %61, !llvm.loop !9
80: ; preds = %61
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %82
82: ; preds = %80, %74, %52, %30
%83 = load i32, ptr %3, align 4
ret i32 %83
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @nextPermutation(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe2lj200q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.n1 = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
@__const.main.p1 = private unnamed_addr constant [3 x i32] [i32 1, i32 3, i32 2], align 4
@__const.main.n2 = private unnamed_addr constant [3 x i32] [i32 3, i32 2, i32 1], align 4
@__const.main.p2 = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
@__const.main.n3 = private unnamed_addr constant [3 x i32] [i32 1, i32 5, i32 5], align 4
@__const.main.p3 = private unnamed_addr constant [3 x i32] [i32 5, i32 1, i32 5], align 4
@.str = private unnamed_addr constant [17 x i8] c"assert fail: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"n1\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"n2\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"n3\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"everything is fine!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [3 x i32], align 4
%7 = alloca [3 x i32], align 4
%8 = alloca [3 x i32], align 4
%9 = alloca [3 x i32], align 4
%10 = alloca [3 x i32], align 4
%11 = alloca [3 x i32], align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.n1, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @__const.main.p1, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 @__const.main.n2, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 @__const.main.p2, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 @__const.main.n3, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 @__const.main.p3, i64 12, i1 false)
%15 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%16 = call i32 @nextPermutation(ptr noundef %15, i32 noundef 3)
store i32 0, ptr %12, align 4
%17 = load i32, ptr %12, align 4
%18 = icmp slt i32 %17, 3
br i1 %18, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %32
%20 = load i32, ptr %12, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %12, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp eq i32 %23, %27
br i1 %28, label %31, label %29
29: ; preds = %19
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %85
31: ; preds = %19
br label %32
32: ; preds = %31
%33 = load i32, ptr %12, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %12, align 4
%35 = load i32, ptr %12, align 4
%36 = icmp slt i32 %35, 3
br i1 %36, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %2
%38 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 0
%39 = call i32 @nextPermutation(ptr noundef %38, i32 noundef 3)
store i32 0, ptr %13, align 4
%40 = load i32, ptr %13, align 4
%41 = icmp slt i32 %40, 3
br i1 %41, label %.lr.ph2, label %60
.lr.ph2: ; preds = %37
br label %42
42: ; preds = %.lr.ph2, %55
%43 = load i32, ptr %13, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = icmp eq i32 %46, %50
br i1 %51, label %54, label %52
52: ; preds = %42
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %85
54: ; preds = %42
br label %55
55: ; preds = %54
%56 = load i32, ptr %13, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %13, align 4
%58 = load i32, ptr %13, align 4
%59 = icmp slt i32 %58, 3
br i1 %59, label %42, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %55
br label %60
60: ; preds = %._crit_edge3, %37
%61 = getelementptr inbounds [3 x i32], ptr %10, i64 0, i64 0
%62 = call i32 @nextPermutation(ptr noundef %61, i32 noundef 3)
store i32 0, ptr %14, align 4
%63 = load i32, ptr %14, align 4
%64 = icmp slt i32 %63, 3
br i1 %64, label %.lr.ph5, label %83
.lr.ph5: ; preds = %60
br label %65
65: ; preds = %.lr.ph5, %78
%66 = load i32, ptr %14, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 %67
%69 = load i32, ptr %68, align 4
%70 = load i32, ptr %14, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [3 x i32], ptr %10, i64 0, i64 %71
%73 = load i32, ptr %72, align 4
%74 = icmp eq i32 %69, %73
br i1 %74, label %77, label %75
75: ; preds = %65
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %85
77: ; preds = %65
br label %78
78: ; preds = %77
%79 = load i32, ptr %14, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %14, align 4
%81 = load i32, ptr %14, align 4
%82 = icmp slt i32 %81, 3
br i1 %82, label %65, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %78
br label %83
83: ; preds = %._crit_edge6, %60
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %85
85: ; preds = %83, %75, %52, %29
%86 = load i32, ptr %3, align 4
ret i32 %86
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @nextPermutation(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpoipzht6u.c'
source_filename = "/tmp/tmpoipzht6u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [48 x i8] c"ERROR: while setting socket options. Exiting...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @htxd_set_socket_option(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr @SOL_SOCKET, align 4
%7 = load i32, ptr @SO_REUSEADDR, align 4
%8 = call i32 @setsockopt(i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %4, i32 noundef 4)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = call i32 @perror(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %1
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoipzht6u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [48 x i8] c"ERROR: while setting socket options. Exiting...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @htxd_set_socket_option(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr @SOL_SOCKET, align 4
%7 = load i32, ptr @SO_REUSEADDR, align 4
%8 = call i32 @setsockopt(i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %4, i32 noundef 4)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = call i32 @perror(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %1
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcrtbz927.c'
source_filename = "/tmp/tmpcrtbz927.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcrtbz927.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo6dz2cbz.c'
source_filename = "/tmp/tmpo6dz2cbz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_file_name(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%11 = load ptr, ptr %8, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 46)
store ptr %12, ptr %10, align 8
br label %13
13: ; preds = %28, %4
%14 = load ptr, ptr %8, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %13
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %10, align 8
%21 = icmp ne ptr %19, %20
br label %22
22: ; preds = %18, %13
%23 = phi i1 [ false, %13 ], [ %21, %18 ]
br i1 %23, label %24, label %36
24: ; preds = %22
%25 = load i64, ptr %7, align 8
%26 = icmp ule i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 0, ptr %5, align 4
br label %54
28: ; preds = %24
%29 = load i64, ptr %7, align 8
%30 = add i64 %29, -1
store i64 %30, ptr %7, align 8
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %8, align 8
%33 = load i8, ptr %31, align 1
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %6, align 8
store i8 %33, ptr %34, align 1
br label %13, !llvm.loop !6
36: ; preds = %22
br label %37
37: ; preds = %48, %36
%38 = load i64, ptr %7, align 8
%39 = icmp ule i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 0, ptr %5, align 4
br label %54
41: ; preds = %37
%42 = load i64, ptr %7, align 8
%43 = add i64 %42, -1
store i64 %43, ptr %7, align 8
%44 = load ptr, ptr %9, align 8
%45 = load i8, ptr %44, align 1
%46 = load ptr, ptr %6, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %6, align 8
store i8 %45, ptr %46, align 1
br label %48
48: ; preds = %41
%49 = load ptr, ptr %9, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %9, align 8
%51 = load i8, ptr %49, align 1
%52 = icmp ne i8 %51, 0
br i1 %52, label %37, label %53, !llvm.loop !8
53: ; preds = %48
store i32 1, ptr %5, align 4
br label %54
54: ; preds = %53, %40, %27
%55 = load i32, ptr %5, align 4
ret i32 %55
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo6dz2cbz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_file_name(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%11 = load ptr, ptr %8, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 46)
store ptr %12, ptr %10, align 8
br label %13
13: ; preds = %28, %4
%14 = load ptr, ptr %8, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %13
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %10, align 8
%21 = icmp ne ptr %19, %20
br label %22
22: ; preds = %18, %13
%23 = phi i1 [ false, %13 ], [ %21, %18 ]
br i1 %23, label %24, label %36
24: ; preds = %22
%25 = load i64, ptr %7, align 8
%26 = icmp ule i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 0, ptr %5, align 4
br label %54
28: ; preds = %24
%29 = load i64, ptr %7, align 8
%30 = add i64 %29, -1
store i64 %30, ptr %7, align 8
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %8, align 8
%33 = load i8, ptr %31, align 1
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %6, align 8
store i8 %33, ptr %34, align 1
br label %13, !llvm.loop !6
36: ; preds = %22
br label %37
37: ; preds = %48, %36
%38 = load i64, ptr %7, align 8
%39 = icmp ule i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 0, ptr %5, align 4
br label %54
41: ; preds = %37
%42 = load i64, ptr %7, align 8
%43 = add i64 %42, -1
store i64 %43, ptr %7, align 8
%44 = load ptr, ptr %9, align 8
%45 = load i8, ptr %44, align 1
%46 = load ptr, ptr %6, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %6, align 8
store i8 %45, ptr %46, align 1
br label %48
48: ; preds = %41
%49 = load ptr, ptr %9, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %9, align 8
%51 = load i8, ptr %49, align 1
%52 = icmp ne i8 %51, 0
br i1 %52, label %37, label %53, !llvm.loop !8
53: ; preds = %48
store i32 1, ptr %5, align 4
br label %54
54: ; preds = %53, %40, %27
%55 = load i32, ptr %5, align 4
ret i32 %55
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpw9m9yxar.c'
source_filename = "/tmp/tmpw9m9yxar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@LOG_ERR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"Failed to read %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_cpu_temp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %14
8: ; preds = %1
%9 = load ptr, ptr %4, align 8
%10 = call i32 @fscanf(ptr noundef %9, ptr noundef @.str.1, ptr noundef %3)
%11 = load ptr, ptr %4, align 8
%12 = call i32 @fclose(ptr noundef %11)
%13 = load i32, ptr %3, align 4
ret i32 %13
14: ; preds = %1
%15 = load i32, ptr @LOG_ERR, align 4
%16 = load ptr, ptr %2, align 8
%17 = call i32 @syslog(i32 noundef %15, ptr noundef @.str.2, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw9m9yxar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@LOG_ERR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"Failed to read %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_cpu_temp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %14
8: ; preds = %1
%9 = load ptr, ptr %4, align 8
%10 = call i32 @fscanf(ptr noundef %9, ptr noundef @.str.1, ptr noundef %3)
%11 = load ptr, ptr %4, align 8
%12 = call i32 @fclose(ptr noundef %11)
%13 = load i32, ptr %3, align 4
ret i32 %13
14: ; preds = %1
%15 = load i32, ptr @LOG_ERR, align 4
%16 = load ptr, ptr %2, align 8
%17 = call i32 @syslog(i32 noundef %15, ptr noundef @.str.2, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpifsoor85.c'
source_filename = "/tmp/tmpifsoor85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @platform_access(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @access(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @access(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpifsoor85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @platform_access(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @access(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @access(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy9o_8ra_.c'
source_filename = "/tmp/tmpy9o_8ra_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Usage : md2fodt <input> <output>\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Unable to open input file\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Unable to create output file\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"Done processing\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @puts(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %41
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %6, align 8
%17 = load ptr, ptr %6, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %21, label %19
19: ; preds = %12
%20 = call i32 @puts(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %41
21: ; preds = %12
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.3)
store ptr %25, ptr %7, align 8
%26 = load ptr, ptr %7, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %32, label %28
28: ; preds = %21
%29 = call i32 @puts(ptr noundef @.str.4)
%30 = load ptr, ptr %6, align 8
%31 = call i32 @fclose(ptr noundef %30)
store i32 3, ptr %3, align 4
br label %41
32: ; preds = %21
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %7, align 8
%35 = call i32 @process(ptr noundef %33, ptr noundef %34)
%36 = load ptr, ptr %7, align 8
%37 = call i32 @fclose(ptr noundef %36)
%38 = load ptr, ptr %6, align 8
%39 = call i32 @fclose(ptr noundef %38)
%40 = call i32 @puts(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
br label %41
41: ; preds = %32, %28, %19, %10
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare i32 @puts(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @process(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy9o_8ra_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Usage : md2fodt <input> <output>\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Unable to open input file\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Unable to create output file\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"Done processing\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @puts(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %41
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %6, align 8
%17 = load ptr, ptr %6, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %21, label %19
19: ; preds = %12
%20 = call i32 @puts(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %41
21: ; preds = %12
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.3)
store ptr %25, ptr %7, align 8
%26 = load ptr, ptr %7, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %32, label %28
28: ; preds = %21
%29 = call i32 @puts(ptr noundef @.str.4)
%30 = load ptr, ptr %6, align 8
%31 = call i32 @fclose(ptr noundef %30)
store i32 3, ptr %3, align 4
br label %41
32: ; preds = %21
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %7, align 8
%35 = call i32 @process(ptr noundef %33, ptr noundef %34)
%36 = load ptr, ptr %7, align 8
%37 = call i32 @fclose(ptr noundef %36)
%38 = load ptr, ptr %6, align 8
%39 = call i32 @fclose(ptr noundef %38)
%40 = call i32 @puts(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
br label %41
41: ; preds = %32, %28, %19, %10
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare i32 @puts(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @process(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvjzf7cht.c'
source_filename = "/tmp/tmpvjzf7cht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @onlyonebitset(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = sub nsw i32 %7, 1
%9 = and i32 %6, %8
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
br label %12
12: ; preds = %5, %1
%13 = phi i1 [ false, %1 ], [ %11, %5 ]
%14 = zext i1 %13 to i32
ret i32 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvjzf7cht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @onlyonebitset(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = sub nsw i32 %7, 1
%9 = and i32 %6, %8
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
br label %12
12: ; preds = %5, %1
%13 = phi i1 [ false, %1 ], [ %11, %5 ]
%14 = zext i1 %13 to i32
ret i32 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5ejsfc_5.c'
source_filename = "/tmp/tmp5ejsfc_5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @offset_from_filename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [5 x i8], align 1
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @is_my_file(ptr noundef %5)
%7 = call i32 @assert(i32 noundef %6)
%8 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strncpy(ptr noundef %8, ptr noundef %9, i32 noundef 4)
%11 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 4
store i8 0, ptr %11, align 1
%12 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%13 = call i64 @strtol(ptr noundef %12, ptr noundef null, i32 noundef 10)
%14 = trunc i64 %13 to i32
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = mul nsw i32 %16, 1073741824
ret i32 %17
}
declare i32 @assert(i32 noundef) #1
declare i32 @is_my_file(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5ejsfc_5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @offset_from_filename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [5 x i8], align 1
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @is_my_file(ptr noundef %5)
%7 = call i32 @assert(i32 noundef %6)
%8 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strncpy(ptr noundef %8, ptr noundef %9, i32 noundef 4)
%11 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 4
store i8 0, ptr %11, align 1
%12 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%13 = call i64 @strtol(ptr noundef %12, ptr noundef null, i32 noundef 10)
%14 = trunc i64 %13 to i32
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = mul nsw i32 %16, 1073741824
ret i32 %17
}
declare i32 @assert(i32 noundef) #1
declare i32 @is_my_file(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_0c84zog.c'
source_filename = "/tmp/tmp_0c84zog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ps_summary_is_registered(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @obus_object_is_registered(ptr noundef %5)
ret i32 %6
}
declare i32 @obus_object_is_registered(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_0c84zog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ps_summary_is_registered(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @obus_object_is_registered(ptr noundef %5)
ret i32 %6
}
declare i32 @obus_object_is_registered(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0l95nkla.c'
source_filename = "/tmp/tmp0l95nkla.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"meu_fifo\00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"Arquivo fifo nao existe. Execute o ./ler para cria-lo\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@PIPE_BUF = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [6 x i8] c"fgets\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.stat, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @stat(ptr noundef @.str, ptr noundef %2)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.1)
%11 = load i32, ptr @EXIT_FAILURE, align 4
%12 = call i32 @exit(i32 noundef %11) #4
unreachable
13: ; preds = %0
%14 = load i32, ptr @O_WRONLY, align 4
%15 = call i32 @open(ptr noundef @.str, i32 noundef %14)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %22
18: ; preds = %13
%19 = call i32 @perror(ptr noundef @.str.2)
%20 = load i32, ptr @EXIT_FAILURE, align 4
%21 = call i32 @exit(i32 noundef %20) #4
unreachable
22: ; preds = %13
br label %23
23: ; preds = %22, %42
%24 = load i32, ptr @PIPE_BUF, align 4
%25 = zext i32 %24 to i64
%26 = call ptr @llvm.stacksave()
store ptr %26, ptr %4, align 8
%27 = alloca i8, i64 %25, align 16
store i64 %25, ptr %5, align 8
%28 = load i32, ptr @PIPE_BUF, align 4
%29 = load i32, ptr @stdin, align 4
%30 = call ptr @fgets(ptr noundef %27, i32 noundef %28, i32 noundef %29)
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %34
32: ; preds = %23
%33 = call i32 @perror(ptr noundef @.str.3)
store i32 3, ptr %6, align 4
br label %39
34: ; preds = %23
%35 = load i32, ptr %3, align 4
%36 = call i64 @strlen(ptr noundef %27)
%37 = add nsw i64 %36, 1
%38 = call i32 @write(i32 noundef %35, ptr noundef %27, i64 noundef %37)
store i32 0, ptr %6, align 4
br label %39
39: ; preds = %34, %32
%40 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %40)
%41 = load i32, ptr %6, align 4
switch i32 %41, label %48 [
i32 0, label %42
i32 3, label %43
]
42: ; preds = %39
br label %23
43: ; preds = %39
%44 = load i32, ptr %3, align 4
%45 = call i32 @close(i32 noundef %44)
%46 = load i32, ptr @EXIT_SUCCESS, align 4
%47 = call i32 @exit(i32 noundef %46) #4
unreachable
48: ; preds = %39
unreachable
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0l95nkla.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"meu_fifo\00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"Arquivo fifo nao existe. Execute o ./ler para cria-lo\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@PIPE_BUF = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [6 x i8] c"fgets\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.stat, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @stat(ptr noundef @.str, ptr noundef %2)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.1)
%11 = load i32, ptr @EXIT_FAILURE, align 4
%12 = call i32 @exit(i32 noundef %11) #4
unreachable
13: ; preds = %0
%14 = load i32, ptr @O_WRONLY, align 4
%15 = call i32 @open(ptr noundef @.str, i32 noundef %14)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %22
18: ; preds = %13
%19 = call i32 @perror(ptr noundef @.str.2)
%20 = load i32, ptr @EXIT_FAILURE, align 4
%21 = call i32 @exit(i32 noundef %20) #4
unreachable
22: ; preds = %13
br label %23
23: ; preds = %42, %22
%24 = load i32, ptr @PIPE_BUF, align 4
%25 = zext i32 %24 to i64
%26 = call ptr @llvm.stacksave()
store ptr %26, ptr %4, align 8
%27 = alloca i8, i64 %25, align 16
store i64 %25, ptr %5, align 8
%28 = load i32, ptr @PIPE_BUF, align 4
%29 = load i32, ptr @stdin, align 4
%30 = call ptr @fgets(ptr noundef %27, i32 noundef %28, i32 noundef %29)
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %34
32: ; preds = %23
%33 = call i32 @perror(ptr noundef @.str.3)
store i32 3, ptr %6, align 4
br label %39
34: ; preds = %23
%35 = load i32, ptr %3, align 4
%36 = call i64 @strlen(ptr noundef %27)
%37 = add nsw i64 %36, 1
%38 = call i32 @write(i32 noundef %35, ptr noundef %27, i64 noundef %37)
store i32 0, ptr %6, align 4
br label %39
39: ; preds = %34, %32
%40 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %40)
%41 = load i32, ptr %6, align 4
switch i32 %41, label %48 [
i32 0, label %42
i32 3, label %43
]
42: ; preds = %39
br label %23
43: ; preds = %39
%44 = load i32, ptr %3, align 4
%45 = call i32 @close(i32 noundef %44)
%46 = load i32, ptr @EXIT_SUCCESS, align 4
%47 = call i32 @exit(i32 noundef %46) #4
unreachable
48: ; preds = %39
unreachable
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpanno1dph.c'
source_filename = "/tmp/tmpanno1dph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@nfa.inv = internal global [100000 x double] zeroinitializer, align 16
@.str = private unnamed_addr constant [29 x i8] c"nfa: wrong n, k or p values.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @nfa(i32 noundef %0, i32 noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
store double 1.000000e-01, ptr %10, align 8
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %34, label %21
21: ; preds = %4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %34, label %24
24: ; preds = %21
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp sgt i32 %25, %26
br i1 %27, label %34, label %28
28: ; preds = %24
%29 = load double, ptr %8, align 8
%30 = fcmp ole double %29, 0.000000e+00
br i1 %30, label %34, label %31
31: ; preds = %28
%32 = load double, ptr %8, align 8
%33 = fcmp oge double %32, 1.000000e+00
br i1 %33, label %34, label %36
34: ; preds = %31, %28, %24, %21, %4
%35 = call i32 @error(ptr noundef @.str)
br label %36
36: ; preds = %34, %31
%37 = load i32, ptr %6, align 4
%38 = icmp eq i32 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = load i32, ptr %7, align 4
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %39, %36
%43 = load double, ptr %9, align 8
%44 = fneg double %43
store double %44, ptr %5, align 8
br label %247
45: ; preds = %39
%46 = load i32, ptr %6, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp eq i32 %46, %47
br i1 %48, label %49, label %58
49: ; preds = %45
%50 = load double, ptr %9, align 8
%51 = fneg double %50
%52 = load i32, ptr %6, align 4
%53 = sitofp i32 %52 to double
%54 = load double, ptr %8, align 8
%55 = call double @log10(double noundef %54) #4
%56 = fneg double %53
%57 = call double @llvm.fmuladd.f64(double %56, double %55, double %51)
store double %57, ptr %5, align 8
br label %247
58: ; preds = %45
%59 = load double, ptr %8, align 8
%60 = load double, ptr %8, align 8
%61 = fsub double 1.000000e+00, %60
%62 = fdiv double %59, %61
store double %62, ptr %17, align 8
%63 = load i32, ptr %6, align 4
%64 = sitofp i32 %63 to double
%65 = fadd double %64, 1.000000e+00
%66 = fcmp ogt double %65, 1.500000e+01
br i1 %66, label %67, label %72
67: ; preds = %58
%68 = load i32, ptr %6, align 4
%69 = sitofp i32 %68 to double
%70 = fadd double %69, 1.000000e+00
%71 = call double @log_gamma_windschitl(double noundef %70)
br label %77
72: ; preds = %58
%73 = load i32, ptr %6, align 4
%74 = sitofp i32 %73 to double
%75 = fadd double %74, 1.000000e+00
%76 = call double @log_gamma_lanczos(double noundef %75)
br label %77
77: ; preds = %72, %67
%78 = phi double [ %71, %67 ], [ %76, %72 ]
%79 = load i32, ptr %7, align 4
%80 = sitofp i32 %79 to double
%81 = fadd double %80, 1.000000e+00
%82 = fcmp ogt double %81, 1.500000e+01
br i1 %82, label %83, label %88
83: ; preds = %77
%84 = load i32, ptr %7, align 4
%85 = sitofp i32 %84 to double
%86 = fadd double %85, 1.000000e+00
%87 = call double @log_gamma_windschitl(double noundef %86)
br label %93
88: ; preds = %77
%89 = load i32, ptr %7, align 4
%90 = sitofp i32 %89 to double
%91 = fadd double %90, 1.000000e+00
%92 = call double @log_gamma_lanczos(double noundef %91)
br label %93
93: ; preds = %88, %83
%94 = phi double [ %87, %83 ], [ %92, %88 ]
%95 = fsub double %78, %94
%96 = load i32, ptr %6, align 4
%97 = load i32, ptr %7, align 4
%98 = sub nsw i32 %96, %97
%99 = sitofp i32 %98 to double
%100 = fadd double %99, 1.000000e+00
%101 = fcmp ogt double %100, 1.500000e+01
br i1 %101, label %102, label %109
102: ; preds = %93
%103 = load i32, ptr %6, align 4
%104 = load i32, ptr %7, align 4
%105 = sub nsw i32 %103, %104
%106 = sitofp i32 %105 to double
%107 = fadd double %106, 1.000000e+00
%108 = call double @log_gamma_windschitl(double noundef %107)
br label %116
109: ; preds = %93
%110 = load i32, ptr %6, align 4
%111 = load i32, ptr %7, align 4
%112 = sub nsw i32 %110, %111
%113 = sitofp i32 %112 to double
%114 = fadd double %113, 1.000000e+00
%115 = call double @log_gamma_lanczos(double noundef %114)
br label %116
116: ; preds = %109, %102
%117 = phi double [ %108, %102 ], [ %115, %109 ]
%118 = fsub double %95, %117
%119 = load i32, ptr %7, align 4
%120 = sitofp i32 %119 to double
%121 = load double, ptr %8, align 8
%122 = call double @log(double noundef %121) #4
%123 = call double @llvm.fmuladd.f64(double %120, double %122, double %118)
%124 = load i32, ptr %6, align 4
%125 = load i32, ptr %7, align 4
%126 = sub nsw i32 %124, %125
%127 = sitofp i32 %126 to double
%128 = load double, ptr %8, align 8
%129 = fsub double 1.000000e+00, %128
%130 = call double @log(double noundef %129) #4
%131 = call double @llvm.fmuladd.f64(double %127, double %130, double %123)
store double %131, ptr %11, align 8
%132 = load double, ptr %11, align 8
%133 = call double @exp(double noundef %132) #4
store double %133, ptr %12, align 8
%134 = load double, ptr %12, align 8
%135 = call i64 @double_equal(double noundef %134, double noundef 0.000000e+00)
%136 = icmp ne i64 %135, 0
br i1 %136, label %137, label %154
137: ; preds = %116
%138 = load i32, ptr %7, align 4
%139 = sitofp i32 %138 to double
%140 = load i32, ptr %6, align 4
%141 = sitofp i32 %140 to double
%142 = load double, ptr %8, align 8
%143 = fmul double %141, %142
%144 = fcmp ogt double %139, %143
br i1 %144, label %145, label %151
145: ; preds = %137
%146 = load double, ptr %11, align 8
%147 = fneg double %146
%148 = fdiv double %147, 0x40026BB1BBB55516
%149 = load double, ptr %9, align 8
%150 = fsub double %148, %149
store double %150, ptr %5, align 8
br label %247
151: ; preds = %137
%152 = load double, ptr %9, align 8
%153 = fneg double %152
store double %153, ptr %5, align 8
br label %247
154: ; preds = %116
%155 = load double, ptr %12, align 8
store double %155, ptr %15, align 8
%156 = load i32, ptr %7, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %18, align 4
br label %158
158: ; preds = %238, %154
%159 = load i32, ptr %18, align 4
%160 = load i32, ptr %6, align 4
%161 = icmp sle i32 %159, %160
br i1 %161, label %162, label %241
162: ; preds = %158
%163 = load i32, ptr %6, align 4
%164 = load i32, ptr %18, align 4
%165 = sub nsw i32 %163, %164
%166 = add nsw i32 %165, 1
%167 = sitofp i32 %166 to double
%168 = load i32, ptr %18, align 4
%169 = icmp slt i32 %168, 100000
br i1 %169, label %170, label %190
170: ; preds = %162
%171 = load i32, ptr %18, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [100000 x double], ptr @nfa.inv, i64 0, i64 %172
%174 = load double, ptr %173, align 8
%175 = fcmp une double %174, 0.000000e+00
br i1 %175, label %176, label %181
176: ; preds = %170
%177 = load i32, ptr %18, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds [100000 x double], ptr @nfa.inv, i64 0, i64 %178
%180 = load double, ptr %179, align 8
br label %188
181: ; preds = %170
%182 = load i32, ptr %18, align 4
%183 = sitofp i32 %182 to double
%184 = fdiv double 1.000000e+00, %183
%185 = load i32, ptr %18, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [100000 x double], ptr @nfa.inv, i64 0, i64 %186
store double %184, ptr %187, align 8
br label %188
188: ; preds = %181, %176
%189 = phi double [ %180, %176 ], [ %184, %181 ]
br label %194
190: ; preds = %162
%191 = load i32, ptr %18, align 4
%192 = sitofp i32 %191 to double
%193 = fdiv double 1.000000e+00, %192
br label %194
194: ; preds = %190, %188
%195 = phi double [ %189, %188 ], [ %193, %190 ]
%196 = fmul double %167, %195
store double %196, ptr %13, align 8
%197 = load double, ptr %13, align 8
%198 = load double, ptr %17, align 8
%199 = fmul double %197, %198
store double %199, ptr %14, align 8
%200 = load double, ptr %14, align 8
%201 = load double, ptr %12, align 8
%202 = fmul double %201, %200
store double %202, ptr %12, align 8
%203 = load double, ptr %12, align 8
%204 = load double, ptr %15, align 8
%205 = fadd double %204, %203
store double %205, ptr %15, align 8
%206 = load double, ptr %13, align 8
%207 = fcmp olt double %206, 1.000000e+00
br i1 %207, label %208, label %237
208: ; preds = %194
%209 = load double, ptr %12, align 8
%210 = load double, ptr %14, align 8
%211 = load i32, ptr %6, align 4
%212 = load i32, ptr %18, align 4
%213 = sub nsw i32 %211, %212
%214 = add nsw i32 %213, 1
%215 = sitofp i32 %214 to double
%216 = call double @pow(double noundef %210, double noundef %215) #4
%217 = fsub double 1.000000e+00, %216
%218 = load double, ptr %14, align 8
%219 = fsub double 1.000000e+00, %218
%220 = fdiv double %217, %219
%221 = fsub double %220, 1.000000e+00
%222 = fmul double %209, %221
store double %222, ptr %16, align 8
%223 = load double, ptr %16, align 8
%224 = load double, ptr %10, align 8
%225 = load double, ptr %15, align 8
%226 = call double @log10(double noundef %225) #4
%227 = fneg double %226
%228 = load double, ptr %9, align 8
%229 = fsub double %227, %228
%230 = call double @llvm.fabs.f64(double %229)
%231 = fmul double %224, %230
%232 = load double, ptr %15, align 8
%233 = fmul double %231, %232
%234 = fcmp olt double %223, %233
br i1 %234, label %235, label %236
235: ; preds = %208
br label %241
236: ; preds = %208
br label %237
237: ; preds = %236, %194
br label %238
238: ; preds = %237
%239 = load i32, ptr %18, align 4
%240 = add nsw i32 %239, 1
store i32 %240, ptr %18, align 4
br label %158, !llvm.loop !6
241: ; preds = %235, %158
%242 = load double, ptr %15, align 8
%243 = call double @log10(double noundef %242) #4
%244 = fneg double %243
%245 = load double, ptr %9, align 8
%246 = fsub double %244, %245
store double %246, ptr %5, align 8
br label %247
247: ; preds = %241, %151, %145, %49, %42
%248 = load double, ptr %5, align 8
ret double %248
}
declare i32 @error(ptr noundef) #1
; Function Attrs: nounwind
declare double @log10(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @log_gamma_windschitl(double noundef) #1
declare double @log_gamma_lanczos(double noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #2
declare i64 @double_equal(double noundef, double noundef) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpanno1dph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@nfa.inv = internal global [100000 x double] zeroinitializer, align 16
@.str = private unnamed_addr constant [29 x i8] c"nfa: wrong n, k or p values.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @nfa(i32 noundef %0, i32 noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
store double 1.000000e-01, ptr %10, align 8
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %34, label %21
21: ; preds = %4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %34, label %24
24: ; preds = %21
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp sgt i32 %25, %26
br i1 %27, label %34, label %28
28: ; preds = %24
%29 = load double, ptr %8, align 8
%30 = fcmp ole double %29, 0.000000e+00
br i1 %30, label %34, label %31
31: ; preds = %28
%32 = load double, ptr %8, align 8
%33 = fcmp oge double %32, 1.000000e+00
br i1 %33, label %34, label %36
34: ; preds = %31, %28, %24, %21, %4
%35 = call i32 @error(ptr noundef @.str)
br label %36
36: ; preds = %34, %31
%37 = load i32, ptr %6, align 4
%38 = icmp eq i32 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = load i32, ptr %7, align 4
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %39, %36
%43 = load double, ptr %9, align 8
%44 = fneg double %43
store double %44, ptr %5, align 8
br label %249
45: ; preds = %39
%46 = load i32, ptr %6, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp eq i32 %46, %47
br i1 %48, label %49, label %58
49: ; preds = %45
%50 = load double, ptr %9, align 8
%51 = fneg double %50
%52 = load i32, ptr %6, align 4
%53 = sitofp i32 %52 to double
%54 = load double, ptr %8, align 8
%55 = call double @log10(double noundef %54) #4
%56 = fneg double %53
%57 = call double @llvm.fmuladd.f64(double %56, double %55, double %51)
store double %57, ptr %5, align 8
br label %249
58: ; preds = %45
%59 = load double, ptr %8, align 8
%60 = load double, ptr %8, align 8
%61 = fsub double 1.000000e+00, %60
%62 = fdiv double %59, %61
store double %62, ptr %17, align 8
%63 = load i32, ptr %6, align 4
%64 = sitofp i32 %63 to double
%65 = fadd double %64, 1.000000e+00
%66 = fcmp ogt double %65, 1.500000e+01
br i1 %66, label %67, label %72
67: ; preds = %58
%68 = load i32, ptr %6, align 4
%69 = sitofp i32 %68 to double
%70 = fadd double %69, 1.000000e+00
%71 = call double @log_gamma_windschitl(double noundef %70)
br label %77
72: ; preds = %58
%73 = load i32, ptr %6, align 4
%74 = sitofp i32 %73 to double
%75 = fadd double %74, 1.000000e+00
%76 = call double @log_gamma_lanczos(double noundef %75)
br label %77
77: ; preds = %72, %67
%78 = phi double [ %71, %67 ], [ %76, %72 ]
%79 = load i32, ptr %7, align 4
%80 = sitofp i32 %79 to double
%81 = fadd double %80, 1.000000e+00
%82 = fcmp ogt double %81, 1.500000e+01
br i1 %82, label %83, label %88
83: ; preds = %77
%84 = load i32, ptr %7, align 4
%85 = sitofp i32 %84 to double
%86 = fadd double %85, 1.000000e+00
%87 = call double @log_gamma_windschitl(double noundef %86)
br label %93
88: ; preds = %77
%89 = load i32, ptr %7, align 4
%90 = sitofp i32 %89 to double
%91 = fadd double %90, 1.000000e+00
%92 = call double @log_gamma_lanczos(double noundef %91)
br label %93
93: ; preds = %88, %83
%94 = phi double [ %87, %83 ], [ %92, %88 ]
%95 = fsub double %78, %94
%96 = load i32, ptr %6, align 4
%97 = load i32, ptr %7, align 4
%98 = sub nsw i32 %96, %97
%99 = sitofp i32 %98 to double
%100 = fadd double %99, 1.000000e+00
%101 = fcmp ogt double %100, 1.500000e+01
br i1 %101, label %102, label %109
102: ; preds = %93
%103 = load i32, ptr %6, align 4
%104 = load i32, ptr %7, align 4
%105 = sub nsw i32 %103, %104
%106 = sitofp i32 %105 to double
%107 = fadd double %106, 1.000000e+00
%108 = call double @log_gamma_windschitl(double noundef %107)
br label %116
109: ; preds = %93
%110 = load i32, ptr %6, align 4
%111 = load i32, ptr %7, align 4
%112 = sub nsw i32 %110, %111
%113 = sitofp i32 %112 to double
%114 = fadd double %113, 1.000000e+00
%115 = call double @log_gamma_lanczos(double noundef %114)
br label %116
116: ; preds = %109, %102
%117 = phi double [ %108, %102 ], [ %115, %109 ]
%118 = fsub double %95, %117
%119 = load i32, ptr %7, align 4
%120 = sitofp i32 %119 to double
%121 = load double, ptr %8, align 8
%122 = call double @log(double noundef %121) #4
%123 = call double @llvm.fmuladd.f64(double %120, double %122, double %118)
%124 = load i32, ptr %6, align 4
%125 = load i32, ptr %7, align 4
%126 = sub nsw i32 %124, %125
%127 = sitofp i32 %126 to double
%128 = load double, ptr %8, align 8
%129 = fsub double 1.000000e+00, %128
%130 = call double @log(double noundef %129) #4
%131 = call double @llvm.fmuladd.f64(double %127, double %130, double %123)
store double %131, ptr %11, align 8
%132 = load double, ptr %11, align 8
%133 = call double @exp(double noundef %132) #4
store double %133, ptr %12, align 8
%134 = load double, ptr %12, align 8
%135 = call i64 @double_equal(double noundef %134, double noundef 0.000000e+00)
%136 = icmp ne i64 %135, 0
br i1 %136, label %137, label %154
137: ; preds = %116
%138 = load i32, ptr %7, align 4
%139 = sitofp i32 %138 to double
%140 = load i32, ptr %6, align 4
%141 = sitofp i32 %140 to double
%142 = load double, ptr %8, align 8
%143 = fmul double %141, %142
%144 = fcmp ogt double %139, %143
br i1 %144, label %145, label %151
145: ; preds = %137
%146 = load double, ptr %11, align 8
%147 = fneg double %146
%148 = fdiv double %147, 0x40026BB1BBB55516
%149 = load double, ptr %9, align 8
%150 = fsub double %148, %149
store double %150, ptr %5, align 8
br label %249
151: ; preds = %137
%152 = load double, ptr %9, align 8
%153 = fneg double %152
store double %153, ptr %5, align 8
br label %249
154: ; preds = %116
%155 = load double, ptr %12, align 8
store double %155, ptr %15, align 8
%156 = load i32, ptr %7, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %18, align 4
%158 = load i32, ptr %18, align 4
%159 = load i32, ptr %6, align 4
%160 = icmp sle i32 %158, %159
br i1 %160, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %154
br label %161
161: ; preds = %.lr.ph, %237
%162 = load i32, ptr %6, align 4
%163 = load i32, ptr %18, align 4
%164 = sub nsw i32 %162, %163
%165 = add nsw i32 %164, 1
%166 = sitofp i32 %165 to double
%167 = load i32, ptr %18, align 4
%168 = icmp slt i32 %167, 100000
br i1 %168, label %169, label %189
169: ; preds = %161
%170 = load i32, ptr %18, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [100000 x double], ptr @nfa.inv, i64 0, i64 %171
%173 = load double, ptr %172, align 8
%174 = fcmp une double %173, 0.000000e+00
br i1 %174, label %175, label %180
175: ; preds = %169
%176 = load i32, ptr %18, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [100000 x double], ptr @nfa.inv, i64 0, i64 %177
%179 = load double, ptr %178, align 8
br label %187
180: ; preds = %169
%181 = load i32, ptr %18, align 4
%182 = sitofp i32 %181 to double
%183 = fdiv double 1.000000e+00, %182
%184 = load i32, ptr %18, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds [100000 x double], ptr @nfa.inv, i64 0, i64 %185
store double %183, ptr %186, align 8
br label %187
187: ; preds = %180, %175
%188 = phi double [ %179, %175 ], [ %183, %180 ]
br label %193
189: ; preds = %161
%190 = load i32, ptr %18, align 4
%191 = sitofp i32 %190 to double
%192 = fdiv double 1.000000e+00, %191
br label %193
193: ; preds = %189, %187
%194 = phi double [ %188, %187 ], [ %192, %189 ]
%195 = fmul double %166, %194
store double %195, ptr %13, align 8
%196 = load double, ptr %13, align 8
%197 = load double, ptr %17, align 8
%198 = fmul double %196, %197
store double %198, ptr %14, align 8
%199 = load double, ptr %14, align 8
%200 = load double, ptr %12, align 8
%201 = fmul double %200, %199
store double %201, ptr %12, align 8
%202 = load double, ptr %12, align 8
%203 = load double, ptr %15, align 8
%204 = fadd double %203, %202
store double %204, ptr %15, align 8
%205 = load double, ptr %13, align 8
%206 = fcmp olt double %205, 1.000000e+00
br i1 %206, label %207, label %236
207: ; preds = %193
%208 = load double, ptr %12, align 8
%209 = load double, ptr %14, align 8
%210 = load i32, ptr %6, align 4
%211 = load i32, ptr %18, align 4
%212 = sub nsw i32 %210, %211
%213 = add nsw i32 %212, 1
%214 = sitofp i32 %213 to double
%215 = call double @pow(double noundef %209, double noundef %214) #4
%216 = fsub double 1.000000e+00, %215
%217 = load double, ptr %14, align 8
%218 = fsub double 1.000000e+00, %217
%219 = fdiv double %216, %218
%220 = fsub double %219, 1.000000e+00
%221 = fmul double %208, %220
store double %221, ptr %16, align 8
%222 = load double, ptr %16, align 8
%223 = load double, ptr %10, align 8
%224 = load double, ptr %15, align 8
%225 = call double @log10(double noundef %224) #4
%226 = fneg double %225
%227 = load double, ptr %9, align 8
%228 = fsub double %226, %227
%229 = call double @llvm.fabs.f64(double %228)
%230 = fmul double %223, %229
%231 = load double, ptr %15, align 8
%232 = fmul double %230, %231
%233 = fcmp olt double %222, %232
br i1 %233, label %234, label %235
234: ; preds = %207
br label %243
235: ; preds = %207
br label %236
236: ; preds = %235, %193
br label %237
237: ; preds = %236
%238 = load i32, ptr %18, align 4
%239 = add nsw i32 %238, 1
store i32 %239, ptr %18, align 4
%240 = load i32, ptr %18, align 4
%241 = load i32, ptr %6, align 4
%242 = icmp sle i32 %240, %241
br i1 %242, label %161, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %237
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %154
br label %243
243: ; preds = %.loopexit, %234
%244 = load double, ptr %15, align 8
%245 = call double @log10(double noundef %244) #4
%246 = fneg double %245
%247 = load double, ptr %9, align 8
%248 = fsub double %246, %247
store double %248, ptr %5, align 8
br label %249
249: ; preds = %243, %151, %145, %49, %42
%250 = load double, ptr %5, align 8
ret double %250
}
declare i32 @error(ptr noundef) #1
; Function Attrs: nounwind
declare double @log10(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @log_gamma_windschitl(double noundef) #1
declare double @log_gamma_lanczos(double noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #2
declare i64 @double_equal(double noundef, double noundef) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp640_8ytj.c'
source_filename = "/tmp/tmp640_8ytj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [65536 x i8], align 16
%7 = alloca [262144 x i8], align 16
%8 = alloca i8, align 1
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%18 = load i32, ptr @stdin, align 4
%19 = call i32 @fread(ptr noundef %17, i32 noundef 1, i32 noundef 65536, i32 noundef %18)
store i64 0, ptr %10, align 8
store i64 0, ptr %9, align 8
br label %20
20: ; preds = %83, %2
%21 = load i64, ptr %9, align 8
%22 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
store i8 %23, ptr %8, align 1
%24 = icmp ne i8 %23, 0
br i1 %24, label %25, label %84
25: ; preds = %20
%26 = load i8, ptr %8, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 40
br i1 %28, label %29, label %73
29: ; preds = %25
%30 = load i64, ptr %9, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %9, align 8
%32 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%33 = call i32 @read_int_from_string(ptr noundef %32, ptr noundef %9)
store i32 %33, ptr %11, align 4
%34 = load i64, ptr %9, align 8
%35 = add i64 %34, 1
store i64 %35, ptr %9, align 8
%36 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%37 = call i32 @read_int_from_string(ptr noundef %36, ptr noundef %9)
store i32 %37, ptr %12, align 4
%38 = load i64, ptr %9, align 8
%39 = add i64 %38, 1
store i64 %39, ptr %9, align 8
%40 = load i64, ptr %9, align 8
%41 = trunc i64 %40 to i32
store i32 %41, ptr %13, align 4
%42 = load i64, ptr %9, align 8
%43 = load i32, ptr %11, align 4
%44 = sext i32 %43 to i64
%45 = add i64 %42, %44
%46 = trunc i64 %45 to i32
store i32 %46, ptr %14, align 4
br label %47
47: ; preds = %69, %29
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %48, -1
store i32 %49, ptr %12, align 4
%50 = icmp ne i32 %48, 0
br i1 %50, label %51, label %70
51: ; preds = %47
%52 = load i32, ptr %13, align 4
store i32 %52, ptr %15, align 4
br label %53
53: ; preds = %66, %51
%54 = load i32, ptr %15, align 4
%55 = load i32, ptr %14, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %69
57: ; preds = %53
%58 = load i32, ptr %15, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %59
%61 = load i8, ptr %60, align 1
%62 = load i64, ptr %10, align 8
%63 = getelementptr inbounds [262144 x i8], ptr %7, i64 0, i64 %62
store i8 %61, ptr %63, align 1
%64 = load i64, ptr %10, align 8
%65 = add i64 %64, 1
store i64 %65, ptr %10, align 8
br label %66
66: ; preds = %57
%67 = load i32, ptr %15, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %15, align 4
br label %53, !llvm.loop !6
69: ; preds = %53
br label %47, !llvm.loop !8
70: ; preds = %47
%71 = load i32, ptr %14, align 4
%72 = sext i32 %71 to i64
store i64 %72, ptr %9, align 8
br label %83
73: ; preds = %25
%74 = load i64, ptr %9, align 8
%75 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = load i64, ptr %10, align 8
%78 = getelementptr inbounds [262144 x i8], ptr %7, i64 0, i64 %77
store i8 %76, ptr %78, align 1
%79 = load i64, ptr %10, align 8
%80 = add i64 %79, 1
store i64 %80, ptr %10, align 8
%81 = load i64, ptr %9, align 8
%82 = add i64 %81, 1
store i64 %82, ptr %9, align 8
br label %83
83: ; preds = %73, %70
br label %20, !llvm.loop !9
84: ; preds = %20
%85 = getelementptr inbounds [262144 x i8], ptr %7, i64 0, i64 0
%86 = call i64 @strlen(ptr noundef %85)
%87 = call i32 @printf(ptr noundef @.str, i64 noundef %86)
store i64 0, ptr %16, align 8
store i64 0, ptr %9, align 8
br label %88
88: ; preds = %119, %84
%89 = load i64, ptr %9, align 8
%90 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %89
%91 = load i8, ptr %90, align 1
store i8 %91, ptr %8, align 1
%92 = icmp ne i8 %91, 0
br i1 %92, label %93, label %120
93: ; preds = %88
%94 = load i8, ptr %8, align 1
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 40
br i1 %96, label %97, label %114
97: ; preds = %93
%98 = load i64, ptr %9, align 8
%99 = add i64 %98, 1
store i64 %99, ptr %9, align 8
%100 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%101 = call i32 @read_int_from_string(ptr noundef %100, ptr noundef %9)
store i32 %101, ptr %11, align 4
%102 = load i64, ptr %9, align 8
%103 = add i64 %102, 1
store i64 %103, ptr %9, align 8
%104 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%105 = call i32 @read_int_from_string(ptr noundef %104, ptr noundef %9)
store i32 %105, ptr %12, align 4
%106 = load i64, ptr %9, align 8
%107 = add i64 %106, 1
store i64 %107, ptr %9, align 8
%108 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%109 = load i32, ptr %11, align 4
%110 = load i32, ptr %12, align 4
%111 = call i64 @marker_length(ptr noundef %108, ptr noundef %9, i32 noundef %109, i32 noundef %110)
%112 = load i64, ptr %16, align 8
%113 = add i64 %112, %111
store i64 %113, ptr %16, align 8
br label %119
114: ; preds = %93
%115 = load i64, ptr %16, align 8
%116 = add i64 %115, 1
store i64 %116, ptr %16, align 8
%117 = load i64, ptr %9, align 8
%118 = add i64 %117, 1
store i64 %118, ptr %9, align 8
br label %119
119: ; preds = %114, %97
br label %88, !llvm.loop !10
120: ; preds = %88
%121 = load i64, ptr %16, align 8
%122 = call i32 @printf(ptr noundef @.str, i64 noundef %121)
ret i32 0
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @read_int_from_string(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @marker_length(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp640_8ytj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [65536 x i8], align 16
%7 = alloca [262144 x i8], align 16
%8 = alloca i8, align 1
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%18 = load i32, ptr @stdin, align 4
%19 = call i32 @fread(ptr noundef %17, i32 noundef 1, i32 noundef 65536, i32 noundef %18)
store i64 0, ptr %10, align 8
store i64 0, ptr %9, align 8
%20 = load i64, ptr %9, align 8
%21 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %8, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %.lr.ph5, label %91
.lr.ph5: ; preds = %2
br label %24
24: ; preds = %.lr.ph5, %86
%25 = load i8, ptr %8, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 40
br i1 %27, label %28, label %76
28: ; preds = %24
%29 = load i64, ptr %9, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %9, align 8
%31 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%32 = call i32 @read_int_from_string(ptr noundef %31, ptr noundef %9)
store i32 %32, ptr %11, align 4
%33 = load i64, ptr %9, align 8
%34 = add i64 %33, 1
store i64 %34, ptr %9, align 8
%35 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%36 = call i32 @read_int_from_string(ptr noundef %35, ptr noundef %9)
store i32 %36, ptr %12, align 4
%37 = load i64, ptr %9, align 8
%38 = add i64 %37, 1
store i64 %38, ptr %9, align 8
%39 = load i64, ptr %9, align 8
%40 = trunc i64 %39 to i32
store i32 %40, ptr %13, align 4
%41 = load i64, ptr %9, align 8
%42 = load i32, ptr %11, align 4
%43 = sext i32 %42 to i64
%44 = add i64 %41, %43
%45 = trunc i64 %44 to i32
store i32 %45, ptr %14, align 4
%46 = load i32, ptr %12, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %12, align 4
%48 = icmp ne i32 %46, 0
br i1 %48, label %.lr.ph2, label %73
.lr.ph2: ; preds = %28
br label %49
49: ; preds = %.lr.ph2, %69
%50 = load i32, ptr %13, align 4
store i32 %50, ptr %15, align 4
%51 = load i32, ptr %15, align 4
%52 = load i32, ptr %14, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph, label %69
.lr.ph: ; preds = %49
br label %54
54: ; preds = %.lr.ph, %63
%55 = load i32, ptr %15, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = load i64, ptr %10, align 8
%60 = getelementptr inbounds [262144 x i8], ptr %7, i64 0, i64 %59
store i8 %58, ptr %60, align 1
%61 = load i64, ptr %10, align 8
%62 = add i64 %61, 1
store i64 %62, ptr %10, align 8
br label %63
63: ; preds = %54
%64 = load i32, ptr %15, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %15, align 4
%66 = load i32, ptr %15, align 4
%67 = load i32, ptr %14, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %69
69: ; preds = %._crit_edge, %49
%70 = load i32, ptr %12, align 4
%71 = add nsw i32 %70, -1
store i32 %71, ptr %12, align 4
%72 = icmp ne i32 %70, 0
br i1 %72, label %49, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %73
73: ; preds = %._crit_edge3, %28
%74 = load i32, ptr %14, align 4
%75 = sext i32 %74 to i64
store i64 %75, ptr %9, align 8
br label %86
76: ; preds = %24
%77 = load i64, ptr %9, align 8
%78 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %77
%79 = load i8, ptr %78, align 1
%80 = load i64, ptr %10, align 8
%81 = getelementptr inbounds [262144 x i8], ptr %7, i64 0, i64 %80
store i8 %79, ptr %81, align 1
%82 = load i64, ptr %10, align 8
%83 = add i64 %82, 1
store i64 %83, ptr %10, align 8
%84 = load i64, ptr %9, align 8
%85 = add i64 %84, 1
store i64 %85, ptr %9, align 8
br label %86
86: ; preds = %76, %73
%87 = load i64, ptr %9, align 8
%88 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %87
%89 = load i8, ptr %88, align 1
store i8 %89, ptr %8, align 1
%90 = icmp ne i8 %89, 0
br i1 %90, label %24, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %86
br label %91
91: ; preds = %._crit_edge6, %2
%92 = getelementptr inbounds [262144 x i8], ptr %7, i64 0, i64 0
%93 = call i64 @strlen(ptr noundef %92)
%94 = call i32 @printf(ptr noundef @.str, i64 noundef %93)
store i64 0, ptr %16, align 8
store i64 0, ptr %9, align 8
%95 = load i64, ptr %9, align 8
%96 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %95
%97 = load i8, ptr %96, align 1
store i8 %97, ptr %8, align 1
%98 = icmp ne i8 %97, 0
br i1 %98, label %.lr.ph8, label %130
.lr.ph8: ; preds = %91
br label %99
99: ; preds = %.lr.ph8, %125
%100 = load i8, ptr %8, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 40
br i1 %102, label %103, label %120
103: ; preds = %99
%104 = load i64, ptr %9, align 8
%105 = add i64 %104, 1
store i64 %105, ptr %9, align 8
%106 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%107 = call i32 @read_int_from_string(ptr noundef %106, ptr noundef %9)
store i32 %107, ptr %11, align 4
%108 = load i64, ptr %9, align 8
%109 = add i64 %108, 1
store i64 %109, ptr %9, align 8
%110 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%111 = call i32 @read_int_from_string(ptr noundef %110, ptr noundef %9)
store i32 %111, ptr %12, align 4
%112 = load i64, ptr %9, align 8
%113 = add i64 %112, 1
store i64 %113, ptr %9, align 8
%114 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%115 = load i32, ptr %11, align 4
%116 = load i32, ptr %12, align 4
%117 = call i64 @marker_length(ptr noundef %114, ptr noundef %9, i32 noundef %115, i32 noundef %116)
%118 = load i64, ptr %16, align 8
%119 = add i64 %118, %117
store i64 %119, ptr %16, align 8
br label %125
120: ; preds = %99
%121 = load i64, ptr %16, align 8
%122 = add i64 %121, 1
store i64 %122, ptr %16, align 8
%123 = load i64, ptr %9, align 8
%124 = add i64 %123, 1
store i64 %124, ptr %9, align 8
br label %125
125: ; preds = %120, %103
%126 = load i64, ptr %9, align 8
%127 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %126
%128 = load i8, ptr %127, align 1
store i8 %128, ptr %8, align 1
%129 = icmp ne i8 %128, 0
br i1 %129, label %99, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %125
br label %130
130: ; preds = %._crit_edge9, %91
%131 = load i64, ptr %16, align 8
%132 = call i32 @printf(ptr noundef @.str, i64 noundef %131)
ret i32 0
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @read_int_from_string(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @marker_length(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpa45n91sr.c'
source_filename = "/tmp/tmpa45n91sr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa45n91sr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6s4bngli.c'
source_filename = "/tmp/tmp6s4bngli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MesFil_OFILM(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = icmp ne i8 %3, 0
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = call i32 @RamWrite32A_Ofilm(i32 noundef 4336, i32 noundef 1017214400)
%7 = call i32 @RamWrite32A_Ofilm(i32 noundef 4337, i32 noundef 1017214400)
%8 = call i32 @RamWrite32A_Ofilm(i32 noundef 4338, i32 noundef 1064691904)
%9 = call i32 @RamWrite32A_Ofilm(i32 noundef 4339, i32 noundef 0)
%10 = call i32 @RamWrite32A_Ofilm(i32 noundef 4340, i32 noundef 0)
%11 = call i32 @RamWrite32A_Ofilm(i32 noundef 4341, i32 noundef 1065353216)
%12 = call i32 @RamWrite32A_Ofilm(i32 noundef 4342, i32 noundef 0)
%13 = call i32 @RamWrite32A_Ofilm(i32 noundef 4343, i32 noundef 0)
%14 = call i32 @RamWrite32A_Ofilm(i32 noundef 4344, i32 noundef 0)
%15 = call i32 @RamWrite32A_Ofilm(i32 noundef 4345, i32 noundef 0)
%16 = call i32 @RamWrite32A_Ofilm(i32 noundef 4592, i32 noundef 1017214400)
%17 = call i32 @RamWrite32A_Ofilm(i32 noundef 4593, i32 noundef 1017214400)
%18 = call i32 @RamWrite32A_Ofilm(i32 noundef 4594, i32 noundef 1064691904)
%19 = call i32 @RamWrite32A_Ofilm(i32 noundef 4595, i32 noundef 0)
%20 = call i32 @RamWrite32A_Ofilm(i32 noundef 4596, i32 noundef 0)
%21 = call i32 @RamWrite32A_Ofilm(i32 noundef 4597, i32 noundef 1065353216)
%22 = call i32 @RamWrite32A_Ofilm(i32 noundef 4598, i32 noundef 0)
%23 = call i32 @RamWrite32A_Ofilm(i32 noundef 4599, i32 noundef 0)
%24 = call i32 @RamWrite32A_Ofilm(i32 noundef 4600, i32 noundef 0)
%25 = call i32 @RamWrite32A_Ofilm(i32 noundef 4601, i32 noundef 0)
br label %104
26: ; preds = %1
%27 = load i8, ptr %2, align 1
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %51
30: ; preds = %26
%31 = call i32 @RamWrite32A_Ofilm(i32 noundef 4336, i32 noundef 1039274112)
%32 = call i32 @RamWrite32A_Ofilm(i32 noundef 4337, i32 noundef 1039274112)
%33 = call i32 @RamWrite32A_Ofilm(i32 noundef 4338, i32 noundef 1061387200)
%34 = call i32 @RamWrite32A_Ofilm(i32 noundef 4339, i32 noundef 0)
%35 = call i32 @RamWrite32A_Ofilm(i32 noundef 4340, i32 noundef 0)
%36 = call i32 @RamWrite32A_Ofilm(i32 noundef 4341, i32 noundef 1065286016)
%37 = call i32 @RamWrite32A_Ofilm(i32 noundef 4342, i32 noundef -1082197632)
%38 = call i32 @RamWrite32A_Ofilm(i32 noundef 4343, i32 noundef 1065218816)
%39 = call i32 @RamWrite32A_Ofilm(i32 noundef 4344, i32 noundef 0)
%40 = call i32 @RamWrite32A_Ofilm(i32 noundef 4345, i32 noundef 0)
%41 = call i32 @RamWrite32A_Ofilm(i32 noundef 4592, i32 noundef 1039274112)
%42 = call i32 @RamWrite32A_Ofilm(i32 noundef 4593, i32 noundef 1039274112)
%43 = call i32 @RamWrite32A_Ofilm(i32 noundef 4594, i32 noundef 1061387200)
%44 = call i32 @RamWrite32A_Ofilm(i32 noundef 4595, i32 noundef 0)
%45 = call i32 @RamWrite32A_Ofilm(i32 noundef 4596, i32 noundef 0)
%46 = call i32 @RamWrite32A_Ofilm(i32 noundef 4597, i32 noundef 1065286016)
%47 = call i32 @RamWrite32A_Ofilm(i32 noundef 4598, i32 noundef -1082197632)
%48 = call i32 @RamWrite32A_Ofilm(i32 noundef 4599, i32 noundef 1065218816)
%49 = call i32 @RamWrite32A_Ofilm(i32 noundef 4600, i32 noundef 0)
%50 = call i32 @RamWrite32A_Ofilm(i32 noundef 4601, i32 noundef 0)
br label %103
51: ; preds = %26
%52 = load i8, ptr %2, align 1
%53 = zext i8 %52 to i32
%54 = icmp eq i32 %53, 2
br i1 %54, label %55, label %76
55: ; preds = %51
%56 = call i32 @RamWrite32A_Ofilm(i32 noundef 4336, i32 noundef 1065353216)
%57 = call i32 @RamWrite32A_Ofilm(i32 noundef 4337, i32 noundef 0)
%58 = call i32 @RamWrite32A_Ofilm(i32 noundef 4338, i32 noundef 0)
%59 = call i32 @RamWrite32A_Ofilm(i32 noundef 4339, i32 noundef 0)
%60 = call i32 @RamWrite32A_Ofilm(i32 noundef 4340, i32 noundef 0)
%61 = call i32 @RamWrite32A_Ofilm(i32 noundef 4341, i32 noundef 1065353216)
%62 = call i32 @RamWrite32A_Ofilm(i32 noundef 4342, i32 noundef 0)
%63 = call i32 @RamWrite32A_Ofilm(i32 noundef 4343, i32 noundef 0)
%64 = call i32 @RamWrite32A_Ofilm(i32 noundef 4344, i32 noundef 0)
%65 = call i32 @RamWrite32A_Ofilm(i32 noundef 4345, i32 noundef 0)
%66 = call i32 @RamWrite32A_Ofilm(i32 noundef 4592, i32 noundef 1065353216)
%67 = call i32 @RamWrite32A_Ofilm(i32 noundef 4593, i32 noundef 0)
%68 = call i32 @RamWrite32A_Ofilm(i32 noundef 4594, i32 noundef 0)
%69 = call i32 @RamWrite32A_Ofilm(i32 noundef 4595, i32 noundef 0)
%70 = call i32 @RamWrite32A_Ofilm(i32 noundef 4596, i32 noundef 0)
%71 = call i32 @RamWrite32A_Ofilm(i32 noundef 4597, i32 noundef 1065353216)
%72 = call i32 @RamWrite32A_Ofilm(i32 noundef 4598, i32 noundef 0)
%73 = call i32 @RamWrite32A_Ofilm(i32 noundef 4599, i32 noundef 0)
%74 = call i32 @RamWrite32A_Ofilm(i32 noundef 4600, i32 noundef 0)
%75 = call i32 @RamWrite32A_Ofilm(i32 noundef 4601, i32 noundef 0)
br label %102
76: ; preds = %51
%77 = load i8, ptr %2, align 1
%78 = zext i8 %77 to i32
%79 = icmp eq i32 %78, 3
br i1 %79, label %80, label %101
80: ; preds = %76
%81 = call i32 @RamWrite32A_Ofilm(i32 noundef 4336, i32 noundef 1017214400)
%82 = call i32 @RamWrite32A_Ofilm(i32 noundef 4337, i32 noundef 1017214400)
%83 = call i32 @RamWrite32A_Ofilm(i32 noundef 4338, i32 noundef 1064691904)
%84 = call i32 @RamWrite32A_Ofilm(i32 noundef 4339, i32 noundef 0)
%85 = call i32 @RamWrite32A_Ofilm(i32 noundef 4340, i32 noundef 0)
%86 = call i32 @RamWrite32A_Ofilm(i32 noundef 4341, i32 noundef 1017214400)
%87 = call i32 @RamWrite32A_Ofilm(i32 noundef 4342, i32 noundef 1017214400)
%88 = call i32 @RamWrite32A_Ofilm(i32 noundef 4343, i32 noundef 1064691904)
%89 = call i32 @RamWrite32A_Ofilm(i32 noundef 4344, i32 noundef 0)
%90 = call i32 @RamWrite32A_Ofilm(i32 noundef 4345, i32 noundef 0)
%91 = call i32 @RamWrite32A_Ofilm(i32 noundef 4592, i32 noundef 1017214400)
%92 = call i32 @RamWrite32A_Ofilm(i32 noundef 4593, i32 noundef 1017214400)
%93 = call i32 @RamWrite32A_Ofilm(i32 noundef 4594, i32 noundef 1064691904)
%94 = call i32 @RamWrite32A_Ofilm(i32 noundef 4595, i32 noundef 0)
%95 = call i32 @RamWrite32A_Ofilm(i32 noundef 4596, i32 noundef 0)
%96 = call i32 @RamWrite32A_Ofilm(i32 noundef 4597, i32 noundef 1017214400)
%97 = call i32 @RamWrite32A_Ofilm(i32 noundef 4598, i32 noundef 1017214400)
%98 = call i32 @RamWrite32A_Ofilm(i32 noundef 4599, i32 noundef 1064691904)
%99 = call i32 @RamWrite32A_Ofilm(i32 noundef 4600, i32 noundef 0)
%100 = call i32 @RamWrite32A_Ofilm(i32 noundef 4601, i32 noundef 0)
br label %101
101: ; preds = %80, %76
br label %102
102: ; preds = %101, %55
br label %103
103: ; preds = %102, %30
br label %104
104: ; preds = %103, %5
ret void
}
declare i32 @RamWrite32A_Ofilm(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6s4bngli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MesFil_OFILM(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = icmp ne i8 %3, 0
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = call i32 @RamWrite32A_Ofilm(i32 noundef 4336, i32 noundef 1017214400)
%7 = call i32 @RamWrite32A_Ofilm(i32 noundef 4337, i32 noundef 1017214400)
%8 = call i32 @RamWrite32A_Ofilm(i32 noundef 4338, i32 noundef 1064691904)
%9 = call i32 @RamWrite32A_Ofilm(i32 noundef 4339, i32 noundef 0)
%10 = call i32 @RamWrite32A_Ofilm(i32 noundef 4340, i32 noundef 0)
%11 = call i32 @RamWrite32A_Ofilm(i32 noundef 4341, i32 noundef 1065353216)
%12 = call i32 @RamWrite32A_Ofilm(i32 noundef 4342, i32 noundef 0)
%13 = call i32 @RamWrite32A_Ofilm(i32 noundef 4343, i32 noundef 0)
%14 = call i32 @RamWrite32A_Ofilm(i32 noundef 4344, i32 noundef 0)
%15 = call i32 @RamWrite32A_Ofilm(i32 noundef 4345, i32 noundef 0)
%16 = call i32 @RamWrite32A_Ofilm(i32 noundef 4592, i32 noundef 1017214400)
%17 = call i32 @RamWrite32A_Ofilm(i32 noundef 4593, i32 noundef 1017214400)
%18 = call i32 @RamWrite32A_Ofilm(i32 noundef 4594, i32 noundef 1064691904)
%19 = call i32 @RamWrite32A_Ofilm(i32 noundef 4595, i32 noundef 0)
%20 = call i32 @RamWrite32A_Ofilm(i32 noundef 4596, i32 noundef 0)
%21 = call i32 @RamWrite32A_Ofilm(i32 noundef 4597, i32 noundef 1065353216)
%22 = call i32 @RamWrite32A_Ofilm(i32 noundef 4598, i32 noundef 0)
%23 = call i32 @RamWrite32A_Ofilm(i32 noundef 4599, i32 noundef 0)
%24 = call i32 @RamWrite32A_Ofilm(i32 noundef 4600, i32 noundef 0)
%25 = call i32 @RamWrite32A_Ofilm(i32 noundef 4601, i32 noundef 0)
br label %104
26: ; preds = %1
%27 = load i8, ptr %2, align 1
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %51
30: ; preds = %26
%31 = call i32 @RamWrite32A_Ofilm(i32 noundef 4336, i32 noundef 1039274112)
%32 = call i32 @RamWrite32A_Ofilm(i32 noundef 4337, i32 noundef 1039274112)
%33 = call i32 @RamWrite32A_Ofilm(i32 noundef 4338, i32 noundef 1061387200)
%34 = call i32 @RamWrite32A_Ofilm(i32 noundef 4339, i32 noundef 0)
%35 = call i32 @RamWrite32A_Ofilm(i32 noundef 4340, i32 noundef 0)
%36 = call i32 @RamWrite32A_Ofilm(i32 noundef 4341, i32 noundef 1065286016)
%37 = call i32 @RamWrite32A_Ofilm(i32 noundef 4342, i32 noundef -1082197632)
%38 = call i32 @RamWrite32A_Ofilm(i32 noundef 4343, i32 noundef 1065218816)
%39 = call i32 @RamWrite32A_Ofilm(i32 noundef 4344, i32 noundef 0)
%40 = call i32 @RamWrite32A_Ofilm(i32 noundef 4345, i32 noundef 0)
%41 = call i32 @RamWrite32A_Ofilm(i32 noundef 4592, i32 noundef 1039274112)
%42 = call i32 @RamWrite32A_Ofilm(i32 noundef 4593, i32 noundef 1039274112)
%43 = call i32 @RamWrite32A_Ofilm(i32 noundef 4594, i32 noundef 1061387200)
%44 = call i32 @RamWrite32A_Ofilm(i32 noundef 4595, i32 noundef 0)
%45 = call i32 @RamWrite32A_Ofilm(i32 noundef 4596, i32 noundef 0)
%46 = call i32 @RamWrite32A_Ofilm(i32 noundef 4597, i32 noundef 1065286016)
%47 = call i32 @RamWrite32A_Ofilm(i32 noundef 4598, i32 noundef -1082197632)
%48 = call i32 @RamWrite32A_Ofilm(i32 noundef 4599, i32 noundef 1065218816)
%49 = call i32 @RamWrite32A_Ofilm(i32 noundef 4600, i32 noundef 0)
%50 = call i32 @RamWrite32A_Ofilm(i32 noundef 4601, i32 noundef 0)
br label %103
51: ; preds = %26
%52 = load i8, ptr %2, align 1
%53 = zext i8 %52 to i32
%54 = icmp eq i32 %53, 2
br i1 %54, label %55, label %76
55: ; preds = %51
%56 = call i32 @RamWrite32A_Ofilm(i32 noundef 4336, i32 noundef 1065353216)
%57 = call i32 @RamWrite32A_Ofilm(i32 noundef 4337, i32 noundef 0)
%58 = call i32 @RamWrite32A_Ofilm(i32 noundef 4338, i32 noundef 0)
%59 = call i32 @RamWrite32A_Ofilm(i32 noundef 4339, i32 noundef 0)
%60 = call i32 @RamWrite32A_Ofilm(i32 noundef 4340, i32 noundef 0)
%61 = call i32 @RamWrite32A_Ofilm(i32 noundef 4341, i32 noundef 1065353216)
%62 = call i32 @RamWrite32A_Ofilm(i32 noundef 4342, i32 noundef 0)
%63 = call i32 @RamWrite32A_Ofilm(i32 noundef 4343, i32 noundef 0)
%64 = call i32 @RamWrite32A_Ofilm(i32 noundef 4344, i32 noundef 0)
%65 = call i32 @RamWrite32A_Ofilm(i32 noundef 4345, i32 noundef 0)
%66 = call i32 @RamWrite32A_Ofilm(i32 noundef 4592, i32 noundef 1065353216)
%67 = call i32 @RamWrite32A_Ofilm(i32 noundef 4593, i32 noundef 0)
%68 = call i32 @RamWrite32A_Ofilm(i32 noundef 4594, i32 noundef 0)
%69 = call i32 @RamWrite32A_Ofilm(i32 noundef 4595, i32 noundef 0)
%70 = call i32 @RamWrite32A_Ofilm(i32 noundef 4596, i32 noundef 0)
%71 = call i32 @RamWrite32A_Ofilm(i32 noundef 4597, i32 noundef 1065353216)
%72 = call i32 @RamWrite32A_Ofilm(i32 noundef 4598, i32 noundef 0)
%73 = call i32 @RamWrite32A_Ofilm(i32 noundef 4599, i32 noundef 0)
%74 = call i32 @RamWrite32A_Ofilm(i32 noundef 4600, i32 noundef 0)
%75 = call i32 @RamWrite32A_Ofilm(i32 noundef 4601, i32 noundef 0)
br label %102
76: ; preds = %51
%77 = load i8, ptr %2, align 1
%78 = zext i8 %77 to i32
%79 = icmp eq i32 %78, 3
br i1 %79, label %80, label %101
80: ; preds = %76
%81 = call i32 @RamWrite32A_Ofilm(i32 noundef 4336, i32 noundef 1017214400)
%82 = call i32 @RamWrite32A_Ofilm(i32 noundef 4337, i32 noundef 1017214400)
%83 = call i32 @RamWrite32A_Ofilm(i32 noundef 4338, i32 noundef 1064691904)
%84 = call i32 @RamWrite32A_Ofilm(i32 noundef 4339, i32 noundef 0)
%85 = call i32 @RamWrite32A_Ofilm(i32 noundef 4340, i32 noundef 0)
%86 = call i32 @RamWrite32A_Ofilm(i32 noundef 4341, i32 noundef 1017214400)
%87 = call i32 @RamWrite32A_Ofilm(i32 noundef 4342, i32 noundef 1017214400)
%88 = call i32 @RamWrite32A_Ofilm(i32 noundef 4343, i32 noundef 1064691904)
%89 = call i32 @RamWrite32A_Ofilm(i32 noundef 4344, i32 noundef 0)
%90 = call i32 @RamWrite32A_Ofilm(i32 noundef 4345, i32 noundef 0)
%91 = call i32 @RamWrite32A_Ofilm(i32 noundef 4592, i32 noundef 1017214400)
%92 = call i32 @RamWrite32A_Ofilm(i32 noundef 4593, i32 noundef 1017214400)
%93 = call i32 @RamWrite32A_Ofilm(i32 noundef 4594, i32 noundef 1064691904)
%94 = call i32 @RamWrite32A_Ofilm(i32 noundef 4595, i32 noundef 0)
%95 = call i32 @RamWrite32A_Ofilm(i32 noundef 4596, i32 noundef 0)
%96 = call i32 @RamWrite32A_Ofilm(i32 noundef 4597, i32 noundef 1017214400)
%97 = call i32 @RamWrite32A_Ofilm(i32 noundef 4598, i32 noundef 1017214400)
%98 = call i32 @RamWrite32A_Ofilm(i32 noundef 4599, i32 noundef 1064691904)
%99 = call i32 @RamWrite32A_Ofilm(i32 noundef 4600, i32 noundef 0)
%100 = call i32 @RamWrite32A_Ofilm(i32 noundef 4601, i32 noundef 0)
br label %101
101: ; preds = %80, %76
br label %102
102: ; preds = %101, %55
br label %103
103: ; preds = %102, %30
br label %104
104: ; preds = %103, %5
ret void
}
declare i32 @RamWrite32A_Ofilm(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprf7dl58z.c'
source_filename = "/tmp/tmprf7dl58z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprf7dl58z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqgutmpfh.c'
source_filename = "/tmp/tmpqgutmpfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @GenExpr() #0 {
%1 = call i32 @GenStrData(i32 noundef 1, i32 noundef 0)
%2 = call i32 (...) @GenExpr0()
ret void
}
declare i32 @GenStrData(i32 noundef, i32 noundef) #1
declare i32 @GenExpr0(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqgutmpfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @GenExpr() #0 {
%1 = call i32 @GenStrData(i32 noundef 1, i32 noundef 0)
%2 = call i32 (...) @GenExpr0()
ret void
}
declare i32 @GenStrData(i32 noundef, i32 noundef) #1
declare i32 @GenExpr0(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaoa3ukcq.c'
source_filename = "/tmp/tmpaoa3ukcq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"address_exception\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"\09if (!SUPERVISOR) {USP = SP; SP = SSP;}\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"\09if (SP&1) HALT;\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"_pcl\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"SP-2\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"PC\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"_sr\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"SP-6\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"SR\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"_pch\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"SP-4\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"PC>>16\00", align 1
@.str.12 = private unnamed_addr constant [4 x i8] c"_op\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"SP-8\00", align 1
@.str.14 = private unnamed_addr constant [13 x i8] c"m68k->opcode\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"_eal\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"SP-10\00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c"EA\00", align 1
@.str.18 = private unnamed_addr constant [4 x i8] c"_fc\00", align 1
@.str.19 = private unnamed_addr constant [6 x i8] c"SP-14\00", align 1
@.str.20 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.21 = private unnamed_addr constant [5 x i8] c"_eah\00", align 1
@.str.22 = private unnamed_addr constant [6 x i8] c"SP-12\00", align 1
@.str.23 = private unnamed_addr constant [7 x i8] c"EA>>16\00", align 1
@.str.24 = private unnamed_addr constant [5 x i8] c"_vec\00", align 1
@.str.25 = private unnamed_addr constant [3 x i8] c"12\00", align 1
@.str.26 = private unnamed_addr constant [18 x i8] c"\09if (PC&1) HALT;\0A\00", align 1
@.str.27 = private unnamed_addr constant [55 x i8] c"\09SR = (SR | M68K_FLAG_S_MASK) & (~M68K_FLAG_T1_MASK);\0A\00", align 1
@.str.28 = private unnamed_addr constant [12 x i8] c"\09SP -= 14;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @address_exception() #0 {
%1 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = call i32 @begin_function(ptr noundef %2)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = load ptr, ptr %1, align 8
%7 = call i32 @print_bus_write_(ptr noundef %6, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 1)
%8 = load ptr, ptr %1, align 8
%9 = call i32 @print_bus_write_(ptr noundef %8, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 1)
%10 = load ptr, ptr %1, align 8
%11 = call i32 @print_bus_write_(ptr noundef %10, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef @.str.11, i32 noundef 1)
%12 = load ptr, ptr %1, align 8
%13 = call i32 @print_bus_write_(ptr noundef %12, ptr noundef @.str.12, ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef 1)
%14 = load ptr, ptr %1, align 8
%15 = call i32 @print_bus_write_(ptr noundef %14, ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17, i32 noundef 1)
%16 = load ptr, ptr %1, align 8
%17 = call i32 @print_bus_write_(ptr noundef %16, ptr noundef @.str.18, ptr noundef @.str.19, ptr noundef @.str.20, i32 noundef 1)
%18 = load ptr, ptr %1, align 8
%19 = call i32 @print_bus_write_(ptr noundef %18, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef @.str.23, i32 noundef 1)
%20 = load ptr, ptr %1, align 8
%21 = call i32 @print_bus_read_(ptr noundef %20, ptr noundef @.str.24, ptr noundef @.str.25, ptr noundef @.str.5, i32 noundef 2)
%22 = call i32 @printf(ptr noundef @.str.26)
%23 = call i32 @printf(ptr noundef @.str.27)
%24 = call i32 @printf(ptr noundef @.str.28)
%25 = call i32 (...) @opcode_read()
ret void
}
declare i32 @begin_function(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @print_bus_write_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @print_bus_read_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @opcode_read(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaoa3ukcq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"address_exception\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"\09if (!SUPERVISOR) {USP = SP; SP = SSP;}\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"\09if (SP&1) HALT;\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"_pcl\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"SP-2\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"PC\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"_sr\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"SP-6\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"SR\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"_pch\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"SP-4\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"PC>>16\00", align 1
@.str.12 = private unnamed_addr constant [4 x i8] c"_op\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"SP-8\00", align 1
@.str.14 = private unnamed_addr constant [13 x i8] c"m68k->opcode\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"_eal\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"SP-10\00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c"EA\00", align 1
@.str.18 = private unnamed_addr constant [4 x i8] c"_fc\00", align 1
@.str.19 = private unnamed_addr constant [6 x i8] c"SP-14\00", align 1
@.str.20 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.21 = private unnamed_addr constant [5 x i8] c"_eah\00", align 1
@.str.22 = private unnamed_addr constant [6 x i8] c"SP-12\00", align 1
@.str.23 = private unnamed_addr constant [7 x i8] c"EA>>16\00", align 1
@.str.24 = private unnamed_addr constant [5 x i8] c"_vec\00", align 1
@.str.25 = private unnamed_addr constant [3 x i8] c"12\00", align 1
@.str.26 = private unnamed_addr constant [18 x i8] c"\09if (PC&1) HALT;\0A\00", align 1
@.str.27 = private unnamed_addr constant [55 x i8] c"\09SR = (SR | M68K_FLAG_S_MASK) & (~M68K_FLAG_T1_MASK);\0A\00", align 1
@.str.28 = private unnamed_addr constant [12 x i8] c"\09SP -= 14;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @address_exception() #0 {
%1 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = call i32 @begin_function(ptr noundef %2)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = load ptr, ptr %1, align 8
%7 = call i32 @print_bus_write_(ptr noundef %6, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 1)
%8 = load ptr, ptr %1, align 8
%9 = call i32 @print_bus_write_(ptr noundef %8, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 1)
%10 = load ptr, ptr %1, align 8
%11 = call i32 @print_bus_write_(ptr noundef %10, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef @.str.11, i32 noundef 1)
%12 = load ptr, ptr %1, align 8
%13 = call i32 @print_bus_write_(ptr noundef %12, ptr noundef @.str.12, ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef 1)
%14 = load ptr, ptr %1, align 8
%15 = call i32 @print_bus_write_(ptr noundef %14, ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17, i32 noundef 1)
%16 = load ptr, ptr %1, align 8
%17 = call i32 @print_bus_write_(ptr noundef %16, ptr noundef @.str.18, ptr noundef @.str.19, ptr noundef @.str.20, i32 noundef 1)
%18 = load ptr, ptr %1, align 8
%19 = call i32 @print_bus_write_(ptr noundef %18, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef @.str.23, i32 noundef 1)
%20 = load ptr, ptr %1, align 8
%21 = call i32 @print_bus_read_(ptr noundef %20, ptr noundef @.str.24, ptr noundef @.str.25, ptr noundef @.str.5, i32 noundef 2)
%22 = call i32 @printf(ptr noundef @.str.26)
%23 = call i32 @printf(ptr noundef @.str.27)
%24 = call i32 @printf(ptr noundef @.str.28)
%25 = call i32 (...) @opcode_read()
ret void
}
declare i32 @begin_function(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @print_bus_write_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @print_bus_read_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @opcode_read(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4g180bub.c'
source_filename = "/tmp/tmp4g180bub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"divide\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_divide(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 (...) @get_idiv_ops()
%11 = call i32 (...) @get_idiv_ops_len()
%12 = call i32 @write_bytes(ptr noundef @.str, ptr noundef %7, i32 noundef %8, ptr noundef %9, i32 noundef %10, i32 noundef %11)
ret void
}
declare i32 @write_bytes(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @get_idiv_ops(...) #1
declare i32 @get_idiv_ops_len(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4g180bub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"divide\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_divide(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 (...) @get_idiv_ops()
%11 = call i32 (...) @get_idiv_ops_len()
%12 = call i32 @write_bytes(ptr noundef @.str, ptr noundef %7, i32 noundef %8, ptr noundef %9, i32 noundef %10, i32 noundef %11)
ret void
}
declare i32 @write_bytes(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @get_idiv_ops(...) #1
declare i32 @get_idiv_ops_len(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjvrgwcp1.c'
source_filename = "/tmp/tmpjvrgwcp1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @test() #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
%8 = call i64 @malloc(i32 noundef 4)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %2, align 8
%10 = call i64 @malloc(i32 noundef 4)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %3, align 8
br label %12
12: ; preds = %16, %0
%13 = load i32, ptr %1, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %1, align 4
%15 = icmp slt i32 %13, 100
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = load ptr, ptr %2, align 8
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %3, align 8
store ptr %18, ptr %2, align 8
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %3, align 8
store ptr null, ptr %4, align 8
br label %12, !llvm.loop !6
20: ; preds = %12
store i32 100, ptr %7, align 4
br label %21
21: ; preds = %28, %20
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %21
%25 = load ptr, ptr %2, align 8
store ptr %25, ptr %4, align 8
%26 = load ptr, ptr %3, align 8
store ptr %26, ptr %2, align 8
%27 = load ptr, ptr %5, align 8
store ptr %27, ptr %3, align 8
store ptr null, ptr %5, align 8
br label %28
28: ; preds = %24
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %7, align 4
br label %21, !llvm.loop !8
31: ; preds = %21
%32 = load ptr, ptr %3, align 8
ret ptr %32
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjvrgwcp1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @test() #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
%8 = call i64 @malloc(i32 noundef 4)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %2, align 8
%10 = call i64 @malloc(i32 noundef 4)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %3, align 8
%12 = load i32, ptr %1, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %1, align 4
%14 = icmp slt i32 %12, 100
br i1 %14, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %15
%16 = load ptr, ptr %2, align 8
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
store ptr %17, ptr %2, align 8
%18 = load ptr, ptr %4, align 8
store ptr %18, ptr %3, align 8
store ptr null, ptr %4, align 8
%19 = load i32, ptr %1, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %1, align 4
%21 = icmp slt i32 %19, 100
br i1 %21, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %22
22: ; preds = %._crit_edge, %0
store i32 100, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %.lr.ph2, label %34
.lr.ph2: ; preds = %22
br label %25
25: ; preds = %.lr.ph2, %29
%26 = load ptr, ptr %2, align 8
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %3, align 8
store ptr %27, ptr %2, align 8
%28 = load ptr, ptr %5, align 8
store ptr %28, ptr %3, align 8
store ptr null, ptr %5, align 8
br label %29
29: ; preds = %25
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %22
%35 = load ptr, ptr %3, align 8
ret ptr %35
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsxqibg8e.c'
source_filename = "/tmp/tmpsxqibg8e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @erfl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = fptrunc x86_fp80 %3 to double
%5 = call x86_fp80 @erf(double noundef %4)
ret x86_fp80 %5
}
declare x86_fp80 @erf(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsxqibg8e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @erfl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = fptrunc x86_fp80 %3 to double
%5 = call x86_fp80 @erf(double noundef %4)
ret x86_fp80 %5
}
declare x86_fp80 @erf(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8sg7pobk.c'
source_filename = "/tmp/tmp8sg7pobk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_server_socket(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.sockaddr_in, align 4
%10 = alloca %struct.sockaddr_in, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%11 = load i32, ptr @AF_INET, align 4
%12 = load i32, ptr @SOCK_STREAM, align 4
%13 = call i32 @socket(i32 noundef %11, i32 noundef %12, i32 noundef 0)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr @AF_INET, align 4
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 2
store i32 %14, ptr %15, align 4
%16 = load ptr, ptr %3, align 8
%17 = call i32 @inet_addr(ptr noundef %16)
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 1
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %18, i32 0, i32 0
store i32 %17, ptr %19, align 4
%20 = load i32, ptr %4, align 4
%21 = call i32 @htons(i32 noundef %20)
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 0
store i32 %21, ptr %22, align 4
store i32 12, ptr %7, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %7, align 4
%25 = call i32 @bind(i32 noundef %23, ptr noundef %9, i32 noundef %24)
%26 = load i32, ptr %5, align 4
%27 = call i32 @listen(i32 noundef %26, i32 noundef 5)
%28 = load i32, ptr %5, align 4
%29 = call i32 @accept(i32 noundef %28, ptr noundef %10, ptr noundef %8)
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
ret i32 %30
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8sg7pobk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_server_socket(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.sockaddr_in, align 4
%10 = alloca %struct.sockaddr_in, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%11 = load i32, ptr @AF_INET, align 4
%12 = load i32, ptr @SOCK_STREAM, align 4
%13 = call i32 @socket(i32 noundef %11, i32 noundef %12, i32 noundef 0)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr @AF_INET, align 4
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 2
store i32 %14, ptr %15, align 4
%16 = load ptr, ptr %3, align 8
%17 = call i32 @inet_addr(ptr noundef %16)
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 1
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %18, i32 0, i32 0
store i32 %17, ptr %19, align 4
%20 = load i32, ptr %4, align 4
%21 = call i32 @htons(i32 noundef %20)
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 0
store i32 %21, ptr %22, align 4
store i32 12, ptr %7, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %7, align 4
%25 = call i32 @bind(i32 noundef %23, ptr noundef %9, i32 noundef %24)
%26 = load i32, ptr %5, align 4
%27 = call i32 @listen(i32 noundef %26, i32 noundef 5)
%28 = load i32, ptr %5, align 4
%29 = call i32 @accept(i32 noundef %28, ptr noundef %10, ptr noundef %8)
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
ret i32 %30
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmporg__3p6.c'
source_filename = "/tmp/tmporg__3p6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmporg__3p6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp385yj4gq.c'
source_filename = "/tmp/tmp385yj4gq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PKCS12_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @PKCS12_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @PKCS12_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp385yj4gq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PKCS12_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @PKCS12_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @PKCS12_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpce4lhsos.c'
source_filename = "/tmp/tmpce4lhsos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@L_tmpnam = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"-------------- non existent file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = load i32, ptr @L_tmpnam, align 4
%8 = add nsw i32 %7, 1
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %1, align 8
%11 = alloca i8, i64 %9, align 16
store i64 %9, ptr %2, align 8
%12 = call i32 @tmpnam(ptr noundef %11)
%13 = call ptr @fopen(ptr noundef %11, ptr noundef @.str)
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @write_int(ptr noundef %14, i32 noundef 1231)
%16 = call i32 @check_bool(i32 noundef 1, i32 noundef %15)
%17 = load ptr, ptr %3, align 8
%18 = call i32 @write_int(ptr noundef %17, i32 noundef 1)
%19 = call i32 @check_bool(i32 noundef 1, i32 noundef %18)
%20 = load ptr, ptr %3, align 8
%21 = call i32 @write_int(ptr noundef %20, i32 noundef 441)
%22 = call i32 @check_bool(i32 noundef 1, i32 noundef %21)
%23 = load ptr, ptr %3, align 8
%24 = call i32 @fclose(ptr noundef %23)
%25 = call i32 @check_int(i32 noundef 0, i32 noundef %24)
%26 = call i32 @int_sorter(ptr noundef %11)
%27 = call ptr @fopen(ptr noundef %11, ptr noundef @.str.1)
store ptr %27, ptr %3, align 8
%28 = load ptr, ptr %3, align 8
%29 = call i32 @read_int(ptr noundef %28)
%30 = call i32 @check_int(i32 noundef 1, i32 noundef %29)
%31 = load ptr, ptr %3, align 8
%32 = call i32 @read_int(ptr noundef %31)
%33 = call i32 @check_int(i32 noundef 441, i32 noundef %32)
%34 = load ptr, ptr %3, align 8
%35 = call i32 @read_int(ptr noundef %34)
%36 = call i32 @check_int(i32 noundef 1231, i32 noundef %35)
%37 = load ptr, ptr %3, align 8
%38 = call i32 @fclose(ptr noundef %37)
%39 = call i32 @check_int(i32 noundef 0, i32 noundef %38)
%40 = load ptr, ptr %1, align 8
call void @llvm.stackrestore(ptr %40)
%41 = load i32, ptr @L_tmpnam, align 4
%42 = add nsw i32 %41, 1
%43 = zext i32 %42 to i64
%44 = call ptr @llvm.stacksave()
store ptr %44, ptr %4, align 8
%45 = alloca i8, i64 %43, align 16
store i64 %43, ptr %5, align 8
%46 = call i32 @tmpnam(ptr noundef %45)
%47 = call ptr @fopen(ptr noundef %45, ptr noundef @.str.2)
store ptr %47, ptr %6, align 8
%48 = load ptr, ptr %6, align 8
%49 = call i32 @fclose(ptr noundef %48)
%50 = call i32 @check_int(i32 noundef 0, i32 noundef %49)
%51 = call i32 @int_sorter(ptr noundef %45)
%52 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %52)
%53 = call i32 @int_sorter(ptr noundef @.str.3)
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @tmpnam(ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @check_bool(i32 noundef, i32 noundef) #2
declare i32 @write_int(ptr noundef, i32 noundef) #2
declare i32 @check_int(i32 noundef, i32 noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @int_sorter(ptr noundef) #2
declare i32 @read_int(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpce4lhsos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@L_tmpnam = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"-------------- non existent file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = load i32, ptr @L_tmpnam, align 4
%8 = add nsw i32 %7, 1
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %1, align 8
%11 = alloca i8, i64 %9, align 16
store i64 %9, ptr %2, align 8
%12 = call i32 @tmpnam(ptr noundef %11)
%13 = call ptr @fopen(ptr noundef %11, ptr noundef @.str)
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @write_int(ptr noundef %14, i32 noundef 1231)
%16 = call i32 @check_bool(i32 noundef 1, i32 noundef %15)
%17 = load ptr, ptr %3, align 8
%18 = call i32 @write_int(ptr noundef %17, i32 noundef 1)
%19 = call i32 @check_bool(i32 noundef 1, i32 noundef %18)
%20 = load ptr, ptr %3, align 8
%21 = call i32 @write_int(ptr noundef %20, i32 noundef 441)
%22 = call i32 @check_bool(i32 noundef 1, i32 noundef %21)
%23 = load ptr, ptr %3, align 8
%24 = call i32 @fclose(ptr noundef %23)
%25 = call i32 @check_int(i32 noundef 0, i32 noundef %24)
%26 = call i32 @int_sorter(ptr noundef %11)
%27 = call ptr @fopen(ptr noundef %11, ptr noundef @.str.1)
store ptr %27, ptr %3, align 8
%28 = load ptr, ptr %3, align 8
%29 = call i32 @read_int(ptr noundef %28)
%30 = call i32 @check_int(i32 noundef 1, i32 noundef %29)
%31 = load ptr, ptr %3, align 8
%32 = call i32 @read_int(ptr noundef %31)
%33 = call i32 @check_int(i32 noundef 441, i32 noundef %32)
%34 = load ptr, ptr %3, align 8
%35 = call i32 @read_int(ptr noundef %34)
%36 = call i32 @check_int(i32 noundef 1231, i32 noundef %35)
%37 = load ptr, ptr %3, align 8
%38 = call i32 @fclose(ptr noundef %37)
%39 = call i32 @check_int(i32 noundef 0, i32 noundef %38)
%40 = load ptr, ptr %1, align 8
call void @llvm.stackrestore(ptr %40)
%41 = load i32, ptr @L_tmpnam, align 4
%42 = add nsw i32 %41, 1
%43 = zext i32 %42 to i64
%44 = call ptr @llvm.stacksave()
store ptr %44, ptr %4, align 8
%45 = alloca i8, i64 %43, align 16
store i64 %43, ptr %5, align 8
%46 = call i32 @tmpnam(ptr noundef %45)
%47 = call ptr @fopen(ptr noundef %45, ptr noundef @.str.2)
store ptr %47, ptr %6, align 8
%48 = load ptr, ptr %6, align 8
%49 = call i32 @fclose(ptr noundef %48)
%50 = call i32 @check_int(i32 noundef 0, i32 noundef %49)
%51 = call i32 @int_sorter(ptr noundef %45)
%52 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %52)
%53 = call i32 @int_sorter(ptr noundef @.str.3)
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @tmpnam(ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @check_bool(i32 noundef, i32 noundef) #2
declare i32 @write_int(ptr noundef, i32 noundef) #2
declare i32 @check_int(i32 noundef, i32 noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @int_sorter(ptr noundef) #2
declare i32 @read_int(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpezqq88dk.c'
source_filename = "/tmp/tmpezqq88dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call ptr @xmalloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @xmalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpezqq88dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call ptr @xmalloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @xmalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuv7fhmgp.c'
source_filename = "/tmp/tmpuv7fhmgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"input.dat\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"error opening %s fd1\00", align 1
@F_SETFD = dso_local global i32 0, align 4
@FD_CLOEXEC = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"error on dup fd1\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"error on opening %s as fd3\00", align 1
@.str.4 = private unnamed_addr constant [66 x i8] c"================ initial status of fd and fl ===================\0A\00", align 1
@F_GETFD = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [45 x i8] c"error on fcntl while geting fd flags for fd1\00", align 1
@F_GETFL = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [48 x i8] c"error on fcntl while getting file flags for fd1\00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"fd1: fd flag is 0x%x, fl flag is 0x%x\0A\00", align 1
@.str.8 = private unnamed_addr constant [45 x i8] c"error on fcntl while geting fd flags for fd2\00", align 1
@.str.9 = private unnamed_addr constant [48 x i8] c"error on fcntl while getting file flags for fd2\00", align 1
@.str.10 = private unnamed_addr constant [39 x i8] c"fd2: fd flag is 0x%x, fl flag is 0x%x\0A\00", align 1
@.str.11 = private unnamed_addr constant [45 x i8] c"error on fcntl while geting fd flags for fd3\00", align 1
@.str.12 = private unnamed_addr constant [48 x i8] c"error on fcntl while getting file flags for fd3\00", align 1
@.str.13 = private unnamed_addr constant [39 x i8] c"fd3: fd flag is 0x%x, fl flag is 0x%x\0A\00", align 1
@.str.14 = private unnamed_addr constant [60 x i8] c"================ Change fd flag of fd1 ===================\0A\00", align 1
@.str.15 = private unnamed_addr constant [32 x i8] c"error on setting fd flag of fd1\00", align 1
@.str.16 = private unnamed_addr constant [60 x i8] c"================ Change fl flag of fd1 ===================\0A\00", align 1
@O_NONBLOCK = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [32 x i8] c"error on setting fl flag of fd1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr @O_RDWR, align 4
store i32 %13, ptr %6, align 4
store ptr @.str, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %6, align 4
%16 = call i32 (ptr, i32, ...) @open(ptr noundef %14, i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %8, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load ptr, ptr %7, align 8
%20 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.1, ptr noundef %19)
br label %21
21: ; preds = %18, %2
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr @F_SETFD, align 4
%24 = load i32, ptr @FD_CLOEXEC, align 4
%25 = call i64 @fcntl(i32 noundef %22, i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr %8, align 4
%27 = call i32 @dup(i32 noundef %26)
store i32 %27, ptr %9, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %21
%30 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.2)
br label %31
31: ; preds = %29, %21
%32 = load ptr, ptr %7, align 8
%33 = load i32, ptr %6, align 4
%34 = call i32 (ptr, i32, ...) @open(ptr noundef %32, i32 noundef %33)
store i32 %34, ptr %10, align 4
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = load ptr, ptr %7, align 8
%38 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.3, ptr noundef %37)
br label %39
39: ; preds = %36, %31
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr @F_GETFD, align 4
%43 = call i64 @fcntl(i32 noundef %41, i32 noundef %42, i32 noundef 0)
%44 = trunc i64 %43 to i32
store i32 %44, ptr %11, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %39
%47 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.5)
br label %48
48: ; preds = %46, %39
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr @F_GETFL, align 4
%51 = call i64 @fcntl(i32 noundef %49, i32 noundef %50, i32 noundef 0)
%52 = trunc i64 %51 to i32
store i32 %52, ptr %12, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %48
%55 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.6)
br label %56
56: ; preds = %54, %48
%57 = load i32, ptr %11, align 4
%58 = load i32, ptr %12, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %57, i32 noundef %58)
%60 = load i32, ptr %9, align 4
%61 = load i32, ptr @F_GETFD, align 4
%62 = call i64 @fcntl(i32 noundef %60, i32 noundef %61, i32 noundef 0)
%63 = trunc i64 %62 to i32
store i32 %63, ptr %11, align 4
%64 = icmp slt i32 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %56
%66 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.8)
br label %67
67: ; preds = %65, %56
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr @F_GETFL, align 4
%70 = call i64 @fcntl(i32 noundef %68, i32 noundef %69, i32 noundef 0)
%71 = trunc i64 %70 to i32
store i32 %71, ptr %12, align 4
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %67
%74 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.9)
br label %75
75: ; preds = %73, %67
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %12, align 4
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %76, i32 noundef %77)
%79 = load i32, ptr %10, align 4
%80 = load i32, ptr @F_GETFD, align 4
%81 = call i64 @fcntl(i32 noundef %79, i32 noundef %80, i32 noundef 0)
%82 = trunc i64 %81 to i32
store i32 %82, ptr %11, align 4
%83 = icmp slt i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %75
%85 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.11)
br label %86
86: ; preds = %84, %75
%87 = load i32, ptr %10, align 4
%88 = load i32, ptr @F_GETFL, align 4
%89 = call i64 @fcntl(i32 noundef %87, i32 noundef %88, i32 noundef 0)
%90 = trunc i64 %89 to i32
store i32 %90, ptr %12, align 4
%91 = icmp slt i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %86
%93 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.12)
br label %94
94: ; preds = %92, %86
%95 = load i32, ptr %11, align 4
%96 = load i32, ptr %12, align 4
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %95, i32 noundef %96)
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr @F_SETFD, align 4
%101 = call i64 @fcntl(i32 noundef %99, i32 noundef %100, i32 noundef 0)
%102 = icmp slt i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %94
%104 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.15)
br label %105
105: ; preds = %103, %94
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr @F_GETFD, align 4
%108 = call i64 @fcntl(i32 noundef %106, i32 noundef %107, i32 noundef 0)
%109 = trunc i64 %108 to i32
store i32 %109, ptr %11, align 4
%110 = icmp slt i32 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %105
%112 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.5)
br label %113
113: ; preds = %111, %105
%114 = load i32, ptr %8, align 4
%115 = load i32, ptr @F_GETFL, align 4
%116 = call i64 @fcntl(i32 noundef %114, i32 noundef %115, i32 noundef 0)
%117 = trunc i64 %116 to i32
store i32 %117, ptr %12, align 4
%118 = icmp slt i32 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %113
%120 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.6)
br label %121
121: ; preds = %119, %113
%122 = load i32, ptr %11, align 4
%123 = load i32, ptr %12, align 4
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %122, i32 noundef %123)
%125 = load i32, ptr %9, align 4
%126 = load i32, ptr @F_GETFD, align 4
%127 = call i64 @fcntl(i32 noundef %125, i32 noundef %126, i32 noundef 0)
%128 = trunc i64 %127 to i32
store i32 %128, ptr %11, align 4
%129 = icmp slt i32 %128, 0
br i1 %129, label %130, label %132
130: ; preds = %121
%131 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.8)
br label %132
132: ; preds = %130, %121
%133 = load i32, ptr %9, align 4
%134 = load i32, ptr @F_GETFL, align 4
%135 = call i64 @fcntl(i32 noundef %133, i32 noundef %134, i32 noundef 0)
%136 = trunc i64 %135 to i32
store i32 %136, ptr %12, align 4
%137 = icmp slt i32 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %132
%139 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.9)
br label %140
140: ; preds = %138, %132
%141 = load i32, ptr %11, align 4
%142 = load i32, ptr %12, align 4
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %141, i32 noundef %142)
%144 = load i32, ptr %10, align 4
%145 = load i32, ptr @F_GETFD, align 4
%146 = call i64 @fcntl(i32 noundef %144, i32 noundef %145, i32 noundef 0)
%147 = trunc i64 %146 to i32
store i32 %147, ptr %11, align 4
%148 = icmp slt i32 %147, 0
br i1 %148, label %149, label %151
149: ; preds = %140
%150 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.11)
br label %151
151: ; preds = %149, %140
%152 = load i32, ptr %10, align 4
%153 = load i32, ptr @F_GETFL, align 4
%154 = call i64 @fcntl(i32 noundef %152, i32 noundef %153, i32 noundef 0)
%155 = trunc i64 %154 to i32
store i32 %155, ptr %12, align 4
%156 = icmp slt i32 %155, 0
br i1 %156, label %157, label %159
157: ; preds = %151
%158 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.12)
br label %159
159: ; preds = %157, %151
%160 = load i32, ptr %11, align 4
%161 = load i32, ptr %12, align 4
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %160, i32 noundef %161)
%163 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%164 = load i32, ptr @O_NONBLOCK, align 4
%165 = load i32, ptr @O_SYNC, align 4
%166 = or i32 %164, %165
%167 = load i32, ptr @O_TRUNC, align 4
%168 = or i32 %166, %167
store i32 %168, ptr %12, align 4
%169 = load i32, ptr %8, align 4
%170 = load i32, ptr @F_SETFL, align 4
%171 = load i32, ptr %12, align 4
%172 = call i64 @fcntl(i32 noundef %169, i32 noundef %170, i32 noundef %171)
%173 = icmp slt i64 %172, 0
br i1 %173, label %174, label %176
174: ; preds = %159
%175 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.17)
br label %176
176: ; preds = %174, %159
%177 = load i32, ptr %8, align 4
%178 = load i32, ptr @F_GETFD, align 4
%179 = call i64 @fcntl(i32 noundef %177, i32 noundef %178, i32 noundef 0)
%180 = trunc i64 %179 to i32
store i32 %180, ptr %11, align 4
%181 = icmp slt i32 %180, 0
br i1 %181, label %182, label %184
182: ; preds = %176
%183 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.5)
br label %184
184: ; preds = %182, %176
%185 = load i32, ptr %8, align 4
%186 = load i32, ptr @F_GETFL, align 4
%187 = call i64 @fcntl(i32 noundef %185, i32 noundef %186, i32 noundef 0)
%188 = trunc i64 %187 to i32
store i32 %188, ptr %12, align 4
%189 = icmp slt i32 %188, 0
br i1 %189, label %190, label %192
190: ; preds = %184
%191 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.6)
br label %192
192: ; preds = %190, %184
%193 = load i32, ptr %11, align 4
%194 = load i32, ptr %12, align 4
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %193, i32 noundef %194)
%196 = load i32, ptr %9, align 4
%197 = load i32, ptr @F_GETFD, align 4
%198 = call i64 @fcntl(i32 noundef %196, i32 noundef %197, i32 noundef 0)
%199 = trunc i64 %198 to i32
store i32 %199, ptr %11, align 4
%200 = icmp slt i32 %199, 0
br i1 %200, label %201, label %203
201: ; preds = %192
%202 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.8)
br label %203
203: ; preds = %201, %192
%204 = load i32, ptr %9, align 4
%205 = load i32, ptr @F_GETFL, align 4
%206 = call i64 @fcntl(i32 noundef %204, i32 noundef %205, i32 noundef 0)
%207 = trunc i64 %206 to i32
store i32 %207, ptr %12, align 4
%208 = icmp slt i32 %207, 0
br i1 %208, label %209, label %211
209: ; preds = %203
%210 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.9)
br label %211
211: ; preds = %209, %203
%212 = load i32, ptr %11, align 4
%213 = load i32, ptr %12, align 4
%214 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %212, i32 noundef %213)
%215 = load i32, ptr %10, align 4
%216 = load i32, ptr @F_GETFD, align 4
%217 = call i64 @fcntl(i32 noundef %215, i32 noundef %216, i32 noundef 0)
%218 = trunc i64 %217 to i32
store i32 %218, ptr %11, align 4
%219 = icmp slt i32 %218, 0
br i1 %219, label %220, label %222
220: ; preds = %211
%221 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.11)
br label %222
222: ; preds = %220, %211
%223 = load i32, ptr %10, align 4
%224 = load i32, ptr @F_GETFL, align 4
%225 = call i64 @fcntl(i32 noundef %223, i32 noundef %224, i32 noundef 0)
%226 = trunc i64 %225 to i32
store i32 %226, ptr %12, align 4
%227 = icmp slt i32 %226, 0
br i1 %227, label %228, label %230
228: ; preds = %222
%229 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.12)
br label %230
230: ; preds = %228, %222
%231 = load i32, ptr %11, align 4
%232 = load i32, ptr %12, align 4
%233 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %231, i32 noundef %232)
%234 = load i32, ptr %8, align 4
%235 = call i32 @close(i32 noundef %234)
%236 = load i32, ptr %9, align 4
%237 = call i32 @close(i32 noundef %236)
%238 = load i32, ptr %10, align 4
%239 = call i32 @close(i32 noundef %238)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @err_sys(ptr noundef, ...) #1
declare i64 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @dup(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuv7fhmgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"input.dat\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"error opening %s fd1\00", align 1
@F_SETFD = dso_local global i32 0, align 4
@FD_CLOEXEC = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"error on dup fd1\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"error on opening %s as fd3\00", align 1
@.str.4 = private unnamed_addr constant [66 x i8] c"================ initial status of fd and fl ===================\0A\00", align 1
@F_GETFD = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [45 x i8] c"error on fcntl while geting fd flags for fd1\00", align 1
@F_GETFL = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [48 x i8] c"error on fcntl while getting file flags for fd1\00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"fd1: fd flag is 0x%x, fl flag is 0x%x\0A\00", align 1
@.str.8 = private unnamed_addr constant [45 x i8] c"error on fcntl while geting fd flags for fd2\00", align 1
@.str.9 = private unnamed_addr constant [48 x i8] c"error on fcntl while getting file flags for fd2\00", align 1
@.str.10 = private unnamed_addr constant [39 x i8] c"fd2: fd flag is 0x%x, fl flag is 0x%x\0A\00", align 1
@.str.11 = private unnamed_addr constant [45 x i8] c"error on fcntl while geting fd flags for fd3\00", align 1
@.str.12 = private unnamed_addr constant [48 x i8] c"error on fcntl while getting file flags for fd3\00", align 1
@.str.13 = private unnamed_addr constant [39 x i8] c"fd3: fd flag is 0x%x, fl flag is 0x%x\0A\00", align 1
@.str.14 = private unnamed_addr constant [60 x i8] c"================ Change fd flag of fd1 ===================\0A\00", align 1
@.str.15 = private unnamed_addr constant [32 x i8] c"error on setting fd flag of fd1\00", align 1
@.str.16 = private unnamed_addr constant [60 x i8] c"================ Change fl flag of fd1 ===================\0A\00", align 1
@O_NONBLOCK = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [32 x i8] c"error on setting fl flag of fd1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr @O_RDWR, align 4
store i32 %13, ptr %6, align 4
store ptr @.str, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %6, align 4
%16 = call i32 (ptr, i32, ...) @open(ptr noundef %14, i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %8, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load ptr, ptr %7, align 8
%20 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.1, ptr noundef %19)
br label %21
21: ; preds = %18, %2
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr @F_SETFD, align 4
%24 = load i32, ptr @FD_CLOEXEC, align 4
%25 = call i64 @fcntl(i32 noundef %22, i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr %8, align 4
%27 = call i32 @dup(i32 noundef %26)
store i32 %27, ptr %9, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %21
%30 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.2)
br label %31
31: ; preds = %29, %21
%32 = load ptr, ptr %7, align 8
%33 = load i32, ptr %6, align 4
%34 = call i32 (ptr, i32, ...) @open(ptr noundef %32, i32 noundef %33)
store i32 %34, ptr %10, align 4
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = load ptr, ptr %7, align 8
%38 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.3, ptr noundef %37)
br label %39
39: ; preds = %36, %31
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr @F_GETFD, align 4
%43 = call i64 @fcntl(i32 noundef %41, i32 noundef %42, i32 noundef 0)
%44 = trunc i64 %43 to i32
store i32 %44, ptr %11, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %39
%47 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.5)
br label %48
48: ; preds = %46, %39
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr @F_GETFL, align 4
%51 = call i64 @fcntl(i32 noundef %49, i32 noundef %50, i32 noundef 0)
%52 = trunc i64 %51 to i32
store i32 %52, ptr %12, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %48
%55 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.6)
br label %56
56: ; preds = %54, %48
%57 = load i32, ptr %11, align 4
%58 = load i32, ptr %12, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %57, i32 noundef %58)
%60 = load i32, ptr %9, align 4
%61 = load i32, ptr @F_GETFD, align 4
%62 = call i64 @fcntl(i32 noundef %60, i32 noundef %61, i32 noundef 0)
%63 = trunc i64 %62 to i32
store i32 %63, ptr %11, align 4
%64 = icmp slt i32 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %56
%66 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.8)
br label %67
67: ; preds = %65, %56
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr @F_GETFL, align 4
%70 = call i64 @fcntl(i32 noundef %68, i32 noundef %69, i32 noundef 0)
%71 = trunc i64 %70 to i32
store i32 %71, ptr %12, align 4
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %67
%74 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.9)
br label %75
75: ; preds = %73, %67
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %12, align 4
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %76, i32 noundef %77)
%79 = load i32, ptr %10, align 4
%80 = load i32, ptr @F_GETFD, align 4
%81 = call i64 @fcntl(i32 noundef %79, i32 noundef %80, i32 noundef 0)
%82 = trunc i64 %81 to i32
store i32 %82, ptr %11, align 4
%83 = icmp slt i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %75
%85 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.11)
br label %86
86: ; preds = %84, %75
%87 = load i32, ptr %10, align 4
%88 = load i32, ptr @F_GETFL, align 4
%89 = call i64 @fcntl(i32 noundef %87, i32 noundef %88, i32 noundef 0)
%90 = trunc i64 %89 to i32
store i32 %90, ptr %12, align 4
%91 = icmp slt i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %86
%93 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.12)
br label %94
94: ; preds = %92, %86
%95 = load i32, ptr %11, align 4
%96 = load i32, ptr %12, align 4
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %95, i32 noundef %96)
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr @F_SETFD, align 4
%101 = call i64 @fcntl(i32 noundef %99, i32 noundef %100, i32 noundef 0)
%102 = icmp slt i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %94
%104 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.15)
br label %105
105: ; preds = %103, %94
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr @F_GETFD, align 4
%108 = call i64 @fcntl(i32 noundef %106, i32 noundef %107, i32 noundef 0)
%109 = trunc i64 %108 to i32
store i32 %109, ptr %11, align 4
%110 = icmp slt i32 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %105
%112 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.5)
br label %113
113: ; preds = %111, %105
%114 = load i32, ptr %8, align 4
%115 = load i32, ptr @F_GETFL, align 4
%116 = call i64 @fcntl(i32 noundef %114, i32 noundef %115, i32 noundef 0)
%117 = trunc i64 %116 to i32
store i32 %117, ptr %12, align 4
%118 = icmp slt i32 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %113
%120 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.6)
br label %121
121: ; preds = %119, %113
%122 = load i32, ptr %11, align 4
%123 = load i32, ptr %12, align 4
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %122, i32 noundef %123)
%125 = load i32, ptr %9, align 4
%126 = load i32, ptr @F_GETFD, align 4
%127 = call i64 @fcntl(i32 noundef %125, i32 noundef %126, i32 noundef 0)
%128 = trunc i64 %127 to i32
store i32 %128, ptr %11, align 4
%129 = icmp slt i32 %128, 0
br i1 %129, label %130, label %132
130: ; preds = %121
%131 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.8)
br label %132
132: ; preds = %130, %121
%133 = load i32, ptr %9, align 4
%134 = load i32, ptr @F_GETFL, align 4
%135 = call i64 @fcntl(i32 noundef %133, i32 noundef %134, i32 noundef 0)
%136 = trunc i64 %135 to i32
store i32 %136, ptr %12, align 4
%137 = icmp slt i32 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %132
%139 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.9)
br label %140
140: ; preds = %138, %132
%141 = load i32, ptr %11, align 4
%142 = load i32, ptr %12, align 4
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %141, i32 noundef %142)
%144 = load i32, ptr %10, align 4
%145 = load i32, ptr @F_GETFD, align 4
%146 = call i64 @fcntl(i32 noundef %144, i32 noundef %145, i32 noundef 0)
%147 = trunc i64 %146 to i32
store i32 %147, ptr %11, align 4
%148 = icmp slt i32 %147, 0
br i1 %148, label %149, label %151
149: ; preds = %140
%150 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.11)
br label %151
151: ; preds = %149, %140
%152 = load i32, ptr %10, align 4
%153 = load i32, ptr @F_GETFL, align 4
%154 = call i64 @fcntl(i32 noundef %152, i32 noundef %153, i32 noundef 0)
%155 = trunc i64 %154 to i32
store i32 %155, ptr %12, align 4
%156 = icmp slt i32 %155, 0
br i1 %156, label %157, label %159
157: ; preds = %151
%158 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.12)
br label %159
159: ; preds = %157, %151
%160 = load i32, ptr %11, align 4
%161 = load i32, ptr %12, align 4
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %160, i32 noundef %161)
%163 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%164 = load i32, ptr @O_NONBLOCK, align 4
%165 = load i32, ptr @O_SYNC, align 4
%166 = or i32 %164, %165
%167 = load i32, ptr @O_TRUNC, align 4
%168 = or i32 %166, %167
store i32 %168, ptr %12, align 4
%169 = load i32, ptr %8, align 4
%170 = load i32, ptr @F_SETFL, align 4
%171 = load i32, ptr %12, align 4
%172 = call i64 @fcntl(i32 noundef %169, i32 noundef %170, i32 noundef %171)
%173 = icmp slt i64 %172, 0
br i1 %173, label %174, label %176
174: ; preds = %159
%175 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.17)
br label %176
176: ; preds = %174, %159
%177 = load i32, ptr %8, align 4
%178 = load i32, ptr @F_GETFD, align 4
%179 = call i64 @fcntl(i32 noundef %177, i32 noundef %178, i32 noundef 0)
%180 = trunc i64 %179 to i32
store i32 %180, ptr %11, align 4
%181 = icmp slt i32 %180, 0
br i1 %181, label %182, label %184
182: ; preds = %176
%183 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.5)
br label %184
184: ; preds = %182, %176
%185 = load i32, ptr %8, align 4
%186 = load i32, ptr @F_GETFL, align 4
%187 = call i64 @fcntl(i32 noundef %185, i32 noundef %186, i32 noundef 0)
%188 = trunc i64 %187 to i32
store i32 %188, ptr %12, align 4
%189 = icmp slt i32 %188, 0
br i1 %189, label %190, label %192
190: ; preds = %184
%191 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.6)
br label %192
192: ; preds = %190, %184
%193 = load i32, ptr %11, align 4
%194 = load i32, ptr %12, align 4
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %193, i32 noundef %194)
%196 = load i32, ptr %9, align 4
%197 = load i32, ptr @F_GETFD, align 4
%198 = call i64 @fcntl(i32 noundef %196, i32 noundef %197, i32 noundef 0)
%199 = trunc i64 %198 to i32
store i32 %199, ptr %11, align 4
%200 = icmp slt i32 %199, 0
br i1 %200, label %201, label %203
201: ; preds = %192
%202 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.8)
br label %203
203: ; preds = %201, %192
%204 = load i32, ptr %9, align 4
%205 = load i32, ptr @F_GETFL, align 4
%206 = call i64 @fcntl(i32 noundef %204, i32 noundef %205, i32 noundef 0)
%207 = trunc i64 %206 to i32
store i32 %207, ptr %12, align 4
%208 = icmp slt i32 %207, 0
br i1 %208, label %209, label %211
209: ; preds = %203
%210 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.9)
br label %211
211: ; preds = %209, %203
%212 = load i32, ptr %11, align 4
%213 = load i32, ptr %12, align 4
%214 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %212, i32 noundef %213)
%215 = load i32, ptr %10, align 4
%216 = load i32, ptr @F_GETFD, align 4
%217 = call i64 @fcntl(i32 noundef %215, i32 noundef %216, i32 noundef 0)
%218 = trunc i64 %217 to i32
store i32 %218, ptr %11, align 4
%219 = icmp slt i32 %218, 0
br i1 %219, label %220, label %222
220: ; preds = %211
%221 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.11)
br label %222
222: ; preds = %220, %211
%223 = load i32, ptr %10, align 4
%224 = load i32, ptr @F_GETFL, align 4
%225 = call i64 @fcntl(i32 noundef %223, i32 noundef %224, i32 noundef 0)
%226 = trunc i64 %225 to i32
store i32 %226, ptr %12, align 4
%227 = icmp slt i32 %226, 0
br i1 %227, label %228, label %230
228: ; preds = %222
%229 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.12)
br label %230
230: ; preds = %228, %222
%231 = load i32, ptr %11, align 4
%232 = load i32, ptr %12, align 4
%233 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %231, i32 noundef %232)
%234 = load i32, ptr %8, align 4
%235 = call i32 @close(i32 noundef %234)
%236 = load i32, ptr %9, align 4
%237 = call i32 @close(i32 noundef %236)
%238 = load i32, ptr %10, align 4
%239 = call i32 @close(i32 noundef %238)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @err_sys(ptr noundef, ...) #1
declare i64 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @dup(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptbgzgmo0.c'
source_filename = "/tmp/tmptbgzgmo0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"client\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"server\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 4
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (...) @help()
br label %10
10: ; preds = %8, %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @strcmp(ptr noundef %13, ptr noundef @.str)
%15 = icmp ne i32 %14, 0
br i1 %15, label %25, label %16
16: ; preds = %10
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 2
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 3
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
%24 = call i32 @client(ptr noundef %19, i32 noundef %23, i32 noundef 1)
br label %43
25: ; preds = %10
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strcmp(ptr noundef %28, ptr noundef @.str.1)
%30 = icmp ne i32 %29, 0
br i1 %30, label %40, label %31
31: ; preds = %25
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 3
%37 = load ptr, ptr %36, align 8
%38 = call i32 @atoi(ptr noundef %37)
%39 = call i32 @server(ptr noundef %34, i32 noundef %38)
br label %42
40: ; preds = %25
%41 = call i32 (...) @help()
br label %42
42: ; preds = %40, %31
br label %43
43: ; preds = %42, %16
ret i32 0
}
declare i32 @help(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @client(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @server(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptbgzgmo0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"client\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"server\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 4
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (...) @help()
br label %10
10: ; preds = %8, %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @strcmp(ptr noundef %13, ptr noundef @.str)
%15 = icmp ne i32 %14, 0
br i1 %15, label %25, label %16
16: ; preds = %10
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 2
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 3
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
%24 = call i32 @client(ptr noundef %19, i32 noundef %23, i32 noundef 1)
br label %43
25: ; preds = %10
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strcmp(ptr noundef %28, ptr noundef @.str.1)
%30 = icmp ne i32 %29, 0
br i1 %30, label %40, label %31
31: ; preds = %25
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 3
%37 = load ptr, ptr %36, align 8
%38 = call i32 @atoi(ptr noundef %37)
%39 = call i32 @server(ptr noundef %34, i32 noundef %38)
br label %42
40: ; preds = %25
%41 = call i32 (...) @help()
br label %42
42: ; preds = %40, %31
br label %43
43: ; preds = %42, %16
ret i32 0
}
declare i32 @help(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @client(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @server(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4cs6_cig.c'
source_filename = "/tmp/tmp4cs6_cig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"No null point check: *p is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr %3, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4cs6_cig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"No null point check: *p is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr %3, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvckow0ct.c'
source_filename = "/tmp/tmpvckow0ct.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @uart_check() #0 {
%1 = alloca i32, align 4
%2 = call i32 @GET32(i32 noundef 1059147860)
%3 = and i32 %2, 1
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 1, ptr %1, align 4
br label %7
6: ; preds = %0
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %6, %5
%8 = load i32, ptr %1, align 4
ret i32 %8
}
declare i32 @GET32(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvckow0ct.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @uart_check() #0 {
%1 = alloca i32, align 4
%2 = call i32 @GET32(i32 noundef 1059147860)
%3 = and i32 %2, 1
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 1, ptr %1, align 4
br label %7
6: ; preds = %0
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %6, %5
%8 = load i32, ptr %1, align 4
ret i32 %8
}
declare i32 @GET32(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_u2ot9mw.c'
source_filename = "/tmp/tmp_u2ot9mw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
br label %7
7: ; preds = %31, %0
%8 = load i32, ptr %4, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %4, align 4
%10 = icmp ne i32 %8, 0
br i1 %10, label %11, label %34
11: ; preds = %7
store i32 1, ptr %2, align 4
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %28, %11
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %31
17: ; preds = %13
%18 = load i32, ptr %3, align 4
%19 = srem i32 %18, 2
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = load i32, ptr %2, align 4
%23 = mul nsw i32 %22, 2
store i32 %23, ptr %2, align 4
br label %27
24: ; preds = %17
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %24, %21
br label %28
28: ; preds = %27
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
br label %13, !llvm.loop !6
31: ; preds = %13
%32 = load i32, ptr %2, align 4
%33 = call i32 @printf(ptr noundef @.str.1, i32 noundef %32)
br label %7, !llvm.loop !8
34: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_u2ot9mw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%7 = load i32, ptr %4, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %4, align 4
%9 = icmp ne i32 %7, 0
br i1 %9, label %.lr.ph2, label %38
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %32
store i32 1, ptr %2, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
store i32 0, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %32
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %26
%16 = load i32, ptr %3, align 4
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr %2, align 4
%21 = mul nsw i32 %20, 2
store i32 %21, ptr %2, align 4
br label %25
22: ; preds = %15
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %2, align 4
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %3, align 4
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr %5, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %10
%33 = load i32, ptr %2, align 4
%34 = call i32 @printf(ptr noundef @.str.1, i32 noundef %33)
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %4, align 4
%37 = icmp ne i32 %35, 0
br i1 %37, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %38
38: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmps_ei9qri.c'
source_filename = "/tmp/tmps_ei9qri.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"area\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @funArea() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @system(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps_ei9qri.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"area\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @funArea() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @system(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu7a9xuyg.c'
source_filename = "/tmp/tmpu7a9xuyg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Hello from thread %ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hello(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load i64, ptr %4, align 8
%6 = call i32 @printf(ptr noundef @.str, i64 noundef %5)
%7 = call i32 @pthread_exit(ptr noundef null)
%8 = load ptr, ptr %2, align 8
ret ptr %8
}
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu7a9xuyg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Hello from thread %ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hello(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load i64, ptr %4, align 8
%6 = call i32 @printf(ptr noundef @.str, i64 noundef %5)
%7 = call i32 @pthread_exit(ptr noundef null)
%8 = load ptr, ptr %2, align 8
ret ptr %8
}
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk1qiu2mg.c'
source_filename = "/tmp/tmpk1qiu2mg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk1qiu2mg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9kbfx4jd.c'
source_filename = "/tmp/tmp9kbfx4jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"The words are anagrams\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"The words are not anagrams\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [26 x i32], align 16
%3 = alloca [26 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 104, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 104, i1 false)
%4 = getelementptr inbounds [26 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @read_word(ptr noundef %4)
%6 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
%7 = call i32 @read_word(ptr noundef %6)
%8 = getelementptr inbounds [26 x i32], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
%10 = call i64 @compare_words(ptr noundef %8, ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @printf(ptr noundef @.str)
br label %16
14: ; preds = %0
%15 = call i32 @printf(ptr noundef @.str.1)
br label %16
16: ; preds = %14, %12
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @read_word(ptr noundef) #2
declare i64 @compare_words(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9kbfx4jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"The words are anagrams\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"The words are not anagrams\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [26 x i32], align 16
%3 = alloca [26 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 104, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 104, i1 false)
%4 = getelementptr inbounds [26 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @read_word(ptr noundef %4)
%6 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
%7 = call i32 @read_word(ptr noundef %6)
%8 = getelementptr inbounds [26 x i32], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
%10 = call i64 @compare_words(ptr noundef %8, ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @printf(ptr noundef @.str)
br label %16
14: ; preds = %0
%15 = call i32 @printf(ptr noundef @.str.1)
br label %16
16: ; preds = %14, %12
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @read_word(ptr noundef) #2
declare i64 @compare_words(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5_cuh946.c'
source_filename = "/tmp/tmp5_cuh946.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.MLDLGetDMPData.regs = private unnamed_addr constant [1 x i8] c"\01", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i16 @MLDLGetDMPData(i8 noundef zeroext %0, ptr noundef %1, i8 noundef zeroext %2) #0 {
%4 = alloca i16, align 2
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i16, align 2
%9 = alloca [1 x i8], align 1
store i8 %0, ptr %5, align 1
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.MLDLGetDMPData.regs, i64 1, i1 false)
%10 = load i8, ptr %7, align 1
%11 = load ptr, ptr %6, align 8
%12 = call zeroext i16 @MPUGetFIFO(i8 noundef zeroext %10, ptr noundef %11)
store i16 %12, ptr %8, align 2
%13 = load i8, ptr %5, align 1
%14 = zext i8 %13 to i32
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %17
16: ; preds = %3
br label %23
17: ; preds = %3
%18 = getelementptr inbounds [1 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @MLDLSetMemoryMPU(i32 noundef 40, i32 noundef 1, ptr noundef %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i16 1, ptr %4, align 2
br label %25
22: ; preds = %17
br label %23
23: ; preds = %22, %16
%24 = load i16, ptr %8, align 2
store i16 %24, ptr %4, align 2
br label %25
25: ; preds = %23, %21
%26 = load i16, ptr %4, align 2
ret i16 %26
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare zeroext i16 @MPUGetFIFO(i8 noundef zeroext, ptr noundef) #2
declare i32 @MLDLSetMemoryMPU(i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5_cuh946.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.MLDLGetDMPData.regs = private unnamed_addr constant [1 x i8] c"\01", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i16 @MLDLGetDMPData(i8 noundef zeroext %0, ptr noundef %1, i8 noundef zeroext %2) #0 {
%4 = alloca i16, align 2
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i16, align 2
%9 = alloca [1 x i8], align 1
store i8 %0, ptr %5, align 1
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.MLDLGetDMPData.regs, i64 1, i1 false)
%10 = load i8, ptr %7, align 1
%11 = load ptr, ptr %6, align 8
%12 = call zeroext i16 @MPUGetFIFO(i8 noundef zeroext %10, ptr noundef %11)
store i16 %12, ptr %8, align 2
%13 = load i8, ptr %5, align 1
%14 = zext i8 %13 to i32
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %17
16: ; preds = %3
br label %23
17: ; preds = %3
%18 = getelementptr inbounds [1 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @MLDLSetMemoryMPU(i32 noundef 40, i32 noundef 1, ptr noundef %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i16 1, ptr %4, align 2
br label %25
22: ; preds = %17
br label %23
23: ; preds = %22, %16
%24 = load i16, ptr %8, align 2
store i16 %24, ptr %4, align 2
br label %25
25: ; preds = %23, %21
%26 = load i16, ptr %4, align 2
ret i16 %26
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare zeroext i16 @MPUGetFIFO(i8 noundef zeroext, ptr noundef) #2
declare i32 @MLDLSetMemoryMPU(i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9kjy5gjw.c'
source_filename = "/tmp/tmp9kjy5gjw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @my_root__x(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i64 @my_key(ptr noundef %5, ptr noundef @.str)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %2
%9 = load ptr, ptr %4, align 8
%10 = call i64 @my_colon(ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i64 @my_root__x_value(ptr noundef %13, ptr noundef %14)
%16 = icmp ne i64 %15, 0
br label %17
17: ; preds = %12, %8, %2
%18 = phi i1 [ false, %8 ], [ false, %2 ], [ %16, %12 ]
%19 = zext i1 %18 to i32
ret i32 %19
}
declare i64 @my_key(ptr noundef, ptr noundef) #1
declare i64 @my_colon(ptr noundef) #1
declare i64 @my_root__x_value(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9kjy5gjw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @my_root__x(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i64 @my_key(ptr noundef %5, ptr noundef @.str)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %2
%9 = load ptr, ptr %4, align 8
%10 = call i64 @my_colon(ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i64 @my_root__x_value(ptr noundef %13, ptr noundef %14)
%16 = icmp ne i64 %15, 0
br label %17
17: ; preds = %12, %8, %2
%18 = phi i1 [ false, %8 ], [ false, %2 ], [ %16, %12 ]
%19 = zext i1 %18 to i32
ret i32 %19
}
declare i64 @my_key(ptr noundef, ptr noundef) #1
declare i64 @my_colon(ptr noundef) #1
declare i64 @my_root__x_value(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt78lkmkb.c'
source_filename = "/tmp/tmpt78lkmkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Shift(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strLen(ptr noundef %5)
store i32 %6, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %28, %1
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %31
11: ; preds = %7
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %17, 97
%19 = mul nsw i32 2, %18
%20 = add nsw i32 %19, 1
%21 = srem i32 %20, 26
%22 = add nsw i32 %21, 97
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
br label %28
28: ; preds = %11
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
br label %7, !llvm.loop !6
31: ; preds = %7
ret void
}
declare i32 @strLen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt78lkmkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Shift(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strLen(ptr noundef %5)
store i32 %6, ptr %4, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %33
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %27
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = sub nsw i32 %16, 97
%18 = mul nsw i32 2, %17
%19 = add nsw i32 %18, 1
%20 = srem i32 %19, 26
%21 = add nsw i32 %20, 97
%22 = trunc i32 %21 to i8
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 %22, ptr %26, align 1
br label %27
27: ; preds = %10
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %1
ret void
}
declare i32 @strLen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgqmxkcle.c'
source_filename = "/tmp/tmpgqmxkcle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @install_real(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call float @atof(ptr noundef %3)
ret float %4
}
declare float @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgqmxkcle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @install_real(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call float @atof(ptr noundef %3)
ret float %4
}
declare float @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu0ek6nsn.c'
source_filename = "/tmp/tmpu0ek6nsn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu0ek6nsn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ncyo7vr.c'
source_filename = "/tmp/tmp_ncyo7vr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"bbb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @myprintf(ptr noundef @.str)
ret i32 0
}
declare i32 @myprintf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ncyo7vr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"bbb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @myprintf(ptr noundef @.str)
ret i32 0
}
declare i32 @myprintf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8vqj_lsb.c'
source_filename = "/tmp/tmp8vqj_lsb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"pow(2, 5) = %lld\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"pow(3, 10) = %lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @my_pow(i32 noundef 2, i32 noundef 5)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @my_pow(i32 noundef 3, i32 noundef 10)
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @my_pow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8vqj_lsb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"pow(2, 5) = %lld\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"pow(3, 10) = %lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @my_pow(i32 noundef 2, i32 noundef 5)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @my_pow(i32 noundef 3, i32 noundef 10)
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @my_pow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8o31s7zp.c'
source_filename = "/tmp/tmp8o31s7zp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CHAR_MAX = dso_local global i64 0, align 8
@CHAR_MIN = dso_local global i64 0, align 8
@DBL_MAX = dso_local global i32 0, align 4
@DBL_MIN = dso_local global i32 0, align 4
@FLT_MAX = dso_local global i32 0, align 4
@FLT_MIN = dso_local global i32 0, align 4
@INT_MAX = dso_local global i64 0, align 8
@INT_MIN = dso_local global i64 0, align 8
@LONG_MAX = dso_local global i32 0, align 4
@LONG_MIN = dso_local global i32 0, align 4
@RAND_MAX = dso_local global i64 0, align 8
@SHRT_MAX = dso_local global i64 0, align 8
@SHRT_MIN = dso_local global i64 0, align 8
@UINT_MAX = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8o31s7zp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CHAR_MAX = dso_local global i64 0, align 8
@CHAR_MIN = dso_local global i64 0, align 8
@DBL_MAX = dso_local global i32 0, align 4
@DBL_MIN = dso_local global i32 0, align 4
@FLT_MAX = dso_local global i32 0, align 4
@FLT_MIN = dso_local global i32 0, align 4
@INT_MAX = dso_local global i64 0, align 8
@INT_MIN = dso_local global i64 0, align 8
@LONG_MAX = dso_local global i32 0, align 4
@LONG_MIN = dso_local global i32 0, align 4
@RAND_MAX = dso_local global i64 0, align 8
@SHRT_MAX = dso_local global i64 0, align 8
@SHRT_MIN = dso_local global i64 0, align 8
@UINT_MAX = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg63z7fur.c'
source_filename = "/tmp/tmpg63z7fur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @RMSE2(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store double 0.000000e+00, ptr %10, align 8
store i32 0, ptr %9, align 4
br label %11
11: ; preds = %39, %4
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %42
15: ; preds = %11
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %7, align 8
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %16, i64 %22
%24 = load double, ptr %23, align 8
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %25, i64 %31
%33 = load double, ptr %32, align 8
%34 = fsub double %24, %33
%35 = call i64 @pow(double noundef %34, double noundef 2.000000e+00)
%36 = sitofp i64 %35 to double
%37 = load double, ptr %10, align 8
%38 = fadd double %37, %36
store double %38, ptr %10, align 8
br label %39
39: ; preds = %15
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4
br label %11, !llvm.loop !6
42: ; preds = %11
%43 = load double, ptr %10, align 8
%44 = load i32, ptr %8, align 4
%45 = sitofp i32 %44 to double
%46 = fdiv double %43, %45
%47 = call double @sqrt(double noundef %46) #3
ret double %47
}
declare i64 @pow(double noundef, double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg63z7fur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @RMSE2(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store double 0.000000e+00, ptr %10, align 8
store i32 0, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %8, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %44
.lr.ph: ; preds = %4
br label %14
14: ; preds = %.lr.ph, %38
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr %9, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %15, i64 %21
%23 = load double, ptr %22, align 8
%24 = load ptr, ptr %6, align 8
%25 = load ptr, ptr %7, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, ptr %24, i64 %30
%32 = load double, ptr %31, align 8
%33 = fsub double %23, %32
%34 = call i64 @pow(double noundef %33, double noundef 2.000000e+00)
%35 = sitofp i64 %34 to double
%36 = load double, ptr %10, align 8
%37 = fadd double %36, %35
store double %37, ptr %10, align 8
br label %38
38: ; preds = %14
%39 = load i32, ptr %9, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %4
%45 = load double, ptr %10, align 8
%46 = load i32, ptr %8, align 4
%47 = sitofp i32 %46 to double
%48 = fdiv double %45, %47
%49 = call double @sqrt(double noundef %48) #3
ret double %49
}
declare i64 @pow(double noundef, double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpuhi8v6ap.c'
source_filename = "/tmp/tmpuhi8v6ap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuhi8v6ap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq6kvmw6k.c'
source_filename = "/tmp/tmpq6kvmw6k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @BSAmericanApprox(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store i32 %0, ptr %8, align 4
store double %1, ptr %9, align 8
store double %2, ptr %10, align 8
store double %3, ptr %11, align 8
store double %4, ptr %12, align 8
store double %5, ptr %13, align 8
store double %6, ptr %14, align 8
%16 = load double, ptr %9, align 8
%17 = load double, ptr %9, align 8
%18 = fcmp oeq double %16, %17
br i1 %18, label %19, label %25
19: ; preds = %7
%20 = load double, ptr %9, align 8
%21 = fcmp oge double %20, 0x3EB0C6F7A0B5ED8D
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load double, ptr %9, align 8
%24 = fcmp ole double %23, 1.000000e+12
br label %25
25: ; preds = %22, %19, %7
%26 = phi i1 [ false, %19 ], [ false, %7 ], [ %24, %22 ]
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 noundef %27)
%29 = load double, ptr %10, align 8
%30 = load double, ptr %10, align 8
%31 = fcmp oeq double %29, %30
br i1 %31, label %32, label %38
32: ; preds = %25
%33 = load double, ptr %10, align 8
%34 = fcmp oge double %33, 0x3EB0C6F7A0B5ED8D
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load double, ptr %10, align 8
%37 = fcmp ole double %36, 1.000000e+12
br label %38
38: ; preds = %35, %32, %25
%39 = phi i1 [ false, %32 ], [ false, %25 ], [ %37, %35 ]
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = load double, ptr %11, align 8
%43 = load double, ptr %11, align 8
%44 = fcmp oeq double %42, %43
br i1 %44, label %45, label %51
45: ; preds = %38
%46 = load double, ptr %11, align 8
%47 = fcmp oge double %46, 0x3F2596179C29D2CE
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load double, ptr %11, align 8
%50 = fcmp ole double %49, 2.000000e+01
br label %51
51: ; preds = %48, %45, %38
%52 = phi i1 [ false, %45 ], [ false, %38 ], [ %50, %48 ]
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 noundef %53)
%55 = load double, ptr %12, align 8
%56 = load double, ptr %12, align 8
%57 = fcmp oeq double %55, %56
br i1 %57, label %58, label %64
58: ; preds = %51
%59 = load double, ptr %12, align 8
%60 = fcmp oge double %59, 0.000000e+00
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load double, ptr %12, align 8
%63 = fcmp ole double %62, 1.000000e+03
br label %64
64: ; preds = %61, %58, %51
%65 = phi i1 [ false, %58 ], [ false, %51 ], [ %63, %61 ]
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 noundef %66)
%68 = load double, ptr %14, align 8
%69 = load double, ptr %14, align 8
%70 = fcmp oeq double %68, %69
br i1 %70, label %71, label %77
71: ; preds = %64
%72 = load double, ptr %14, align 8
%73 = fcmp oge double %72, 0x3E7AD7F29ABCAF48
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = load double, ptr %14, align 8
%76 = fcmp ole double %75, 0x40593FFFD60E94EE
br label %77
77: ; preds = %74, %71, %64
%78 = phi i1 [ false, %71 ], [ false, %64 ], [ %76, %74 ]
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 noundef %79)
%81 = load i32, ptr %8, align 4
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %91
83: ; preds = %77
%84 = load double, ptr %9, align 8
%85 = load double, ptr %10, align 8
%86 = load double, ptr %11, align 8
%87 = load double, ptr %12, align 8
%88 = load double, ptr %13, align 8
%89 = load double, ptr %14, align 8
%90 = call double @BSAmericanCallApprox(double noundef %84, double noundef %85, double noundef %86, double noundef %87, double noundef %88, double noundef %89)
store double %90, ptr %15, align 8
br label %102
91: ; preds = %77
%92 = load double, ptr %10, align 8
%93 = load double, ptr %9, align 8
%94 = load double, ptr %11, align 8
%95 = load double, ptr %12, align 8
%96 = load double, ptr %13, align 8
%97 = fsub double %95, %96
%98 = load double, ptr %13, align 8
%99 = fneg double %98
%100 = load double, ptr %14, align 8
%101 = call double @BSAmericanCallApprox(double noundef %92, double noundef %93, double noundef %94, double noundef %97, double noundef %99, double noundef %100)
store double %101, ptr %15, align 8
br label %102
102: ; preds = %91, %83
%103 = load double, ptr %15, align 8
%104 = load double, ptr %15, align 8
%105 = fcmp oeq double %103, %104
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 noundef %106)
%108 = load double, ptr %15, align 8
ret double %108
}
declare i32 @assert(i32 noundef) #1
declare double @BSAmericanCallApprox(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq6kvmw6k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @BSAmericanApprox(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store i32 %0, ptr %8, align 4
store double %1, ptr %9, align 8
store double %2, ptr %10, align 8
store double %3, ptr %11, align 8
store double %4, ptr %12, align 8
store double %5, ptr %13, align 8
store double %6, ptr %14, align 8
%16 = load double, ptr %9, align 8
%17 = load double, ptr %9, align 8
%18 = fcmp oeq double %16, %17
br i1 %18, label %19, label %25
19: ; preds = %7
%20 = load double, ptr %9, align 8
%21 = fcmp oge double %20, 0x3EB0C6F7A0B5ED8D
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load double, ptr %9, align 8
%24 = fcmp ole double %23, 1.000000e+12
br label %25
25: ; preds = %22, %19, %7
%26 = phi i1 [ false, %19 ], [ false, %7 ], [ %24, %22 ]
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 noundef %27)
%29 = load double, ptr %10, align 8
%30 = load double, ptr %10, align 8
%31 = fcmp oeq double %29, %30
br i1 %31, label %32, label %38
32: ; preds = %25
%33 = load double, ptr %10, align 8
%34 = fcmp oge double %33, 0x3EB0C6F7A0B5ED8D
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load double, ptr %10, align 8
%37 = fcmp ole double %36, 1.000000e+12
br label %38
38: ; preds = %35, %32, %25
%39 = phi i1 [ false, %32 ], [ false, %25 ], [ %37, %35 ]
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = load double, ptr %11, align 8
%43 = load double, ptr %11, align 8
%44 = fcmp oeq double %42, %43
br i1 %44, label %45, label %51
45: ; preds = %38
%46 = load double, ptr %11, align 8
%47 = fcmp oge double %46, 0x3F2596179C29D2CE
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load double, ptr %11, align 8
%50 = fcmp ole double %49, 2.000000e+01
br label %51
51: ; preds = %48, %45, %38
%52 = phi i1 [ false, %45 ], [ false, %38 ], [ %50, %48 ]
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 noundef %53)
%55 = load double, ptr %12, align 8
%56 = load double, ptr %12, align 8
%57 = fcmp oeq double %55, %56
br i1 %57, label %58, label %64
58: ; preds = %51
%59 = load double, ptr %12, align 8
%60 = fcmp oge double %59, 0.000000e+00
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load double, ptr %12, align 8
%63 = fcmp ole double %62, 1.000000e+03
br label %64
64: ; preds = %61, %58, %51
%65 = phi i1 [ false, %58 ], [ false, %51 ], [ %63, %61 ]
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 noundef %66)
%68 = load double, ptr %14, align 8
%69 = load double, ptr %14, align 8
%70 = fcmp oeq double %68, %69
br i1 %70, label %71, label %77
71: ; preds = %64
%72 = load double, ptr %14, align 8
%73 = fcmp oge double %72, 0x3E7AD7F29ABCAF48
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = load double, ptr %14, align 8
%76 = fcmp ole double %75, 0x40593FFFD60E94EE
br label %77
77: ; preds = %74, %71, %64
%78 = phi i1 [ false, %71 ], [ false, %64 ], [ %76, %74 ]
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 noundef %79)
%81 = load i32, ptr %8, align 4
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %91
83: ; preds = %77
%84 = load double, ptr %9, align 8
%85 = load double, ptr %10, align 8
%86 = load double, ptr %11, align 8
%87 = load double, ptr %12, align 8
%88 = load double, ptr %13, align 8
%89 = load double, ptr %14, align 8
%90 = call double @BSAmericanCallApprox(double noundef %84, double noundef %85, double noundef %86, double noundef %87, double noundef %88, double noundef %89)
store double %90, ptr %15, align 8
br label %102
91: ; preds = %77
%92 = load double, ptr %10, align 8
%93 = load double, ptr %9, align 8
%94 = load double, ptr %11, align 8
%95 = load double, ptr %12, align 8
%96 = load double, ptr %13, align 8
%97 = fsub double %95, %96
%98 = load double, ptr %13, align 8
%99 = fneg double %98
%100 = load double, ptr %14, align 8
%101 = call double @BSAmericanCallApprox(double noundef %92, double noundef %93, double noundef %94, double noundef %97, double noundef %99, double noundef %100)
store double %101, ptr %15, align 8
br label %102
102: ; preds = %91, %83
%103 = load double, ptr %15, align 8
%104 = load double, ptr %15, align 8
%105 = fcmp oeq double %103, %104
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 noundef %106)
%108 = load double, ptr %15, align 8
ret double %108
}
declare i32 @assert(i32 noundef) #1
declare double @BSAmericanCallApprox(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqyk0yre7.c'
source_filename = "/tmp/tmpqyk0yre7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"Usage: %s [ -v Version ] [ -d Device_ID ] <input file>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqyk0yre7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"Usage: %s [ -v Version ] [ -d Device_ID ] <input file>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfr6jj51a.c'
source_filename = "/tmp/tmpfr6jj51a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfr6jj51a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz4ihfyhj.c'
source_filename = "/tmp/tmpz4ihfyhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"Horas desde 1 de Janeiro de 1970 = %ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Dias desde 1 de Janeiro de 1970 = %ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"Anos desde 1 de Janeiro de 1970 = %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @time(ptr noundef null)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sdiv i32 %4, 3600
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%7 = load i32, ptr %2, align 4
%8 = sdiv i32 %7, 3600
%9 = sdiv i32 %8, 24
%10 = call i32 @printf(ptr noundef @.str.1, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = sdiv i32 %11, 3600
%13 = sdiv i32 %12, 24
%14 = sdiv i32 %13, 365
%15 = call i32 @printf(ptr noundef @.str.2, i32 noundef %14)
ret i32 0
}
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz4ihfyhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"Horas desde 1 de Janeiro de 1970 = %ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Dias desde 1 de Janeiro de 1970 = %ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"Anos desde 1 de Janeiro de 1970 = %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @time(ptr noundef null)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sdiv i32 %4, 3600
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%7 = load i32, ptr %2, align 4
%8 = sdiv i32 %7, 3600
%9 = sdiv i32 %8, 24
%10 = call i32 @printf(ptr noundef @.str.1, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = sdiv i32 %11, 3600
%13 = sdiv i32 %12, 24
%14 = sdiv i32 %13, 365
%15 = call i32 @printf(ptr noundef @.str.2, i32 noundef %14)
ret i32 0
}
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppd1ids2q.c'
source_filename = "/tmp/tmppd1ids2q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"LC_ALL\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"LANG\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @_nl_locale_name_posix(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @getenv(ptr noundef @.str)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %18
10: ; preds = %2
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = load ptr, ptr %6, align 8
store ptr %17, ptr %3, align 8
br label %44
18: ; preds = %10, %2
%19 = load ptr, ptr %5, align 8
%20 = call ptr @getenv(ptr noundef %19)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %31
23: ; preds = %18
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = load ptr, ptr %6, align 8
store ptr %30, ptr %3, align 8
br label %44
31: ; preds = %23, %18
%32 = call ptr @getenv(ptr noundef @.str.1)
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %6, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %43
35: ; preds = %31
%36 = load ptr, ptr %6, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = load ptr, ptr %6, align 8
store ptr %42, ptr %3, align 8
br label %44
43: ; preds = %35, %31
store ptr null, ptr %3, align 8
br label %44
44: ; preds = %43, %41, %29, %16
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare ptr @getenv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppd1ids2q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"LC_ALL\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"LANG\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @_nl_locale_name_posix(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @getenv(ptr noundef @.str)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %18
10: ; preds = %2
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = load ptr, ptr %6, align 8
store ptr %17, ptr %3, align 8
br label %44
18: ; preds = %10, %2
%19 = load ptr, ptr %5, align 8
%20 = call ptr @getenv(ptr noundef %19)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %31
23: ; preds = %18
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = load ptr, ptr %6, align 8
store ptr %30, ptr %3, align 8
br label %44
31: ; preds = %23, %18
%32 = call ptr @getenv(ptr noundef @.str.1)
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %6, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %43
35: ; preds = %31
%36 = load ptr, ptr %6, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = load ptr, ptr %6, align 8
store ptr %42, ptr %3, align 8
br label %44
43: ; preds = %35, %31
store ptr null, ptr %3, align 8
br label %44
44: ; preds = %43, %41, %29, %16
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare ptr @getenv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpptpllja_.c'
source_filename = "/tmp/tmpptpllja_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fffi4i1(ptr noundef %0, i64 noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5, i8 noundef zeroext %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i8, align 1
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca i64, align 8
%24 = alloca double, align 8
store ptr %0, ptr %12, align 8
store i64 %1, ptr %13, align 8
store double %2, ptr %14, align 8
store double %3, ptr %15, align 8
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store i8 %6, ptr %18, align 1
store ptr %7, ptr %19, align 8
store ptr %8, ptr %20, align 8
store ptr %9, ptr %21, align 8
store ptr %10, ptr %22, align 8
%25 = load i32, ptr %16, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %122
27: ; preds = %11
%28 = load double, ptr %14, align 8
%29 = fcmp oeq double %28, 1.000000e+00
br i1 %29, label %30, label %78
30: ; preds = %27
%31 = load double, ptr %15, align 8
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %33, label %78
33: ; preds = %30
store i64 0, ptr %23, align 8
br label %34
34: ; preds = %74, %33
%35 = load i64, ptr %23, align 8
%36 = load i64, ptr %13, align 8
%37 = icmp slt i64 %35, %36
br i1 %37, label %38, label %77
38: ; preds = %34
%39 = load ptr, ptr %12, align 8
%40 = load i64, ptr %23, align 8
%41 = getelementptr inbounds i32, ptr %39, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %49
44: ; preds = %38
%45 = load ptr, ptr %22, align 8
store i32 -11, ptr %45, align 4
%46 = load ptr, ptr %21, align 8
%47 = load i64, ptr %23, align 8
%48 = getelementptr inbounds i8, ptr %46, i64 %47
store i8 0, ptr %48, align 1
br label %73
49: ; preds = %38
%50 = load ptr, ptr %12, align 8
%51 = load i64, ptr %23, align 8
%52 = getelementptr inbounds i32, ptr %50, i64 %51
%53 = load i32, ptr %52, align 4
%54 = load i32, ptr @UCHAR_MAX, align 4
%55 = icmp sgt i32 %53, %54
br i1 %55, label %56, label %63
56: ; preds = %49
%57 = load ptr, ptr %22, align 8
store i32 -11, ptr %57, align 4
%58 = load i32, ptr @UCHAR_MAX, align 4
%59 = trunc i32 %58 to i8
%60 = load ptr, ptr %21, align 8
%61 = load i64, ptr %23, align 8
%62 = getelementptr inbounds i8, ptr %60, i64 %61
store i8 %59, ptr %62, align 1
br label %72
63: ; preds = %49
%64 = load ptr, ptr %12, align 8
%65 = load i64, ptr %23, align 8
%66 = getelementptr inbounds i32, ptr %64, i64 %65
%67 = load i32, ptr %66, align 4
%68 = trunc i32 %67 to i8
%69 = load ptr, ptr %21, align 8
%70 = load i64, ptr %23, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
store i8 %68, ptr %71, align 1
br label %72
72: ; preds = %63, %56
br label %73
73: ; preds = %72, %44
br label %74
74: ; preds = %73
%75 = load i64, ptr %23, align 8
%76 = add nsw i64 %75, 1
store i64 %76, ptr %23, align 8
br label %34, !llvm.loop !6
77: ; preds = %34
br label %121
78: ; preds = %30, %27
store i64 0, ptr %23, align 8
br label %79
79: ; preds = %117, %78
%80 = load i64, ptr %23, align 8
%81 = load i64, ptr %13, align 8
%82 = icmp slt i64 %80, %81
br i1 %82, label %83, label %120
83: ; preds = %79
%84 = load ptr, ptr %12, align 8
%85 = load i64, ptr %23, align 8
%86 = getelementptr inbounds i32, ptr %84, i64 %85
%87 = load i32, ptr %86, align 4
%88 = sitofp i32 %87 to double
%89 = load double, ptr %14, align 8
%90 = load double, ptr %15, align 8
%91 = call double @llvm.fmuladd.f64(double %88, double %89, double %90)
store double %91, ptr %24, align 8
%92 = load double, ptr %24, align 8
%93 = fcmp olt double %92, -4.900000e-01
br i1 %93, label %94, label %99
94: ; preds = %83
%95 = load ptr, ptr %22, align 8
store i32 -11, ptr %95, align 4
%96 = load ptr, ptr %21, align 8
%97 = load i64, ptr %23, align 8
%98 = getelementptr inbounds i8, ptr %96, i64 %97
store i8 0, ptr %98, align 1
br label %116
99: ; preds = %83
%100 = load double, ptr %24, align 8
%101 = fcmp ogt double %100, 2.554900e+02
br i1 %101, label %102, label %109
102: ; preds = %99
%103 = load ptr, ptr %22, align 8
store i32 -11, ptr %103, align 4
%104 = load i32, ptr @UCHAR_MAX, align 4
%105 = trunc i32 %104 to i8
%106 = load ptr, ptr %21, align 8
%107 = load i64, ptr %23, align 8
%108 = getelementptr inbounds i8, ptr %106, i64 %107
store i8 %105, ptr %108, align 1
br label %115
109: ; preds = %99
%110 = load double, ptr %24, align 8
%111 = fptoui double %110 to i8
%112 = load ptr, ptr %21, align 8
%113 = load i64, ptr %23, align 8
%114 = getelementptr inbounds i8, ptr %112, i64 %113
store i8 %111, ptr %114, align 1
br label %115
115: ; preds = %109, %102
br label %116
116: ; preds = %115, %94
br label %117
117: ; preds = %116
%118 = load i64, ptr %23, align 8
%119 = add nsw i64 %118, 1
store i64 %119, ptr %23, align 8
br label %79, !llvm.loop !8
120: ; preds = %79
br label %121
121: ; preds = %120, %77
br label %261
122: ; preds = %11
%123 = load double, ptr %14, align 8
%124 = fcmp oeq double %123, 1.000000e+00
br i1 %124, label %125, label %195
125: ; preds = %122
%126 = load double, ptr %15, align 8
%127 = fcmp oeq double %126, 0.000000e+00
br i1 %127, label %128, label %195
128: ; preds = %125
store i64 0, ptr %23, align 8
br label %129
129: ; preds = %191, %128
%130 = load i64, ptr %23, align 8
%131 = load i64, ptr %13, align 8
%132 = icmp slt i64 %130, %131
br i1 %132, label %133, label %194
133: ; preds = %129
%134 = load ptr, ptr %12, align 8
%135 = load i64, ptr %23, align 8
%136 = getelementptr inbounds i32, ptr %134, i64 %135
%137 = load i32, ptr %136, align 4
%138 = load i32, ptr %17, align 4
%139 = icmp eq i32 %137, %138
br i1 %139, label %140, label %154
140: ; preds = %133
%141 = load ptr, ptr %20, align 8
store i32 1, ptr %141, align 4
%142 = load i32, ptr %16, align 4
%143 = icmp eq i32 %142, 1
br i1 %143, label %144, label %149
144: ; preds = %140
%145 = load i8, ptr %18, align 1
%146 = load ptr, ptr %21, align 8
%147 = load i64, ptr %23, align 8
%148 = getelementptr inbounds i8, ptr %146, i64 %147
store i8 %145, ptr %148, align 1
br label %153
149: ; preds = %140
%150 = load ptr, ptr %19, align 8
%151 = load i64, ptr %23, align 8
%152 = getelementptr inbounds i8, ptr %150, i64 %151
store i8 1, ptr %152, align 1
br label %153
153: ; preds = %149, %144
br label %190
154: ; preds = %133
%155 = load ptr, ptr %12, align 8
%156 = load i64, ptr %23, align 8
%157 = getelementptr inbounds i32, ptr %155, i64 %156
%158 = load i32, ptr %157, align 4
%159 = icmp slt i32 %158, 0
br i1 %159, label %160, label %165
160: ; preds = %154
%161 = load ptr, ptr %22, align 8
store i32 -11, ptr %161, align 4
%162 = load ptr, ptr %21, align 8
%163 = load i64, ptr %23, align 8
%164 = getelementptr inbounds i8, ptr %162, i64 %163
store i8 0, ptr %164, align 1
br label %189
165: ; preds = %154
%166 = load ptr, ptr %12, align 8
%167 = load i64, ptr %23, align 8
%168 = getelementptr inbounds i32, ptr %166, i64 %167
%169 = load i32, ptr %168, align 4
%170 = load i32, ptr @UCHAR_MAX, align 4
%171 = icmp sgt i32 %169, %170
br i1 %171, label %172, label %179
172: ; preds = %165
%173 = load ptr, ptr %22, align 8
store i32 -11, ptr %173, align 4
%174 = load i32, ptr @UCHAR_MAX, align 4
%175 = trunc i32 %174 to i8
%176 = load ptr, ptr %21, align 8
%177 = load i64, ptr %23, align 8
%178 = getelementptr inbounds i8, ptr %176, i64 %177
store i8 %175, ptr %178, align 1
br label %188
179: ; preds = %165
%180 = load ptr, ptr %12, align 8
%181 = load i64, ptr %23, align 8
%182 = getelementptr inbounds i32, ptr %180, i64 %181
%183 = load i32, ptr %182, align 4
%184 = trunc i32 %183 to i8
%185 = load ptr, ptr %21, align 8
%186 = load i64, ptr %23, align 8
%187 = getelementptr inbounds i8, ptr %185, i64 %186
store i8 %184, ptr %187, align 1
br label %188
188: ; preds = %179, %172
br label %189
189: ; preds = %188, %160
br label %190
190: ; preds = %189, %153
br label %191
191: ; preds = %190
%192 = load i64, ptr %23, align 8
%193 = add nsw i64 %192, 1
store i64 %193, ptr %23, align 8
br label %129, !llvm.loop !9
194: ; preds = %129
br label %260
195: ; preds = %125, %122
store i64 0, ptr %23, align 8
br label %196
196: ; preds = %256, %195
%197 = load i64, ptr %23, align 8
%198 = load i64, ptr %13, align 8
%199 = icmp slt i64 %197, %198
br i1 %199, label %200, label %259
200: ; preds = %196
%201 = load ptr, ptr %12, align 8
%202 = load i64, ptr %23, align 8
%203 = getelementptr inbounds i32, ptr %201, i64 %202
%204 = load i32, ptr %203, align 4
%205 = load i32, ptr %17, align 4
%206 = icmp eq i32 %204, %205
br i1 %206, label %207, label %221
207: ; preds = %200
%208 = load ptr, ptr %20, align 8
store i32 1, ptr %208, align 4
%209 = load i32, ptr %16, align 4
%210 = icmp eq i32 %209, 1
br i1 %210, label %211, label %216
211: ; preds = %207
%212 = load i8, ptr %18, align 1
%213 = load ptr, ptr %21, align 8
%214 = load i64, ptr %23, align 8
%215 = getelementptr inbounds i8, ptr %213, i64 %214
store i8 %212, ptr %215, align 1
br label %220
216: ; preds = %207
%217 = load ptr, ptr %19, align 8
%218 = load i64, ptr %23, align 8
%219 = getelementptr inbounds i8, ptr %217, i64 %218
store i8 1, ptr %219, align 1
br label %220
220: ; preds = %216, %211
br label %255
221: ; preds = %200
%222 = load ptr, ptr %12, align 8
%223 = load i64, ptr %23, align 8
%224 = getelementptr inbounds i32, ptr %222, i64 %223
%225 = load i32, ptr %224, align 4
%226 = sitofp i32 %225 to double
%227 = load double, ptr %14, align 8
%228 = load double, ptr %15, align 8
%229 = call double @llvm.fmuladd.f64(double %226, double %227, double %228)
store double %229, ptr %24, align 8
%230 = load double, ptr %24, align 8
%231 = fcmp olt double %230, -4.900000e-01
br i1 %231, label %232, label %237
232: ; preds = %221
%233 = load ptr, ptr %22, align 8
store i32 -11, ptr %233, align 4
%234 = load ptr, ptr %21, align 8
%235 = load i64, ptr %23, align 8
%236 = getelementptr inbounds i8, ptr %234, i64 %235
store i8 0, ptr %236, align 1
br label %254
237: ; preds = %221
%238 = load double, ptr %24, align 8
%239 = fcmp ogt double %238, 2.554900e+02
br i1 %239, label %240, label %247
240: ; preds = %237
%241 = load ptr, ptr %22, align 8
store i32 -11, ptr %241, align 4
%242 = load i32, ptr @UCHAR_MAX, align 4
%243 = trunc i32 %242 to i8
%244 = load ptr, ptr %21, align 8
%245 = load i64, ptr %23, align 8
%246 = getelementptr inbounds i8, ptr %244, i64 %245
store i8 %243, ptr %246, align 1
br label %253
247: ; preds = %237
%248 = load double, ptr %24, align 8
%249 = fptoui double %248 to i8
%250 = load ptr, ptr %21, align 8
%251 = load i64, ptr %23, align 8
%252 = getelementptr inbounds i8, ptr %250, i64 %251
store i8 %249, ptr %252, align 1
br label %253
253: ; preds = %247, %240
br label %254
254: ; preds = %253, %232
br label %255
255: ; preds = %254, %220
br label %256
256: ; preds = %255
%257 = load i64, ptr %23, align 8
%258 = add nsw i64 %257, 1
store i64 %258, ptr %23, align 8
br label %196, !llvm.loop !10
259: ; preds = %196
br label %260
260: ; preds = %259, %194
br label %261
261: ; preds = %260, %121
%262 = load ptr, ptr %22, align 8
%263 = load i32, ptr %262, align 4
ret i32 %263
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpptpllja_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fffi4i1(ptr noundef %0, i64 noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5, i8 noundef zeroext %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i8, align 1
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca i64, align 8
%24 = alloca double, align 8
store ptr %0, ptr %12, align 8
store i64 %1, ptr %13, align 8
store double %2, ptr %14, align 8
store double %3, ptr %15, align 8
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store i8 %6, ptr %18, align 1
store ptr %7, ptr %19, align 8
store ptr %8, ptr %20, align 8
store ptr %9, ptr %21, align 8
store ptr %10, ptr %22, align 8
%25 = load i32, ptr %16, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %126
27: ; preds = %11
%28 = load double, ptr %14, align 8
%29 = fcmp oeq double %28, 1.000000e+00
br i1 %29, label %30, label %80
30: ; preds = %27
%31 = load double, ptr %15, align 8
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %33, label %80
33: ; preds = %30
store i64 0, ptr %23, align 8
%34 = load i64, ptr %23, align 8
%35 = load i64, ptr %13, align 8
%36 = icmp slt i64 %34, %35
br i1 %36, label %.lr.ph8, label %79
.lr.ph8: ; preds = %33
br label %37
37: ; preds = %.lr.ph8, %73
%38 = load ptr, ptr %12, align 8
%39 = load i64, ptr %23, align 8
%40 = getelementptr inbounds i32, ptr %38, i64 %39
%41 = load i32, ptr %40, align 4
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %37
%44 = load ptr, ptr %22, align 8
store i32 -11, ptr %44, align 4
%45 = load ptr, ptr %21, align 8
%46 = load i64, ptr %23, align 8
%47 = getelementptr inbounds i8, ptr %45, i64 %46
store i8 0, ptr %47, align 1
br label %72
48: ; preds = %37
%49 = load ptr, ptr %12, align 8
%50 = load i64, ptr %23, align 8
%51 = getelementptr inbounds i32, ptr %49, i64 %50
%52 = load i32, ptr %51, align 4
%53 = load i32, ptr @UCHAR_MAX, align 4
%54 = icmp sgt i32 %52, %53
br i1 %54, label %55, label %62
55: ; preds = %48
%56 = load ptr, ptr %22, align 8
store i32 -11, ptr %56, align 4
%57 = load i32, ptr @UCHAR_MAX, align 4
%58 = trunc i32 %57 to i8
%59 = load ptr, ptr %21, align 8
%60 = load i64, ptr %23, align 8
%61 = getelementptr inbounds i8, ptr %59, i64 %60
store i8 %58, ptr %61, align 1
br label %71
62: ; preds = %48
%63 = load ptr, ptr %12, align 8
%64 = load i64, ptr %23, align 8
%65 = getelementptr inbounds i32, ptr %63, i64 %64
%66 = load i32, ptr %65, align 4
%67 = trunc i32 %66 to i8
%68 = load ptr, ptr %21, align 8
%69 = load i64, ptr %23, align 8
%70 = getelementptr inbounds i8, ptr %68, i64 %69
store i8 %67, ptr %70, align 1
br label %71
71: ; preds = %62, %55
br label %72
72: ; preds = %71, %43
br label %73
73: ; preds = %72
%74 = load i64, ptr %23, align 8
%75 = add nsw i64 %74, 1
store i64 %75, ptr %23, align 8
%76 = load i64, ptr %23, align 8
%77 = load i64, ptr %13, align 8
%78 = icmp slt i64 %76, %77
br i1 %78, label %37, label %._crit_edge9, !llvm.loop !6
._crit_edge9: ; preds = %73
br label %79
79: ; preds = %._crit_edge9, %33
br label %125
80: ; preds = %30, %27
store i64 0, ptr %23, align 8
%81 = load i64, ptr %23, align 8
%82 = load i64, ptr %13, align 8
%83 = icmp slt i64 %81, %82
br i1 %83, label %.lr.ph5, label %124
.lr.ph5: ; preds = %80
br label %84
84: ; preds = %.lr.ph5, %118
%85 = load ptr, ptr %12, align 8
%86 = load i64, ptr %23, align 8
%87 = getelementptr inbounds i32, ptr %85, i64 %86
%88 = load i32, ptr %87, align 4
%89 = sitofp i32 %88 to double
%90 = load double, ptr %14, align 8
%91 = load double, ptr %15, align 8
%92 = call double @llvm.fmuladd.f64(double %89, double %90, double %91)
store double %92, ptr %24, align 8
%93 = load double, ptr %24, align 8
%94 = fcmp olt double %93, -4.900000e-01
br i1 %94, label %95, label %100
95: ; preds = %84
%96 = load ptr, ptr %22, align 8
store i32 -11, ptr %96, align 4
%97 = load ptr, ptr %21, align 8
%98 = load i64, ptr %23, align 8
%99 = getelementptr inbounds i8, ptr %97, i64 %98
store i8 0, ptr %99, align 1
br label %117
100: ; preds = %84
%101 = load double, ptr %24, align 8
%102 = fcmp ogt double %101, 2.554900e+02
br i1 %102, label %103, label %110
103: ; preds = %100
%104 = load ptr, ptr %22, align 8
store i32 -11, ptr %104, align 4
%105 = load i32, ptr @UCHAR_MAX, align 4
%106 = trunc i32 %105 to i8
%107 = load ptr, ptr %21, align 8
%108 = load i64, ptr %23, align 8
%109 = getelementptr inbounds i8, ptr %107, i64 %108
store i8 %106, ptr %109, align 1
br label %116
110: ; preds = %100
%111 = load double, ptr %24, align 8
%112 = fptoui double %111 to i8
%113 = load ptr, ptr %21, align 8
%114 = load i64, ptr %23, align 8
%115 = getelementptr inbounds i8, ptr %113, i64 %114
store i8 %112, ptr %115, align 1
br label %116
116: ; preds = %110, %103
br label %117
117: ; preds = %116, %95
br label %118
118: ; preds = %117
%119 = load i64, ptr %23, align 8
%120 = add nsw i64 %119, 1
store i64 %120, ptr %23, align 8
%121 = load i64, ptr %23, align 8
%122 = load i64, ptr %13, align 8
%123 = icmp slt i64 %121, %122
br i1 %123, label %84, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %118
br label %124
124: ; preds = %._crit_edge6, %80
br label %125
125: ; preds = %124, %79
br label %269
126: ; preds = %11
%127 = load double, ptr %14, align 8
%128 = fcmp oeq double %127, 1.000000e+00
br i1 %128, label %129, label %201
129: ; preds = %126
%130 = load double, ptr %15, align 8
%131 = fcmp oeq double %130, 0.000000e+00
br i1 %131, label %132, label %201
132: ; preds = %129
store i64 0, ptr %23, align 8
%133 = load i64, ptr %23, align 8
%134 = load i64, ptr %13, align 8
%135 = icmp slt i64 %133, %134
br i1 %135, label %.lr.ph2, label %200
.lr.ph2: ; preds = %132
br label %136
136: ; preds = %.lr.ph2, %194
%137 = load ptr, ptr %12, align 8
%138 = load i64, ptr %23, align 8
%139 = getelementptr inbounds i32, ptr %137, i64 %138
%140 = load i32, ptr %139, align 4
%141 = load i32, ptr %17, align 4
%142 = icmp eq i32 %140, %141
br i1 %142, label %143, label %157
143: ; preds = %136
%144 = load ptr, ptr %20, align 8
store i32 1, ptr %144, align 4
%145 = load i32, ptr %16, align 4
%146 = icmp eq i32 %145, 1
br i1 %146, label %147, label %152
147: ; preds = %143
%148 = load i8, ptr %18, align 1
%149 = load ptr, ptr %21, align 8
%150 = load i64, ptr %23, align 8
%151 = getelementptr inbounds i8, ptr %149, i64 %150
store i8 %148, ptr %151, align 1
br label %156
152: ; preds = %143
%153 = load ptr, ptr %19, align 8
%154 = load i64, ptr %23, align 8
%155 = getelementptr inbounds i8, ptr %153, i64 %154
store i8 1, ptr %155, align 1
br label %156
156: ; preds = %152, %147
br label %193
157: ; preds = %136
%158 = load ptr, ptr %12, align 8
%159 = load i64, ptr %23, align 8
%160 = getelementptr inbounds i32, ptr %158, i64 %159
%161 = load i32, ptr %160, align 4
%162 = icmp slt i32 %161, 0
br i1 %162, label %163, label %168
163: ; preds = %157
%164 = load ptr, ptr %22, align 8
store i32 -11, ptr %164, align 4
%165 = load ptr, ptr %21, align 8
%166 = load i64, ptr %23, align 8
%167 = getelementptr inbounds i8, ptr %165, i64 %166
store i8 0, ptr %167, align 1
br label %192
168: ; preds = %157
%169 = load ptr, ptr %12, align 8
%170 = load i64, ptr %23, align 8
%171 = getelementptr inbounds i32, ptr %169, i64 %170
%172 = load i32, ptr %171, align 4
%173 = load i32, ptr @UCHAR_MAX, align 4
%174 = icmp sgt i32 %172, %173
br i1 %174, label %175, label %182
175: ; preds = %168
%176 = load ptr, ptr %22, align 8
store i32 -11, ptr %176, align 4
%177 = load i32, ptr @UCHAR_MAX, align 4
%178 = trunc i32 %177 to i8
%179 = load ptr, ptr %21, align 8
%180 = load i64, ptr %23, align 8
%181 = getelementptr inbounds i8, ptr %179, i64 %180
store i8 %178, ptr %181, align 1
br label %191
182: ; preds = %168
%183 = load ptr, ptr %12, align 8
%184 = load i64, ptr %23, align 8
%185 = getelementptr inbounds i32, ptr %183, i64 %184
%186 = load i32, ptr %185, align 4
%187 = trunc i32 %186 to i8
%188 = load ptr, ptr %21, align 8
%189 = load i64, ptr %23, align 8
%190 = getelementptr inbounds i8, ptr %188, i64 %189
store i8 %187, ptr %190, align 1
br label %191
191: ; preds = %182, %175
br label %192
192: ; preds = %191, %163
br label %193
193: ; preds = %192, %156
br label %194
194: ; preds = %193
%195 = load i64, ptr %23, align 8
%196 = add nsw i64 %195, 1
store i64 %196, ptr %23, align 8
%197 = load i64, ptr %23, align 8
%198 = load i64, ptr %13, align 8
%199 = icmp slt i64 %197, %198
br i1 %199, label %136, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %194
br label %200
200: ; preds = %._crit_edge3, %132
br label %268
201: ; preds = %129, %126
store i64 0, ptr %23, align 8
%202 = load i64, ptr %23, align 8
%203 = load i64, ptr %13, align 8
%204 = icmp slt i64 %202, %203
br i1 %204, label %.lr.ph, label %267
.lr.ph: ; preds = %201
br label %205
205: ; preds = %.lr.ph, %261
%206 = load ptr, ptr %12, align 8
%207 = load i64, ptr %23, align 8
%208 = getelementptr inbounds i32, ptr %206, i64 %207
%209 = load i32, ptr %208, align 4
%210 = load i32, ptr %17, align 4
%211 = icmp eq i32 %209, %210
br i1 %211, label %212, label %226
212: ; preds = %205
%213 = load ptr, ptr %20, align 8
store i32 1, ptr %213, align 4
%214 = load i32, ptr %16, align 4
%215 = icmp eq i32 %214, 1
br i1 %215, label %216, label %221
216: ; preds = %212
%217 = load i8, ptr %18, align 1
%218 = load ptr, ptr %21, align 8
%219 = load i64, ptr %23, align 8
%220 = getelementptr inbounds i8, ptr %218, i64 %219
store i8 %217, ptr %220, align 1
br label %225
221: ; preds = %212
%222 = load ptr, ptr %19, align 8
%223 = load i64, ptr %23, align 8
%224 = getelementptr inbounds i8, ptr %222, i64 %223
store i8 1, ptr %224, align 1
br label %225
225: ; preds = %221, %216
br label %260
226: ; preds = %205
%227 = load ptr, ptr %12, align 8
%228 = load i64, ptr %23, align 8
%229 = getelementptr inbounds i32, ptr %227, i64 %228
%230 = load i32, ptr %229, align 4
%231 = sitofp i32 %230 to double
%232 = load double, ptr %14, align 8
%233 = load double, ptr %15, align 8
%234 = call double @llvm.fmuladd.f64(double %231, double %232, double %233)
store double %234, ptr %24, align 8
%235 = load double, ptr %24, align 8
%236 = fcmp olt double %235, -4.900000e-01
br i1 %236, label %237, label %242
237: ; preds = %226
%238 = load ptr, ptr %22, align 8
store i32 -11, ptr %238, align 4
%239 = load ptr, ptr %21, align 8
%240 = load i64, ptr %23, align 8
%241 = getelementptr inbounds i8, ptr %239, i64 %240
store i8 0, ptr %241, align 1
br label %259
242: ; preds = %226
%243 = load double, ptr %24, align 8
%244 = fcmp ogt double %243, 2.554900e+02
br i1 %244, label %245, label %252
245: ; preds = %242
%246 = load ptr, ptr %22, align 8
store i32 -11, ptr %246, align 4
%247 = load i32, ptr @UCHAR_MAX, align 4
%248 = trunc i32 %247 to i8
%249 = load ptr, ptr %21, align 8
%250 = load i64, ptr %23, align 8
%251 = getelementptr inbounds i8, ptr %249, i64 %250
store i8 %248, ptr %251, align 1
br label %258
252: ; preds = %242
%253 = load double, ptr %24, align 8
%254 = fptoui double %253 to i8
%255 = load ptr, ptr %21, align 8
%256 = load i64, ptr %23, align 8
%257 = getelementptr inbounds i8, ptr %255, i64 %256
store i8 %254, ptr %257, align 1
br label %258
258: ; preds = %252, %245
br label %259
259: ; preds = %258, %237
br label %260
260: ; preds = %259, %225
br label %261
261: ; preds = %260
%262 = load i64, ptr %23, align 8
%263 = add nsw i64 %262, 1
store i64 %263, ptr %23, align 8
%264 = load i64, ptr %23, align 8
%265 = load i64, ptr %13, align 8
%266 = icmp slt i64 %264, %265
br i1 %266, label %205, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %261
br label %267
267: ; preds = %._crit_edge, %201
br label %268
268: ; preds = %267, %200
br label %269
269: ; preds = %268, %125
%270 = load ptr, ptr %22, align 8
%271 = load i32, ptr %270, align 4
ret i32 %271
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpcx1ktvpr.c'
source_filename = "/tmp/tmpcx1ktvpr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ap_str_find_first_char_from_set(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %6, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i64 @strlen(ptr noundef %12)
store i64 %13, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %14
14: ; preds = %44, %2
%15 = load i64, ptr %8, align 8
%16 = load i64, ptr %6, align 8
%17 = icmp ult i64 %15, %16
br i1 %17, label %18, label %47
18: ; preds = %14
store i64 0, ptr %9, align 8
br label %19
19: ; preds = %40, %18
%20 = load i64, ptr %9, align 8
%21 = load i64, ptr %7, align 8
%22 = icmp ult i64 %20, %21
br i1 %22, label %23, label %43
23: ; preds = %19
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %8, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %9, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %28, %33
br i1 %34, label %35, label %39
35: ; preds = %23
%36 = load ptr, ptr %4, align 8
%37 = load i64, ptr %8, align 8
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store ptr %38, ptr %3, align 8
br label %48
39: ; preds = %23
br label %40
40: ; preds = %39
%41 = load i64, ptr %9, align 8
%42 = add i64 %41, 1
store i64 %42, ptr %9, align 8
br label %19, !llvm.loop !6
43: ; preds = %19
br label %44
44: ; preds = %43
%45 = load i64, ptr %8, align 8
%46 = add i64 %45, 1
store i64 %46, ptr %8, align 8
br label %14, !llvm.loop !8
47: ; preds = %14
store ptr null, ptr %3, align 8
br label %48
48: ; preds = %47, %35
%49 = load ptr, ptr %3, align 8
ret ptr %49
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcx1ktvpr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ap_str_find_first_char_from_set(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %6, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i64 @strlen(ptr noundef %12)
store i64 %13, ptr %7, align 8
store i64 0, ptr %8, align 8
%14 = load i64, ptr %8, align 8
%15 = load i64, ptr %6, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %.lr.ph2, label %51
.lr.ph2: ; preds = %2
br label %17
17: ; preds = %.lr.ph2, %45
store i64 0, ptr %9, align 8
%18 = load i64, ptr %9, align 8
%19 = load i64, ptr %7, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %.lr.ph, label %44
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %38
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %8, align 8
%24 = getelementptr inbounds i8, ptr %22, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %9, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %26, %31
br i1 %32, label %33, label %37
33: ; preds = %21
%34 = load ptr, ptr %4, align 8
%35 = load i64, ptr %8, align 8
%36 = getelementptr inbounds i8, ptr %34, i64 %35
store ptr %36, ptr %3, align 8
br label %52
37: ; preds = %21
br label %38
38: ; preds = %37
%39 = load i64, ptr %9, align 8
%40 = add i64 %39, 1
store i64 %40, ptr %9, align 8
%41 = load i64, ptr %9, align 8
%42 = load i64, ptr %7, align 8
%43 = icmp ult i64 %41, %42
br i1 %43, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %17
br label %45
45: ; preds = %44
%46 = load i64, ptr %8, align 8
%47 = add i64 %46, 1
store i64 %47, ptr %8, align 8
%48 = load i64, ptr %8, align 8
%49 = load i64, ptr %6, align 8
%50 = icmp ult i64 %48, %49
br i1 %50, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %51
51: ; preds = %._crit_edge3, %2
store ptr null, ptr %3, align 8
br label %52
52: ; preds = %51, %33
%53 = load ptr, ptr %3, align 8
ret ptr %53
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsa5a1gez.c'
source_filename = "/tmp/tmpsa5a1gez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"/bin/sh\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_flag() #0 {
%1 = call i32 @system(ptr noundef @.str)
ret void
}
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsa5a1gez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"/bin/sh\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_flag() #0 {
%1 = call i32 @system(ptr noundef @.str)
ret void
}
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-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, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.