llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmp5n5fxrw6.c'
source_filename = "/tmp/tmp5n5fxrw6.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 @bst_destroy_without_free(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
br label %10
10: ; preds = %16, %2
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %11, align 8
%13 = call i32 @bst_empty(ptr noundef %12)
%14 = icmp ne i32 %13, 0
%15 = xor i1 %14, true
br i1 %15, label %16, label %24
16: ; preds = %10
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %17, align 8
%19 = call ptr @bst_rightmost(ptr noundef %18)
store ptr %19, ptr %5, align 8
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i32 @bst_remove(ptr noundef %20, ptr noundef %21, ptr noundef %22)
br label %10, !llvm.loop !6
24: ; preds = %10
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @bst_empty(ptr noundef) #1
declare ptr @bst_rightmost(ptr noundef) #1
declare i32 @bst_remove(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/tmp5n5fxrw6.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 @bst_destroy_without_free(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %10, align 8
%12 = call i32 @bst_empty(ptr noundef %11)
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
br i1 %14, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %15
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %16, align 8
%18 = call ptr @bst_rightmost(ptr noundef %17)
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = call i32 @bst_remove(ptr noundef %19, ptr noundef %20, ptr noundef %21)
%23 = load ptr, ptr %3, align 8
%24 = load ptr, ptr %23, align 8
%25 = call i32 @bst_empty(ptr noundef %24)
%26 = icmp ne i32 %25, 0
%27 = xor i1 %26, true
br i1 %27, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %28
28: ; preds = %._crit_edge, %2
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @bst_empty(ptr noundef) #1
declare ptr @bst_rightmost(ptr noundef) #1
declare i32 @bst_remove(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/tmpo5coqiuv.c'
source_filename = "/tmp/tmpo5coqiuv.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"
@POLLIN = 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/tmpo5coqiuv.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"
@POLLIN = 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/tmpltkjsn6b.c'
source_filename = "/tmp/tmpltkjsn6b.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/tmpltkjsn6b.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/tmpqtlv5dte.c'
source_filename = "/tmp/tmpqtlv5dte.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 @has_arg(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%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
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %24, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %27
13: ; preds = %9
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i64 @strcmp(ptr noundef %18, ptr noundef %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %13
store i32 1, ptr %4, align 4
br label %28
23: ; preds = %13
br label %24
24: ; preds = %23
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
br label %9, !llvm.loop !6
27: ; preds = %9
store i32 0, ptr %4, align 4
br label %28
28: ; preds = %27, %22
%29 = load i32, ptr %4, align 4
ret i32 %29
}
declare i64 @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/tmpqtlv5dte.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 @has_arg(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%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
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %23
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load ptr, ptr %5, align 8
%19 = call i64 @strcmp(ptr noundef %17, ptr noundef %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %12
store i32 1, ptr %4, align 4
br label %30
22: ; preds = %12
br label %23
23: ; preds = %22
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %30
30: ; preds = %29, %21
%31 = load i32, ptr %4, align 4
ret i32 %31
}
declare i64 @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/tmpve47ljfh.c'
source_filename = "/tmp/tmpve47ljfh.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 @findKthLargest2(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%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 %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %50, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %53
14: ; preds = %10
%15 = load i32, ptr %7, align 4
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %9, align 4
br label %18
18: ; preds = %37, %14
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %40
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = icmp sgt i32 %27, %32
br i1 %33, label %34, label %36
34: ; preds = %22
%35 = load i32, ptr %9, align 4
store i32 %35, ptr %8, align 4
br label %36
36: ; preds = %34, %22
br label %37
37: ; preds = %36
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %9, align 4
br label %18, !llvm.loop !6
40: ; preds = %18
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
%49 = call i32 @swap(ptr noundef %44, ptr noundef %48)
br label %50
50: ; preds = %40
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
br label %10, !llvm.loop !8
53: ; preds = %10
%54 = load ptr, ptr %4, align 8
%55 = load i32, ptr %6, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %54, i64 %57
%59 = load i32, ptr %58, align 4
ret i32 %59
}
declare i32 @swap(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpve47ljfh.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 @findKthLargest2(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%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 %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph2, label %57
.lr.ph2: ; preds = %3
br label %13
13: ; preds = %.lr.ph2, %51
%14 = load i32, ptr %7, align 4
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %41
.lr.ph: ; preds = %13
br label %20
20: ; preds = %.lr.ph, %35
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %9, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = icmp sgt i32 %25, %30
br i1 %31, label %32, label %34
32: ; preds = %20
%33 = load i32, ptr %9, align 4
store i32 %33, ptr %8, align 4
br label %34
34: ; preds = %32, %20
br label %35
35: ; preds = %34
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %9, align 4
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %13
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = call i32 @swap(ptr noundef %45, ptr noundef %49)
br label %51
51: ; preds = %41
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %57
57: ; preds = %._crit_edge3, %3
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %6, align 4
%60 = sub 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
ret i32 %63
}
declare i32 @swap(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmprbco3nyh.c'
source_filename = "/tmp/tmprbco3nyh.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 [14 x i8] c"hello world!\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"good night!\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"hahaha!\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 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @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/tmprbco3nyh.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 [14 x i8] c"hello world!\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"good night!\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"hahaha!\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 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @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/tmp5_tqx6q7.c'
source_filename = "/tmp/tmp5_tqx6q7.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 [59 x i8] c"\0Arunj2k Copyright 2014 by Waitman Gobble <ns@waitman.net>\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"\0Ausage: runj2k [-enatvh] /path/to/file\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [193 x i8] c"-e\09Command Line Options to pass to opendcp_j2k, example: -e '-e -R' \0A-n\09Number of Threads\0A-a\09Automatically determine number of threads\0A-t\09Report Exec Time (secs)\0A-v\09Verbose Messages\0A-h\09Help\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
ret void
}
declare i32 @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/tmp5_tqx6q7.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 [59 x i8] c"\0Arunj2k Copyright 2014 by Waitman Gobble <ns@waitman.net>\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"\0Ausage: runj2k [-enatvh] /path/to/file\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [193 x i8] c"-e\09Command Line Options to pass to opendcp_j2k, example: -e '-e -R' \0A-n\09Number of Threads\0A-a\09Automatically determine number of threads\0A-t\09Report Exec Time (secs)\0A-v\09Verbose Messages\0A-h\09Help\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
ret void
}
declare i32 @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/tmp8uvldjq2.c'
source_filename = "/tmp/tmp8uvldjq2.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 @time(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 @__time(ptr noundef %3)
ret i32 %4
}
declare i32 @__time(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/tmp8uvldjq2.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 @time(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 @__time(ptr noundef %3)
ret i32 %4
}
declare i32 @__time(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/tmpodzztpj2.c'
source_filename = "/tmp/tmpodzztpj2.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"local\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"t=\2212:00\22, i=\22100\22, s=\22I write some stuff\22;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @fprintf(ptr noundef %3, ptr noundef @.str.2)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @close(ptr noundef %5)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @close(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/tmpodzztpj2.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"local\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"t=\2212:00\22, i=\22100\22, s=\22I write some stuff\22;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @fprintf(ptr noundef %3, ptr noundef @.str.2)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @close(ptr noundef %5)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @close(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/tmp1ap9psb4.c'
source_filename = "/tmp/tmp1ap9psb4.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 @putofield(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = call i64 @getoloc(i32 noundef %7)
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = add nsw i64 %8, %10
%12 = load i32, ptr %6, align 4
%13 = call i32 @putword(i64 noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @putword(i64 noundef, i32 noundef) #1
declare i64 @getoloc(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/tmp1ap9psb4.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 @putofield(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = call i64 @getoloc(i32 noundef %7)
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = add nsw i64 %8, %10
%12 = load i32, ptr %6, align 4
%13 = call i32 @putword(i64 noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @putword(i64 noundef, i32 noundef) #1
declare i64 @getoloc(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/tmpftuybdxa.c'
source_filename = "/tmp/tmpftuybdxa.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 @color_char(i32 noundef %0, i32 noundef %1, i32 noundef %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = call i32 @COLOR_PAIR(i32 noundef %9)
%11 = call i32 @attron(i32 noundef %10)
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = load i8, ptr %8, align 1
%15 = call i32 @mvaddch(i32 noundef %12, i32 noundef %13, i8 noundef signext %14)
%16 = load i32, ptr %5, align 4
%17 = call i32 @COLOR_PAIR(i32 noundef %16)
%18 = call i32 @attroff(i32 noundef %17)
ret void
}
declare i32 @attron(i32 noundef) #1
declare i32 @COLOR_PAIR(i32 noundef) #1
declare i32 @mvaddch(i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @attroff(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/tmpftuybdxa.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 @color_char(i32 noundef %0, i32 noundef %1, i32 noundef %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = call i32 @COLOR_PAIR(i32 noundef %9)
%11 = call i32 @attron(i32 noundef %10)
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = load i8, ptr %8, align 1
%15 = call i32 @mvaddch(i32 noundef %12, i32 noundef %13, i8 noundef signext %14)
%16 = load i32, ptr %5, align 4
%17 = call i32 @COLOR_PAIR(i32 noundef %16)
%18 = call i32 @attroff(i32 noundef %17)
ret void
}
declare i32 @attron(i32 noundef) #1
declare i32 @COLOR_PAIR(i32 noundef) #1
declare i32 @mvaddch(i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @attroff(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/tmp3tqcsn2o.c'
source_filename = "/tmp/tmp3tqcsn2o.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 @mon_appexit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @monLock()
%4 = load i32, ptr %2, align 4
%5 = call i32 @_appexit(i32 noundef %4)
%6 = call i32 (...) @monUnlock()
ret void
}
declare i32 @monLock(...) #1
declare i32 @_appexit(i32 noundef) #1
declare i32 @monUnlock(...) #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/tmp3tqcsn2o.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 @mon_appexit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @monLock()
%4 = load i32, ptr %2, align 4
%5 = call i32 @_appexit(i32 noundef %4)
%6 = call i32 (...) @monUnlock()
ret void
}
declare i32 @monLock(...) #1
declare i32 @_appexit(i32 noundef) #1
declare i32 @monUnlock(...) #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_4a5_91m.c'
source_filename = "/tmp/tmp_4a5_91m.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 hidden void @osmo_conv_gen_metrics_k7_n2(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [32 x i32], align 16
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %7, align 8
%14 = getelementptr inbounds [32 x i32], ptr %11, i64 0, i64 0
%15 = call i32 @gen_branch_metrics_n2(i32 noundef 64, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %8, align 8
%17 = getelementptr inbounds [32 x i32], ptr %11, i64 0, i64 0
%18 = load ptr, ptr %9, align 8
%19 = load i32, ptr %10, align 4
%20 = call i32 @gen_path_metrics(i32 noundef 64, ptr noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef %19)
ret void
}
declare i32 @gen_branch_metrics_n2(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @gen_path_metrics(i32 noundef, ptr noundef, 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/tmp_4a5_91m.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 hidden void @osmo_conv_gen_metrics_k7_n2(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [32 x i32], align 16
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %7, align 8
%14 = getelementptr inbounds [32 x i32], ptr %11, i64 0, i64 0
%15 = call i32 @gen_branch_metrics_n2(i32 noundef 64, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %8, align 8
%17 = getelementptr inbounds [32 x i32], ptr %11, i64 0, i64 0
%18 = load ptr, ptr %9, align 8
%19 = load i32, ptr %10, align 4
%20 = call i32 @gen_path_metrics(i32 noundef 64, ptr noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef %19)
ret void
}
declare i32 @gen_branch_metrics_n2(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @gen_path_metrics(i32 noundef, ptr noundef, 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/tmppoztjjg8.c'
source_filename = "/tmp/tmppoztjjg8.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 [9 x i8] c"# c::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"maxabs\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%12 = call double (...) @benchmark()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @print_results(double noundef %13)
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppoztjjg8.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 [9 x i8] c"# c::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"maxabs\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%11 = call double (...) @benchmark()
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call i32 @print_results(double noundef %12)
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(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"}
|
; ModuleID = '/tmp/tmp5rg2uwcf.c'
source_filename = "/tmp/tmp5rg2uwcf.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.x = private unnamed_addr constant [7 x i32] [i32 10, i32 1, i32 2, i32 7, i32 6, i32 1, i32 5], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [7 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.x, i64 28, i1 false)
%6 = getelementptr inbounds [7 x i32], ptr %5, i64 0, i64 0
%7 = call ptr @combinationSum2(ptr noundef %6, i32 noundef 7, i32 noundef 8, ptr noundef %3, ptr noundef %4)
store ptr %7, ptr %2, align 8
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 ptr @combinationSum2(ptr noundef, i32 noundef, i32 noundef, ptr 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/tmp5rg2uwcf.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.x = private unnamed_addr constant [7 x i32] [i32 10, i32 1, i32 2, i32 7, i32 6, i32 1, i32 5], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [7 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.x, i64 28, i1 false)
%6 = getelementptr inbounds [7 x i32], ptr %5, i64 0, i64 0
%7 = call ptr @combinationSum2(ptr noundef %6, i32 noundef 7, i32 noundef 8, ptr noundef %3, ptr noundef %4)
store ptr %7, ptr %2, align 8
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 ptr @combinationSum2(ptr noundef, i32 noundef, i32 noundef, ptr 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/tmpjr0pcwgb.c'
source_filename = "/tmp/tmpjr0pcwgb.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 @load_mechs() #0 {
%1 = call i32 (...) @ircd_register_crypt_native()
%2 = call i32 (...) @ircd_register_crypt_smd5()
%3 = call i32 (...) @ircd_register_crypt_plain()
ret void
}
declare i32 @ircd_register_crypt_native(...) #1
declare i32 @ircd_register_crypt_smd5(...) #1
declare i32 @ircd_register_crypt_plain(...) #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/tmpjr0pcwgb.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 @load_mechs() #0 {
%1 = call i32 (...) @ircd_register_crypt_native()
%2 = call i32 (...) @ircd_register_crypt_smd5()
%3 = call i32 (...) @ircd_register_crypt_plain()
ret void
}
declare i32 @ircd_register_crypt_native(...) #1
declare i32 @ircd_register_crypt_smd5(...) #1
declare i32 @ircd_register_crypt_plain(...) #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/tmpyc6bmwk9.c'
source_filename = "/tmp/tmpyc6bmwk9.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 @sort1_2(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 [8 x i8], align 1
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %128, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %131
13: ; preds = %8
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %124, %13
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %16, %17
%19 = sub nsw i32 %18, 1
%20 = icmp slt i32 %15, %19
br i1 %20, label %21, label %127
21: ; preds = %14
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [8 x i8], ptr %22, i64 %24
%26 = getelementptr inbounds [8 x i8], ptr %25, i64 0, i64 0
%27 = call i64 @strlen(ptr noundef %26)
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [8 x i8], ptr %28, i64 %31
%33 = getelementptr inbounds [8 x i8], ptr %32, i64 0, i64 0
%34 = call i64 @strlen(ptr noundef %33)
%35 = icmp sgt i64 %27, %34
br i1 %35, label %36, label %64
36: ; preds = %21
%37 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [8 x i8], ptr %38, i64 %40
%42 = getelementptr inbounds [8 x i8], ptr %41, i64 0, i64 0
%43 = call i32 @strcpy(ptr noundef %37, ptr noundef %42)
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [8 x i8], ptr %44, i64 %46
%48 = getelementptr inbounds [8 x i8], ptr %47, i64 0, i64 0
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [8 x i8], ptr %49, i64 %52
%54 = getelementptr inbounds [8 x i8], ptr %53, i64 0, i64 0
%55 = call i32 @strcpy(ptr noundef %48, ptr noundef %54)
%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 [8 x i8], ptr %56, i64 %59
%61 = getelementptr inbounds [8 x i8], ptr %60, i64 0, i64 0
%62 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
%63 = call i32 @strcpy(ptr noundef %61, ptr noundef %62)
br label %123
64: ; preds = %21
%65 = load ptr, ptr %3, align 8
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [8 x i8], ptr %65, i64 %67
%69 = getelementptr inbounds [8 x i8], ptr %68, i64 0, i64 0
%70 = call i64 @strlen(ptr noundef %69)
%71 = load ptr, ptr %3, align 8
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [8 x i8], ptr %71, i64 %74
%76 = getelementptr inbounds [8 x i8], ptr %75, i64 0, i64 0
%77 = call i64 @strlen(ptr noundef %76)
%78 = icmp eq i64 %70, %77
br i1 %78, label %79, label %122
79: ; preds = %64
%80 = load ptr, ptr %3, align 8
%81 = load i32, ptr %6, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [8 x i8], ptr %80, i64 %82
%84 = getelementptr inbounds [8 x i8], ptr %83, i64 0, i64 0
%85 = load ptr, ptr %3, align 8
%86 = load i32, ptr %6, align 4
%87 = add nsw i32 %86, 1
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [8 x i8], ptr %85, i64 %88
%90 = getelementptr inbounds [8 x i8], ptr %89, i64 0, i64 0
%91 = call i64 @strcmp(ptr noundef %84, ptr noundef %90)
%92 = icmp sgt i64 %91, 0
br i1 %92, label %93, label %121
93: ; preds = %79
%94 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
%95 = load ptr, ptr %3, align 8
%96 = load i32, ptr %6, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [8 x i8], ptr %95, i64 %97
%99 = getelementptr inbounds [8 x i8], ptr %98, i64 0, i64 0
%100 = call i32 @strcpy(ptr noundef %94, ptr noundef %99)
%101 = load ptr, ptr %3, align 8
%102 = load i32, ptr %6, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [8 x i8], ptr %101, i64 %103
%105 = getelementptr inbounds [8 x i8], ptr %104, i64 0, i64 0
%106 = load ptr, ptr %3, align 8
%107 = load i32, ptr %6, align 4
%108 = add nsw i32 %107, 1
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [8 x i8], ptr %106, i64 %109
%111 = getelementptr inbounds [8 x i8], ptr %110, i64 0, i64 0
%112 = call i32 @strcpy(ptr noundef %105, ptr noundef %111)
%113 = load ptr, ptr %3, align 8
%114 = load i32, ptr %6, align 4
%115 = add nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [8 x i8], ptr %113, i64 %116
%118 = getelementptr inbounds [8 x i8], ptr %117, i64 0, i64 0
%119 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
%120 = call i32 @strcpy(ptr noundef %118, ptr noundef %119)
br label %121
121: ; preds = %93, %79
br label %122
122: ; preds = %121, %64
br label %123
123: ; preds = %122, %36
br label %124
124: ; preds = %123
%125 = load i32, ptr %6, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %6, align 4
br label %14, !llvm.loop !6
127: ; preds = %14
br label %128
128: ; preds = %127
%129 = load i32, ptr %5, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %5, align 4
br label %8, !llvm.loop !8
131: ; preds = %8
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyc6bmwk9.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 @sort1_2(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 [8 x i8], align 1
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %.lr.ph2, label %139
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %132
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %14, %15
%17 = sub nsw i32 %16, 1
%18 = icmp slt i32 %13, %17
br i1 %18, label %.lr.ph, label %131
.lr.ph: ; preds = %12
br label %19
19: ; preds = %.lr.ph, %122
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [8 x i8], ptr %20, i64 %22
%24 = getelementptr inbounds [8 x i8], ptr %23, i64 0, i64 0
%25 = call i64 @strlen(ptr noundef %24)
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [8 x i8], ptr %26, i64 %29
%31 = getelementptr inbounds [8 x i8], ptr %30, i64 0, i64 0
%32 = call i64 @strlen(ptr noundef %31)
%33 = icmp sgt i64 %25, %32
br i1 %33, label %34, label %62
34: ; preds = %19
%35 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [8 x i8], ptr %36, i64 %38
%40 = getelementptr inbounds [8 x i8], ptr %39, i64 0, i64 0
%41 = call i32 @strcpy(ptr noundef %35, ptr noundef %40)
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [8 x i8], ptr %42, i64 %44
%46 = getelementptr inbounds [8 x i8], ptr %45, i64 0, i64 0
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %6, align 4
%49 = add nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [8 x i8], ptr %47, i64 %50
%52 = getelementptr inbounds [8 x i8], ptr %51, i64 0, i64 0
%53 = call i32 @strcpy(ptr noundef %46, ptr noundef %52)
%54 = load ptr, ptr %3, align 8
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [8 x i8], ptr %54, i64 %57
%59 = getelementptr inbounds [8 x i8], ptr %58, i64 0, i64 0
%60 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
%61 = call i32 @strcpy(ptr noundef %59, ptr noundef %60)
br label %121
62: ; preds = %19
%63 = load ptr, ptr %3, align 8
%64 = load i32, ptr %6, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [8 x i8], ptr %63, i64 %65
%67 = getelementptr inbounds [8 x i8], ptr %66, i64 0, i64 0
%68 = call i64 @strlen(ptr noundef %67)
%69 = load ptr, ptr %3, align 8
%70 = load i32, ptr %6, align 4
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [8 x i8], ptr %69, i64 %72
%74 = getelementptr inbounds [8 x i8], ptr %73, i64 0, i64 0
%75 = call i64 @strlen(ptr noundef %74)
%76 = icmp eq i64 %68, %75
br i1 %76, label %77, label %120
77: ; preds = %62
%78 = load ptr, ptr %3, align 8
%79 = load i32, ptr %6, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [8 x i8], ptr %78, i64 %80
%82 = getelementptr inbounds [8 x i8], ptr %81, i64 0, i64 0
%83 = load ptr, ptr %3, align 8
%84 = load i32, ptr %6, align 4
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [8 x i8], ptr %83, i64 %86
%88 = getelementptr inbounds [8 x i8], ptr %87, i64 0, i64 0
%89 = call i64 @strcmp(ptr noundef %82, ptr noundef %88)
%90 = icmp sgt i64 %89, 0
br i1 %90, label %91, label %119
91: ; preds = %77
%92 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
%93 = load ptr, ptr %3, align 8
%94 = load i32, ptr %6, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [8 x i8], ptr %93, i64 %95
%97 = getelementptr inbounds [8 x i8], ptr %96, i64 0, i64 0
%98 = call i32 @strcpy(ptr noundef %92, ptr noundef %97)
%99 = load ptr, ptr %3, align 8
%100 = load i32, ptr %6, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [8 x i8], ptr %99, i64 %101
%103 = getelementptr inbounds [8 x i8], ptr %102, i64 0, i64 0
%104 = load ptr, ptr %3, align 8
%105 = load i32, ptr %6, align 4
%106 = add nsw i32 %105, 1
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [8 x i8], ptr %104, i64 %107
%109 = getelementptr inbounds [8 x i8], ptr %108, i64 0, i64 0
%110 = call i32 @strcpy(ptr noundef %103, ptr noundef %109)
%111 = load ptr, ptr %3, align 8
%112 = load i32, ptr %6, align 4
%113 = add nsw i32 %112, 1
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [8 x i8], ptr %111, i64 %114
%116 = getelementptr inbounds [8 x i8], ptr %115, i64 0, i64 0
%117 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
%118 = call i32 @strcpy(ptr noundef %116, ptr noundef %117)
br label %119
119: ; preds = %91, %77
br label %120
120: ; preds = %119, %62
br label %121
121: ; preds = %120, %34
br label %122
122: ; preds = %121
%123 = load i32, ptr %6, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %6, align 4
%125 = load i32, ptr %6, align 4
%126 = load i32, ptr %4, align 4
%127 = load i32, ptr %5, align 4
%128 = sub nsw i32 %126, %127
%129 = sub nsw i32 %128, 1
%130 = icmp slt i32 %125, %129
br i1 %130, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %122
br label %131
131: ; preds = %._crit_edge, %12
br label %132
132: ; preds = %131
%133 = load i32, ptr %5, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %5, align 4
%135 = load i32, ptr %5, align 4
%136 = load i32, ptr %4, align 4
%137 = sub nsw i32 %136, 1
%138 = icmp slt i32 %135, %137
br i1 %138, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %132
br label %139
139: ; preds = %._crit_edge3, %2
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2azqvc3x.c'
source_filename = "/tmp/tmp2azqvc3x.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 @CSPL_Stats_median_quickselect(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca [2 x double], align 16
%6 = alloca i64, align 8
%7 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%8 = load i64, ptr %4, align 8
%9 = sdiv i64 %8, 2
store i64 %9, ptr %6, align 8
%10 = load i64, ptr %4, align 8
%11 = srem i64 %10, 2
%12 = icmp eq i64 0, %11
br i1 %12, label %13, label %30
13: ; preds = %2
%14 = load i64, ptr %6, align 8
%15 = load ptr, ptr %3, align 8
%16 = load i64, ptr %4, align 8
%17 = sub nsw i64 %16, 1
%18 = call double @CSPL_Array_quickselect(i64 noundef %14, ptr noundef %15, i32 noundef 0, i64 noundef %17)
%19 = getelementptr inbounds [2 x double], ptr %5, i64 0, i64 0
store double %18, ptr %19, align 16
%20 = load i64, ptr %6, align 8
%21 = add i64 %20, -1
store i64 %21, ptr %6, align 8
%22 = load i64, ptr %6, align 8
%23 = load ptr, ptr %3, align 8
%24 = load i64, ptr %4, align 8
%25 = sub nsw i64 %24, 1
%26 = call double @CSPL_Array_quickselect(i64 noundef %22, ptr noundef %23, i32 noundef 0, i64 noundef %25)
%27 = getelementptr inbounds [2 x double], ptr %5, i64 0, i64 1
store double %26, ptr %27, align 8
%28 = getelementptr inbounds [2 x double], ptr %5, i64 0, i64 0
%29 = call double @CSPL_Stats_mean(ptr noundef %28, i32 noundef 2)
store double %29, ptr %7, align 8
br label %36
30: ; preds = %2
%31 = load i64, ptr %6, align 8
%32 = load ptr, ptr %3, align 8
%33 = load i64, ptr %4, align 8
%34 = sub nsw i64 %33, 1
%35 = call double @CSPL_Array_quickselect(i64 noundef %31, ptr noundef %32, i32 noundef 0, i64 noundef %34)
store double %35, ptr %7, align 8
br label %36
36: ; preds = %30, %13
%37 = load double, ptr %7, align 8
ret double %37
}
declare double @CSPL_Array_quickselect(i64 noundef, ptr noundef, i32 noundef, i64 noundef) #1
declare double @CSPL_Stats_mean(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/tmp2azqvc3x.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 @CSPL_Stats_median_quickselect(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca [2 x double], align 16
%6 = alloca i64, align 8
%7 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%8 = load i64, ptr %4, align 8
%9 = sdiv i64 %8, 2
store i64 %9, ptr %6, align 8
%10 = load i64, ptr %4, align 8
%11 = srem i64 %10, 2
%12 = icmp eq i64 0, %11
br i1 %12, label %13, label %30
13: ; preds = %2
%14 = load i64, ptr %6, align 8
%15 = load ptr, ptr %3, align 8
%16 = load i64, ptr %4, align 8
%17 = sub nsw i64 %16, 1
%18 = call double @CSPL_Array_quickselect(i64 noundef %14, ptr noundef %15, i32 noundef 0, i64 noundef %17)
%19 = getelementptr inbounds [2 x double], ptr %5, i64 0, i64 0
store double %18, ptr %19, align 16
%20 = load i64, ptr %6, align 8
%21 = add i64 %20, -1
store i64 %21, ptr %6, align 8
%22 = load i64, ptr %6, align 8
%23 = load ptr, ptr %3, align 8
%24 = load i64, ptr %4, align 8
%25 = sub nsw i64 %24, 1
%26 = call double @CSPL_Array_quickselect(i64 noundef %22, ptr noundef %23, i32 noundef 0, i64 noundef %25)
%27 = getelementptr inbounds [2 x double], ptr %5, i64 0, i64 1
store double %26, ptr %27, align 8
%28 = getelementptr inbounds [2 x double], ptr %5, i64 0, i64 0
%29 = call double @CSPL_Stats_mean(ptr noundef %28, i32 noundef 2)
store double %29, ptr %7, align 8
br label %36
30: ; preds = %2
%31 = load i64, ptr %6, align 8
%32 = load ptr, ptr %3, align 8
%33 = load i64, ptr %4, align 8
%34 = sub nsw i64 %33, 1
%35 = call double @CSPL_Array_quickselect(i64 noundef %31, ptr noundef %32, i32 noundef 0, i64 noundef %34)
store double %35, ptr %7, align 8
br label %36
36: ; preds = %30, %13
%37 = load double, ptr %7, align 8
ret double %37
}
declare double @CSPL_Array_quickselect(i64 noundef, ptr noundef, i32 noundef, i64 noundef) #1
declare double @CSPL_Stats_mean(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/tmpl3e8p35l.c'
source_filename = "/tmp/tmpl3e8p35l.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 @ReadUint8Le(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = load ptr, ptr %3, align 8
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 0
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %4, align 8
store i32 %17, ptr %18, align 4
ret i32 1
}
declare i32 @assert(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/tmpl3e8p35l.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 @ReadUint8Le(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = load ptr, ptr %3, align 8
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 0
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %4, align 8
store i32 %17, ptr %18, align 4
ret i32 1
}
declare i32 @assert(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/tmpjt0mppn9.c'
source_filename = "/tmp/tmpjt0mppn9.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 @solve(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%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
store i32 %0, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = mul nsw i32 2, %16
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = sub nsw i32 %20, 1
%22 = call i32 @pow(i32 noundef 10, i32 noundef %21)
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %4, align 4
%24 = zext i32 %23 to i64
%25 = call ptr @llvm.stacksave()
store ptr %25, ptr %7, align 8
%26 = alloca i32, i64 %24, align 16
store i64 %24, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %27
27: ; preds = %102, %1
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %105
31: ; preds = %27
%32 = load i32, ptr %9, align 4
store i32 %32, ptr %11, align 4
%33 = load i32, ptr %3, align 4
%34 = sub nsw i32 %33, 1
store i32 %34, ptr %10, align 4
br label %35
35: ; preds = %47, %31
%36 = load i32, ptr %10, align 4
%37 = icmp sge i32 %36, 0
br i1 %37, label %38, label %50
38: ; preds = %35
%39 = load i32, ptr %11, align 4
%40 = srem i32 %39, 10
%41 = sub nsw i32 9, %40
%42 = load i32, ptr %10, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %26, i64 %43
store i32 %41, ptr %44, align 4
%45 = load i32, ptr %11, align 4
%46 = sdiv i32 %45, 10
store i32 %46, ptr %11, align 4
br label %47
47: ; preds = %38
%48 = load i32, ptr %10, align 4
%49 = add nsw i32 %48, -1
store i32 %49, ptr %10, align 4
br label %35, !llvm.loop !6
50: ; preds = %35
store i32 0, ptr %10, align 4
br label %51
51: ; preds = %66, %50
%52 = load i32, ptr %10, align 4
%53 = load i32, ptr %3, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %69
55: ; preds = %51
%56 = load i32, ptr %10, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %26, i64 %57
%59 = load i32, ptr %58, align 4
%60 = load i32, ptr %4, align 4
%61 = sub nsw i32 %60, 1
%62 = load i32, ptr %10, align 4
%63 = sub nsw i32 %61, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %26, i64 %64
store i32 %59, ptr %65, align 4
br label %66
66: ; preds = %55
%67 = load i32, ptr %10, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %10, align 4
br label %51, !llvm.loop !8
69: ; preds = %51
%70 = load i32, ptr %4, align 4
%71 = call i32 @from_digits(ptr noundef %26, i32 noundef %70)
store i32 %71, ptr %12, align 4
%72 = load i32, ptr %5, align 4
%73 = sub nsw i32 %72, 1
store i32 %73, ptr %10, align 4
br label %74
74: ; preds = %98, %69
%75 = load i32, ptr %10, align 4
%76 = load i32, ptr %6, align 4
%77 = icmp sge i32 %75, %76
br i1 %77, label %78, label %101
78: ; preds = %74
%79 = load i32, ptr %12, align 4
%80 = load i32, ptr %10, align 4
%81 = sdiv i32 %79, %80
store i32 %81, ptr %13, align 4
%82 = load i32, ptr %12, align 4
%83 = load i32, ptr %10, align 4
%84 = srem i32 %82, %83
store i32 %84, ptr %14, align 4
%85 = load i32, ptr %14, align 4
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %97
87: ; preds = %78
%88 = load i32, ptr %13, align 4
%89 = load i32, ptr %5, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %97
91: ; preds = %87
%92 = load i32, ptr %13, align 4
%93 = load i32, ptr %6, align 4
%94 = icmp sgt i32 %92, %93
br i1 %94, label %95, label %97
95: ; preds = %91
%96 = load i32, ptr %12, align 4
store i32 %96, ptr %2, align 4
store i32 1, ptr %15, align 4
br label %106
97: ; preds = %91, %87, %78
br label %98
98: ; preds = %97
%99 = load i32, ptr %10, align 4
%100 = add nsw i32 %99, -1
store i32 %100, ptr %10, align 4
br label %74, !llvm.loop !9
101: ; preds = %74
br label %102
102: ; preds = %101
%103 = load i32, ptr %9, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %9, align 4
br label %27, !llvm.loop !10
105: ; preds = %27
store i32 -1, ptr %2, align 4
store i32 1, ptr %15, align 4
br label %106
106: ; preds = %105, %95
%107 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %107)
%108 = load i32, ptr %2, align 4
ret i32 %108
}
declare i32 @pow(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @from_digits(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 = { nocallback nofree nosync nounwind willreturn }
!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/tmpjt0mppn9.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 @solve(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%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
store i32 %0, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = mul nsw i32 2, %16
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = sub nsw i32 %20, 1
%22 = call i32 @pow(i32 noundef 10, i32 noundef %21)
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %4, align 4
%24 = zext i32 %23 to i64
%25 = call ptr @llvm.stacksave()
store ptr %25, ptr %7, align 8
%26 = alloca i32, i64 %24, align 16
store i64 %24, ptr %8, align 8
store i32 0, ptr %9, align 4
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph8, label %112
.lr.ph8: ; preds = %1
br label %30
30: ; preds = %.lr.ph8, %106
%31 = load i32, ptr %9, align 4
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %3, align 4
%33 = sub nsw i32 %32, 1
store i32 %33, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = icmp sge i32 %34, 0
br i1 %35, label %.lr.ph, label %50
.lr.ph: ; preds = %30
br label %36
36: ; preds = %.lr.ph, %45
%37 = load i32, ptr %11, align 4
%38 = srem i32 %37, 10
%39 = sub nsw i32 9, %38
%40 = load i32, ptr %10, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %26, i64 %41
store i32 %39, ptr %42, align 4
%43 = load i32, ptr %11, align 4
%44 = sdiv i32 %43, 10
store i32 %44, ptr %11, align 4
br label %45
45: ; preds = %36
%46 = load i32, ptr %10, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = icmp sge i32 %48, 0
br i1 %49, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %30
store i32 0, ptr %10, align 4
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %3, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph2, label %71
.lr.ph2: ; preds = %50
br label %54
54: ; preds = %.lr.ph2, %65
%55 = load i32, ptr %10, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %26, i64 %56
%58 = load i32, ptr %57, align 4
%59 = load i32, ptr %4, align 4
%60 = sub nsw i32 %59, 1
%61 = load i32, ptr %10, align 4
%62 = sub nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %26, i64 %63
store i32 %58, ptr %64, align 4
br label %65
65: ; preds = %54
%66 = load i32, ptr %10, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %10, align 4
%68 = load i32, ptr %10, align 4
%69 = load i32, ptr %3, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %71
71: ; preds = %._crit_edge3, %50
%72 = load i32, ptr %4, align 4
%73 = call i32 @from_digits(ptr noundef %26, i32 noundef %72)
store i32 %73, ptr %12, align 4
%74 = load i32, ptr %5, align 4
%75 = sub nsw i32 %74, 1
store i32 %75, ptr %10, align 4
%76 = load i32, ptr %10, align 4
%77 = load i32, ptr %6, align 4
%78 = icmp sge i32 %76, %77
br i1 %78, label %.lr.ph5, label %105
.lr.ph5: ; preds = %71
br label %79
79: ; preds = %.lr.ph5, %99
%80 = load i32, ptr %12, align 4
%81 = load i32, ptr %10, align 4
%82 = sdiv i32 %80, %81
store i32 %82, ptr %13, align 4
%83 = load i32, ptr %12, align 4
%84 = load i32, ptr %10, align 4
%85 = srem i32 %83, %84
store i32 %85, ptr %14, align 4
%86 = load i32, ptr %14, align 4
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %98
88: ; preds = %79
%89 = load i32, ptr %13, align 4
%90 = load i32, ptr %5, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %98
92: ; preds = %88
%93 = load i32, ptr %13, align 4
%94 = load i32, ptr %6, align 4
%95 = icmp sgt i32 %93, %94
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = load i32, ptr %12, align 4
store i32 %97, ptr %2, align 4
store i32 1, ptr %15, align 4
br label %113
98: ; preds = %92, %88, %79
br label %99
99: ; preds = %98
%100 = load i32, ptr %10, align 4
%101 = add nsw i32 %100, -1
store i32 %101, ptr %10, align 4
%102 = load i32, ptr %10, align 4
%103 = load i32, ptr %6, align 4
%104 = icmp sge i32 %102, %103
br i1 %104, label %79, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %99
br label %105
105: ; preds = %._crit_edge6, %71
br label %106
106: ; preds = %105
%107 = load i32, ptr %9, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %9, align 4
%109 = load i32, ptr %9, align 4
%110 = load i32, ptr %5, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %30, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %106
br label %112
112: ; preds = %._crit_edge9, %1
store i32 -1, ptr %2, align 4
store i32 1, ptr %15, align 4
br label %113
113: ; preds = %112, %96
%114 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %114)
%115 = load i32, ptr %2, align 4
ret i32 %115
}
declare i32 @pow(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @from_digits(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 = { nocallback nofree nosync nounwind willreturn }
!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/tmpb92zparb.c'
source_filename = "/tmp/tmpb92zparb.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 @read_int_from_socket(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 4, ptr %6, align 4
%8 = load i32, ptr %3, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @read(i32 noundef %8, ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %44
15: ; preds = %2
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = sub nsw i32 %20, %19
store i32 %21, ptr %6, align 4
br label %22
22: ; preds = %36, %15
%23 = load i32, ptr %6, align 4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %43
25: ; preds = %22
%26 = load i32, ptr %3, align 4
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %6, align 4
%32 = call i32 @read(i32 noundef %26, ptr noundef %30, i32 noundef %31)
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %36
35: ; preds = %25
br label %43
36: ; preds = %25
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, %37
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %6, align 4
%42 = sub nsw i32 %41, %40
store i32 %42, ptr %6, align 4
br label %22, !llvm.loop !6
43: ; preds = %35, %22
br label %44
44: ; preds = %43, %2
%45 = load i32, ptr %7, align 4
ret i32 %45
}
declare i32 @read(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb92zparb.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 @read_int_from_socket(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 4, ptr %6, align 4
%8 = load i32, ptr %3, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @read(i32 noundef %8, ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %45
15: ; preds = %2
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = sub nsw i32 %20, %19
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %24
24: ; preds = %.lr.ph, %35
%25 = load i32, ptr %3, align 4
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %6, align 4
%31 = call i32 @read(i32 noundef %25, ptr noundef %29, i32 noundef %30)
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %35
34: ; preds = %24
br label %44
35: ; preds = %24
%36 = load i32, ptr %7, align 4
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, %36
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %6, align 4
%41 = sub nsw i32 %40, %39
store i32 %41, ptr %6, align 4
%42 = load i32, ptr %6, align 4
%43 = icmp sgt i32 %42, 0
br i1 %43, label %24, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %35
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %44
44: ; preds = %.loopexit, %34
br label %45
45: ; preds = %44, %2
%46 = load i32, ptr %7, align 4
ret i32 %46
}
declare i32 @read(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzfscdmvf.c'
source_filename = "/tmp/tmpzfscdmvf.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 @MDECODE_decode_qp_ISO(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 @MDECODE_decode_quoted_printable(ptr noundef %3, i32 noundef 0, i8 noundef signext 61)
ret i32 %4
}
declare i32 @MDECODE_decode_quoted_printable(ptr noundef, i32 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzfscdmvf.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 @MDECODE_decode_qp_ISO(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 @MDECODE_decode_quoted_printable(ptr noundef %3, i32 noundef 0, i8 noundef signext 61)
ret i32 %4
}
declare i32 @MDECODE_decode_quoted_printable(ptr noundef, i32 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"}
|
; ModuleID = '/tmp/tmplb1rfyco.c'
source_filename = "/tmp/tmplb1rfyco.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"\0A%i\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
store i32 90000000, ptr %2, align 4
br label %3
3: ; preds = %7, %0
%4 = load i32, ptr %2, align 4
%5 = call i64 @dCheck(i32 noundef %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %3
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 10
store i32 %11, ptr %2, align 4
br label %3, !llvm.loop !6
12: ; preds = %3
ret i32 0
}
declare i64 @dCheck(i32 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplb1rfyco.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"\0A%i\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
store i32 90000000, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @dCheck(i32 noundef %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 10
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = call i64 @dCheck(i32 noundef %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %14
14: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @dCheck(i32 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"}
|
; ModuleID = '/tmp/tmpw7lpk_a3.c'
source_filename = "/tmp/tmpw7lpk_a3.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"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, 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 %3, align 8
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %5, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %6, align 8
%15 = load i32, ptr %4, align 4
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %62
18: ; preds = %2
store i32 0, ptr %7, align 4
br label %19
19: ; preds = %36, %18
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %4, align 4
%22 = sdiv i32 %21, 2
%23 = icmp slt i32 %20, %22
br i1 %23, label %24, label %39
24: ; preds = %19
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %4, align 4
%28 = sdiv i32 %27, 2
%29 = add nsw i32 %26, %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %25, i64 %30
%32 = load i8, ptr %31, align 1
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %14, i64 %34
store i8 %32, ptr %35, align 1
br label %36
36: ; preds = %24
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
br label %19, !llvm.loop !6
39: ; preds = %19
%40 = load i32, ptr %4, align 4
%41 = sdiv i32 %40, 2
store i32 %41, ptr %8, align 4
br label %42
42: ; preds = %58, %39
%43 = load i32, ptr %8, align 4
%44 = load i32, ptr %4, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %61
46: ; preds = %42
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %4, align 4
%50 = sdiv i32 %49, 2
%51 = sub nsw i32 %48, %50
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %47, i64 %52
%54 = load i8, ptr %53, align 1
%55 = load i32, ptr %8, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %14, i64 %56
store i8 %54, ptr %57, align 1
br label %58
58: ; preds = %46
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
br label %42, !llvm.loop !8
61: ; preds = %42
br label %119
62: ; preds = %2
store i32 0, ptr %9, align 4
br label %63
63: ; preds = %81, %62
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %4, align 4
%66 = sdiv i32 %65, 2
%67 = icmp slt i32 %64, %66
br i1 %67, label %68, label %84
68: ; preds = %63
%69 = load ptr, ptr %3, align 8
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %4, align 4
%72 = sdiv i32 %71, 2
%73 = add nsw i32 %70, %72
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %69, i64 %75
%77 = load i8, ptr %76, align 1
%78 = load i32, ptr %9, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %14, i64 %79
store i8 %77, ptr %80, align 1
br label %81
81: ; preds = %68
%82 = load i32, ptr %9, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %9, align 4
br label %63, !llvm.loop !9
84: ; preds = %63
%85 = load i32, ptr %4, align 4
%86 = sdiv i32 %85, 2
%87 = add nsw i32 %86, 1
store i32 %87, ptr %10, align 4
br label %88
88: ; preds = %105, %84
%89 = load i32, ptr %10, align 4
%90 = load i32, ptr %4, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %108
92: ; preds = %88
%93 = load ptr, ptr %3, align 8
%94 = load i32, ptr %10, align 4
%95 = load i32, ptr %4, align 4
%96 = sdiv i32 %95, 2
%97 = sub nsw i32 %94, %96
%98 = sub nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8, ptr %93, i64 %99
%101 = load i8, ptr %100, align 1
%102 = load i32, ptr %10, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %14, i64 %103
store i8 %101, ptr %104, align 1
br label %105
105: ; preds = %92
%106 = load i32, ptr %10, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %10, align 4
br label %88, !llvm.loop !10
108: ; preds = %88
%109 = load ptr, ptr %3, align 8
%110 = load i32, ptr %4, align 4
%111 = sdiv i32 %110, 2
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %109, i64 %112
%114 = load i8, ptr %113, align 1
%115 = load i32, ptr %4, align 4
%116 = sdiv i32 %115, 2
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %14, i64 %117
store i8 %114, ptr %118, align 1
br label %119
119: ; preds = %108, %61
%120 = call i32 @printf(ptr noundef @.str, ptr noundef %14)
%121 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %121)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, 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"}
!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/tmpw7lpk_a3.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"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, 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 %3, align 8
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %5, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %6, align 8
%15 = load i32, ptr %4, align 4
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %67
18: ; preds = %2
store i32 0, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = sdiv i32 %20, 2
%22 = icmp slt i32 %19, %21
br i1 %22, label %.lr.ph5, label %42
.lr.ph5: ; preds = %18
br label %23
23: ; preds = %.lr.ph5, %35
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = sdiv i32 %26, 2
%28 = add nsw i32 %25, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %24, i64 %29
%31 = load i8, ptr %30, align 1
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %14, i64 %33
store i8 %31, ptr %34, align 1
br label %35
35: ; preds = %23
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %4, align 4
%40 = sdiv i32 %39, 2
%41 = icmp slt i32 %38, %40
br i1 %41, label %23, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %35
br label %42
42: ; preds = %._crit_edge6, %18
%43 = load i32, ptr %4, align 4
%44 = sdiv i32 %43, 2
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph8, label %66
.lr.ph8: ; preds = %42
br label %48
48: ; preds = %.lr.ph8, %60
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %4, align 4
%52 = sdiv i32 %51, 2
%53 = sub nsw i32 %50, %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %49, i64 %54
%56 = load i8, ptr %55, align 1
%57 = load i32, ptr %8, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %14, i64 %58
store i8 %56, ptr %59, align 1
br label %60
60: ; preds = %48
%61 = load i32, ptr %8, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %8, align 4
%63 = load i32, ptr %8, align 4
%64 = load i32, ptr %4, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %48, label %._crit_edge9, !llvm.loop !8
._crit_edge9: ; preds = %60
br label %66
66: ; preds = %._crit_edge9, %42
br label %129
67: ; preds = %2
store i32 0, ptr %9, align 4
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr %4, align 4
%70 = sdiv i32 %69, 2
%71 = icmp slt i32 %68, %70
br i1 %71, label %.lr.ph, label %92
.lr.ph: ; preds = %67
br label %72
72: ; preds = %.lr.ph, %85
%73 = load ptr, ptr %3, align 8
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %4, align 4
%76 = sdiv i32 %75, 2
%77 = add nsw i32 %74, %76
%78 = add nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %73, i64 %79
%81 = load i8, ptr %80, align 1
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %14, i64 %83
store i8 %81, ptr %84, align 1
br label %85
85: ; preds = %72
%86 = load i32, ptr %9, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %9, align 4
%88 = load i32, ptr %9, align 4
%89 = load i32, ptr %4, align 4
%90 = sdiv i32 %89, 2
%91 = icmp slt i32 %88, %90
br i1 %91, label %72, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %85
br label %92
92: ; preds = %._crit_edge, %67
%93 = load i32, ptr %4, align 4
%94 = sdiv i32 %93, 2
%95 = add nsw i32 %94, 1
store i32 %95, ptr %10, align 4
%96 = load i32, ptr %10, align 4
%97 = load i32, ptr %4, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %.lr.ph2, label %118
.lr.ph2: ; preds = %92
br label %99
99: ; preds = %.lr.ph2, %112
%100 = load ptr, ptr %3, align 8
%101 = load i32, ptr %10, align 4
%102 = load i32, ptr %4, align 4
%103 = sdiv i32 %102, 2
%104 = sub nsw i32 %101, %103
%105 = sub nsw i32 %104, 1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %100, i64 %106
%108 = load i8, ptr %107, align 1
%109 = load i32, ptr %10, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %14, i64 %110
store i8 %108, ptr %111, align 1
br label %112
112: ; preds = %99
%113 = load i32, ptr %10, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %10, align 4
%115 = load i32, ptr %10, align 4
%116 = load i32, ptr %4, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %99, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %112
br label %118
118: ; preds = %._crit_edge3, %92
%119 = load ptr, ptr %3, align 8
%120 = load i32, ptr %4, align 4
%121 = sdiv i32 %120, 2
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %119, i64 %122
%124 = load i8, ptr %123, align 1
%125 = load i32, ptr %4, align 4
%126 = sdiv i32 %125, 2
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8, ptr %14, i64 %127
store i8 %124, ptr %128, align 1
br label %129
129: ; preds = %118, %66
%130 = call i32 @printf(ptr noundef @.str, ptr noundef %14)
%131 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %131)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp6a2eqk7q.c'
source_filename = "/tmp/tmp6a2eqk7q.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/tmp6a2eqk7q.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/tmpfb9vsuow.c'
source_filename = "/tmp/tmpfb9vsuow.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/tmpfb9vsuow.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/tmpf8ws4v7q.c'
source_filename = "/tmp/tmpf8ws4v7q.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"t:\00", align 1
@optarg = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Usage: %s <-t> thread\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"thread = %d\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 i32, align 4
%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
store i32 1, ptr %7, align 4
br label %8
8: ; preds = %24, %2
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @getopt(i32 noundef %9, ptr noundef %10, ptr noundef @.str)
store i32 %11, ptr %6, align 4
%12 = icmp ne i32 %11, -1
br i1 %12, label %13, label %25
13: ; preds = %8
%14 = load i32, ptr %6, align 4
switch i32 %14, label %18 [
i32 116, label %15
]
15: ; preds = %13
%16 = load i32, ptr @optarg, align 4
%17 = call i32 @atoi(i32 noundef %16)
store i32 %17, ptr %7, align 4
br label %24
18: ; preds = %13
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.1, ptr noundef %22)
store i32 1, ptr %3, align 4
br label %31
24: ; preds = %15
br label %8, !llvm.loop !6
25: ; preds = %8
%26 = call i32 (...) @load_idx()
%27 = load i32, ptr %7, align 4
%28 = call i32 @printf(ptr noundef @.str.2, i32 noundef %27)
%29 = load i32, ptr %7, align 4
%30 = call i32 @start_predict(i32 noundef %29, i32 noundef 0, i32 noundef 50000, i32 noundef 50000, i32 noundef 60000, i32 noundef 60000, i32 noundef 70000)
store i32 0, ptr %3, align 4
br label %31
31: ; preds = %25, %18
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @load_idx(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @start_predict(i32 noundef, i32 noundef, i32 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf8ws4v7q.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"t:\00", align 1
@optarg = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Usage: %s <-t> thread\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"thread = %d\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 i32, align 4
%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
store i32 1, ptr %7, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @getopt(i32 noundef %8, ptr noundef %9, ptr noundef @.str)
store i32 %10, ptr %6, align 4
%11 = icmp ne i32 %10, -1
br i1 %11, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %23
%13 = load i32, ptr %6, align 4
switch i32 %13, label %17 [
i32 116, label %14
]
14: ; preds = %12
%15 = load i32, ptr @optarg, align 4
%16 = call i32 @atoi(i32 noundef %15)
store i32 %16, ptr %7, align 4
br label %23
17: ; preds = %12
%18 = load i32, ptr @stderr, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1, ptr noundef %21)
store i32 1, ptr %3, align 4
br label %34
23: ; preds = %14
%24 = load i32, ptr %4, align 4
%25 = load ptr, ptr %5, align 8
%26 = call i32 @getopt(i32 noundef %24, ptr noundef %25, ptr noundef @.str)
store i32 %26, ptr %6, align 4
%27 = icmp ne i32 %26, -1
br i1 %27, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %2
%29 = call i32 (...) @load_idx()
%30 = load i32, ptr %7, align 4
%31 = call i32 @printf(ptr noundef @.str.2, i32 noundef %30)
%32 = load i32, ptr %7, align 4
%33 = call i32 @start_predict(i32 noundef %32, i32 noundef 0, i32 noundef 50000, i32 noundef 50000, i32 noundef 60000, i32 noundef 60000, i32 noundef 70000)
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %28, %17
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @load_idx(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @start_predict(i32 noundef, i32 noundef, i32 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"}
|
; ModuleID = '/tmp/tmpfri8r_p0.c'
source_filename = "/tmp/tmpfri8r_p0.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 @efuse_bch_enc(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%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
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i8, align 1
%16 = alloca [255 x i32], align 16
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 1, ptr %17, align 4
%19 = load i32, ptr %6, align 4
%20 = mul nsw i32 %19, 8
%21 = load i32, ptr %17, align 4
%22 = mul nsw i32 %21, 8
%23 = add nsw i32 %20, %22
store i32 %23, ptr %18, align 4
store i32 0, ptr %9, align 4
br label %24
24: ; preds = %62, %4
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %65
28: ; preds = %24
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
store i8 %33, ptr %15, align 1
%34 = load i32, ptr %8, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %28
%37 = load i8, ptr %15, align 1
%38 = sext i8 %37 to i32
%39 = xor i32 %38, -1
%40 = trunc i32 %39 to i8
store i8 %40, ptr %15, align 1
br label %41
41: ; preds = %36, %28
store i32 0, ptr %10, align 4
br label %42
42: ; preds = %58, %41
%43 = load i32, ptr %10, align 4
%44 = icmp slt i32 %43, 8
br i1 %44, label %45, label %61
45: ; preds = %42
%46 = load i8, ptr %15, align 1
%47 = sext i8 %46 to i32
%48 = load i32, ptr %10, align 4
%49 = sub nsw i32 7, %48
%50 = ashr i32 %47, %49
%51 = and i32 %50, 1
%52 = load i32, ptr %9, align 4
%53 = mul nsw i32 %52, 8
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %53, %54
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [255 x i32], ptr %16, i64 0, i64 %56
store i32 %51, ptr %57, align 4
br label %58
58: ; preds = %45
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %42, !llvm.loop !6
61: ; preds = %42
br label %62
62: ; preds = %61
%63 = load i32, ptr %9, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %9, align 4
br label %24, !llvm.loop !8
65: ; preds = %24
%66 = getelementptr inbounds [255 x i32], ptr %16, i64 0, i64 0
%67 = load i32, ptr %18, align 4
%68 = load i32, ptr %17, align 4
%69 = call i32 @bch_enc(ptr noundef %66, i32 noundef %67, i32 noundef %68)
store i32 0, ptr %9, align 4
br label %70
70: ; preds = %114, %65
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %18, align 4
%73 = sdiv i32 %72, 8
%74 = icmp slt i32 %71, %73
br i1 %74, label %75, label %117
75: ; preds = %70
store i32 0, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %76
76: ; preds = %92, %75
%77 = load i32, ptr %10, align 4
%78 = icmp slt i32 %77, 8
br i1 %78, label %79, label %95
79: ; preds = %76
%80 = load i32, ptr %9, align 4
%81 = mul nsw i32 %80, 8
%82 = load i32, ptr %10, align 4
%83 = add nsw i32 %81, %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [255 x i32], ptr %16, i64 0, i64 %84
%86 = load i32, ptr %85, align 4
%87 = load i32, ptr %10, align 4
%88 = sub nsw i32 7, %87
%89 = shl i32 %86, %88
%90 = load i32, ptr %12, align 4
%91 = add nsw i32 %90, %89
store i32 %91, ptr %12, align 4
br label %92
92: ; preds = %79
%93 = load i32, ptr %10, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %10, align 4
br label %76, !llvm.loop !9
95: ; preds = %76
%96 = load i32, ptr %8, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %106
98: ; preds = %95
%99 = load i32, ptr %12, align 4
%100 = xor i32 %99, -1
%101 = trunc i32 %100 to i8
%102 = load ptr, ptr %7, align 8
%103 = load i32, ptr %9, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %102, i64 %104
store i8 %101, ptr %105, align 1
br label %113
106: ; preds = %95
%107 = load i32, ptr %12, align 4
%108 = trunc i32 %107 to i8
%109 = load ptr, ptr %7, align 8
%110 = load i32, ptr %9, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, ptr %109, i64 %111
store i8 %108, ptr %112, align 1
br label %113
113: ; preds = %106, %98
br label %114
114: ; preds = %113
%115 = load i32, ptr %9, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %9, align 4
br label %70, !llvm.loop !10
117: ; preds = %70
ret void
}
declare i32 @bch_enc(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/tmpfri8r_p0.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 @efuse_bch_enc(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%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
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i8, align 1
%16 = alloca [255 x i32], align 16
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 1, ptr %17, align 4
%19 = load i32, ptr %6, align 4
%20 = mul nsw i32 %19, 8
%21 = load i32, ptr %17, align 4
%22 = mul nsw i32 %21, 8
%23 = add nsw i32 %20, %22
store i32 %23, ptr %18, align 4
store i32 0, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph2, label %68
.lr.ph2: ; preds = %4
br label %27
27: ; preds = %.lr.ph2, %62
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
store i8 %32, ptr %15, align 1
%33 = load i32, ptr %8, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %27
%36 = load i8, ptr %15, align 1
%37 = sext i8 %36 to i32
%38 = xor i32 %37, -1
%39 = trunc i32 %38 to i8
store i8 %39, ptr %15, align 1
br label %40
40: ; preds = %35, %27
store i32 0, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = icmp slt i32 %41, 8
br i1 %42, label %.lr.ph, label %61
.lr.ph: ; preds = %40
br label %43
43: ; preds = %.lr.ph, %56
%44 = load i8, ptr %15, align 1
%45 = sext i8 %44 to i32
%46 = load i32, ptr %10, align 4
%47 = sub nsw i32 7, %46
%48 = ashr i32 %45, %47
%49 = and i32 %48, 1
%50 = load i32, ptr %9, align 4
%51 = mul nsw i32 %50, 8
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %51, %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [255 x i32], ptr %16, i64 0, i64 %54
store i32 %49, ptr %55, align 4
br label %56
56: ; preds = %43
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 8
br i1 %60, label %43, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %61
61: ; preds = %._crit_edge, %40
br label %62
62: ; preds = %61
%63 = load i32, ptr %9, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %62
br label %68
68: ; preds = %._crit_edge3, %4
%69 = getelementptr inbounds [255 x i32], ptr %16, i64 0, i64 0
%70 = load i32, ptr %18, align 4
%71 = load i32, ptr %17, align 4
%72 = call i32 @bch_enc(ptr noundef %69, i32 noundef %70, i32 noundef %71)
store i32 0, ptr %9, align 4
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %18, align 4
%75 = sdiv i32 %74, 8
%76 = icmp slt i32 %73, %75
br i1 %76, label %.lr.ph8, label %124
.lr.ph8: ; preds = %68
br label %77
77: ; preds = %.lr.ph8, %117
store i32 0, ptr %12, align 4
store i32 0, ptr %10, align 4
%78 = load i32, ptr %10, align 4
%79 = icmp slt i32 %78, 8
br i1 %79, label %.lr.ph5, label %98
.lr.ph5: ; preds = %77
br label %80
80: ; preds = %.lr.ph5, %93
%81 = load i32, ptr %9, align 4
%82 = mul nsw i32 %81, 8
%83 = load i32, ptr %10, align 4
%84 = add nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [255 x i32], ptr %16, i64 0, i64 %85
%87 = load i32, ptr %86, align 4
%88 = load i32, ptr %10, align 4
%89 = sub nsw i32 7, %88
%90 = shl i32 %87, %89
%91 = load i32, ptr %12, align 4
%92 = add nsw i32 %91, %90
store i32 %92, ptr %12, align 4
br label %93
93: ; preds = %80
%94 = load i32, ptr %10, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %10, align 4
%96 = load i32, ptr %10, align 4
%97 = icmp slt i32 %96, 8
br i1 %97, label %80, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %93
br label %98
98: ; preds = %._crit_edge6, %77
%99 = load i32, ptr %8, align 4
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %109
101: ; preds = %98
%102 = load i32, ptr %12, align 4
%103 = xor i32 %102, -1
%104 = trunc i32 %103 to i8
%105 = load ptr, ptr %7, align 8
%106 = load i32, ptr %9, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8, ptr %105, i64 %107
store i8 %104, ptr %108, align 1
br label %116
109: ; preds = %98
%110 = load i32, ptr %12, align 4
%111 = trunc i32 %110 to i8
%112 = load ptr, ptr %7, align 8
%113 = load i32, ptr %9, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8, ptr %112, i64 %114
store i8 %111, ptr %115, align 1
br label %116
116: ; preds = %109, %101
br label %117
117: ; preds = %116
%118 = load i32, ptr %9, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %9, align 4
%120 = load i32, ptr %9, align 4
%121 = load i32, ptr %18, align 4
%122 = sdiv i32 %121, 8
%123 = icmp slt i32 %120, %122
br i1 %123, label %77, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %117
br label %124
124: ; preds = %._crit_edge9, %68
ret void
}
declare i32 @bch_enc(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/tmpzt5u3ntd.c'
source_filename = "/tmp/tmpzt5u3ntd.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 [32 x i8] c"Too many steps in routine qromb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @qromb(ptr noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca [21 x float], align 16
%11 = alloca [22 x float], align 16
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store float %1, ptr %6, align 4
store float %2, ptr %7, align 4
%13 = getelementptr inbounds [22 x float], ptr %11, i64 0, i64 1
store float 1.000000e+00, ptr %13, align 4
store i32 1, ptr %12, align 4
br label %14
14: ; preds = %58, %3
%15 = load i32, ptr %12, align 4
%16 = icmp sle i32 %15, 20
br i1 %16, label %17, label %61
17: ; preds = %14
%18 = load ptr, ptr %5, align 8
%19 = load float, ptr %6, align 4
%20 = load float, ptr %7, align 4
%21 = load i32, ptr %12, align 4
%22 = call float @trapzd(ptr noundef %18, float noundef %19, float noundef %20, i32 noundef %21)
%23 = load i32, ptr %12, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [21 x float], ptr %10, i64 0, i64 %24
store float %22, ptr %25, align 4
%26 = load i32, ptr %12, align 4
%27 = icmp sge i32 %26, 5
br i1 %27, label %28, label %46
28: ; preds = %17
%29 = load i32, ptr %12, align 4
%30 = sub nsw i32 %29, 5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [22 x float], ptr %11, i64 0, i64 %31
%33 = load i32, ptr %12, align 4
%34 = sub nsw i32 %33, 5
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [21 x float], ptr %10, i64 0, i64 %35
call void @polint(ptr noundef %32, ptr noundef %36, i32 noundef 5, float noundef 0.000000e+00, ptr noundef %8, ptr noundef %9)
%37 = load float, ptr %9, align 4
%38 = call double @fabs(float noundef %37)
%39 = load float, ptr %8, align 4
%40 = call double @fabs(float noundef %39)
%41 = fmul double 0x3EB0C6F7A0B5ED8D, %40
%42 = fcmp ole double %38, %41
br i1 %42, label %43, label %45
43: ; preds = %28
%44 = load float, ptr %8, align 4
store float %44, ptr %4, align 4
br label %62
45: ; preds = %28
br label %46
46: ; preds = %45, %17
%47 = load i32, ptr %12, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [22 x float], ptr %11, i64 0, i64 %48
%50 = load float, ptr %49, align 4
%51 = fpext float %50 to double
%52 = fmul double 2.500000e-01, %51
%53 = fptrunc double %52 to float
%54 = load i32, ptr %12, align 4
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [22 x float], ptr %11, i64 0, i64 %56
store float %53, ptr %57, align 4
br label %58
58: ; preds = %46
%59 = load i32, ptr %12, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %12, align 4
br label %14, !llvm.loop !6
61: ; preds = %14
call void @nrerror(ptr noundef @.str)
store float 0.000000e+00, ptr %4, align 4
br label %62
62: ; preds = %61, %43
%63 = load float, ptr %4, align 4
ret float %63
}
declare float @trapzd(ptr noundef, float noundef, float noundef, i32 noundef) #1
declare void @polint(ptr noundef, ptr noundef, i32 noundef, float noundef, ptr noundef, ptr noundef) #1
declare double @fabs(float noundef) #1
declare void @nrerror(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/tmpzt5u3ntd.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 [32 x i8] c"Too many steps in routine qromb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @qromb(ptr noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca [21 x float], align 16
%11 = alloca [22 x float], align 16
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store float %1, ptr %6, align 4
store float %2, ptr %7, align 4
%13 = getelementptr inbounds [22 x float], ptr %11, i64 0, i64 1
store float 1.000000e+00, ptr %13, align 4
store i32 1, ptr %12, align 4
%14 = load i32, ptr %12, align 4
%15 = icmp sle i32 %14, 20
br i1 %15, label %.lr.ph, label %62
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %57
%17 = load ptr, ptr %5, align 8
%18 = load float, ptr %6, align 4
%19 = load float, ptr %7, align 4
%20 = load i32, ptr %12, align 4
%21 = call float @trapzd(ptr noundef %17, float noundef %18, float noundef %19, i32 noundef %20)
%22 = load i32, ptr %12, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [21 x float], ptr %10, i64 0, i64 %23
store float %21, ptr %24, align 4
%25 = load i32, ptr %12, align 4
%26 = icmp sge i32 %25, 5
br i1 %26, label %27, label %45
27: ; preds = %16
%28 = load i32, ptr %12, align 4
%29 = sub nsw i32 %28, 5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [22 x float], ptr %11, i64 0, i64 %30
%32 = load i32, ptr %12, align 4
%33 = sub nsw i32 %32, 5
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [21 x float], ptr %10, i64 0, i64 %34
call void @polint(ptr noundef %31, ptr noundef %35, i32 noundef 5, float noundef 0.000000e+00, ptr noundef %8, ptr noundef %9)
%36 = load float, ptr %9, align 4
%37 = call double @fabs(float noundef %36)
%38 = load float, ptr %8, align 4
%39 = call double @fabs(float noundef %38)
%40 = fmul double 0x3EB0C6F7A0B5ED8D, %39
%41 = fcmp ole double %37, %40
br i1 %41, label %42, label %44
42: ; preds = %27
%43 = load float, ptr %8, align 4
store float %43, ptr %4, align 4
br label %63
44: ; preds = %27
br label %45
45: ; preds = %44, %16
%46 = load i32, ptr %12, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [22 x float], ptr %11, i64 0, i64 %47
%49 = load float, ptr %48, align 4
%50 = fpext float %49 to double
%51 = fmul double 2.500000e-01, %50
%52 = fptrunc double %51 to float
%53 = load i32, ptr %12, align 4
%54 = add nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [22 x float], ptr %11, i64 0, i64 %55
store float %52, ptr %56, align 4
br label %57
57: ; preds = %45
%58 = load i32, ptr %12, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %12, align 4
%60 = load i32, ptr %12, align 4
%61 = icmp sle i32 %60, 20
br i1 %61, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %62
62: ; preds = %._crit_edge, %3
call void @nrerror(ptr noundef @.str)
store float 0.000000e+00, ptr %4, align 4
br label %63
63: ; preds = %62, %42
%64 = load float, ptr %4, align 4
ret float %64
}
declare float @trapzd(ptr noundef, float noundef, float noundef, i32 noundef) #1
declare void @polint(ptr noundef, ptr noundef, i32 noundef, float noundef, ptr noundef, ptr noundef) #1
declare double @fabs(float noundef) #1
declare void @nrerror(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/tmpzplfff4c.c'
source_filename = "/tmp/tmpzplfff4c.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 [21 x i8] c"print INT success!\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"print LONG success!\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"printf FLOAT success!\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"printf DOUBLE success!\0A\0A\00", align 1
@__const.main.array = private unnamed_addr constant [10 x i32] [i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 1234], align 16
@.str.4 = private unnamed_addr constant [24 x i8] c"printf ARRAY success!\0A\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
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca float, align 4
%5 = alloca double, align 8
%6 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i32 305419896, ptr %2, align 4
%7 = call i32 @print_bit(ptr noundef %2, i32 noundef 4)
%8 = icmp ne i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str)
br label %11
11: ; preds = %9, %0
store i64 2271560481, ptr %3, align 8
%12 = call i32 @print_bit(ptr noundef %3, i32 noundef 8)
%13 = icmp ne i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(ptr noundef @.str.1)
br label %16
16: ; preds = %14, %11
store float 0x3FBF9ADD20000000, ptr %4, align 4
%17 = call i32 @print_bit(ptr noundef %4, i32 noundef 4)
%18 = icmp ne i32 %17, -1
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(ptr noundef @.str.2)
br label %21
21: ; preds = %19, %16
store double 0x3FBF9ADD1091C895, ptr %5, align 8
%22 = call i32 @print_bit(ptr noundef %5, i32 noundef 8)
%23 = icmp ne i32 %22, -1
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(ptr noundef @.str.3)
br label %26
26: ; preds = %24, %21
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.array, i64 40, i1 false)
%27 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%28 = call i32 @print_bit(ptr noundef %27, i32 noundef 40)
%29 = icmp ne i32 %28, -1
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @printf(ptr noundef @.str.4)
br label %32
32: ; preds = %30, %26
%33 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %33
}
declare i32 @print_bit(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; 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) #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!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/tmpzplfff4c.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 [21 x i8] c"print INT success!\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"print LONG success!\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"printf FLOAT success!\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"printf DOUBLE success!\0A\0A\00", align 1
@__const.main.array = private unnamed_addr constant [10 x i32] [i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 1234], align 16
@.str.4 = private unnamed_addr constant [24 x i8] c"printf ARRAY success!\0A\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
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca float, align 4
%5 = alloca double, align 8
%6 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i32 305419896, ptr %2, align 4
%7 = call i32 @print_bit(ptr noundef %2, i32 noundef 4)
%8 = icmp ne i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str)
br label %11
11: ; preds = %9, %0
store i64 2271560481, ptr %3, align 8
%12 = call i32 @print_bit(ptr noundef %3, i32 noundef 8)
%13 = icmp ne i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(ptr noundef @.str.1)
br label %16
16: ; preds = %14, %11
store float 0x3FBF9ADD20000000, ptr %4, align 4
%17 = call i32 @print_bit(ptr noundef %4, i32 noundef 4)
%18 = icmp ne i32 %17, -1
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(ptr noundef @.str.2)
br label %21
21: ; preds = %19, %16
store double 0x3FBF9ADD1091C895, ptr %5, align 8
%22 = call i32 @print_bit(ptr noundef %5, i32 noundef 8)
%23 = icmp ne i32 %22, -1
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(ptr noundef @.str.3)
br label %26
26: ; preds = %24, %21
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.array, i64 40, i1 false)
%27 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%28 = call i32 @print_bit(ptr noundef %27, i32 noundef 40)
%29 = icmp ne i32 %28, -1
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @printf(ptr noundef @.str.4)
br label %32
32: ; preds = %30, %26
%33 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %33
}
declare i32 @print_bit(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; 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) #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!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/tmp9pi4dugt.c'
source_filename = "/tmp/tmp9pi4dugt.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/tmp9pi4dugt.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/tmp7l6ows8o.c'
source_filename = "/tmp/tmp7l6ows8o.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.tm = type { i32 }
@.str = private unnamed_addr constant [6 x i8] c"11:14\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%R\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%H:%M\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"OK\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"FAILED\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"09:41:53\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%T\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"%H:%M:%S\00", align 1
@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 %struct.tm, align 4
%7 = alloca [255 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 4)
%9 = call i32 @strptime(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %6)
%10 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @strftime(ptr noundef %10, i32 noundef 255, ptr noundef @.str.2, ptr noundef %6)
%12 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%13 = call i32 @puts(ptr noundef %12)
%14 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
%18 = zext i1 %17 to i64
%19 = select i1 %17, ptr @.str.3, ptr @.str.4
%20 = call i32 @puts(ptr noundef %19)
%21 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 4)
%22 = call i32 @strptime(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %6)
%23 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%24 = call i32 @strftime(ptr noundef %23, i32 noundef 255, ptr noundef @.str.7, ptr noundef %6)
%25 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%26 = call i32 @puts(ptr noundef %25)
%27 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @strcmp(ptr noundef %27, ptr noundef @.str.5)
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
%31 = zext i1 %30 to i64
%32 = select i1 %30, ptr @.str.3, ptr @.str.4
%33 = call i32 @puts(ptr noundef %32)
%34 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %34
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strptime(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @puts(ptr 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7l6ows8o.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.tm = type { i32 }
@.str = private unnamed_addr constant [6 x i8] c"11:14\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%R\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%H:%M\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"OK\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"FAILED\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"09:41:53\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%T\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"%H:%M:%S\00", align 1
@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 %struct.tm, align 4
%7 = alloca [255 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 4)
%9 = call i32 @strptime(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %6)
%10 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @strftime(ptr noundef %10, i32 noundef 255, ptr noundef @.str.2, ptr noundef %6)
%12 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%13 = call i32 @puts(ptr noundef %12)
%14 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
%18 = zext i1 %17 to i64
%19 = select i1 %17, ptr @.str.3, ptr @.str.4
%20 = call i32 @puts(ptr noundef %19)
%21 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 4)
%22 = call i32 @strptime(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %6)
%23 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%24 = call i32 @strftime(ptr noundef %23, i32 noundef 255, ptr noundef @.str.7, ptr noundef %6)
%25 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%26 = call i32 @puts(ptr noundef %25)
%27 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @strcmp(ptr noundef %27, ptr noundef @.str.5)
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
%31 = zext i1 %30 to i64
%32 = select i1 %30, ptr @.str.3, ptr @.str.4
%33 = call i32 @puts(ptr noundef %32)
%34 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %34
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strptime(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @puts(ptr 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"}
|
; ModuleID = '/tmp/tmp1jjzmqoc.c'
source_filename = "/tmp/tmp1jjzmqoc.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"if (%s)\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"else\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_cond(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 (ptr, ...) @output(ptr noundef @.str, ptr noundef %7)
%9 = call i32 (...) @block_begin()
%10 = load ptr, ptr %5, align 8
%11 = call i32 (ptr, ...) @output(ptr noundef %10)
%12 = call i32 (...) @block_end()
%13 = call i32 (ptr, ...) @output(ptr noundef @.str.1)
%14 = call i32 (...) @block_begin()
%15 = load ptr, ptr %6, align 8
%16 = call i32 (ptr, ...) @output(ptr noundef %15)
%17 = call i32 (...) @block_end()
ret void
}
declare i32 @output(ptr noundef, ...) #1
declare i32 @block_begin(...) #1
declare i32 @block_end(...) #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/tmp1jjzmqoc.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"if (%s)\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"else\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_cond(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 (ptr, ...) @output(ptr noundef @.str, ptr noundef %7)
%9 = call i32 (...) @block_begin()
%10 = load ptr, ptr %5, align 8
%11 = call i32 (ptr, ...) @output(ptr noundef %10)
%12 = call i32 (...) @block_end()
%13 = call i32 (ptr, ...) @output(ptr noundef @.str.1)
%14 = call i32 (...) @block_begin()
%15 = load ptr, ptr %6, align 8
%16 = call i32 (ptr, ...) @output(ptr noundef %15)
%17 = call i32 (...) @block_end()
ret void
}
declare i32 @output(ptr noundef, ...) #1
declare i32 @block_begin(...) #1
declare i32 @block_end(...) #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/tmp8c707ig8.c'
source_filename = "/tmp/tmp8c707ig8.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 @nio_vram_grid_putc(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4, i8 noundef zeroext %5, i8 noundef zeroext %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i8 %4, ptr %12, align 1
store i8 %5, ptr %13, align 1
store i8 %6, ptr %14, align 1
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %10, align 4
%17 = mul nsw i32 %16, 6
%18 = add nsw i32 %15, %17
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %11, align 4
%21 = mul nsw i32 %20, 8
%22 = add nsw i32 %19, %21
%23 = load i8, ptr %12, align 1
%24 = load i8, ptr %13, align 1
%25 = load i8, ptr %14, align 1
%26 = call i32 @nio_vram_pixel_putc(i32 noundef %18, i32 noundef %22, i8 noundef signext %23, i8 noundef zeroext %24, i8 noundef zeroext %25)
ret void
}
declare i32 @nio_vram_pixel_putc(i32 noundef, i32 noundef, i8 noundef signext, i8 noundef zeroext, i8 noundef zeroext) #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/tmp8c707ig8.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 @nio_vram_grid_putc(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4, i8 noundef zeroext %5, i8 noundef zeroext %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i8 %4, ptr %12, align 1
store i8 %5, ptr %13, align 1
store i8 %6, ptr %14, align 1
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %10, align 4
%17 = mul nsw i32 %16, 6
%18 = add nsw i32 %15, %17
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %11, align 4
%21 = mul nsw i32 %20, 8
%22 = add nsw i32 %19, %21
%23 = load i8, ptr %12, align 1
%24 = load i8, ptr %13, align 1
%25 = load i8, ptr %14, align 1
%26 = call i32 @nio_vram_pixel_putc(i32 noundef %18, i32 noundef %22, i8 noundef signext %23, i8 noundef zeroext %24, i8 noundef zeroext %25)
ret void
}
declare i32 @nio_vram_pixel_putc(i32 noundef, i32 noundef, i8 noundef signext, i8 noundef zeroext, i8 noundef zeroext) #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/tmpttpgtcob.c'
source_filename = "/tmp/tmpttpgtcob.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 @clock() #0 {
ret i32 0
}
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/tmpttpgtcob.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 @clock() #0 {
ret i32 0
}
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/tmpzof4q0s3.c'
source_filename = "/tmp/tmpzof4q0s3.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/tmpzof4q0s3.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/tmpfr221ixw.c'
source_filename = "/tmp/tmpfr221ixw.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 [16 x i8] c"__acle_se_func\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__acle_se_func() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @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/tmpfr221ixw.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 [16 x i8] c"__acle_se_func\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__acle_se_func() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @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/tmpa3wgpt_q.c'
source_filename = "/tmp/tmpa3wgpt_q.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"
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"size = %d\0A\00", align 1
@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
%7 = alloca [255 x i8], align 16
%8 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %30
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 zeroext i8 @strlen(ptr noundef %15)
store i8 %16, ptr %8, align 1
%17 = load i8, ptr %8, align 1
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %18, 254
br i1 %19, label %20, label %29
20: ; preds = %12
%21 = load i8, ptr %8, align 1
%22 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %21)
%23 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @strcpy(ptr noundef %23, ptr noundef %26)
%28 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %28, ptr %6, align 4
br label %29
29: ; preds = %20, %12
br label %30
30: ; preds = %29, %2
%31 = load i32, ptr %6, align 4
ret i32 %31
}
declare zeroext i8 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef zeroext) #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/tmpa3wgpt_q.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"
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"size = %d\0A\00", align 1
@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
%7 = alloca [255 x i8], align 16
%8 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %30
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 zeroext i8 @strlen(ptr noundef %15)
store i8 %16, ptr %8, align 1
%17 = load i8, ptr %8, align 1
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %18, 254
br i1 %19, label %20, label %29
20: ; preds = %12
%21 = load i8, ptr %8, align 1
%22 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %21)
%23 = getelementptr inbounds [255 x i8], ptr %7, i64 0, i64 0
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @strcpy(ptr noundef %23, ptr noundef %26)
%28 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %28, ptr %6, align 4
br label %29
29: ; preds = %20, %12
br label %30
30: ; preds = %29, %2
%31 = load i32, ptr %6, align 4
ret i32 %31
}
declare zeroext i8 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef zeroext) #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/tmp_6ibsrej.c'
source_filename = "/tmp/tmp_6ibsrej.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 [34 x i8] c" ____________________ \0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c" / __ ___ ___ \\ \0A\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c" | | \\ / \\ / \\ | \0A\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c" | |__/ | | | | | \0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c" | | \\ | | | | | \0A\00", align 1
@.str.5 = private unnamed_addr constant [50 x i8] c" | |__/ \\___/ \\___/ | \0A\00", align 1
@.str.6 = private unnamed_addr constant [49 x i8] c" \\_______ ______/ \0A\00", align 1
@.str.7 = private unnamed_addr constant [40 x i8] c" \\ / \0A\00", align 1
@.str.8 = private unnamed_addr constant [40 x i8] c" \\ / \0A\00", align 1
@.str.9 = private unnamed_addr constant [40 x i8] c" \\/ \0A\00", align 1
@.str.10 = private unnamed_addr constant [42 x i8] c" \0A\00", align 1
@.str.11 = private unnamed_addr constant [40 x i8] c" |\\ |\\ \0A\00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c" | \\__| \\ \0A\00", align 1
@.str.13 = private unnamed_addr constant [41 x i8] c" / x x \\ \0A\00", align 1
@.str.14 = private unnamed_addr constant [40 x i8] c" \\ >Y< \\ \0A\00", align 1
@.str.15 = private unnamed_addr constant [40 x i8] c" \\__^ \\ \0A\00", align 1
@.str.16 = private unnamed_addr constant [41 x i8] c" ___/ ___ \\ \0A\00", align 1
@.str.17 = private unnamed_addr constant [39 x i8] c" ((( \\ ((( \\ \\ \0A\00", align 1
@.str.18 = private unnamed_addr constant [37 x i8] c" \\_\\ \\_\\ \\ \0A\00", align 1
@.str.19 = private unnamed_addr constant [40 x i8] c" \\ \\ \0A\00", align 1
@.str.20 = private unnamed_addr constant [42 x i8] c" ~~~~~ / \0A\00", align 1
@.str.21 = private unnamed_addr constant [42 x i8] c" / / \0A\00", align 1
@.str.22 = private unnamed_addr constant [41 x i8] c" \\ / \0A\00", align 1
@.str.23 = private unnamed_addr constant [42 x i8] c" / / \0A\00", align 1
@.str.24 = private unnamed_addr constant [41 x i8] c" \\/ \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @boo() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.11)
%13 = call i32 @printf(ptr noundef @.str.12)
%14 = call i32 @printf(ptr noundef @.str.13)
%15 = call i32 @printf(ptr noundef @.str.14)
%16 = call i32 @printf(ptr noundef @.str.15)
%17 = call i32 @printf(ptr noundef @.str.16)
%18 = call i32 @printf(ptr noundef @.str.17)
%19 = call i32 @printf(ptr noundef @.str.18)
%20 = call i32 @printf(ptr noundef @.str.19)
%21 = call i32 @printf(ptr noundef @.str.20)
%22 = call i32 @printf(ptr noundef @.str.21)
%23 = call i32 @printf(ptr noundef @.str.22)
%24 = call i32 @printf(ptr noundef @.str.23)
%25 = call i32 @printf(ptr noundef @.str.24)
ret void
}
declare i32 @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/tmp_6ibsrej.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 [34 x i8] c" ____________________ \0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c" / __ ___ ___ \\ \0A\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c" | | \\ / \\ / \\ | \0A\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c" | |__/ | | | | | \0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c" | | \\ | | | | | \0A\00", align 1
@.str.5 = private unnamed_addr constant [50 x i8] c" | |__/ \\___/ \\___/ | \0A\00", align 1
@.str.6 = private unnamed_addr constant [49 x i8] c" \\_______ ______/ \0A\00", align 1
@.str.7 = private unnamed_addr constant [40 x i8] c" \\ / \0A\00", align 1
@.str.8 = private unnamed_addr constant [40 x i8] c" \\ / \0A\00", align 1
@.str.9 = private unnamed_addr constant [40 x i8] c" \\/ \0A\00", align 1
@.str.10 = private unnamed_addr constant [42 x i8] c" \0A\00", align 1
@.str.11 = private unnamed_addr constant [40 x i8] c" |\\ |\\ \0A\00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c" | \\__| \\ \0A\00", align 1
@.str.13 = private unnamed_addr constant [41 x i8] c" / x x \\ \0A\00", align 1
@.str.14 = private unnamed_addr constant [40 x i8] c" \\ >Y< \\ \0A\00", align 1
@.str.15 = private unnamed_addr constant [40 x i8] c" \\__^ \\ \0A\00", align 1
@.str.16 = private unnamed_addr constant [41 x i8] c" ___/ ___ \\ \0A\00", align 1
@.str.17 = private unnamed_addr constant [39 x i8] c" ((( \\ ((( \\ \\ \0A\00", align 1
@.str.18 = private unnamed_addr constant [37 x i8] c" \\_\\ \\_\\ \\ \0A\00", align 1
@.str.19 = private unnamed_addr constant [40 x i8] c" \\ \\ \0A\00", align 1
@.str.20 = private unnamed_addr constant [42 x i8] c" ~~~~~ / \0A\00", align 1
@.str.21 = private unnamed_addr constant [42 x i8] c" / / \0A\00", align 1
@.str.22 = private unnamed_addr constant [41 x i8] c" \\ / \0A\00", align 1
@.str.23 = private unnamed_addr constant [42 x i8] c" / / \0A\00", align 1
@.str.24 = private unnamed_addr constant [41 x i8] c" \\/ \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @boo() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.11)
%13 = call i32 @printf(ptr noundef @.str.12)
%14 = call i32 @printf(ptr noundef @.str.13)
%15 = call i32 @printf(ptr noundef @.str.14)
%16 = call i32 @printf(ptr noundef @.str.15)
%17 = call i32 @printf(ptr noundef @.str.16)
%18 = call i32 @printf(ptr noundef @.str.17)
%19 = call i32 @printf(ptr noundef @.str.18)
%20 = call i32 @printf(ptr noundef @.str.19)
%21 = call i32 @printf(ptr noundef @.str.20)
%22 = call i32 @printf(ptr noundef @.str.21)
%23 = call i32 @printf(ptr noundef @.str.22)
%24 = call i32 @printf(ptr noundef @.str.23)
%25 = call i32 @printf(ptr noundef @.str.24)
ret void
}
declare i32 @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/tmp_zo8f123.c'
source_filename = "/tmp/tmp_zo8f123.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/tmp_zo8f123.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/tmp056p9io1.c'
source_filename = "/tmp/tmp056p9io1.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"
@MD5_DIGEST_LENGTH = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"Usage: %s <input>\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s%d\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"Reached maximum length. Aborting.\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%6x\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"The secret key is: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"The MD5 hash is: %s\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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca [64 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca [32 x i8], align 16
%13 = 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
%14 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%15 = zext i32 %14 to i64
%16 = call ptr @llvm.stacksave()
store ptr %16, ptr %10, align 8
%17 = alloca i8, i64 %15, align 16
store i64 %15, ptr %11, align 8
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %18, 2
br i1 %19, label %20, label %26
20: ; preds = %2
%21 = load i32, ptr @stdout, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str, ptr noundef %24)
store i32 0, ptr %3, align 4
store i32 1, ptr %13, align 4
br label %65
26: ; preds = %2
store i32 0, ptr %6, align 4
br label %27
27: ; preds = %61, %26
%28 = load i32, ptr %6, align 4
%29 = icmp ult i32 %28, -1
br i1 %29, label %30, label %64
30: ; preds = %27
%31 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %6, align 4
%36 = call i64 @snprintf(ptr noundef %31, i32 noundef 64, ptr noundef @.str.1, ptr noundef %34, i32 noundef %35)
store i64 %36, ptr %8, align 8
%37 = load i64, ptr %8, align 8
%38 = icmp ugt i64 %37, 64
br i1 %38, label %39, label %42
39: ; preds = %30
%40 = load i32, ptr @stdout, align 4
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
store i32 1, ptr %13, align 4
br label %65
42: ; preds = %30
%43 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%44 = load i64, ptr %8, align 8
%45 = call i32 @MD5(ptr noundef %43, i64 noundef %44, ptr noundef %17)
%46 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%47 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%48 = call i32 @bytes_to_str(ptr noundef %46, ptr noundef %17, i32 noundef %47)
%49 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%50 = call i32 @sscanf(ptr noundef %49, ptr noundef @.str.3, ptr noundef %7)
%51 = load i32, ptr %7, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %60
53: ; preds = %42
%54 = load i32, ptr @stdout, align 4
%55 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.4, ptr noundef %55)
%57 = load i32, ptr @stdout, align 4
%58 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%59 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %57, ptr noundef @.str.5, ptr noundef %58)
store i32 0, ptr %3, align 4
store i32 1, ptr %13, align 4
br label %65
60: ; preds = %42
br label %61
61: ; preds = %60
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
br label %27, !llvm.loop !6
64: ; preds = %27
store i32 0, ptr %3, align 4
store i32 1, ptr %13, align 4
br label %65
65: ; preds = %64, %53, %39, %20
%66 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %66)
%67 = load i32, ptr %3, align 4
ret i32 %67
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i64 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @MD5(ptr noundef, i64 noundef, ptr noundef) #2
declare i32 @bytes_to_str(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @sscanf(ptr noundef, ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp056p9io1.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"
@MD5_DIGEST_LENGTH = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"Usage: %s <input>\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s%d\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"Reached maximum length. Aborting.\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%6x\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"The secret key is: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"The MD5 hash is: %s\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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca [64 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca [32 x i8], align 16
%13 = 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
%14 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%15 = zext i32 %14 to i64
%16 = call ptr @llvm.stacksave()
store ptr %16, ptr %10, align 8
%17 = alloca i8, i64 %15, align 16
store i64 %15, ptr %11, align 8
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %18, 2
br i1 %19, label %20, label %26
20: ; preds = %2
%21 = load i32, ptr @stdout, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str, ptr noundef %24)
store i32 0, ptr %3, align 4
store i32 1, ptr %13, align 4
br label %66
26: ; preds = %2
store i32 0, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp ult i32 %27, -1
br i1 %28, label %.lr.ph, label %65
.lr.ph: ; preds = %26
br label %29
29: ; preds = %.lr.ph, %60
%30 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = load i32, ptr %6, align 4
%35 = call i64 @snprintf(ptr noundef %30, i32 noundef 64, ptr noundef @.str.1, ptr noundef %33, i32 noundef %34)
store i64 %35, ptr %8, align 8
%36 = load i64, ptr %8, align 8
%37 = icmp ugt i64 %36, 64
br i1 %37, label %38, label %41
38: ; preds = %29
%39 = load i32, ptr @stdout, align 4
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %39, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
store i32 1, ptr %13, align 4
br label %66
41: ; preds = %29
%42 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%43 = load i64, ptr %8, align 8
%44 = call i32 @MD5(ptr noundef %42, i64 noundef %43, ptr noundef %17)
%45 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%46 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%47 = call i32 @bytes_to_str(ptr noundef %45, ptr noundef %17, i32 noundef %46)
%48 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%49 = call i32 @sscanf(ptr noundef %48, ptr noundef @.str.3, ptr noundef %7)
%50 = load i32, ptr %7, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %59
52: ; preds = %41
%53 = load i32, ptr @stdout, align 4
%54 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %53, ptr noundef @.str.4, ptr noundef %54)
%56 = load i32, ptr @stdout, align 4
%57 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%58 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %56, ptr noundef @.str.5, ptr noundef %57)
store i32 0, ptr %3, align 4
store i32 1, ptr %13, align 4
br label %66
59: ; preds = %41
br label %60
60: ; preds = %59
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %6, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp ult i32 %63, -1
br i1 %64, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %65
65: ; preds = %._crit_edge, %26
store i32 0, ptr %3, align 4
store i32 1, ptr %13, align 4
br label %66
66: ; preds = %65, %52, %38, %20
%67 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %67)
%68 = load i32, ptr %3, align 4
ret i32 %68
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i64 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @MD5(ptr noundef, i64 noundef, ptr noundef) #2
declare i32 @bytes_to_str(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @sscanf(ptr noundef, ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjlicdgrj.c'
source_filename = "/tmp/tmpjlicdgrj.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 @movimentoDoRobo(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
store ptr %0, ptr %2, align 8
store i32 -1, ptr %3, align 4
store i32 -2, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %37, %1
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 9
br i1 %9, label %10, label %40
10: ; preds = %7
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %36
17: ; preds = %10
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
store i32 1, ptr %21, align 4
%22 = load ptr, ptr %2, align 8
%23 = call i32 @minimax(ptr noundef %22, i32 noundef -1)
%24 = sub nsw i32 0, %23
store i32 %24, ptr %6, align 4
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
store i32 0, ptr %28, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %35
32: ; preds = %17
%33 = load i32, ptr %6, align 4
store i32 %33, ptr %4, align 4
%34 = load i32, ptr %5, align 4
store i32 %34, ptr %3, align 4
br label %35
35: ; preds = %32, %17
br label %36
36: ; preds = %35, %10
br label %37
37: ; preds = %36
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
br label %7, !llvm.loop !6
40: ; preds = %7
%41 = load ptr, ptr %2, align 8
%42 = load i32, ptr %3, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 1, ptr %44, align 4
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @minimax(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/tmpjlicdgrj.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 @movimentoDoRobo(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
store ptr %0, ptr %2, align 8
store i32 -1, ptr %3, align 4
store i32 -2, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 9
br i1 %8, label %.lr.ph, label %41
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %36
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %35
16: ; preds = %9
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
store i32 1, ptr %20, align 4
%21 = load ptr, ptr %2, align 8
%22 = call i32 @minimax(ptr noundef %21, i32 noundef -1)
%23 = sub nsw i32 0, %22
store i32 %23, ptr %6, align 4
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
store i32 0, ptr %27, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp sgt i32 %28, %29
br i1 %30, label %31, label %34
31: ; preds = %16
%32 = load i32, ptr %6, align 4
store i32 %32, ptr %4, align 4
%33 = load i32, ptr %5, align 4
store i32 %33, ptr %3, align 4
br label %34
34: ; preds = %31, %16
br label %35
35: ; preds = %34, %9
br label %36
36: ; preds = %35
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %39, 9
br i1 %40, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %41
41: ; preds = %._crit_edge, %1
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store i32 1, ptr %45, align 4
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @minimax(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/tmpvs3x9da8.c'
source_filename = "/tmp/tmpvs3x9da8.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 @ledInit() #0 {
%1 = load volatile i64, ptr inttoptr (i64 1073725536 to ptr), align 8
%2 = or i64 %1, 67108864
store volatile i64 %2, ptr inttoptr (i64 1073725536 to ptr), align 8
%3 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%4 = or i64 %3, 2
store volatile i64 %4, ptr inttoptr (i64 1073725568 to ptr), align 8
%5 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%6 = or i64 %5, 4
store volatile i64 %6, ptr inttoptr (i64 1073725568 to ptr), align 8
%7 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%8 = or i64 %7, 8
store volatile i64 %8, ptr inttoptr (i64 1073725568 to ptr), align 8
%9 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%10 = or i64 %9, 16
store volatile i64 %10, ptr inttoptr (i64 1073725568 to ptr), align 8
%11 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%12 = or i64 %11, 32
store volatile i64 %12, ptr inttoptr (i64 1073725568 to ptr), align 8
%13 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%14 = or i64 %13, 64
store volatile i64 %14, ptr inttoptr (i64 1073725568 to ptr), align 8
%15 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%16 = or i64 %15, 128
store volatile i64 %16, ptr inttoptr (i64 1073725568 to ptr), align 8
%17 = load volatile i64, ptr inttoptr (i64 1073725556 to ptr), align 8
%18 = and i64 %17, -67108865
store volatile i64 %18, ptr inttoptr (i64 1073725556 to ptr), align 8
%19 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%20 = and i64 %19, -3
store volatile i64 %20, ptr inttoptr (i64 1073725588 to ptr), align 8
%21 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%22 = and i64 %21, -5
store volatile i64 %22, ptr inttoptr (i64 1073725588 to ptr), align 8
%23 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%24 = and i64 %23, -9
store volatile i64 %24, ptr inttoptr (i64 1073725588 to ptr), align 8
%25 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%26 = and i64 %25, -17
store volatile i64 %26, ptr inttoptr (i64 1073725588 to ptr), align 8
%27 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%28 = and i64 %27, -33
store volatile i64 %28, ptr inttoptr (i64 1073725588 to ptr), align 8
%29 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%30 = and i64 %29, -65
store volatile i64 %30, ptr inttoptr (i64 1073725588 to ptr), align 8
%31 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%32 = and i64 %31, -129
store volatile i64 %32, ptr inttoptr (i64 1073725588 to ptr), align 8
%33 = call i32 @ms_sleep(i32 noundef 1000)
%34 = load volatile i64, ptr inttoptr (i64 1073725556 to ptr), align 8
%35 = or i64 %34, 67108864
store volatile i64 %35, ptr inttoptr (i64 1073725556 to ptr), align 8
%36 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%37 = or i64 %36, 254
store volatile i64 %37, ptr inttoptr (i64 1073725588 to ptr), align 8
ret void
}
declare i32 @ms_sleep(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/tmpvs3x9da8.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 @ledInit() #0 {
%1 = load volatile i64, ptr inttoptr (i64 1073725536 to ptr), align 8
%2 = or i64 %1, 67108864
store volatile i64 %2, ptr inttoptr (i64 1073725536 to ptr), align 8
%3 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%4 = or i64 %3, 2
store volatile i64 %4, ptr inttoptr (i64 1073725568 to ptr), align 8
%5 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%6 = or i64 %5, 4
store volatile i64 %6, ptr inttoptr (i64 1073725568 to ptr), align 8
%7 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%8 = or i64 %7, 8
store volatile i64 %8, ptr inttoptr (i64 1073725568 to ptr), align 8
%9 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%10 = or i64 %9, 16
store volatile i64 %10, ptr inttoptr (i64 1073725568 to ptr), align 8
%11 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%12 = or i64 %11, 32
store volatile i64 %12, ptr inttoptr (i64 1073725568 to ptr), align 8
%13 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%14 = or i64 %13, 64
store volatile i64 %14, ptr inttoptr (i64 1073725568 to ptr), align 8
%15 = load volatile i64, ptr inttoptr (i64 1073725568 to ptr), align 8
%16 = or i64 %15, 128
store volatile i64 %16, ptr inttoptr (i64 1073725568 to ptr), align 8
%17 = load volatile i64, ptr inttoptr (i64 1073725556 to ptr), align 8
%18 = and i64 %17, -67108865
store volatile i64 %18, ptr inttoptr (i64 1073725556 to ptr), align 8
%19 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%20 = and i64 %19, -3
store volatile i64 %20, ptr inttoptr (i64 1073725588 to ptr), align 8
%21 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%22 = and i64 %21, -5
store volatile i64 %22, ptr inttoptr (i64 1073725588 to ptr), align 8
%23 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%24 = and i64 %23, -9
store volatile i64 %24, ptr inttoptr (i64 1073725588 to ptr), align 8
%25 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%26 = and i64 %25, -17
store volatile i64 %26, ptr inttoptr (i64 1073725588 to ptr), align 8
%27 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%28 = and i64 %27, -33
store volatile i64 %28, ptr inttoptr (i64 1073725588 to ptr), align 8
%29 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%30 = and i64 %29, -65
store volatile i64 %30, ptr inttoptr (i64 1073725588 to ptr), align 8
%31 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%32 = and i64 %31, -129
store volatile i64 %32, ptr inttoptr (i64 1073725588 to ptr), align 8
%33 = call i32 @ms_sleep(i32 noundef 1000)
%34 = load volatile i64, ptr inttoptr (i64 1073725556 to ptr), align 8
%35 = or i64 %34, 67108864
store volatile i64 %35, ptr inttoptr (i64 1073725556 to ptr), align 8
%36 = load volatile i64, ptr inttoptr (i64 1073725588 to ptr), align 8
%37 = or i64 %36, 254
store volatile i64 %37, ptr inttoptr (i64 1073725588 to ptr), align 8
ret void
}
declare i32 @ms_sleep(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/tmp4xtvlq2a.c'
source_filename = "/tmp/tmp4xtvlq2a.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 @test_calls() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %15, %0
%4 = load i32, ptr %1, align 4
%5 = icmp slt i32 %4, 10
br i1 %5, label %6, label %18
6: ; preds = %3
store i32 0, ptr %2, align 4
br label %7
7: ; preds = %11, %6
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 15
br i1 %9, label %10, label %14
10: ; preds = %7
br label %11
11: ; preds = %10
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
br label %7, !llvm.loop !6
14: ; preds = %7
br label %15
15: ; preds = %14
%16 = load i32, ptr %1, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %1, align 4
br label %3, !llvm.loop !8
18: ; preds = %3
%19 = call i32 (...) @f()
ret void
}
declare i32 @f(...) #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/tmp4xtvlq2a.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 @test_calls() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp slt i32 %3, 10
br i1 %4, label %.lr.ph2, label %20
.lr.ph2: ; preds = %0
br label %5
5: ; preds = %.lr.ph2, %15
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 15
br i1 %7, label %.lr.ph, label %14
.lr.ph: ; preds = %5
br label %8
8: ; preds = %.lr.ph, %9
br label %9
9: ; preds = %8
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 15
br i1 %13, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %14
14: ; preds = %._crit_edge, %5
br label %15
15: ; preds = %14
%16 = load i32, ptr %1, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %1, align 4
%18 = load i32, ptr %1, align 4
%19 = icmp slt i32 %18, 10
br i1 %19, label %5, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %15
br label %20
20: ; preds = %._crit_edge3, %0
%21 = call i32 (...) @f()
ret void
}
declare i32 @f(...) #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/tmp24ktaxd1.c'
source_filename = "/tmp/tmp24ktaxd1.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
!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/tmp24ktaxd1.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
!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/tmptxo_1827.c'
source_filename = "/tmp/tmptxo_1827.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 @READ_ANGLE() #0 {
%1 = call double (...) @READ_CHAR()
%2 = fmul double %1, 1.406250e+00
%3 = fptrunc double %2 to float
ret float %3
}
declare double @READ_CHAR(...) #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/tmptxo_1827.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 @READ_ANGLE() #0 {
%1 = call double (...) @READ_CHAR()
%2 = fmul double %1, 1.406250e+00
%3 = fptrunc double %2 to float
ret float %3
}
declare double @READ_CHAR(...) #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/tmp0qsly_mx.c'
source_filename = "/tmp/tmp0qsly_mx.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 @f1() #0 {
%1 = alloca i32, align 4
%2 = call i32 @foo(i32 noundef 12)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @foo(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/tmp0qsly_mx.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 @f1() #0 {
%1 = alloca i32, align 4
%2 = call i32 @foo(i32 noundef 12)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @foo(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/tmph2gj8yuq.c'
source_filename = "/tmp/tmph2gj8yuq.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 @CANIntClear(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @_CANBaseValid(i32 noundef %5)
%7 = call i32 @ASSERT(i32 noundef %6)
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 32768
br i1 %9, label %18, label %10
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = icmp sge i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr %4, align 4
%15 = icmp sle i32 %14, 32
br label %16
16: ; preds = %13, %10
%17 = phi i1 [ false, %10 ], [ %15, %13 ]
br label %18
18: ; preds = %16, %2
%19 = phi i1 [ true, %2 ], [ %17, %16 ]
%20 = zext i1 %19 to i32
%21 = call i32 @ASSERT(i32 noundef %20)
%22 = load i32, ptr %4, align 4
%23 = icmp eq i32 %22, 32768
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 4
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to ptr
%29 = load volatile i32, ptr %28, align 4
br label %61
30: ; preds = %18
br label %31
31: ; preds = %39, %30
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 32
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %34 to ptr
%36 = load volatile i32, ptr %35, align 4
%37 = and i32 %36, 32768
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %31
br label %31, !llvm.loop !6
40: ; preds = %31
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 36
%43 = sext i32 %42 to i64
%44 = inttoptr i64 %43 to ptr
store volatile i32 8, ptr %44, align 4
%45 = load i32, ptr %4, align 4
%46 = and i32 %45, 63
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 32
%49 = sext i32 %48 to i64
%50 = inttoptr i64 %49 to ptr
store volatile i32 %46, ptr %50, align 4
br label %51
51: ; preds = %59, %40
%52 = load i32, ptr %3, align 4
%53 = add nsw i32 %52, 32
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to ptr
%56 = load volatile i32, ptr %55, align 4
%57 = and i32 %56, 32768
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %51
br label %51, !llvm.loop !8
60: ; preds = %51
br label %61
61: ; preds = %60, %24
ret void
}
declare i32 @ASSERT(i32 noundef) #1
declare i32 @_CANBaseValid(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/tmph2gj8yuq.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 @CANIntClear(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @_CANBaseValid(i32 noundef %5)
%7 = call i32 @ASSERT(i32 noundef %6)
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 32768
br i1 %9, label %18, label %10
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = icmp sge i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr %4, align 4
%15 = icmp sle i32 %14, 32
br label %16
16: ; preds = %13, %10
%17 = phi i1 [ false, %10 ], [ %15, %13 ]
br label %18
18: ; preds = %16, %2
%19 = phi i1 [ true, %2 ], [ %17, %16 ]
%20 = zext i1 %19 to i32
%21 = call i32 @ASSERT(i32 noundef %20)
%22 = load i32, ptr %4, align 4
%23 = icmp eq i32 %22, 32768
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 4
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to ptr
%29 = load volatile i32, ptr %28, align 4
br label %59
30: ; preds = %18
br label %31
31: ; preds = %31, %30
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 32
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %34 to ptr
%36 = load volatile i32, ptr %35, align 4
%37 = and i32 %36, 32768
%38 = icmp ne i32 %37, 0
br i1 %38, label %31, label %39, !llvm.loop !6
39: ; preds = %31
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 36
%42 = sext i32 %41 to i64
%43 = inttoptr i64 %42 to ptr
store volatile i32 8, ptr %43, align 4
%44 = load i32, ptr %4, align 4
%45 = and i32 %44, 63
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %46, 32
%48 = sext i32 %47 to i64
%49 = inttoptr i64 %48 to ptr
store volatile i32 %45, ptr %49, align 4
br label %50
50: ; preds = %50, %39
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %51, 32
%53 = sext i32 %52 to i64
%54 = inttoptr i64 %53 to ptr
%55 = load volatile i32, ptr %54, align 4
%56 = and i32 %55, 32768
%57 = icmp ne i32 %56, 0
br i1 %57, label %50, label %58, !llvm.loop !8
58: ; preds = %50
br label %59
59: ; preds = %58, %24
ret void
}
declare i32 @ASSERT(i32 noundef) #1
declare i32 @_CANBaseValid(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/tmps7rq68qb.c'
source_filename = "/tmp/tmps7rq68qb.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 @_dos_stat_console() #0 {
%1 = alloca i8, align 1
%2 = alloca i32, align 4
%3 = call i32 @putCMD(i32 noundef 128)
%4 = call signext i8 (...) @getPT()
store i8 %4, ptr %1, align 1
%5 = load i8, ptr %1, align 1
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 27
br i1 %7, label %8, label %17
8: ; preds = %0
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %13, %8
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 1000000
br i1 %11, label %12, label %16
12: ; preds = %9
br label %13
13: ; preds = %12
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
br label %9, !llvm.loop !6
16: ; preds = %9
store i8 0, ptr %1, align 1
br label %17
17: ; preds = %16, %0
%18 = load i8, ptr %1, align 1
%19 = sext i8 %18 to i32
ret i32 %19
}
declare i32 @putCMD(i32 noundef) #1
declare signext i8 @getPT(...) #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/tmps7rq68qb.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 @_dos_stat_console() #0 {
%1 = alloca i8, align 1
%2 = alloca i32, align 4
%3 = call i32 @putCMD(i32 noundef 128)
%4 = call signext i8 (...) @getPT()
store i8 %4, ptr %1, align 1
%5 = load i8, ptr %1, align 1
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 27
br i1 %7, label %8, label %18
8: ; preds = %0
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 1000000
br i1 %10, label %.lr.ph, label %17
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %12
br label %12
12: ; preds = %11
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %15, 1000000
br i1 %16, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %8
store i8 0, ptr %1, align 1
br label %18
18: ; preds = %17, %0
%19 = load i8, ptr %1, align 1
%20 = sext i8 %19 to i32
ret i32 %20
}
declare i32 @putCMD(i32 noundef) #1
declare signext i8 @getPT(...) #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/tmpbbku2f5p.c'
source_filename = "/tmp/tmpbbku2f5p.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/tmpbbku2f5p.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/tmpn9kzetb7.c'
source_filename = "/tmp/tmpn9kzetb7.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 i64 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %10, %1
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %5, i64 %6
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %4
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %3, align 8
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = load i64, ptr %3, align 8
ret i64 %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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn9kzetb7.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 i64 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i64, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %4, i64 %5
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 1
store i64 %11, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = load i64, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = load i8, ptr %14, align 1
%16 = icmp ne i8 %15, 0
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %17
17: ; preds = %._crit_edge, %1
%18 = load i64, ptr %3, align 8
ret i64 %18
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3f2bpcrw.c'
source_filename = "/tmp/tmp3f2bpcrw.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"Usage: ln old new\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"link %s %s: failed\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
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, 3
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i64 @link(ptr noundef %14, ptr noundef %17)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %11
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %23, ptr noundef %26)
br label %28
28: ; preds = %20, %11
%29 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @link(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" }
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/tmp3f2bpcrw.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"Usage: ln old new\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"link %s %s: failed\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
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, 3
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i64 @link(ptr noundef %14, ptr noundef %17)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %11
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %23, ptr noundef %26)
br label %28
28: ; preds = %20, %11
%29 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @link(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" }
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/tmpcizvko57.c'
source_filename = "/tmp/tmpcizvko57.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 [16 x i8] c"EAP: truncated\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"EAP: unknown request %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"EAP: unknown code %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @process_eap(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 i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
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 i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp ult i32 %14, 4
br i1 %15, label %16, label %19
16: ; preds = %4
%17 = load ptr, ptr %6, align 8
%18 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %17, ptr noundef @.str)
br label %155
19: ; preds = %4
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
store i32 %23, ptr %9, align 4
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 1
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
store i32 %27, ptr %10, align 4
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 2
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = shl i32 %32, 8
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 2
%36 = getelementptr inbounds i8, ptr %35, i64 1
%37 = load i8, ptr %36, align 1
%38 = zext i8 %37 to i32
%39 = shl i32 %38, 0
%40 = or i32 %33, %39
store i32 %40, ptr %11, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %11, align 4
%43 = icmp ult i32 %41, %42
br i1 %43, label %44, label %47
44: ; preds = %19
%45 = load ptr, ptr %6, align 8
%46 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %45, ptr noundef @.str)
br label %47
47: ; preds = %44, %19
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %11, align 4
%50 = icmp ugt i32 %48, %49
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = load i32, ptr %11, align 4
store i32 %52, ptr %8, align 4
br label %53
53: ; preds = %51, %47
%54 = load i32, ptr %12, align 4
%55 = add i32 %54, 4
store i32 %55, ptr %12, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp eq i32 %56, 1
br i1 %57, label %61, label %58
58: ; preds = %53
%59 = load i32, ptr %9, align 4
%60 = icmp eq i32 %59, 2
br i1 %60, label %61, label %78
61: ; preds = %58, %53
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %12, align 4
%64 = add i32 %63, 1
%65 = icmp ult i32 %62, %64
br i1 %65, label %66, label %69
66: ; preds = %61
%67 = load ptr, ptr %6, align 8
%68 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %67, ptr noundef @.str)
br label %69
69: ; preds = %66, %61
%70 = load ptr, ptr %7, align 8
%71 = load i32, ptr %12, align 4
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i8, ptr %73, align 1
%75 = zext i8 %74 to i32
store i32 %75, ptr %13, align 4
%76 = load i32, ptr %12, align 4
%77 = add i32 %76, 1
store i32 %77, ptr %12, align 4
br label %78
78: ; preds = %69, %58
%79 = load i32, ptr %9, align 4
switch i32 %79, label %151 [
i32 1, label %80
i32 2, label %110
i32 3, label %145
i32 4, label %145
]
80: ; preds = %78
%81 = load i32, ptr %13, align 4
switch i32 %81, label %105 [
i32 1, label %82
i32 17, label %93
]
82: ; preds = %80
%83 = load ptr, ptr %5, align 8
%84 = load ptr, ptr %6, align 8
%85 = load ptr, ptr %7, align 8
%86 = load i32, ptr %12, align 4
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %85, i64 %87
%89 = load i32, ptr %8, align 4
%90 = load i32, ptr %12, align 4
%91 = sub i32 %89, %90
%92 = call i32 @process_eap_identity(ptr noundef %83, ptr noundef %84, ptr noundef %88, i32 noundef %91)
br label %109
93: ; preds = %80
%94 = load ptr, ptr %5, align 8
%95 = load ptr, ptr %6, align 8
%96 = load ptr, ptr %7, align 8
%97 = load i32, ptr %12, align 4
%98 = zext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
%100 = load i32, ptr %8, align 4
%101 = load i32, ptr %12, align 4
%102 = sub i32 %100, %101
%103 = load i32, ptr %10, align 4
%104 = call i32 @process_leap_challenge_request(ptr noundef %94, ptr noundef %95, ptr noundef %99, i32 noundef %102, i32 noundef %103)
br label %109
105: ; preds = %80
%106 = load ptr, ptr %6, align 8
%107 = load i32, ptr %13, align 4
%108 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %106, ptr noundef @.str.1, i32 noundef %107)
br label %109
109: ; preds = %105, %93, %82
br label %155
110: ; preds = %78
%111 = load i32, ptr %13, align 4
switch i32 %111, label %135 [
i32 1, label %112
i32 17, label %123
]
112: ; preds = %110
%113 = load ptr, ptr %5, align 8
%114 = load ptr, ptr %6, align 8
%115 = load ptr, ptr %7, align 8
%116 = load i32, ptr %12, align 4
%117 = zext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %115, i64 %117
%119 = load i32, ptr %8, align 4
%120 = load i32, ptr %12, align 4
%121 = sub i32 %119, %120
%122 = call i32 @process_eap_identity(ptr noundef %113, ptr noundef %114, ptr noundef %118, i32 noundef %121)
br label %144
123: ; preds = %110
%124 = load ptr, ptr %5, align 8
%125 = load ptr, ptr %6, align 8
%126 = load ptr, ptr %7, align 8
%127 = load i32, ptr %12, align 4
%128 = zext i32 %127 to i64
%129 = getelementptr inbounds i8, ptr %126, i64 %128
%130 = load i32, ptr %8, align 4
%131 = load i32, ptr %12, align 4
%132 = sub i32 %130, %131
%133 = load i32, ptr %10, align 4
%134 = call i32 @process_leap_challenge_response(ptr noundef %124, ptr noundef %125, ptr noundef %129, i32 noundef %132, i32 noundef %133)
br label %144
135: ; preds = %110
%136 = load ptr, ptr %6, align 8
%137 = load ptr, ptr %7, align 8
%138 = load i32, ptr %12, align 4
%139 = zext i32 %138 to i64
%140 = getelementptr inbounds i8, ptr %137, i64 %139
%141 = load i8, ptr %140, align 1
%142 = zext i8 %141 to i32
%143 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %136, ptr noundef @.str.1, i32 noundef %142)
br label %144
144: ; preds = %135, %123, %112
br label %155
145: ; preds = %78, %78
%146 = load ptr, ptr %5, align 8
%147 = load ptr, ptr %6, align 8
%148 = load i32, ptr %10, align 4
%149 = load i32, ptr %9, align 4
%150 = call i32 @process_leap_success_failure(ptr noundef %146, ptr noundef %147, i32 noundef %148, i32 noundef %149)
br label %155
151: ; preds = %78
%152 = load ptr, ptr %6, align 8
%153 = load i32, ptr %9, align 4
%154 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %152, ptr noundef @.str.2, i32 noundef %153)
br label %155
155: ; preds = %16, %151, %145, %144, %109
ret void
}
declare i32 @FRAMERR(ptr noundef, ptr noundef, ...) #1
declare i32 @process_eap_identity(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @process_leap_challenge_request(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @process_leap_challenge_response(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @process_leap_success_failure(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcizvko57.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 [16 x i8] c"EAP: truncated\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"EAP: unknown request %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"EAP: unknown code %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @process_eap(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 i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
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 i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp ult i32 %14, 4
br i1 %15, label %16, label %19
16: ; preds = %4
%17 = load ptr, ptr %6, align 8
%18 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %17, ptr noundef @.str)
br label %155
19: ; preds = %4
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
store i32 %23, ptr %9, align 4
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 1
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
store i32 %27, ptr %10, align 4
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 2
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = shl i32 %32, 8
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 2
%36 = getelementptr inbounds i8, ptr %35, i64 1
%37 = load i8, ptr %36, align 1
%38 = zext i8 %37 to i32
%39 = shl i32 %38, 0
%40 = or i32 %33, %39
store i32 %40, ptr %11, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %11, align 4
%43 = icmp ult i32 %41, %42
br i1 %43, label %44, label %47
44: ; preds = %19
%45 = load ptr, ptr %6, align 8
%46 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %45, ptr noundef @.str)
br label %47
47: ; preds = %44, %19
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %11, align 4
%50 = icmp ugt i32 %48, %49
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = load i32, ptr %11, align 4
store i32 %52, ptr %8, align 4
br label %53
53: ; preds = %51, %47
%54 = load i32, ptr %12, align 4
%55 = add i32 %54, 4
store i32 %55, ptr %12, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp eq i32 %56, 1
br i1 %57, label %61, label %58
58: ; preds = %53
%59 = load i32, ptr %9, align 4
%60 = icmp eq i32 %59, 2
br i1 %60, label %61, label %78
61: ; preds = %58, %53
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %12, align 4
%64 = add i32 %63, 1
%65 = icmp ult i32 %62, %64
br i1 %65, label %66, label %69
66: ; preds = %61
%67 = load ptr, ptr %6, align 8
%68 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %67, ptr noundef @.str)
br label %69
69: ; preds = %66, %61
%70 = load ptr, ptr %7, align 8
%71 = load i32, ptr %12, align 4
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i8, ptr %73, align 1
%75 = zext i8 %74 to i32
store i32 %75, ptr %13, align 4
%76 = load i32, ptr %12, align 4
%77 = add i32 %76, 1
store i32 %77, ptr %12, align 4
br label %78
78: ; preds = %69, %58
%79 = load i32, ptr %9, align 4
switch i32 %79, label %151 [
i32 1, label %80
i32 2, label %110
i32 3, label %145
i32 4, label %145
]
80: ; preds = %78
%81 = load i32, ptr %13, align 4
switch i32 %81, label %105 [
i32 1, label %82
i32 17, label %93
]
82: ; preds = %80
%83 = load ptr, ptr %5, align 8
%84 = load ptr, ptr %6, align 8
%85 = load ptr, ptr %7, align 8
%86 = load i32, ptr %12, align 4
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %85, i64 %87
%89 = load i32, ptr %8, align 4
%90 = load i32, ptr %12, align 4
%91 = sub i32 %89, %90
%92 = call i32 @process_eap_identity(ptr noundef %83, ptr noundef %84, ptr noundef %88, i32 noundef %91)
br label %109
93: ; preds = %80
%94 = load ptr, ptr %5, align 8
%95 = load ptr, ptr %6, align 8
%96 = load ptr, ptr %7, align 8
%97 = load i32, ptr %12, align 4
%98 = zext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
%100 = load i32, ptr %8, align 4
%101 = load i32, ptr %12, align 4
%102 = sub i32 %100, %101
%103 = load i32, ptr %10, align 4
%104 = call i32 @process_leap_challenge_request(ptr noundef %94, ptr noundef %95, ptr noundef %99, i32 noundef %102, i32 noundef %103)
br label %109
105: ; preds = %80
%106 = load ptr, ptr %6, align 8
%107 = load i32, ptr %13, align 4
%108 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %106, ptr noundef @.str.1, i32 noundef %107)
br label %109
109: ; preds = %105, %93, %82
br label %155
110: ; preds = %78
%111 = load i32, ptr %13, align 4
switch i32 %111, label %135 [
i32 1, label %112
i32 17, label %123
]
112: ; preds = %110
%113 = load ptr, ptr %5, align 8
%114 = load ptr, ptr %6, align 8
%115 = load ptr, ptr %7, align 8
%116 = load i32, ptr %12, align 4
%117 = zext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %115, i64 %117
%119 = load i32, ptr %8, align 4
%120 = load i32, ptr %12, align 4
%121 = sub i32 %119, %120
%122 = call i32 @process_eap_identity(ptr noundef %113, ptr noundef %114, ptr noundef %118, i32 noundef %121)
br label %144
123: ; preds = %110
%124 = load ptr, ptr %5, align 8
%125 = load ptr, ptr %6, align 8
%126 = load ptr, ptr %7, align 8
%127 = load i32, ptr %12, align 4
%128 = zext i32 %127 to i64
%129 = getelementptr inbounds i8, ptr %126, i64 %128
%130 = load i32, ptr %8, align 4
%131 = load i32, ptr %12, align 4
%132 = sub i32 %130, %131
%133 = load i32, ptr %10, align 4
%134 = call i32 @process_leap_challenge_response(ptr noundef %124, ptr noundef %125, ptr noundef %129, i32 noundef %132, i32 noundef %133)
br label %144
135: ; preds = %110
%136 = load ptr, ptr %6, align 8
%137 = load ptr, ptr %7, align 8
%138 = load i32, ptr %12, align 4
%139 = zext i32 %138 to i64
%140 = getelementptr inbounds i8, ptr %137, i64 %139
%141 = load i8, ptr %140, align 1
%142 = zext i8 %141 to i32
%143 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %136, ptr noundef @.str.1, i32 noundef %142)
br label %144
144: ; preds = %135, %123, %112
br label %155
145: ; preds = %78, %78
%146 = load ptr, ptr %5, align 8
%147 = load ptr, ptr %6, align 8
%148 = load i32, ptr %10, align 4
%149 = load i32, ptr %9, align 4
%150 = call i32 @process_leap_success_failure(ptr noundef %146, ptr noundef %147, i32 noundef %148, i32 noundef %149)
br label %155
151: ; preds = %78
%152 = load ptr, ptr %6, align 8
%153 = load i32, ptr %9, align 4
%154 = call i32 (ptr, ptr, ...) @FRAMERR(ptr noundef %152, ptr noundef @.str.2, i32 noundef %153)
br label %155
155: ; preds = %151, %145, %144, %109, %16
ret void
}
declare i32 @FRAMERR(ptr noundef, ptr noundef, ...) #1
declare i32 @process_eap_identity(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @process_leap_challenge_request(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @process_leap_challenge_response(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @process_leap_success_failure(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"}
|
; ModuleID = '/tmp/tmpo1qw_zq4.c'
source_filename = "/tmp/tmpo1qw_zq4.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 @__strtok_r(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%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 ptr %2, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %3
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %5, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %14
store ptr null, ptr %4, align 8
br label %75
19: ; preds = %14, %3
br label %20
20: ; preds = %36, %19
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %5, align 8
%23 = load i8, ptr %21, align 1
%24 = sext i8 %23 to i32
store i32 %24, ptr %10, align 4
%25 = load ptr, ptr %6, align 8
store ptr %25, ptr %8, align 8
br label %26
26: ; preds = %37, %20
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
%29 = load i8, ptr %27, align 1
%30 = sext i8 %29 to i32
store i32 %30, ptr %11, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %26
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %11, align 4
%35 = icmp eq i32 %33, %34
br i1 %35, label %36, label %37
36: ; preds = %32
br label %20
37: ; preds = %32
br label %26, !llvm.loop !6
38: ; preds = %26
%39 = load i32, ptr %10, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = load ptr, ptr %7, align 8
store ptr null, ptr %42, align 8
store ptr null, ptr %4, align 8
br label %75
43: ; preds = %38
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 -1
store ptr %45, ptr %9, align 8
br label %46
46: ; preds = %74, %43
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %5, align 8
%49 = load i8, ptr %47, align 1
%50 = sext i8 %49 to i32
store i32 %50, ptr %10, align 4
%51 = load ptr, ptr %6, align 8
store ptr %51, ptr %8, align 8
br label %52
52: ; preds = %71, %46
%53 = load ptr, ptr %8, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %8, align 8
%55 = load i8, ptr %53, align 1
%56 = sext i8 %55 to i32
store i32 %56, ptr %11, align 4
%57 = load i32, ptr %10, align 4
%58 = icmp eq i32 %56, %57
br i1 %58, label %59, label %70
59: ; preds = %52
%60 = load i32, ptr %10, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %59
store ptr null, ptr %5, align 8
br label %66
63: ; preds = %59
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds i8, ptr %64, i64 -1
store i8 0, ptr %65, align 1
br label %66
66: ; preds = %63, %62
%67 = load ptr, ptr %5, align 8
%68 = load ptr, ptr %7, align 8
store ptr %67, ptr %68, align 8
%69 = load ptr, ptr %9, align 8
store ptr %69, ptr %4, align 8
br label %75
70: ; preds = %52
br label %71
71: ; preds = %70
%72 = load i32, ptr %11, align 4
%73 = icmp ne i32 %72, 0
br i1 %73, label %52, label %74, !llvm.loop !8
74: ; preds = %71
br label %46
75: ; preds = %66, %41, %18
%76 = load ptr, ptr %4, align 8
ret ptr %76
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1qw_zq4.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 @__strtok_r(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%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 ptr %2, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %3
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %5, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %14
store ptr null, ptr %4, align 8
br label %88
19: ; preds = %14, %3
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %5, align 8
%22 = load i8, ptr %20, align 1
%23 = sext i8 %22 to i32
store i32 %23, ptr %10, align 4
%24 = load ptr, ptr %6, align 8
store ptr %24, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %8, align 8
%27 = load i8, ptr %25, align 1
%28 = sext i8 %27 to i32
store i32 %28, ptr %11, align 4
%29 = icmp ne i32 %28, 0
br i1 %29, label %.lr.ph.lr.ph, label %._crit_edge
.lr.ph.lr.ph: ; preds = %19
br label %.lr.ph
.lr.ph: ; preds = %.lr.ph.lr.ph, %40
br label %36
30: ; preds = %36
%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 = sext i8 %33 to i32
store i32 %34, ptr %11, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %._crit_edge1, !llvm.loop !6
36: ; preds = %.lr.ph, %30
%37 = load i32, ptr %10, align 4
%38 = load i32, ptr %11, align 4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %30
40: ; preds = %36
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %5, align 8
%43 = load i8, ptr %41, align 1
%44 = sext i8 %43 to i32
store i32 %44, ptr %10, align 4
%45 = load ptr, ptr %6, align 8
store ptr %45, ptr %8, align 8
%46 = load ptr, ptr %8, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %8, align 8
%48 = load i8, ptr %46, align 1
%49 = sext i8 %48 to i32
store i32 %49, ptr %11, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %.lr.ph, label %.._crit_edge_crit_edge
.._crit_edge_crit_edge: ; preds = %40
br label %._crit_edge
._crit_edge: ; preds = %.._crit_edge_crit_edge, %19
br label %51
._crit_edge1: ; preds = %30
br label %51
51: ; preds = %._crit_edge1, %._crit_edge
%52 = load i32, ptr %10, align 4
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = load ptr, ptr %7, align 8
store ptr null, ptr %55, align 8
store ptr null, ptr %4, align 8
br label %88
56: ; preds = %51
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 -1
store ptr %58, ptr %9, align 8
br label %59
59: ; preds = %87, %56
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds i8, ptr %60, i32 1
store ptr %61, ptr %5, align 8
%62 = load i8, ptr %60, align 1
%63 = sext i8 %62 to i32
store i32 %63, ptr %10, align 4
%64 = load ptr, ptr %6, align 8
store ptr %64, ptr %8, align 8
br label %65
65: ; preds = %84, %59
%66 = load ptr, ptr %8, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %8, align 8
%68 = load i8, ptr %66, align 1
%69 = sext i8 %68 to i32
store i32 %69, ptr %11, align 4
%70 = load i32, ptr %10, align 4
%71 = icmp eq i32 %69, %70
br i1 %71, label %72, label %83
72: ; preds = %65
%73 = load i32, ptr %10, align 4
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %72
store ptr null, ptr %5, align 8
br label %79
76: ; preds = %72
%77 = load ptr, ptr %5, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 -1
store i8 0, ptr %78, align 1
br label %79
79: ; preds = %76, %75
%80 = load ptr, ptr %5, align 8
%81 = load ptr, ptr %7, align 8
store ptr %80, ptr %81, align 8
%82 = load ptr, ptr %9, align 8
store ptr %82, ptr %4, align 8
br label %88
83: ; preds = %65
br label %84
84: ; preds = %83
%85 = load i32, ptr %11, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %65, label %87, !llvm.loop !8
87: ; preds = %84
br label %59
88: ; preds = %79, %54, %18
%89 = load ptr, ptr %4, align 8
ret ptr %89
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsafw5v67.c'
source_filename = "/tmp/tmpsafw5v67.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 [14 x i8] c"calloc(): %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @alloc_samples_array(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %27, %1
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 48
br i1 %6, label %7, label %30
7: ; preds = %4
%8 = call i64 @calloc(i32 noundef 1000000, i32 noundef 8)
%9 = inttoptr i64 %8 to ptr
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds ptr, ptr %10, i64 %12
store ptr %9, ptr %13, align 8
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %26, label %20
20: ; preds = %7
%21 = load i32, ptr @stderr, align 4
%22 = load i32, ptr @errno, align 4
%23 = call ptr @strerror(i32 noundef %22)
%24 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str, ptr noundef %23)
%25 = call i32 @exit(i32 noundef 1) #3
unreachable
26: ; preds = %7
br label %27
27: ; preds = %26
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
br label %4, !llvm.loop !6
30: ; preds = %4
ret void
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsafw5v67.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 [14 x i8] c"calloc(): %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @alloc_samples_array(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 48
br i1 %5, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %26
%7 = call i64 @calloc(i32 noundef 1000000, i32 noundef 8)
%8 = inttoptr i64 %7 to ptr
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds ptr, ptr %9, i64 %11
store ptr %8, ptr %12, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %25, label %19
19: ; preds = %6
%20 = load i32, ptr @stderr, align 4
%21 = load i32, ptr @errno, align 4
%22 = call ptr @strerror(i32 noundef %21)
%23 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str, ptr noundef %22)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %6
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 = icmp slt i32 %29, 48
br i1 %30, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %1
ret void
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdxbzyo7c.c'
source_filename = "/tmp/tmpdxbzyo7c.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"%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\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
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %16
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i32, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str.1, i32 noundef %14)
br label %31
16: ; preds = %9, %0
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sgt i32 %17, %18
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
br label %30
27: ; preds = %20, %16
%28 = load i32, ptr %4, align 4
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28)
br label %30
30: ; preds = %27, %24
br label %31
31: ; preds = %30, %13
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare i32 @scanf(ptr noundef, ptr noundef, 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdxbzyo7c.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"%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\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
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %16
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i32, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str.1, i32 noundef %14)
br label %31
16: ; preds = %9, %0
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sgt i32 %17, %18
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
br label %30
27: ; preds = %20, %16
%28 = load i32, ptr %4, align 4
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28)
br label %30
30: ; preds = %27, %24
br label %31
31: ; preds = %30, %13
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare i32 @scanf(ptr noundef, ptr noundef, 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"}
|
; ModuleID = '/tmp/tmp9m3ft767.c'
source_filename = "/tmp/tmp9m3ft767.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
!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/tmp9m3ft767.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
!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/tmp0piil3rx.c'
source_filename = "/tmp/tmp0piil3rx.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"%d%c\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"an empty string is not an integer\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"\22%s\22 is not an integer\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c"\22%s\22 is outside the range of a signed integer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @string_to_int(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %4, align 8
br label %8
8: ; preds = %25, %1
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 32
br i1 %12, label %23, label %13
13: ; preds = %8
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 9
br i1 %17, label %23, label %18
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 10
br label %23
23: ; preds = %18, %13, %8
%24 = phi i1 [ true, %13 ], [ true, %8 ], [ %22, %18 ]
br i1 %24, label %25, label %28
25: ; preds = %23
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %4, align 8
br label %8, !llvm.loop !6
28: ; preds = %23
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28
br label %59
34: ; preds = %28
%35 = load ptr, ptr %4, align 8
%36 = call i32 @sscanf(ptr noundef %35, ptr noundef @.str, ptr noundef %5, ptr noundef %6)
%37 = icmp ne i32 %36, 1
br i1 %37, label %38, label %39
38: ; preds = %34
br label %61
39: ; preds = %34
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %48
42: ; preds = %39
%43 = load ptr, ptr %4, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 45
br i1 %46, label %47, label %48
47: ; preds = %42
br label %64
48: ; preds = %42, %39
%49 = load i32, ptr %5, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %48
%52 = load ptr, ptr %4, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 45
br i1 %55, label %56, label %57
56: ; preds = %51
br label %64
57: ; preds = %51, %48
%58 = load i32, ptr %5, align 4
store i32 %58, ptr %2, align 4
br label %67
59: ; preds = %33
%60 = call i32 (ptr, ...) @suicidef(ptr noundef @.str.1)
br label %61
61: ; preds = %59, %38
%62 = load ptr, ptr %3, align 8
%63 = call i32 (ptr, ...) @suicidef(ptr noundef @.str.2, ptr noundef %62)
br label %64
64: ; preds = %61, %56, %47
%65 = load ptr, ptr %3, align 8
%66 = call i32 (ptr, ...) @suicidef(ptr noundef @.str.3, ptr noundef %65)
store i32 0, ptr %2, align 4
br label %67
67: ; preds = %64, %57
%68 = load i32, ptr %2, align 4
ret i32 %68
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @suicidef(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/tmp0piil3rx.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"%d%c\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"an empty string is not an integer\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"\22%s\22 is not an integer\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c"\22%s\22 is outside the range of a signed integer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @string_to_int(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %4, align 8
br label %8
8: ; preds = %25, %1
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 32
br i1 %12, label %23, label %13
13: ; preds = %8
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 9
br i1 %17, label %23, label %18
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 10
br label %23
23: ; preds = %18, %13, %8
%24 = phi i1 [ true, %13 ], [ true, %8 ], [ %22, %18 ]
br i1 %24, label %25, label %28
25: ; preds = %23
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %4, align 8
br label %8, !llvm.loop !6
28: ; preds = %23
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28
br label %59
34: ; preds = %28
%35 = load ptr, ptr %4, align 8
%36 = call i32 @sscanf(ptr noundef %35, ptr noundef @.str, ptr noundef %5, ptr noundef %6)
%37 = icmp ne i32 %36, 1
br i1 %37, label %38, label %39
38: ; preds = %34
br label %61
39: ; preds = %34
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %48
42: ; preds = %39
%43 = load ptr, ptr %4, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 45
br i1 %46, label %47, label %48
47: ; preds = %42
br label %64
48: ; preds = %42, %39
%49 = load i32, ptr %5, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %48
%52 = load ptr, ptr %4, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 45
br i1 %55, label %56, label %57
56: ; preds = %51
br label %64
57: ; preds = %51, %48
%58 = load i32, ptr %5, align 4
store i32 %58, ptr %2, align 4
br label %67
59: ; preds = %33
%60 = call i32 (ptr, ...) @suicidef(ptr noundef @.str.1)
br label %61
61: ; preds = %59, %38
%62 = load ptr, ptr %3, align 8
%63 = call i32 (ptr, ...) @suicidef(ptr noundef @.str.2, ptr noundef %62)
br label %64
64: ; preds = %61, %56, %47
%65 = load ptr, ptr %3, align 8
%66 = call i32 (ptr, ...) @suicidef(ptr noundef @.str.3, ptr noundef %65)
store i32 0, ptr %2, align 4
br label %67
67: ; preds = %64, %57
%68 = load i32, ptr %2, align 4
ret i32 %68
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @suicidef(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/tmpbub5gixc.c'
source_filename = "/tmp/tmpbub5gixc.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 @xstrcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %7, align 8
br label %10
10: ; preds = %26, %2
%11 = load ptr, ptr %6, align 8
%12 = load i8, ptr %11, align 1
%13 = call i32 @tolower(i8 noundef zeroext %12)
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %7, align 8
%16 = load i8, ptr %14, align 1
%17 = call i32 @tolower(i8 noundef zeroext %16)
%18 = icmp eq i32 %13, %17
br i1 %18, label %19, label %27
19: ; preds = %10
%20 = load ptr, ptr %6, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %6, align 8
%22 = load i8, ptr %20, align 1
%23 = zext i8 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %19
store i32 0, ptr %3, align 4
br label %36
26: ; preds = %19
br label %10, !llvm.loop !6
27: ; preds = %10
%28 = load ptr, ptr %6, align 8
%29 = load i8, ptr %28, align 1
%30 = call i32 @tolower(i8 noundef zeroext %29)
%31 = load ptr, ptr %7, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 -1
store ptr %32, ptr %7, align 8
%33 = load i8, ptr %32, align 1
%34 = call i32 @tolower(i8 noundef zeroext %33)
%35 = sub nsw i32 %30, %34
store i32 %35, ptr %3, align 4
br label %36
36: ; preds = %27, %25
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i32 @tolower(i8 noundef zeroext) #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/tmpbub5gixc.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 @xstrcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i8, ptr %10, align 1
%12 = call i32 @tolower(i8 noundef zeroext %11)
%13 = load ptr, ptr %7, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %7, align 8
%15 = load i8, ptr %13, align 1
%16 = call i32 @tolower(i8 noundef zeroext %15)
%17 = icmp eq i32 %12, %16
br i1 %17, label %.lr.ph, label %34
.lr.ph: ; preds = %2
br label %27
18: ; preds = %27
%19 = load ptr, ptr %6, align 8
%20 = load i8, ptr %19, align 1
%21 = call i32 @tolower(i8 noundef zeroext %20)
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %7, align 8
%24 = load i8, ptr %22, align 1
%25 = call i32 @tolower(i8 noundef zeroext %24)
%26 = icmp eq i32 %21, %25
br i1 %26, label %27, label %._crit_edge, !llvm.loop !6
27: ; preds = %.lr.ph, %18
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %6, align 8
%30 = load i8, ptr %28, align 1
%31 = zext i8 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %18
33: ; preds = %27
store i32 0, ptr %3, align 4
br label %43
._crit_edge: ; preds = %18
br label %34
34: ; preds = %._crit_edge, %2
%35 = load ptr, ptr %6, align 8
%36 = load i8, ptr %35, align 1
%37 = call i32 @tolower(i8 noundef zeroext %36)
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 -1
store ptr %39, ptr %7, align 8
%40 = load i8, ptr %39, align 1
%41 = call i32 @tolower(i8 noundef zeroext %40)
%42 = sub nsw i32 %37, %41
store i32 %42, ptr %3, align 4
br label %43
43: ; preds = %34, %33
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare i32 @tolower(i8 noundef zeroext) #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/tmp9mgs241y.c'
source_filename = "/tmp/tmp9mgs241y.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 @runner_main() #0 {
%1 = call i32 (...) @bitset_empty()
%2 = call i32 @asserter_crash_if_not_equal(i32 noundef %1, i32 noundef 0, i32 noundef 13)
%3 = call i32 (...) @bitset_empty()
%4 = call i32 @bitset_add(i32 noundef %3, i32 noundef 0)
%5 = call i32 (...) @bitset_empty()
%6 = call i32 @asserter_crash_if_equal(i32 noundef %4, i32 noundef %5, i32 noundef 16)
%7 = call i32 (...) @bitset_empty()
%8 = call i32 @bitset_add(i32 noundef %7, i32 noundef 1)
%9 = call i32 (...) @bitset_empty()
%10 = call i32 @bitset_add(i32 noundef %9, i32 noundef 2)
%11 = call i32 @asserter_crash_if_equal(i32 noundef %8, i32 noundef %10, i32 noundef 17)
%12 = call i32 (...) @bitset_empty()
%13 = call i32 @bitset_add(i32 noundef %12, i32 noundef 1)
%14 = call i32 @bitset_add(i32 noundef %13, i32 noundef 2)
%15 = call i32 (...) @bitset_empty()
%16 = call i32 @bitset_add(i32 noundef %15, i32 noundef 2)
%17 = call i32 @asserter_crash_if_equal(i32 noundef %14, i32 noundef %16, i32 noundef 18)
%18 = call i32 (...) @bitset_empty()
%19 = call i32 @bitset_add(i32 noundef %18, i32 noundef 1)
%20 = call i32 @bitset_add(i32 noundef %19, i32 noundef 1)
%21 = call i32 (...) @bitset_empty()
%22 = call i32 @bitset_add(i32 noundef %21, i32 noundef 1)
%23 = call i32 @asserter_crash_if_not_equal(i32 noundef %20, i32 noundef %22, i32 noundef 19)
%24 = call i32 (...) @bitset_empty()
%25 = call i32 @bitset_add(i32 noundef %24, i32 noundef 15)
%26 = call i32 (...) @bitset_empty()
%27 = call i32 @asserter_crash_if_equal(i32 noundef %25, i32 noundef %26, i32 noundef 22)
%28 = call i32 (...) @bitset_empty()
%29 = call i32 @bitset_add(i32 noundef %28, i32 noundef 16)
%30 = call i32 (...) @bitset_empty()
%31 = call i32 @asserter_crash_if_not_equal(i32 noundef %29, i32 noundef %30, i32 noundef 23)
%32 = call i32 (...) @bitset_empty()
%33 = call i32 @bitset_add(i32 noundef %32, i32 noundef 65535)
%34 = call i32 (...) @bitset_empty()
%35 = call i32 @asserter_crash_if_not_equal(i32 noundef %33, i32 noundef %34, i32 noundef 24)
%36 = call i32 (...) @bitset_empty()
%37 = call i32 @bitset_size(i32 noundef %36)
%38 = call i32 @asserter_crash_if_not_equal(i32 noundef %37, i32 noundef 0, i32 noundef 27)
%39 = call i32 (...) @bitset_empty()
%40 = call i32 @bitset_add(i32 noundef %39, i32 noundef 1)
%41 = call i32 @bitset_size(i32 noundef %40)
%42 = call i32 @asserter_crash_if_not_equal(i32 noundef %41, i32 noundef 1, i32 noundef 28)
%43 = call i32 (...) @bitset_empty()
%44 = call i32 @bitset_add(i32 noundef %43, i32 noundef 1)
%45 = call i32 @bitset_add(i32 noundef %44, i32 noundef 2)
%46 = call i32 @bitset_size(i32 noundef %45)
%47 = call i32 @asserter_crash_if_not_equal(i32 noundef %46, i32 noundef 2, i32 noundef 29)
%48 = call i32 (...) @bitset_empty()
%49 = call i32 @bitset_contains(i32 noundef %48, i32 noundef 0)
%50 = call i32 @asserter_crash_if(i32 noundef %49, i32 noundef 32)
%51 = call i32 (...) @bitset_empty()
%52 = call i32 @bitset_add(i32 noundef %51, i32 noundef 0)
%53 = call i32 @bitset_contains(i32 noundef %52, i32 noundef 0)
%54 = icmp ne i32 %53, 0
%55 = xor i1 %54, true
%56 = zext i1 %55 to i32
%57 = call i32 @asserter_crash_if(i32 noundef %56, i32 noundef 33)
%58 = call i32 (...) @bitset_empty()
%59 = call i32 @bitset_add(i32 noundef %58, i32 noundef 1)
%60 = call i32 @bitset_contains(i32 noundef %59, i32 noundef 0)
%61 = call i32 @asserter_crash_if(i32 noundef %60, i32 noundef 34)
%62 = call i32 (...) @bitset_empty()
%63 = call i32 @bitset_add(i32 noundef %62, i32 noundef 15)
%64 = call i32 @bitset_contains(i32 noundef %63, i32 noundef 15)
%65 = icmp ne i32 %64, 0
%66 = xor i1 %65, true
%67 = zext i1 %66 to i32
%68 = call i32 @asserter_crash_if(i32 noundef %67, i32 noundef 35)
%69 = call i32 (...) @bitset_empty()
%70 = call i32 @bitset_add(i32 noundef %69, i32 noundef 15)
%71 = call i32 @bitset_add(i32 noundef %70, i32 noundef 0)
%72 = call i32 @bitset_contains(i32 noundef %71, i32 noundef 15)
%73 = icmp ne i32 %72, 0
%74 = xor i1 %73, true
%75 = zext i1 %74 to i32
%76 = call i32 @asserter_crash_if(i32 noundef %75, i32 noundef 36)
ret i32 0
}
declare i32 @asserter_crash_if_not_equal(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bitset_empty(...) #1
declare i32 @asserter_crash_if_equal(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bitset_add(i32 noundef, i32 noundef) #1
declare i32 @bitset_size(i32 noundef) #1
declare i32 @asserter_crash_if(i32 noundef, i32 noundef) #1
declare i32 @bitset_contains(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/tmp9mgs241y.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 @runner_main() #0 {
%1 = call i32 (...) @bitset_empty()
%2 = call i32 @asserter_crash_if_not_equal(i32 noundef %1, i32 noundef 0, i32 noundef 13)
%3 = call i32 (...) @bitset_empty()
%4 = call i32 @bitset_add(i32 noundef %3, i32 noundef 0)
%5 = call i32 (...) @bitset_empty()
%6 = call i32 @asserter_crash_if_equal(i32 noundef %4, i32 noundef %5, i32 noundef 16)
%7 = call i32 (...) @bitset_empty()
%8 = call i32 @bitset_add(i32 noundef %7, i32 noundef 1)
%9 = call i32 (...) @bitset_empty()
%10 = call i32 @bitset_add(i32 noundef %9, i32 noundef 2)
%11 = call i32 @asserter_crash_if_equal(i32 noundef %8, i32 noundef %10, i32 noundef 17)
%12 = call i32 (...) @bitset_empty()
%13 = call i32 @bitset_add(i32 noundef %12, i32 noundef 1)
%14 = call i32 @bitset_add(i32 noundef %13, i32 noundef 2)
%15 = call i32 (...) @bitset_empty()
%16 = call i32 @bitset_add(i32 noundef %15, i32 noundef 2)
%17 = call i32 @asserter_crash_if_equal(i32 noundef %14, i32 noundef %16, i32 noundef 18)
%18 = call i32 (...) @bitset_empty()
%19 = call i32 @bitset_add(i32 noundef %18, i32 noundef 1)
%20 = call i32 @bitset_add(i32 noundef %19, i32 noundef 1)
%21 = call i32 (...) @bitset_empty()
%22 = call i32 @bitset_add(i32 noundef %21, i32 noundef 1)
%23 = call i32 @asserter_crash_if_not_equal(i32 noundef %20, i32 noundef %22, i32 noundef 19)
%24 = call i32 (...) @bitset_empty()
%25 = call i32 @bitset_add(i32 noundef %24, i32 noundef 15)
%26 = call i32 (...) @bitset_empty()
%27 = call i32 @asserter_crash_if_equal(i32 noundef %25, i32 noundef %26, i32 noundef 22)
%28 = call i32 (...) @bitset_empty()
%29 = call i32 @bitset_add(i32 noundef %28, i32 noundef 16)
%30 = call i32 (...) @bitset_empty()
%31 = call i32 @asserter_crash_if_not_equal(i32 noundef %29, i32 noundef %30, i32 noundef 23)
%32 = call i32 (...) @bitset_empty()
%33 = call i32 @bitset_add(i32 noundef %32, i32 noundef 65535)
%34 = call i32 (...) @bitset_empty()
%35 = call i32 @asserter_crash_if_not_equal(i32 noundef %33, i32 noundef %34, i32 noundef 24)
%36 = call i32 (...) @bitset_empty()
%37 = call i32 @bitset_size(i32 noundef %36)
%38 = call i32 @asserter_crash_if_not_equal(i32 noundef %37, i32 noundef 0, i32 noundef 27)
%39 = call i32 (...) @bitset_empty()
%40 = call i32 @bitset_add(i32 noundef %39, i32 noundef 1)
%41 = call i32 @bitset_size(i32 noundef %40)
%42 = call i32 @asserter_crash_if_not_equal(i32 noundef %41, i32 noundef 1, i32 noundef 28)
%43 = call i32 (...) @bitset_empty()
%44 = call i32 @bitset_add(i32 noundef %43, i32 noundef 1)
%45 = call i32 @bitset_add(i32 noundef %44, i32 noundef 2)
%46 = call i32 @bitset_size(i32 noundef %45)
%47 = call i32 @asserter_crash_if_not_equal(i32 noundef %46, i32 noundef 2, i32 noundef 29)
%48 = call i32 (...) @bitset_empty()
%49 = call i32 @bitset_contains(i32 noundef %48, i32 noundef 0)
%50 = call i32 @asserter_crash_if(i32 noundef %49, i32 noundef 32)
%51 = call i32 (...) @bitset_empty()
%52 = call i32 @bitset_add(i32 noundef %51, i32 noundef 0)
%53 = call i32 @bitset_contains(i32 noundef %52, i32 noundef 0)
%54 = icmp ne i32 %53, 0
%55 = xor i1 %54, true
%56 = zext i1 %55 to i32
%57 = call i32 @asserter_crash_if(i32 noundef %56, i32 noundef 33)
%58 = call i32 (...) @bitset_empty()
%59 = call i32 @bitset_add(i32 noundef %58, i32 noundef 1)
%60 = call i32 @bitset_contains(i32 noundef %59, i32 noundef 0)
%61 = call i32 @asserter_crash_if(i32 noundef %60, i32 noundef 34)
%62 = call i32 (...) @bitset_empty()
%63 = call i32 @bitset_add(i32 noundef %62, i32 noundef 15)
%64 = call i32 @bitset_contains(i32 noundef %63, i32 noundef 15)
%65 = icmp ne i32 %64, 0
%66 = xor i1 %65, true
%67 = zext i1 %66 to i32
%68 = call i32 @asserter_crash_if(i32 noundef %67, i32 noundef 35)
%69 = call i32 (...) @bitset_empty()
%70 = call i32 @bitset_add(i32 noundef %69, i32 noundef 15)
%71 = call i32 @bitset_add(i32 noundef %70, i32 noundef 0)
%72 = call i32 @bitset_contains(i32 noundef %71, i32 noundef 15)
%73 = icmp ne i32 %72, 0
%74 = xor i1 %73, true
%75 = zext i1 %74 to i32
%76 = call i32 @asserter_crash_if(i32 noundef %75, i32 noundef 36)
ret i32 0
}
declare i32 @asserter_crash_if_not_equal(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bitset_empty(...) #1
declare i32 @asserter_crash_if_equal(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bitset_add(i32 noundef, i32 noundef) #1
declare i32 @bitset_size(i32 noundef) #1
declare i32 @asserter_crash_if(i32 noundef, i32 noundef) #1
declare i32 @bitset_contains(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/tmp3oxhghvd.c'
source_filename = "/tmp/tmp3oxhghvd.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/tmp3oxhghvd.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/tmpalv5pj7r.c'
source_filename = "/tmp/tmpalv5pj7r.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 @chkstr(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = 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
%10 = load ptr, ptr %7, align 8
store ptr %10, ptr %9, align 8
br label %11
11: ; preds = %42, %3
%12 = load ptr, ptr %6, align 8
%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 %45
16: ; preds = %11
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %7, align 8
%19 = load i8, ptr %17, align 1
store i8 %19, ptr %8, align 1
%20 = load ptr, ptr %6, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i8, ptr %8, align 1
%24 = sext i8 %23 to i32
%25 = icmp sge i32 %24, 97
br i1 %25, label %26, label %35
26: ; preds = %16
%27 = load i8, ptr %8, align 1
%28 = sext i8 %27 to i32
%29 = icmp sle i32 %28, 122
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = load i8, ptr %8, align 1
%32 = sext i8 %31 to i32
%33 = add nsw i32 %32, 65
%34 = sub nsw i32 %33, 97
br label %38
35: ; preds = %26, %16
%36 = load i8, ptr %8, align 1
%37 = sext i8 %36 to i32
br label %38
38: ; preds = %35, %30
%39 = phi i32 [ %34, %30 ], [ %37, %35 ]
%40 = icmp ne i32 %22, %39
br i1 %40, label %41, label %42
41: ; preds = %38
store i32 0, ptr %4, align 4
br label %60
42: ; preds = %38
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %6, align 8
br label %11, !llvm.loop !6
45: ; preds = %11
%46 = load ptr, ptr %6, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %59
50: ; preds = %45
%51 = load ptr, ptr %7, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %50
%56 = load ptr, ptr %5, align 8
%57 = load ptr, ptr %9, align 8
%58 = call i32 @strcpy(ptr noundef %56, ptr noundef %57)
br label %59
59: ; preds = %55, %50, %45
store i32 1, ptr %4, align 4
br label %60
60: ; preds = %59, %41
%61 = load i32, ptr %4, align 4
ret i32 %61
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpalv5pj7r.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 @chkstr(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = 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
%10 = load ptr, ptr %7, align 8
store ptr %10, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %.lr.ph, label %48
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %41
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %7, align 8
%18 = load i8, ptr %16, align 1
store i8 %18, ptr %8, align 1
%19 = load ptr, ptr %6, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load i8, ptr %8, align 1
%23 = sext i8 %22 to i32
%24 = icmp sge i32 %23, 97
br i1 %24, label %25, label %34
25: ; preds = %15
%26 = load i8, ptr %8, align 1
%27 = sext i8 %26 to i32
%28 = icmp sle i32 %27, 122
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load i8, ptr %8, align 1
%31 = sext i8 %30 to i32
%32 = add nsw i32 %31, 65
%33 = sub nsw i32 %32, 97
br label %37
34: ; preds = %25, %15
%35 = load i8, ptr %8, align 1
%36 = sext i8 %35 to i32
br label %37
37: ; preds = %34, %29
%38 = phi i32 [ %33, %29 ], [ %36, %34 ]
%39 = icmp ne i32 %21, %38
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 0, ptr %4, align 4
br label %63
41: ; preds = %37
%42 = load ptr, ptr %6, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %6, align 8
%44 = load ptr, ptr %6, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 0
br i1 %47, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %48
48: ; preds = %._crit_edge, %3
%49 = load ptr, ptr %6, align 8
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %62
53: ; preds = %48
%54 = load ptr, ptr %7, align 8
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %53
%59 = load ptr, ptr %5, align 8
%60 = load ptr, ptr %9, align 8
%61 = call i32 @strcpy(ptr noundef %59, ptr noundef %60)
br label %62
62: ; preds = %58, %53, %48
store i32 1, ptr %4, align 4
br label %63
63: ; preds = %62, %40
%64 = load i32, ptr %4, align 4
ret i32 %64
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpntsjtqkv.c'
source_filename = "/tmp/tmpntsjtqkv.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.flock = type { i32, i64, i64, i32 }
@F_WRLCK = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@F_SETLK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lockfile(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.flock, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr @F_WRLCK, align 4
%5 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 3
store i32 %4, ptr %5, align 8
%6 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 2
store i64 0, ptr %6, align 8
%7 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 1
store i64 0, ptr %7, align 8
%8 = load i32, ptr @SEEK_SET, align 4
%9 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 0
store i32 %8, ptr %9, align 8
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr @F_SETLK, align 4
%12 = call i32 @fcntl(i32 noundef %10, i32 noundef %11, ptr noundef %3)
ret i32 %12
}
declare i32 @fcntl(i32 noundef, 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/tmpntsjtqkv.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.flock = type { i32, i64, i64, i32 }
@F_WRLCK = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@F_SETLK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lockfile(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.flock, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr @F_WRLCK, align 4
%5 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 3
store i32 %4, ptr %5, align 8
%6 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 2
store i64 0, ptr %6, align 8
%7 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 1
store i64 0, ptr %7, align 8
%8 = load i32, ptr @SEEK_SET, align 4
%9 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 0
store i32 %8, ptr %9, align 8
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr @F_SETLK, align 4
%12 = call i32 @fcntl(i32 noundef %10, i32 noundef %11, ptr noundef %3)
ret i32 %12
}
declare i32 @fcntl(i32 noundef, 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/tmpg1wbhfj6.c'
source_filename = "/tmp/tmpg1wbhfj6.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 [55 x i8] c"sigpipe: SO_NOSIGPIPE not defined, skipping some tests\00", align 1
@PF_LOCAL = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"socketpair(PF_LOCAL, SOCK_STREAM)\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"test_send_wantsignal(PF_LOCAL)\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"test_write_wantsignal(PF_LOCAL)\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"test_send_wantsignal(PF_INET)\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"test_write_wantsignal(PF_INET)\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [6 x i8] c"PASS\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 ptr, align 8
%7 = alloca [2 x i32], align 4
%8 = 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
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (...) @usage()
br label %13
13: ; preds = %11, %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i64 @strtol(ptr noundef %16, ptr noundef %6, i32 noundef 10)
store i64 %17, ptr %8, align 8
%18 = load i64, ptr %8, align 8
%19 = icmp slt i64 %18, 0
br i1 %19, label %28, label %20
20: ; preds = %13
%21 = load i64, ptr %8, align 8
%22 = icmp sgt i64 %21, 65535
br i1 %22, label %28, label %23
23: ; preds = %20
%24 = load ptr, ptr %6, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %23, %20, %13
%29 = call i32 (...) @usage()
br label %30
30: ; preds = %28, %23
%31 = call i32 @warnx(ptr noundef @.str)
%32 = load i32, ptr @PF_LOCAL, align 4
%33 = load i32, ptr @SOCK_STREAM, align 4
%34 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%35 = call i64 @socketpair(i32 noundef %32, i32 noundef %33, i32 noundef 0, ptr noundef %34)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %30
%38 = call i32 @err(i32 noundef -1, ptr noundef @.str.1)
br label %39
39: ; preds = %37, %30
%40 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%41 = load i32, ptr %40, align 4
%42 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%43 = load i32, ptr %42, align 4
%44 = call i32 @test_send_wantsignal(ptr noundef @.str.2, i32 noundef %41, i32 noundef %43)
%45 = load i32, ptr @PF_LOCAL, align 4
%46 = load i32, ptr @SOCK_STREAM, align 4
%47 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%48 = call i64 @socketpair(i32 noundef %45, i32 noundef %46, i32 noundef 0, ptr noundef %47)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %39
%51 = call i32 @err(i32 noundef -1, ptr noundef @.str.1)
br label %52
52: ; preds = %50, %39
%53 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%54 = load i32, ptr %53, align 4
%55 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%56 = load i32, ptr %55, align 4
%57 = call i32 @test_write_wantsignal(ptr noundef @.str.3, i32 noundef %54, i32 noundef %56)
%58 = load i64, ptr %8, align 8
%59 = call i32 @tcp_setup(i64 noundef %58)
%60 = load i64, ptr %8, align 8
%61 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%62 = call i32 @tcp_pair(i64 noundef %60, ptr noundef %61)
%63 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%64 = load i32, ptr %63, align 4
%65 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%66 = load i32, ptr %65, align 4
%67 = call i32 @test_send_wantsignal(ptr noundef @.str.4, i32 noundef %64, i32 noundef %66)
%68 = load i64, ptr %8, align 8
%69 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%70 = call i32 @tcp_pair(i64 noundef %68, ptr noundef %69)
%71 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%72 = load i32, ptr %71, align 4
%73 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%74 = load i32, ptr %73, align 4
%75 = call i32 @test_write_wantsignal(ptr noundef @.str.5, i32 noundef %72, i32 noundef %74)
%76 = call i32 (...) @tcp_teardown()
%77 = load i32, ptr @stderr, align 4
%78 = call i32 @fprintf(i32 noundef %77, ptr noundef @.str.6)
ret i32 0
}
declare i32 @usage(...) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @warnx(ptr noundef) #1
declare i64 @socketpair(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @err(i32 noundef, ptr noundef) #1
declare i32 @test_send_wantsignal(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @test_write_wantsignal(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @tcp_setup(i64 noundef) #1
declare i32 @tcp_pair(i64 noundef, ptr noundef) #1
declare i32 @tcp_teardown(...) #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/tmpg1wbhfj6.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 [55 x i8] c"sigpipe: SO_NOSIGPIPE not defined, skipping some tests\00", align 1
@PF_LOCAL = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"socketpair(PF_LOCAL, SOCK_STREAM)\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"test_send_wantsignal(PF_LOCAL)\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"test_write_wantsignal(PF_LOCAL)\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"test_send_wantsignal(PF_INET)\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"test_write_wantsignal(PF_INET)\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [6 x i8] c"PASS\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 ptr, align 8
%7 = alloca [2 x i32], align 4
%8 = 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
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (...) @usage()
br label %13
13: ; preds = %11, %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i64 @strtol(ptr noundef %16, ptr noundef %6, i32 noundef 10)
store i64 %17, ptr %8, align 8
%18 = load i64, ptr %8, align 8
%19 = icmp slt i64 %18, 0
br i1 %19, label %28, label %20
20: ; preds = %13
%21 = load i64, ptr %8, align 8
%22 = icmp sgt i64 %21, 65535
br i1 %22, label %28, label %23
23: ; preds = %20
%24 = load ptr, ptr %6, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %23, %20, %13
%29 = call i32 (...) @usage()
br label %30
30: ; preds = %28, %23
%31 = call i32 @warnx(ptr noundef @.str)
%32 = load i32, ptr @PF_LOCAL, align 4
%33 = load i32, ptr @SOCK_STREAM, align 4
%34 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%35 = call i64 @socketpair(i32 noundef %32, i32 noundef %33, i32 noundef 0, ptr noundef %34)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %30
%38 = call i32 @err(i32 noundef -1, ptr noundef @.str.1)
br label %39
39: ; preds = %37, %30
%40 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%41 = load i32, ptr %40, align 4
%42 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%43 = load i32, ptr %42, align 4
%44 = call i32 @test_send_wantsignal(ptr noundef @.str.2, i32 noundef %41, i32 noundef %43)
%45 = load i32, ptr @PF_LOCAL, align 4
%46 = load i32, ptr @SOCK_STREAM, align 4
%47 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%48 = call i64 @socketpair(i32 noundef %45, i32 noundef %46, i32 noundef 0, ptr noundef %47)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %39
%51 = call i32 @err(i32 noundef -1, ptr noundef @.str.1)
br label %52
52: ; preds = %50, %39
%53 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%54 = load i32, ptr %53, align 4
%55 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%56 = load i32, ptr %55, align 4
%57 = call i32 @test_write_wantsignal(ptr noundef @.str.3, i32 noundef %54, i32 noundef %56)
%58 = load i64, ptr %8, align 8
%59 = call i32 @tcp_setup(i64 noundef %58)
%60 = load i64, ptr %8, align 8
%61 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%62 = call i32 @tcp_pair(i64 noundef %60, ptr noundef %61)
%63 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%64 = load i32, ptr %63, align 4
%65 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%66 = load i32, ptr %65, align 4
%67 = call i32 @test_send_wantsignal(ptr noundef @.str.4, i32 noundef %64, i32 noundef %66)
%68 = load i64, ptr %8, align 8
%69 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%70 = call i32 @tcp_pair(i64 noundef %68, ptr noundef %69)
%71 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%72 = load i32, ptr %71, align 4
%73 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%74 = load i32, ptr %73, align 4
%75 = call i32 @test_write_wantsignal(ptr noundef @.str.5, i32 noundef %72, i32 noundef %74)
%76 = call i32 (...) @tcp_teardown()
%77 = load i32, ptr @stderr, align 4
%78 = call i32 @fprintf(i32 noundef %77, ptr noundef @.str.6)
ret i32 0
}
declare i32 @usage(...) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @warnx(ptr noundef) #1
declare i64 @socketpair(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @err(i32 noundef, ptr noundef) #1
declare i32 @test_send_wantsignal(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @test_write_wantsignal(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @tcp_setup(i64 noundef) #1
declare i32 @tcp_pair(i64 noundef, ptr noundef) #1
declare i32 @tcp_teardown(...) #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/tmp45vy_wlt.c'
source_filename = "/tmp/tmp45vy_wlt.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 @r8mat_norm_eis(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %36, %3
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %39
14: ; preds = %10
store i32 0, ptr %7, align 4
br label %15
15: ; preds = %32, %14
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %35
19: ; preds = %15
%20 = load double, ptr %9, align 8
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr %4, align 4
%25 = mul nsw i32 %23, %24
%26 = add nsw i32 %22, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %21, i64 %27
%29 = load double, ptr %28, align 8
%30 = call double @r8_abs(double noundef %29)
%31 = fadd double %20, %30
store double %31, ptr %9, align 8
br label %32
32: ; preds = %19
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
br label %15, !llvm.loop !6
35: ; preds = %15
br label %36
36: ; preds = %35
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %8, align 4
br label %10, !llvm.loop !8
39: ; preds = %10
%40 = load double, ptr %9, align 8
ret double %40
}
declare double @r8_abs(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp45vy_wlt.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 @r8mat_norm_eis(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph2, label %43
.lr.ph2: ; preds = %3
br label %13
13: ; preds = %.lr.ph2, %37
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %36
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %30
%18 = load double, ptr %9, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %4, align 4
%23 = mul nsw i32 %21, %22
%24 = add nsw i32 %20, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %19, i64 %25
%27 = load double, ptr %26, align 8
%28 = call double @r8_abs(double noundef %27)
%29 = fadd double %18, %28
store double %29, ptr %9, align 8
br label %30
30: ; preds = %17
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %13
br label %37
37: ; preds = %36
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %43
43: ; preds = %._crit_edge3, %3
%44 = load double, ptr %9, align 8
ret double %44
}
declare double @r8_abs(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpw4e3_a5h.c'
source_filename = "/tmp/tmpw4e3_a5h.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"pipe()\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/picotm/picotm/refs/heads/master/tests/libsafeblk/safe_unistd.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @safe_pipe(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @pipe(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i32, ptr @errno, align 4
%10 = call i32 @tap_error_errno_at(ptr noundef @.str, i32 noundef %9, ptr noundef @.str.1, i32 noundef 78)
%11 = call i32 (...) @abort_safe_block()
br label %12
12: ; preds = %8, %1
%13 = load i32, ptr %3, align 4
ret i32 %13
}
declare i32 @pipe(ptr noundef) #1
declare i32 @tap_error_errno_at(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @abort_safe_block(...) #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/tmpw4e3_a5h.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"pipe()\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/picotm/picotm/refs/heads/master/tests/libsafeblk/safe_unistd.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @safe_pipe(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @pipe(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i32, ptr @errno, align 4
%10 = call i32 @tap_error_errno_at(ptr noundef @.str, i32 noundef %9, ptr noundef @.str.1, i32 noundef 78)
%11 = call i32 (...) @abort_safe_block()
br label %12
12: ; preds = %8, %1
%13 = load i32, ptr %3, align 4
ret i32 %13
}
declare i32 @pipe(ptr noundef) #1
declare i32 @tap_error_errno_at(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @abort_safe_block(...) #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/tmpegatvotx.c'
source_filename = "/tmp/tmpegatvotx.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/tmpegatvotx.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/tmpge7fbppi.c'
source_filename = "/tmp/tmpge7fbppi.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 @ASIC_DMA_DisableChannels(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 = zext i8 %3 to i32
%5 = and i32 %4, 1
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @ASIC_DMA_DisableChannel(i32 noundef 0)
br label %9
9: ; preds = %7, %1
%10 = load i8, ptr %2, align 1
%11 = zext i8 %10 to i32
%12 = and i32 %11, 2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %9
%15 = call i32 @ASIC_DMA_DisableChannel(i32 noundef 1)
br label %16
16: ; preds = %14, %9
%17 = load i8, ptr %2, align 1
%18 = zext i8 %17 to i32
%19 = and i32 %18, 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 @ASIC_DMA_DisableChannel(i32 noundef 2)
br label %23
23: ; preds = %21, %16
ret void
}
declare i32 @ASIC_DMA_DisableChannel(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/tmpge7fbppi.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 @ASIC_DMA_DisableChannels(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 = zext i8 %3 to i32
%5 = and i32 %4, 1
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @ASIC_DMA_DisableChannel(i32 noundef 0)
br label %9
9: ; preds = %7, %1
%10 = load i8, ptr %2, align 1
%11 = zext i8 %10 to i32
%12 = and i32 %11, 2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %9
%15 = call i32 @ASIC_DMA_DisableChannel(i32 noundef 1)
br label %16
16: ; preds = %14, %9
%17 = load i8, ptr %2, align 1
%18 = zext i8 %17 to i32
%19 = and i32 %18, 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 @ASIC_DMA_DisableChannel(i32 noundef 2)
br label %23
23: ; preds = %21, %16
ret void
}
declare i32 @ASIC_DMA_DisableChannel(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/tmp6j9p0rxh.c'
source_filename = "/tmp/tmp6j9p0rxh.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/tmp6j9p0rxh.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/tmpggans3er.c'
source_filename = "/tmp/tmpggans3er.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/tmpggans3er.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/tmpb4r6uv_u.c'
source_filename = "/tmp/tmpb4r6uv_u.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"
@ITIMER_REAL = 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/tmpb4r6uv_u.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"
@ITIMER_REAL = 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/tmp7xzfanr4.c'
source_filename = "/tmp/tmp7xzfanr4.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.test_text = private unnamed_addr constant [9 x i8] c"Hi There\00", align 1
@__const.main.test_result = private unnamed_addr constant [33 x i8] c"9294727a3638bb1c13f48ef8158bfc9d\00", align 16
@__const.main.test2 = private unnamed_addr constant [5 x i8] c"Jefe\00", align 1
@__const.main.test2_text = private unnamed_addr constant [29 x i8] c"what do ya want for nothing?\00", align 16
@__const.main.test2_result = private unnamed_addr constant [33 x i8] c"750c783e6ab0b503eaa86e310a5db738\00", align 16
@__const.main.test3_result = private unnamed_addr constant [33 x i8] c"56be34521d144c88dbb8c733f0e8b3f6\00", align 16
@__const.main.test4_result = private unnamed_addr constant [33 x i8] c"697eaf0aca3a3aea3a75164746ffaa79\00", align 16
@__const.main.test5_text = private unnamed_addr constant [21 x i8] c"Test With Truncation\00", align 16
@__const.main.test5_result = private unnamed_addr constant [33 x i8] c"56461ef2342edc00f9bab995690efd4c\00", align 16
@__const.main.test6_text = private unnamed_addr constant [55 x i8] c"Test Using Larger Than Block-Size Key - Hash Key First\00", align 16
@__const.main.test6_result = private unnamed_addr constant [33 x i8] c"6b1ab7fe4bd7bf8f0b62e6ce61b9d0cd\00", align 16
@__const.main.test7_text = private unnamed_addr constant [74 x i8] c"Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data\00", align 16
@__const.main.test7_result = private unnamed_addr constant [33 x i8] c"6f630fad67cda0ee1fb1f562db3aa53e\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [16 x i8], align 16
%4 = alloca [9 x i8], align 1
%5 = alloca [33 x i8], align 16
%6 = alloca [5 x i8], align 1
%7 = alloca [29 x i8], align 16
%8 = alloca [33 x i8], align 16
%9 = alloca [16 x i8], align 16
%10 = alloca [50 x i8], align 16
%11 = alloca [33 x i8], align 16
%12 = alloca [25 x i8], align 16
%13 = alloca [50 x i8], align 16
%14 = alloca [33 x i8], align 16
%15 = alloca [16 x i8], align 16
%16 = alloca [21 x i8], align 16
%17 = alloca [33 x i8], align 16
%18 = alloca [80 x i8], align 16
%19 = alloca [55 x i8], align 16
%20 = alloca [33 x i8], align 16
%21 = alloca [80 x i8], align 16
%22 = alloca [74 x i8], align 16
%23 = alloca [33 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.test_text, i64 9, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.test_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
br label %24
24: ; preds = %32, %0
%25 = load i32, ptr %2, align 4
%26 = sext i32 %25 to i64
%27 = icmp ult i64 %26, 16
br i1 %27, label %28, label %35
28: ; preds = %24
%29 = load i32, ptr %2, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [16 x i8], ptr %3, i64 0, i64 %30
store i8 11, ptr %31, align 1
br label %32
32: ; preds = %28
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
br label %24, !llvm.loop !6
35: ; preds = %24
%36 = getelementptr inbounds [16 x i8], ptr %3, i64 0, i64 0
%37 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%38 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef %38)
%40 = getelementptr inbounds [33 x i8], ptr %5, i64 0, i64 0
%41 = call i32 @check(ptr noundef %36, i32 noundef 16, ptr noundef %37, i32 noundef %39, ptr noundef %40)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.test2, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.test2_text, i64 29, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.test2_result, i64 33, i1 false)
%42 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 0
%43 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 0
%44 = call i32 @strlen(ptr noundef %43)
%45 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%46 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%47 = call i32 @strlen(ptr noundef %46)
%48 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%49 = call i32 @check(ptr noundef %42, i32 noundef %44, ptr noundef %45, i32 noundef %47, ptr noundef %48)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.test3_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
br label %50
50: ; preds = %58, %35
%51 = load i32, ptr %2, align 4
%52 = sext i32 %51 to i64
%53 = icmp ult i64 %52, 16
br i1 %53, label %54, label %61
54: ; preds = %50
%55 = load i32, ptr %2, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 %56
store i8 -86, ptr %57, align 1
br label %58
58: ; preds = %54
%59 = load i32, ptr %2, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %2, align 4
br label %50, !llvm.loop !8
61: ; preds = %50
store i32 0, ptr %2, align 4
br label %62
62: ; preds = %70, %61
%63 = load i32, ptr %2, align 4
%64 = sext i32 %63 to i64
%65 = icmp ult i64 %64, 50
br i1 %65, label %66, label %73
66: ; preds = %62
%67 = load i32, ptr %2, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 %68
store i8 -35, ptr %69, align 1
br label %70
70: ; preds = %66
%71 = load i32, ptr %2, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %2, align 4
br label %62, !llvm.loop !9
73: ; preds = %62
%74 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%75 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%76 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%77 = call i32 @check(ptr noundef %74, i32 noundef 16, ptr noundef %75, i32 noundef 50, ptr noundef %76)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const.main.test4_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
br label %78
78: ; preds = %89, %73
%79 = load i32, ptr %2, align 4
%80 = sext i32 %79 to i64
%81 = icmp ult i64 %80, 25
br i1 %81, label %82, label %92
82: ; preds = %78
%83 = load i32, ptr %2, align 4
%84 = add nsw i32 %83, 1
%85 = trunc i32 %84 to i8
%86 = load i32, ptr %2, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 %87
store i8 %85, ptr %88, align 1
br label %89
89: ; preds = %82
%90 = load i32, ptr %2, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %2, align 4
br label %78, !llvm.loop !10
92: ; preds = %78
store i32 0, ptr %2, align 4
br label %93
93: ; preds = %101, %92
%94 = load i32, ptr %2, align 4
%95 = sext i32 %94 to i64
%96 = icmp ult i64 %95, 50
br i1 %96, label %97, label %104
97: ; preds = %93
%98 = load i32, ptr %2, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [50 x i8], ptr %13, i64 0, i64 %99
store i8 -51, ptr %100, align 1
br label %101
101: ; preds = %97
%102 = load i32, ptr %2, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %2, align 4
br label %93, !llvm.loop !11
104: ; preds = %93
%105 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
%106 = getelementptr inbounds [50 x i8], ptr %13, i64 0, i64 0
%107 = getelementptr inbounds [33 x i8], ptr %14, i64 0, i64 0
%108 = call i32 @check(ptr noundef %105, i32 noundef 25, ptr noundef %106, i32 noundef 50, ptr noundef %107)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.main.test5_text, i64 21, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.test5_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
br label %109
109: ; preds = %117, %104
%110 = load i32, ptr %2, align 4
%111 = sext i32 %110 to i64
%112 = icmp ult i64 %111, 16
br i1 %112, label %113, label %120
113: ; preds = %109
%114 = load i32, ptr %2, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 %115
store i8 12, ptr %116, align 1
br label %117
117: ; preds = %113
%118 = load i32, ptr %2, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %2, align 4
br label %109, !llvm.loop !12
120: ; preds = %109
%121 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
%122 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
%123 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
%124 = call i32 @strlen(ptr noundef %123)
%125 = getelementptr inbounds [33 x i8], ptr %17, i64 0, i64 0
%126 = call i32 @check(ptr noundef %121, i32 noundef 16, ptr noundef %122, i32 noundef %124, ptr noundef %125)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 @__const.main.test6_text, i64 55, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 @__const.main.test6_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
br label %127
127: ; preds = %135, %120
%128 = load i32, ptr %2, align 4
%129 = sext i32 %128 to i64
%130 = icmp ult i64 %129, 80
br i1 %130, label %131, label %138
131: ; preds = %127
%132 = load i32, ptr %2, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [80 x i8], ptr %18, i64 0, i64 %133
store i8 -86, ptr %134, align 1
br label %135
135: ; preds = %131
%136 = load i32, ptr %2, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %2, align 4
br label %127, !llvm.loop !13
138: ; preds = %127
%139 = getelementptr inbounds [80 x i8], ptr %18, i64 0, i64 0
%140 = getelementptr inbounds [55 x i8], ptr %19, i64 0, i64 0
%141 = getelementptr inbounds [55 x i8], ptr %19, i64 0, i64 0
%142 = call i32 @strlen(ptr noundef %141)
%143 = getelementptr inbounds [33 x i8], ptr %20, i64 0, i64 0
%144 = call i32 @check(ptr noundef %139, i32 noundef 80, ptr noundef %140, i32 noundef %142, ptr noundef %143)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.main.test7_text, i64 74, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 @__const.main.test7_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
br label %145
145: ; preds = %153, %138
%146 = load i32, ptr %2, align 4
%147 = sext i32 %146 to i64
%148 = icmp ult i64 %147, 80
br i1 %148, label %149, label %156
149: ; preds = %145
%150 = load i32, ptr %2, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [80 x i8], ptr %21, i64 0, i64 %151
store i8 -86, ptr %152, align 1
br label %153
153: ; preds = %149
%154 = load i32, ptr %2, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %2, align 4
br label %145, !llvm.loop !14
156: ; preds = %145
%157 = getelementptr inbounds [80 x i8], ptr %21, i64 0, i64 0
%158 = getelementptr inbounds [74 x i8], ptr %22, i64 0, i64 0
%159 = getelementptr inbounds [74 x i8], ptr %22, i64 0, i64 0
%160 = call i32 @strlen(ptr noundef %159)
%161 = getelementptr inbounds [33 x i8], ptr %23, i64 0, i64 0
%162 = call i32 @check(ptr noundef %157, i32 noundef 80, ptr noundef %158, i32 noundef %160, ptr noundef %161)
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 @check(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strlen(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}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7xzfanr4.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.test_text = private unnamed_addr constant [9 x i8] c"Hi There\00", align 1
@__const.main.test_result = private unnamed_addr constant [33 x i8] c"9294727a3638bb1c13f48ef8158bfc9d\00", align 16
@__const.main.test2 = private unnamed_addr constant [5 x i8] c"Jefe\00", align 1
@__const.main.test2_text = private unnamed_addr constant [29 x i8] c"what do ya want for nothing?\00", align 16
@__const.main.test2_result = private unnamed_addr constant [33 x i8] c"750c783e6ab0b503eaa86e310a5db738\00", align 16
@__const.main.test3_result = private unnamed_addr constant [33 x i8] c"56be34521d144c88dbb8c733f0e8b3f6\00", align 16
@__const.main.test4_result = private unnamed_addr constant [33 x i8] c"697eaf0aca3a3aea3a75164746ffaa79\00", align 16
@__const.main.test5_text = private unnamed_addr constant [21 x i8] c"Test With Truncation\00", align 16
@__const.main.test5_result = private unnamed_addr constant [33 x i8] c"56461ef2342edc00f9bab995690efd4c\00", align 16
@__const.main.test6_text = private unnamed_addr constant [55 x i8] c"Test Using Larger Than Block-Size Key - Hash Key First\00", align 16
@__const.main.test6_result = private unnamed_addr constant [33 x i8] c"6b1ab7fe4bd7bf8f0b62e6ce61b9d0cd\00", align 16
@__const.main.test7_text = private unnamed_addr constant [74 x i8] c"Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data\00", align 16
@__const.main.test7_result = private unnamed_addr constant [33 x i8] c"6f630fad67cda0ee1fb1f562db3aa53e\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [16 x i8], align 16
%4 = alloca [9 x i8], align 1
%5 = alloca [33 x i8], align 16
%6 = alloca [5 x i8], align 1
%7 = alloca [29 x i8], align 16
%8 = alloca [33 x i8], align 16
%9 = alloca [16 x i8], align 16
%10 = alloca [50 x i8], align 16
%11 = alloca [33 x i8], align 16
%12 = alloca [25 x i8], align 16
%13 = alloca [50 x i8], align 16
%14 = alloca [33 x i8], align 16
%15 = alloca [16 x i8], align 16
%16 = alloca [21 x i8], align 16
%17 = alloca [33 x i8], align 16
%18 = alloca [80 x i8], align 16
%19 = alloca [55 x i8], align 16
%20 = alloca [33 x i8], align 16
%21 = alloca [80 x i8], align 16
%22 = alloca [74 x i8], align 16
%23 = alloca [33 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.test_text, i64 9, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.test_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = sext i32 %24 to i64
%26 = icmp ult i64 %25, 16
br i1 %26, label %.lr.ph, label %37
.lr.ph: ; preds = %0
br label %27
27: ; preds = %.lr.ph, %31
%28 = load i32, ptr %2, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [16 x i8], ptr %3, i64 0, i64 %29
store i8 11, ptr %30, align 1
br label %31
31: ; preds = %27
%32 = load i32, ptr %2, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %2, align 4
%34 = load i32, ptr %2, align 4
%35 = sext i32 %34 to i64
%36 = icmp ult i64 %35, 16
br i1 %36, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %0
%38 = getelementptr inbounds [16 x i8], ptr %3, i64 0, i64 0
%39 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%40 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%41 = call i32 @strlen(ptr noundef %40)
%42 = getelementptr inbounds [33 x i8], ptr %5, i64 0, i64 0
%43 = call i32 @check(ptr noundef %38, i32 noundef 16, ptr noundef %39, i32 noundef %41, ptr noundef %42)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.test2, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.test2_text, i64 29, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.test2_result, i64 33, i1 false)
%44 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 0
%45 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 0
%46 = call i32 @strlen(ptr noundef %45)
%47 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%48 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%49 = call i32 @strlen(ptr noundef %48)
%50 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%51 = call i32 @check(ptr noundef %44, i32 noundef %46, ptr noundef %47, i32 noundef %49, ptr noundef %50)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.test3_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
%52 = load i32, ptr %2, align 4
%53 = sext i32 %52 to i64
%54 = icmp ult i64 %53, 16
br i1 %54, label %.lr.ph2, label %65
.lr.ph2: ; preds = %37
br label %55
55: ; preds = %.lr.ph2, %59
%56 = load i32, ptr %2, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 %57
store i8 -86, ptr %58, align 1
br label %59
59: ; preds = %55
%60 = load i32, ptr %2, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %2, align 4
%62 = load i32, ptr %2, align 4
%63 = sext i32 %62 to i64
%64 = icmp ult i64 %63, 16
br i1 %64, label %55, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %65
65: ; preds = %._crit_edge3, %37
store i32 0, ptr %2, align 4
%66 = load i32, ptr %2, align 4
%67 = sext i32 %66 to i64
%68 = icmp ult i64 %67, 50
br i1 %68, label %.lr.ph5, label %79
.lr.ph5: ; preds = %65
br label %69
69: ; preds = %.lr.ph5, %73
%70 = load i32, ptr %2, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 %71
store i8 -35, ptr %72, align 1
br label %73
73: ; preds = %69
%74 = load i32, ptr %2, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %2, align 4
%76 = load i32, ptr %2, align 4
%77 = sext i32 %76 to i64
%78 = icmp ult i64 %77, 50
br i1 %78, label %69, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %73
br label %79
79: ; preds = %._crit_edge6, %65
%80 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%81 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%82 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%83 = call i32 @check(ptr noundef %80, i32 noundef 16, ptr noundef %81, i32 noundef 50, ptr noundef %82)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const.main.test4_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
%84 = load i32, ptr %2, align 4
%85 = sext i32 %84 to i64
%86 = icmp ult i64 %85, 25
br i1 %86, label %.lr.ph8, label %100
.lr.ph8: ; preds = %79
br label %87
87: ; preds = %.lr.ph8, %94
%88 = load i32, ptr %2, align 4
%89 = add nsw i32 %88, 1
%90 = trunc i32 %89 to i8
%91 = load i32, ptr %2, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 %92
store i8 %90, ptr %93, align 1
br label %94
94: ; preds = %87
%95 = load i32, ptr %2, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %2, align 4
%97 = load i32, ptr %2, align 4
%98 = sext i32 %97 to i64
%99 = icmp ult i64 %98, 25
br i1 %99, label %87, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %94
br label %100
100: ; preds = %._crit_edge9, %79
store i32 0, ptr %2, align 4
%101 = load i32, ptr %2, align 4
%102 = sext i32 %101 to i64
%103 = icmp ult i64 %102, 50
br i1 %103, label %.lr.ph11, label %114
.lr.ph11: ; preds = %100
br label %104
104: ; preds = %.lr.ph11, %108
%105 = load i32, ptr %2, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [50 x i8], ptr %13, i64 0, i64 %106
store i8 -51, ptr %107, align 1
br label %108
108: ; preds = %104
%109 = load i32, ptr %2, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %2, align 4
%111 = load i32, ptr %2, align 4
%112 = sext i32 %111 to i64
%113 = icmp ult i64 %112, 50
br i1 %113, label %104, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %108
br label %114
114: ; preds = %._crit_edge12, %100
%115 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
%116 = getelementptr inbounds [50 x i8], ptr %13, i64 0, i64 0
%117 = getelementptr inbounds [33 x i8], ptr %14, i64 0, i64 0
%118 = call i32 @check(ptr noundef %115, i32 noundef 25, ptr noundef %116, i32 noundef 50, ptr noundef %117)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.main.test5_text, i64 21, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.test5_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
%119 = load i32, ptr %2, align 4
%120 = sext i32 %119 to i64
%121 = icmp ult i64 %120, 16
br i1 %121, label %.lr.ph14, label %132
.lr.ph14: ; preds = %114
br label %122
122: ; preds = %.lr.ph14, %126
%123 = load i32, ptr %2, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 %124
store i8 12, ptr %125, align 1
br label %126
126: ; preds = %122
%127 = load i32, ptr %2, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %2, align 4
%129 = load i32, ptr %2, align 4
%130 = sext i32 %129 to i64
%131 = icmp ult i64 %130, 16
br i1 %131, label %122, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %126
br label %132
132: ; preds = %._crit_edge15, %114
%133 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
%134 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
%135 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
%136 = call i32 @strlen(ptr noundef %135)
%137 = getelementptr inbounds [33 x i8], ptr %17, i64 0, i64 0
%138 = call i32 @check(ptr noundef %133, i32 noundef 16, ptr noundef %134, i32 noundef %136, ptr noundef %137)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 @__const.main.test6_text, i64 55, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 @__const.main.test6_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
%139 = load i32, ptr %2, align 4
%140 = sext i32 %139 to i64
%141 = icmp ult i64 %140, 80
br i1 %141, label %.lr.ph17, label %152
.lr.ph17: ; preds = %132
br label %142
142: ; preds = %.lr.ph17, %146
%143 = load i32, ptr %2, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [80 x i8], ptr %18, i64 0, i64 %144
store i8 -86, ptr %145, align 1
br label %146
146: ; preds = %142
%147 = load i32, ptr %2, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %2, align 4
%149 = load i32, ptr %2, align 4
%150 = sext i32 %149 to i64
%151 = icmp ult i64 %150, 80
br i1 %151, label %142, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %146
br label %152
152: ; preds = %._crit_edge18, %132
%153 = getelementptr inbounds [80 x i8], ptr %18, i64 0, i64 0
%154 = getelementptr inbounds [55 x i8], ptr %19, i64 0, i64 0
%155 = getelementptr inbounds [55 x i8], ptr %19, i64 0, i64 0
%156 = call i32 @strlen(ptr noundef %155)
%157 = getelementptr inbounds [33 x i8], ptr %20, i64 0, i64 0
%158 = call i32 @check(ptr noundef %153, i32 noundef 80, ptr noundef %154, i32 noundef %156, ptr noundef %157)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.main.test7_text, i64 74, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 @__const.main.test7_result, i64 33, i1 false)
store i32 0, ptr %2, align 4
%159 = load i32, ptr %2, align 4
%160 = sext i32 %159 to i64
%161 = icmp ult i64 %160, 80
br i1 %161, label %.lr.ph20, label %172
.lr.ph20: ; preds = %152
br label %162
162: ; preds = %.lr.ph20, %166
%163 = load i32, ptr %2, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [80 x i8], ptr %21, i64 0, i64 %164
store i8 -86, ptr %165, align 1
br label %166
166: ; preds = %162
%167 = load i32, ptr %2, align 4
%168 = add nsw i32 %167, 1
store i32 %168, ptr %2, align 4
%169 = load i32, ptr %2, align 4
%170 = sext i32 %169 to i64
%171 = icmp ult i64 %170, 80
br i1 %171, label %162, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %166
br label %172
172: ; preds = %._crit_edge21, %152
%173 = getelementptr inbounds [80 x i8], ptr %21, i64 0, i64 0
%174 = getelementptr inbounds [74 x i8], ptr %22, i64 0, i64 0
%175 = getelementptr inbounds [74 x i8], ptr %22, i64 0, i64 0
%176 = call i32 @strlen(ptr noundef %175)
%177 = getelementptr inbounds [33 x i8], ptr %23, i64 0, i64 0
%178 = call i32 @check(ptr noundef %173, i32 noundef 80, ptr noundef %174, i32 noundef %176, ptr noundef %177)
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 @check(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strlen(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}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmp5g36xebm.c'
source_filename = "/tmp/tmp5g36xebm.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"Expected: '%s', but was: NULL\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Expected: '%s', but was: '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @assert_str_equals(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %5, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %14, label %9
9: ; preds = %3
%10 = load ptr, ptr %4, align 8
%11 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %10)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = call i64 @strncmp(ptr noundef %15, ptr noundef %16, i64 noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21, ptr noundef %22)
%24 = load i32, ptr @EXIT_FAILURE, align 4
%25 = call i32 @exit(i32 noundef %24) #3
unreachable
26: ; preds = %14
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strncmp(ptr 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" }
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/tmp5g36xebm.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"Expected: '%s', but was: NULL\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Expected: '%s', but was: '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @assert_str_equals(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %5, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %14, label %9
9: ; preds = %3
%10 = load ptr, ptr %4, align 8
%11 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %10)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = call i64 @strncmp(ptr noundef %15, ptr noundef %16, i64 noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21, ptr noundef %22)
%24 = load i32, ptr @EXIT_FAILURE, align 4
%25 = call i32 @exit(i32 noundef %24) #3
unreachable
26: ; preds = %14
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strncmp(ptr 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" }
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/tmp9rmx4a76.c'
source_filename = "/tmp/tmp9rmx4a76.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"%f %f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_data(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [80 x i8], align 16
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store i32 0, ptr %17, align 4
%18 = call float @acos(double noundef -1.000000e+00)
store float %18, ptr %16, align 4
br label %19
19: ; preds = %24, %5
%20 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%21 = load ptr, ptr %6, align 8
%22 = call ptr @fgets(ptr noundef %20, i32 noundef 80, ptr noundef %21)
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %67
24: ; preds = %19
%25 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%26 = call i32 @sscanf(ptr noundef %25, ptr noundef @.str, ptr noundef %12, ptr noundef %13)
%27 = load float, ptr %12, align 4
%28 = load float, ptr %16, align 4
%29 = fmul float %27, %28
%30 = fpext float %29 to double
%31 = fdiv double %30, 1.800000e+02
%32 = fptrunc double %31 to float
store float %32, ptr %15, align 4
%33 = load float, ptr %13, align 4
%34 = fpext float %33 to double
%35 = fsub double 9.000000e+01, %34
%36 = load float, ptr %16, align 4
%37 = fpext float %36 to double
%38 = fmul double %35, %37
%39 = fdiv double %38, 1.800000e+02
%40 = fptrunc double %39 to float
store float %40, ptr %14, align 4
%41 = load float, ptr %14, align 4
%42 = call float @sinf(float noundef %41) #3
%43 = load float, ptr %15, align 4
%44 = call float @cosf(float noundef %43) #3
%45 = fmul float %42, %44
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %17, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds float, ptr %46, i64 %48
store float %45, ptr %49, align 4
%50 = load float, ptr %14, align 4
%51 = call float @sinf(float noundef %50) #3
%52 = load float, ptr %15, align 4
%53 = call float @sinf(float noundef %52) #3
%54 = fmul float %51, %53
%55 = load ptr, ptr %9, align 8
%56 = load i32, ptr %17, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds float, ptr %55, i64 %57
store float %54, ptr %58, align 4
%59 = load float, ptr %14, align 4
%60 = call float @cosf(float noundef %59) #3
%61 = load ptr, ptr %10, align 8
%62 = load i32, ptr %17, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds float, ptr %61, i64 %63
store float %60, ptr %64, align 4
%65 = load i32, ptr %17, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %17, align 4
br label %19, !llvm.loop !6
67: ; preds = %19
%68 = load ptr, ptr %6, align 8
%69 = call i32 @fclose(ptr noundef %68)
ret void
}
declare float @acos(double noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare float @sinf(float noundef) #2
; Function Attrs: nounwind
declare float @cosf(float noundef) #2
declare i32 @fclose(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 = { 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/tmp9rmx4a76.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"%f %f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_data(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [80 x i8], align 16
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store i32 0, ptr %17, align 4
%18 = call float @acos(double noundef -1.000000e+00)
store float %18, ptr %16, align 4
%19 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%20 = load ptr, ptr %6, align 8
%21 = call ptr @fgets(ptr noundef %19, i32 noundef 80, ptr noundef %20)
%22 = icmp ne ptr %21, null
br i1 %22, label %.lr.ph, label %69
.lr.ph: ; preds = %5
br label %23
23: ; preds = %.lr.ph, %23
%24 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%25 = call i32 @sscanf(ptr noundef %24, ptr noundef @.str, ptr noundef %12, ptr noundef %13)
%26 = load float, ptr %12, align 4
%27 = load float, ptr %16, align 4
%28 = fmul float %26, %27
%29 = fpext float %28 to double
%30 = fdiv double %29, 1.800000e+02
%31 = fptrunc double %30 to float
store float %31, ptr %15, align 4
%32 = load float, ptr %13, align 4
%33 = fpext float %32 to double
%34 = fsub double 9.000000e+01, %33
%35 = load float, ptr %16, align 4
%36 = fpext float %35 to double
%37 = fmul double %34, %36
%38 = fdiv double %37, 1.800000e+02
%39 = fptrunc double %38 to float
store float %39, ptr %14, align 4
%40 = load float, ptr %14, align 4
%41 = call float @sinf(float noundef %40) #3
%42 = load float, ptr %15, align 4
%43 = call float @cosf(float noundef %42) #3
%44 = fmul float %41, %43
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %17, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds float, ptr %45, i64 %47
store float %44, ptr %48, align 4
%49 = load float, ptr %14, align 4
%50 = call float @sinf(float noundef %49) #3
%51 = load float, ptr %15, align 4
%52 = call float @sinf(float noundef %51) #3
%53 = fmul float %50, %52
%54 = load ptr, ptr %9, align 8
%55 = load i32, ptr %17, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, ptr %54, i64 %56
store float %53, ptr %57, align 4
%58 = load float, ptr %14, align 4
%59 = call float @cosf(float noundef %58) #3
%60 = load ptr, ptr %10, align 8
%61 = load i32, ptr %17, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds float, ptr %60, i64 %62
store float %59, ptr %63, align 4
%64 = load i32, ptr %17, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %17, align 4
%66 = load ptr, ptr %6, align 8
%67 = call ptr @fgets(ptr noundef %19, i32 noundef 80, ptr noundef %66)
%68 = icmp ne ptr %67, null
br i1 %68, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %69
69: ; preds = %._crit_edge, %5
%70 = load ptr, ptr %6, align 8
%71 = call i32 @fclose(ptr noundef %70)
ret void
}
declare float @acos(double noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare float @sinf(float noundef) #2
; Function Attrs: nounwind
declare float @cosf(float noundef) #2
declare i32 @fclose(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 = { 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/tmp9w7cjawi.c'
source_filename = "/tmp/tmp9w7cjawi.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 [12 x i8] c"Running...\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Not running.\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
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str)
br label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.1)
br label %9
9: ; preds = %7, %5
ret i32 0
}
declare i32 @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/tmp9w7cjawi.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 [12 x i8] c"Running...\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Not running.\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
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str)
br label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.1)
br label %9
9: ; preds = %7, %5
ret i32 0
}
declare i32 @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/tmpd8k2harp.c'
source_filename = "/tmp/tmpd8k2harp.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"%04x: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"%02hhx \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"- \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dumpmem(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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %89, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %92
11: ; preds = %7
%12 = load i32, ptr %5, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %36, %11
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 16
br i1 %16, label %17, label %39
17: ; preds = %14
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %18, %19
%21 = load i32, ptr %4, align 4
%22 = icmp sgt i32 %20, %21
br i1 %22, label %23, label %25
23: ; preds = %17
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %35
25: ; preds = %17
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %27, %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %26, i64 %30
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %25, %23
br label %36
36: ; preds = %35
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
br label %14, !llvm.loop !6
39: ; preds = %14
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %6, align 4
br label %41
41: ; preds = %84, %39
%42 = load i32, ptr %6, align 4
%43 = icmp slt i32 %42, 16
br i1 %43, label %44, label %87
44: ; preds = %41
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %45, %46
%48 = load i32, ptr %4, align 4
%49 = icmp sle i32 %47, %48
br i1 %49, label %50, label %83
50: ; preds = %44
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %5, align 4
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %52, %53
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %51, i64 %55
%57 = load i8, ptr %56, align 1
%58 = zext i8 %57 to i32
%59 = icmp slt i32 %58, 32
br i1 %59, label %70, label %60
60: ; preds = %50
%61 = load ptr, ptr %3, align 8
%62 = load i32, ptr %5, align 4
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %62, %63
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %61, i64 %65
%67 = load i8, ptr %66, align 1
%68 = zext i8 %67 to i32
%69 = icmp sgt i32 %68, 127
br i1 %69, label %70, label %72
70: ; preds = %60, %50
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %82
72: ; preds = %60
%73 = load ptr, ptr %3, align 8
%74 = load i32, ptr %5, align 4
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %74, %75
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %73, i64 %77
%79 = load i8, ptr %78, align 1
%80 = zext i8 %79 to i32
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %80)
br label %82
82: ; preds = %72, %70
br label %83
83: ; preds = %82, %44
br label %84
84: ; preds = %83
%85 = load i32, ptr %6, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %6, align 4
br label %41, !llvm.loop !8
87: ; preds = %41
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %89
89: ; preds = %87
%90 = load i32, ptr %5, align 4
%91 = add nsw i32 %90, 16
store i32 %91, ptr %5, align 4
br label %7, !llvm.loop !9
92: ; preds = %7
ret void
}
declare i32 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd8k2harp.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"%04x: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"%02hhx \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"- \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dumpmem(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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph5, label %96
.lr.ph5: ; preds = %2
br label %10
10: ; preds = %.lr.ph5, %90
%11 = load i32, ptr %5, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %11)
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 16
br i1 %14, label %.lr.ph, label %39
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %34
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %16, %17
%19 = load i32, ptr %4, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %15
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %33
23: ; preds = %15
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %25, %26
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %24, i64 %28
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
br label %33
33: ; preds = %23, %21
br label %34
34: ; preds = %33
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
%37 = load i32, ptr %6, align 4
%38 = icmp slt i32 %37, 16
br i1 %38, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %39
39: ; preds = %._crit_edge, %10
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %41, 16
br i1 %42, label %.lr.ph2, label %88
.lr.ph2: ; preds = %39
br label %43
43: ; preds = %.lr.ph2, %83
%44 = load i32, ptr %5, align 4
%45 = load i32, ptr %6, align 4
%46 = add nsw i32 %44, %45
%47 = load i32, ptr %4, align 4
%48 = icmp sle i32 %46, %47
br i1 %48, label %49, label %82
49: ; preds = %43
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %51, %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %50, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = icmp slt i32 %57, 32
br i1 %58, label %69, label %59
59: ; preds = %49
%60 = load ptr, ptr %3, align 8
%61 = load i32, ptr %5, align 4
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %61, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %60, i64 %64
%66 = load i8, ptr %65, align 1
%67 = zext i8 %66 to i32
%68 = icmp sgt i32 %67, 127
br i1 %68, label %69, label %71
69: ; preds = %59, %49
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %81
71: ; preds = %59
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %5, align 4
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %73, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %72, i64 %76
%78 = load i8, ptr %77, align 1
%79 = zext i8 %78 to i32
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %79)
br label %81
81: ; preds = %71, %69
br label %82
82: ; preds = %81, %43
br label %83
83: ; preds = %82
%84 = load i32, ptr %6, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %6, align 4
%86 = load i32, ptr %6, align 4
%87 = icmp slt i32 %86, 16
br i1 %87, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %83
br label %88
88: ; preds = %._crit_edge3, %39
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %90
90: ; preds = %88
%91 = load i32, ptr %5, align 4
%92 = add nsw i32 %91, 16
store i32 %92, ptr %5, align 4
%93 = load i32, ptr %5, align 4
%94 = load i32, ptr %4, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %10, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %90
br label %96
96: ; preds = %._crit_edge6, %2
ret void
}
declare i32 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp5jt11o20.c'
source_filename = "/tmp/tmp5jt11o20.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"bitwise operators\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testmain() #0 {
%1 = call i32 @print(ptr noundef @.str)
%2 = call i32 (...) @test_or()
%3 = call i32 (...) @test_and()
%4 = call i32 (...) @test_not()
%5 = call i32 (...) @test_xor()
%6 = call i32 (...) @test_shift()
ret void
}
declare i32 @print(ptr noundef) #1
declare i32 @test_or(...) #1
declare i32 @test_and(...) #1
declare i32 @test_not(...) #1
declare i32 @test_xor(...) #1
declare i32 @test_shift(...) #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/tmp5jt11o20.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"bitwise operators\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testmain() #0 {
%1 = call i32 @print(ptr noundef @.str)
%2 = call i32 (...) @test_or()
%3 = call i32 (...) @test_and()
%4 = call i32 (...) @test_not()
%5 = call i32 (...) @test_xor()
%6 = call i32 (...) @test_shift()
ret void
}
declare i32 @print(ptr noundef) #1
declare i32 @test_or(...) #1
declare i32 @test_and(...) #1
declare i32 @test_not(...) #1
declare i32 @test_xor(...) #1
declare i32 @test_shift(...) #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_ilgaem7.c'
source_filename = "/tmp/tmp_ilgaem7.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 @bar(ptr noundef %0, i8 noundef signext %1, double noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca double, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i8 %1, ptr %6, align 1
store double %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
call void %9(ptr noundef null)
ret float -1.000000e+00
}
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/tmp_ilgaem7.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 @bar(ptr noundef %0, i8 noundef signext %1, double noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca double, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i8 %1, ptr %6, align 1
store double %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
call void %9(ptr noundef null)
ret float -1.000000e+00
}
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/tmpml5wpvvh.c'
source_filename = "/tmp/tmpml5wpvvh.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/tmpml5wpvvh.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/tmpnxaigb9o.c'
source_filename = "/tmp/tmpnxaigb9o.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 [23 x i8] c"You have no argument.\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Here's your arguments:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"You have too many arguments.\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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %38
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %35
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %35
17: ; preds = %14
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %6, align 4
br label %19
19: ; preds = %30, %17
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
br label %30
30: ; preds = %23
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
br label %19, !llvm.loop !6
33: ; preds = %19
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %37
35: ; preds = %14, %11
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %37
37: ; preds = %35, %33
br label %38
38: ; preds = %37, %9
ret i32 0
}
declare i32 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnxaigb9o.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 [23 x i8] c"You have no argument.\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Here's your arguments:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"You have too many arguments.\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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %40
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %37
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %37
17: ; preds = %14
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %35
.lr.ph: ; preds = %17
br label %22
22: ; preds = %.lr.ph, %29
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
br label %29
29: ; preds = %22
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %17
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %39
37: ; preds = %14, %11
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %39
39: ; preds = %37, %35
br label %40
40: ; preds = %39, %9
ret i32 0
}
declare i32 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2co4joiw.c'
source_filename = "/tmp/tmp2co4joiw.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 @papif_remove_events__(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = 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 ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %9, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 @PAPI_remove_events(i32 noundef %10, ptr noundef %11, i32 noundef %13)
%15 = load ptr, ptr %8, align 8
store i32 %14, ptr %15, align 4
ret void
}
declare i32 @PAPI_remove_events(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/tmp2co4joiw.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 @papif_remove_events__(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = 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 ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %9, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 @PAPI_remove_events(i32 noundef %10, ptr noundef %11, i32 noundef %13)
%15 = load ptr, ptr %8, align 8
store i32 %14, ptr %15, align 4
ret void
}
declare i32 @PAPI_remove_events(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/tmpsrdq8tly.c'
source_filename = "/tmp/tmpsrdq8tly.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"
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"error seek for copy\00", align 1
@EXIT_FAILURE = 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 [29 x i8] c"error reading for copy: eof\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"reading for copy\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"error writing for copy: eof\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"writing for copy\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @copy_bytes(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca [2048 x i8], align 16
%12 = alloca i64, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %7, align 8
%17 = load i32, ptr @SEEK_SET, align 4
%18 = call i32 @fseek(ptr noundef %15, i64 noundef %16, i32 noundef %17)
store i32 %18, ptr %9, align 4
br label %19
19: ; preds = %4
%20 = load i32, ptr %9, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = call i32 @perror(ptr noundef @.str)
%24 = load i32, ptr @EXIT_FAILURE, align 4
%25 = call i32 @exit(i32 noundef %24) #3
unreachable
26: ; preds = %19
br label %27
27: ; preds = %26
br label %28
28: ; preds = %86, %27
%29 = load i64, ptr %8, align 8
%30 = icmp sgt i64 %29, 0
br i1 %30, label %31, label %90
31: ; preds = %28
%32 = load i64, ptr %8, align 8
%33 = icmp ugt i64 %32, 2048
br i1 %33, label %34, label %35
34: ; preds = %31
br label %37
35: ; preds = %31
%36 = load i64, ptr %8, align 8
br label %37
37: ; preds = %35, %34
%38 = phi i64 [ 2048, %34 ], [ %36, %35 ]
store i64 %38, ptr %12, align 8
%39 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
%40 = load i64, ptr %12, align 8
%41 = load ptr, ptr %5, align 8
%42 = call i64 @fread(ptr noundef %39, i32 noundef 1, i64 noundef %40, ptr noundef %41)
store i64 %42, ptr %10, align 8
br label %43
43: ; preds = %37
%44 = load i64, ptr %10, align 8
%45 = load i64, ptr %12, align 8
%46 = icmp ne i64 %44, %45
br i1 %46, label %47, label %61
47: ; preds = %43
%48 = load i32, ptr @errno, align 4
store i32 %48, ptr %13, align 4
%49 = load ptr, ptr %5, align 8
%50 = call i64 @feof(ptr noundef %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %47
%53 = load i32, ptr @stderr, align 4
%54 = call i32 @fprintf(i32 noundef %53, ptr noundef @.str.1)
br label %58
55: ; preds = %47
%56 = load i32, ptr %13, align 4
store i32 %56, ptr @errno, align 4
%57 = call i32 @perror(ptr noundef @.str.2)
br label %58
58: ; preds = %55, %52
%59 = load i32, ptr @EXIT_FAILURE, align 4
%60 = call i32 @exit(i32 noundef %59) #3
unreachable
61: ; preds = %43
br label %62
62: ; preds = %61
%63 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
%64 = load i64, ptr %12, align 8
%65 = load ptr, ptr %6, align 8
%66 = call i64 @fwrite(ptr noundef %63, i32 noundef 1, i64 noundef %64, ptr noundef %65)
store i64 %66, ptr %10, align 8
br label %67
67: ; preds = %62
%68 = load i64, ptr %10, align 8
%69 = load i64, ptr %12, align 8
%70 = icmp ne i64 %68, %69
br i1 %70, label %71, label %85
71: ; preds = %67
%72 = load i32, ptr @errno, align 4
store i32 %72, ptr %14, align 4
%73 = load ptr, ptr %6, align 8
%74 = call i64 @feof(ptr noundef %73)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %79
76: ; preds = %71
%77 = load i32, ptr @stderr, align 4
%78 = call i32 @fprintf(i32 noundef %77, ptr noundef @.str.3)
br label %82
79: ; preds = %71
%80 = load i32, ptr %14, align 4
store i32 %80, ptr @errno, align 4
%81 = call i32 @perror(ptr noundef @.str.4)
br label %82
82: ; preds = %79, %76
%83 = load i32, ptr @EXIT_FAILURE, align 4
%84 = call i32 @exit(i32 noundef %83) #3
unreachable
85: ; preds = %67
br label %86
86: ; preds = %85
%87 = load i64, ptr %12, align 8
%88 = load i64, ptr %8, align 8
%89 = sub nsw i64 %88, %87
store i64 %89, ptr %8, align 8
br label %28, !llvm.loop !6
90: ; preds = %28
ret void
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @fwrite(ptr noundef, i32 noundef, i64 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" }
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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsrdq8tly.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"
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"error seek for copy\00", align 1
@EXIT_FAILURE = 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 [29 x i8] c"error reading for copy: eof\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"reading for copy\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"error writing for copy: eof\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"writing for copy\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @copy_bytes(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca [2048 x i8], align 16
%12 = alloca i64, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %7, align 8
%17 = load i32, ptr @SEEK_SET, align 4
%18 = call i32 @fseek(ptr noundef %15, i64 noundef %16, i32 noundef %17)
store i32 %18, ptr %9, align 4
br label %19
19: ; preds = %4
%20 = load i32, ptr %9, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = call i32 @perror(ptr noundef @.str)
%24 = load i32, ptr @EXIT_FAILURE, align 4
%25 = call i32 @exit(i32 noundef %24) #3
unreachable
26: ; preds = %19
br label %27
27: ; preds = %26
%28 = load i64, ptr %8, align 8
%29 = icmp sgt i64 %28, 0
br i1 %29, label %.lr.ph, label %91
.lr.ph: ; preds = %27
br label %30
30: ; preds = %.lr.ph, %85
%31 = load i64, ptr %8, align 8
%32 = icmp ugt i64 %31, 2048
br i1 %32, label %33, label %34
33: ; preds = %30
br label %36
34: ; preds = %30
%35 = load i64, ptr %8, align 8
br label %36
36: ; preds = %34, %33
%37 = phi i64 [ 2048, %33 ], [ %35, %34 ]
store i64 %37, ptr %12, align 8
%38 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
%39 = load i64, ptr %12, align 8
%40 = load ptr, ptr %5, align 8
%41 = call i64 @fread(ptr noundef %38, i32 noundef 1, i64 noundef %39, ptr noundef %40)
store i64 %41, ptr %10, align 8
br label %42
42: ; preds = %36
%43 = load i64, ptr %10, align 8
%44 = load i64, ptr %12, align 8
%45 = icmp ne i64 %43, %44
br i1 %45, label %46, label %60
46: ; preds = %42
%47 = load i32, ptr @errno, align 4
store i32 %47, ptr %13, align 4
%48 = load ptr, ptr %5, align 8
%49 = call i64 @feof(ptr noundef %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %46
%52 = load i32, ptr @stderr, align 4
%53 = call i32 @fprintf(i32 noundef %52, ptr noundef @.str.1)
br label %57
54: ; preds = %46
%55 = load i32, ptr %13, align 4
store i32 %55, ptr @errno, align 4
%56 = call i32 @perror(ptr noundef @.str.2)
br label %57
57: ; preds = %54, %51
%58 = load i32, ptr @EXIT_FAILURE, align 4
%59 = call i32 @exit(i32 noundef %58) #3
unreachable
60: ; preds = %42
br label %61
61: ; preds = %60
%62 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
%63 = load i64, ptr %12, align 8
%64 = load ptr, ptr %6, align 8
%65 = call i64 @fwrite(ptr noundef %62, i32 noundef 1, i64 noundef %63, ptr noundef %64)
store i64 %65, ptr %10, align 8
br label %66
66: ; preds = %61
%67 = load i64, ptr %10, align 8
%68 = load i64, ptr %12, align 8
%69 = icmp ne i64 %67, %68
br i1 %69, label %70, label %84
70: ; preds = %66
%71 = load i32, ptr @errno, align 4
store i32 %71, ptr %14, align 4
%72 = load ptr, ptr %6, align 8
%73 = call i64 @feof(ptr noundef %72)
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %70
%76 = load i32, ptr @stderr, align 4
%77 = call i32 @fprintf(i32 noundef %76, ptr noundef @.str.3)
br label %81
78: ; preds = %70
%79 = load i32, ptr %14, align 4
store i32 %79, ptr @errno, align 4
%80 = call i32 @perror(ptr noundef @.str.4)
br label %81
81: ; preds = %78, %75
%82 = load i32, ptr @EXIT_FAILURE, align 4
%83 = call i32 @exit(i32 noundef %82) #3
unreachable
84: ; preds = %66
br label %85
85: ; preds = %84
%86 = load i64, ptr %12, align 8
%87 = load i64, ptr %8, align 8
%88 = sub nsw i64 %87, %86
store i64 %88, ptr %8, align 8
%89 = load i64, ptr %8, align 8
%90 = icmp sgt i64 %89, 0
br i1 %90, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %85
br label %91
91: ; preds = %._crit_edge, %27
ret void
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @fwrite(ptr noundef, i32 noundef, i64 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" }
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"}
|
; ModuleID = '/tmp/tmpy2ofsglg.c'
source_filename = "/tmp/tmpy2ofsglg.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 { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kbhit() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 8
%3 = alloca i32, align 4
%4 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
store i64 0, ptr %4, align 8
%5 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
store i64 0, ptr %5, align 8
%6 = call i32 @FD_ZERO(ptr noundef %3)
%7 = call i32 @FD_SET(i32 noundef 0, ptr noundef %3)
%8 = call i32 @select(i32 noundef 1, ptr noundef %3, ptr noundef null, ptr noundef null, ptr noundef %2)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 0, ptr %1, align 4
br label %16
11: ; preds = %0
%12 = call i64 @FD_ISSET(i32 noundef 0, ptr noundef %3)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 1, ptr %1, align 4
br label %16
15: ; preds = %11
store i32 0, ptr %1, align 4
br label %16
16: ; preds = %15, %14, %10
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(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/tmpy2ofsglg.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 { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kbhit() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 8
%3 = alloca i32, align 4
%4 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
store i64 0, ptr %4, align 8
%5 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
store i64 0, ptr %5, align 8
%6 = call i32 @FD_ZERO(ptr noundef %3)
%7 = call i32 @FD_SET(i32 noundef 0, ptr noundef %3)
%8 = call i32 @select(i32 noundef 1, ptr noundef %3, ptr noundef null, ptr noundef null, ptr noundef %2)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 0, ptr %1, align 4
br label %16
11: ; preds = %0
%12 = call i64 @FD_ISSET(i32 noundef 0, ptr noundef %3)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 1, ptr %1, align 4
br label %16
15: ; preds = %11
store i32 0, ptr %1, align 4
br label %16
16: ; preds = %15, %14, %10
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(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/tmph08sxwb7.c'
source_filename = "/tmp/tmph08sxwb7.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 @yahoo_f01_06(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = mul nsw i32 %6, 1253790541
%8 = add nsw i32 %7, 14185
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = call i32 @yahoo_M1Common(i32 noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @yahoo_M1Common(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/tmph08sxwb7.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 @yahoo_f01_06(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = mul nsw i32 %6, 1253790541
%8 = add nsw i32 %7, 14185
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = call i32 @yahoo_M1Common(i32 noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @yahoo_M1Common(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/tmpuzrhwp62.c'
source_filename = "/tmp/tmpuzrhwp62.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/tmpuzrhwp62.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/tmpf764y_z2.c'
source_filename = "/tmp/tmpf764y_z2.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.dirent = type { i32 }
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [17 x i8] c"Can't opendir %s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"..\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dir_empty(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 1, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = call ptr @opendir(ptr noundef %7)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %20
11: ; preds = %1
%12 = load i64, ptr @errno, align 8
%13 = load i64, ptr @ENOENT, align 8
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %11
store i32 1, ptr %2, align 4
br label %44
16: ; preds = %11
%17 = load i64, ptr @errno, align 8
%18 = load ptr, ptr %3, align 8
%19 = call i32 @logger(i32 noundef -1, i64 noundef %17, ptr noundef @.str, ptr noundef %18)
store i32 -1, ptr %2, align 4
br label %44
20: ; preds = %1
br label %21
21: ; preds = %38, %31, %20
%22 = load ptr, ptr %4, align 8
%23 = call ptr @readdir(ptr noundef %22)
store ptr %23, ptr %5, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %40
25: ; preds = %21
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds %struct.dirent, ptr %26, i32 0, i32 0
%28 = load i32, ptr %27, align 4
%29 = call i32 @strcmp(i32 noundef %28, ptr noundef @.str.1)
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %25
br label %21, !llvm.loop !6
32: ; preds = %25
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds %struct.dirent, ptr %33, i32 0, i32 0
%35 = load i32, ptr %34, align 4
%36 = call i32 @strcmp(i32 noundef %35, ptr noundef @.str.2)
%37 = icmp ne i32 %36, 0
br i1 %37, label %39, label %38
38: ; preds = %32
br label %21, !llvm.loop !6
39: ; preds = %32
store i32 0, ptr %6, align 4
br label %40
40: ; preds = %39, %21
%41 = load ptr, ptr %4, align 8
%42 = call i32 @closedir(ptr noundef %41)
%43 = load i32, ptr %6, align 4
store i32 %43, ptr %2, align 4
br label %44
44: ; preds = %40, %16, %15
%45 = load i32, ptr %2, align 4
ret i32 %45
}
declare ptr @opendir(ptr noundef) #1
declare i32 @logger(i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @closedir(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/tmpf764y_z2.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.dirent = type { i32 }
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [17 x i8] c"Can't opendir %s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"..\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dir_empty(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 1, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = call ptr @opendir(ptr noundef %7)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %20
11: ; preds = %1
%12 = load i64, ptr @errno, align 8
%13 = load i64, ptr @ENOENT, align 8
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %11
store i32 1, ptr %2, align 4
br label %46
16: ; preds = %11
%17 = load i64, ptr @errno, align 8
%18 = load ptr, ptr %3, align 8
%19 = call i32 @logger(i32 noundef -1, i64 noundef %17, ptr noundef @.str, ptr noundef %18)
store i32 -1, ptr %2, align 4
br label %46
20: ; preds = %1
%21 = load ptr, ptr %4, align 8
%22 = call ptr @readdir(ptr noundef %21)
store ptr %22, ptr %5, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %.backedge
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds %struct.dirent, ptr %25, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = call i32 @strcmp(i32 noundef %27, ptr noundef @.str.1)
%29 = icmp ne i32 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %24
br label %.backedge
.backedge: ; preds = %30, %40
%31 = load ptr, ptr %4, align 8
%32 = call ptr @readdir(ptr noundef %31)
store ptr %32, ptr %5, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %24, label %..loopexit_crit_edge, !llvm.loop !6
34: ; preds = %24
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds %struct.dirent, ptr %35, i32 0, i32 0
%37 = load i32, ptr %36, align 4
%38 = call i32 @strcmp(i32 noundef %37, ptr noundef @.str.2)
%39 = icmp ne i32 %38, 0
br i1 %39, label %41, label %40
40: ; preds = %34
br label %.backedge
41: ; preds = %34
store i32 0, ptr %6, align 4
br label %42
..loopexit_crit_edge: ; preds = %.backedge
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %20
br label %42
42: ; preds = %.loopexit, %41
%43 = load ptr, ptr %4, align 8
%44 = call i32 @closedir(ptr noundef %43)
%45 = load i32, ptr %6, align 4
store i32 %45, ptr %2, align 4
br label %46
46: ; preds = %42, %16, %15
%47 = load i32, ptr %2, align 4
ret i32 %47
}
declare ptr @opendir(ptr noundef) #1
declare i32 @logger(i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @closedir(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/tmpl692ep1b.c'
source_filename = "/tmp/tmpl692ep1b.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 @localfn() #0 {
%1 = call i32 (...) @other()
ret i32 %1
}
declare i32 @other(...) #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/tmpl692ep1b.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 @localfn() #0 {
%1 = call i32 (...) @other()
ret i32 %1
}
declare i32 @other(...) #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/tmpxeqsp9ed.c'
source_filename = "/tmp/tmpxeqsp9ed.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/tmpxeqsp9ed.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/tmpubyxfpe1.c'
source_filename = "/tmp/tmpubyxfpe1.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/tmpubyxfpe1.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/tmprm_n76ej.c'
source_filename = "/tmp/tmprm_n76ej.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/tmprm_n76ej.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/tmpcf7_hn0w.c'
source_filename = "/tmp/tmpcf7_hn0w.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 i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %8, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 5
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i32 (...) @Towers()
br label %8
8: ; preds = %6
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
br label %3, !llvm.loop !6
11: ; preds = %3
ret i32 0
}
declare i32 @Towers(...) #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/tmpcf7_hn0w.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 i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 5
br i1 %4, label %.lr.ph, label %12
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %7
%6 = call i32 (...) @Towers()
br label %7
7: ; preds = %5
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 5
br i1 %11, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %12
12: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @Towers(...) #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/tmplo6apuqb.c'
source_filename = "/tmp/tmplo6apuqb.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 @create_suffixes(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 1
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
%12 = call ptr @calloc(i32 noundef %9, i32 noundef %11)
store ptr %12, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %26, %1
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %29
17: ; preds = %13
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
store ptr %21, ptr %25, align 8
br label %26
26: ; preds = %17
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
br label %13, !llvm.loop !6
29: ; preds = %13
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
declare i32 @strlen(ptr noundef) #1
declare ptr @calloc(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplo6apuqb.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 @create_suffixes(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 1
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
%12 = call ptr @calloc(i32 noundef %9, i32 noundef %11)
store ptr %12, ptr %4, align 8
store i32 0, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %25
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
store ptr %20, ptr %24, align 8
br label %25
25: ; preds = %16
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %1
%32 = load ptr, ptr %4, align 8
ret ptr %32
}
declare i32 @strlen(ptr noundef) #1
declare ptr @calloc(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"}
|
; ModuleID = '/tmp/tmpfc15zrr6.c'
source_filename = "/tmp/tmpfc15zrr6.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 [44 x i8] c"Enter up to %d lines (type quit to quit): \0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"quit\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"%d strings entered\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x [81 x i8]], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef 100)
br label %5
5: ; preds = %24, %0
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 100
br i1 %7, label %8, label %22
8: ; preds = %5
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [100 x [81 x i8]], ptr %2, i64 0, i64 %10
%12 = getelementptr inbounds [81 x i8], ptr %11, i64 0, i64 0
%13 = call ptr @gets(ptr noundef %12)
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %22
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x [81 x i8]], ptr %2, i64 0, i64 %17
%19 = getelementptr inbounds [81 x i8], ptr %18, i64 0, i64 0
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str.1)
%21 = icmp ne i64 %20, 0
br label %22
22: ; preds = %15, %8, %5
%23 = phi i1 [ false, %8 ], [ false, %5 ], [ %21, %15 ]
br i1 %23, label %24, label %27
24: ; preds = %22
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %5, !llvm.loop !6
27: ; preds = %22
%28 = load i32, ptr %3, align 4
%29 = call i32 @printf(ptr noundef @.str.2, i32 noundef %28)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare ptr @gets(ptr noundef) #1
declare i64 @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/tmpfc15zrr6.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 [44 x i8] c"Enter up to %d lines (type quit to quit): \0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"quit\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"%d strings entered\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x [81 x i8]], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef 100)
br label %5
5: ; preds = %24, %0
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 100
br i1 %7, label %8, label %22
8: ; preds = %5
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [100 x [81 x i8]], ptr %2, i64 0, i64 %10
%12 = getelementptr inbounds [81 x i8], ptr %11, i64 0, i64 0
%13 = call ptr @gets(ptr noundef %12)
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %22
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x [81 x i8]], ptr %2, i64 0, i64 %17
%19 = getelementptr inbounds [81 x i8], ptr %18, i64 0, i64 0
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str.1)
%21 = icmp ne i64 %20, 0
br label %22
22: ; preds = %15, %8, %5
%23 = phi i1 [ false, %8 ], [ false, %5 ], [ %21, %15 ]
br i1 %23, label %24, label %27
24: ; preds = %22
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %5, !llvm.loop !6
27: ; preds = %22
%28 = load i32, ptr %3, align 4
%29 = call i32 @printf(ptr noundef @.str.2, i32 noundef %28)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare ptr @gets(ptr noundef) #1
declare i64 @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/tmpq4c0tpu8.c'
source_filename = "/tmp/tmpq4c0tpu8.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"
@EX_OSERR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"pipe() failed\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"fork() failed\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@EX_IOERR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"read() failed\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"write() to clipboard command failed\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [25 x i8] c"write() to STDOUT failed\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"waitpid() failed\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"dup2() to STDIN failed\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"CLIPBOARD\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"pbcopy\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"execlp() of %s failed\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 [4096 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x i32], align 4
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%9 = call i32 @pipe(ptr noundef %8)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, ptr @EX_OSERR, align 4
%13 = call i32 @err(i32 noundef %12, ptr noundef @.str)
br label %14
14: ; preds = %11, %0
%15 = call i64 (...) @vfork()
store i64 %15, ptr %6, align 8
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, ptr @EX_OSERR, align 4
%19 = call i32 @err(i32 noundef %18, ptr noundef @.str.1)
br label %115
20: ; preds = %14
%21 = load i64, ptr %6, align 8
%22 = icmp sgt i64 %21, 0
br i1 %22, label %23, label %68
23: ; preds = %20
%24 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%25 = load i32, ptr %24, align 4
%26 = call i32 @close(i32 noundef %25)
br label %27
27: ; preds = %23, %56
%28 = load i32, ptr @STDIN_FILENO, align 4
%29 = call i64 @read(i32 noundef %28, ptr noundef %2, i64 noundef 4096)
store i64 %29, ptr %7, align 8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, ptr @EX_IOERR, align 4
%33 = call i32 @err(i32 noundef %32, ptr noundef @.str.2)
br label %39
34: ; preds = %27
%35 = load i64, ptr %7, align 8
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
br label %57
38: ; preds = %34
br label %39
39: ; preds = %38, %31
%40 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%41 = load i32, ptr %40, align 4
%42 = load i64, ptr %7, align 8
%43 = call i32 @write(i32 noundef %41, ptr noundef %2, i64 noundef %42)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = load i32, ptr @EX_IOERR, align 4
%47 = call i32 @err(i32 noundef %46, ptr noundef @.str.3)
br label %48
48: ; preds = %45, %39
%49 = load i32, ptr @STDOUT_FILENO, align 4
%50 = load i64, ptr %7, align 8
%51 = call i32 @write(i32 noundef %49, ptr noundef %2, i64 noundef %50)
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = load i32, ptr @EX_IOERR, align 4
%55 = call i32 @err(i32 noundef %54, ptr noundef @.str.4)
br label %56
56: ; preds = %53, %48
br label %27
57: ; preds = %37
%58 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%59 = load i32, ptr %58, align 4
%60 = call i32 @close(i32 noundef %59)
%61 = load i64, ptr %6, align 8
%62 = call i64 @waitpid(i64 noundef %61, ptr noundef null, i32 noundef 0)
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %57
%65 = load i32, ptr @EX_OSERR, align 4
%66 = call i32 @err(i32 noundef %65, ptr noundef @.str.5)
br label %67
67: ; preds = %64, %57
br label %114
68: ; preds = %20
%69 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%70 = load i32, ptr %69, align 4
%71 = call i32 @close(i32 noundef %70)
%72 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%73 = load i32, ptr %72, align 4
%74 = load i32, ptr @STDIN_FILENO, align 4
%75 = icmp ne i32 %73, %74
br i1 %75, label %76, label %90
76: ; preds = %68
%77 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%78 = load i32, ptr %77, align 4
%79 = load i32, ptr @STDIN_FILENO, align 4
%80 = call i32 @dup2(i32 noundef %78, i32 noundef %79)
%81 = load i32, ptr @STDIN_FILENO, align 4
%82 = icmp ne i32 %80, %81
br i1 %82, label %83, label %86
83: ; preds = %76
%84 = load i32, ptr @EX_OSERR, align 4
%85 = call i32 @err(i32 noundef %84, ptr noundef @.str.6)
br label %86
86: ; preds = %83, %76
%87 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%88 = load i32, ptr %87, align 4
%89 = call i32 @close(i32 noundef %88)
br label %90
90: ; preds = %86, %68
%91 = call ptr @getenv(ptr noundef @.str.7)
store ptr %91, ptr %3, align 8
%92 = icmp eq ptr %91, null
br i1 %92, label %93, label %94
93: ; preds = %90
store ptr @.str.8, ptr %3, align 8
br label %94
94: ; preds = %93, %90
%95 = load ptr, ptr %3, align 8
%96 = call ptr @strrchr(ptr noundef %95, i8 noundef signext 47)
store ptr %96, ptr %4, align 8
%97 = icmp ne ptr %96, null
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = load ptr, ptr %4, align 8
%100 = getelementptr inbounds i8, ptr %99, i32 1
store ptr %100, ptr %4, align 8
br label %103
101: ; preds = %94
%102 = load ptr, ptr %3, align 8
store ptr %102, ptr %4, align 8
br label %103
103: ; preds = %101, %98
%104 = load ptr, ptr %3, align 8
%105 = load ptr, ptr %4, align 8
%106 = call i64 @execlp(ptr noundef %104, ptr noundef %105, ptr noundef null)
%107 = icmp slt i64 %106, 0
br i1 %107, label %108, label %113
108: ; preds = %103
%109 = load ptr, ptr %3, align 8
%110 = call i32 @warn(ptr noundef @.str.9, ptr noundef %109)
%111 = load i32, ptr @EX_OSERR, align 4
%112 = call i32 @_exit(i32 noundef %111) #3
unreachable
113: ; preds = %103
br label %114
114: ; preds = %113, %67
br label %115
115: ; preds = %114, %17
%116 = load i32, ptr @EXIT_SUCCESS, align 4
%117 = call i32 @exit(i32 noundef %116) #3
unreachable
}
declare i32 @pipe(ptr noundef) #1
declare i32 @err(i32 noundef, ptr noundef) #1
declare i64 @vfork(...) #1
declare i32 @close(i32 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare ptr @getenv(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i64 @execlp(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @warn(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #2
; 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/tmpq4c0tpu8.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"
@EX_OSERR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"pipe() failed\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"fork() failed\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@EX_IOERR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"read() failed\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"write() to clipboard command failed\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [25 x i8] c"write() to STDOUT failed\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"waitpid() failed\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"dup2() to STDIN failed\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"CLIPBOARD\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"pbcopy\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"execlp() of %s failed\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 [4096 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x i32], align 4
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%9 = call i32 @pipe(ptr noundef %8)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, ptr @EX_OSERR, align 4
%13 = call i32 @err(i32 noundef %12, ptr noundef @.str)
br label %14
14: ; preds = %11, %0
%15 = call i64 (...) @vfork()
store i64 %15, ptr %6, align 8
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, ptr @EX_OSERR, align 4
%19 = call i32 @err(i32 noundef %18, ptr noundef @.str.1)
br label %115
20: ; preds = %14
%21 = load i64, ptr %6, align 8
%22 = icmp sgt i64 %21, 0
br i1 %22, label %23, label %68
23: ; preds = %20
%24 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%25 = load i32, ptr %24, align 4
%26 = call i32 @close(i32 noundef %25)
br label %27
27: ; preds = %56, %23
%28 = load i32, ptr @STDIN_FILENO, align 4
%29 = call i64 @read(i32 noundef %28, ptr noundef %2, i64 noundef 4096)
store i64 %29, ptr %7, align 8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, ptr @EX_IOERR, align 4
%33 = call i32 @err(i32 noundef %32, ptr noundef @.str.2)
br label %39
34: ; preds = %27
%35 = load i64, ptr %7, align 8
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
br label %57
38: ; preds = %34
br label %39
39: ; preds = %38, %31
%40 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%41 = load i32, ptr %40, align 4
%42 = load i64, ptr %7, align 8
%43 = call i32 @write(i32 noundef %41, ptr noundef %2, i64 noundef %42)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = load i32, ptr @EX_IOERR, align 4
%47 = call i32 @err(i32 noundef %46, ptr noundef @.str.3)
br label %48
48: ; preds = %45, %39
%49 = load i32, ptr @STDOUT_FILENO, align 4
%50 = load i64, ptr %7, align 8
%51 = call i32 @write(i32 noundef %49, ptr noundef %2, i64 noundef %50)
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = load i32, ptr @EX_IOERR, align 4
%55 = call i32 @err(i32 noundef %54, ptr noundef @.str.4)
br label %56
56: ; preds = %53, %48
br label %27
57: ; preds = %37
%58 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%59 = load i32, ptr %58, align 4
%60 = call i32 @close(i32 noundef %59)
%61 = load i64, ptr %6, align 8
%62 = call i64 @waitpid(i64 noundef %61, ptr noundef null, i32 noundef 0)
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %57
%65 = load i32, ptr @EX_OSERR, align 4
%66 = call i32 @err(i32 noundef %65, ptr noundef @.str.5)
br label %67
67: ; preds = %64, %57
br label %114
68: ; preds = %20
%69 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%70 = load i32, ptr %69, align 4
%71 = call i32 @close(i32 noundef %70)
%72 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%73 = load i32, ptr %72, align 4
%74 = load i32, ptr @STDIN_FILENO, align 4
%75 = icmp ne i32 %73, %74
br i1 %75, label %76, label %90
76: ; preds = %68
%77 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%78 = load i32, ptr %77, align 4
%79 = load i32, ptr @STDIN_FILENO, align 4
%80 = call i32 @dup2(i32 noundef %78, i32 noundef %79)
%81 = load i32, ptr @STDIN_FILENO, align 4
%82 = icmp ne i32 %80, %81
br i1 %82, label %83, label %86
83: ; preds = %76
%84 = load i32, ptr @EX_OSERR, align 4
%85 = call i32 @err(i32 noundef %84, ptr noundef @.str.6)
br label %86
86: ; preds = %83, %76
%87 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%88 = load i32, ptr %87, align 4
%89 = call i32 @close(i32 noundef %88)
br label %90
90: ; preds = %86, %68
%91 = call ptr @getenv(ptr noundef @.str.7)
store ptr %91, ptr %3, align 8
%92 = icmp eq ptr %91, null
br i1 %92, label %93, label %94
93: ; preds = %90
store ptr @.str.8, ptr %3, align 8
br label %94
94: ; preds = %93, %90
%95 = load ptr, ptr %3, align 8
%96 = call ptr @strrchr(ptr noundef %95, i8 noundef signext 47)
store ptr %96, ptr %4, align 8
%97 = icmp ne ptr %96, null
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = load ptr, ptr %4, align 8
%100 = getelementptr inbounds i8, ptr %99, i32 1
store ptr %100, ptr %4, align 8
br label %103
101: ; preds = %94
%102 = load ptr, ptr %3, align 8
store ptr %102, ptr %4, align 8
br label %103
103: ; preds = %101, %98
%104 = load ptr, ptr %3, align 8
%105 = load ptr, ptr %4, align 8
%106 = call i64 @execlp(ptr noundef %104, ptr noundef %105, ptr noundef null)
%107 = icmp slt i64 %106, 0
br i1 %107, label %108, label %113
108: ; preds = %103
%109 = load ptr, ptr %3, align 8
%110 = call i32 @warn(ptr noundef @.str.9, ptr noundef %109)
%111 = load i32, ptr @EX_OSERR, align 4
%112 = call i32 @_exit(i32 noundef %111) #3
unreachable
113: ; preds = %103
br label %114
114: ; preds = %113, %67
br label %115
115: ; preds = %114, %17
%116 = load i32, ptr @EXIT_SUCCESS, align 4
%117 = call i32 @exit(i32 noundef %116) #3
unreachable
}
declare i32 @pipe(ptr noundef) #1
declare i32 @err(i32 noundef, ptr noundef) #1
declare i64 @vfork(...) #1
declare i32 @close(i32 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare ptr @getenv(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i64 @execlp(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @warn(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #2
; 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/tmp2rs11flb.c'
source_filename = "/tmp/tmp2rs11flb.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/tmp2rs11flb.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/tmprzmyuhh8.c'
source_filename = "/tmp/tmprzmyuhh8.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"1.insertion\0A2.deletion\0A3.exit\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menu() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @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/tmprzmyuhh8.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"1.insertion\0A2.deletion\0A3.exit\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menu() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @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/tmpa4o5ht66.c'
source_filename = "/tmp/tmpa4o5ht66.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.pollfd = type { i32, i32 }
@POLLIN = dso_local global i32 0, align 4
@POLLPRI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @serialHasChar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.pollfd, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = getelementptr inbounds %struct.pollfd, ptr %4, i32 0, i32 0
store i32 %5, ptr %6, align 4
%7 = load i32, ptr @POLLIN, align 4
%8 = load i32, ptr @POLLPRI, align 4
%9 = or i32 %7, %8
%10 = getelementptr inbounds %struct.pollfd, ptr %4, i32 0, i32 1
store i32 %9, ptr %10, align 4
%11 = call i64 @poll(ptr noundef %4, i32 noundef 1, i32 noundef 0)
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 1, ptr %2, align 4
br label %15
14: ; preds = %1
store i32 0, ptr %2, align 4
br label %15
15: ; preds = %14, %13
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i64 @poll(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa4o5ht66.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.pollfd = type { i32, i32 }
@POLLIN = dso_local global i32 0, align 4
@POLLPRI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @serialHasChar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.pollfd, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = getelementptr inbounds %struct.pollfd, ptr %4, i32 0, i32 0
store i32 %5, ptr %6, align 4
%7 = load i32, ptr @POLLIN, align 4
%8 = load i32, ptr @POLLPRI, align 4
%9 = or i32 %7, %8
%10 = getelementptr inbounds %struct.pollfd, ptr %4, i32 0, i32 1
store i32 %9, ptr %10, align 4
%11 = call i64 @poll(ptr noundef %4, i32 noundef 1, i32 noundef 0)
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 1, ptr %2, align 4
br label %15
14: ; preds = %1
store i32 0, ptr %2, align 4
br label %15
15: ; preds = %14, %13
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i64 @poll(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"}
|
; ModuleID = '/tmp/tmpqjmc3gvn.c'
source_filename = "/tmp/tmpqjmc3gvn.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.tm = type { i32, i32, i32, i32, i64, i64, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"pgtime:%s:%d: couldn't get calendar time.\0A\00", align 1
@.str.1 = private unnamed_addr constant [138 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/paulgriffiths/pgtime/refs/heads/master/pgtime.c\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_sec_diff() #0 {
%1 = alloca %struct.tm, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 4
store i64 0, ptr %4, align 8
%5 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 6
store i64 0, ptr %5, align 8
%6 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 0
store i32 12, ptr %6, align 8
%7 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 1
store i32 2, ptr %7, align 4
%8 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 5
store i64 0, ptr %8, align 8
%9 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 2
store i32 30, ptr %9, align 8
%10 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 3
store i32 -1, ptr %10, align 4
%11 = call i32 @mktime(ptr noundef %1)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %19
14: ; preds = %0
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 206)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %0
%20 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 4
%21 = load i64, ptr %20, align 8
%22 = add nsw i64 %21, 1
store i64 %22, ptr %20, align 8
%23 = call i32 @mktime(ptr noundef %1)
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %31
26: ; preds = %19
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 215)
%29 = load i32, ptr @EXIT_FAILURE, align 4
%30 = call i32 @exit(i32 noundef %29) #3
unreachable
31: ; preds = %19
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %2, align 4
%34 = sub nsw i32 %32, %33
ret i32 %34
}
declare i32 @mktime(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 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/tmpqjmc3gvn.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.tm = type { i32, i32, i32, i32, i64, i64, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"pgtime:%s:%d: couldn't get calendar time.\0A\00", align 1
@.str.1 = private unnamed_addr constant [138 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/paulgriffiths/pgtime/refs/heads/master/pgtime.c\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_sec_diff() #0 {
%1 = alloca %struct.tm, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 4
store i64 0, ptr %4, align 8
%5 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 6
store i64 0, ptr %5, align 8
%6 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 0
store i32 12, ptr %6, align 8
%7 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 1
store i32 2, ptr %7, align 4
%8 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 5
store i64 0, ptr %8, align 8
%9 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 2
store i32 30, ptr %9, align 8
%10 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 3
store i32 -1, ptr %10, align 4
%11 = call i32 @mktime(ptr noundef %1)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %19
14: ; preds = %0
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 206)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %0
%20 = getelementptr inbounds %struct.tm, ptr %1, i32 0, i32 4
%21 = load i64, ptr %20, align 8
%22 = add nsw i64 %21, 1
store i64 %22, ptr %20, align 8
%23 = call i32 @mktime(ptr noundef %1)
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %31
26: ; preds = %19
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 215)
%29 = load i32, ptr @EXIT_FAILURE, align 4
%30 = call i32 @exit(i32 noundef %29) #3
unreachable
31: ; preds = %19
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %2, align 4
%34 = sub nsw i32 %32, %33
ret i32 %34
}
declare i32 @mktime(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 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/tmp7epox8ao.c'
source_filename = "/tmp/tmp7epox8ao.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"Prevendita biglietti\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Inserisci il prezzo del biglietto: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"Provvigione: %g\E2\82\AC\0APrezzo finale: %g\E2\82\AC\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%8 = load float, ptr %2, align 4
%9 = fdiv float %8, 1.000000e+02
%10 = fmul float %9, 1.500000e+01
store float %10, ptr %3, align 4
%11 = load float, ptr %2, align 4
%12 = load float, ptr %3, align 4
%13 = fadd float %11, %12
store float %13, ptr %4, align 4
%14 = load float, ptr %3, align 4
%15 = fpext float %14 to double
%16 = load float, ptr %4, align 4
%17 = fpext float %16 to double
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %15, double noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmp7epox8ao.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"Prevendita biglietti\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Inserisci il prezzo del biglietto: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"Provvigione: %g\E2\82\AC\0APrezzo finale: %g\E2\82\AC\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%8 = load float, ptr %2, align 4
%9 = fdiv float %8, 1.000000e+02
%10 = fmul float %9, 1.500000e+01
store float %10, ptr %3, align 4
%11 = load float, ptr %2, align 4
%12 = load float, ptr %3, align 4
%13 = fadd float %11, %12
store float %13, ptr %4, align 4
%14 = load float, ptr %3, align 4
%15 = fpext float %14 to double
%16 = load float, ptr %4, align 4
%17 = fpext float %16 to double
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %15, double noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmposle80gb.c'
source_filename = "/tmp/tmposle80gb.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 [9 x i8] c"PRE_PIPE\00", align 1
@S_IFIFO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"pipe1\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"pipe2\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"POST_PIPE\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"w\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
%3 = alloca ptr, align 8
%4 = alloca [80 x i8], align 16
%5 = alloca [80 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca [2 x i32], align 4
%9 = alloca [2 x i32], align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 80, i1 false)
%13 = call i32 @umask(i32 noundef 0)
%14 = load i32, ptr @S_IFIFO, align 4
%15 = or i32 %14, 438
%16 = call i32 @mknod(ptr noundef @.str, i32 noundef %15, i32 noundef 0)
br label %17
17: ; preds = %0, %143
%18 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%19 = call i32 @clearBuffer(ptr noundef %18)
%20 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%21 = call i32 @clearBuffer(ptr noundef %20)
%22 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %22, ptr %2, align 8
%23 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%24 = load ptr, ptr %2, align 8
%25 = call i32 @fgets(ptr noundef %23, i32 noundef 80, ptr noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = call i32 @fclose(ptr noundef %26)
%28 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%29 = call i64 @pipe(ptr noundef %28)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %17
%32 = call i32 @perror(ptr noundef @.str.2)
%33 = call i32 @exit(i32 noundef 1) #4
unreachable
34: ; preds = %17
%35 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%36 = call i64 @pipe(ptr noundef %35)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = call i32 @perror(ptr noundef @.str.3)
%40 = call i32 @exit(i32 noundef 1) #4
unreachable
41: ; preds = %34
%42 = call i64 (...) @fork()
store i64 %42, ptr %6, align 8
%43 = load i64, ptr %6, align 8
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = call i32 @perror(ptr noundef @.str.4)
%47 = call i32 @exit(i32 noundef 2) #4
unreachable
48: ; preds = %41
%49 = load i64, ptr %6, align 8
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %115
51: ; preds = %48
%52 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
%53 = load i32, ptr %52, align 4
%54 = call i32 @close(i32 noundef %53)
%55 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%56 = load i32, ptr %55, align 4
%57 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%58 = call i64 @read(i32 noundef %56, ptr noundef %57, i32 noundef 80)
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %51
%61 = call i32 @perror(ptr noundef @.str.5)
%62 = call i32 @exit(i32 noundef 3) #4
unreachable
63: ; preds = %51
store i32 0, ptr %11, align 4
store i32 0, ptr %10, align 4
br label %64
64: ; preds = %93, %63
%65 = load i32, ptr %10, align 4
%66 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%67 = call i32 @strlen(ptr noundef %66)
%68 = icmp slt i32 %65, %67
br i1 %68, label %69, label %96
69: ; preds = %64
%70 = load i32, ptr %10, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %71
%73 = load i8, ptr %72, align 1
%74 = call signext i8 @tolower(i8 noundef signext %73)
%75 = load i32, ptr %10, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %76
store i8 %74, ptr %77, align 1
%78 = load i32, ptr %10, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %79
%81 = load i8, ptr %80, align 1
store i8 %81, ptr %12, align 1
%82 = load i8, ptr %12, align 1
%83 = call i64 @isNotVowel(i8 noundef signext %82)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %92
85: ; preds = %69
%86 = load i8, ptr %12, align 1
%87 = load i32, ptr %11, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %88
store i8 %86, ptr %89, align 1
%90 = load i32, ptr %11, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %11, align 4
br label %92
92: ; preds = %85, %69
br label %93
93: ; preds = %92
%94 = load i32, ptr %10, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %10, align 4
br label %64, !llvm.loop !6
96: ; preds = %64
%97 = load i32, ptr %11, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %98
store i8 0, ptr %99, align 1
%100 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%101 = load i32, ptr %100, align 4
%102 = call i32 @close(i32 noundef %101)
%103 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%104 = load i32, ptr %103, align 4
%105 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%106 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%107 = call i32 @strlen(ptr noundef %106)
%108 = call i64 @write(i32 noundef %104, ptr noundef %105, i32 noundef %107)
%109 = icmp slt i64 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %96
%111 = call i32 @perror(ptr noundef @.str.6)
%112 = call i32 @exit(i32 noundef 4) #4
unreachable
113: ; preds = %96
%114 = call i32 @exit(i32 noundef 0) #4
unreachable
115: ; preds = %48
%116 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%117 = load i32, ptr %116, align 4
%118 = call i32 @close(i32 noundef %117)
%119 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
%120 = load i32, ptr %119, align 4
%121 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%122 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%123 = call i32 @strlen(ptr noundef %122)
%124 = call i64 @write(i32 noundef %120, ptr noundef %121, i32 noundef %123)
%125 = icmp slt i64 %124, 0
br i1 %125, label %126, label %129
126: ; preds = %115
%127 = call i32 @perror(ptr noundef @.str.6)
%128 = call i32 @exit(i32 noundef 5) #4
unreachable
129: ; preds = %115
%130 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%131 = load i32, ptr %130, align 4
%132 = call i32 @close(i32 noundef %131)
%133 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%134 = load i32, ptr %133, align 4
%135 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%136 = call i64 @read(i32 noundef %134, ptr noundef %135, i32 noundef 80)
%137 = icmp slt i64 %136, 0
br i1 %137, label %138, label %141
138: ; preds = %129
%139 = call i32 @perror(ptr noundef @.str.5)
%140 = call i32 @exit(i32 noundef 6) #4
unreachable
141: ; preds = %129
br label %142
142: ; preds = %141
br label %143
143: ; preds = %142
%144 = call i32 @wait(ptr noundef %7)
%145 = call ptr @fopen(ptr noundef @.str.7, ptr noundef @.str.8)
store ptr %145, ptr %3, align 8
%146 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%147 = load ptr, ptr %3, align 8
%148 = call i32 @fputs(ptr noundef %146, ptr noundef %147)
%149 = load ptr, ptr %3, align 8
%150 = call i32 @fclose(ptr noundef %149)
br label %17
}
; 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 @umask(i32 noundef) #2
declare i32 @mknod(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @clearBuffer(ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i64 @pipe(ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @fork(...) #2
declare i32 @close(i32 noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare signext i8 @tolower(i8 noundef signext) #2
declare i64 @isNotVowel(i8 noundef signext) #2
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @wait(ptr noundef) #2
declare i32 @fputs(ptr 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: 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" }
attributes #3 = { 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 #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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmposle80gb.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 [9 x i8] c"PRE_PIPE\00", align 1
@S_IFIFO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"pipe1\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"pipe2\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"POST_PIPE\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"w\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
%3 = alloca ptr, align 8
%4 = alloca [80 x i8], align 16
%5 = alloca [80 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca [2 x i32], align 4
%9 = alloca [2 x i32], align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 80, i1 false)
%13 = call i32 @umask(i32 noundef 0)
%14 = load i32, ptr @S_IFIFO, align 4
%15 = or i32 %14, 438
%16 = call i32 @mknod(ptr noundef @.str, i32 noundef %15, i32 noundef 0)
br label %17
17: ; preds = %145, %0
%18 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%19 = call i32 @clearBuffer(ptr noundef %18)
%20 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%21 = call i32 @clearBuffer(ptr noundef %20)
%22 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %22, ptr %2, align 8
%23 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%24 = load ptr, ptr %2, align 8
%25 = call i32 @fgets(ptr noundef %23, i32 noundef 80, ptr noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = call i32 @fclose(ptr noundef %26)
%28 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%29 = call i64 @pipe(ptr noundef %28)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %17
%32 = call i32 @perror(ptr noundef @.str.2)
%33 = call i32 @exit(i32 noundef 1) #4
unreachable
34: ; preds = %17
%35 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%36 = call i64 @pipe(ptr noundef %35)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = call i32 @perror(ptr noundef @.str.3)
%40 = call i32 @exit(i32 noundef 1) #4
unreachable
41: ; preds = %34
%42 = call i64 (...) @fork()
store i64 %42, ptr %6, align 8
%43 = load i64, ptr %6, align 8
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = call i32 @perror(ptr noundef @.str.4)
%47 = call i32 @exit(i32 noundef 2) #4
unreachable
48: ; preds = %41
%49 = load i64, ptr %6, align 8
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %117
51: ; preds = %48
%52 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
%53 = load i32, ptr %52, align 4
%54 = call i32 @close(i32 noundef %53)
%55 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%56 = load i32, ptr %55, align 4
%57 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%58 = call i64 @read(i32 noundef %56, ptr noundef %57, i32 noundef 80)
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %51
%61 = call i32 @perror(ptr noundef @.str.5)
%62 = call i32 @exit(i32 noundef 3) #4
unreachable
63: ; preds = %51
store i32 0, ptr %11, align 4
store i32 0, ptr %10, align 4
%64 = load i32, ptr %10, align 4
%65 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%66 = call i32 @strlen(ptr noundef %65)
%67 = icmp slt i32 %64, %66
br i1 %67, label %.lr.ph, label %98
.lr.ph: ; preds = %63
br label %68
68: ; preds = %.lr.ph, %92
%69 = load i32, ptr %10, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %70
%72 = load i8, ptr %71, align 1
%73 = call signext i8 @tolower(i8 noundef signext %72)
%74 = load i32, ptr %10, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %75
store i8 %73, ptr %76, align 1
%77 = load i32, ptr %10, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %78
%80 = load i8, ptr %79, align 1
store i8 %80, ptr %12, align 1
%81 = load i8, ptr %12, align 1
%82 = call i64 @isNotVowel(i8 noundef signext %81)
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %91
84: ; preds = %68
%85 = load i8, ptr %12, align 1
%86 = load i32, ptr %11, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %87
store i8 %85, ptr %88, align 1
%89 = load i32, ptr %11, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %11, align 4
br label %91
91: ; preds = %84, %68
br label %92
92: ; preds = %91
%93 = load i32, ptr %10, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %10, align 4
%95 = load i32, ptr %10, align 4
%96 = call i32 @strlen(ptr noundef %65)
%97 = icmp slt i32 %95, %96
br i1 %97, label %68, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %92
br label %98
98: ; preds = %._crit_edge, %63
%99 = load i32, ptr %11, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %100
store i8 0, ptr %101, align 1
%102 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%103 = load i32, ptr %102, align 4
%104 = call i32 @close(i32 noundef %103)
%105 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%106 = load i32, ptr %105, align 4
%107 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%108 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%109 = call i32 @strlen(ptr noundef %108)
%110 = call i64 @write(i32 noundef %106, ptr noundef %107, i32 noundef %109)
%111 = icmp slt i64 %110, 0
br i1 %111, label %112, label %115
112: ; preds = %98
%113 = call i32 @perror(ptr noundef @.str.6)
%114 = call i32 @exit(i32 noundef 4) #4
unreachable
115: ; preds = %98
%116 = call i32 @exit(i32 noundef 0) #4
unreachable
117: ; preds = %48
%118 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%119 = load i32, ptr %118, align 4
%120 = call i32 @close(i32 noundef %119)
%121 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
%122 = load i32, ptr %121, align 4
%123 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%124 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%125 = call i32 @strlen(ptr noundef %124)
%126 = call i64 @write(i32 noundef %122, ptr noundef %123, i32 noundef %125)
%127 = icmp slt i64 %126, 0
br i1 %127, label %128, label %131
128: ; preds = %117
%129 = call i32 @perror(ptr noundef @.str.6)
%130 = call i32 @exit(i32 noundef 5) #4
unreachable
131: ; preds = %117
%132 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%133 = load i32, ptr %132, align 4
%134 = call i32 @close(i32 noundef %133)
%135 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%136 = load i32, ptr %135, align 4
%137 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%138 = call i64 @read(i32 noundef %136, ptr noundef %137, i32 noundef 80)
%139 = icmp slt i64 %138, 0
br i1 %139, label %140, label %143
140: ; preds = %131
%141 = call i32 @perror(ptr noundef @.str.5)
%142 = call i32 @exit(i32 noundef 6) #4
unreachable
143: ; preds = %131
br label %144
144: ; preds = %143
br label %145
145: ; preds = %144
%146 = call i32 @wait(ptr noundef %7)
%147 = call ptr @fopen(ptr noundef @.str.7, ptr noundef @.str.8)
store ptr %147, ptr %3, align 8
%148 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%149 = load ptr, ptr %3, align 8
%150 = call i32 @fputs(ptr noundef %148, ptr noundef %149)
%151 = load ptr, ptr %3, align 8
%152 = call i32 @fclose(ptr noundef %151)
br label %17
}
; 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 @umask(i32 noundef) #2
declare i32 @mknod(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @clearBuffer(ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i64 @pipe(ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @fork(...) #2
declare i32 @close(i32 noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare signext i8 @tolower(i8 noundef signext) #2
declare i64 @isNotVowel(i8 noundef signext) #2
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @wait(ptr noundef) #2
declare i32 @fputs(ptr 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: 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" }
attributes #3 = { 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 #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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.