llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpn9g9dkz3.c'
source_filename = "/tmp/tmpn9g9dkz3.c"
target datalayout = "e-m:e-p270: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 @itoa(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 i8, align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, -2147483648
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
store i8 1, ptr %7, align 1
br label %13
13: ; preds = %10, %2
%14 = load i32, ptr %3, align 4
store i32 %14, ptr %6, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 0, %17
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %16, %13
store i32 0, ptr %5, align 4
br label %20
20: ; preds = %43, %19
%21 = load i32, ptr %3, align 4
%22 = srem i32 %21, 10
%23 = add nsw i32 %22, 48
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = sext i32 %26 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
store i8 %24, ptr %29, align 1
%30 = load i8, ptr %7, align 1
%31 = icmp ne i8 %30, 0
br i1 %31, label %32, label %42
32: ; preds = %20
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %5, align 4
%35 = sub nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %33, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = add nsw i32 %39, 1
%41 = trunc i32 %40 to i8
store i8 %41, ptr %37, align 1
store i8 0, ptr %7, align 1
br label %42
42: ; preds = %32, %20
br label %43
43: ; preds = %42
%44 = load i32, ptr %3, align 4
%45 = sdiv i32 %44, 10
store i32 %45, ptr %3, align 4
%46 = icmp sgt i32 %45, 0
br i1 %46, label %20, label %47, !llvm.loop !6
47: ; preds = %43
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %47
%51 = load ptr, ptr %4, align 8
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %5, align 4
%54 = sext i32 %52 to i64
%55 = getelementptr inbounds i8, ptr %51, i64 %54
store i8 45, ptr %55, align 1
br label %56
56: ; preds = %50, %47
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %5, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
store i8 0, ptr %60, align 1
%61 = load ptr, ptr %4, align 8
%62 = call i32 @reverse(ptr noundef %61)
ret void
}
declare i32 @reverse(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/tmpn9g9dkz3.c"
target datalayout = "e-m:e-p270: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 @itoa(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 i8, align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, -2147483648
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
store i8 1, ptr %7, align 1
br label %13
13: ; preds = %10, %2
%14 = load i32, ptr %3, align 4
store i32 %14, ptr %6, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 0, %17
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %16, %13
store i32 0, ptr %5, align 4
br label %20
20: ; preds = %43, %19
%21 = load i32, ptr %3, align 4
%22 = srem i32 %21, 10
%23 = add nsw i32 %22, 48
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = sext i32 %26 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
store i8 %24, ptr %29, align 1
%30 = load i8, ptr %7, align 1
%31 = icmp ne i8 %30, 0
br i1 %31, label %32, label %42
32: ; preds = %20
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %5, align 4
%35 = sub nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %33, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = add nsw i32 %39, 1
%41 = trunc i32 %40 to i8
store i8 %41, ptr %37, align 1
store i8 0, ptr %7, align 1
br label %42
42: ; preds = %32, %20
br label %43
43: ; preds = %42
%44 = load i32, ptr %3, align 4
%45 = sdiv i32 %44, 10
store i32 %45, ptr %3, align 4
%46 = icmp sgt i32 %45, 0
br i1 %46, label %20, label %47, !llvm.loop !6
47: ; preds = %43
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %47
%51 = load ptr, ptr %4, align 8
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %5, align 4
%54 = sext i32 %52 to i64
%55 = getelementptr inbounds i8, ptr %51, i64 %54
store i8 45, ptr %55, align 1
br label %56
56: ; preds = %50, %47
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %5, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
store i8 0, ptr %60, align 1
%61 = load ptr, ptr %4, align 8
%62 = call i32 @reverse(ptr noundef %61)
ret void
}
declare i32 @reverse(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/tmpfkdxkkk8.c'
source_filename = "/tmp/tmpfkdxkkk8.c"
target datalayout = "e-m:e-p270: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"trivial\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 [256 x i8], align 16
%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 0, ptr %7, align 4
br label %8
8: ; preds = %17, %2
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 256
br i1 %10, label %11, label %20
11: ; preds = %8
%12 = load i32, ptr %7, align 4
%13 = trunc i32 %12 to i8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %15
store i8 %13, ptr %16, align 1
br label %17
17: ; preds = %11
%18 = load i32, ptr %7, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %7, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%22 = call i32 @dump_file(ptr noundef @.str, ptr noundef %21, i32 noundef 256)
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i32 @dump_file(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfkdxkkk8.c"
target datalayout = "e-m:e-p270: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"trivial\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 [256 x i8], align 16
%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 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = icmp slt i32 %8, 256
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %16
%11 = load i32, ptr %7, align 4
%12 = trunc i32 %11 to i8
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %14
store i8 %12, ptr %15, align 1
br label %16
16: ; preds = %10
%17 = load i32, ptr %7, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %19, 256
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %2
%22 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%23 = call i32 @dump_file(ptr noundef @.str, ptr noundef %22, i32 noundef 256)
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @dump_file(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvx3_mw8o.c'
source_filename = "/tmp/tmpvx3_mw8o.c"
target datalayout = "e-m:e-p270: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.ip = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.udphdr = type { i32, i32, i32 }
@__const.main.data = private unnamed_addr constant <{ [45 x i32], [15 x i32] }> <{ [45 x i32] [i32 69, i32 0, i32 0, i32 46, i32 0, i32 12, i32 0, i32 0, i32 64, i32 17, i32 88, i32 40, i32 12, i32 33, i32 16, i32 221, i32 12, i32 32, i32 249, i32 109, i32 15, i32 167, i32 15, i32 167, i32 0, i32 26, i32 15, i32 202, i32 0, i32 16, i32 224, i32 0, i32 153, i32 4, i32 13, i32 0, i32 10, i32 0, i32 66, i32 0, i32 69, i32 0, i32 69, i32 0, i32 82], [15 x i32] zeroinitializer }>, align 16
@.str = private unnamed_addr constant [4 x i8] c"\0A\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"full packet: \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%.2x\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"len %u (%u)\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"hlen %u\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"ver %u\0A\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"ttl %u\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"proto %u\0A\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"src: %s\0A\00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"dst: %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [11 x i8] c"sport: %u\0A\00", align 1
@.str.12 = private unnamed_addr constant [11 x i8] c"dport: %u\0A\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"ulen: %u\0A\00", align 1
@.str.14 = private unnamed_addr constant [10 x i8] c"payload: \00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c"msg: \00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [60 x i32], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.data, i64 240, i1 false)
%6 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 0
store ptr %6, ptr %3, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %19, %0
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = icmp ult i64 %11, 240
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17)
br label %19
19: ; preds = %13
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds %struct.ip, ptr %24, i32 0, i32 6
%26 = load i32, ptr %25, align 4
%27 = call i32 @ntohs(i32 noundef %26)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %27, i64 noundef 240)
%29 = load ptr, ptr %3, align 8
%30 = getelementptr inbounds %struct.ip, ptr %29, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %31)
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds %struct.ip, ptr %33, i32 0, i32 1
%35 = load i32, ptr %34, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %35)
%37 = load ptr, ptr %3, align 8
%38 = getelementptr inbounds %struct.ip, ptr %37, i32 0, i32 2
%39 = load i32, ptr %38, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %39)
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds %struct.ip, ptr %41, i32 0, i32 3
%43 = load i32, ptr %42, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %43)
%45 = load ptr, ptr %3, align 8
%46 = getelementptr inbounds %struct.ip, ptr %45, i32 0, i32 5
%47 = call ptr @comm_get_ip_str(ptr noundef %46)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %47)
%49 = load ptr, ptr %3, align 8
%50 = getelementptr inbounds %struct.ip, ptr %49, i32 0, i32 4
%51 = call ptr @comm_get_ip_str(ptr noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %51)
%53 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 0
%54 = load ptr, ptr %3, align 8
%55 = getelementptr inbounds %struct.ip, ptr %54, i32 0, i32 0
%56 = load i32, ptr %55, align 4
%57 = mul nsw i32 %56, 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %53, i64 %58
store ptr %59, ptr %4, align 8
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds %struct.udphdr, ptr %61, i32 0, i32 2
%63 = load i32, ptr %62, align 4
%64 = call i32 @ntohs(i32 noundef %63)
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %64)
%66 = load ptr, ptr %4, align 8
%67 = getelementptr inbounds %struct.udphdr, ptr %66, i32 0, i32 1
%68 = load i32, ptr %67, align 4
%69 = call i32 @ntohs(i32 noundef %68)
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %69)
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds %struct.udphdr, ptr %71, i32 0, i32 0
%73 = load i32, ptr %72, align 4
%74 = call i32 @ntohs(i32 noundef %73)
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %74)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
store i32 0, ptr %5, align 4
br label %77
77: ; preds = %100, %22
%78 = load i32, ptr %5, align 4
%79 = sext i32 %78 to i64
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds %struct.udphdr, ptr %80, i32 0, i32 0
%82 = load i32, ptr %81, align 4
%83 = call i32 @ntohs(i32 noundef %82)
%84 = sext i32 %83 to i64
%85 = sub i64 %84, 12
%86 = icmp ult i64 %79, %85
br i1 %86, label %87, label %103
87: ; preds = %77
%88 = load ptr, ptr %3, align 8
%89 = getelementptr inbounds %struct.ip, ptr %88, i32 0, i32 0
%90 = load i32, ptr %89, align 4
%91 = mul nsw i32 %90, 4
%92 = sext i32 %91 to i64
%93 = add i64 %92, 12
%94 = load i32, ptr %5, align 4
%95 = sext i32 %94 to i64
%96 = add i64 %93, %95
%97 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %96
%98 = load i32, ptr %97, align 4
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %98)
br label %100
100: ; preds = %87
%101 = load i32, ptr %5, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %5, align 4
br label %77, !llvm.loop !8
103: ; preds = %77
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
store i32 0, ptr %5, align 4
br label %106
106: ; preds = %135, %103
%107 = load i32, ptr %5, align 4
%108 = sext i32 %107 to i64
%109 = load ptr, ptr %4, align 8
%110 = getelementptr inbounds %struct.udphdr, ptr %109, i32 0, i32 0
%111 = load i32, ptr %110, align 4
%112 = call i32 @ntohs(i32 noundef %111)
%113 = sext i32 %112 to i64
%114 = sub i64 %113, 12
%115 = icmp ult i64 %108, %114
br i1 %115, label %116, label %138
116: ; preds = %106
%117 = load i32, ptr %5, align 4
%118 = srem i32 %117, 2
%119 = icmp eq i32 %118, 0
br i1 %119, label %120, label %134
120: ; preds = %116
%121 = load ptr, ptr %3, align 8
%122 = getelementptr inbounds %struct.ip, ptr %121, i32 0, i32 0
%123 = load i32, ptr %122, align 4
%124 = mul nsw i32 %123, 4
%125 = sext i32 %124 to i64
%126 = add i64 %125, 12
%127 = add i64 %126, 10
%128 = load i32, ptr %5, align 4
%129 = sext i32 %128 to i64
%130 = add i64 %127, %129
%131 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %130
%132 = load i32, ptr %131, align 4
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %132)
br label %134
134: ; preds = %120, %116
br label %135
135: ; preds = %134
%136 = load i32, ptr %5, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %5, align 4
br label %106, !llvm.loop !9
138: ; preds = %106
%139 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @ntohs(i32 noundef) #2
declare ptr @comm_get_ip_str(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvx3_mw8o.c"
target datalayout = "e-m:e-p270: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.ip = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.udphdr = type { i32, i32, i32 }
@__const.main.data = private unnamed_addr constant <{ [45 x i32], [15 x i32] }> <{ [45 x i32] [i32 69, i32 0, i32 0, i32 46, i32 0, i32 12, i32 0, i32 0, i32 64, i32 17, i32 88, i32 40, i32 12, i32 33, i32 16, i32 221, i32 12, i32 32, i32 249, i32 109, i32 15, i32 167, i32 15, i32 167, i32 0, i32 26, i32 15, i32 202, i32 0, i32 16, i32 224, i32 0, i32 153, i32 4, i32 13, i32 0, i32 10, i32 0, i32 66, i32 0, i32 69, i32 0, i32 69, i32 0, i32 82], [15 x i32] zeroinitializer }>, align 16
@.str = private unnamed_addr constant [4 x i8] c"\0A\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"full packet: \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%.2x\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"len %u (%u)\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"hlen %u\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"ver %u\0A\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"ttl %u\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"proto %u\0A\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"src: %s\0A\00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"dst: %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [11 x i8] c"sport: %u\0A\00", align 1
@.str.12 = private unnamed_addr constant [11 x i8] c"dport: %u\0A\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"ulen: %u\0A\00", align 1
@.str.14 = private unnamed_addr constant [10 x i8] c"payload: \00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c"msg: \00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [60 x i32], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.data, i64 240, i1 false)
%6 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 0
store ptr %6, ptr %3, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = icmp ult i64 %10, 240
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %18
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %12
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = icmp ult i64 %22, 240
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds %struct.ip, ptr %26, i32 0, i32 6
%28 = load i32, ptr %27, align 4
%29 = call i32 @ntohs(i32 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %29, i64 noundef 240)
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds %struct.ip, ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %33)
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds %struct.ip, ptr %35, i32 0, i32 1
%37 = load i32, ptr %36, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %37)
%39 = load ptr, ptr %3, align 8
%40 = getelementptr inbounds %struct.ip, ptr %39, i32 0, i32 2
%41 = load i32, ptr %40, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %41)
%43 = load ptr, ptr %3, align 8
%44 = getelementptr inbounds %struct.ip, ptr %43, i32 0, i32 3
%45 = load i32, ptr %44, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %45)
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds %struct.ip, ptr %47, i32 0, i32 5
%49 = call ptr @comm_get_ip_str(ptr noundef %48)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %49)
%51 = load ptr, ptr %3, align 8
%52 = getelementptr inbounds %struct.ip, ptr %51, i32 0, i32 4
%53 = call ptr @comm_get_ip_str(ptr noundef %52)
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %53)
%55 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 0
%56 = load ptr, ptr %3, align 8
%57 = getelementptr inbounds %struct.ip, ptr %56, i32 0, i32 0
%58 = load i32, ptr %57, align 4
%59 = mul nsw i32 %58, 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %55, i64 %60
store ptr %61, ptr %4, align 8
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%63 = load ptr, ptr %4, align 8
%64 = getelementptr inbounds %struct.udphdr, ptr %63, i32 0, i32 2
%65 = load i32, ptr %64, align 4
%66 = call i32 @ntohs(i32 noundef %65)
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %66)
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds %struct.udphdr, ptr %68, i32 0, i32 1
%70 = load i32, ptr %69, align 4
%71 = call i32 @ntohs(i32 noundef %70)
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %71)
%73 = load ptr, ptr %4, align 8
%74 = getelementptr inbounds %struct.udphdr, ptr %73, i32 0, i32 0
%75 = load i32, ptr %74, align 4
%76 = call i32 @ntohs(i32 noundef %75)
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %76)
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
store i32 0, ptr %5, align 4
%79 = load i32, ptr %5, align 4
%80 = sext i32 %79 to i64
%81 = load ptr, ptr %4, align 8
%82 = load i32, ptr %81, align 4
%83 = call i32 @ntohs(i32 noundef %82)
%84 = sext i32 %83 to i64
%85 = sub i64 %84, 12
%86 = icmp ult i64 %80, %85
br i1 %86, label %.lr.ph2, label %112
.lr.ph2: ; preds = %24
br label %87
87: ; preds = %.lr.ph2, %100
%88 = load ptr, ptr %3, align 8
%89 = getelementptr inbounds %struct.ip, ptr %88, i32 0, i32 0
%90 = load i32, ptr %89, align 4
%91 = mul nsw i32 %90, 4
%92 = sext i32 %91 to i64
%93 = add i64 %92, 12
%94 = load i32, ptr %5, align 4
%95 = sext i32 %94 to i64
%96 = add i64 %93, %95
%97 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %96
%98 = load i32, ptr %97, align 4
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %98)
br label %100
100: ; preds = %87
%101 = load i32, ptr %5, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %5, align 4
%103 = load i32, ptr %5, align 4
%104 = sext i32 %103 to i64
%105 = load ptr, ptr %4, align 8
%106 = getelementptr inbounds %struct.udphdr, ptr %105, i32 0, i32 0
%107 = load i32, ptr %106, align 4
%108 = call i32 @ntohs(i32 noundef %107)
%109 = sext i32 %108 to i64
%110 = sub i64 %109, 12
%111 = icmp ult i64 %104, %110
br i1 %111, label %87, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %100
br label %112
112: ; preds = %._crit_edge3, %24
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
store i32 0, ptr %5, align 4
%115 = load i32, ptr %5, align 4
%116 = sext i32 %115 to i64
%117 = load ptr, ptr %4, align 8
%118 = load i32, ptr %117, align 4
%119 = call i32 @ntohs(i32 noundef %118)
%120 = sext i32 %119 to i64
%121 = sub i64 %120, 12
%122 = icmp ult i64 %116, %121
br i1 %122, label %.lr.ph5, label %154
.lr.ph5: ; preds = %112
br label %123
123: ; preds = %.lr.ph5, %142
%124 = load i32, ptr %5, align 4
%125 = srem i32 %124, 2
%126 = icmp eq i32 %125, 0
br i1 %126, label %127, label %141
127: ; preds = %123
%128 = load ptr, ptr %3, align 8
%129 = getelementptr inbounds %struct.ip, ptr %128, i32 0, i32 0
%130 = load i32, ptr %129, align 4
%131 = mul nsw i32 %130, 4
%132 = sext i32 %131 to i64
%133 = add i64 %132, 12
%134 = add i64 %133, 10
%135 = load i32, ptr %5, align 4
%136 = sext i32 %135 to i64
%137 = add i64 %134, %136
%138 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %137
%139 = load i32, ptr %138, align 4
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %139)
br label %141
141: ; preds = %127, %123
br label %142
142: ; preds = %141
%143 = load i32, ptr %5, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %5, align 4
%145 = load i32, ptr %5, align 4
%146 = sext i32 %145 to i64
%147 = load ptr, ptr %4, align 8
%148 = getelementptr inbounds %struct.udphdr, ptr %147, i32 0, i32 0
%149 = load i32, ptr %148, align 4
%150 = call i32 @ntohs(i32 noundef %149)
%151 = sext i32 %150 to i64
%152 = sub i64 %151, 12
%153 = icmp ult i64 %146, %152
br i1 %153, label %123, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %142
br label %154
154: ; preds = %._crit_edge6, %112
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @ntohs(i32 noundef) #2
declare ptr @comm_get_ip_str(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpnrzgx4v7.c'
source_filename = "/tmp/tmpnrzgx4v7.c"
target datalayout = "e-m:e-p270: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 [51 x i8] c"usage: %s <original text> <pattern> <replacement>\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"allocation error\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 4
br i1 %8, label %9, label %16
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %13)
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 2
%22 = load ptr, ptr %21, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 3
%25 = load ptr, ptr %24, align 8
%26 = call ptr @replace(ptr noundef %19, ptr noundef %22, ptr noundef %25)
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %6, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %34
29: ; preds = %16
%30 = load ptr, ptr %6, align 8
%31 = call i32 @printf(ptr noundef @.str.1, ptr noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @free(ptr noundef %32)
br label %38
34: ; preds = %16
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.2)
%37 = call i32 @exit(i32 noundef -2) #3
unreachable
38: ; preds = %29
br label %39
39: ; preds = %38
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @replace(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpnrzgx4v7.c"
target datalayout = "e-m:e-p270: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 [51 x i8] c"usage: %s <original text> <pattern> <replacement>\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"allocation error\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 4
br i1 %8, label %9, label %16
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %13)
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 2
%22 = load ptr, ptr %21, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 3
%25 = load ptr, ptr %24, align 8
%26 = call ptr @replace(ptr noundef %19, ptr noundef %22, ptr noundef %25)
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %6, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %34
29: ; preds = %16
%30 = load ptr, ptr %6, align 8
%31 = call i32 @printf(ptr noundef @.str.1, ptr noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @free(ptr noundef %32)
br label %38
34: ; preds = %16
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.2)
%37 = call i32 @exit(i32 noundef -2) #3
unreachable
38: ; preds = %29
br label %39
39: ; preds = %38
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @replace(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp8yacf3o7.c'
source_filename = "/tmp/tmp8yacf3o7.c"
target datalayout = "e-m:e-p270: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 @board_yyfree(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 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8yacf3o7.c"
target datalayout = "e-m:e-p270: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 @board_yyfree(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 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa_wuid0f.c'
source_filename = "/tmp/tmpa_wuid0f.c"
target datalayout = "e-m:e-p270: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 @push_reg32(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 80, %3
%5 = call i32 @put8(i32 noundef %4)
ret void
}
declare i32 @put8(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/tmpa_wuid0f.c"
target datalayout = "e-m:e-p270: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 @push_reg32(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 80, %3
%5 = call i32 @put8(i32 noundef %4)
ret void
}
declare i32 @put8(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/tmpjfgxu9zn.c'
source_filename = "/tmp/tmpjfgxu9zn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjfgxu9zn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn13drp2j.c'
source_filename = "/tmp/tmpn13drp2j.c"
target datalayout = "e-m:e-p270: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 @item_category_compare(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, 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
%10 = load ptr, ptr %6, align 8
%11 = call i32 @strcmp(ptr noundef %9, ptr noundef %10)
ret i32 %11
}
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/tmpn13drp2j.c"
target datalayout = "e-m:e-p270: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 @item_category_compare(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, 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
%10 = load ptr, ptr %6, align 8
%11 = call i32 @strcmp(ptr noundef %9, ptr noundef %10)
ret i32 %11
}
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/tmp23iw4xfo.c'
source_filename = "/tmp/tmp23iw4xfo.c"
target datalayout = "e-m:e-p270: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 @bb_perror_nomsg_and_die() #0 {
%1 = call i32 @bb_perror_msg_and_die(i32 noundef 0)
ret void
}
declare i32 @bb_perror_msg_and_die(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/tmp23iw4xfo.c"
target datalayout = "e-m:e-p270: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 @bb_perror_nomsg_and_die() #0 {
%1 = call i32 @bb_perror_msg_and_die(i32 noundef 0)
ret void
}
declare i32 @bb_perror_msg_and_die(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/tmps5j0v7d5.c'
source_filename = "/tmp/tmps5j0v7d5.c"
target datalayout = "e-m:e-p270: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 [15 x i8] c"First OSS Code\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Second OSS Code\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"\EB\A7\88\EC\8A\A4\ED\84\B0 \EB\B8\8C\EB\9E\9C\EC\B9\98\EC\97\90 \EC\BD\94\EB\93\9C\EB\A5\BC \EC\B6\94\EA\B0\80\ED\95\98\EC\98\80\EC\9D\8C\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Test \EB\B8\8C\EB\9E\9C\EC\B9\98\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %12, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = call i32 @printf(ptr noundef @.str.3)
br label %12
12: ; preds = %10
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
br label %7, !llvm.loop !6
15: ; preds = %7
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/tmps5j0v7d5.c"
target datalayout = "e-m:e-p270: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 [15 x i8] c"First OSS Code\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Second OSS Code\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"\EB\A7\88\EC\8A\A4\ED\84\B0 \EB\B8\8C\EB\9E\9C\EC\B9\98\EC\97\90 \EC\BD\94\EB\93\9C\EB\A5\BC \EC\B6\94\EA\B0\80\ED\95\98\EC\98\80\EC\9D\8C\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Test \EB\B8\8C\EB\9E\9C\EC\B9\98\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %11
%10 = call i32 @printf(ptr noundef @.str.3)
br label %11
11: ; preds = %9
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 10
br i1 %15, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %0
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/tmpng7z7u10.c'
source_filename = "/tmp/tmpng7z7u10.c"
target datalayout = "e-m:e-p270: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.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XPixmapFormatValues_depth(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpng7z7u10.c"
target datalayout = "e-m:e-p270: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.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XPixmapFormatValues_depth(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpwab_0cm7.c'
source_filename = "/tmp/tmpwab_0cm7.c"
target datalayout = "e-m:e-p270: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/tmpwab_0cm7.c"
target datalayout = "e-m:e-p270: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/tmpcyozxj1k.c'
source_filename = "/tmp/tmpcyozxj1k.c"
target datalayout = "e-m:e-p270: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"%hd \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pr_short(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = 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 %6
6: ; preds = %18, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i16, ptr %11, i64 %13
%15 = load i16, ptr %14, align 2
%16 = sext i16 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcyozxj1k.c"
target datalayout = "e-m:e-p270: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"%hd \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pr_short(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = 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
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %17
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i16, ptr %10, i64 %12
%14 = load i16, ptr %13, align 2
%15 = sext i16 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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"}
|
; ModuleID = '/tmp/tmppl928fcp.c'
source_filename = "/tmp/tmppl928fcp.c"
target datalayout = "e-m:e-p270: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 [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalpha should be 1 for m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x6d() #0 {
%1 = call i32 @isalpha(i32 noundef 109) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 550, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalpha(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmppl928fcp.c"
target datalayout = "e-m:e-p270: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 [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalpha should be 1 for m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x6d() #0 {
%1 = call i32 @isalpha(i32 noundef 109) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 550, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalpha(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpukg2ccj8.c'
source_filename = "/tmp/tmpukg2ccj8.c"
target datalayout = "e-m:e-p270: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 @get_init_memory_heap(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = sext i32 %5 to i64
%7 = mul i64 %6, 4
%8 = trunc i64 %7 to i32
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %22, %1
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %25
14: ; preds = %10
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %15, %16
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
store i32 %17, ptr %21, align 4
br label %22
22: ; preds = %14
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %10, !llvm.loop !6
25: ; preds = %10
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpukg2ccj8.c"
target datalayout = "e-m:e-p270: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 @get_init_memory_heap(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = sext i32 %5 to i64
%7 = mul i64 %6, 4
%8 = trunc i64 %7 to i32
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %3, align 8
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %27
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %21
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %4, align 4
%16 = sub nsw i32 %14, %15
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
store i32 %16, ptr %20, align 4
br label %21
21: ; preds = %13
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %1
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4d5j46zt.c'
source_filename = "/tmp/tmp4d5j46zt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [100 x i32], align 16
%6 = alloca [100001 x i8], align 16
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %23, %0
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = getelementptr inbounds [100001 x i8], ptr %6, i64 0, i64 0
%14 = call i32 @memset(ptr noundef %13, i32 noundef 0, i32 noundef 100001)
%15 = getelementptr inbounds [100001 x i8], ptr %6, i64 0, i64 0
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = getelementptr inbounds [100001 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @stringReduction(ptr noundef %17)
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %21
store i32 %19, ptr %22, align 4
br label %23
23: ; preds = %12
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %8, !llvm.loop !6
26: ; preds = %8
store i32 0, ptr %4, align 4
br label %27
27: ; preds = %37, %26
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %40
31: ; preds = %27
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = call i32 @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %31
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
br label %27, !llvm.loop !8
40: ; preds = %27
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @stringReduction(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4d5j46zt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [100 x i32], align 16
%6 = alloca [100001 x i8], align 16
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %22
%12 = getelementptr inbounds [100001 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 100001)
%14 = getelementptr inbounds [100001 x i8], ptr %6, i64 0, i64 0
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %14)
%16 = getelementptr inbounds [100001 x i8], ptr %6, i64 0, i64 0
%17 = call i32 @stringReduction(ptr noundef %16)
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %20
store i32 %18, ptr %21, align 4
br label %22
22: ; preds = %11
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %0
store i32 0, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph2, label %44
.lr.ph2: ; preds = %28
br label %32
32: ; preds = %.lr.ph2, %38
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 @printf(ptr noundef @.str.2, i32 noundef %36)
br label %38
38: ; preds = %32
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %44
44: ; preds = %._crit_edge3, %28
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @stringReduction(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpc_tktqsk.c'
source_filename = "/tmp/tmpc_tktqsk.c"
target datalayout = "e-m:e-p270: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"Usage: lab5mkfs <image file>\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 i32, align 4
%8 = alloca i32, align 4
%9 = 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
store ptr null, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
store ptr %12, ptr %9, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = call i32 @check_dev(ptr noundef %22, ptr noundef %7)
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %18
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %18
%28 = load i32, ptr %7, align 4
%29 = sub nsw i32 %28, 7
store i32 %29, ptr %8, align 4
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %8, align 4
%33 = call i32 @mklab5fs(ptr noundef %30, i32 noundef %31, i32 noundef %32)
%34 = icmp ne i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %27
%36 = call i32 @exit(i32 noundef 1) #3
unreachable
37: ; preds = %27
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @check_dev(ptr noundef, ptr noundef) #1
declare i32 @mklab5fs(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" }
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/tmpc_tktqsk.c"
target datalayout = "e-m:e-p270: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"Usage: lab5mkfs <image file>\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 i32, align 4
%8 = alloca i32, align 4
%9 = 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
store ptr null, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
store ptr %12, ptr %9, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = call i32 @check_dev(ptr noundef %22, ptr noundef %7)
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %18
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %18
%28 = load i32, ptr %7, align 4
%29 = sub nsw i32 %28, 7
store i32 %29, ptr %8, align 4
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %8, align 4
%33 = call i32 @mklab5fs(ptr noundef %30, i32 noundef %31, i32 noundef %32)
%34 = icmp ne i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %27
%36 = call i32 @exit(i32 noundef 1) #3
unreachable
37: ; preds = %27
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @check_dev(ptr noundef, ptr noundef) #1
declare i32 @mklab5fs(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" }
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/tmpe111yeon.c'
source_filename = "/tmp/tmpe111yeon.c"
target datalayout = "e-m:e-p270: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"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
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 %6, align 8
%14 = alloca float, i64 %12, align 16
store i64 %12, ptr %7, align 8
%15 = load i32, ptr %4, align 4
%16 = zext i32 %15 to i64
%17 = alloca float, i64 %16, align 16
store i64 %16, ptr %8, align 8
store i32 0, ptr %10, align 4
br label %18
18: ; preds = %31, %2
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %34
22: ; preds = %18
%23 = call float (...) @rand_float()
%24 = call float @llvm.fmuladd.f32(float %23, float 2.000000e+04, float -1.000000e+04)
%25 = load i32, ptr %10, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, ptr %14, i64 %26
store float %24, ptr %27, align 4
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds float, ptr %17, i64 %29
store float 0.000000e+00, ptr %30, align 4
br label %31
31: ; preds = %22
%32 = load i32, ptr %10, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %10, align 4
br label %18, !llvm.loop !6
34: ; preds = %18
%35 = call double (...) @tic()
store double %35, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %36
36: ; preds = %51, %34
%37 = load i32, ptr %10, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %54
40: ; preds = %36
%41 = load i32, ptr %4, align 4
%42 = call i32 @c_scopy(i32 noundef %41, ptr noundef %14, i32 noundef 1, ptr noundef %17, i32 noundef 1)
%43 = getelementptr inbounds float, ptr %17, i64 0
%44 = load float, ptr %43, align 16
%45 = getelementptr inbounds float, ptr %17, i64 0
%46 = load float, ptr %45, align 16
%47 = fcmp une float %44, %46
br i1 %47, label %48, label %50
48: ; preds = %40
%49 = call i32 @printf(ptr noundef @.str)
br label %54
50: ; preds = %40
br label %51
51: ; preds = %50
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %10, align 4
br label %36, !llvm.loop !8
54: ; preds = %48, %36
%55 = call double (...) @tic()
%56 = load double, ptr %9, align 8
%57 = fsub double %55, %56
store double %57, ptr %5, align 8
%58 = getelementptr inbounds float, ptr %17, i64 0
%59 = load float, ptr %58, align 16
%60 = getelementptr inbounds float, ptr %17, i64 0
%61 = load float, ptr %60, align 16
%62 = fcmp une float %59, %61
br i1 %62, label %63, label %65
63: ; preds = %54
%64 = call i32 @printf(ptr noundef @.str)
br label %65
65: ; preds = %63, %54
%66 = load double, ptr %5, align 8
%67 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %67)
ret double %66
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare float @rand_float(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare double @tic(...) #2
declare i32 @c_scopy(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(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" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe111yeon.c"
target datalayout = "e-m:e-p270: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"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
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 %6, align 8
%14 = alloca float, i64 %12, align 16
store i64 %12, ptr %7, align 8
%15 = load i32, ptr %4, align 4
%16 = zext i32 %15 to i64
%17 = alloca float, i64 %16, align 16
store i64 %16, ptr %8, align 8
store i32 0, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %36
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %30
%22 = call float (...) @rand_float()
%23 = call float @llvm.fmuladd.f32(float %22, float 2.000000e+04, float -1.000000e+04)
%24 = load i32, ptr %10, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds float, ptr %14, i64 %25
store float %23, ptr %26, align 4
%27 = load i32, ptr %10, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds float, ptr %17, i64 %28
store float 0.000000e+00, ptr %29, align 4
br label %30
30: ; preds = %21
%31 = load i32, ptr %10, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %10, align 4
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %2
%37 = call double (...) @tic()
store double %37, ptr %9, align 8
store i32 0, ptr %10, align 4
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %36
br label %41
41: ; preds = %.lr.ph2, %52
%42 = load i32, ptr %4, align 4
%43 = call i32 @c_scopy(i32 noundef %42, ptr noundef %14, i32 noundef 1, ptr noundef %17, i32 noundef 1)
%44 = getelementptr inbounds float, ptr %17, i64 0
%45 = load float, ptr %44, align 16
%46 = getelementptr inbounds float, ptr %17, i64 0
%47 = load float, ptr %46, align 16
%48 = fcmp une float %45, %47
br i1 %48, label %49, label %51
49: ; preds = %41
%50 = call i32 @printf(ptr noundef @.str)
br label %58
51: ; preds = %41
br label %52
52: ; preds = %51
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %3, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %41, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %52
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %36
br label %58
58: ; preds = %.loopexit, %49
%59 = call double (...) @tic()
%60 = load double, ptr %9, align 8
%61 = fsub double %59, %60
store double %61, ptr %5, align 8
%62 = getelementptr inbounds float, ptr %17, i64 0
%63 = load float, ptr %62, align 16
%64 = getelementptr inbounds float, ptr %17, i64 0
%65 = load float, ptr %64, align 16
%66 = fcmp une float %63, %65
br i1 %66, label %67, label %69
67: ; preds = %58
%68 = call i32 @printf(ptr noundef @.str)
br label %69
69: ; preds = %67, %58
%70 = load double, ptr %5, align 8
%71 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %71)
ret double %70
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare float @rand_float(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare double @tic(...) #2
declare i32 @c_scopy(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(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" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxizsp721.c'
source_filename = "/tmp/tmpxizsp721.c"
target datalayout = "e-m:e-p270: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 @malloc_double(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sext i32 %3 to i64
%5 = mul i64 %4, 8
%6 = trunc i64 %5 to i32
%7 = call ptr @malloc(i32 noundef %6)
ret ptr %7
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxizsp721.c"
target datalayout = "e-m:e-p270: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 @malloc_double(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sext i32 %3 to i64
%5 = mul i64 %4, 8
%6 = trunc i64 %5 to i32
%7 = call ptr @malloc(i32 noundef %6)
ret ptr %7
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6lgpik66.c'
source_filename = "/tmp/tmp6lgpik66.c"
target datalayout = "e-m:e-p270: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"sums.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Yes, it's 25!!!\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Bummer, no 25.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @fscanf(ptr noundef %8, ptr noundef @.str.2, ptr noundef %3)
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %36, %0
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %39
14: ; preds = %10
store i32 0, ptr %6, align 4
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fscanf(ptr noundef %15, ptr noundef @.str.2, ptr noundef %5)
br label %17
17: ; preds = %20, %14
%18 = load i32, ptr %5, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = load i32, ptr %5, align 4
%22 = srem i32 %21, 10
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, %22
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %5, align 4
%26 = sdiv i32 %25, 10
store i32 %26, ptr %5, align 4
br label %17, !llvm.loop !6
27: ; preds = %17
%28 = load i32, ptr %6, align 4
%29 = srem i32 %28, 25
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @printf(ptr noundef @.str.3)
br label %35
33: ; preds = %27
%34 = call i32 @printf(ptr noundef @.str.4)
br label %35
35: ; preds = %33, %31
br label %36
36: ; preds = %35
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
br label %10, !llvm.loop !8
39: ; preds = %10
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6lgpik66.c"
target datalayout = "e-m:e-p270: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"sums.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Yes, it's 25!!!\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Bummer, no 25.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @fscanf(ptr noundef %8, ptr noundef @.str.2, ptr noundef %3)
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph2, label %42
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %36
store i32 0, ptr %6, align 4
%14 = load ptr, ptr %2, align 8
%15 = call i32 @fscanf(ptr noundef %14, ptr noundef @.str.2, ptr noundef %5)
%16 = load i32, ptr %5, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %.lr.ph, label %27
.lr.ph: ; preds = %13
br label %18
18: ; preds = %.lr.ph, %18
%19 = load i32, ptr %5, align 4
%20 = srem i32 %19, 10
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %5, align 4
%24 = sdiv i32 %23, 10
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %27
27: ; preds = %._crit_edge, %13
%28 = load i32, ptr %6, align 4
%29 = srem i32 %28, 25
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @printf(ptr noundef @.str.3)
br label %35
33: ; preds = %27
%34 = call i32 @printf(ptr noundef @.str.4)
br label %35
35: ; preds = %33, %31
br label %36
36: ; preds = %35
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %42
42: ; preds = %._crit_edge3, %0
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
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}
|
; ModuleID = '/tmp/tmpy0eeyo2c.c'
source_filename = "/tmp/tmpy0eeyo2c.c"
target datalayout = "e-m:e-p270: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 [10 x i8] c"%d,%d,%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
%8 = alloca i32, align 4
%9 = 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 %8, align 4
store i32 42, ptr %9, align 4
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %35, %2
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %38
13: ; preds = %10
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %31, %13
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %15, 8
br i1 %16, label %17, label %34
17: ; preds = %14
%18 = load i32, ptr %9, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %17
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %8, align 4
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %25, i32 noundef %26, i32 noundef %27)
br label %30
30: ; preds = %24, %20, %17
br label %31
31: ; preds = %30
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
br label %14, !llvm.loop !6
34: ; preds = %14
br label %35
35: ; preds = %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
br label %10, !llvm.loop !8
38: ; preds = %10
%39 = load i32, ptr %8, align 4
ret i32 %39
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy0eeyo2c.c"
target datalayout = "e-m:e-p270: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 [10 x i8] c"%d,%d,%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
%8 = alloca i32, align 4
%9 = 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 %8, align 4
store i32 42, ptr %9, align 4
store i32 0, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 8
br i1 %11, label %.lr.ph2, label %40
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %35
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 8
br i1 %14, label %.lr.ph, label %34
.lr.ph: ; preds = %12
br label %15
15: ; preds = %.lr.ph, %29
%16 = load i32, ptr %9, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %28
18: ; preds = %15
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp sgt i32 %19, %20
br i1 %21, label %22, label %28
22: ; preds = %18
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = call i32 @printf(ptr noundef @.str, i32 noundef %23, i32 noundef %24, i32 noundef %25)
br label %28
28: ; preds = %22, %18, %15
br label %29
29: ; preds = %28
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 8
br i1 %33, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %12
br label %35
35: ; preds = %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp slt i32 %38, 8
br i1 %39, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %40
40: ; preds = %._crit_edge3, %2
%41 = load i32, ptr %8, align 4
ret i32 %41
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpo_pznyzp.c'
source_filename = "/tmp/tmpo_pznyzp.c"
target datalayout = "e-m:e-p270: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_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"APETAGEX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_ape(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [32 x i8], align 16
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @ftell(ptr noundef %6)
store i64 %7, ptr %5, align 8
%8 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%9 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 32)
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = call i64 @is_id3v1(ptr noundef %11)
%13 = icmp ne i64 %12, 0
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 -160, i32 -32
%16 = sext i32 %15 to i64
%17 = load i32, ptr @SEEK_END, align 4
%18 = call i32 @fseek(ptr noundef %10, i64 noundef %16, i32 noundef %17)
%19 = load ptr, ptr %3, align 8
%20 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 32, ptr noundef %19)
%21 = sext i32 %20 to i64
%22 = icmp ne i64 %21, 32
br i1 %22, label %23, label %28
23: ; preds = %1
%24 = load ptr, ptr %3, align 8
%25 = load i64, ptr %5, align 8
%26 = load i32, ptr @SEEK_SET, align 4
%27 = call i32 @fseek(ptr noundef %24, i64 noundef %25, i32 noundef %26)
store i32 0, ptr %2, align 4
br label %64
28: ; preds = %1
%29 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%30 = call i64 @memcmp(ptr noundef %29, ptr noundef @.str, i32 noundef 8)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %28
%33 = load ptr, ptr %3, align 8
%34 = load i64, ptr %5, align 8
%35 = load i32, ptr @SEEK_SET, align 4
%36 = call i32 @fseek(ptr noundef %33, i64 noundef %34, i32 noundef %35)
store i32 0, ptr %2, align 4
br label %64
37: ; preds = %28
%38 = load ptr, ptr %3, align 8
%39 = load i64, ptr %5, align 8
%40 = load i32, ptr @SEEK_SET, align 4
%41 = call i32 @fseek(ptr noundef %38, i64 noundef %39, i32 noundef %40)
%42 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%43 = getelementptr inbounds i8, ptr %42, i64 8
%44 = getelementptr inbounds i8, ptr %43, i64 4
%45 = call i32 @is_tag_ape2long(ptr noundef %44)
%46 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%47 = getelementptr inbounds i8, ptr %46, i64 8
%48 = call i32 @is_tag_ape2long(ptr noundef %47)
%49 = icmp eq i32 %48, 2000
br i1 %49, label %50, label %59
50: ; preds = %37
%51 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%52 = getelementptr inbounds i8, ptr %51, i64 8
%53 = getelementptr inbounds i8, ptr %52, i64 4
%54 = getelementptr inbounds i8, ptr %53, i64 8
%55 = call i32 @is_tag_ape2long(ptr noundef %54)
%56 = and i32 %55, 1073741824
%57 = icmp ne i32 %56, 0
%58 = xor i1 %57, true
br label %59
59: ; preds = %50, %37
%60 = phi i1 [ false, %37 ], [ %58, %50 ]
%61 = zext i1 %60 to i64
%62 = select i1 %60, i32 32, i32 0
%63 = add nsw i32 %45, %62
store i32 %63, ptr %2, align 4
br label %64
64: ; preds = %59, %32, %23
%65 = load i32, ptr %2, align 4
ret i32 %65
}
declare i64 @ftell(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @is_id3v1(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @is_tag_ape2long(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/tmpo_pznyzp.c"
target datalayout = "e-m:e-p270: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_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"APETAGEX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_ape(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [32 x i8], align 16
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @ftell(ptr noundef %6)
store i64 %7, ptr %5, align 8
%8 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%9 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 32)
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = call i64 @is_id3v1(ptr noundef %11)
%13 = icmp ne i64 %12, 0
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 -160, i32 -32
%16 = sext i32 %15 to i64
%17 = load i32, ptr @SEEK_END, align 4
%18 = call i32 @fseek(ptr noundef %10, i64 noundef %16, i32 noundef %17)
%19 = load ptr, ptr %3, align 8
%20 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 32, ptr noundef %19)
%21 = sext i32 %20 to i64
%22 = icmp ne i64 %21, 32
br i1 %22, label %23, label %28
23: ; preds = %1
%24 = load ptr, ptr %3, align 8
%25 = load i64, ptr %5, align 8
%26 = load i32, ptr @SEEK_SET, align 4
%27 = call i32 @fseek(ptr noundef %24, i64 noundef %25, i32 noundef %26)
store i32 0, ptr %2, align 4
br label %64
28: ; preds = %1
%29 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%30 = call i64 @memcmp(ptr noundef %29, ptr noundef @.str, i32 noundef 8)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %28
%33 = load ptr, ptr %3, align 8
%34 = load i64, ptr %5, align 8
%35 = load i32, ptr @SEEK_SET, align 4
%36 = call i32 @fseek(ptr noundef %33, i64 noundef %34, i32 noundef %35)
store i32 0, ptr %2, align 4
br label %64
37: ; preds = %28
%38 = load ptr, ptr %3, align 8
%39 = load i64, ptr %5, align 8
%40 = load i32, ptr @SEEK_SET, align 4
%41 = call i32 @fseek(ptr noundef %38, i64 noundef %39, i32 noundef %40)
%42 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%43 = getelementptr inbounds i8, ptr %42, i64 8
%44 = getelementptr inbounds i8, ptr %43, i64 4
%45 = call i32 @is_tag_ape2long(ptr noundef %44)
%46 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%47 = getelementptr inbounds i8, ptr %46, i64 8
%48 = call i32 @is_tag_ape2long(ptr noundef %47)
%49 = icmp eq i32 %48, 2000
br i1 %49, label %50, label %59
50: ; preds = %37
%51 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%52 = getelementptr inbounds i8, ptr %51, i64 8
%53 = getelementptr inbounds i8, ptr %52, i64 4
%54 = getelementptr inbounds i8, ptr %53, i64 8
%55 = call i32 @is_tag_ape2long(ptr noundef %54)
%56 = and i32 %55, 1073741824
%57 = icmp ne i32 %56, 0
%58 = xor i1 %57, true
br label %59
59: ; preds = %50, %37
%60 = phi i1 [ false, %37 ], [ %58, %50 ]
%61 = zext i1 %60 to i64
%62 = select i1 %60, i32 32, i32 0
%63 = add nsw i32 %45, %62
store i32 %63, ptr %2, align 4
br label %64
64: ; preds = %59, %32, %23
%65 = load i32, ptr %2, align 4
ret i32 %65
}
declare i64 @ftell(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @is_id3v1(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @is_tag_ape2long(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/tmp7bzunj3q.c'
source_filename = "/tmp/tmp7bzunj3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"phrase = %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%hhx\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\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 [48 x i8], align 16
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca [32 x i8], align 16
%13 = alloca [32 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
store i64 0, ptr %8, align 8
store i64 1, ptr %9, align 8
br label %14
14: ; preds = %27, %2
%15 = load i64, ptr %9, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = icmp ult i64 %15, %17
br i1 %18, label %19, label %30
19: ; preds = %14
%20 = load ptr, ptr %5, align 8
%21 = load i64, ptr %9, align 8
%22 = getelementptr inbounds ptr, ptr %20, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i64 @strlen(ptr noundef %23)
%25 = load i64, ptr %8, align 8
%26 = add i64 %25, %24
store i64 %26, ptr %8, align 8
br label %27
27: ; preds = %19
%28 = load i64, ptr %9, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %9, align 8
br label %14, !llvm.loop !6
30: ; preds = %14
%31 = load i64, ptr %8, align 8
%32 = call ptr @malloc(i64 noundef %31)
store ptr %32, ptr %10, align 8
%33 = load ptr, ptr %10, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = call i32 (...) @abort() #3
unreachable
37: ; preds = %30
%38 = load ptr, ptr %10, align 8
store ptr %38, ptr %11, align 8
store i64 1, ptr %9, align 8
br label %39
39: ; preds = %63, %37
%40 = load i64, ptr %9, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = icmp ult i64 %40, %42
br i1 %43, label %44, label %66
44: ; preds = %39
%45 = load ptr, ptr %11, align 8
%46 = load ptr, ptr %5, align 8
%47 = load i64, ptr %9, align 8
%48 = getelementptr inbounds ptr, ptr %46, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = load ptr, ptr %5, align 8
%51 = load i64, ptr %9, align 8
%52 = getelementptr inbounds ptr, ptr %50, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = call i64 @strlen(ptr noundef %53)
%55 = call i32 @memcpy(ptr noundef %45, ptr noundef %49, i64 noundef %54)
%56 = load ptr, ptr %5, align 8
%57 = load i64, ptr %9, align 8
%58 = getelementptr inbounds ptr, ptr %56, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = call i64 @strlen(ptr noundef %59)
%61 = load ptr, ptr %11, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 %60
store ptr %62, ptr %11, align 8
br label %63
63: ; preds = %44
%64 = load i64, ptr %9, align 8
%65 = add i64 %64, 1
store i64 %65, ptr %9, align 8
br label %39, !llvm.loop !8
66: ; preds = %39
%67 = load ptr, ptr %10, align 8
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %67)
%69 = load i64, ptr %8, align 8
%70 = load ptr, ptr %10, align 8
%71 = call i32 @RC4_set_key(ptr noundef %6, i64 noundef %69, ptr noundef %70)
%72 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%73 = call i32 @memset(ptr noundef %72, i32 noundef 0, i32 noundef 32)
%74 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%75 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
%76 = call i32 @RC4(ptr noundef %6, i32 noundef 32, ptr noundef %74, ptr noundef %75)
store i64 0, ptr %9, align 8
br label %77
77: ; preds = %86, %66
%78 = load i64, ptr %9, align 8
%79 = icmp ult i64 %78, 32
br i1 %79, label %80, label %89
80: ; preds = %77
%81 = load i64, ptr %9, align 8
%82 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %84)
br label %86
86: ; preds = %80
%87 = load i64, ptr %9, align 8
%88 = add i64 %87, 1
store i64 %88, ptr %9, align 8
br label %77, !llvm.loop !9
89: ; preds = %77
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @RC4_set_key(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RC4(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7bzunj3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"phrase = %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%hhx\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\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 [48 x i8], align 16
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca [32 x i8], align 16
%13 = alloca [32 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
store i64 0, ptr %8, align 8
store i64 1, ptr %9, align 8
%14 = load i64, ptr %9, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = icmp ult i64 %14, %16
br i1 %17, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %26
%19 = load ptr, ptr %5, align 8
%20 = load i64, ptr %9, align 8
%21 = getelementptr inbounds ptr, ptr %19, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = call i64 @strlen(ptr noundef %22)
%24 = load i64, ptr %8, align 8
%25 = add i64 %24, %23
store i64 %25, ptr %8, align 8
br label %26
26: ; preds = %18
%27 = load i64, ptr %9, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %9, align 8
%29 = load i64, ptr %9, align 8
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = icmp ult i64 %29, %31
br i1 %32, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %33
33: ; preds = %._crit_edge, %2
%34 = load i64, ptr %8, align 8
%35 = call ptr @malloc(i64 noundef %34)
store ptr %35, ptr %10, align 8
%36 = load ptr, ptr %10, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = call i32 (...) @abort() #3
unreachable
40: ; preds = %33
%41 = load ptr, ptr %10, align 8
store ptr %41, ptr %11, align 8
store i64 1, ptr %9, align 8
%42 = load i64, ptr %9, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = icmp ult i64 %42, %44
br i1 %45, label %.lr.ph2, label %72
.lr.ph2: ; preds = %40
br label %46
46: ; preds = %.lr.ph2, %65
%47 = load ptr, ptr %11, align 8
%48 = load ptr, ptr %5, align 8
%49 = load i64, ptr %9, align 8
%50 = getelementptr inbounds ptr, ptr %48, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = load ptr, ptr %5, align 8
%53 = load i64, ptr %9, align 8
%54 = getelementptr inbounds ptr, ptr %52, i64 %53
%55 = load ptr, ptr %54, align 8
%56 = call i64 @strlen(ptr noundef %55)
%57 = call i32 @memcpy(ptr noundef %47, ptr noundef %51, i64 noundef %56)
%58 = load ptr, ptr %5, align 8
%59 = load i64, ptr %9, align 8
%60 = getelementptr inbounds ptr, ptr %58, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = call i64 @strlen(ptr noundef %61)
%63 = load ptr, ptr %11, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 %62
store ptr %64, ptr %11, align 8
br label %65
65: ; preds = %46
%66 = load i64, ptr %9, align 8
%67 = add i64 %66, 1
store i64 %67, ptr %9, align 8
%68 = load i64, ptr %9, align 8
%69 = load i32, ptr %4, align 4
%70 = sext i32 %69 to i64
%71 = icmp ult i64 %68, %70
br i1 %71, label %46, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %72
72: ; preds = %._crit_edge3, %40
%73 = load ptr, ptr %10, align 8
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %73)
%75 = load i64, ptr %8, align 8
%76 = load ptr, ptr %10, align 8
%77 = call i32 @RC4_set_key(ptr noundef %6, i64 noundef %75, ptr noundef %76)
%78 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%79 = call i32 @memset(ptr noundef %78, i32 noundef 0, i32 noundef 32)
%80 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%81 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
%82 = call i32 @RC4(ptr noundef %6, i32 noundef 32, ptr noundef %80, ptr noundef %81)
store i64 0, ptr %9, align 8
%83 = load i64, ptr %9, align 8
%84 = icmp ult i64 %83, 32
br i1 %84, label %.lr.ph5, label %96
.lr.ph5: ; preds = %72
br label %85
85: ; preds = %.lr.ph5, %91
%86 = load i64, ptr %9, align 8
%87 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 %86
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %89)
br label %91
91: ; preds = %85
%92 = load i64, ptr %9, align 8
%93 = add i64 %92, 1
store i64 %93, ptr %9, align 8
%94 = load i64, ptr %9, align 8
%95 = icmp ult i64 %94, 32
br i1 %95, label %85, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %91
br label %96
96: ; preds = %._crit_edge6, %72
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @RC4_set_key(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RC4(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp1w8plfps.c'
source_filename = "/tmp/tmp1w8plfps.c"
target datalayout = "e-m:e-p270: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 @strings_is_null_or_white_space(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %9, label %5
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strings_is_white_space(ptr noundef %6)
%8 = icmp ne i64 %7, 0
br label %9
9: ; preds = %5, %1
%10 = phi i1 [ true, %1 ], [ %8, %5 ]
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i64 @strings_is_white_space(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/tmp1w8plfps.c"
target datalayout = "e-m:e-p270: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 @strings_is_null_or_white_space(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %9, label %5
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strings_is_white_space(ptr noundef %6)
%8 = icmp ne i64 %7, 0
br label %9
9: ; preds = %5, %1
%10 = phi i1 [ true, %1 ], [ %8, %5 ]
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i64 @strings_is_white_space(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/tmpog6kquvf.c'
source_filename = "/tmp/tmpog6kquvf.c"
target datalayout = "e-m:e-p270: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 @FlmDecode() #0 {
%1 = call i32 (...) @get_val()
%2 = call i32 (...) @get_val()
ret void
}
declare i32 @get_val(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpog6kquvf.c"
target datalayout = "e-m:e-p270: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 @FlmDecode() #0 {
%1 = call i32 (...) @get_val()
%2 = call i32 (...) @get_val()
ret void
}
declare i32 @get_val(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpidvsgxc2.c'
source_filename = "/tmp/tmpidvsgxc2.c"
target datalayout = "e-m:e-p270: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/tmpidvsgxc2.c"
target datalayout = "e-m:e-p270: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/tmp0rhwrae5.c'
source_filename = "/tmp/tmp0rhwrae5.c"
target datalayout = "e-m:e-p270: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.termios = type { i32, i32 }
@STDIN_FILENO = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@IXON = dso_local global i32 0, align 4
@TCSAFLUSH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__silent_control() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.termios, align 4
%3 = load i32, ptr @STDIN_FILENO, align 4
%4 = call i32 @tcgetattr(i32 noundef %3, ptr noundef %2)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 1, ptr %1, align 4
br label %24
7: ; preds = %0
%8 = load i32, ptr @ECHO, align 4
%9 = xor i32 %8, -1
%10 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%11 = load i32, ptr %10, align 4
%12 = and i32 %11, %9
store i32 %12, ptr %10, align 4
%13 = load i32, ptr @IXON, align 4
%14 = xor i32 %13, -1
%15 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = and i32 %16, %14
store i32 %17, ptr %15, align 4
%18 = load i32, ptr @STDIN_FILENO, align 4
%19 = load i32, ptr @TCSAFLUSH, align 4
%20 = call i32 @tcsetattr(i32 noundef %18, i32 noundef %19, ptr noundef %2)
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %23
22: ; preds = %7
store i32 2, ptr %1, align 4
br label %24
23: ; preds = %7
store i32 0, ptr %1, align 4
br label %24
24: ; preds = %23, %22, %6
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @tcsetattr(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/tmp0rhwrae5.c"
target datalayout = "e-m:e-p270: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.termios = type { i32, i32 }
@STDIN_FILENO = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@IXON = dso_local global i32 0, align 4
@TCSAFLUSH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__silent_control() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.termios, align 4
%3 = load i32, ptr @STDIN_FILENO, align 4
%4 = call i32 @tcgetattr(i32 noundef %3, ptr noundef %2)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 1, ptr %1, align 4
br label %24
7: ; preds = %0
%8 = load i32, ptr @ECHO, align 4
%9 = xor i32 %8, -1
%10 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%11 = load i32, ptr %10, align 4
%12 = and i32 %11, %9
store i32 %12, ptr %10, align 4
%13 = load i32, ptr @IXON, align 4
%14 = xor i32 %13, -1
%15 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = and i32 %16, %14
store i32 %17, ptr %15, align 4
%18 = load i32, ptr @STDIN_FILENO, align 4
%19 = load i32, ptr @TCSAFLUSH, align 4
%20 = call i32 @tcsetattr(i32 noundef %18, i32 noundef %19, ptr noundef %2)
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %23
22: ; preds = %7
store i32 2, ptr %1, align 4
br label %24
23: ; preds = %7
store i32 0, ptr %1, align 4
br label %24
24: ; preds = %23, %22, %6
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @tcsetattr(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/tmp84_o06oh.c'
source_filename = "/tmp/tmp84_o06oh.c"
target datalayout = "e-m:e-p270: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 @mpeg2_get_picture_type(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %29, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 5
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %32
12: ; preds = %7
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = icmp eq i32 %17, 65536
br i1 %18, label %19, label %28
19: ; preds = %12
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %20, i64 %23
%25 = load i32, ptr %24, align 4
%26 = ashr i32 %25, 3
%27 = and i32 %26, 7
store i32 %27, ptr %3, align 4
br label %33
28: ; preds = %12
br label %29
29: ; preds = %28
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
br label %7, !llvm.loop !6
32: ; preds = %7
store i32 0, ptr %3, align 4
br label %33
33: ; preds = %32, %19
%34 = load i32, ptr %3, align 4
ret i32 %34
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp84_o06oh.c"
target datalayout = "e-m:e-p270: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 @mpeg2_get_picture_type(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = sub nsw i32 %8, 5
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %28
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = icmp eq i32 %16, 65536
br i1 %17, label %18, label %27
18: ; preds = %11
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %19, i64 %22
%24 = load i32, ptr %23, align 4
%25 = ashr i32 %24, 3
%26 = and i32 %25, 7
store i32 %26, ptr %3, align 4
br label %36
27: ; preds = %11
br label %28
28: ; preds = %27
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %5, align 4
%33 = sub nsw i32 %32, 5
%34 = icmp slt i32 %31, %33
br i1 %34, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %35
35: ; preds = %._crit_edge, %2
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %35, %18
%37 = load i32, ptr %3, align 4
ret i32 %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpoek8kqfj.c'
source_filename = "/tmp/tmpoek8kqfj.c"
target datalayout = "e-m:e-p270: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/tmpoek8kqfj.c"
target datalayout = "e-m:e-p270: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/tmpnqzgid_f.c'
source_filename = "/tmp/tmpnqzgid_f.c"
target datalayout = "e-m:e-p270: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 willreturn memory(read) uwtable
define dso_local i32 @toupper(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @islower(i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 97
%10 = add nsw i32 %9, 65
store i32 %10, ptr %2, align 4
br label %13
11: ; preds = %1
%12 = load i32, ptr %3, align 4
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %11, %7
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @islower(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(read) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpnqzgid_f.c"
target datalayout = "e-m:e-p270: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 willreturn memory(read) uwtable
define dso_local i32 @toupper(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @islower(i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 97
%10 = add nsw i32 %9, 65
store i32 %10, ptr %2, align 4
br label %13
11: ; preds = %1
%12 = load i32, ptr %3, align 4
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %11, %7
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @islower(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(read) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmphtec0dcw.c'
source_filename = "/tmp/tmphtec0dcw.c"
target datalayout = "e-m:e-p270: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/tmphtec0dcw.c"
target datalayout = "e-m:e-p270: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/tmpohdm5jg7.c'
source_filename = "/tmp/tmpohdm5jg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @skip_comment_lines(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load i32, ptr @stdin, align 4
%5 = call ptr @get_line(i32 noundef %4)
%6 = load ptr, ptr %3, align 8
store ptr %5, ptr %6, align 8
%7 = icmp eq ptr %5, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %35
9: ; preds = %1
br label %10
10: ; preds = %33, %9
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %11, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 42
br i1 %15, label %22, label %16
16: ; preds = %10
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %17, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br label %22
22: ; preds = %16, %10
%23 = phi i1 [ true, %10 ], [ %21, %16 ]
br i1 %23, label %24, label %34
24: ; preds = %22
%25 = load ptr, ptr %3, align 8
%26 = load ptr, ptr %25, align 8
%27 = call i32 @free(ptr noundef %26)
%28 = load i32, ptr @stdin, align 4
%29 = call ptr @get_line(i32 noundef %28)
%30 = load ptr, ptr %3, align 8
store ptr %29, ptr %30, align 8
%31 = icmp eq ptr %29, null
br i1 %31, label %32, label %33
32: ; preds = %24
store i32 -1, ptr %2, align 4
br label %35
33: ; preds = %24
br label %10, !llvm.loop !6
34: ; preds = %22
store i32 0, ptr %2, align 4
br label %35
35: ; preds = %34, %32, %8
%36 = load i32, ptr %2, align 4
ret i32 %36
}
declare ptr @get_line(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpohdm5jg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @skip_comment_lines(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load i32, ptr @stdin, align 4
%5 = call ptr @get_line(i32 noundef %4)
%6 = load ptr, ptr %3, align 8
store ptr %5, ptr %6, align 8
%7 = icmp eq ptr %5, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %34
9: ; preds = %1
br label %10
10: ; preds = %24, %9
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %11, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 42
br i1 %15, label %22, label %16
16: ; preds = %10
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %17, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br label %22
22: ; preds = %16, %10
%23 = phi i1 [ true, %10 ], [ %21, %16 ]
br i1 %23, label %24, label %33
24: ; preds = %22
%25 = load ptr, ptr %3, align 8
%26 = load ptr, ptr %25, align 8
%27 = call i32 @free(ptr noundef %26)
%28 = load i32, ptr @stdin, align 4
%29 = call ptr @get_line(i32 noundef %28)
%30 = load ptr, ptr %3, align 8
store ptr %29, ptr %30, align 8
%31 = icmp eq ptr %29, null
br i1 %31, label %32, label %10, !llvm.loop !6
32: ; preds = %24
store i32 -1, ptr %2, align 4
br label %34
33: ; preds = %22
store i32 0, ptr %2, align 4
br label %34
34: ; preds = %33, %32, %8
%35 = load i32, ptr %2, align 4
ret i32 %35
}
declare ptr @get_line(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpidnxu778.c'
source_filename = "/tmp/tmpidnxu778.c"
target datalayout = "e-m:e-p270: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 [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isgraph should be 1 for $\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x24() #0 {
%1 = call i32 @isgraph(i32 noundef 36) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 185, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isgraph(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpidnxu778.c"
target datalayout = "e-m:e-p270: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 [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isgraph should be 1 for $\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x24() #0 {
%1 = call i32 @isgraph(i32 noundef 36) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 185, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isgraph(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpn304afir.c'
source_filename = "/tmp/tmpn304afir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_WARNING = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"Received SIGHUP signal.\00", align 1
@LOG_INFO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"exiting\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"Unhandled signal %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @signal_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
switch i32 %3, label %13 [
i32 130, label %4
i32 129, label %7
i32 128, label %7
]
4: ; preds = %1
%5 = load i32, ptr @LOG_WARNING, align 4
%6 = call i32 (i32, ptr, ...) @syslog(i32 noundef %5, ptr noundef @.str)
br label %18
7: ; preds = %1, %1
%8 = load i32, ptr @LOG_INFO, align 4
%9 = call i32 (i32, ptr, ...) @syslog(i32 noundef %8, ptr noundef @.str.1)
%10 = call i32 (...) @daemonShutdown()
%11 = load i32, ptr @EXIT_SUCCESS, align 4
%12 = call i32 @exit(i32 noundef %11) #3
unreachable
13: ; preds = %1
%14 = load i32, ptr @LOG_WARNING, align 4
%15 = load i32, ptr %2, align 4
%16 = call i32 @strsignal(i32 noundef %15)
%17 = call i32 (i32, ptr, ...) @syslog(i32 noundef %14, ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %13, %4
ret void
}
declare i32 @syslog(i32 noundef, ptr noundef, ...) #1
declare i32 @daemonShutdown(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strsignal(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn304afir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_WARNING = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"Received SIGHUP signal.\00", align 1
@LOG_INFO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"exiting\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"Unhandled signal %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @signal_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
switch i32 %3, label %13 [
i32 130, label %4
i32 129, label %7
i32 128, label %7
]
4: ; preds = %1
%5 = load i32, ptr @LOG_WARNING, align 4
%6 = call i32 (i32, ptr, ...) @syslog(i32 noundef %5, ptr noundef @.str)
br label %18
7: ; preds = %1, %1
%8 = load i32, ptr @LOG_INFO, align 4
%9 = call i32 (i32, ptr, ...) @syslog(i32 noundef %8, ptr noundef @.str.1)
%10 = call i32 (...) @daemonShutdown()
%11 = load i32, ptr @EXIT_SUCCESS, align 4
%12 = call i32 @exit(i32 noundef %11) #3
unreachable
13: ; preds = %1
%14 = load i32, ptr @LOG_WARNING, align 4
%15 = load i32, ptr %2, align 4
%16 = call i32 @strsignal(i32 noundef %15)
%17 = call i32 (i32, ptr, ...) @syslog(i32 noundef %14, ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %13, %4
ret void
}
declare i32 @syslog(i32 noundef, ptr noundef, ...) #1
declare i32 @daemonShutdown(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strsignal(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5hvy4u0h.c'
source_filename = "/tmp/tmp5hvy4u0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5hvy4u0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpylwvy9wk.c'
source_filename = "/tmp/tmpylwvy9wk.c"
target datalayout = "e-m:e-p270: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 [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalpha should be 0 for [\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x5b() #0 {
%1 = call i64 @isalpha(i32 noundef 91)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 460, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmpylwvy9wk.c"
target datalayout = "e-m:e-p270: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 [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalpha should be 0 for [\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x5b() #0 {
%1 = call i64 @isalpha(i32 noundef 91)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 460, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmpitd_z4cr.c'
source_filename = "/tmp/tmpitd_z4cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Executing test case %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Testcase not defined\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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 2
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %7, align 4
switch i32 %19, label %28 [
i32 1, label %20
i32 2, label %22
i32 3, label %24
i32 4, label %26
]
20: ; preds = %2
%21 = call i32 (...) @test1()
br label %30
22: ; preds = %2
%23 = call i32 (...) @test2()
br label %30
24: ; preds = %2
%25 = call i32 (...) @test3()
br label %30
26: ; preds = %2
%27 = call i32 (...) @test4()
br label %30
28: ; preds = %2
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %30
30: ; preds = %28, %26, %24, %22, %20
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @assert(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @test1(...) #1
declare i32 @test2(...) #1
declare i32 @test3(...) #1
declare i32 @test4(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpitd_z4cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Executing test case %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Testcase not defined\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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 2
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %7, align 4
switch i32 %19, label %28 [
i32 1, label %20
i32 2, label %22
i32 3, label %24
i32 4, label %26
]
20: ; preds = %2
%21 = call i32 (...) @test1()
br label %30
22: ; preds = %2
%23 = call i32 (...) @test2()
br label %30
24: ; preds = %2
%25 = call i32 (...) @test3()
br label %30
26: ; preds = %2
%27 = call i32 (...) @test4()
br label %30
28: ; preds = %2
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %30
30: ; preds = %28, %26, %24, %22, %20
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @assert(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @test1(...) #1
declare i32 @test2(...) #1
declare i32 @test3(...) #1
declare i32 @test4(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpppia45d_.c'
source_filename = "/tmp/tmpppia45d_.c"
target datalayout = "e-m:e-p270: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 @max_heap_insert(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
%9 = 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
%10 = load ptr, ptr %7, align 8
%11 = load i32, ptr %10, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %10, align 4
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %15, align 4
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %14, i64 %18
store i32 %13, ptr %19, align 4
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %20, align 4
%22 = sub nsw i32 %21, 1
store i32 %22, ptr %8, align 4
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %23, align 4
%25 = sdiv i32 %24, 2
store i32 %25, ptr %9, align 4
br label %26
26: ; preds = %43, %3
%27 = load i32, ptr %9, align 4
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %41
29: ; preds = %26
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp slt i32 %34, %39
br label %41
41: ; preds = %29, %26
%42 = phi i1 [ false, %26 ], [ %40, %29 ]
br i1 %42, label %43, label %56
43: ; preds = %41
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %8, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = call i32 @swap(ptr noundef %47, ptr noundef %51)
%53 = load i32, ptr %9, align 4
store i32 %53, ptr %8, align 4
%54 = load i32, ptr %8, align 4
%55 = sdiv i32 %54, 2
store i32 %55, ptr %9, align 4
br label %26, !llvm.loop !6
56: ; preds = %41
%57 = load i32, ptr %4, align 4
ret i32 %57
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpppia45d_.c"
target datalayout = "e-m:e-p270: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 @max_heap_insert(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
%9 = 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
%10 = load ptr, ptr %7, align 8
%11 = load i32, ptr %10, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %10, align 4
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %15, align 4
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %14, i64 %18
store i32 %13, ptr %19, align 4
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %20, align 4
%22 = sub nsw i32 %21, 1
store i32 %22, ptr %8, align 4
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %23, align 4
%25 = sdiv i32 %24, 2
store i32 %25, ptr %9, align 4
br label %26
26: ; preds = %43, %3
%27 = load i32, ptr %9, align 4
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %41
29: ; preds = %26
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp slt i32 %34, %39
br label %41
41: ; preds = %29, %26
%42 = phi i1 [ false, %26 ], [ %40, %29 ]
br i1 %42, label %43, label %56
43: ; preds = %41
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %8, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = call i32 @swap(ptr noundef %47, ptr noundef %51)
%53 = load i32, ptr %9, align 4
store i32 %53, ptr %8, align 4
%54 = load i32, ptr %8, align 4
%55 = sdiv i32 %54, 2
store i32 %55, ptr %9, align 4
br label %26, !llvm.loop !6
56: ; preds = %41
%57 = load i32, ptr %4, align 4
ret i32 %57
}
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"}
|
; ModuleID = '/tmp/tmppp2yps50.c'
source_filename = "/tmp/tmppp2yps50.c"
target datalayout = "e-m:e-p270: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_data(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
%10 = call ptr @base64_encode(ptr noundef %8, i32 noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = call ptr @base64_decode(ptr noundef %11, ptr noundef %6)
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = call i32 @assert_equal(ptr noundef %13, i32 noundef %14, ptr noundef %15, i32 noundef %16)
ret void
}
declare ptr @base64_encode(ptr noundef, i32 noundef) #1
declare ptr @base64_decode(ptr noundef, ptr noundef) #1
declare i32 @assert_equal(ptr noundef, 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/tmppp2yps50.c"
target datalayout = "e-m:e-p270: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_data(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
%10 = call ptr @base64_encode(ptr noundef %8, i32 noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = call ptr @base64_decode(ptr noundef %11, ptr noundef %6)
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = call i32 @assert_equal(ptr noundef %13, i32 noundef %14, ptr noundef %15, i32 noundef %16)
ret void
}
declare ptr @base64_encode(ptr noundef, i32 noundef) #1
declare ptr @base64_decode(ptr noundef, ptr noundef) #1
declare i32 @assert_equal(ptr noundef, 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/tmpep34dgix.c'
source_filename = "/tmp/tmpep34dgix.c"
target datalayout = "e-m:e-p270: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 @getNumber(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [80 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %34, %2
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %37
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 61
br i1 %20, label %21, label %23
21: ; preds = %13
%22 = load i32, ptr %8, align 4
store i32 %22, ptr %6, align 4
br label %23
23: ; preds = %21, %13
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 59
br i1 %30, label %31, label %33
31: ; preds = %23
%32 = load i32, ptr %8, align 4
store i32 %32, ptr %7, align 4
br label %33
33: ; preds = %31, %23
br label %34
34: ; preds = %33
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %9, !llvm.loop !6
37: ; preds = %9
%38 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = getelementptr inbounds i8, ptr %42, i64 1
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %6, align 4
%46 = sub nsw i32 %44, %45
%47 = sub nsw i32 %46, 1
%48 = call i32 @strncpy(ptr noundef %38, ptr noundef %43, i32 noundef %47)
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %6, align 4
%51 = sub nsw i32 %49, %50
%52 = sub nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %53
store i8 0, ptr %54, align 1
%55 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%56 = call float @atof(ptr noundef %55)
ret float %56
}
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare float @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpep34dgix.c"
target datalayout = "e-m:e-p270: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 @getNumber(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [80 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %39
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %33
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 61
br i1 %19, label %20, label %22
20: ; preds = %12
%21 = load i32, ptr %8, align 4
store i32 %21, ptr %6, align 4
br label %22
22: ; preds = %20, %12
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 59
br i1 %29, label %30, label %32
30: ; preds = %22
%31 = load i32, ptr %8, align 4
store i32 %31, ptr %7, align 4
br label %32
32: ; preds = %30, %22
br label %33
33: ; preds = %32
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %2
%40 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = getelementptr inbounds i8, ptr %44, i64 1
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %6, align 4
%48 = sub nsw i32 %46, %47
%49 = sub nsw i32 %48, 1
%50 = call i32 @strncpy(ptr noundef %40, ptr noundef %45, i32 noundef %49)
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %6, align 4
%53 = sub nsw i32 %51, %52
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 %55
store i8 0, ptr %56, align 1
%57 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
%58 = call float @atof(ptr noundef %57)
ret float %58
}
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare float @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_wkldxy1.c'
source_filename = "/tmp/tmp_wkldxy1.c"
target datalayout = "e-m:e-p270: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 @dqrand() #0 {
%1 = call double (...) @lqrand()
%2 = fmul double 0x3BF0000000000000, %1
ret double %2
}
declare double @lqrand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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_wkldxy1.c"
target datalayout = "e-m:e-p270: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 @dqrand() #0 {
%1 = call double (...) @lqrand()
%2 = fmul double 0x3BF0000000000000, %1
ret double %2
}
declare double @lqrand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp80wcw4ja.c'
source_filename = "/tmp/tmp80wcw4ja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @unmarshall_u_int32(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %16, label %14
14: ; preds = %11, %3
%15 = load i32, ptr @EINVAL, align 4
store i32 %15, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %27
16: ; preds = %11
%17 = load i32, ptr %7, align 4
%18 = zext i32 %17 to i64
%19 = icmp uge i64 %18, 4
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = load ptr, ptr %6, align 8
%22 = call i32 @memcpy(ptr noundef %8, ptr noundef %21, i32 noundef 4)
%23 = load i32, ptr %8, align 4
%24 = call i32 @ntohl(i32 noundef %23)
%25 = load ptr, ptr %5, align 8
store i32 %24, ptr %25, align 4
store i32 4, ptr %4, align 4
br label %27
26: ; preds = %16
store i32 0, ptr %4, align 4
br label %27
27: ; preds = %26, %20, %14
%28 = load i32, ptr %4, align 4
ret i32 %28
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohl(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/tmp80wcw4ja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @unmarshall_u_int32(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %16, label %14
14: ; preds = %11, %3
%15 = load i32, ptr @EINVAL, align 4
store i32 %15, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %27
16: ; preds = %11
%17 = load i32, ptr %7, align 4
%18 = zext i32 %17 to i64
%19 = icmp uge i64 %18, 4
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = load ptr, ptr %6, align 8
%22 = call i32 @memcpy(ptr noundef %8, ptr noundef %21, i32 noundef 4)
%23 = load i32, ptr %8, align 4
%24 = call i32 @ntohl(i32 noundef %23)
%25 = load ptr, ptr %5, align 8
store i32 %24, ptr %25, align 4
store i32 4, ptr %4, align 4
br label %27
26: ; preds = %16
store i32 0, ptr %4, align 4
br label %27
27: ; preds = %26, %20, %14
%28 = load i32, ptr %4, align 4
ret i32 %28
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohl(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/tmpkbmq9x34.c'
source_filename = "/tmp/tmpkbmq9x34.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.nibbles = internal constant [16 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr @.str.13, ptr @.str.14, ptr @.str.15], align 16
@.str = private unnamed_addr constant [5 x i8] c"0000\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"0001\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"0010\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"0011\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"0100\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"0101\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"0110\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"0111\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"1000\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"1001\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"1010\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"1011\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"1100\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"1101\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"1110\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"1111\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"%lu\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c" %s\00", align 1
@.str.18 = private unnamed_addr constant [8 x i8] c" %s %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca [20 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %61, %0
%8 = call i32 @scanf(ptr noundef @.str.16, ptr noundef %2)
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %63
10: ; preds = %7
%11 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%12 = load i64, ptr %2, align 8
%13 = call ptr @writeUTF8(ptr noundef %11, i64 noundef %12)
store ptr %13, ptr %4, align 8
store i32 32, ptr %6, align 4
br label %14
14: ; preds = %32, %10
%15 = load i32, ptr %6, align 4
%16 = sub i32 %15, 4
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = and i32 %17, 4
%19 = icmp ne i32 %18, 0
%20 = xor i1 %19, true
%21 = zext i1 %20 to i32
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr @.str.17, i64 %22
%24 = load i64, ptr %2, align 8
%25 = load i32, ptr %6, align 4
%26 = zext i32 %25 to i64
%27 = lshr i64 %24, %26
%28 = and i64 %27, 15
%29 = getelementptr inbounds [16 x ptr], ptr @main.nibbles, i64 0, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = call i32 (ptr, ptr, ...) @printf(ptr noundef %23, ptr noundef %30)
br label %32
32: ; preds = %14
%33 = load i32, ptr %6, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %14, label %35, !llvm.loop !6
35: ; preds = %32
%36 = call i32 @putchar(i8 noundef signext 10)
%37 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
store ptr %37, ptr %5, align 8
br label %38
38: ; preds = %58, %35
%39 = load ptr, ptr %5, align 8
%40 = load ptr, ptr %4, align 8
%41 = icmp ne ptr %39, %40
br i1 %41, label %42, label %61
42: ; preds = %38
%43 = load ptr, ptr %5, align 8
%44 = load i8, ptr %43, align 1
%45 = zext i8 %44 to i32
%46 = ashr i32 %45, 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [16 x ptr], ptr @main.nibbles, i64 0, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = load ptr, ptr %5, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = and i32 %52, 15
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [16 x ptr], ptr @main.nibbles, i64 0, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %49, ptr noundef %56)
br label %58
58: ; preds = %42
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %5, align 8
br label %38, !llvm.loop !8
61: ; preds = %38
%62 = call i32 @putchar(i8 noundef signext 10)
br label %7, !llvm.loop !9
63: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @writeUTF8(ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkbmq9x34.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.nibbles = internal constant [16 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr @.str.13, ptr @.str.14, ptr @.str.15], align 16
@.str = private unnamed_addr constant [5 x i8] c"0000\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"0001\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"0010\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"0011\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"0100\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"0101\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"0110\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"0111\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"1000\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"1001\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"1010\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"1011\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"1100\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"1101\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"1110\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"1111\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"%lu\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c" %s\00", align 1
@.str.18 = private unnamed_addr constant [8 x i8] c" %s %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca [20 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str.16, ptr noundef %2)
%8 = icmp eq i32 %7, 1
br i1 %8, label %.lr.ph2, label %66
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %62
%10 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%11 = load i64, ptr %2, align 8
%12 = call ptr @writeUTF8(ptr noundef %10, i64 noundef %11)
store ptr %12, ptr %4, align 8
store i32 32, ptr %6, align 4
br label %13
13: ; preds = %31, %9
%14 = load i32, ptr %6, align 4
%15 = sub i32 %14, 4
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = and i32 %16, 4
%18 = icmp ne i32 %17, 0
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr @.str.17, i64 %21
%23 = load i64, ptr %2, align 8
%24 = load i32, ptr %6, align 4
%25 = zext i32 %24 to i64
%26 = lshr i64 %23, %25
%27 = and i64 %26, 15
%28 = getelementptr inbounds [16 x ptr], ptr @main.nibbles, i64 0, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = call i32 (ptr, ptr, ...) @printf(ptr noundef %22, ptr noundef %29)
br label %31
31: ; preds = %13
%32 = load i32, ptr %6, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %13, label %34, !llvm.loop !6
34: ; preds = %31
%35 = call i32 @putchar(i8 noundef signext 10)
%36 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
store ptr %36, ptr %5, align 8
%37 = load ptr, ptr %5, align 8
%38 = load ptr, ptr %4, align 8
%39 = icmp ne ptr %37, %38
br i1 %39, label %.lr.ph, label %62
.lr.ph: ; preds = %34
br label %40
40: ; preds = %.lr.ph, %56
%41 = load ptr, ptr %5, align 8
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = ashr i32 %43, 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [16 x ptr], ptr @main.nibbles, i64 0, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = load ptr, ptr %5, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = and i32 %50, 15
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [16 x ptr], ptr @main.nibbles, i64 0, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %47, ptr noundef %54)
br label %56
56: ; preds = %40
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %5, align 8
%59 = load ptr, ptr %5, align 8
%60 = load ptr, ptr %4, align 8
%61 = icmp ne ptr %59, %60
br i1 %61, label %40, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %56
br label %62
62: ; preds = %._crit_edge, %34
%63 = call i32 @putchar(i8 noundef signext 10)
%64 = call i32 @scanf(ptr noundef @.str.16, ptr noundef %2)
%65 = icmp eq i32 %64, 1
br i1 %65, label %9, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %62
br label %66
66: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @writeUTF8(ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp_2os7ys9.c'
source_filename = "/tmp/tmp_2os7ys9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"\0AError: Hour must between 0 to 23!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @change_rtc_hour(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 23
br i1 %9, label %12, label %10
10: ; preds = %7, %1
%11 = call i32 @uart_puts(ptr noundef @.str)
br label %23
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 10
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = sdiv i32 %15, 10
store i32 %16, ptr %4, align 4
%17 = load volatile i32, ptr inttoptr (i64 2113949760 to ptr), align 4
%18 = or i32 %17, 8
store volatile i32 %18, ptr inttoptr (i64 2113949760 to ptr), align 4
store volatile i32 1, ptr inttoptr (i64 2113949760 to ptr), align 4
%19 = load i32, ptr %4, align 4
%20 = shl i32 %19, 4
%21 = load i32, ptr %3, align 4
%22 = or i32 %20, %21
store volatile i32 %22, ptr inttoptr (i64 2113949816 to ptr), align 4
store volatile i32 0, ptr inttoptr (i64 2113949760 to ptr), align 4
br label %23
23: ; preds = %12, %10
ret void
}
declare i32 @uart_puts(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_2os7ys9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"\0AError: Hour must between 0 to 23!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @change_rtc_hour(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 23
br i1 %9, label %12, label %10
10: ; preds = %7, %1
%11 = call i32 @uart_puts(ptr noundef @.str)
br label %23
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 10
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = sdiv i32 %15, 10
store i32 %16, ptr %4, align 4
%17 = load volatile i32, ptr inttoptr (i64 2113949760 to ptr), align 4
%18 = or i32 %17, 8
store volatile i32 %18, ptr inttoptr (i64 2113949760 to ptr), align 4
store volatile i32 1, ptr inttoptr (i64 2113949760 to ptr), align 4
%19 = load i32, ptr %4, align 4
%20 = shl i32 %19, 4
%21 = load i32, ptr %3, align 4
%22 = or i32 %20, %21
store volatile i32 %22, ptr inttoptr (i64 2113949816 to ptr), align 4
store volatile i32 0, ptr inttoptr (i64 2113949760 to ptr), align 4
br label %23
23: ; preds = %12, %10
ret void
}
declare i32 @uart_puts(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/tmpp5utzrrz.c'
source_filename = "/tmp/tmpp5utzrrz.c"
target datalayout = "e-m:e-p270: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 @fitfun(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = 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 ptr %3, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %11
11: ; preds = %59, %4
%12 = load i32, ptr %10, align 4
%13 = load i32, ptr %6, align 4
%14 = sub nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %62
16: ; preds = %11
%17 = load double, ptr %9, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %10, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
%22 = load double, ptr %21, align 8
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %10, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %23, i64 %25
%27 = load double, ptr %26, align 8
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %10, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %28, i64 %31
%33 = load double, ptr %32, align 8
%34 = call double @llvm.fmuladd.f64(double %22, double %27, double %33)
%35 = fsub double %34, 1.100000e+01
%36 = call double @pow(double noundef %35, i32 noundef 2)
%37 = fadd double %17, %36
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %10, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %10, align 4
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %43, i64 %46
%48 = load double, ptr %47, align 8
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %10, align 4
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, ptr %49, i64 %52
%54 = load double, ptr %53, align 8
%55 = call double @llvm.fmuladd.f64(double %48, double %54, double %42)
%56 = fsub double %55, 7.000000e+00
%57 = call double @pow(double noundef %56, i32 noundef 2)
%58 = fadd double %37, %57
store double %58, ptr %9, align 8
br label %59
59: ; preds = %16
%60 = load i32, ptr %10, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %10, align 4
br label %11, !llvm.loop !6
62: ; preds = %11
%63 = load double, ptr %9, align 8
%64 = fmul double -1.000000e-01, %63
store double %64, ptr %9, align 8
%65 = load double, ptr %9, align 8
ret double %65
}
declare double @pow(double noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp5utzrrz.c"
target datalayout = "e-m:e-p270: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 @fitfun(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = 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 ptr %3, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %10, align 4
%11 = load i32, ptr %10, align 4
%12 = load i32, ptr %6, align 4
%13 = sub nsw i32 %12, 1
%14 = icmp slt i32 %11, %13
br i1 %14, label %.lr.ph, label %65
.lr.ph: ; preds = %4
br label %15
15: ; preds = %.lr.ph, %58
%16 = load double, ptr %9, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %10, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, ptr %17, i64 %19
%21 = load double, ptr %20, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %10, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, ptr %22, i64 %24
%26 = load double, ptr %25, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %10, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, ptr %27, i64 %30
%32 = load double, ptr %31, align 8
%33 = call double @llvm.fmuladd.f64(double %21, double %26, double %32)
%34 = fsub double %33, 1.100000e+01
%35 = call double @pow(double noundef %34, i32 noundef 2)
%36 = fadd double %16, %35
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %37, i64 %39
%41 = load double, ptr %40, align 8
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %10, align 4
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %42, i64 %45
%47 = load double, ptr %46, align 8
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %10, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %48, i64 %51
%53 = load double, ptr %52, align 8
%54 = call double @llvm.fmuladd.f64(double %47, double %53, double %41)
%55 = fsub double %54, 7.000000e+00
%56 = call double @pow(double noundef %55, i32 noundef 2)
%57 = fadd double %36, %56
store double %57, ptr %9, align 8
br label %58
58: ; preds = %15
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = load i32, ptr %6, align 4
%63 = sub nsw i32 %62, 1
%64 = icmp slt i32 %61, %63
br i1 %64, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %65
65: ; preds = %._crit_edge, %4
%66 = load double, ptr %9, align 8
%67 = fmul double -1.000000e-01, %66
store double %67, ptr %9, align 8
%68 = load double, ptr %9, align 8
ret double %68
}
declare double @pow(double noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4dxfesk3.c'
source_filename = "/tmp/tmp4dxfesk3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%f%d%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%d%f%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
br label %15
15: ; preds = %74, %0
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %2, align 4
%18 = icmp ne i32 %16, 0
br i1 %18, label %19, label %77
19: ; preds = %15
%20 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%21 = load float, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = sitofp i32 %22 to float
%24 = fmul float %21, %23
store float %24, ptr %10, align 4
store float 0.000000e+00, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %9, align 4
br label %25
25: ; preds = %71, %19
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %74
29: ; preds = %25
%30 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%31 = load i32, ptr %8, align 4
%32 = sitofp i32 %31 to float
%33 = load i32, ptr %6, align 4
%34 = sitofp i32 %33 to float
%35 = load float, ptr %7, align 4
%36 = fmul float %34, %35
%37 = load i32, ptr %4, align 4
%38 = sitofp i32 %37 to float
%39 = call float @llvm.fmuladd.f32(float %36, float %38, float %32)
store float %39, ptr %11, align 4
%40 = load float, ptr %11, align 4
%41 = load i32, ptr %6, align 4
%42 = sitofp i32 %41 to float
%43 = load float, ptr %10, align 4
%44 = fmul float %42, %43
%45 = fcmp olt float %40, %44
br i1 %45, label %46, label %70
46: ; preds = %29
%47 = load float, ptr %12, align 4
%48 = load i32, ptr %6, align 4
%49 = sitofp i32 %48 to float
%50 = load float, ptr %10, align 4
%51 = load float, ptr %11, align 4
%52 = fneg float %51
%53 = call float @llvm.fmuladd.f32(float %49, float %50, float %52)
%54 = load i32, ptr %6, align 4
%55 = sitofp i32 %54 to float
%56 = fdiv float %53, %55
%57 = fcmp olt float %47, %56
br i1 %57, label %58, label %70
58: ; preds = %46
%59 = load i32, ptr %6, align 4
%60 = sitofp i32 %59 to float
%61 = load float, ptr %10, align 4
%62 = load float, ptr %11, align 4
%63 = fneg float %62
%64 = call float @llvm.fmuladd.f32(float %60, float %61, float %63)
%65 = load i32, ptr %6, align 4
%66 = sitofp i32 %65 to float
%67 = fdiv float %64, %66
store float %67, ptr %12, align 4
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %13, align 4
br label %70
70: ; preds = %58, %46, %29
br label %71
71: ; preds = %70
%72 = load i32, ptr %9, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %9, align 4
br label %25, !llvm.loop !6
74: ; preds = %25
%75 = load i32, ptr %13, align 4
%76 = call i32 @printf(ptr noundef @.str.3, i32 noundef %75)
br label %15, !llvm.loop !8
77: ; preds = %15
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4dxfesk3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%f%d%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%d%f%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, -1
store i32 %16, ptr %2, align 4
%17 = icmp ne i32 %15, 0
br i1 %17, label %.lr.ph2, label %81
.lr.ph2: ; preds = %0
br label %18
18: ; preds = %.lr.ph2, %75
%19 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%20 = load float, ptr %3, align 4
%21 = load i32, ptr %4, align 4
%22 = sitofp i32 %21 to float
%23 = fmul float %20, %22
store float %23, ptr %10, align 4
store float 0.000000e+00, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %75
.lr.ph: ; preds = %18
br label %27
27: ; preds = %.lr.ph, %69
%28 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%29 = load i32, ptr %8, align 4
%30 = sitofp i32 %29 to float
%31 = load i32, ptr %6, align 4
%32 = sitofp i32 %31 to float
%33 = load float, ptr %7, align 4
%34 = fmul float %32, %33
%35 = load i32, ptr %4, align 4
%36 = sitofp i32 %35 to float
%37 = call float @llvm.fmuladd.f32(float %34, float %36, float %30)
store float %37, ptr %11, align 4
%38 = load float, ptr %11, align 4
%39 = load i32, ptr %6, align 4
%40 = sitofp i32 %39 to float
%41 = load float, ptr %10, align 4
%42 = fmul float %40, %41
%43 = fcmp olt float %38, %42
br i1 %43, label %44, label %68
44: ; preds = %27
%45 = load float, ptr %12, align 4
%46 = load i32, ptr %6, align 4
%47 = sitofp i32 %46 to float
%48 = load float, ptr %10, align 4
%49 = load float, ptr %11, align 4
%50 = fneg float %49
%51 = call float @llvm.fmuladd.f32(float %47, float %48, float %50)
%52 = load i32, ptr %6, align 4
%53 = sitofp i32 %52 to float
%54 = fdiv float %51, %53
%55 = fcmp olt float %45, %54
br i1 %55, label %56, label %68
56: ; preds = %44
%57 = load i32, ptr %6, align 4
%58 = sitofp i32 %57 to float
%59 = load float, ptr %10, align 4
%60 = load float, ptr %11, align 4
%61 = fneg float %60
%62 = call float @llvm.fmuladd.f32(float %58, float %59, float %61)
%63 = load i32, ptr %6, align 4
%64 = sitofp i32 %63 to float
%65 = fdiv float %62, %64
store float %65, ptr %12, align 4
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %13, align 4
br label %68
68: ; preds = %56, %44, %27
br label %69
69: ; preds = %68
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %9, align 4
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr %5, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %75
75: ; preds = %._crit_edge, %18
%76 = load i32, ptr %13, align 4
%77 = call i32 @printf(ptr noundef @.str.3, i32 noundef %76)
%78 = load i32, ptr %2, align 4
%79 = add nsw i32 %78, -1
store i32 %79, ptr %2, align 4
%80 = icmp ne i32 %78, 0
br i1 %80, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_zq9fklp.c'
source_filename = "/tmp/tmp_zq9fklp.c"
target datalayout = "e-m:e-p270: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 @compute_sigma_clipped_bounds(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %11, align 8
store i32 %1, ptr %12, align 4
store i32 %2, ptr %13, align 4
store i32 %3, ptr %14, align 4
store i32 %4, ptr %15, align 4
store double %5, ptr %16, align 8
store double %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
store i32 0, ptr %27, align 4
br label %28
28: ; preds = %10, %193
%29 = load i32, ptr %13, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %28
%32 = load i32, ptr %14, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %31, %28
%35 = load ptr, ptr %11, align 8
%36 = load i32, ptr %12, align 4
%37 = call double @wirth_median(ptr noundef %35, i32 noundef %36)
store double %37, ptr %23, align 8
br label %38
38: ; preds = %34, %31
%39 = load i32, ptr %13, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr %14, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %65, label %44
44: ; preds = %41, %38
store double 0.000000e+00, ptr %21, align 8
store i32 0, ptr %25, align 4
br label %45
45: ; preds = %57, %44
%46 = load i32, ptr %25, align 4
%47 = load i32, ptr %12, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %60
49: ; preds = %45
%50 = load ptr, ptr %11, align 8
%51 = load i32, ptr %25, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, ptr %50, i64 %52
%54 = load double, ptr %53, align 8
%55 = load double, ptr %21, align 8
%56 = fadd double %55, %54
store double %56, ptr %21, align 8
br label %57
57: ; preds = %49
%58 = load i32, ptr %25, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %25, align 4
br label %45, !llvm.loop !6
60: ; preds = %45
%61 = load i32, ptr %12, align 4
%62 = sitofp i32 %61 to double
%63 = load double, ptr %21, align 8
%64 = fdiv double %63, %62
store double %64, ptr %21, align 8
br label %65
65: ; preds = %60, %41
%66 = load i32, ptr %13, align 4
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = load double, ptr %23, align 8
store double %69, ptr %24, align 8
br label %72
70: ; preds = %65
%71 = load double, ptr %21, align 8
store double %71, ptr %24, align 8
br label %72
72: ; preds = %70, %68
%73 = load i32, ptr %14, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %101
75: ; preds = %72
store i32 0, ptr %25, align 4
br label %76
76: ; preds = %93, %75
%77 = load i32, ptr %25, align 4
%78 = load i32, ptr %12, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %96
80: ; preds = %76
%81 = load ptr, ptr %11, align 8
%82 = load i32, ptr %25, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, ptr %81, i64 %83
%85 = load double, ptr %84, align 8
%86 = load double, ptr %23, align 8
%87 = fsub double %85, %86
%88 = call double @llvm.fabs.f64(double %87)
%89 = load ptr, ptr %20, align 8
%90 = load i32, ptr %25, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, ptr %89, i64 %91
store double %88, ptr %92, align 8
br label %93
93: ; preds = %80
%94 = load i32, ptr %25, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %25, align 4
br label %76, !llvm.loop !8
96: ; preds = %76
%97 = load ptr, ptr %20, align 8
%98 = load i32, ptr %12, align 4
%99 = call double @wirth_median(ptr noundef %97, i32 noundef %98)
%100 = fmul double %99, 0x3FF7B8BD1A975674
store double %100, ptr %22, align 8
br label %127
101: ; preds = %72
store double 0.000000e+00, ptr %22, align 8
store i32 0, ptr %25, align 4
br label %102
102: ; preds = %118, %101
%103 = load i32, ptr %25, align 4
%104 = load i32, ptr %12, align 4
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %121
106: ; preds = %102
%107 = load double, ptr %21, align 8
%108 = load ptr, ptr %11, align 8
%109 = load i32, ptr %25, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, ptr %108, i64 %110
%112 = load double, ptr %111, align 8
%113 = fsub double %107, %112
%114 = call i64 @pow(double noundef %113, i32 noundef 2)
%115 = sitofp i64 %114 to double
%116 = load double, ptr %22, align 8
%117 = fadd double %116, %115
store double %117, ptr %22, align 8
br label %118
118: ; preds = %106
%119 = load i32, ptr %25, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %25, align 4
br label %102, !llvm.loop !9
121: ; preds = %102
%122 = load double, ptr %22, align 8
%123 = load i32, ptr %12, align 4
%124 = sitofp i32 %123 to double
%125 = fdiv double %122, %124
%126 = call double @sqrt(double noundef %125) #4
store double %126, ptr %22, align 8
br label %127
127: ; preds = %121, %96
%128 = load double, ptr %24, align 8
%129 = load double, ptr %16, align 8
%130 = load double, ptr %22, align 8
%131 = fneg double %129
%132 = call double @llvm.fmuladd.f64(double %131, double %130, double %128)
%133 = load ptr, ptr %18, align 8
store double %132, ptr %133, align 8
%134 = load double, ptr %24, align 8
%135 = load double, ptr %17, align 8
%136 = load double, ptr %22, align 8
%137 = call double @llvm.fmuladd.f64(double %135, double %136, double %134)
%138 = load ptr, ptr %19, align 8
store double %137, ptr %138, align 8
store i32 0, ptr %26, align 4
store i32 0, ptr %25, align 4
br label %139
139: ; preds = %174, %127
%140 = load i32, ptr %25, align 4
%141 = load i32, ptr %12, align 4
%142 = icmp slt i32 %140, %141
br i1 %142, label %143, label %177
143: ; preds = %139
%144 = load ptr, ptr %11, align 8
%145 = load i32, ptr %25, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, ptr %144, i64 %146
%148 = load double, ptr %147, align 8
%149 = load ptr, ptr %18, align 8
%150 = load double, ptr %149, align 8
%151 = fcmp oge double %148, %150
br i1 %151, label %152, label %173
152: ; preds = %143
%153 = load ptr, ptr %11, align 8
%154 = load i32, ptr %25, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, ptr %153, i64 %155
%157 = load double, ptr %156, align 8
%158 = load ptr, ptr %19, align 8
%159 = load double, ptr %158, align 8
%160 = fcmp ole double %157, %159
br i1 %160, label %161, label %173
161: ; preds = %152
%162 = load ptr, ptr %11, align 8
%163 = load i32, ptr %25, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, ptr %162, i64 %164
%166 = load double, ptr %165, align 8
%167 = load ptr, ptr %11, align 8
%168 = load i32, ptr %26, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds double, ptr %167, i64 %169
store double %166, ptr %170, align 8
%171 = load i32, ptr %26, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %26, align 4
br label %173
173: ; preds = %161, %152, %143
br label %174
174: ; preds = %173
%175 = load i32, ptr %25, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %25, align 4
br label %139, !llvm.loop !10
177: ; preds = %139
%178 = load i32, ptr %26, align 4
%179 = load i32, ptr %12, align 4
%180 = icmp eq i32 %178, %179
br i1 %180, label %181, label %182
181: ; preds = %177
br label %194
182: ; preds = %177
%183 = load i32, ptr %26, align 4
store i32 %183, ptr %12, align 4
%184 = load i32, ptr %27, align 4
%185 = add nsw i32 %184, 1
store i32 %185, ptr %27, align 4
%186 = load i32, ptr %15, align 4
%187 = icmp ne i32 %186, -1
br i1 %187, label %188, label %193
188: ; preds = %182
%189 = load i32, ptr %27, align 4
%190 = load i32, ptr %15, align 4
%191 = icmp sge i32 %189, %190
br i1 %191, label %192, label %193
192: ; preds = %188
br label %194
193: ; preds = %188, %182
br label %28
194: ; preds = %192, %181
ret void
}
declare double @wirth_median(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
declare i64 @pow(double noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_zq9fklp.c"
target datalayout = "e-m:e-p270: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 @compute_sigma_clipped_bounds(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %11, align 8
store i32 %1, ptr %12, align 4
store i32 %2, ptr %13, align 4
store i32 %3, ptr %14, align 4
store i32 %4, ptr %15, align 4
store double %5, ptr %16, align 8
store double %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
store i32 0, ptr %27, align 4
br label %28
28: ; preds = %201, %10
%29 = load i32, ptr %13, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %28
%32 = load i32, ptr %14, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %31, %28
%35 = load ptr, ptr %11, align 8
%36 = load i32, ptr %12, align 4
%37 = call double @wirth_median(ptr noundef %35, i32 noundef %36)
store double %37, ptr %23, align 8
br label %38
38: ; preds = %34, %31
%39 = load i32, ptr %13, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr %14, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %67, label %44
44: ; preds = %41, %38
store double 0.000000e+00, ptr %21, align 8
store i32 0, ptr %25, align 4
%45 = load i32, ptr %25, align 4
%46 = load i32, ptr %12, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph, label %62
.lr.ph: ; preds = %44
br label %48
48: ; preds = %.lr.ph, %56
%49 = load ptr, ptr %11, align 8
%50 = load i32, ptr %25, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %49, i64 %51
%53 = load double, ptr %52, align 8
%54 = load double, ptr %21, align 8
%55 = fadd double %54, %53
store double %55, ptr %21, align 8
br label %56
56: ; preds = %48
%57 = load i32, ptr %25, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %25, align 4
%59 = load i32, ptr %25, align 4
%60 = load i32, ptr %12, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %48, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %62
62: ; preds = %._crit_edge, %44
%63 = load i32, ptr %12, align 4
%64 = sitofp i32 %63 to double
%65 = load double, ptr %21, align 8
%66 = fdiv double %65, %64
store double %66, ptr %21, align 8
br label %67
67: ; preds = %62, %41
%68 = load i32, ptr %13, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = load double, ptr %23, align 8
store double %71, ptr %24, align 8
br label %74
72: ; preds = %67
%73 = load double, ptr %21, align 8
store double %73, ptr %24, align 8
br label %74
74: ; preds = %72, %70
%75 = load i32, ptr %14, align 4
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %105
77: ; preds = %74
store i32 0, ptr %25, align 4
%78 = load i32, ptr %25, align 4
%79 = load i32, ptr %12, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %.lr.ph5, label %100
.lr.ph5: ; preds = %77
br label %81
81: ; preds = %.lr.ph5, %94
%82 = load ptr, ptr %11, align 8
%83 = load i32, ptr %25, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, ptr %82, i64 %84
%86 = load double, ptr %85, align 8
%87 = load double, ptr %23, align 8
%88 = fsub double %86, %87
%89 = call double @llvm.fabs.f64(double %88)
%90 = load ptr, ptr %20, align 8
%91 = load i32, ptr %25, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, ptr %90, i64 %92
store double %89, ptr %93, align 8
br label %94
94: ; preds = %81
%95 = load i32, ptr %25, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %25, align 4
%97 = load i32, ptr %25, align 4
%98 = load i32, ptr %12, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %81, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %94
br label %100
100: ; preds = %._crit_edge6, %77
%101 = load ptr, ptr %20, align 8
%102 = load i32, ptr %12, align 4
%103 = call double @wirth_median(ptr noundef %101, i32 noundef %102)
%104 = fmul double %103, 0x3FF7B8BD1A975674
store double %104, ptr %22, align 8
br label %133
105: ; preds = %74
store double 0.000000e+00, ptr %22, align 8
store i32 0, ptr %25, align 4
%106 = load i32, ptr %25, align 4
%107 = load i32, ptr %12, align 4
%108 = icmp slt i32 %106, %107
br i1 %108, label %.lr.ph2, label %127
.lr.ph2: ; preds = %105
br label %109
109: ; preds = %.lr.ph2, %121
%110 = load double, ptr %21, align 8
%111 = load ptr, ptr %11, align 8
%112 = load i32, ptr %25, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, ptr %111, i64 %113
%115 = load double, ptr %114, align 8
%116 = fsub double %110, %115
%117 = call i64 @pow(double noundef %116, i32 noundef 2)
%118 = sitofp i64 %117 to double
%119 = load double, ptr %22, align 8
%120 = fadd double %119, %118
store double %120, ptr %22, align 8
br label %121
121: ; preds = %109
%122 = load i32, ptr %25, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %25, align 4
%124 = load i32, ptr %25, align 4
%125 = load i32, ptr %12, align 4
%126 = icmp slt i32 %124, %125
br i1 %126, label %109, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %121
br label %127
127: ; preds = %._crit_edge3, %105
%128 = load double, ptr %22, align 8
%129 = load i32, ptr %12, align 4
%130 = sitofp i32 %129 to double
%131 = fdiv double %128, %130
%132 = call double @sqrt(double noundef %131) #4
store double %132, ptr %22, align 8
br label %133
133: ; preds = %127, %100
%134 = load double, ptr %24, align 8
%135 = load double, ptr %16, align 8
%136 = load double, ptr %22, align 8
%137 = fneg double %135
%138 = call double @llvm.fmuladd.f64(double %137, double %136, double %134)
%139 = load ptr, ptr %18, align 8
store double %138, ptr %139, align 8
%140 = load double, ptr %24, align 8
%141 = load double, ptr %17, align 8
%142 = load double, ptr %22, align 8
%143 = call double @llvm.fmuladd.f64(double %141, double %142, double %140)
%144 = load ptr, ptr %19, align 8
store double %143, ptr %144, align 8
store i32 0, ptr %26, align 4
store i32 0, ptr %25, align 4
%145 = load i32, ptr %25, align 4
%146 = load i32, ptr %12, align 4
%147 = icmp slt i32 %145, %146
br i1 %147, label %.lr.ph8, label %185
.lr.ph8: ; preds = %133
br label %148
148: ; preds = %.lr.ph8, %179
%149 = load ptr, ptr %11, align 8
%150 = load i32, ptr %25, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, ptr %149, i64 %151
%153 = load double, ptr %152, align 8
%154 = load ptr, ptr %18, align 8
%155 = load double, ptr %154, align 8
%156 = fcmp oge double %153, %155
br i1 %156, label %157, label %178
157: ; preds = %148
%158 = load ptr, ptr %11, align 8
%159 = load i32, ptr %25, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, ptr %158, i64 %160
%162 = load double, ptr %161, align 8
%163 = load ptr, ptr %19, align 8
%164 = load double, ptr %163, align 8
%165 = fcmp ole double %162, %164
br i1 %165, label %166, label %178
166: ; preds = %157
%167 = load ptr, ptr %11, align 8
%168 = load i32, ptr %25, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds double, ptr %167, i64 %169
%171 = load double, ptr %170, align 8
%172 = load ptr, ptr %11, align 8
%173 = load i32, ptr %26, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds double, ptr %172, i64 %174
store double %171, ptr %175, align 8
%176 = load i32, ptr %26, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %26, align 4
br label %178
178: ; preds = %166, %157, %148
br label %179
179: ; preds = %178
%180 = load i32, ptr %25, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr %25, align 4
%182 = load i32, ptr %25, align 4
%183 = load i32, ptr %12, align 4
%184 = icmp slt i32 %182, %183
br i1 %184, label %148, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %179
br label %185
185: ; preds = %._crit_edge9, %133
%186 = load i32, ptr %26, align 4
%187 = load i32, ptr %12, align 4
%188 = icmp eq i32 %186, %187
br i1 %188, label %189, label %190
189: ; preds = %185
br label %202
190: ; preds = %185
%191 = load i32, ptr %26, align 4
store i32 %191, ptr %12, align 4
%192 = load i32, ptr %27, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %27, align 4
%194 = load i32, ptr %15, align 4
%195 = icmp ne i32 %194, -1
br i1 %195, label %196, label %201
196: ; preds = %190
%197 = load i32, ptr %27, align 4
%198 = load i32, ptr %15, align 4
%199 = icmp sge i32 %197, %198
br i1 %199, label %200, label %201
200: ; preds = %196
br label %202
201: ; preds = %196, %190
br label %28
202: ; preds = %200, %189
ret void
}
declare double @wirth_median(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
declare i64 @pow(double noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpqbnttivn.c'
source_filename = "/tmp/tmpqbnttivn.c"
target datalayout = "e-m:e-p270: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
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prompt_and_get_input(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 = load i32, ptr @stderr, align 4
%9 = call i32 @fputs(ptr noundef %7, i32 noundef %8)
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @getline(ptr noundef %10, ptr noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @getline(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/tmpqbnttivn.c"
target datalayout = "e-m:e-p270: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
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prompt_and_get_input(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 = load i32, ptr @stderr, align 4
%9 = call i32 @fputs(ptr noundef %7, i32 noundef %8)
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @getline(ptr noundef %10, ptr noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @getline(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/tmpox2m7ahh.c'
source_filename = "/tmp/tmpox2m7ahh.c"
target datalayout = "e-m:e-p270: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/tmpox2m7ahh.c"
target datalayout = "e-m:e-p270: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/tmp453chnsz.c'
source_filename = "/tmp/tmp453chnsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOTSUP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cri_mutex_lock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOTSUP, align 4
%4 = sub nsw i32 0, %3
ret i32 %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp453chnsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOTSUP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cri_mutex_lock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOTSUP, align 4
%4 = sub nsw i32 0, %3
ret i32 %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp7w06ndr9.c'
source_filename = "/tmp/tmp7w06ndr9.c"
target datalayout = "e-m:e-p270: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 @_OS_ReturnNoSave() #0 {
%1 = call i32 (...) @_OS_POP()
%2 = call i32 (...) @_OS_RESTORE_SP()
ret void
}
declare i32 @_OS_POP(...) #1
declare i32 @_OS_RESTORE_SP(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp7w06ndr9.c"
target datalayout = "e-m:e-p270: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 @_OS_ReturnNoSave() #0 {
%1 = call i32 (...) @_OS_POP()
%2 = call i32 (...) @_OS_RESTORE_SP()
ret void
}
declare i32 @_OS_POP(...) #1
declare i32 @_OS_RESTORE_SP(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp54_z0zh5.c'
source_filename = "/tmp/tmp54_z0zh5.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Vnesete go brojot:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Najznacajnata cifra e \00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"%d, a najmalku znacajnata e %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%6 = load i32, ptr %2, align 4
%7 = sdiv i32 %6, 100
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 10
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %7, i32 noundef %9)
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/tmp54_z0zh5.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Vnesete go brojot:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Najznacajnata cifra e \00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"%d, a najmalku znacajnata e %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%6 = load i32, ptr %2, align 4
%7 = sdiv i32 %6, 100
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 10
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %7, i32 noundef %9)
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/tmp1_qqx56m.c'
source_filename = "/tmp/tmp1_qqx56m.c"
target datalayout = "e-m:e-p270: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/tmp1_qqx56m.c"
target datalayout = "e-m:e-p270: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/tmpgia6tsap.c'
source_filename = "/tmp/tmpgia6tsap.c"
target datalayout = "e-m:e-p270: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/tmpgia6tsap.c"
target datalayout = "e-m:e-p270: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/tmp53_2oyug.c'
source_filename = "/tmp/tmp53_2oyug.c"
target datalayout = "e-m:e-p270: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"rm: missing operand\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"rm error: %d\0A\00", align 1
@errno = 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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %35
12: ; preds = %2
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
br label %13
13: ; preds = %31, %12
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %34
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = call i32 @unlink(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %17
%26 = load i32, ptr @errno, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26)
%28 = load i32, ptr @errno, align 4
%29 = sub nsw i32 0, %28
store i32 %29, ptr %3, align 4
br label %35
30: ; preds = %17
br label %31
31: ; preds = %30
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
br label %13, !llvm.loop !6
34: ; preds = %13
store i32 0, ptr %3, align 4
br label %35
35: ; preds = %34, %25, %10
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @unlink(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/tmp53_2oyug.c"
target datalayout = "e-m:e-p270: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"rm: missing operand\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"rm error: %d\0A\00", align 1
@errno = 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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %37
12: ; preds = %2
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %36
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %30
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 @unlink(ptr noundef %21)
store i32 %22, ptr %6, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %16
%25 = load i32, ptr @errno, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr @errno, align 4
%28 = sub nsw i32 0, %27
store i32 %28, ptr %3, align 4
br label %37
29: ; preds = %16
br label %30
30: ; preds = %29
%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 %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %12
store i32 0, ptr %3, align 4
br label %37
37: ; preds = %36, %24, %10
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @unlink(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/tmpxo9bwepl.c'
source_filename = "/tmp/tmpxo9bwepl.c"
target datalayout = "e-m:e-p270: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_chk(i32 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %8, align 8
%11 = icmp ugt i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %4
%13 = call i32 (...) @__chk_fail()
br label %14
14: ; preds = %12, %4
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i64, ptr %7, align 8
%18 = call i32 @__read(i32 noundef %15, ptr noundef %16, i64 noundef %17)
ret i32 %18
}
declare i32 @__chk_fail(...) #1
declare i32 @__read(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxo9bwepl.c"
target datalayout = "e-m:e-p270: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_chk(i32 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %8, align 8
%11 = icmp ugt i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %4
%13 = call i32 (...) @__chk_fail()
br label %14
14: ; preds = %12, %4
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i64, ptr %7, align 8
%18 = call i32 @__read(i32 noundef %15, ptr noundef %16, i64 noundef %17)
ret i32 %18
}
declare i32 @__chk_fail(...) #1
declare i32 @__read(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphby9xuen.c'
source_filename = "/tmp/tmphby9xuen.c"
target datalayout = "e-m:e-p270: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 @main() #0 {
store volatile i64 4369, ptr inttoptr (i64 3760194176 to ptr), align 8
br label %1
1: ; preds = %0, %1
store volatile i64 0, ptr inttoptr (i64 3760194180 to ptr), align 8
%2 = call i32 @delay(i32 noundef 1048576)
store volatile i64 15, ptr inttoptr (i64 3760194180 to ptr), align 8
%3 = call i32 @delay(i32 noundef 1048576)
br label %1
}
declare i32 @delay(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/tmphby9xuen.c"
target datalayout = "e-m:e-p270: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 @main() #0 {
store volatile i64 4369, ptr inttoptr (i64 3760194176 to ptr), align 8
br label %1
1: ; preds = %1, %0
store volatile i64 0, ptr inttoptr (i64 3760194180 to ptr), align 8
%2 = call i32 @delay(i32 noundef 1048576)
store volatile i64 15, ptr inttoptr (i64 3760194180 to ptr), align 8
%3 = call i32 @delay(i32 noundef 1048576)
br label %1
}
declare i32 @delay(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/tmpceugq09o.c'
source_filename = "/tmp/tmpceugq09o.c"
target datalayout = "e-m:e-p270: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 [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 (...) @cleanUp()
ret i32 1
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @cleanUp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpceugq09o.c"
target datalayout = "e-m:e-p270: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 [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 (...) @cleanUp()
ret i32 1
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @cleanUp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp0nf7moyw.c'
source_filename = "/tmp/tmp0nf7moyw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tolostr.OutputString = internal global [1024 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @tolostr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strcpy(ptr noundef @tolostr.OutputString, ptr noundef %5)
%7 = call i64 @strlen(ptr noundef @tolostr.OutputString)
%8 = trunc i64 %7 to i32
store i32 %8, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %22, %1
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %25
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [1024 x i8], ptr @tolostr.OutputString, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call signext i8 @tolower(i8 noundef signext %17)
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [1024 x i8], ptr @tolostr.OutputString, i64 0, i64 %20
store i8 %18, ptr %21, align 1
br label %22
22: ; preds = %13
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
br label %9, !llvm.loop !6
25: ; preds = %9
ret ptr @tolostr.OutputString
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0nf7moyw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tolostr.OutputString = internal global [1024 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @tolostr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strcpy(ptr noundef @tolostr.OutputString, ptr noundef %5)
%7 = call i64 @strlen(ptr noundef @tolostr.OutputString)
%8 = trunc i64 %7 to i32
store i32 %8, ptr %4, align 4
store i32 0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %27
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %21
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [1024 x i8], ptr @tolostr.OutputString, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call signext i8 @tolower(i8 noundef signext %16)
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [1024 x i8], ptr @tolostr.OutputString, i64 0, i64 %19
store i8 %17, ptr %20, align 1
br label %21
21: ; preds = %12
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %1
ret ptr @tolostr.OutputString
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpuqwdgces.c'
source_filename = "/tmp/tmpuqwdgces.c"
target datalayout = "e-m:e-p270: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.char_array = private unnamed_addr constant [5 x i8] c"abcde", align 1
@__const.main.int_array = private unnamed_addr constant [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5], align 16
@.str = private unnamed_addr constant [62 x i8] c"[integer pointer] points to %p, which contains the char '%c'\0A\00", align 1
@.str.1 = private unnamed_addr constant [60 x i8] c"[char pointer] points to %p, which contains the integer %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [5 x i8], align 1
%4 = alloca [5 x i32], align 16
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.char_array, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.int_array, i64 20, i1 false)
%7 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 0
store ptr %7, ptr %5, align 8
%8 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
store ptr %8, ptr %6, align 8
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %19, %0
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 5
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %13, i32 noundef %15)
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 1
store ptr %18, ptr %6, align 8
br label %19
19: ; preds = %12
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
store i32 0, ptr %2, align 4
br label %23
23: ; preds = %34, %22
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %24, 5
br i1 %25, label %26, label %37
26: ; preds = %23
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %27, i32 noundef %30)
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i32, ptr %32, i64 1
store ptr %33, ptr %5, align 8
br label %34
34: ; preds = %26
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
br label %23, !llvm.loop !8
37: ; preds = %23
%38 = load i32, ptr %1, align 4
ret i32 %38
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuqwdgces.c"
target datalayout = "e-m:e-p270: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.char_array = private unnamed_addr constant [5 x i8] c"abcde", align 1
@__const.main.int_array = private unnamed_addr constant [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5], align 16
@.str = private unnamed_addr constant [62 x i8] c"[integer pointer] points to %p, which contains the char '%c'\0A\00", align 1
@.str.1 = private unnamed_addr constant [60 x i8] c"[char pointer] points to %p, which contains the integer %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [5 x i8], align 1
%4 = alloca [5 x i32], align 16
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.char_array, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.int_array, i64 20, i1 false)
%7 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 0
store ptr %7, ptr %5, align 8
%8 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
store ptr %8, ptr %6, align 8
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 5
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %18
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %12, i32 noundef %14)
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
store ptr %17, ptr %6, align 8
br label %18
18: ; preds = %11
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %21, 5
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %0
store i32 0, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %24, 5
br i1 %25, label %.lr.ph2, label %39
.lr.ph2: ; preds = %23
br label %26
26: ; preds = %.lr.ph2, %34
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %27, i32 noundef %30)
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i32, ptr %32, i64 1
store ptr %33, ptr %5, align 8
br label %34
34: ; preds = %26
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
%37 = load i32, ptr %2, align 4
%38 = icmp slt i32 %37, 5
br i1 %38, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %39
39: ; preds = %._crit_edge3, %23
%40 = load i32, ptr %1, align 4
ret i32 %40
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzfgxkkul.c'
source_filename = "/tmp/tmpzfgxkkul.c"
target datalayout = "e-m:e-p270: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 @sp_rtree_release(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 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzfgxkkul.c"
target datalayout = "e-m:e-p270: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 @sp_rtree_release(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 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp65mawfz.c'
source_filename = "/tmp/tmpp65mawfz.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"Fahrenheit to Celsius Table\0A F\09 C\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%3.0f\09%6.1f\0A\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
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %2, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %4
4: ; preds = %7, %0
%5 = load float, ptr %2, align 4
%6 = fcmp ole float %5, 3.000000e+02
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load float, ptr %2, align 4
%9 = fpext float %8 to double
%10 = load float, ptr %2, align 4
%11 = call double @fahrToCels(float noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %9, double noundef %11)
%13 = load float, ptr %2, align 4
%14 = fadd float %13, 2.000000e+01
store float %14, ptr %2, align 4
br label %4, !llvm.loop !6
15: ; preds = %4
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare double @fahrToCels(float 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/tmpp65mawfz.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"Fahrenheit to Celsius Table\0A F\09 C\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%3.0f\09%6.1f\0A\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
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %2, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = load float, ptr %2, align 4
%5 = fcmp ole float %4, 3.000000e+02
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = load float, ptr %2, align 4
%8 = fpext float %7 to double
%9 = load float, ptr %2, align 4
%10 = call double @fahrToCels(float noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %8, double noundef %10)
%12 = load float, ptr %2, align 4
%13 = fadd float %12, 2.000000e+01
store float %13, ptr %2, align 4
%14 = load float, ptr %2, align 4
%15 = fcmp ole float %14, 3.000000e+02
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %16
16: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare double @fahrToCels(float 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/tmpde2l4mas.c'
source_filename = "/tmp/tmpde2l4mas.c"
target datalayout = "e-m:e-p270: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 [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mk_friendly_substring(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 ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = call i32 @int_max(i32 noundef 0, i32 noundef %8)
store i32 %9, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
%13 = load i32, ptr %6, align 4
%14 = call i32 @int_min(i32 noundef %12, i32 noundef %13)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = call ptr @mk_copy_string(ptr noundef @.str)
store ptr %19, ptr %7, align 8
br label %25
20: ; preds = %3
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %6, align 4
%24 = call ptr @mk_substring(ptr noundef %21, i32 noundef %22, i32 noundef %23)
store ptr %24, ptr %7, align 8
br label %25
25: ; preds = %20, %18
%26 = load ptr, ptr %7, align 8
ret ptr %26
}
declare i32 @int_max(i32 noundef, i32 noundef) #1
declare i32 @int_min(i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @mk_copy_string(ptr noundef) #1
declare ptr @mk_substring(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/tmpde2l4mas.c"
target datalayout = "e-m:e-p270: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 [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mk_friendly_substring(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 ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = call i32 @int_max(i32 noundef 0, i32 noundef %8)
store i32 %9, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
%13 = load i32, ptr %6, align 4
%14 = call i32 @int_min(i32 noundef %12, i32 noundef %13)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = call ptr @mk_copy_string(ptr noundef @.str)
store ptr %19, ptr %7, align 8
br label %25
20: ; preds = %3
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %6, align 4
%24 = call ptr @mk_substring(ptr noundef %21, i32 noundef %22, i32 noundef %23)
store ptr %24, ptr %7, align 8
br label %25
25: ; preds = %20, %18
%26 = load ptr, ptr %7, align 8
ret ptr %26
}
declare i32 @int_max(i32 noundef, i32 noundef) #1
declare i32 @int_min(i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @mk_copy_string(ptr noundef) #1
declare ptr @mk_substring(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/tmpydxjflld.c'
source_filename = "/tmp/tmpydxjflld.c"
target datalayout = "e-m:e-p270: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"Remapping page zero!\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tube_parasite_write_banksel(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = and i32 %7, 65528
%9 = icmp eq i32 %8, 65272
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @tube_parasite_write(i32 noundef %11, i32 noundef %12)
br label %40
14: ; preds = %2
%15 = load i32, ptr %3, align 4
%16 = and i32 %15, 65528
%17 = icmp eq i32 %16, 65248
br i1 %17, label %18, label %39
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = and i32 %19, 7
%21 = shl i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = shl i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 @map_4k_page(i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
%31 = call i32 @map_4k_page(i32 noundef %28, i32 noundef %30)
%32 = load i32, ptr %5, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %18
%35 = call i32 @printf(ptr noundef @.str)
%36 = load i32, ptr %6, align 4
%37 = call i32 @map_4k_page(i32 noundef 16, i32 noundef %36)
br label %38
38: ; preds = %34, %18
br label %39
39: ; preds = %38, %14
br label %40
40: ; preds = %39, %10
ret void
}
declare i32 @tube_parasite_write(i32 noundef, i32 noundef) #1
declare i32 @map_4k_page(i32 noundef, i32 noundef) #1
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/tmpydxjflld.c"
target datalayout = "e-m:e-p270: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"Remapping page zero!\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tube_parasite_write_banksel(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = and i32 %7, 65528
%9 = icmp eq i32 %8, 65272
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @tube_parasite_write(i32 noundef %11, i32 noundef %12)
br label %40
14: ; preds = %2
%15 = load i32, ptr %3, align 4
%16 = and i32 %15, 65528
%17 = icmp eq i32 %16, 65248
br i1 %17, label %18, label %39
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = and i32 %19, 7
%21 = shl i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = shl i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 @map_4k_page(i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
%31 = call i32 @map_4k_page(i32 noundef %28, i32 noundef %30)
%32 = load i32, ptr %5, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %18
%35 = call i32 @printf(ptr noundef @.str)
%36 = load i32, ptr %6, align 4
%37 = call i32 @map_4k_page(i32 noundef 16, i32 noundef %36)
br label %38
38: ; preds = %34, %18
br label %39
39: ; preds = %38, %14
br label %40
40: ; preds = %39, %10
ret void
}
declare i32 @tube_parasite_write(i32 noundef, i32 noundef) #1
declare i32 @map_4k_page(i32 noundef, i32 noundef) #1
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/tmp8t72jl2s.c'
source_filename = "/tmp/tmp8t72jl2s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Podaj liczbe M: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Szukane n to: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %8
8: ; preds = %12, %0
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %8
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, %13
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = load i32, ptr %3, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %21)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8t72jl2s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Podaj liczbe M: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Szukane n to: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %11
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, %12
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %22
22: ; preds = %._crit_edge, %0
%23 = load i32, ptr %3, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj7bq5umd.c'
source_filename = "/tmp/tmpj7bq5umd.c"
target datalayout = "e-m:e-p270: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"Q sorted array \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @qSort(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
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sge i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %3
br label %81
14: ; preds = %3
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %15, %16
%18 = sdiv i32 %17, 2
store i32 %18, ptr %9, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %9, align 4
%22 = call i32 @swap(ptr noundef %19, i32 noundef %20, i32 noundef %21)
%23 = load i32, ptr %5, align 4
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
br label %26
26: ; preds = %49, %14
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp sle i32 %27, %28
br i1 %29, label %30, label %52
30: ; preds = %26
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4
%41 = icmp slt i32 %35, %40
br i1 %41, label %42, label %48
42: ; preds = %30
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %7, align 4
%47 = call i32 @swap(ptr noundef %43, i32 noundef %45, i32 noundef %46)
br label %48
48: ; preds = %42, %30
br label %49
49: ; preds = %48
%50 = load i32, ptr %7, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %7, align 4
br label %26, !llvm.loop !6
52: ; preds = %26
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %5, align 4
%55 = load i32, ptr %8, align 4
%56 = call i32 @swap(ptr noundef %53, i32 noundef %54, i32 noundef %55)
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %8, align 4
%60 = sub nsw i32 %59, 1
call void @qSort(ptr noundef %57, i32 noundef %58, i32 noundef %60)
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
%64 = load i32, ptr %6, align 4
call void @qSort(ptr noundef %61, i32 noundef %63, i32 noundef %64)
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %7, align 4
br label %66
66: ; preds = %76, %52
%67 = load i32, ptr %7, align 4
%68 = icmp slt i32 %67, 10
br i1 %68, label %69, label %79
69: ; preds = %66
%70 = load ptr, ptr %4, align 8
%71 = load i32, ptr %7, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %70, i64 %72
%74 = load i32, ptr %73, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %74)
br label %76
76: ; preds = %69
%77 = load i32, ptr %7, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %7, align 4
br label %66, !llvm.loop !8
79: ; preds = %66
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %81
81: ; preds = %79, %13
ret void
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj7bq5umd.c"
target datalayout = "e-m:e-p270: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"Q sorted array \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @qSort(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
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sge i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %3
br label %84
14: ; preds = %3
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %15, %16
%18 = sdiv i32 %17, 2
store i32 %18, ptr %9, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %9, align 4
%22 = call i32 @swap(ptr noundef %19, i32 noundef %20, i32 noundef %21)
%23 = load i32, ptr %5, align 4
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %.lr.ph, label %54
.lr.ph: ; preds = %14
br label %29
29: ; preds = %.lr.ph, %48
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp slt i32 %34, %39
br i1 %40, label %41, label %47
41: ; preds = %29
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %7, align 4
%46 = call i32 @swap(ptr noundef %42, i32 noundef %44, i32 noundef %45)
br label %47
47: ; preds = %41, %29
br label %48
48: ; preds = %47
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %6, align 4
%53 = icmp sle i32 %51, %52
br i1 %53, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %54
54: ; preds = %._crit_edge, %14
%55 = load ptr, ptr %4, align 8
%56 = load i32, ptr %5, align 4
%57 = load i32, ptr %8, align 4
%58 = call i32 @swap(ptr noundef %55, i32 noundef %56, i32 noundef %57)
%59 = load ptr, ptr %4, align 8
%60 = load i32, ptr %5, align 4
%61 = load i32, ptr %8, align 4
%62 = sub nsw i32 %61, 1
call void @qSort(ptr noundef %59, i32 noundef %60, i32 noundef %62)
%63 = load ptr, ptr %4, align 8
%64 = load i32, ptr %8, align 4
%65 = add nsw i32 %64, 1
%66 = load i32, ptr %6, align 4
call void @qSort(ptr noundef %63, i32 noundef %65, i32 noundef %66)
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %7, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %68, 10
br i1 %69, label %.lr.ph2, label %82
.lr.ph2: ; preds = %54
br label %70
70: ; preds = %.lr.ph2, %77
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
%75 = load i32, ptr %74, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %75)
br label %77
77: ; preds = %70
%78 = load i32, ptr %7, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %7, align 4
%80 = load i32, ptr %7, align 4
%81 = icmp slt i32 %80, 10
br i1 %81, label %70, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %82
82: ; preds = %._crit_edge3, %54
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %84
84: ; preds = %82, %13
ret void
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
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}
|
; ModuleID = '/tmp/tmpjemdsh1e.c'
source_filename = "/tmp/tmpjemdsh1e.c"
target datalayout = "e-m:e-p270: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/tmpjemdsh1e.c"
target datalayout = "e-m:e-p270: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/tmp3r0u1q2c.c'
source_filename = "/tmp/tmp3r0u1q2c.c"
target datalayout = "e-m:e-p270: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 @find_npr(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = call i64 @factorial(i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %8, %9
%11 = call i64 @factorial(i32 noundef %10)
%12 = sdiv i64 %7, %11
store i64 %12, ptr %5, align 8
%13 = load i64, ptr %5, align 8
ret i64 %13
}
declare i64 @factorial(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/tmp3r0u1q2c.c"
target datalayout = "e-m:e-p270: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 @find_npr(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = call i64 @factorial(i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %8, %9
%11 = call i64 @factorial(i32 noundef %10)
%12 = sdiv i64 %7, %11
store i64 %12, ptr %5, align 8
%13 = load i64, ptr %5, align 8
ret i64 %13
}
declare i64 @factorial(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/tmpn2p2hddu.c'
source_filename = "/tmp/tmpn2p2hddu.c"
target datalayout = "e-m:e-p270: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/tmpn2p2hddu.c"
target datalayout = "e-m:e-p270: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/tmp3hbv6wrg.c'
source_filename = "/tmp/tmp3hbv6wrg.c"
target datalayout = "e-m:e-p270: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"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printArray(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = 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 %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, 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 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3hbv6wrg.c"
target datalayout = "e-m:e-p270: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"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printArray(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = 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
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, 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 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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"}
|
; ModuleID = '/tmp/tmpuusaakvj.c'
source_filename = "/tmp/tmpuusaakvj.c"
target datalayout = "e-m:e-p270: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"fs.ini\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"faststack/config.ini\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"XDG_CONFIG_HOME\00", align 1
@getIniFilePath.iniPath = internal global [128 x i8] zeroinitializer, align 16
@.str.3 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"~\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"%s/%s/%s\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c".config\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getIniFilePath() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = call i64 @fileExists(ptr noundef @.str)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store ptr @.str, ptr %1, align 8
br label %26
8: ; preds = %0
store ptr @.str.1, ptr %2, align 8
%9 = call ptr @getenv(ptr noundef @.str.2)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %2, align 8
%15 = call i32 (ptr, i32, ptr, ptr, ptr, ...) @snprintf(ptr noundef @getIniFilePath.iniPath, i32 noundef 128, ptr noundef @.str.3, ptr noundef %13, ptr noundef %14)
br label %25
16: ; preds = %8
%17 = call ptr @getenv(ptr noundef @.str.4)
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %21, label %20
20: ; preds = %16
store ptr @.str.5, ptr %4, align 8
br label %21
21: ; preds = %20, %16
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %2, align 8
%24 = call i32 (ptr, i32, ptr, ptr, ptr, ...) @snprintf(ptr noundef @getIniFilePath.iniPath, i32 noundef 128, ptr noundef @.str.6, ptr noundef %22, ptr noundef @.str.7, ptr noundef %23)
br label %25
25: ; preds = %21, %12
store ptr @getIniFilePath.iniPath, ptr %1, align 8
br label %26
26: ; preds = %25, %7
%27 = load ptr, ptr %1, align 8
ret ptr %27
}
declare i64 @fileExists(ptr noundef) #1
declare ptr @getenv(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuusaakvj.c"
target datalayout = "e-m:e-p270: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"fs.ini\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"faststack/config.ini\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"XDG_CONFIG_HOME\00", align 1
@getIniFilePath.iniPath = internal global [128 x i8] zeroinitializer, align 16
@.str.3 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"~\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"%s/%s/%s\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c".config\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getIniFilePath() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = call i64 @fileExists(ptr noundef @.str)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store ptr @.str, ptr %1, align 8
br label %26
8: ; preds = %0
store ptr @.str.1, ptr %2, align 8
%9 = call ptr @getenv(ptr noundef @.str.2)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %2, align 8
%15 = call i32 (ptr, i32, ptr, ptr, ptr, ...) @snprintf(ptr noundef @getIniFilePath.iniPath, i32 noundef 128, ptr noundef @.str.3, ptr noundef %13, ptr noundef %14)
br label %25
16: ; preds = %8
%17 = call ptr @getenv(ptr noundef @.str.4)
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %21, label %20
20: ; preds = %16
store ptr @.str.5, ptr %4, align 8
br label %21
21: ; preds = %20, %16
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %2, align 8
%24 = call i32 (ptr, i32, ptr, ptr, ptr, ...) @snprintf(ptr noundef @getIniFilePath.iniPath, i32 noundef 128, ptr noundef @.str.6, ptr noundef %22, ptr noundef @.str.7, ptr noundef %23)
br label %25
25: ; preds = %21, %12
store ptr @getIniFilePath.iniPath, ptr %1, align 8
br label %26
26: ; preds = %25, %7
%27 = load ptr, ptr %1, align 8
ret ptr %27
}
declare i64 @fileExists(ptr noundef) #1
declare ptr @getenv(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpevti16fj.c'
source_filename = "/tmp/tmpevti16fj.c"
target datalayout = "e-m:e-p270: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"\09test\09%%eax,%%eax\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"\09cmp\09%%eax,$%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"\09je\09L%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cbranch(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @rcexpr(ptr noundef %7)
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %16
13: ; preds = %3
%14 = load i32, ptr %6, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %13, %11
%17 = load i32, ptr %5, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17)
ret void
}
declare i32 @rcexpr(ptr noundef) #1
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/tmpevti16fj.c"
target datalayout = "e-m:e-p270: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"\09test\09%%eax,%%eax\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"\09cmp\09%%eax,$%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"\09je\09L%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cbranch(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @rcexpr(ptr noundef %7)
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %16
13: ; preds = %3
%14 = load i32, ptr %6, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %13, %11
%17 = load i32, ptr %5, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17)
ret void
}
declare i32 @rcexpr(ptr noundef) #1
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/tmp3b4j35q8.c'
source_filename = "/tmp/tmp3b4j35q8.c"
target datalayout = "e-m:e-p270: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%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%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() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %8, %0
%5 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = load i64, ptr @EOF, align 8
%7 = icmp ne i64 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 @gcd(i32 noundef %9, i32 noundef %10)
%12 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11)
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %14
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @gcd(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/tmp3b4j35q8.c"
target datalayout = "e-m:e-p270: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%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%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() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = load i64, ptr @EOF, align 8
%6 = icmp ne i64 %4, %5
br i1 %6, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @gcd(i32 noundef %8, i32 noundef %9)
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%13 = load i64, ptr @EOF, align 8
%14 = icmp ne i64 %12, %13
br i1 %14, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %15
15: ; preds = %._crit_edge, %0
%16 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %16
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @gcd(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/tmp4zcyw0fx.c'
source_filename = "/tmp/tmp4zcyw0fx.c"
target datalayout = "e-m:e-p270: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.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XMotionEvent_type(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp4zcyw0fx.c"
target datalayout = "e-m:e-p270: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.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XMotionEvent_type(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp1i59_01z.c'
source_filename = "/tmp/tmp1i59_01z.c"
target datalayout = "e-m:e-p270: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 @tags_set_object(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 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @object_copy(ptr noundef %9)
%11 = call i32 @tags_set_object_(ptr noundef %7, ptr noundef %8, i32 noundef %10)
ret i32 %11
}
declare i32 @tags_set_object_(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @object_copy(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/tmp1i59_01z.c"
target datalayout = "e-m:e-p270: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 @tags_set_object(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 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @object_copy(ptr noundef %9)
%11 = call i32 @tags_set_object_(ptr noundef %7, ptr noundef %8, i32 noundef %10)
ret i32 %11
}
declare i32 @tags_set_object_(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @object_copy(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/tmp8l4m880t.c'
source_filename = "/tmp/tmp8l4m880t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@VIDEO_FAST_FORWARD = 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/tmp8l4m880t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@VIDEO_FAST_FORWARD = 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/tmpt3lqn7uu.c'
source_filename = "/tmp/tmpt3lqn7uu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_timeval_in_usec(i32 %0, i64 %1, i32 %2, i64 %3) #0 {
%5 = alloca %struct.timeval, align 8
%6 = alloca %struct.timeval, align 8
%7 = getelementptr inbounds { i32, i64 }, ptr %5, i32 0, i32 0
store i32 %0, ptr %7, align 8
%8 = getelementptr inbounds { i32, i64 }, ptr %5, i32 0, i32 1
store i64 %1, ptr %8, align 8
%9 = getelementptr inbounds { i32, i64 }, ptr %6, i32 0, i32 0
store i32 %2, ptr %9, align 8
%10 = getelementptr inbounds { i32, i64 }, ptr %6, i32 0, i32 1
store i64 %3, ptr %10, align 8
%11 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%12 = load i32, ptr %11, align 8
%13 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%14 = load i32, ptr %13, align 8
%15 = sub nsw i32 %12, %14
%16 = mul nsw i32 1000000, %15
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
%19 = load i64, ptr %18, align 8
%20 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
%21 = load i64, ptr %20, align 8
%22 = sub nsw i64 %19, %21
%23 = add nsw i64 %17, %22
ret i64 %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpt3lqn7uu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_timeval_in_usec(i32 %0, i64 %1, i32 %2, i64 %3) #0 {
%5 = alloca %struct.timeval, align 8
%6 = alloca %struct.timeval, align 8
%7 = getelementptr inbounds { i32, i64 }, ptr %5, i32 0, i32 0
store i32 %0, ptr %7, align 8
%8 = getelementptr inbounds { i32, i64 }, ptr %5, i32 0, i32 1
store i64 %1, ptr %8, align 8
%9 = getelementptr inbounds { i32, i64 }, ptr %6, i32 0, i32 0
store i32 %2, ptr %9, align 8
%10 = getelementptr inbounds { i32, i64 }, ptr %6, i32 0, i32 1
store i64 %3, ptr %10, align 8
%11 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%12 = load i32, ptr %11, align 8
%13 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%14 = load i32, ptr %13, align 8
%15 = sub nsw i32 %12, %14
%16 = mul nsw i32 1000000, %15
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
%19 = load i64, ptr %18, align 8
%20 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
%21 = load i64, ptr %20, align 8
%22 = sub nsw i64 %19, %21
%23 = add nsw i64 %17, %22
ret i64 %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpus_rapik.c'
source_filename = "/tmp/tmpus_rapik.c"
target datalayout = "e-m:e-p270: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(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 = call i32 (...) @write_proto_header()
%7 = call i32 (...) @write_call_table()
%8 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @write_proto_header(...) #1
declare i32 @write_call_table(...) #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/tmpus_rapik.c"
target datalayout = "e-m:e-p270: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(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 = call i32 (...) @write_proto_header()
%7 = call i32 (...) @write_call_table()
%8 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @write_proto_header(...) #1
declare i32 @write_call_table(...) #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/tmpqey55cpt.c'
source_filename = "/tmp/tmpqey55cpt.c"
target datalayout = "e-m:e-p270: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"city.png\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Fehler beim \C3\96ffnen der Datei!\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [29 x i8] c"Fehler beim lesen der Datei\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1000, ptr %2, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.2)
br label %11
11: ; preds = %9, %0
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr @SEEK_END, align 4
%14 = call i32 @fseek(ptr noundef %12, i32 noundef 0, i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = call i32 @ftell(ptr noundef %15)
store i32 %16, ptr %4, align 4
%17 = load ptr, ptr %3, align 8
%18 = call i32 @rewind(ptr noundef %17)
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 1
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %4, align 4
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fread(ptr noundef %25, i32 noundef %26, i32 noundef 1, ptr noundef %27)
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp ne i32 %29, 1
br i1 %30, label %31, label %34
31: ; preds = %11
%32 = call i32 @printf(ptr noundef @.str.3)
%33 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %33, ptr %1, align 4
br label %40
34: ; preds = %11
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr @stdout, align 4
%38 = call i32 @fwrite(ptr noundef %35, i32 noundef %36, i32 noundef 1, i32 noundef %37)
%39 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %39, ptr %1, align 4
br label %40
40: ; preds = %34, %31
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqey55cpt.c"
target datalayout = "e-m:e-p270: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"city.png\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Fehler beim \C3\96ffnen der Datei!\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [29 x i8] c"Fehler beim lesen der Datei\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1000, ptr %2, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.2)
br label %11
11: ; preds = %9, %0
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr @SEEK_END, align 4
%14 = call i32 @fseek(ptr noundef %12, i32 noundef 0, i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = call i32 @ftell(ptr noundef %15)
store i32 %16, ptr %4, align 4
%17 = load ptr, ptr %3, align 8
%18 = call i32 @rewind(ptr noundef %17)
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 1
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %4, align 4
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fread(ptr noundef %25, i32 noundef %26, i32 noundef 1, ptr noundef %27)
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp ne i32 %29, 1
br i1 %30, label %31, label %34
31: ; preds = %11
%32 = call i32 @printf(ptr noundef @.str.3)
%33 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %33, ptr %1, align 4
br label %40
34: ; preds = %11
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr @stdout, align 4
%38 = call i32 @fwrite(ptr noundef %35, i32 noundef %36, i32 noundef 1, i32 noundef %37)
%39 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %39, ptr %1, align 4
br label %40
40: ; preds = %34, %31
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr 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"}
|
; ModuleID = '/tmp/tmpegv8vy3_.c'
source_filename = "/tmp/tmpegv8vy3_.c"
target datalayout = "e-m:e-p270: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"rb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @loadbmp_decode_file(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [14 x i8], align 1
%12 = alloca [40 x i8], align 16
%13 = alloca [3 x i8], align 1
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
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
%21 = load ptr, ptr %6, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str)
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %10, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %26, label %25
25: ; preds = %4
store i32 2, ptr %5, align 4
br label %227
26: ; preds = %4
store ptr null, ptr %16, align 8
%27 = getelementptr inbounds [14 x i8], ptr %11, i64 0, i64 0
%28 = call i32 @memset(ptr noundef %27, i32 noundef 0, i32 noundef 14)
%29 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 0
%30 = call i32 @memset(ptr noundef %29, i32 noundef 0, i32 noundef 40)
%31 = getelementptr inbounds [14 x i8], ptr %11, i64 0, i64 0
%32 = load ptr, ptr %10, align 8
%33 = call i32 @fread(ptr noundef %31, i32 noundef 14, i32 noundef 1, ptr noundef %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = load ptr, ptr %10, align 8
%37 = call i32 @fclose(ptr noundef %36)
store i32 4, ptr %5, align 4
br label %227
38: ; preds = %26
%39 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 0
%40 = load ptr, ptr %10, align 8
%41 = call i32 @fread(ptr noundef %39, i32 noundef 40, i32 noundef 1, ptr noundef %40)
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = load ptr, ptr %10, align 8
%45 = call i32 @fclose(ptr noundef %44)
store i32 4, ptr %5, align 4
br label %227
46: ; preds = %38
%47 = getelementptr inbounds [14 x i8], ptr %11, i64 0, i64 0
%48 = load i8, ptr %47, align 1
%49 = zext i8 %48 to i32
%50 = icmp ne i32 %49, 66
br i1 %50, label %56, label %51
51: ; preds = %46
%52 = getelementptr inbounds [14 x i8], ptr %11, i64 0, i64 1
%53 = load i8, ptr %52, align 1
%54 = zext i8 %53 to i32
%55 = icmp ne i32 %54, 77
br i1 %55, label %56, label %59
56: ; preds = %51, %46
%57 = load ptr, ptr %10, align 8
%58 = call i32 @fclose(ptr noundef %57)
store i32 5, ptr %5, align 4
br label %227
59: ; preds = %51
%60 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 14
%61 = load i8, ptr %60, align 2
%62 = zext i8 %61 to i32
%63 = icmp ne i32 %62, 24
br i1 %63, label %64, label %72
64: ; preds = %59
%65 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 14
%66 = load i8, ptr %65, align 2
%67 = zext i8 %66 to i32
%68 = icmp ne i32 %67, 32
br i1 %68, label %69, label %72
69: ; preds = %64
%70 = load ptr, ptr %10, align 8
%71 = call i32 @fclose(ptr noundef %70)
store i32 6, ptr %5, align 4
br label %227
72: ; preds = %64, %59
%73 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 4
%74 = load i8, ptr %73, align 4
%75 = zext i8 %74 to i32
%76 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 5
%77 = load i8, ptr %76, align 1
%78 = zext i8 %77 to i32
%79 = shl i32 %78, 8
%80 = add nsw i32 %75, %79
%81 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 6
%82 = load i8, ptr %81, align 2
%83 = zext i8 %82 to i32
%84 = shl i32 %83, 16
%85 = add nsw i32 %80, %84
%86 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 7
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
%89 = shl i32 %88, 24
%90 = add nsw i32 %85, %89
store i32 %90, ptr %14, align 4
%91 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 8
%92 = load i8, ptr %91, align 8
%93 = zext i8 %92 to i32
%94 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 9
%95 = load i8, ptr %94, align 1
%96 = zext i8 %95 to i32
%97 = shl i32 %96, 8
%98 = add nsw i32 %93, %97
%99 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 10
%100 = load i8, ptr %99, align 2
%101 = zext i8 %100 to i32
%102 = shl i32 %101, 16
%103 = add nsw i32 %98, %102
%104 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 11
%105 = load i8, ptr %104, align 1
%106 = zext i8 %105 to i32
%107 = shl i32 %106, 24
%108 = add nsw i32 %103, %107
store i32 %108, ptr %15, align 4
%109 = load i32, ptr %14, align 4
%110 = icmp ugt i32 %109, 0
br i1 %110, label %111, label %218
111: ; preds = %72
%112 = load i32, ptr %15, align 4
%113 = icmp ugt i32 %112, 0
br i1 %113, label %114, label %218
114: ; preds = %111
%115 = load i32, ptr %14, align 4
%116 = load i32, ptr %15, align 4
%117 = mul i32 %115, %116
%118 = mul i32 %117, 4
%119 = call i64 @malloc(i32 noundef %118)
%120 = inttoptr i64 %119 to ptr
store ptr %120, ptr %16, align 8
%121 = load ptr, ptr %16, align 8
%122 = icmp ne ptr %121, null
br i1 %122, label %126, label %123
123: ; preds = %114
%124 = load ptr, ptr %10, align 8
%125 = call i32 @fclose(ptr noundef %124)
store i32 1, ptr %5, align 4
br label %227
126: ; preds = %114
%127 = load i32, ptr %15, align 4
%128 = sub i32 %127, 1
store i32 %128, ptr %18, align 4
br label %129
129: ; preds = %214, %126
%130 = load i32, ptr %18, align 4
%131 = icmp ne i32 %130, -1
br i1 %131, label %132, label %217
132: ; preds = %129
store i32 0, ptr %17, align 4
br label %133
133: ; preds = %193, %132
%134 = load i32, ptr %17, align 4
%135 = load i32, ptr %14, align 4
%136 = icmp ult i32 %134, %135
br i1 %136, label %137, label %196
137: ; preds = %133
%138 = load i32, ptr %17, align 4
%139 = load i32, ptr %18, align 4
%140 = load i32, ptr %14, align 4
%141 = mul i32 %139, %140
%142 = add i32 %138, %141
%143 = mul i32 %142, 4
store i32 %143, ptr %19, align 4
%144 = load ptr, ptr %16, align 8
%145 = load i32, ptr %19, align 4
%146 = zext i32 %145 to i64
%147 = getelementptr inbounds i8, ptr %144, i64 %146
%148 = load ptr, ptr %10, align 8
%149 = call i32 @fread(ptr noundef %147, i32 noundef 3, i32 noundef 1, ptr noundef %148)
%150 = icmp eq i32 %149, 0
br i1 %150, label %151, label %156
151: ; preds = %137
%152 = load ptr, ptr %16, align 8
%153 = call i32 @free(ptr noundef %152)
%154 = load ptr, ptr %10, align 8
%155 = call i32 @fclose(ptr noundef %154)
store i32 4, ptr %5, align 4
br label %227
156: ; preds = %137
%157 = load ptr, ptr %16, align 8
%158 = load i32, ptr %19, align 4
%159 = add i32 %158, 2
%160 = zext i32 %159 to i64
%161 = getelementptr inbounds i8, ptr %157, i64 %160
%162 = load i8, ptr %161, align 1
%163 = load ptr, ptr %16, align 8
%164 = load i32, ptr %19, align 4
%165 = add i32 %164, 3
%166 = zext i32 %165 to i64
%167 = getelementptr inbounds i8, ptr %163, i64 %166
store i8 %162, ptr %167, align 1
%168 = load ptr, ptr %16, align 8
%169 = load i32, ptr %19, align 4
%170 = add i32 %169, 1
%171 = zext i32 %170 to i64
%172 = getelementptr inbounds i8, ptr %168, i64 %171
%173 = load i8, ptr %172, align 1
%174 = load ptr, ptr %16, align 8
%175 = load i32, ptr %19, align 4
%176 = add i32 %175, 2
%177 = zext i32 %176 to i64
%178 = getelementptr inbounds i8, ptr %174, i64 %177
store i8 %173, ptr %178, align 1
%179 = load ptr, ptr %16, align 8
%180 = load i32, ptr %19, align 4
%181 = zext i32 %180 to i64
%182 = getelementptr inbounds i8, ptr %179, i64 %181
%183 = load i8, ptr %182, align 1
%184 = load ptr, ptr %16, align 8
%185 = load i32, ptr %19, align 4
%186 = add i32 %185, 1
%187 = zext i32 %186 to i64
%188 = getelementptr inbounds i8, ptr %184, i64 %187
store i8 %183, ptr %188, align 1
%189 = load ptr, ptr %16, align 8
%190 = load i32, ptr %19, align 4
%191 = zext i32 %190 to i64
%192 = getelementptr inbounds i8, ptr %189, i64 %191
store i8 -1, ptr %192, align 1
br label %193
193: ; preds = %156
%194 = load i32, ptr %17, align 4
%195 = add i32 %194, 1
store i32 %195, ptr %17, align 4
br label %133, !llvm.loop !6
196: ; preds = %133
%197 = load i32, ptr %14, align 4
%198 = mul i32 %197, 3
%199 = urem i32 %198, 4
%200 = sub i32 4, %199
%201 = urem i32 %200, 4
store i32 %201, ptr %20, align 4
%202 = getelementptr inbounds [3 x i8], ptr %13, i64 0, i64 0
%203 = load i32, ptr %20, align 4
%204 = load ptr, ptr %10, align 8
%205 = call i32 @fread(ptr noundef %202, i32 noundef 1, i32 noundef %203, ptr noundef %204)
%206 = load i32, ptr %20, align 4
%207 = icmp ne i32 %205, %206
br i1 %207, label %208, label %213
208: ; preds = %196
%209 = load ptr, ptr %16, align 8
%210 = call i32 @free(ptr noundef %209)
%211 = load ptr, ptr %10, align 8
%212 = call i32 @fclose(ptr noundef %211)
store i32 4, ptr %5, align 4
br label %227
213: ; preds = %196
br label %214
214: ; preds = %213
%215 = load i32, ptr %18, align 4
%216 = add i32 %215, -1
store i32 %216, ptr %18, align 4
br label %129, !llvm.loop !8
217: ; preds = %129
br label %218
218: ; preds = %217, %111, %72
%219 = load i32, ptr %14, align 4
%220 = load ptr, ptr %8, align 8
store i32 %219, ptr %220, align 4
%221 = load i32, ptr %15, align 4
%222 = load ptr, ptr %9, align 8
store i32 %221, ptr %222, align 4
%223 = load ptr, ptr %16, align 8
%224 = load ptr, ptr %7, align 8
store ptr %223, ptr %224, align 8
%225 = load ptr, ptr %10, align 8
%226 = call i32 @fclose(ptr noundef %225)
store i32 0, ptr %5, align 4
br label %227
227: ; preds = %218, %208, %151, %123, %69, %56, %43, %35, %25
%228 = load i32, ptr %5, align 4
ret i32 %228
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpegv8vy3_.c"
target datalayout = "e-m:e-p270: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"rb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @loadbmp_decode_file(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [14 x i8], align 1
%12 = alloca [40 x i8], align 16
%13 = alloca [3 x i8], align 1
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
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
%21 = load ptr, ptr %6, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str)
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %10, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %26, label %25
25: ; preds = %4
store i32 2, ptr %5, align 4
br label %230
26: ; preds = %4
store ptr null, ptr %16, align 8
%27 = getelementptr inbounds [14 x i8], ptr %11, i64 0, i64 0
%28 = call i32 @memset(ptr noundef %27, i32 noundef 0, i32 noundef 14)
%29 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 0
%30 = call i32 @memset(ptr noundef %29, i32 noundef 0, i32 noundef 40)
%31 = getelementptr inbounds [14 x i8], ptr %11, i64 0, i64 0
%32 = load ptr, ptr %10, align 8
%33 = call i32 @fread(ptr noundef %31, i32 noundef 14, i32 noundef 1, ptr noundef %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = load ptr, ptr %10, align 8
%37 = call i32 @fclose(ptr noundef %36)
store i32 4, ptr %5, align 4
br label %230
38: ; preds = %26
%39 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 0
%40 = load ptr, ptr %10, align 8
%41 = call i32 @fread(ptr noundef %39, i32 noundef 40, i32 noundef 1, ptr noundef %40)
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = load ptr, ptr %10, align 8
%45 = call i32 @fclose(ptr noundef %44)
store i32 4, ptr %5, align 4
br label %230
46: ; preds = %38
%47 = getelementptr inbounds [14 x i8], ptr %11, i64 0, i64 0
%48 = load i8, ptr %47, align 1
%49 = zext i8 %48 to i32
%50 = icmp ne i32 %49, 66
br i1 %50, label %56, label %51
51: ; preds = %46
%52 = getelementptr inbounds [14 x i8], ptr %11, i64 0, i64 1
%53 = load i8, ptr %52, align 1
%54 = zext i8 %53 to i32
%55 = icmp ne i32 %54, 77
br i1 %55, label %56, label %59
56: ; preds = %51, %46
%57 = load ptr, ptr %10, align 8
%58 = call i32 @fclose(ptr noundef %57)
store i32 5, ptr %5, align 4
br label %230
59: ; preds = %51
%60 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 14
%61 = load i8, ptr %60, align 2
%62 = zext i8 %61 to i32
%63 = icmp ne i32 %62, 24
br i1 %63, label %64, label %72
64: ; preds = %59
%65 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 14
%66 = load i8, ptr %65, align 2
%67 = zext i8 %66 to i32
%68 = icmp ne i32 %67, 32
br i1 %68, label %69, label %72
69: ; preds = %64
%70 = load ptr, ptr %10, align 8
%71 = call i32 @fclose(ptr noundef %70)
store i32 6, ptr %5, align 4
br label %230
72: ; preds = %64, %59
%73 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 4
%74 = load i8, ptr %73, align 4
%75 = zext i8 %74 to i32
%76 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 5
%77 = load i8, ptr %76, align 1
%78 = zext i8 %77 to i32
%79 = shl i32 %78, 8
%80 = add nsw i32 %75, %79
%81 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 6
%82 = load i8, ptr %81, align 2
%83 = zext i8 %82 to i32
%84 = shl i32 %83, 16
%85 = add nsw i32 %80, %84
%86 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 7
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
%89 = shl i32 %88, 24
%90 = add nsw i32 %85, %89
store i32 %90, ptr %14, align 4
%91 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 8
%92 = load i8, ptr %91, align 8
%93 = zext i8 %92 to i32
%94 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 9
%95 = load i8, ptr %94, align 1
%96 = zext i8 %95 to i32
%97 = shl i32 %96, 8
%98 = add nsw i32 %93, %97
%99 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 10
%100 = load i8, ptr %99, align 2
%101 = zext i8 %100 to i32
%102 = shl i32 %101, 16
%103 = add nsw i32 %98, %102
%104 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 11
%105 = load i8, ptr %104, align 1
%106 = zext i8 %105 to i32
%107 = shl i32 %106, 24
%108 = add nsw i32 %103, %107
store i32 %108, ptr %15, align 4
%109 = load i32, ptr %14, align 4
%110 = icmp ugt i32 %109, 0
br i1 %110, label %111, label %221
111: ; preds = %72
%112 = load i32, ptr %15, align 4
%113 = icmp ugt i32 %112, 0
br i1 %113, label %114, label %221
114: ; preds = %111
%115 = load i32, ptr %14, align 4
%116 = load i32, ptr %15, align 4
%117 = mul i32 %115, %116
%118 = mul i32 %117, 4
%119 = call i64 @malloc(i32 noundef %118)
%120 = inttoptr i64 %119 to ptr
store ptr %120, ptr %16, align 8
%121 = load ptr, ptr %16, align 8
%122 = icmp ne ptr %121, null
br i1 %122, label %126, label %123
123: ; preds = %114
%124 = load ptr, ptr %10, align 8
%125 = call i32 @fclose(ptr noundef %124)
store i32 1, ptr %5, align 4
br label %230
126: ; preds = %114
%127 = load i32, ptr %15, align 4
%128 = sub i32 %127, 1
store i32 %128, ptr %18, align 4
%129 = load i32, ptr %18, align 4
%130 = icmp ne i32 %129, -1
br i1 %130, label %.lr.ph2, label %220
.lr.ph2: ; preds = %126
br label %131
131: ; preds = %.lr.ph2, %215
store i32 0, ptr %17, align 4
%132 = load i32, ptr %17, align 4
%133 = load i32, ptr %14, align 4
%134 = icmp ult i32 %132, %133
br i1 %134, label %.lr.ph, label %197
.lr.ph: ; preds = %131
br label %135
135: ; preds = %.lr.ph, %191
%136 = load i32, ptr %17, align 4
%137 = load i32, ptr %18, align 4
%138 = load i32, ptr %14, align 4
%139 = mul i32 %137, %138
%140 = add i32 %136, %139
%141 = mul i32 %140, 4
store i32 %141, ptr %19, align 4
%142 = load ptr, ptr %16, align 8
%143 = load i32, ptr %19, align 4
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds i8, ptr %142, i64 %144
%146 = load ptr, ptr %10, align 8
%147 = call i32 @fread(ptr noundef %145, i32 noundef 3, i32 noundef 1, ptr noundef %146)
%148 = icmp eq i32 %147, 0
br i1 %148, label %149, label %154
149: ; preds = %135
%150 = load ptr, ptr %16, align 8
%151 = call i32 @free(ptr noundef %150)
%152 = load ptr, ptr %10, align 8
%153 = call i32 @fclose(ptr noundef %152)
store i32 4, ptr %5, align 4
br label %230
154: ; preds = %135
%155 = load ptr, ptr %16, align 8
%156 = load i32, ptr %19, align 4
%157 = add i32 %156, 2
%158 = zext i32 %157 to i64
%159 = getelementptr inbounds i8, ptr %155, i64 %158
%160 = load i8, ptr %159, align 1
%161 = load ptr, ptr %16, align 8
%162 = load i32, ptr %19, align 4
%163 = add i32 %162, 3
%164 = zext i32 %163 to i64
%165 = getelementptr inbounds i8, ptr %161, i64 %164
store i8 %160, ptr %165, align 1
%166 = load ptr, ptr %16, align 8
%167 = load i32, ptr %19, align 4
%168 = add i32 %167, 1
%169 = zext i32 %168 to i64
%170 = getelementptr inbounds i8, ptr %166, i64 %169
%171 = load i8, ptr %170, align 1
%172 = load ptr, ptr %16, align 8
%173 = load i32, ptr %19, align 4
%174 = add i32 %173, 2
%175 = zext i32 %174 to i64
%176 = getelementptr inbounds i8, ptr %172, i64 %175
store i8 %171, ptr %176, align 1
%177 = load ptr, ptr %16, align 8
%178 = load i32, ptr %19, align 4
%179 = zext i32 %178 to i64
%180 = getelementptr inbounds i8, ptr %177, i64 %179
%181 = load i8, ptr %180, align 1
%182 = load ptr, ptr %16, align 8
%183 = load i32, ptr %19, align 4
%184 = add i32 %183, 1
%185 = zext i32 %184 to i64
%186 = getelementptr inbounds i8, ptr %182, i64 %185
store i8 %181, ptr %186, align 1
%187 = load ptr, ptr %16, align 8
%188 = load i32, ptr %19, align 4
%189 = zext i32 %188 to i64
%190 = getelementptr inbounds i8, ptr %187, i64 %189
store i8 -1, ptr %190, align 1
br label %191
191: ; preds = %154
%192 = load i32, ptr %17, align 4
%193 = add i32 %192, 1
store i32 %193, ptr %17, align 4
%194 = load i32, ptr %17, align 4
%195 = load i32, ptr %14, align 4
%196 = icmp ult i32 %194, %195
br i1 %196, label %135, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %191
br label %197
197: ; preds = %._crit_edge, %131
%198 = load i32, ptr %14, align 4
%199 = mul i32 %198, 3
%200 = urem i32 %199, 4
%201 = sub i32 4, %200
%202 = urem i32 %201, 4
store i32 %202, ptr %20, align 4
%203 = getelementptr inbounds [3 x i8], ptr %13, i64 0, i64 0
%204 = load i32, ptr %20, align 4
%205 = load ptr, ptr %10, align 8
%206 = call i32 @fread(ptr noundef %203, i32 noundef 1, i32 noundef %204, ptr noundef %205)
%207 = load i32, ptr %20, align 4
%208 = icmp ne i32 %206, %207
br i1 %208, label %209, label %214
209: ; preds = %197
%210 = load ptr, ptr %16, align 8
%211 = call i32 @free(ptr noundef %210)
%212 = load ptr, ptr %10, align 8
%213 = call i32 @fclose(ptr noundef %212)
store i32 4, ptr %5, align 4
br label %230
214: ; preds = %197
br label %215
215: ; preds = %214
%216 = load i32, ptr %18, align 4
%217 = add i32 %216, -1
store i32 %217, ptr %18, align 4
%218 = load i32, ptr %18, align 4
%219 = icmp ne i32 %218, -1
br i1 %219, label %131, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %215
br label %220
220: ; preds = %._crit_edge3, %126
br label %221
221: ; preds = %220, %111, %72
%222 = load i32, ptr %14, align 4
%223 = load ptr, ptr %8, align 8
store i32 %222, ptr %223, align 4
%224 = load i32, ptr %15, align 4
%225 = load ptr, ptr %9, align 8
store i32 %224, ptr %225, align 4
%226 = load ptr, ptr %16, align 8
%227 = load ptr, ptr %7, align 8
store ptr %226, ptr %227, align 8
%228 = load ptr, ptr %10, align 8
%229 = call i32 @fclose(ptr noundef %228)
store i32 0, ptr %5, align 4
br label %230
230: ; preds = %221, %209, %149, %123, %69, %56, %43, %35, %25
%231 = load i32, ptr %5, align 4
ret i32 %231
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpa7jfhlod.c'
source_filename = "/tmp/tmpa7jfhlod.c"
target datalayout = "e-m:e-p270: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/tmpa7jfhlod.c"
target datalayout = "e-m:e-p270: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/tmp3zbhweth.c'
source_filename = "/tmp/tmp3zbhweth.c"
target datalayout = "e-m:e-p270: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 @max_heapify(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
%10 = 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
%11 = load i32, ptr %6, align 4
%12 = call i32 @left_child(i32 noundef %11)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = call i32 @right_child(i32 noundef %13)
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %33
19: ; preds = %3
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp sgt i32 %24, %29
br i1 %30, label %31, label %33
31: ; preds = %19
%32 = load i32, ptr %7, align 4
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %31, %19, %3
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp sgt i32 %42, %47
br i1 %48, label %49, label %51
49: ; preds = %37
%50 = load i32, ptr %8, align 4
store i32 %50, ptr %9, align 4
br label %51
51: ; preds = %49, %37, %33
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %6, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %78
55: ; preds = %51
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %6, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
store i32 %60, ptr %10, align 4
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %9, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
%65 = load i32, ptr %64, align 4
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %6, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
store i32 %65, ptr %69, align 4
%70 = load i32, ptr %10, align 4
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
store i32 %70, ptr %74, align 4
%75 = load ptr, ptr %4, align 8
%76 = load i32, ptr %5, align 4
%77 = load i32, ptr %9, align 4
call void @max_heapify(ptr noundef %75, i32 noundef %76, i32 noundef %77)
br label %78
78: ; preds = %55, %51
ret void
}
declare i32 @left_child(i32 noundef) #1
declare i32 @right_child(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/tmp3zbhweth.c"
target datalayout = "e-m:e-p270: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 @max_heapify(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
%10 = 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
%11 = load i32, ptr %6, align 4
%12 = call i32 @left_child(i32 noundef %11)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = call i32 @right_child(i32 noundef %13)
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %33
19: ; preds = %3
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp sgt i32 %24, %29
br i1 %30, label %31, label %33
31: ; preds = %19
%32 = load i32, ptr %7, align 4
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %31, %19, %3
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp sgt i32 %42, %47
br i1 %48, label %49, label %51
49: ; preds = %37
%50 = load i32, ptr %8, align 4
store i32 %50, ptr %9, align 4
br label %51
51: ; preds = %49, %37, %33
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %6, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %78
55: ; preds = %51
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %6, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
store i32 %60, ptr %10, align 4
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %9, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
%65 = load i32, ptr %64, align 4
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %6, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
store i32 %65, ptr %69, align 4
%70 = load i32, ptr %10, align 4
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
store i32 %70, ptr %74, align 4
%75 = load ptr, ptr %4, align 8
%76 = load i32, ptr %5, align 4
%77 = load i32, ptr %9, align 4
call void @max_heapify(ptr noundef %75, i32 noundef %76, i32 noundef %77)
br label %78
78: ; preds = %55, %51
ret void
}
declare i32 @left_child(i32 noundef) #1
declare i32 @right_child(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/tmpm6b3h846.c'
source_filename = "/tmp/tmpm6b3h846.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"\0A1.Create An Array.\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\0A2.Display Elements.\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"\0A3.Insert an Element.\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"\0A4.Delete an Element.\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"\0A5.Exit.\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"\0AEnter your choice :\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"\0AEnter number of elements : \00", align 1
@.str.8 = private unnamed_addr constant [28 x i8] c"\0AThe Array is as follows : \00", align 1
@.str.9 = private unnamed_addr constant [40 x i8] c"\0AEnter element and position to insert: \00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.11 = private unnamed_addr constant [29 x i8] c"\0AEnter position to delete : \00", align 1
@.str.12 = private unnamed_addr constant [28 x i8] c"\0AWrong Choice.Enter again.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = call i32 @printf(ptr noundef @.str.4)
br label %11
11: ; preds = %0, %41
%12 = call i32 @printf(ptr noundef @.str.5)
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %2)
%14 = load i32, ptr %2, align 4
switch i32 %14, label %35 [
i32 1, label %15
i32 2, label %20
i32 3, label %23
i32 4, label %29
i32 5, label %34
]
15: ; preds = %11
%16 = call i32 @printf(ptr noundef @.str.7)
%17 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %3)
%18 = load i32, ptr %3, align 4
%19 = call i32 @Create(i32 noundef %18)
br label %37
20: ; preds = %11
%21 = call i32 @printf(ptr noundef @.str.8)
%22 = call i32 (...) @Display()
br label %37
23: ; preds = %11
%24 = call i32 @printf(ptr noundef @.str.9)
%25 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.10, ptr noundef %3, ptr noundef %4)
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = call i32 @Insert(i32 noundef %26, i32 noundef %27)
br label %37
29: ; preds = %11
%30 = call i32 @printf(ptr noundef @.str.11)
%31 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %4)
%32 = load i32, ptr %4, align 4
%33 = call i32 @Delete(i32 noundef %32)
br label %37
34: ; preds = %11
store i32 1, ptr %5, align 4
br label %37
35: ; preds = %11
%36 = call i32 @printf(ptr noundef @.str.12)
br label %37
37: ; preds = %35, %34, %29, %23, %20, %15
%38 = load i32, ptr %5, align 4
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %41
40: ; preds = %37
br label %44
41: ; preds = %37
%42 = call i32 (...) @getchar()
%43 = call i32 (...) @getchar()
br label %11
44: ; preds = %40
%45 = load i32, ptr %1, align 4
ret i32 %45
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @Create(i32 noundef) #1
declare i32 @Display(...) #1
declare i32 @Insert(i32 noundef, i32 noundef) #1
declare i32 @Delete(i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpm6b3h846.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"\0A1.Create An Array.\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\0A2.Display Elements.\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"\0A3.Insert an Element.\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"\0A4.Delete an Element.\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"\0A5.Exit.\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"\0AEnter your choice :\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"\0AEnter number of elements : \00", align 1
@.str.8 = private unnamed_addr constant [28 x i8] c"\0AThe Array is as follows : \00", align 1
@.str.9 = private unnamed_addr constant [40 x i8] c"\0AEnter element and position to insert: \00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.11 = private unnamed_addr constant [29 x i8] c"\0AEnter position to delete : \00", align 1
@.str.12 = private unnamed_addr constant [28 x i8] c"\0AWrong Choice.Enter again.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = call i32 @printf(ptr noundef @.str.4)
br label %11
11: ; preds = %41, %0
%12 = call i32 @printf(ptr noundef @.str.5)
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %2)
%14 = load i32, ptr %2, align 4
switch i32 %14, label %35 [
i32 1, label %15
i32 2, label %20
i32 3, label %23
i32 4, label %29
i32 5, label %34
]
15: ; preds = %11
%16 = call i32 @printf(ptr noundef @.str.7)
%17 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %3)
%18 = load i32, ptr %3, align 4
%19 = call i32 @Create(i32 noundef %18)
br label %37
20: ; preds = %11
%21 = call i32 @printf(ptr noundef @.str.8)
%22 = call i32 (...) @Display()
br label %37
23: ; preds = %11
%24 = call i32 @printf(ptr noundef @.str.9)
%25 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.10, ptr noundef %3, ptr noundef %4)
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = call i32 @Insert(i32 noundef %26, i32 noundef %27)
br label %37
29: ; preds = %11
%30 = call i32 @printf(ptr noundef @.str.11)
%31 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %4)
%32 = load i32, ptr %4, align 4
%33 = call i32 @Delete(i32 noundef %32)
br label %37
34: ; preds = %11
store i32 1, ptr %5, align 4
br label %37
35: ; preds = %11
%36 = call i32 @printf(ptr noundef @.str.12)
br label %37
37: ; preds = %35, %34, %29, %23, %20, %15
%38 = load i32, ptr %5, align 4
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %41
40: ; preds = %37
br label %44
41: ; preds = %37
%42 = call i32 (...) @getchar()
%43 = call i32 (...) @getchar()
br label %11
44: ; preds = %40
%45 = load i32, ptr %1, align 4
ret i32 %45
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @Create(i32 noundef) #1
declare i32 @Display(...) #1
declare i32 @Insert(i32 noundef, i32 noundef) #1
declare i32 @Delete(i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp4yocnpv3.c'
source_filename = "/tmp/tmp4yocnpv3.c"
target datalayout = "e-m:e-p270: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"%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 ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = mul i64 4, %11
%13 = trunc i64 %12 to i32
%14 = call ptr @malloc(i32 noundef %13)
store ptr %14, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %15
15: ; preds = %25, %0
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %23)
br label %25
25: ; preds = %19
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
br label %15, !llvm.loop !6
28: ; preds = %15
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %2, align 4
%31 = sub nsw i32 %30, 1
%32 = call i32 @quickSort(ptr noundef %29, i32 noundef 0, i32 noundef %31)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %33
33: ; preds = %88, %28
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %92
37: ; preds = %33
%38 = load i32, ptr %7, align 4
store i32 %38, ptr %8, align 4
br label %39
39: ; preds = %59, %37
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %44, %45
%47 = load ptr, ptr %4, align 8
%48 = load i32, ptr %8, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = icmp sge i32 %46, %51
br i1 %52, label %53, label %57
53: ; preds = %39
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %2, align 4
%56 = icmp slt i32 %54, %55
br label %57
57: ; preds = %53, %39
%58 = phi i1 [ false, %39 ], [ %56, %53 ]
br i1 %58, label %59, label %62
59: ; preds = %57
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
br label %39, !llvm.loop !8
62: ; preds = %57
%63 = load i32, ptr %8, align 4
%64 = sub nsw i32 %63, 1
store i32 %64, ptr %7, align 4
br label %65
65: ; preds = %85, %62
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %7, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = load i32, ptr %3, align 4
%72 = add nsw i32 %70, %71
%73 = load ptr, ptr %4, align 8
%74 = load i32, ptr %8, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = icmp sge i32 %72, %77
br i1 %78, label %79, label %83
79: ; preds = %65
%80 = load i32, ptr %8, align 4
%81 = load i32, ptr %2, align 4
%82 = icmp slt i32 %80, %81
br label %83
83: ; preds = %79, %65
%84 = phi i1 [ false, %65 ], [ %82, %79 ]
br i1 %84, label %85, label %88
85: ; preds = %83
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %8, align 4
br label %65, !llvm.loop !9
88: ; preds = %83
%89 = load i32, ptr %8, align 4
store i32 %89, ptr %7, align 4
%90 = load i32, ptr %6, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %6, align 4
br label %33, !llvm.loop !10
92: ; preds = %33
%93 = load i32, ptr %6, align 4
%94 = call i32 @printf(ptr noundef @.str.1, i32 noundef %93)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @quickSort(ptr noundef, i32 noundef, 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4yocnpv3.c"
target datalayout = "e-m:e-p270: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"%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 ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = mul i64 4, %11
%13 = trunc i64 %12 to i32
%14 = call ptr @malloc(i32 noundef %13)
store ptr %14, ptr %4, align 8
store i32 0, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %30
.lr.ph: ; preds = %0
br label %18
18: ; preds = %.lr.ph, %24
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %22)
br label %24
24: ; preds = %18
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %0
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %2, align 4
%33 = sub nsw i32 %32, 1
%34 = call i32 @quickSort(ptr noundef %31, i32 noundef 0, i32 noundef %33)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %2, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph2, label %96
.lr.ph2: ; preds = %30
br label %38
38: ; preds = %.lr.ph2, %89
%39 = load i32, ptr %7, align 4
store i32 %39, ptr %8, align 4
br label %40
40: ; preds = %60, %38
%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 i32, ptr %44, align 4
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %45, %46
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %8, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = icmp sge i32 %47, %52
br i1 %53, label %54, label %58
54: ; preds = %40
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr %2, align 4
%57 = icmp slt i32 %55, %56
br label %58
58: ; preds = %54, %40
%59 = phi i1 [ false, %40 ], [ %57, %54 ]
br i1 %59, label %60, label %63
60: ; preds = %58
%61 = load i32, ptr %8, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %8, align 4
br label %40, !llvm.loop !8
63: ; preds = %58
%64 = load i32, ptr %8, align 4
%65 = sub nsw i32 %64, 1
store i32 %65, ptr %7, align 4
br label %66
66: ; preds = %86, %63
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %7, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
%71 = load i32, ptr %70, align 4
%72 = load i32, ptr %3, align 4
%73 = add nsw i32 %71, %72
%74 = load ptr, ptr %4, align 8
%75 = load i32, ptr %8, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %74, i64 %76
%78 = load i32, ptr %77, align 4
%79 = icmp sge i32 %73, %78
br i1 %79, label %80, label %84
80: ; preds = %66
%81 = load i32, ptr %8, align 4
%82 = load i32, ptr %2, align 4
%83 = icmp slt i32 %81, %82
br label %84
84: ; preds = %80, %66
%85 = phi i1 [ false, %66 ], [ %83, %80 ]
br i1 %85, label %86, label %89
86: ; preds = %84
%87 = load i32, ptr %8, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %8, align 4
br label %66, !llvm.loop !9
89: ; preds = %84
%90 = load i32, ptr %8, align 4
store i32 %90, ptr %7, align 4
%91 = load i32, ptr %6, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %6, align 4
%93 = load i32, ptr %7, align 4
%94 = load i32, ptr %2, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %38, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %89
br label %96
96: ; preds = %._crit_edge3, %30
%97 = load i32, ptr %6, align 4
%98 = call i32 @printf(ptr noundef @.str.1, i32 noundef %97)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @quickSort(ptr noundef, i32 noundef, 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpkn8b_edm.c'
source_filename = "/tmp/tmpkn8b_edm.c"
target datalayout = "e-m:e-p270: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/tmpkn8b_edm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ta1ola3.c'
source_filename = "/tmp/tmp_ta1ola3.c"
target datalayout = "e-m:e-p270: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 @softsaw(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %4, align 8
%6 = call double @clip(double noundef %5, i32 noundef 0, double noundef 0x3FEFFFFFFFF24190)
store double %6, ptr %4, align 8
%7 = load double, ptr %4, align 8
%8 = load double, ptr %3, align 8
%9 = call double @sine(double noundef %8)
%10 = fmul double %7, %9
%11 = load double, ptr %4, align 8
%12 = load double, ptr %3, align 8
%13 = call double @cosine(double noundef %12)
%14 = call double @llvm.fmuladd.f64(double %11, double %13, double 1.000000e+00)
%15 = fdiv double %10, %14
%16 = call double @atan(double noundef %15) #4
%17 = load double, ptr %4, align 8
%18 = call double @asin(double noundef %17) #4
%19 = fdiv double %16, %18
ret double %19
}
declare double @clip(double noundef, i32 noundef, double noundef) #1
; Function Attrs: nounwind
declare double @atan(double noundef) #2
declare double @sine(double noundef) #1
declare double @cosine(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @asin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ta1ola3.c"
target datalayout = "e-m:e-p270: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 @softsaw(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %4, align 8
%6 = call double @clip(double noundef %5, i32 noundef 0, double noundef 0x3FEFFFFFFFF24190)
store double %6, ptr %4, align 8
%7 = load double, ptr %4, align 8
%8 = load double, ptr %3, align 8
%9 = call double @sine(double noundef %8)
%10 = fmul double %7, %9
%11 = load double, ptr %4, align 8
%12 = load double, ptr %3, align 8
%13 = call double @cosine(double noundef %12)
%14 = call double @llvm.fmuladd.f64(double %11, double %13, double 1.000000e+00)
%15 = fdiv double %10, %14
%16 = call double @atan(double noundef %15) #4
%17 = load double, ptr %4, align 8
%18 = call double @asin(double noundef %17) #4
%19 = fdiv double %16, %18
ret double %19
}
declare double @clip(double noundef, i32 noundef, double noundef) #1
; Function Attrs: nounwind
declare double @atan(double noundef) #2
declare double @sine(double noundef) #1
declare double @cosine(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @asin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjc6y9j6q.c'
source_filename = "/tmp/tmpjc6y9j6q.c"
target datalayout = "e-m:e-p270: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/tmpjc6y9j6q.c"
target datalayout = "e-m:e-p270: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/tmp3b6dciy4.c'
source_filename = "/tmp/tmp3b6dciy4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Original: \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Trimmed: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %7, %0
%4 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%5 = call i64 @get_line(ptr noundef %4)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %16
7: ; preds = %3
%8 = call i32 @printf(ptr noundef @.str)
%9 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @print_showing_whitespace(ptr noundef %9)
%11 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @remove_trailing_whitespace(ptr noundef %11)
%13 = call i32 @printf(ptr noundef @.str.1)
%14 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @print_showing_whitespace(ptr noundef %14)
br label %3, !llvm.loop !6
16: ; preds = %3
ret i32 0
}
declare i64 @get_line(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @print_showing_whitespace(ptr noundef) #1
declare i32 @remove_trailing_whitespace(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/tmp3b6dciy4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Original: \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Trimmed: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%4 = call i64 @get_line(ptr noundef %3)
%5 = icmp sgt i64 %4, 0
br i1 %5, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = call i32 @printf(ptr noundef @.str)
%8 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @print_showing_whitespace(ptr noundef %8)
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @remove_trailing_whitespace(ptr noundef %10)
%12 = call i32 @printf(ptr noundef @.str.1)
%13 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @print_showing_whitespace(ptr noundef %13)
%15 = call i64 @get_line(ptr noundef %3)
%16 = icmp sgt i64 %15, 0
br i1 %16, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %17
17: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @get_line(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @print_showing_whitespace(ptr noundef) #1
declare i32 @remove_trailing_whitespace(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/tmpq0y0sqod.c'
source_filename = "/tmp/tmpq0y0sqod.c"
target datalayout = "e-m:e-p270: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/tmpq0y0sqod.c"
target datalayout = "e-m:e-p270: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/tmpi7eo0de1.c'
source_filename = "/tmp/tmpi7eo0de1.c"
target datalayout = "e-m:e-p270: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"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %6, align 8
%13 = alloca float, i64 %11, align 16
store i64 %11, ptr %7, align 8
store i32 0, ptr %9, align 4
br label %14
14: ; preds = %24, %2
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %27
18: ; preds = %14
%19 = call float (...) @rand_float()
%20 = call float @llvm.fmuladd.f32(float %19, float 2.000000e+02, float -1.000000e+02)
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, ptr %13, i64 %22
store float %20, ptr %23, align 4
br label %24
24: ; preds = %18
%25 = load i32, ptr %9, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %9, align 4
br label %14, !llvm.loop !6
27: ; preds = %14
%28 = call double (...) @tic()
store double %28, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %29
29: ; preds = %44, %27
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %47
33: ; preds = %29
%34 = load i32, ptr %4, align 4
%35 = call i32 @c_sapx(i32 noundef %34, float noundef 5.000000e+00, ptr noundef %13, i32 noundef 1)
%36 = getelementptr inbounds float, ptr %13, i64 0
%37 = load float, ptr %36, align 16
%38 = getelementptr inbounds float, ptr %13, i64 0
%39 = load float, ptr %38, align 16
%40 = fcmp une float %37, %39
br i1 %40, label %41, label %43
41: ; preds = %33
%42 = call i32 @printf(ptr noundef @.str)
br label %47
43: ; preds = %33
br label %44
44: ; preds = %43
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %9, align 4
br label %29, !llvm.loop !8
47: ; preds = %41, %29
%48 = call double (...) @tic()
%49 = load double, ptr %8, align 8
%50 = fsub double %48, %49
store double %50, ptr %5, align 8
%51 = getelementptr inbounds float, ptr %13, i64 0
%52 = load float, ptr %51, align 16
%53 = getelementptr inbounds float, ptr %13, i64 0
%54 = load float, ptr %53, align 16
%55 = fcmp une float %52, %54
br i1 %55, label %56, label %58
56: ; preds = %47
%57 = call i32 @printf(ptr noundef @.str)
br label %58
58: ; preds = %56, %47
%59 = load double, ptr %5, align 8
%60 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %60)
ret double %59
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare float @rand_float(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare double @tic(...) #2
declare i32 @c_sapx(i32 noundef, float noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(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" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi7eo0de1.c"
target datalayout = "e-m:e-p270: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"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %6, align 8
%13 = alloca float, i64 %11, align 16
store i64 %11, ptr %7, align 8
store i32 0, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %23
%18 = call float (...) @rand_float()
%19 = call float @llvm.fmuladd.f32(float %18, float 2.000000e+02, float -1.000000e+02)
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds float, ptr %13, i64 %21
store float %19, ptr %22, align 4
br label %23
23: ; preds = %17
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %2
%30 = call double (...) @tic()
store double %30, ptr %8, align 8
store i32 0, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %29
br label %34
34: ; preds = %.lr.ph2, %45
%35 = load i32, ptr %4, align 4
%36 = call i32 @c_sapx(i32 noundef %35, float noundef 5.000000e+00, ptr noundef %13, i32 noundef 1)
%37 = getelementptr inbounds float, ptr %13, i64 0
%38 = load float, ptr %37, align 16
%39 = getelementptr inbounds float, ptr %13, i64 0
%40 = load float, ptr %39, align 16
%41 = fcmp une float %38, %40
br i1 %41, label %42, label %44
42: ; preds = %34
%43 = call i32 @printf(ptr noundef @.str)
br label %51
44: ; preds = %34
br label %45
45: ; preds = %44
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %9, align 4
%48 = load i32, ptr %9, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %34, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %45
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %29
br label %51
51: ; preds = %.loopexit, %42
%52 = call double (...) @tic()
%53 = load double, ptr %8, align 8
%54 = fsub double %52, %53
store double %54, ptr %5, align 8
%55 = getelementptr inbounds float, ptr %13, i64 0
%56 = load float, ptr %55, align 16
%57 = getelementptr inbounds float, ptr %13, i64 0
%58 = load float, ptr %57, align 16
%59 = fcmp une float %56, %58
br i1 %59, label %60, label %62
60: ; preds = %51
%61 = call i32 @printf(ptr noundef @.str)
br label %62
62: ; preds = %60, %51
%63 = load double, ptr %5, align 8
%64 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %64)
ret double %63
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare float @rand_float(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare double @tic(...) #2
declare i32 @c_sapx(i32 noundef, float noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(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" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpo_u2bdce.c'
source_filename = "/tmp/tmpo_u2bdce.c"
target datalayout = "e-m:e-p270: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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvwinsch(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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = call i32 @check_arg_count(i32 noundef %8, i32 noundef 4)
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %2
br label %51
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i64 @sscanf(ptr noundef %15, ptr noundef @.str, ptr noundef %7)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @report_count(i32 noundef 1)
%20 = call i32 @report_error(ptr noundef @.str.1)
br label %51
21: ; preds = %12
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i64 @sscanf(ptr noundef %24, ptr noundef @.str.2, ptr noundef %5)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %21
%28 = call i32 @report_count(i32 noundef 1)
%29 = call i32 @report_error(ptr noundef @.str.1)
br label %51
30: ; preds = %21
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i64 @sscanf(ptr noundef %33, ptr noundef @.str.2, ptr noundef %6)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %30
%37 = call i32 @report_count(i32 noundef 1)
%38 = call i32 @report_error(ptr noundef @.str.1)
br label %51
39: ; preds = %30
%40 = call i32 @report_count(i32 noundef 1)
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %5, align 4
%43 = load i32, ptr %6, align 4
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 3
%46 = load ptr, ptr %45, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 0
%48 = load i8, ptr %47, align 1
%49 = call i32 @mvwinsch(ptr noundef %41, i32 noundef %42, i32 noundef %43, i8 noundef signext %48)
%50 = call i32 @report_int(i32 noundef %49)
br label %51
51: ; preds = %39, %36, %27, %18, %11
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_int(i32 noundef) #1
declare i32 @mvwinsch(ptr noundef, i32 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/tmpo_u2bdce.c"
target datalayout = "e-m:e-p270: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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvwinsch(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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = call i32 @check_arg_count(i32 noundef %8, i32 noundef 4)
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %2
br label %51
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i64 @sscanf(ptr noundef %15, ptr noundef @.str, ptr noundef %7)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @report_count(i32 noundef 1)
%20 = call i32 @report_error(ptr noundef @.str.1)
br label %51
21: ; preds = %12
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i64 @sscanf(ptr noundef %24, ptr noundef @.str.2, ptr noundef %5)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %21
%28 = call i32 @report_count(i32 noundef 1)
%29 = call i32 @report_error(ptr noundef @.str.1)
br label %51
30: ; preds = %21
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i64 @sscanf(ptr noundef %33, ptr noundef @.str.2, ptr noundef %6)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %30
%37 = call i32 @report_count(i32 noundef 1)
%38 = call i32 @report_error(ptr noundef @.str.1)
br label %51
39: ; preds = %30
%40 = call i32 @report_count(i32 noundef 1)
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %5, align 4
%43 = load i32, ptr %6, align 4
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 3
%46 = load ptr, ptr %45, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 0
%48 = load i8, ptr %47, align 1
%49 = call i32 @mvwinsch(ptr noundef %41, i32 noundef %42, i32 noundef %43, i8 noundef signext %48)
%50 = call i32 @report_int(i32 noundef %49)
br label %51
51: ; preds = %39, %36, %27, %18, %11
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_int(i32 noundef) #1
declare i32 @mvwinsch(ptr noundef, i32 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/tmpz12mdnoi.c'
source_filename = "/tmp/tmpz12mdnoi.c"
target datalayout = "e-m:e-p270: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/tmpz12mdnoi.c"
target datalayout = "e-m:e-p270: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/tmpp14sorx9.c'
source_filename = "/tmp/tmpp14sorx9.c"
target datalayout = "e-m:e-p270: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"Tutorial\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"</center><blockquote>\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"idns.tutorial.txt\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"</blockquote>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Tutorial() #0 {
%1 = call i32 @Header_ism3(ptr noundef @.str, i32 noundef 0)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @PassDirectHtml(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 (...) @Footer_ism3()
ret void
}
declare i32 @Header_ism3(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @PassDirectHtml(ptr noundef) #1
declare i32 @Footer_ism3(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpp14sorx9.c"
target datalayout = "e-m:e-p270: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"Tutorial\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"</center><blockquote>\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"idns.tutorial.txt\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"</blockquote>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Tutorial() #0 {
%1 = call i32 @Header_ism3(ptr noundef @.str, i32 noundef 0)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @PassDirectHtml(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 (...) @Footer_ism3()
ret void
}
declare i32 @Header_ism3(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @PassDirectHtml(ptr noundef) #1
declare i32 @Footer_ism3(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpjqufri48.c'
source_filename = "/tmp/tmpjqufri48.c"
target datalayout = "e-m:e-p270: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/tmpjqufri48.c"
target datalayout = "e-m:e-p270: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/tmpe0w_bnmh.c'
source_filename = "/tmp/tmpe0w_bnmh.c"
target datalayout = "e-m:e-p270: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/tmpe0w_bnmh.c"
target datalayout = "e-m:e-p270: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/tmpytbjli8p.c'
source_filename = "/tmp/tmpytbjli8p.c"
target datalayout = "e-m:e-p270: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/tmpytbjli8p.c"
target datalayout = "e-m:e-p270: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/tmpk74fxzhd.c'
source_filename = "/tmp/tmpk74fxzhd.c"
target datalayout = "e-m:e-p270: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.utsname = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"n\00", align 1
@optind = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"uname\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"test_bounded_t\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"3.18\00", align 1
@PR_SET_NO_NEW_PRIVS = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [26 x i8] c"prctl PR_SET_NO_NEW_PRIVS\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.6 = private unnamed_addr constant [68 x i8] c"%s: Kernels < v3.18 do not support bounded transitions under NNP.\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [29 x i8] c"Unexpected exit status 0x%x\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 %struct.utsname, align 4
%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
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 %12, align 4
br label %13
13: ; preds = %26, %2
%14 = load i32, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @getopt(i32 noundef %14, ptr noundef %15, ptr noundef @.str)
store i32 %16, ptr %11, align 4
%17 = icmp ne i32 %16, -1
br i1 %17, label %18, label %27
18: ; preds = %13
%19 = load i32, ptr %11, align 4
switch i32 %19, label %21 [
i32 110, label %20
]
20: ; preds = %18
store i32 1, ptr %12, align 4
br label %26
21: ; preds = %18
%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 @usage(ptr noundef %24)
br label %26
26: ; preds = %21, %20
br label %13, !llvm.loop !6
27: ; preds = %13
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr @optind, align 4
%30 = sub nsw i32 %28, %29
%31 = icmp slt i32 %30, 2
br i1 %31, label %32, label %37
32: ; preds = %27
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 0
%35 = load ptr, ptr %34, align 8
%36 = call i32 @usage(ptr noundef %35)
br label %37
37: ; preds = %32, %27
%38 = call i64 @uname(ptr noundef %7)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = call i32 @perror(ptr noundef @.str.1)
%42 = call i32 @exit(i32 noundef -1) #3
unreachable
43: ; preds = %37
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %4, align 4
%46 = sub nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %44, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = call i64 @strcmp(ptr noundef %49, ptr noundef @.str.2)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %43
%53 = getelementptr inbounds %struct.utsname, ptr %7, i32 0, i32 0
%54 = load i32, ptr %53, align 4
%55 = call i64 @strverscmp(i32 noundef %54, ptr noundef @.str.3)
%56 = icmp slt i64 %55, 0
br label %57
57: ; preds = %52, %43
%58 = phi i1 [ false, %43 ], [ %56, %52 ]
%59 = zext i1 %58 to i32
store i32 %59, ptr %6, align 4
%60 = load i32, ptr %12, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %71
62: ; preds = %57
%63 = load i32, ptr @PR_SET_NO_NEW_PRIVS, align 4
%64 = call i32 @prctl(i32 noundef %63, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %62
%68 = call i32 @perror(ptr noundef @.str.4)
%69 = call i32 @exit(i32 noundef -1) #3
unreachable
70: ; preds = %62
br label %71
71: ; preds = %70, %57
%72 = call i64 (...) @fork()
store i64 %72, ptr %8, align 8
%73 = load i64, ptr %8, align 8
%74 = icmp slt i64 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %71
%76 = call i32 @perror(ptr noundef @.str.5)
%77 = call i32 @exit(i32 noundef -1) #3
unreachable
78: ; preds = %71
%79 = load i64, ptr %8, align 8
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %99
81: ; preds = %78
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr @optind, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds ptr, ptr %82, i64 %84
%86 = load ptr, ptr %85, align 8
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr @optind, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds ptr, ptr %87, i64 %89
%91 = call i32 @execvp(ptr noundef %86, ptr noundef %90)
%92 = load ptr, ptr %5, align 8
%93 = load i32, ptr @optind, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds ptr, ptr %92, i64 %94
%96 = load ptr, ptr %95, align 8
%97 = call i32 @perror(ptr noundef %96)
%98 = call i32 @exit(i32 noundef -1) #3
unreachable
99: ; preds = %78
%100 = call i64 @wait(ptr noundef %10)
store i64 %100, ptr %8, align 8
%101 = load i32, ptr %10, align 4
%102 = call i64 @WIFEXITED(i32 noundef %101)
%103 = icmp ne i64 %102, 0
br i1 %103, label %104, label %121
104: ; preds = %99
%105 = load i32, ptr %10, align 4
%106 = call i32 @WEXITSTATUS(i32 noundef %105)
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %117
108: ; preds = %104
%109 = load i32, ptr %6, align 4
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %117
111: ; preds = %108
%112 = load ptr, ptr %5, align 8
%113 = getelementptr inbounds ptr, ptr %112, i64 0
%114 = load ptr, ptr %113, align 8
%115 = call i32 @printf(ptr noundef @.str.6, ptr noundef %114)
%116 = call i32 @exit(i32 noundef 0) #3
unreachable
117: ; preds = %108, %104
%118 = load i32, ptr %10, align 4
%119 = call i32 @WEXITSTATUS(i32 noundef %118)
%120 = call i32 @exit(i32 noundef %119) #3
unreachable
121: ; preds = %99
%122 = load i32, ptr @stderr, align 4
%123 = load i32, ptr %10, align 4
%124 = call i32 @fprintf(i32 noundef %122, ptr noundef @.str.7, i32 noundef %123)
%125 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usage(ptr noundef) #1
declare i64 @uname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @strverscmp(i32 noundef, ptr noundef) #1
declare i32 @prctl(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @fork(...) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
declare i64 @wait(ptr noundef) #1
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fprintf(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" }
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/tmpk74fxzhd.c"
target datalayout = "e-m:e-p270: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.utsname = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"n\00", align 1
@optind = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"uname\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"test_bounded_t\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"3.18\00", align 1
@PR_SET_NO_NEW_PRIVS = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [26 x i8] c"prctl PR_SET_NO_NEW_PRIVS\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.6 = private unnamed_addr constant [68 x i8] c"%s: Kernels < v3.18 do not support bounded transitions under NNP.\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [29 x i8] c"Unexpected exit status 0x%x\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 %struct.utsname, align 4
%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
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 %12, align 4
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @getopt(i32 noundef %13, ptr noundef %14, ptr noundef @.str)
store i32 %15, ptr %11, align 4
%16 = icmp ne i32 %15, -1
br i1 %16, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %25
%18 = load i32, ptr %11, align 4
switch i32 %18, label %20 [
i32 110, label %19
]
19: ; preds = %17
store i32 1, ptr %12, align 4
br label %25
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 0
%23 = load ptr, ptr %22, align 8
%24 = call i32 @usage(ptr noundef %23)
br label %25
25: ; preds = %20, %19
%26 = load i32, ptr %4, align 4
%27 = load ptr, ptr %5, align 8
%28 = call i32 @getopt(i32 noundef %26, ptr noundef %27, ptr noundef @.str)
store i32 %28, ptr %11, align 4
%29 = icmp ne i32 %28, -1
br i1 %29, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %2
%31 = load i32, ptr %4, align 4
%32 = load i32, ptr @optind, align 4
%33 = sub nsw i32 %31, %32
%34 = icmp slt i32 %33, 2
br i1 %34, label %35, label %40
35: ; preds = %30
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 0
%38 = load ptr, ptr %37, align 8
%39 = call i32 @usage(ptr noundef %38)
br label %40
40: ; preds = %35, %30
%41 = call i64 @uname(ptr noundef %7)
%42 = icmp slt i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = call i32 @perror(ptr noundef @.str.1)
%45 = call i32 @exit(i32 noundef -1) #3
unreachable
46: ; preds = %40
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %4, align 4
%49 = sub nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %47, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = call i64 @strcmp(ptr noundef %52, ptr noundef @.str.2)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %46
%56 = getelementptr inbounds %struct.utsname, ptr %7, i32 0, i32 0
%57 = load i32, ptr %56, align 4
%58 = call i64 @strverscmp(i32 noundef %57, ptr noundef @.str.3)
%59 = icmp slt i64 %58, 0
br label %60
60: ; preds = %55, %46
%61 = phi i1 [ false, %46 ], [ %59, %55 ]
%62 = zext i1 %61 to i32
store i32 %62, ptr %6, align 4
%63 = load i32, ptr %12, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %74
65: ; preds = %60
%66 = load i32, ptr @PR_SET_NO_NEW_PRIVS, align 4
%67 = call i32 @prctl(i32 noundef %66, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
store i32 %67, ptr %9, align 4
%68 = load i32, ptr %9, align 4
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %65
%71 = call i32 @perror(ptr noundef @.str.4)
%72 = call i32 @exit(i32 noundef -1) #3
unreachable
73: ; preds = %65
br label %74
74: ; preds = %73, %60
%75 = call i64 (...) @fork()
store i64 %75, ptr %8, align 8
%76 = load i64, ptr %8, align 8
%77 = icmp slt i64 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %74
%79 = call i32 @perror(ptr noundef @.str.5)
%80 = call i32 @exit(i32 noundef -1) #3
unreachable
81: ; preds = %74
%82 = load i64, ptr %8, align 8
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %102
84: ; preds = %81
%85 = load ptr, ptr %5, align 8
%86 = load i32, ptr @optind, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds ptr, ptr %85, i64 %87
%89 = load ptr, ptr %88, align 8
%90 = load ptr, ptr %5, align 8
%91 = load i32, ptr @optind, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds ptr, ptr %90, i64 %92
%94 = call i32 @execvp(ptr noundef %89, ptr noundef %93)
%95 = load ptr, ptr %5, align 8
%96 = load i32, ptr @optind, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %95, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = call i32 @perror(ptr noundef %99)
%101 = call i32 @exit(i32 noundef -1) #3
unreachable
102: ; preds = %81
%103 = call i64 @wait(ptr noundef %10)
store i64 %103, ptr %8, align 8
%104 = load i32, ptr %10, align 4
%105 = call i64 @WIFEXITED(i32 noundef %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %124
107: ; preds = %102
%108 = load i32, ptr %10, align 4
%109 = call i32 @WEXITSTATUS(i32 noundef %108)
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %120
111: ; preds = %107
%112 = load i32, ptr %6, align 4
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %120
114: ; preds = %111
%115 = load ptr, ptr %5, align 8
%116 = getelementptr inbounds ptr, ptr %115, i64 0
%117 = load ptr, ptr %116, align 8
%118 = call i32 @printf(ptr noundef @.str.6, ptr noundef %117)
%119 = call i32 @exit(i32 noundef 0) #3
unreachable
120: ; preds = %111, %107
%121 = load i32, ptr %10, align 4
%122 = call i32 @WEXITSTATUS(i32 noundef %121)
%123 = call i32 @exit(i32 noundef %122) #3
unreachable
124: ; preds = %102
%125 = load i32, ptr @stderr, align 4
%126 = load i32, ptr %10, align 4
%127 = call i32 @fprintf(i32 noundef %125, ptr noundef @.str.7, i32 noundef %126)
%128 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usage(ptr noundef) #1
declare i64 @uname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @strverscmp(i32 noundef, ptr noundef) #1
declare i32 @prctl(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @fork(...) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
declare i64 @wait(ptr noundef) #1
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fprintf(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" }
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/tmpselv5vls.c'
source_filename = "/tmp/tmpselv5vls.c"
target datalayout = "e-m:e-p270: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 [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @GetBasename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strlen(ptr noundef %9)
br label %12
11: ; preds = %1
br label %12
12: ; preds = %11, %8
%13 = phi i32 [ %10, %8 ], [ 0, %11 ]
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store ptr @.str, ptr %2, align 8
br label %63
17: ; preds = %12
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = load ptr, ptr %3, align 8
store ptr %21, ptr %2, align 8
br label %63
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = getelementptr inbounds i8, ptr %26, i64 -1
store ptr %27, ptr %4, align 8
br label %28
28: ; preds = %44, %22
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %3, align 8
%31 = icmp ugt ptr %29, %30
br i1 %31, label %32, label %47
32: ; preds = %28
%33 = load ptr, ptr %4, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 47
br i1 %36, label %37, label %44
37: ; preds = %32
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 1
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %37
br label %47
44: ; preds = %37, %32
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 -1
store ptr %46, ptr %4, align 8
br label %28, !llvm.loop !6
47: ; preds = %43, %28
%48 = load ptr, ptr %4, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 47
br i1 %51, label %52, label %61
52: ; preds = %47
%53 = load ptr, ptr %4, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 1
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = load ptr, ptr %4, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %4, align 8
br label %61
61: ; preds = %58, %52, %47
%62 = load ptr, ptr %4, align 8
store ptr %62, ptr %2, align 8
br label %63
63: ; preds = %61, %20, %16
%64 = load ptr, ptr %2, align 8
ret ptr %64
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpselv5vls.c"
target datalayout = "e-m:e-p270: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 [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @GetBasename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strlen(ptr noundef %9)
br label %12
11: ; preds = %1
br label %12
12: ; preds = %11, %8
%13 = phi i32 [ %10, %8 ], [ 0, %11 ]
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store ptr @.str, ptr %2, align 8
br label %65
17: ; preds = %12
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = load ptr, ptr %3, align 8
store ptr %21, ptr %2, align 8
br label %65
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = getelementptr inbounds i8, ptr %26, i64 -1
store ptr %27, ptr %4, align 8
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %3, align 8
%30 = icmp ugt ptr %28, %29
br i1 %30, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %22
br label %31
31: ; preds = %.lr.ph, %43
%32 = load ptr, ptr %4, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 47
br i1 %35, label %36, label %43
36: ; preds = %31
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 1
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %36
br label %49
43: ; preds = %36, %31
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 -1
store ptr %45, ptr %4, align 8
%46 = load ptr, ptr %4, align 8
%47 = load ptr, ptr %3, align 8
%48 = icmp ugt ptr %46, %47
br i1 %48, label %31, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %43
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %22
br label %49
49: ; preds = %.loopexit, %42
%50 = load ptr, ptr %4, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 47
br i1 %53, label %54, label %63
54: ; preds = %49
%55 = load ptr, ptr %4, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 1
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %54
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %4, align 8
br label %63
63: ; preds = %60, %54, %49
%64 = load ptr, ptr %4, align 8
store ptr %64, ptr %2, align 8
br label %65
65: ; preds = %63, %20, %16
%66 = load ptr, ptr %2, align 8
ret ptr %66
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk5tm93lk.c'
source_filename = "/tmp/tmpk5tm93lk.c"
target datalayout = "e-m:e-p270: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 @sigalrm_handler() #0 {
%1 = call i32 (...) @updateProgressBar()
%2 = call i32 @alarm(i32 noundef 1)
ret void
}
declare i32 @updateProgressBar(...) #1
declare i32 @alarm(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/tmpk5tm93lk.c"
target datalayout = "e-m:e-p270: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 @sigalrm_handler() #0 {
%1 = call i32 (...) @updateProgressBar()
%2 = call i32 @alarm(i32 noundef 1)
ret void
}
declare i32 @updateProgressBar(...) #1
declare i32 @alarm(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/tmpa8go3ne8.c'
source_filename = "/tmp/tmpa8go3ne8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CL_INVALID_COMMAND_QUEUE = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [55 x i8] c"Err (EnqueueReadBuffer): The command queue is invalid\0A\00", align 1
@CL_INVALID_CONTEXT = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [96 x i8] c"Err (EnqueueReadBuffer): The context associated with command queue and buffer are not the same\0A\00", align 1
@CL_INVALID_MEM_OBJECT = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [62 x i8] c"Err (EnqueueReadBuffer): Buffer is not a valid buffer object\0A\00", align 1
@CL_INVALID_VALUE = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [96 x i8] c"Err (EnqueueReadBuffer): The region being written is out of bounds or pointer is of NULL value\0A\00", align 1
@CL_INVALID_EVENT_WAIT_LIST = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [62 x i8] c"Err (EnqueueReadBuffer): Something wrong with theh wait list\0A\00", align 1
@CL_MEM_OBJECT_ALLOCATION_FAILURE = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [61 x i8] c"Err (EnqueueReadBuffer): Failure to alllocate memory buffer\0A\00", align 1
@CL_OUT_OF_HOST_MEMORY = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [56 x i8] c"Err (EnqueueReadBuffer): Failure to allocate resources\0A\00", align 1
@CL_SUCCESS = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [37 x i8] c"clEnqueueReadBufferChecker (%d, %d)\0A\00", align 1
@CL_OUT_OF_RESOURCES = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @clEnqueueReadBufferChecker(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i64, ptr %3, align 8
%5 = load i64, ptr @CL_INVALID_COMMAND_QUEUE, align 8
%6 = icmp eq i64 %4, %5
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str)
br label %78
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = load i64, ptr %11, align 8
%13 = load i64, ptr @CL_INVALID_CONTEXT, align 8
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr @stderr, align 4
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.1)
br label %77
18: ; preds = %10
%19 = load ptr, ptr %2, align 8
%20 = load i64, ptr %19, align 8
%21 = load i64, ptr @CL_INVALID_MEM_OBJECT, align 8
%22 = icmp eq i64 %20, %21
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32, ptr @stderr, align 4
%25 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %24, ptr noundef @.str.2)
br label %76
26: ; preds = %18
%27 = load ptr, ptr %2, align 8
%28 = load i64, ptr %27, align 8
%29 = load i64, ptr @CL_INVALID_VALUE, align 8
%30 = icmp eq i64 %28, %29
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32, ptr @stderr, align 4
%33 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %32, ptr noundef @.str.3)
br label %75
34: ; preds = %26
%35 = load ptr, ptr %2, align 8
%36 = load i64, ptr %35, align 8
%37 = load i64, ptr @CL_INVALID_EVENT_WAIT_LIST, align 8
%38 = icmp eq i64 %36, %37
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load i32, ptr @stderr, align 4
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str.4)
br label %74
42: ; preds = %34
%43 = load ptr, ptr %2, align 8
%44 = load i64, ptr %43, align 8
%45 = load i64, ptr @CL_MEM_OBJECT_ALLOCATION_FAILURE, align 8
%46 = icmp eq i64 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = load i32, ptr @stderr, align 4
%49 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %48, ptr noundef @.str.5)
br label %73
50: ; preds = %42
%51 = load ptr, ptr %2, align 8
%52 = load i64, ptr %51, align 8
%53 = load i64, ptr @CL_OUT_OF_HOST_MEMORY, align 8
%54 = icmp eq i64 %52, %53
br i1 %54, label %55, label %58
55: ; preds = %50
%56 = load i32, ptr @stderr, align 4
%57 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %56, ptr noundef @.str.6)
br label %72
58: ; preds = %50
%59 = load ptr, ptr %2, align 8
%60 = load i64, ptr %59, align 8
%61 = load i64, ptr @CL_SUCCESS, align 8
%62 = icmp ne i64 %60, %61
br i1 %62, label %63, label %71
63: ; preds = %58
%64 = load i32, ptr @stderr, align 4
%65 = load ptr, ptr %2, align 8
%66 = load i64, ptr %65, align 8
%67 = trunc i64 %66 to i32
%68 = load i64, ptr @CL_OUT_OF_RESOURCES, align 8
%69 = trunc i64 %68 to i32
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef @.str.7, i32 noundef %67, i32 noundef %69)
br label %71
71: ; preds = %63, %58
br label %72
72: ; preds = %71, %55
br label %73
73: ; preds = %72, %47
br label %74
74: ; preds = %73, %39
br label %75
75: ; preds = %74, %31
br label %76
76: ; preds = %75, %23
br label %77
77: ; preds = %76, %15
br label %78
78: ; preds = %77, %7
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa8go3ne8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CL_INVALID_COMMAND_QUEUE = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [55 x i8] c"Err (EnqueueReadBuffer): The command queue is invalid\0A\00", align 1
@CL_INVALID_CONTEXT = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [96 x i8] c"Err (EnqueueReadBuffer): The context associated with command queue and buffer are not the same\0A\00", align 1
@CL_INVALID_MEM_OBJECT = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [62 x i8] c"Err (EnqueueReadBuffer): Buffer is not a valid buffer object\0A\00", align 1
@CL_INVALID_VALUE = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [96 x i8] c"Err (EnqueueReadBuffer): The region being written is out of bounds or pointer is of NULL value\0A\00", align 1
@CL_INVALID_EVENT_WAIT_LIST = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [62 x i8] c"Err (EnqueueReadBuffer): Something wrong with theh wait list\0A\00", align 1
@CL_MEM_OBJECT_ALLOCATION_FAILURE = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [61 x i8] c"Err (EnqueueReadBuffer): Failure to alllocate memory buffer\0A\00", align 1
@CL_OUT_OF_HOST_MEMORY = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [56 x i8] c"Err (EnqueueReadBuffer): Failure to allocate resources\0A\00", align 1
@CL_SUCCESS = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [37 x i8] c"clEnqueueReadBufferChecker (%d, %d)\0A\00", align 1
@CL_OUT_OF_RESOURCES = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @clEnqueueReadBufferChecker(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i64, ptr %3, align 8
%5 = load i64, ptr @CL_INVALID_COMMAND_QUEUE, align 8
%6 = icmp eq i64 %4, %5
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str)
br label %78
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = load i64, ptr %11, align 8
%13 = load i64, ptr @CL_INVALID_CONTEXT, align 8
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr @stderr, align 4
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.1)
br label %77
18: ; preds = %10
%19 = load ptr, ptr %2, align 8
%20 = load i64, ptr %19, align 8
%21 = load i64, ptr @CL_INVALID_MEM_OBJECT, align 8
%22 = icmp eq i64 %20, %21
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32, ptr @stderr, align 4
%25 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %24, ptr noundef @.str.2)
br label %76
26: ; preds = %18
%27 = load ptr, ptr %2, align 8
%28 = load i64, ptr %27, align 8
%29 = load i64, ptr @CL_INVALID_VALUE, align 8
%30 = icmp eq i64 %28, %29
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32, ptr @stderr, align 4
%33 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %32, ptr noundef @.str.3)
br label %75
34: ; preds = %26
%35 = load ptr, ptr %2, align 8
%36 = load i64, ptr %35, align 8
%37 = load i64, ptr @CL_INVALID_EVENT_WAIT_LIST, align 8
%38 = icmp eq i64 %36, %37
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load i32, ptr @stderr, align 4
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str.4)
br label %74
42: ; preds = %34
%43 = load ptr, ptr %2, align 8
%44 = load i64, ptr %43, align 8
%45 = load i64, ptr @CL_MEM_OBJECT_ALLOCATION_FAILURE, align 8
%46 = icmp eq i64 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = load i32, ptr @stderr, align 4
%49 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %48, ptr noundef @.str.5)
br label %73
50: ; preds = %42
%51 = load ptr, ptr %2, align 8
%52 = load i64, ptr %51, align 8
%53 = load i64, ptr @CL_OUT_OF_HOST_MEMORY, align 8
%54 = icmp eq i64 %52, %53
br i1 %54, label %55, label %58
55: ; preds = %50
%56 = load i32, ptr @stderr, align 4
%57 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %56, ptr noundef @.str.6)
br label %72
58: ; preds = %50
%59 = load ptr, ptr %2, align 8
%60 = load i64, ptr %59, align 8
%61 = load i64, ptr @CL_SUCCESS, align 8
%62 = icmp ne i64 %60, %61
br i1 %62, label %63, label %71
63: ; preds = %58
%64 = load i32, ptr @stderr, align 4
%65 = load ptr, ptr %2, align 8
%66 = load i64, ptr %65, align 8
%67 = trunc i64 %66 to i32
%68 = load i64, ptr @CL_OUT_OF_RESOURCES, align 8
%69 = trunc i64 %68 to i32
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef @.str.7, i32 noundef %67, i32 noundef %69)
br label %71
71: ; preds = %63, %58
br label %72
72: ; preds = %71, %55
br label %73
73: ; preds = %72, %47
br label %74
74: ; preds = %73, %39
br label %75
75: ; preds = %74, %31
br label %76
76: ; preds = %75, %23
br label %77
77: ; preds = %76, %15
br label %78
78: ; preds = %77, %7
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.