llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp_3rk09t6.c'
source_filename = "/tmp/tmp_3rk09t6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@manos_socket_create.domains = internal global [2 x i32] [i32 133, i32 132], align 4
@manos_socket_create.types = internal global [2 x i32] [i32 128, i32 129], align 4
@manos_socket_create.protocols = internal global [2 x i32] [i32 131, i32 130], align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @manos_socket_create(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [2 x i32], ptr @manos_socket_create.domains, i64 0, i64 %10
%12 = load i32, ptr %11, align 4
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [2 x i32], ptr @manos_socket_create.types, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [2 x i32], ptr @manos_socket_create.protocols, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 @socket(i32 noundef %12, i32 noundef %16, i32 noundef %20)
store i32 %21, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %33
24: ; preds = %3
%25 = load i32, ptr %8, align 4
%26 = call i64 @setup_socket(i32 noundef %25)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %24
%29 = load i32, ptr @errno, align 4
%30 = load ptr, ptr %7, align 8
store i32 %29, ptr %30, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @close(i32 noundef %31)
store i32 -1, ptr %4, align 4
br label %37
33: ; preds = %24, %3
%34 = load i32, ptr @errno, align 4
%35 = load ptr, ptr %7, align 8
store i32 %34, ptr %35, align 4
%36 = load i32, ptr %8, align 4
store i32 %36, ptr %4, align 4
br label %37
37: ; preds = %33, %28
%38 = load i32, ptr %4, align 4
ret i32 %38
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @setup_socket(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_3rk09t6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@manos_socket_create.domains = internal global [2 x i32] [i32 133, i32 132], align 4
@manos_socket_create.types = internal global [2 x i32] [i32 128, i32 129], align 4
@manos_socket_create.protocols = internal global [2 x i32] [i32 131, i32 130], align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @manos_socket_create(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [2 x i32], ptr @manos_socket_create.domains, i64 0, i64 %10
%12 = load i32, ptr %11, align 4
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [2 x i32], ptr @manos_socket_create.types, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [2 x i32], ptr @manos_socket_create.protocols, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 @socket(i32 noundef %12, i32 noundef %16, i32 noundef %20)
store i32 %21, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %33
24: ; preds = %3
%25 = load i32, ptr %8, align 4
%26 = call i64 @setup_socket(i32 noundef %25)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %24
%29 = load i32, ptr @errno, align 4
%30 = load ptr, ptr %7, align 8
store i32 %29, ptr %30, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @close(i32 noundef %31)
store i32 -1, ptr %4, align 4
br label %37
33: ; preds = %24, %3
%34 = load i32, ptr @errno, align 4
%35 = load ptr, ptr %7, align 8
store i32 %34, ptr %35, align 4
%36 = load i32, ptr %8, align 4
store i32 %36, ptr %4, align 4
br label %37
37: ; preds = %33, %28
%38 = load i32, ptr %4, align 4
ret i32 %38
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @setup_socket(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph8x3jsik.c'
source_filename = "/tmp/tmph8x3jsik.c"
target datalayout = "e-m:e-p270: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
; 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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %8, align 4
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%14 = load i32, ptr %6, align 4
%15 = zext i32 %14 to i64
%16 = call ptr @llvm.stacksave()
store ptr %16, ptr %10, align 8
%17 = alloca i32, i64 %15, align 16
store i64 %15, ptr %11, align 8
%18 = load i32, ptr %6, align 4
%19 = zext i32 %18 to i64
%20 = alloca i32, i64 %19, align 16
store i64 %19, ptr %12, align 8
store i32 0, ptr %2, align 4
br label %21
21: ; preds = %30, %0
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %33
25: ; preds = %21
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %17, i64 %27
%29 = call i32 @scanf(ptr noundef @.str, ptr noundef %28)
br label %30
30: ; preds = %25
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
br label %21, !llvm.loop !6
33: ; preds = %21
%34 = load i32, ptr %6, align 4
%35 = sub nsw i32 %34, 1
%36 = call i32 @partition(ptr noundef %17, i32 noundef 0, i32 noundef %35)
store i32 0, ptr %2, align 4
br label %37
37: ; preds = %87, %33
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %90
41: ; preds = %37
store i32 0, ptr %4, align 4
%42 = load i32, ptr %2, align 4
store i32 %42, ptr %3, align 4
br label %43
43: ; preds = %75, %41
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %78
47: ; preds = %43
%48 = load i32, ptr %2, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %17, i64 %49
%51 = load i32, ptr %50, align 4
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %17, i64 %53
%55 = load i32, ptr %54, align 4
%56 = icmp eq i32 %51, %55
br i1 %56, label %57, label %68
57: ; preds = %47
%58 = load i32, ptr %2, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %17, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load i32, ptr %2, align 4
%63 = sub nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %17, i64 %64
%66 = load i32, ptr %65, align 4
%67 = icmp ne i32 %61, %66
br i1 %67, label %71, label %68
68: ; preds = %57, %47
%69 = load i32, ptr %2, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %68, %57
%72 = load i32, ptr %4, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %4, align 4
br label %74
74: ; preds = %71, %68
br label %75
75: ; preds = %74
%76 = load i32, ptr %3, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %3, align 4
br label %43, !llvm.loop !8
78: ; preds = %43
%79 = load i32, ptr %4, align 4
%80 = icmp eq i32 %79, 1
br i1 %80, label %81, label %86
81: ; preds = %78
%82 = load i32, ptr %2, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %17, i64 %83
%85 = load i32, ptr %84, align 4
store i32 %85, ptr %5, align 4
br label %90
86: ; preds = %78
br label %87
87: ; preds = %86
%88 = load i32, ptr %2, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %2, align 4
br label %37, !llvm.loop !9
90: ; preds = %81, %37
%91 = load i32, ptr %5, align 4
%92 = call i32 @printf(ptr noundef @.str, i32 noundef %91)
store i32 0, ptr %1, align 4
%93 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %93)
%94 = load i32, ptr %1, align 4
ret i32 %94
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @partition(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph8x3jsik.c"
target datalayout = "e-m:e-p270: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
; 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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %8, align 4
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%14 = load i32, ptr %6, align 4
%15 = zext i32 %14 to i64
%16 = call ptr @llvm.stacksave()
store ptr %16, ptr %10, align 8
%17 = alloca i32, i64 %15, align 16
store i64 %15, ptr %11, align 8
%18 = load i32, ptr %6, align 4
%19 = zext i32 %18 to i64
%20 = alloca i32, i64 %19, align 16
store i64 %19, ptr %12, align 8
store i32 0, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %35
.lr.ph: ; preds = %0
br label %24
24: ; preds = %.lr.ph, %29
%25 = load i32, ptr %2, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %17, i64 %26
%28 = call i32 @scanf(ptr noundef @.str, ptr noundef %27)
br label %29
29: ; preds = %24
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %0
%36 = load i32, ptr %6, align 4
%37 = sub nsw i32 %36, 1
%38 = call i32 @partition(ptr noundef %17, i32 noundef 0, i32 noundef %37)
store i32 0, ptr %2, align 4
%39 = load i32, ptr %2, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %.lr.ph5, label %.loopexit
.lr.ph5: ; preds = %35
br label %42
42: ; preds = %.lr.ph5, %90
store i32 0, ptr %4, align 4
%43 = load i32, ptr %2, align 4
store i32 %43, ptr %3, align 4
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %.lr.ph2, label %81
.lr.ph2: ; preds = %42
br label %47
47: ; preds = %.lr.ph2, %75
%48 = load i32, ptr %2, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %17, i64 %49
%51 = load i32, ptr %50, align 4
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %17, i64 %53
%55 = load i32, ptr %54, align 4
%56 = icmp eq i32 %51, %55
br i1 %56, label %57, label %68
57: ; preds = %47
%58 = load i32, ptr %2, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %17, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load i32, ptr %2, align 4
%63 = sub nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %17, i64 %64
%66 = load i32, ptr %65, align 4
%67 = icmp ne i32 %61, %66
br i1 %67, label %71, label %68
68: ; preds = %57, %47
%69 = load i32, ptr %2, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %68, %57
%72 = load i32, ptr %4, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %4, align 4
br label %74
74: ; preds = %71, %68
br label %75
75: ; preds = %74
%76 = load i32, ptr %3, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %3, align 4
%78 = load i32, ptr %3, align 4
%79 = load i32, ptr %6, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %47, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %42
%82 = load i32, ptr %4, align 4
%83 = icmp eq i32 %82, 1
br i1 %83, label %84, label %89
84: ; preds = %81
%85 = load i32, ptr %2, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %17, i64 %86
%88 = load i32, ptr %87, align 4
store i32 %88, ptr %5, align 4
br label %96
89: ; preds = %81
br label %90
90: ; preds = %89
%91 = load i32, ptr %2, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %2, align 4
%93 = load i32, ptr %2, align 4
%94 = load i32, ptr %6, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %42, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %90
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %35
br label %96
96: ; preds = %.loopexit, %84
%97 = load i32, ptr %5, align 4
%98 = call i32 @printf(ptr noundef @.str, i32 noundef %97)
store i32 0, ptr %1, align 4
%99 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %99)
%100 = load i32, ptr %1, align 4
ret i32 %100
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @partition(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmphw4_jzwm.c'
source_filename = "/tmp/tmphw4_jzwm.c"
target datalayout = "e-m:e-p270: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 @stun_set_binding_request_str(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @stun_init_request_str(i32 noundef 1, ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @stun_init_request_str(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphw4_jzwm.c"
target datalayout = "e-m:e-p270: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 @stun_set_binding_request_str(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @stun_init_request_str(i32 noundef 1, ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @stun_init_request_str(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppnpx7qxh.c'
source_filename = "/tmp/tmppnpx7qxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fft_c_preswapped(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, 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
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%19 = load i64, ptr %4, align 8
%20 = shl i64 %19, 1
%21 = trunc i64 %20 to i32
store i32 %21, ptr %5, align 4
store i32 2, ptr %6, align 4
br label %22
22: ; preds = %154, %2
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %156
26: ; preds = %22
%27 = load i32, ptr %6, align 4
%28 = mul nsw i32 2, %27
store i32 %28, ptr %9, align 4
%29 = load float, ptr @M_PI, align 4
%30 = fmul float 2.000000e+00, %29
%31 = load i32, ptr %6, align 4
%32 = sitofp i32 %31 to float
%33 = fdiv float %30, %32
%34 = fneg float %33
store float %34, ptr %16, align 4
%35 = load float, ptr %16, align 4
%36 = fmul float 5.000000e-01, %35
%37 = call float @sinf(float noundef %36) #3
store float %37, ptr %11, align 4
%38 = load float, ptr %11, align 4
%39 = fmul float -2.000000e+00, %38
%40 = load float, ptr %11, align 4
%41 = fmul float %39, %40
store float %41, ptr %13, align 4
%42 = load float, ptr %16, align 4
%43 = call float @sinf(float noundef %42) #3
store float %43, ptr %14, align 4
store float 1.000000e+00, ptr %12, align 4
store float 0.000000e+00, ptr %15, align 4
store i32 1, ptr %7, align 4
br label %44
44: ; preds = %151, %26
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %6, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %154
48: ; preds = %44
%49 = load i32, ptr %7, align 4
store i32 %49, ptr %10, align 4
br label %50
50: ; preds = %128, %48
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %5, align 4
%53 = icmp sle i32 %51, %52
br i1 %53, label %54, label %132
54: ; preds = %50
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %55, %56
store i32 %57, ptr %8, align 4
%58 = load float, ptr %12, align 4
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %8, align 4
%61 = sub nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds float, ptr %59, i64 %62
%64 = load float, ptr %63, align 4
%65 = load float, ptr %15, align 4
%66 = load ptr, ptr %3, align 8
%67 = load i32, ptr %8, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds float, ptr %66, i64 %68
%70 = load float, ptr %69, align 4
%71 = fmul float %65, %70
%72 = fneg float %71
%73 = call float @llvm.fmuladd.f32(float %58, float %64, float %72)
store float %73, ptr %17, align 4
%74 = load float, ptr %12, align 4
%75 = load ptr, ptr %3, align 8
%76 = load i32, ptr %8, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds float, ptr %75, i64 %77
%79 = load float, ptr %78, align 4
%80 = load float, ptr %15, align 4
%81 = load ptr, ptr %3, align 8
%82 = load i32, ptr %8, align 4
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds float, ptr %81, i64 %84
%86 = load float, ptr %85, align 4
%87 = fmul float %80, %86
%88 = call float @llvm.fmuladd.f32(float %74, float %79, float %87)
store float %88, ptr %18, align 4
%89 = load ptr, ptr %3, align 8
%90 = load i32, ptr %10, align 4
%91 = sub nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %89, i64 %92
%94 = load float, ptr %93, align 4
%95 = load float, ptr %17, align 4
%96 = fsub float %94, %95
%97 = load ptr, ptr %3, align 8
%98 = load i32, ptr %8, align 4
%99 = sub nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds float, ptr %97, i64 %100
store float %96, ptr %101, align 4
%102 = load ptr, ptr %3, align 8
%103 = load i32, ptr %10, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds float, ptr %102, i64 %104
%106 = load float, ptr %105, align 4
%107 = load float, ptr %18, align 4
%108 = fsub float %106, %107
%109 = load ptr, ptr %3, align 8
%110 = load i32, ptr %8, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds float, ptr %109, i64 %111
store float %108, ptr %112, align 4
%113 = load float, ptr %17, align 4
%114 = load ptr, ptr %3, align 8
%115 = load i32, ptr %10, align 4
%116 = sub nsw i32 %115, 1
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds float, ptr %114, i64 %117
%119 = load float, ptr %118, align 4
%120 = fadd float %119, %113
store float %120, ptr %118, align 4
%121 = load float, ptr %18, align 4
%122 = load ptr, ptr %3, align 8
%123 = load i32, ptr %10, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds float, ptr %122, i64 %124
%126 = load float, ptr %125, align 4
%127 = fadd float %126, %121
store float %127, ptr %125, align 4
br label %128
128: ; preds = %54
%129 = load i32, ptr %9, align 4
%130 = load i32, ptr %10, align 4
%131 = add nsw i32 %130, %129
store i32 %131, ptr %10, align 4
br label %50, !llvm.loop !6
132: ; preds = %50
%133 = load float, ptr %12, align 4
store float %133, ptr %11, align 4
%134 = load float, ptr %12, align 4
%135 = load float, ptr %13, align 4
%136 = load float, ptr %15, align 4
%137 = load float, ptr %14, align 4
%138 = fmul float %136, %137
%139 = fneg float %138
%140 = call float @llvm.fmuladd.f32(float %134, float %135, float %139)
%141 = load float, ptr %12, align 4
%142 = fadd float %141, %140
store float %142, ptr %12, align 4
%143 = load float, ptr %15, align 4
%144 = load float, ptr %13, align 4
%145 = load float, ptr %11, align 4
%146 = load float, ptr %14, align 4
%147 = fmul float %145, %146
%148 = call float @llvm.fmuladd.f32(float %143, float %144, float %147)
%149 = load float, ptr %15, align 4
%150 = fadd float %149, %148
store float %150, ptr %15, align 4
br label %151
151: ; preds = %132
%152 = load i32, ptr %7, align 4
%153 = add nsw i32 %152, 2
store i32 %153, ptr %7, align 4
br label %44, !llvm.loop !8
154: ; preds = %44
%155 = load i32, ptr %9, align 4
store i32 %155, ptr %6, align 4
br label %22, !llvm.loop !9
156: ; preds = %22
ret void
}
; Function Attrs: nounwind
declare float @sinf(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmppnpx7qxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fft_c_preswapped(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, 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
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%19 = load i64, ptr %4, align 8
%20 = shl i64 %19, 1
%21 = trunc i64 %20 to i32
store i32 %21, ptr %5, align 4
store i32 2, ptr %6, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %.lr.ph5, label %162
.lr.ph5: ; preds = %2
br label %25
25: ; preds = %.lr.ph5, %157
%26 = load i32, ptr %6, align 4
%27 = mul nsw i32 2, %26
store i32 %27, ptr %9, align 4
%28 = load float, ptr @M_PI, align 4
%29 = fmul float 2.000000e+00, %28
%30 = load i32, ptr %6, align 4
%31 = sitofp i32 %30 to float
%32 = fdiv float %29, %31
%33 = fneg float %32
store float %33, ptr %16, align 4
%34 = load float, ptr %16, align 4
%35 = fmul float 5.000000e-01, %34
%36 = call float @sinf(float noundef %35) #3
store float %36, ptr %11, align 4
%37 = load float, ptr %11, align 4
%38 = fmul float -2.000000e+00, %37
%39 = load float, ptr %11, align 4
%40 = fmul float %38, %39
store float %40, ptr %13, align 4
%41 = load float, ptr %16, align 4
%42 = call float @sinf(float noundef %41) #3
store float %42, ptr %14, align 4
store float 1.000000e+00, ptr %12, align 4
store float 0.000000e+00, ptr %15, align 4
store i32 1, ptr %7, align 4
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %.lr.ph2, label %157
.lr.ph2: ; preds = %25
br label %46
46: ; preds = %.lr.ph2, %151
%47 = load i32, ptr %7, align 4
store i32 %47, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr %5, align 4
%50 = icmp sle i32 %48, %49
br i1 %50, label %.lr.ph, label %132
.lr.ph: ; preds = %46
br label %51
51: ; preds = %.lr.ph, %125
%52 = load i32, ptr %10, align 4
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %52, %53
store i32 %54, ptr %8, align 4
%55 = load float, ptr %12, align 4
%56 = load ptr, ptr %3, align 8
%57 = load i32, ptr %8, align 4
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds float, ptr %56, i64 %59
%61 = load float, ptr %60, align 4
%62 = load float, ptr %15, align 4
%63 = load ptr, ptr %3, align 8
%64 = load i32, ptr %8, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds float, ptr %63, i64 %65
%67 = load float, ptr %66, align 4
%68 = fmul float %62, %67
%69 = fneg float %68
%70 = call float @llvm.fmuladd.f32(float %55, float %61, float %69)
store float %70, ptr %17, align 4
%71 = load float, ptr %12, align 4
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %8, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, ptr %72, i64 %74
%76 = load float, ptr %75, align 4
%77 = load float, ptr %15, align 4
%78 = load ptr, ptr %3, align 8
%79 = load i32, ptr %8, align 4
%80 = sub nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %78, i64 %81
%83 = load float, ptr %82, align 4
%84 = fmul float %77, %83
%85 = call float @llvm.fmuladd.f32(float %71, float %76, float %84)
store float %85, ptr %18, align 4
%86 = load ptr, ptr %3, align 8
%87 = load i32, ptr %10, align 4
%88 = sub nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds float, ptr %86, i64 %89
%91 = load float, ptr %90, align 4
%92 = load float, ptr %17, align 4
%93 = fsub float %91, %92
%94 = load ptr, ptr %3, align 8
%95 = load i32, ptr %8, align 4
%96 = sub nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds float, ptr %94, i64 %97
store float %93, ptr %98, align 4
%99 = load ptr, ptr %3, align 8
%100 = load i32, ptr %10, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %99, i64 %101
%103 = load float, ptr %102, align 4
%104 = load float, ptr %18, align 4
%105 = fsub float %103, %104
%106 = load ptr, ptr %3, align 8
%107 = load i32, ptr %8, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds float, ptr %106, i64 %108
store float %105, ptr %109, align 4
%110 = load float, ptr %17, align 4
%111 = load ptr, ptr %3, align 8
%112 = load i32, ptr %10, align 4
%113 = sub nsw i32 %112, 1
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds float, ptr %111, i64 %114
%116 = load float, ptr %115, align 4
%117 = fadd float %116, %110
store float %117, ptr %115, align 4
%118 = load float, ptr %18, align 4
%119 = load ptr, ptr %3, align 8
%120 = load i32, ptr %10, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds float, ptr %119, i64 %121
%123 = load float, ptr %122, align 4
%124 = fadd float %123, %118
store float %124, ptr %122, align 4
br label %125
125: ; preds = %51
%126 = load i32, ptr %9, align 4
%127 = load i32, ptr %10, align 4
%128 = add nsw i32 %127, %126
store i32 %128, ptr %10, align 4
%129 = load i32, ptr %10, align 4
%130 = load i32, ptr %5, align 4
%131 = icmp sle i32 %129, %130
br i1 %131, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %125
br label %132
132: ; preds = %._crit_edge, %46
%133 = load float, ptr %12, align 4
store float %133, ptr %11, align 4
%134 = load float, ptr %12, align 4
%135 = load float, ptr %13, align 4
%136 = load float, ptr %15, align 4
%137 = load float, ptr %14, align 4
%138 = fmul float %136, %137
%139 = fneg float %138
%140 = call float @llvm.fmuladd.f32(float %134, float %135, float %139)
%141 = load float, ptr %12, align 4
%142 = fadd float %141, %140
store float %142, ptr %12, align 4
%143 = load float, ptr %15, align 4
%144 = load float, ptr %13, align 4
%145 = load float, ptr %11, align 4
%146 = load float, ptr %14, align 4
%147 = fmul float %145, %146
%148 = call float @llvm.fmuladd.f32(float %143, float %144, float %147)
%149 = load float, ptr %15, align 4
%150 = fadd float %149, %148
store float %150, ptr %15, align 4
br label %151
151: ; preds = %132
%152 = load i32, ptr %7, align 4
%153 = add nsw i32 %152, 2
store i32 %153, ptr %7, align 4
%154 = load i32, ptr %7, align 4
%155 = load i32, ptr %6, align 4
%156 = icmp slt i32 %154, %155
br i1 %156, label %46, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %151
br label %157
157: ; preds = %._crit_edge3, %25
%158 = load i32, ptr %9, align 4
store i32 %158, ptr %6, align 4
%159 = load i32, ptr %5, align 4
%160 = load i32, ptr %6, align 4
%161 = icmp sgt i32 %159, %160
br i1 %161, label %25, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %157
br label %162
162: ; preds = %._crit_edge6, %2
ret void
}
; Function Attrs: nounwind
declare float @sinf(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpvgns5s43.c'
source_filename = "/tmp/tmpvgns5s43.c"
target datalayout = "e-m:e-p270: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 @loop_v_1() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [32768 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %17, %0
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 32768
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [32768 x i32], ptr %3, i64 0, i64 %15
store i32 %13, ptr %16, align 4
br label %17
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
br label %9, !llvm.loop !6
20: ; preds = %9
store i32 0, ptr %2, align 4
br label %21
21: ; preds = %85, %20
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %22, 32
br i1 %23, label %24, label %88
24: ; preds = %21
store i32 0, ptr %4, align 4
br label %25
25: ; preds = %81, %24
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 32
br i1 %27, label %28, label %84
28: ; preds = %25
store i32 0, ptr %5, align 4
br label %29
29: ; preds = %51, %28
%30 = load i32, ptr %5, align 4
%31 = icmp slt i32 %30, 32
br i1 %31, label %32, label %54
32: ; preds = %29
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %4, align 4
%35 = mul nsw i32 %34, 3
%36 = xor i32 %33, %35
store i32 %36, ptr %1, align 4
%37 = load i32, ptr %1, align 4
%38 = load i32, ptr %5, align 4
%39 = mul nsw i32 %37, %38
%40 = load i32, ptr %2, align 4
%41 = mul nsw i32 %40, 1024
%42 = load i32, ptr %4, align 4
%43 = mul nsw i32 %42, 32
%44 = add nsw i32 %41, %43
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %44, %45
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [32768 x i32], ptr %3, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = add nsw i32 %49, %39
store i32 %50, ptr %48, align 4
br label %51
51: ; preds = %32
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %5, align 4
br label %29, !llvm.loop !8
54: ; preds = %29
store i32 0, ptr %5, align 4
br label %55
55: ; preds = %77, %54
%56 = load i32, ptr %5, align 4
%57 = icmp slt i32 %56, 32
br i1 %57, label %58, label %80
58: ; preds = %55
%59 = load i32, ptr %2, align 4
%60 = load i32, ptr %4, align 4
%61 = mul nsw i32 %60, 5
%62 = or i32 %59, %61
store i32 %62, ptr %1, align 4
%63 = load i32, ptr %1, align 4
%64 = load i32, ptr %5, align 4
%65 = mul nsw i32 %63, %64
%66 = load i32, ptr %2, align 4
%67 = mul nsw i32 %66, 1024
%68 = load i32, ptr %4, align 4
%69 = mul nsw i32 %68, 32
%70 = add nsw i32 %67, %69
%71 = load i32, ptr %5, align 4
%72 = add nsw i32 %70, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [32768 x i32], ptr %3, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = add nsw i32 %75, %65
store i32 %76, ptr %74, align 4
br label %77
77: ; preds = %58
%78 = load i32, ptr %5, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %5, align 4
br label %55, !llvm.loop !9
80: ; preds = %55
br label %81
81: ; preds = %80
%82 = load i32, ptr %4, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %4, align 4
br label %25, !llvm.loop !10
84: ; preds = %25
br label %85
85: ; preds = %84
%86 = load i32, ptr %2, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %2, align 4
br label %21, !llvm.loop !11
88: ; preds = %21
store i32 0, ptr %2, align 4
br label %89
89: ; preds = %138, %88
%90 = load i32, ptr %2, align 4
%91 = icmp slt i32 %90, 32
br i1 %91, label %92, label %141
92: ; preds = %89
store i32 0, ptr %6, align 4
br label %93
93: ; preds = %134, %92
%94 = load i32, ptr %6, align 4
%95 = icmp slt i32 %94, 32
br i1 %95, label %96, label %137
96: ; preds = %93
store i32 0, ptr %7, align 4
br label %97
97: ; preds = %130, %96
%98 = load i32, ptr %7, align 4
%99 = icmp slt i32 %98, 32
br i1 %99, label %100, label %133
100: ; preds = %97
%101 = load i32, ptr %2, align 4
%102 = mul nsw i32 %101, 1024
%103 = load i32, ptr %6, align 4
%104 = mul nsw i32 %103, 32
%105 = add nsw i32 %102, %104
%106 = load i32, ptr %7, align 4
%107 = add nsw i32 %105, %106
store i32 %107, ptr %8, align 4
%108 = load i32, ptr %8, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [32768 x i32], ptr %3, i64 0, i64 %109
%111 = load i32, ptr %110, align 4
%112 = load i32, ptr %8, align 4
%113 = load i32, ptr %2, align 4
%114 = load i32, ptr %6, align 4
%115 = mul nsw i32 %114, 3
%116 = xor i32 %113, %115
%117 = load i32, ptr %7, align 4
%118 = mul nsw i32 %116, %117
%119 = add nsw i32 %112, %118
%120 = load i32, ptr %2, align 4
%121 = load i32, ptr %6, align 4
%122 = mul nsw i32 %121, 5
%123 = or i32 %120, %122
%124 = load i32, ptr %7, align 4
%125 = mul nsw i32 %123, %124
%126 = add nsw i32 %119, %125
%127 = icmp eq i32 %111, %126
%128 = zext i1 %127 to i32
%129 = call i32 @assert(i32 noundef %128)
br label %130
130: ; preds = %100
%131 = load i32, ptr %7, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %7, align 4
br label %97, !llvm.loop !12
133: ; preds = %97
br label %134
134: ; preds = %133
%135 = load i32, ptr %6, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %6, align 4
br label %93, !llvm.loop !13
137: ; preds = %93
br label %138
138: ; preds = %137
%139 = load i32, ptr %2, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %2, align 4
br label %89, !llvm.loop !14
141: ; preds = %89
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvgns5s43.c"
target datalayout = "e-m:e-p270: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 @loop_v_1() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [32768 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 32768
br i1 %10, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %16
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [32768 x i32], ptr %3, i64 0, i64 %14
store i32 %12, ptr %15, align 4
br label %16
16: ; preds = %11
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 32768
br i1 %20, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
store i32 0, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %22, 32
br i1 %23, label %.lr.ph11, label %93
.lr.ph11: ; preds = %21
br label %24
24: ; preds = %.lr.ph11, %88
store i32 0, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %25, 32
br i1 %26, label %.lr.ph8, label %87
.lr.ph8: ; preds = %24
br label %27
27: ; preds = %.lr.ph8, %82
store i32 0, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %28, 32
br i1 %29, label %.lr.ph2, label %54
.lr.ph2: ; preds = %27
br label %30
30: ; preds = %.lr.ph2, %49
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %4, align 4
%33 = mul nsw i32 %32, 3
%34 = xor i32 %31, %33
store i32 %34, ptr %1, align 4
%35 = load i32, ptr %1, align 4
%36 = load i32, ptr %5, align 4
%37 = mul nsw i32 %35, %36
%38 = load i32, ptr %2, align 4
%39 = mul nsw i32 %38, 1024
%40 = load i32, ptr %4, align 4
%41 = mul nsw i32 %40, 32
%42 = add nsw i32 %39, %41
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %42, %43
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [32768 x i32], ptr %3, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = add nsw i32 %47, %37
store i32 %48, ptr %46, align 4
br label %49
49: ; preds = %30
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
%52 = load i32, ptr %5, align 4
%53 = icmp slt i32 %52, 32
br i1 %53, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %54
54: ; preds = %._crit_edge3, %27
store i32 0, ptr %5, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp slt i32 %55, 32
br i1 %56, label %.lr.ph5, label %81
.lr.ph5: ; preds = %54
br label %57
57: ; preds = %.lr.ph5, %76
%58 = load i32, ptr %2, align 4
%59 = load i32, ptr %4, align 4
%60 = mul nsw i32 %59, 5
%61 = or i32 %58, %60
store i32 %61, ptr %1, align 4
%62 = load i32, ptr %1, align 4
%63 = load i32, ptr %5, align 4
%64 = mul nsw i32 %62, %63
%65 = load i32, ptr %2, align 4
%66 = mul nsw i32 %65, 1024
%67 = load i32, ptr %4, align 4
%68 = mul nsw i32 %67, 32
%69 = add nsw i32 %66, %68
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [32768 x i32], ptr %3, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = add nsw i32 %74, %64
store i32 %75, ptr %73, align 4
br label %76
76: ; preds = %57
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %5, align 4
%79 = load i32, ptr %5, align 4
%80 = icmp slt i32 %79, 32
br i1 %80, label %57, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %76
br label %81
81: ; preds = %._crit_edge6, %54
br label %82
82: ; preds = %81
%83 = load i32, ptr %4, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %4, align 4
%85 = load i32, ptr %4, align 4
%86 = icmp slt i32 %85, 32
br i1 %86, label %27, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %82
br label %87
87: ; preds = %._crit_edge9, %24
br label %88
88: ; preds = %87
%89 = load i32, ptr %2, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %2, align 4
%91 = load i32, ptr %2, align 4
%92 = icmp slt i32 %91, 32
br i1 %92, label %24, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %88
br label %93
93: ; preds = %._crit_edge12, %21
store i32 0, ptr %2, align 4
%94 = load i32, ptr %2, align 4
%95 = icmp slt i32 %94, 32
br i1 %95, label %.lr.ph20, label %149
.lr.ph20: ; preds = %93
br label %96
96: ; preds = %.lr.ph20, %144
store i32 0, ptr %6, align 4
%97 = load i32, ptr %6, align 4
%98 = icmp slt i32 %97, 32
br i1 %98, label %.lr.ph17, label %143
.lr.ph17: ; preds = %96
br label %99
99: ; preds = %.lr.ph17, %138
store i32 0, ptr %7, align 4
%100 = load i32, ptr %7, align 4
%101 = icmp slt i32 %100, 32
br i1 %101, label %.lr.ph14, label %137
.lr.ph14: ; preds = %99
br label %102
102: ; preds = %.lr.ph14, %132
%103 = load i32, ptr %2, align 4
%104 = mul nsw i32 %103, 1024
%105 = load i32, ptr %6, align 4
%106 = mul nsw i32 %105, 32
%107 = add nsw i32 %104, %106
%108 = load i32, ptr %7, align 4
%109 = add nsw i32 %107, %108
store i32 %109, ptr %8, align 4
%110 = load i32, ptr %8, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [32768 x i32], ptr %3, i64 0, i64 %111
%113 = load i32, ptr %112, align 4
%114 = load i32, ptr %8, align 4
%115 = load i32, ptr %2, align 4
%116 = load i32, ptr %6, align 4
%117 = mul nsw i32 %116, 3
%118 = xor i32 %115, %117
%119 = load i32, ptr %7, align 4
%120 = mul nsw i32 %118, %119
%121 = add nsw i32 %114, %120
%122 = load i32, ptr %2, align 4
%123 = load i32, ptr %6, align 4
%124 = mul nsw i32 %123, 5
%125 = or i32 %122, %124
%126 = load i32, ptr %7, align 4
%127 = mul nsw i32 %125, %126
%128 = add nsw i32 %121, %127
%129 = icmp eq i32 %113, %128
%130 = zext i1 %129 to i32
%131 = call i32 @assert(i32 noundef %130)
br label %132
132: ; preds = %102
%133 = load i32, ptr %7, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %7, align 4
%135 = load i32, ptr %7, align 4
%136 = icmp slt i32 %135, 32
br i1 %136, label %102, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %132
br label %137
137: ; preds = %._crit_edge15, %99
br label %138
138: ; preds = %137
%139 = load i32, ptr %6, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %6, align 4
%141 = load i32, ptr %6, align 4
%142 = icmp slt i32 %141, 32
br i1 %142, label %99, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %138
br label %143
143: ; preds = %._crit_edge18, %96
br label %144
144: ; preds = %143
%145 = load i32, ptr %2, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %2, align 4
%147 = load i32, ptr %2, align 4
%148 = icmp slt i32 %147, 32
br i1 %148, label %96, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %144
br label %149
149: ; preds = %._crit_edge21, %93
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmpbwfg6rbn.c'
source_filename = "/tmp/tmpbwfg6rbn.c"
target datalayout = "e-m:e-p270: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 [45 x i8] c"Usage: %s <address/mask> <bandwith in kbps>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(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/tmpbwfg6rbn.c"
target datalayout = "e-m:e-p270: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 [45 x i8] c"Usage: %s <address/mask> <bandwith in kbps>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(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/tmpzrofhvw2.c'
source_filename = "/tmp/tmpzrofhvw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"sorry something bad append :\\ \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzrofhvw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"sorry something bad append :\\ \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq2o0ue7b.c'
source_filename = "/tmp/tmpq2o0ue7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RTLD_LAZY = dso_local global i32 0, align 4
@RTLD_GLOBAL = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [46 x i8] c"ERROR: failed to open the shared library: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"DidInitRun\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"DidMainRun\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"FromPkg\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"PASS\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca 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 ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = load i32, ptr @RTLD_LAZY, align 4
%12 = load i32, ptr @RTLD_GLOBAL, align 4
%13 = or i32 %11, %12
%14 = call ptr @dlopen(ptr noundef %10, i32 noundef %13)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %21, label %17
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = call ptr (...) @dlerror()
%20 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %19)
store i32 2, ptr %3, align 4
br label %44
21: ; preds = %2
store i32 0, ptr %7, align 4
%22 = load ptr, ptr %6, align 8
%23 = call i32 @check_int8(ptr noundef %22, ptr noundef @.str.1, i32 noundef 1)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %21
%27 = load i32, ptr %7, align 4
store i32 %27, ptr %3, align 4
br label %44
28: ; preds = %21
%29 = load ptr, ptr %6, align 8
%30 = call i32 @check_int8(ptr noundef %29, ptr noundef @.str.2, i32 noundef 0)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %28
%34 = load i32, ptr %7, align 4
store i32 %34, ptr %3, align 4
br label %44
35: ; preds = %28
%36 = load ptr, ptr %6, align 8
%37 = call i32 @check_int32(ptr noundef %36, ptr noundef @.str.3, i32 noundef 1024)
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = load i32, ptr %7, align 4
store i32 %41, ptr %3, align 4
br label %44
42: ; preds = %35
%43 = call i32 @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %44
44: ; preds = %42, %40, %33, %26, %17
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @dlerror(...) #1
declare i32 @check_int8(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @check_int32(ptr noundef, ptr 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/tmpq2o0ue7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RTLD_LAZY = dso_local global i32 0, align 4
@RTLD_GLOBAL = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [46 x i8] c"ERROR: failed to open the shared library: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"DidInitRun\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"DidMainRun\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"FromPkg\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"PASS\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca 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 ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = load i32, ptr @RTLD_LAZY, align 4
%12 = load i32, ptr @RTLD_GLOBAL, align 4
%13 = or i32 %11, %12
%14 = call ptr @dlopen(ptr noundef %10, i32 noundef %13)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %21, label %17
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = call ptr (...) @dlerror()
%20 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %19)
store i32 2, ptr %3, align 4
br label %44
21: ; preds = %2
store i32 0, ptr %7, align 4
%22 = load ptr, ptr %6, align 8
%23 = call i32 @check_int8(ptr noundef %22, ptr noundef @.str.1, i32 noundef 1)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %21
%27 = load i32, ptr %7, align 4
store i32 %27, ptr %3, align 4
br label %44
28: ; preds = %21
%29 = load ptr, ptr %6, align 8
%30 = call i32 @check_int8(ptr noundef %29, ptr noundef @.str.2, i32 noundef 0)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %28
%34 = load i32, ptr %7, align 4
store i32 %34, ptr %3, align 4
br label %44
35: ; preds = %28
%36 = load ptr, ptr %6, align 8
%37 = call i32 @check_int32(ptr noundef %36, ptr noundef @.str.3, i32 noundef 1024)
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = load i32, ptr %7, align 4
store i32 %41, ptr %3, align 4
br label %44
42: ; preds = %35
%43 = call i32 @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %44
44: ; preds = %42, %40, %33, %26, %17
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @dlerror(...) #1
declare i32 @check_int8(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @check_int32(ptr noundef, ptr 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/tmppplvoyqp.c'
source_filename = "/tmp/tmppplvoyqp.c"
target datalayout = "e-m:e-p270: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"ERROR: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"FATAL\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @runtime_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
12: ; preds = %2
ret void
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppplvoyqp.c"
target datalayout = "e-m:e-p270: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"ERROR: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"FATAL\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @runtime_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
12: ; preds = %2
ret void
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx_1an4b1.c'
source_filename = "/tmp/tmpx_1an4b1.c"
target datalayout = "e-m:e-p270: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"ls\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"-al\00", align 1
@__const.main.argv = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr null], align 16
@.str.2 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
%3 = alloca [3 x ptr], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.argv, i64 24, i1 false)
%7 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
%8 = call i32 @readFromC(ptr noundef @.str.2, ptr noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @read(i32 noundef %9, ptr noundef %10, i32 noundef 1024)
store i32 %11, ptr %5, align 4
%12 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %12, ptr %6, align 8
%13 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @fwrite(ptr noundef %13, i32 noundef 1, i32 noundef %14, ptr noundef %15)
%17 = load i32, ptr %4, align 4
%18 = call i32 @close(i32 noundef %17)
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 @readFromC(ptr noundef, ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @close(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx_1an4b1.c"
target datalayout = "e-m:e-p270: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"ls\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"-al\00", align 1
@__const.main.argv = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr null], align 16
@.str.2 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1024 x i8], align 16
%3 = alloca [3 x ptr], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.argv, i64 24, i1 false)
%7 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
%8 = call i32 @readFromC(ptr noundef @.str.2, ptr noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @read(i32 noundef %9, ptr noundef %10, i32 noundef 1024)
store i32 %11, ptr %5, align 4
%12 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %12, ptr %6, align 8
%13 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @fwrite(ptr noundef %13, i32 noundef 1, i32 noundef %14, ptr noundef %15)
%17 = load i32, ptr %4, align 4
%18 = call i32 @close(i32 noundef %17)
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 @readFromC(ptr noundef, ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @close(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpet0d5lby.c'
source_filename = "/tmp/tmpet0d5lby.c"
target datalayout = "e-m:e-p270: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/tmpet0d5lby.c"
target datalayout = "e-m:e-p270: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/tmp5fqyn5wp.c'
source_filename = "/tmp/tmp5fqyn5wp.c"
target datalayout = "e-m:e-p270: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 [108 x i8] c"This program runs a specified program and waits for all of its decendants\0AUsage: %s program [program args]\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@PR_SET_CHILD_SUBREAPER = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"execvp\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@ECHILD = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [5 x i8] c"wait\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @printf(ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %16, ptr %3, align 4
br label %71
17: ; preds = %2
%18 = load i32, ptr @PR_SET_CHILD_SUBREAPER, align 4
%19 = call i32 @prctl(i32 noundef %18)
%20 = call i32 (...) @fork()
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = call i32 @perror(ptr noundef @.str.1)
%25 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %25, ptr %3, align 4
br label %71
26: ; preds = %17
%27 = load i32, ptr %6, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %26
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = call i32 @execvp(ptr noundef %32, ptr noundef %34)
%36 = call i32 @perror(ptr noundef @.str.2)
%37 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %37, ptr %3, align 4
br label %71
38: ; preds = %26
br label %39
39: ; preds = %38
store i32 0, ptr %7, align 4
br label %40
40: ; preds = %39, %48, %57
%41 = call i32 @wait(ptr noundef %8)
store i32 %41, ptr %6, align 4
%42 = load i32, ptr %6, align 4
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %57
44: ; preds = %40
%45 = load i64, ptr @errno, align 8
%46 = load i64, ptr @EINTR, align 8
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %49
48: ; preds = %44
br label %40
49: ; preds = %44
%50 = load i64, ptr @errno, align 8
%51 = load i64, ptr @ECHILD, align 8
%52 = icmp eq i64 %50, %51
br i1 %52, label %53, label %54
53: ; preds = %49
br label %59
54: ; preds = %49
%55 = call i32 @perror(ptr noundef @.str.3)
%56 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %56, ptr %3, align 4
br label %71
57: ; preds = %40
%58 = load i32, ptr %8, align 4
store i32 %58, ptr %7, align 4
br label %40
59: ; preds = %53
%60 = load i32, ptr %7, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %66, label %62
62: ; preds = %59
%63 = load i32, ptr %7, align 4
%64 = call i64 @WIFEXITED(i32 noundef %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %62, %59
%67 = load i32, ptr %7, align 4
%68 = call i32 @WEXITSTATUS(i32 noundef %67)
store i32 %68, ptr %3, align 4
br label %71
69: ; preds = %62
%70 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %70, ptr %3, align 4
br label %71
71: ; preds = %69, %66, %54, %29, %23, %11
%72 = load i32, ptr %3, align 4
ret i32 %72
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @prctl(i32 noundef) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(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/tmp5fqyn5wp.c"
target datalayout = "e-m:e-p270: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 [108 x i8] c"This program runs a specified program and waits for all of its decendants\0AUsage: %s program [program args]\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@PR_SET_CHILD_SUBREAPER = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"execvp\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@ECHILD = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [5 x i8] c"wait\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @printf(ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %16, ptr %3, align 4
br label %71
17: ; preds = %2
%18 = load i32, ptr @PR_SET_CHILD_SUBREAPER, align 4
%19 = call i32 @prctl(i32 noundef %18)
%20 = call i32 (...) @fork()
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = call i32 @perror(ptr noundef @.str.1)
%25 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %25, ptr %3, align 4
br label %71
26: ; preds = %17
%27 = load i32, ptr %6, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %26
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = call i32 @execvp(ptr noundef %32, ptr noundef %34)
%36 = call i32 @perror(ptr noundef @.str.2)
%37 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %37, ptr %3, align 4
br label %71
38: ; preds = %26
br label %39
39: ; preds = %38
store i32 0, ptr %7, align 4
br label %40
40: ; preds = %.backedge, %39
%41 = call i32 @wait(ptr noundef %8)
store i32 %41, ptr %6, align 4
%42 = load i32, ptr %6, align 4
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %57
44: ; preds = %40
%45 = load i64, ptr @errno, align 8
%46 = load i64, ptr @EINTR, align 8
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %49
48: ; preds = %44
br label %.backedge
.backedge: ; preds = %48, %57
br label %40
49: ; preds = %44
%50 = load i64, ptr @errno, align 8
%51 = load i64, ptr @ECHILD, align 8
%52 = icmp eq i64 %50, %51
br i1 %52, label %53, label %54
53: ; preds = %49
br label %59
54: ; preds = %49
%55 = call i32 @perror(ptr noundef @.str.3)
%56 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %56, ptr %3, align 4
br label %71
57: ; preds = %40
%58 = load i32, ptr %8, align 4
store i32 %58, ptr %7, align 4
br label %.backedge
59: ; preds = %53
%60 = load i32, ptr %7, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %66, label %62
62: ; preds = %59
%63 = load i32, ptr %7, align 4
%64 = call i64 @WIFEXITED(i32 noundef %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %62, %59
%67 = load i32, ptr %7, align 4
%68 = call i32 @WEXITSTATUS(i32 noundef %67)
store i32 %68, ptr %3, align 4
br label %71
69: ; preds = %62
%70 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %70, ptr %3, align 4
br label %71
71: ; preds = %69, %66, %54, %29, %23, %11
%72 = load i32, ptr %3, align 4
ret i32 %72
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @prctl(i32 noundef) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(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/tmpqgsyrjr3.c'
source_filename = "/tmp/tmpqgsyrjr3.c"
target datalayout = "e-m:e-p270: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 @cmd_unequipall(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @equip_inventory(ptr noundef %5, i32 noundef 0, i32 noundef 1, i32 noundef 1)
ret void
}
declare i32 @equip_inventory(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/tmpqgsyrjr3.c"
target datalayout = "e-m:e-p270: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 @cmd_unequipall(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @equip_inventory(ptr noundef %5, i32 noundef 0, i32 noundef 1, i32 noundef 1)
ret void
}
declare i32 @equip_inventory(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/tmpa80ds61w.c'
source_filename = "/tmp/tmpa80ds61w.c"
target datalayout = "e-m:e-p270: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 @testTortureExecute() #0 {
%1 = call i32 @ieq(i32 noundef 1, i32 noundef 4, i32 noundef 0)
%2 = call i32 @ieq(i32 noundef 3, i32 noundef 3, i32 noundef 1)
%3 = call i32 @ieq(i32 noundef 5, i32 noundef 2, i32 noundef 0)
%4 = call i32 @ine(i32 noundef 1, i32 noundef 4, i32 noundef 1)
%5 = call i32 @ine(i32 noundef 3, i32 noundef 3, i32 noundef 0)
%6 = call i32 @ine(i32 noundef 5, i32 noundef 2, i32 noundef 1)
%7 = call i32 @ilt(i32 noundef 1, i32 noundef 4, i32 noundef 1)
%8 = call i32 @ilt(i32 noundef 3, i32 noundef 3, i32 noundef 0)
%9 = call i32 @ilt(i32 noundef 5, i32 noundef 2, i32 noundef 0)
%10 = call i32 @ile(i32 noundef 1, i32 noundef 4, i32 noundef 1)
%11 = call i32 @ile(i32 noundef 3, i32 noundef 3, i32 noundef 1)
%12 = call i32 @ile(i32 noundef 5, i32 noundef 2, i32 noundef 0)
%13 = call i32 @igt(i32 noundef 1, i32 noundef 4, i32 noundef 0)
%14 = call i32 @igt(i32 noundef 3, i32 noundef 3, i32 noundef 0)
%15 = call i32 @igt(i32 noundef 5, i32 noundef 2, i32 noundef 1)
%16 = call i32 @ige(i32 noundef 1, i32 noundef 4, i32 noundef 0)
%17 = call i32 @ige(i32 noundef 3, i32 noundef 3, i32 noundef 1)
%18 = call i32 @ige(i32 noundef 5, i32 noundef 2, i32 noundef 1)
ret void
}
declare i32 @ieq(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ine(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ilt(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ile(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @igt(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ige(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/tmpa80ds61w.c"
target datalayout = "e-m:e-p270: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 @testTortureExecute() #0 {
%1 = call i32 @ieq(i32 noundef 1, i32 noundef 4, i32 noundef 0)
%2 = call i32 @ieq(i32 noundef 3, i32 noundef 3, i32 noundef 1)
%3 = call i32 @ieq(i32 noundef 5, i32 noundef 2, i32 noundef 0)
%4 = call i32 @ine(i32 noundef 1, i32 noundef 4, i32 noundef 1)
%5 = call i32 @ine(i32 noundef 3, i32 noundef 3, i32 noundef 0)
%6 = call i32 @ine(i32 noundef 5, i32 noundef 2, i32 noundef 1)
%7 = call i32 @ilt(i32 noundef 1, i32 noundef 4, i32 noundef 1)
%8 = call i32 @ilt(i32 noundef 3, i32 noundef 3, i32 noundef 0)
%9 = call i32 @ilt(i32 noundef 5, i32 noundef 2, i32 noundef 0)
%10 = call i32 @ile(i32 noundef 1, i32 noundef 4, i32 noundef 1)
%11 = call i32 @ile(i32 noundef 3, i32 noundef 3, i32 noundef 1)
%12 = call i32 @ile(i32 noundef 5, i32 noundef 2, i32 noundef 0)
%13 = call i32 @igt(i32 noundef 1, i32 noundef 4, i32 noundef 0)
%14 = call i32 @igt(i32 noundef 3, i32 noundef 3, i32 noundef 0)
%15 = call i32 @igt(i32 noundef 5, i32 noundef 2, i32 noundef 1)
%16 = call i32 @ige(i32 noundef 1, i32 noundef 4, i32 noundef 0)
%17 = call i32 @ige(i32 noundef 3, i32 noundef 3, i32 noundef 1)
%18 = call i32 @ige(i32 noundef 5, i32 noundef 2, i32 noundef 1)
ret void
}
declare i32 @ieq(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ine(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ilt(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ile(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @igt(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ige(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/tmposwx0g1n.c'
source_filename = "/tmp/tmposwx0g1n.c"
target datalayout = "e-m:e-p270: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 @GPIOPinTypeTimer(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @GPIODirModeSet(i32 noundef %5, i32 noundef %6, i32 noundef 2)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @GPIOPadConfigSet(i32 noundef %8, i32 noundef %9, i32 noundef 1, i32 noundef 8)
ret void
}
declare i32 @GPIODirModeSet(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @GPIOPadConfigSet(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmposwx0g1n.c"
target datalayout = "e-m:e-p270: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 @GPIOPinTypeTimer(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @GPIODirModeSet(i32 noundef %5, i32 noundef %6, i32 noundef 2)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @GPIOPadConfigSet(i32 noundef %8, i32 noundef %9, i32 noundef 1, i32 noundef 8)
ret void
}
declare i32 @GPIODirModeSet(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @GPIOPadConfigSet(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvj0lpp8s.c'
source_filename = "/tmp/tmpvj0lpp8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvj0lpp8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppdc01g8j.c'
source_filename = "/tmp/tmppdc01g8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @filter(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds %struct.dirent, ptr %5, i32 0, i32 0
%7 = load ptr, ptr %6, align 8
store ptr %7, ptr %4, align 8
br label %8
8: ; preds = %18, %1
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i8, ptr %13, align 1
%15 = call i32 @isdigit(i8 noundef signext %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %12
store i32 0, ptr %2, align 4
br label %22
18: ; preds = %12
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %4, align 8
br label %8, !llvm.loop !6
21: ; preds = %8
store i32 1, ptr %2, align 4
br label %22
22: ; preds = %21, %17
%23 = load i32, ptr %2, align 4
ret i32 %23
}
declare i32 @isdigit(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/tmppdc01g8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @filter(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds %struct.dirent, ptr %5, i32 0, i32 0
%7 = load ptr, ptr %6, align 8
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %17
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = call i32 @isdigit(i8 noundef signext %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %11
store i32 0, ptr %2, align 4
br label %24
17: ; preds = %11
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %1
store i32 1, ptr %2, align 4
br label %24
24: ; preds = %23, %16
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i32 @isdigit(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/tmpf9efz3uh.c'
source_filename = "/tmp/tmpf9efz3uh.c"
target datalayout = "e-m:e-p270: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"NEWKEYS\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"kjhl\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_keys() #0 {
%1 = alloca ptr, align 8
store ptr null, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = icmp ne ptr %2, null
br i1 %3, label %14, label %4
4: ; preds = %0
%5 = call i64 @getenv(ptr noundef @.str)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %1, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i64 @malloc(i32 noundef 5)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %1, align 8
%11 = load ptr, ptr %1, align 8
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str.1)
br label %13
13: ; preds = %8, %4
br label %14
14: ; preds = %13, %0
%15 = load ptr, ptr %1, align 8
ret ptr %15
}
declare i64 @getenv(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf9efz3uh.c"
target datalayout = "e-m:e-p270: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"NEWKEYS\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"kjhl\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_keys() #0 {
%1 = alloca ptr, align 8
store ptr null, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = icmp ne ptr %2, null
br i1 %3, label %14, label %4
4: ; preds = %0
%5 = call i64 @getenv(ptr noundef @.str)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %1, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i64 @malloc(i32 noundef 5)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %1, align 8
%11 = load ptr, ptr %1, align 8
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str.1)
br label %13
13: ; preds = %8, %4
br label %14
14: ; preds = %13, %0
%15 = load ptr, ptr %1, align 8
ret ptr %15
}
declare i64 @getenv(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqwn8bkcg.c'
source_filename = "/tmp/tmpqwn8bkcg.c"
target datalayout = "e-m:e-p270: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 @queue_destroy(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 @array_destroy(ptr noundef %3)
ret i32 %4
}
declare i32 @array_destroy(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/tmpqwn8bkcg.c"
target datalayout = "e-m:e-p270: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 @queue_destroy(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 @array_destroy(ptr noundef %3)
ret i32 %4
}
declare i32 @array_destroy(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/tmpmf7i89ti.c'
source_filename = "/tmp/tmpmf7i89ti.c"
target datalayout = "e-m:e-p270: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\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [20 x i32], align 16
%13 = alloca [20 x i32], align 16
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 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 80, i1 false)
%14 = call i32 @time(ptr noundef null)
%15 = call i32 @srand(i32 noundef %14)
store i32 0, ptr %6, align 4
br label %16
16: ; preds = %26, %2
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 20
br i1 %18, label %19, label %29
19: ; preds = %16
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 20
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %24
store i32 %22, ptr %25, align 4
br label %26
26: ; preds = %19
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
br label %16, !llvm.loop !6
29: ; preds = %16
store i32 0, ptr %6, align 4
br label %30
30: ; preds = %70, %29
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 20
br i1 %32, label %33, label %73
33: ; preds = %30
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
store i32 %37, ptr %11, align 4
%38 = load i32, ptr %6, align 4
store i32 %38, ptr %7, align 4
br label %39
39: ; preds = %53, %33
%40 = load i32, ptr %7, align 4
%41 = icmp slt i32 %40, 20
br i1 %41, label %42, label %56
42: ; preds = %39
%43 = load i32, ptr %11, align 4
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp eq i32 %43, %47
br i1 %48, label %49, label %52
49: ; preds = %42
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
br label %52
52: ; preds = %49, %42
br label %53
53: ; preds = %52
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %7, align 4
br label %39, !llvm.loop !8
56: ; preds = %39
%57 = load i32, ptr %9, align 4
%58 = icmp eq i32 %57, 1
br i1 %58, label %59, label %69
59: ; preds = %56
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = load i32, ptr %8, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [20 x i32], ptr %12, i64 0, i64 %65
store i32 %63, ptr %66, align 4
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
br label %69
69: ; preds = %59, %56
store i32 0, ptr %9, align 4
br label %70
70: ; preds = %69
%71 = load i32, ptr %6, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %6, align 4
br label %30, !llvm.loop !9
73: ; preds = %30
store i32 0, ptr %6, align 4
br label %74
74: ; preds = %90, %73
%75 = load i32, ptr %6, align 4
%76 = icmp slt i32 %75, 20
br i1 %76, label %77, label %93
77: ; preds = %74
%78 = load i32, ptr %6, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %79
%81 = load i32, ptr %80, align 4
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %81)
%83 = load i32, ptr %6, align 4
%84 = add nsw i32 %83, 1
%85 = srem i32 %84, 5
%86 = icmp ne i32 %85, 0
br i1 %86, label %89, label %87
87: ; preds = %77
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %89
89: ; preds = %87, %77
br label %90
90: ; preds = %89
%91 = load i32, ptr %6, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %6, align 4
br label %74, !llvm.loop !10
93: ; preds = %74
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %95
95: ; preds = %118, %93
%96 = load i32, ptr %6, align 4
%97 = icmp slt i32 %96, 20
br i1 %97, label %98, label %121
98: ; preds = %95
%99 = load i32, ptr %6, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [20 x i32], ptr %12, i64 0, i64 %100
%102 = load i32, ptr %101, align 4
%103 = icmp eq i32 0, %102
br i1 %103, label %104, label %105
104: ; preds = %98
br label %121
105: ; preds = %98
%106 = load i32, ptr %6, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [20 x i32], ptr %12, i64 0, i64 %107
%109 = load i32, ptr %108, align 4
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %109)
%111 = load i32, ptr %6, align 4
%112 = add nsw i32 %111, 1
%113 = srem i32 %112, 5
%114 = icmp ne i32 %113, 0
br i1 %114, label %117, label %115
115: ; preds = %105
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %117
117: ; preds = %115, %105
br label %118
118: ; preds = %117
%119 = load i32, ptr %6, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %6, align 4
br label %95, !llvm.loop !11
121: ; preds = %104, %95
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @srand(i32 noundef) #2
declare i32 @time(ptr noundef) #2
declare i32 @rand(...) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmf7i89ti.c"
target datalayout = "e-m:e-p270: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\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [20 x i32], align 16
%13 = alloca [20 x i32], align 16
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 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 80, i1 false)
%14 = call i32 @time(ptr noundef null)
%15 = call i32 @srand(i32 noundef %14)
store i32 0, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 20
br i1 %17, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %25
%19 = call i32 (...) @rand()
%20 = srem i32 %19, 20
%21 = add nsw i32 %20, 1
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %23
store i32 %21, ptr %24, align 4
br label %25
25: ; preds = %18
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %28, 20
br i1 %29, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %2
store i32 0, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 20
br i1 %32, label %.lr.ph5, label %76
.lr.ph5: ; preds = %30
br label %33
33: ; preds = %.lr.ph5, %71
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
store i32 %37, ptr %11, align 4
%38 = load i32, ptr %6, align 4
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %39, 20
br i1 %40, label %.lr.ph2, label %57
.lr.ph2: ; preds = %33
br label %41
41: ; preds = %.lr.ph2, %52
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = icmp eq i32 %42, %46
br i1 %47, label %48, label %51
48: ; preds = %41
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %9, align 4
br label %51
51: ; preds = %48, %41
br label %52
52: ; preds = %51
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
%55 = load i32, ptr %7, align 4
%56 = icmp slt i32 %55, 20
br i1 %56, label %41, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %57
57: ; preds = %._crit_edge3, %33
%58 = load i32, ptr %9, align 4
%59 = icmp eq i32 %58, 1
br i1 %59, label %60, label %70
60: ; preds = %57
%61 = load i32, ptr %6, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = load i32, ptr %8, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [20 x i32], ptr %12, i64 0, i64 %66
store i32 %64, ptr %67, align 4
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %8, align 4
br label %70
70: ; preds = %60, %57
store i32 0, ptr %9, align 4
br label %71
71: ; preds = %70
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %6, align 4
%74 = load i32, ptr %6, align 4
%75 = icmp slt i32 %74, 20
br i1 %75, label %33, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %71
br label %76
76: ; preds = %._crit_edge6, %30
store i32 0, ptr %6, align 4
%77 = load i32, ptr %6, align 4
%78 = icmp slt i32 %77, 20
br i1 %78, label %.lr.ph8, label %97
.lr.ph8: ; preds = %76
br label %79
79: ; preds = %.lr.ph8, %92
%80 = load i32, ptr %6, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [20 x i32], ptr %13, i64 0, i64 %81
%83 = load i32, ptr %82, align 4
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %83)
%85 = load i32, ptr %6, align 4
%86 = add nsw i32 %85, 1
%87 = srem i32 %86, 5
%88 = icmp ne i32 %87, 0
br i1 %88, label %91, label %89
89: ; preds = %79
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %91
91: ; preds = %89, %79
br label %92
92: ; preds = %91
%93 = load i32, ptr %6, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %6, align 4
%95 = load i32, ptr %6, align 4
%96 = icmp slt i32 %95, 20
br i1 %96, label %79, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %92
br label %97
97: ; preds = %._crit_edge9, %76
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
%99 = load i32, ptr %6, align 4
%100 = icmp slt i32 %99, 20
br i1 %100, label %.lr.ph11, label %.loopexit
.lr.ph11: ; preds = %97
br label %101
101: ; preds = %.lr.ph11, %121
%102 = load i32, ptr %6, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [20 x i32], ptr %12, i64 0, i64 %103
%105 = load i32, ptr %104, align 4
%106 = icmp eq i32 0, %105
br i1 %106, label %107, label %108
107: ; preds = %101
br label %126
108: ; preds = %101
%109 = load i32, ptr %6, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [20 x i32], ptr %12, i64 0, i64 %110
%112 = load i32, ptr %111, align 4
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %112)
%114 = load i32, ptr %6, align 4
%115 = add nsw i32 %114, 1
%116 = srem i32 %115, 5
%117 = icmp ne i32 %116, 0
br i1 %117, label %120, label %118
118: ; preds = %108
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %120
120: ; preds = %118, %108
br label %121
121: ; preds = %120
%122 = load i32, ptr %6, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %6, align 4
%124 = load i32, ptr %6, align 4
%125 = icmp slt i32 %124, 20
br i1 %125, label %101, label %..loopexit_crit_edge, !llvm.loop !11
..loopexit_crit_edge: ; preds = %121
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %97
br label %126
126: ; preds = %.loopexit, %107
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @srand(i32 noundef) #2
declare i32 @time(ptr noundef) #2
declare i32 @rand(...) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp7cwavsdn.c'
source_filename = "/tmp/tmp7cwavsdn.c"
target datalayout = "e-m:e-p270: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 [50 x i8] c"cat %s %s %s | html_table.e '^^Bad Records' '' ''\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_bad_records(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1024 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @sprintf(ptr noundef %8, ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11)
%13 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%14 = call i64 @system(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %3
br label %17
17: ; preds = %16, %3
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7cwavsdn.c"
target datalayout = "e-m:e-p270: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 [50 x i8] c"cat %s %s %s | html_table.e '^^Bad Records' '' ''\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_bad_records(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1024 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @sprintf(ptr noundef %8, ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11)
%13 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%14 = call i64 @system(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %3
br label %17
17: ; preds = %16, %3
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgxt3euk4.c'
source_filename = "/tmp/tmpgxt3euk4.c"
target datalayout = "e-m:e-p270: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"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"dsumors\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 1000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgxt3euk4.c"
target datalayout = "e-m:e-p270: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"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"dsumors\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 1000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpd08pa7_b.c'
source_filename = "/tmp/tmpd08pa7_b.c"
target datalayout = "e-m:e-p270: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.list = private unnamed_addr constant [10 x i32] [i32 26, i32 5, i32 37, i32 1, i32 61, i32 67, i32 59, i32 15, i32 48, i32 39], align 16
@.str = private unnamed_addr constant [4 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 [10 x i32], align 16
%3 = alloca i32, align 4
%4 = 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.list, i64 40, i1 false)
store i32 10, ptr %3, align 4
%5 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%6 = load i32, ptr %3, align 4
%7 = sub nsw i32 %6, 1
%8 = call i32 @quick_sort(ptr noundef %5, i32 noundef 0, i32 noundef %7)
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %19, %0
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %13
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
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 @quick_sort(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd08pa7_b.c"
target datalayout = "e-m:e-p270: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.list = private unnamed_addr constant [10 x i32] [i32 26, i32 5, i32 37, i32 1, i32 61, i32 67, i32 59, i32 15, i32 48, i32 39], align 16
@.str = private unnamed_addr constant [4 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 [10 x i32], align 16
%3 = alloca i32, align 4
%4 = 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.list, i64 40, i1 false)
store i32 10, ptr %3, align 4
%5 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%6 = load i32, ptr %3, align 4
%7 = sub nsw i32 %6, 1
%8 = call i32 @quick_sort(ptr noundef %5, i32 noundef 0, i32 noundef %7)
store i32 0, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %18
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
br label %18
18: ; preds = %12
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %0
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 @quick_sort(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgne78s6w.c'
source_filename = "/tmp/tmpgne78s6w.c"
target datalayout = "e-m:e-p270: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 @PEM_read_ECPrivateKey(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call ptr @PEM_read_PrivateKey(ptr noundef %10, ptr noundef null, ptr noundef %11, ptr noundef %12)
store ptr %13, ptr %9, align 8
%14 = load ptr, ptr %9, align 8
%15 = load ptr, ptr %6, align 8
%16 = call ptr @pkey_get_eckey(ptr noundef %14, ptr noundef %15)
ret ptr %16
}
declare ptr @PEM_read_PrivateKey(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @pkey_get_eckey(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/tmpgne78s6w.c"
target datalayout = "e-m:e-p270: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 @PEM_read_ECPrivateKey(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call ptr @PEM_read_PrivateKey(ptr noundef %10, ptr noundef null, ptr noundef %11, ptr noundef %12)
store ptr %13, ptr %9, align 8
%14 = load ptr, ptr %9, align 8
%15 = load ptr, ptr %6, align 8
%16 = call ptr @pkey_get_eckey(ptr noundef %14, ptr noundef %15)
ret ptr %16
}
declare ptr @PEM_read_PrivateKey(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @pkey_get_eckey(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/tmpe2td7hvt.c'
source_filename = "/tmp/tmpe2td7hvt.c"
target datalayout = "e-m:e-p270: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 @StrMakeUpper(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %20, %1
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp slt i32 %5, %7
br i1 %8, label %9, label %23
9: ; preds = %4
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = call signext i8 @toupper(i8 noundef signext %14)
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 %15, ptr %19, align 1
br label %20
20: ; preds = %9
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %4, !llvm.loop !6
23: ; preds = %4
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare i32 @strlen(ptr noundef) #1
declare signext i8 @toupper(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/tmpe2td7hvt.c"
target datalayout = "e-m:e-p270: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 @StrMakeUpper(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = icmp slt i32 %4, %6
br i1 %7, label %.lr.ph, label %26
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %19
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = call signext i8 @toupper(i8 noundef signext %13)
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
store i8 %14, ptr %18, align 1
br label %19
19: ; preds = %8
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = load ptr, ptr %2, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = icmp slt i32 %22, %24
br i1 %25, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %26
26: ; preds = %._crit_edge, %1
%27 = load ptr, ptr %2, align 8
ret ptr %27
}
declare i32 @strlen(ptr noundef) #1
declare signext i8 @toupper(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/tmp8v3bblxs.c'
source_filename = "/tmp/tmp8v3bblxs.c"
target datalayout = "e-m:e-p270: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" %c \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"----\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %60, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %63
12: ; preds = %8
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %40, %12
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %23
17: ; preds = %13
%18 = load i32, ptr %6, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = call i64 @putchar(i8 noundef signext 124)
%22 = icmp ne i64 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %20, %13
%24 = call i64 @putchar(i8 noundef signext 10)
%25 = icmp ne i64 %24, 0
br label %26
26: ; preds = %23, %20, %17
%27 = phi i1 [ true, %20 ], [ true, %17 ], [ %25, %23 ]
br i1 %27, label %28, label %43
28: ; preds = %26
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %3, align 4
%32 = mul nsw i32 %30, %31
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %32, %33
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %29, i64 %35
%37 = load i32, ptr %36, align 4
%38 = call i32 @val(i32 noundef %37)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %38)
br label %40
40: ; preds = %28
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
br label %13, !llvm.loop !6
43: ; preds = %26
store i32 0, ptr %7, align 4
br label %44
44: ; preds = %56, %43
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %3, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %52, label %48
48: ; preds = %44
%49 = call i64 @putchar(i8 noundef signext 10)
%50 = icmp ne i64 %49, 0
%51 = xor i1 %50, true
br label %52
52: ; preds = %48, %44
%53 = phi i1 [ true, %44 ], [ %51, %48 ]
br i1 %53, label %54, label %59
54: ; preds = %52
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %56
56: ; preds = %54
%57 = load i32, ptr %7, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %7, align 4
br label %44, !llvm.loop !8
59: ; preds = %52
br label %60
60: ; preds = %59
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
br label %8, !llvm.loop !9
63: ; preds = %8
ret void
}
declare i64 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @val(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8v3bblxs.c"
target datalayout = "e-m:e-p270: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" %c \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"----\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %65
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %59
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %39, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %22
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %16
%20 = call i64 @putchar(i8 noundef signext 124)
%21 = icmp ne i64 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %19, %12
%23 = call i64 @putchar(i8 noundef signext 10)
%24 = icmp ne i64 %23, 0
br label %25
25: ; preds = %22, %19, %16
%26 = phi i1 [ true, %19 ], [ true, %16 ], [ %24, %22 ]
br i1 %26, label %27, label %42
27: ; preds = %25
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %3, align 4
%31 = mul nsw i32 %29, %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %31, %32
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %28, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 @val(i32 noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %37)
br label %39
39: ; preds = %27
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %6, align 4
br label %12, !llvm.loop !6
42: ; preds = %25
store i32 0, ptr %7, align 4
br label %43
43: ; preds = %55, %42
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %3, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %51, label %47
47: ; preds = %43
%48 = call i64 @putchar(i8 noundef signext 10)
%49 = icmp ne i64 %48, 0
%50 = xor i1 %49, true
br label %51
51: ; preds = %47, %43
%52 = phi i1 [ true, %43 ], [ %50, %47 ]
br i1 %52, label %53, label %58
53: ; preds = %51
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %55
55: ; preds = %53
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
br label %43, !llvm.loop !8
58: ; preds = %51
br label %59
59: ; preds = %58
%60 = load i32, ptr %5, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %5, align 4
%62 = load i32, ptr %5, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %11, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %59
br label %65
65: ; preds = %._crit_edge, %2
ret void
}
declare i64 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @val(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpv5eozhod.c'
source_filename = "/tmp/tmpv5eozhod.c"
target datalayout = "e-m:e-p270: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 [344 x i8] c"usage: go tool dist [command]\0ACommands are:\0A\0Abanner print installation banner\0Abootstrap rebuild everything\0Aclean deletes all built files\0Aenv [-p] print environment (-p: include $PATH)\0Ainstall [dir] install individual directory\0Aversion print Go version\0A\0AAll commands take -v flags to emit extra information.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @xprintf(ptr noundef @.str)
%2 = call i32 @xexit(i32 noundef 2)
ret void
}
declare i32 @xprintf(ptr noundef) #1
declare i32 @xexit(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/tmpv5eozhod.c"
target datalayout = "e-m:e-p270: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 [344 x i8] c"usage: go tool dist [command]\0ACommands are:\0A\0Abanner print installation banner\0Abootstrap rebuild everything\0Aclean deletes all built files\0Aenv [-p] print environment (-p: include $PATH)\0Ainstall [dir] install individual directory\0Aversion print Go version\0A\0AAll commands take -v flags to emit extra information.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @xprintf(ptr noundef @.str)
%2 = call i32 @xexit(i32 noundef 2)
ret void
}
declare i32 @xprintf(ptr noundef) #1
declare i32 @xexit(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/tmpzb8ry1kl.c'
source_filename = "/tmp/tmpzb8ry1kl.c"
target datalayout = "e-m:e-p270: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"%s%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [31 x i8] c"change_dir: No such directory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @change_dir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1024 x i8], align 16
%6 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %4, align 4
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 126
br i1 %13, label %14, label %38
14: ; preds = %1
store i32 1, ptr %3, align 4
br label %15
15: ; preds = %30, %14
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %33
20: ; preds = %15
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = load i32, ptr %3, align 4
%27 = sub nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %28
store i8 %25, ptr %29, align 1
br label %30
30: ; preds = %20
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %15, !llvm.loop !6
33: ; preds = %15
%34 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%35 = call ptr @getenv(ptr noundef @.str.1)
%36 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%37 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %34, ptr noundef @.str, ptr noundef %35, ptr noundef %36)
br label %42
38: ; preds = %1
%39 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%40 = load ptr, ptr %2, align 8
%41 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %39, ptr noundef @.str.2, ptr noundef %40)
br label %42
42: ; preds = %38, %33
%43 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%44 = call i32 @chdir(ptr noundef %43)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i32, ptr @stderr, align 4
%48 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.3)
br label %49
49: ; preds = %46, %42
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @getenv(ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzb8ry1kl.c"
target datalayout = "e-m:e-p270: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"%s%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [31 x i8] c"change_dir: No such directory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @change_dir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1024 x i8], align 16
%6 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %4, align 4
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 126
br i1 %13, label %14, label %41
14: ; preds = %1
store i32 1, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
%18 = icmp slt i32 %15, %17
br i1 %18, label %.lr.ph, label %36
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %29
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = load i32, ptr %3, align 4
%26 = sub nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %27
store i8 %24, ptr %28, align 1
br label %29
29: ; preds = %19
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
%35 = icmp slt i32 %32, %34
br i1 %35, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %36
36: ; preds = %._crit_edge, %14
%37 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%38 = call ptr @getenv(ptr noundef @.str.1)
%39 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%40 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %37, ptr noundef @.str, ptr noundef %38, ptr noundef %39)
br label %45
41: ; preds = %1
%42 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%43 = load ptr, ptr %2, align 8
%44 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %42, ptr noundef @.str.2, ptr noundef %43)
br label %45
45: ; preds = %41, %36
%46 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%47 = call i32 @chdir(ptr noundef %46)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = load i32, ptr @stderr, align 4
%51 = call i32 @fprintf(i32 noundef %50, ptr noundef @.str.3)
br label %52
52: ; preds = %49, %45
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @getenv(ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphhw8xqhl.c'
source_filename = "/tmp/tmphhw8xqhl.c"
target datalayout = "e-m:e-p270: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 @serial_cfg_modem(i16 noundef zeroext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = zext i16 %3 to i32
%5 = add nsw i32 %4, 4
%6 = trunc i32 %5 to i16
%7 = call i32 @outb(i16 noundef zeroext %6, i32 noundef 3)
ret void
}
declare i32 @outb(i16 noundef zeroext, 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/tmphhw8xqhl.c"
target datalayout = "e-m:e-p270: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 @serial_cfg_modem(i16 noundef zeroext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = zext i16 %3 to i32
%5 = add nsw i32 %4, 4
%6 = trunc i32 %5 to i16
%7 = call i32 @outb(i16 noundef zeroext %6, i32 noundef 3)
ret void
}
declare i32 @outb(i16 noundef zeroext, 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/tmpn43aiuz1.c'
source_filename = "/tmp/tmpn43aiuz1.c"
target datalayout = "e-m:e-p270: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/tmpn43aiuz1.c"
target datalayout = "e-m:e-p270: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/tmprpgvhlq5.c'
source_filename = "/tmp/tmprpgvhlq5.c"
target datalayout = "e-m:e-p270: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/tmprpgvhlq5.c"
target datalayout = "e-m:e-p270: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/tmpyhda7f1e.c'
source_filename = "/tmp/tmpyhda7f1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pollfd = type { i32, i32 }
@.str = private unnamed_addr constant [23 x i8] c"/sys/class/gpio/export\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"3\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"/sys/class/gpio/gpio3/edge\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"both\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"/sys/class/gpio/gpio3/value\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@POLLPRI = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [14 x i8] c"/usr/bin/sudo\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"sudo\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"shutdown\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"-h\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"now\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 [2 x i8], align 1
%5 = alloca [1 x %struct.pollfd], align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%6 = load i32, ptr @O_WRONLY, align 4
%7 = call i32 @open(ptr noundef @.str, i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %15
10: ; preds = %0
%11 = load i32, ptr @stderr, align 4
%12 = load i32, ptr %2, align 4
%13 = call ptr @strerror(i32 noundef %12)
%14 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1, ptr noundef %13)
store i32 1, ptr %1, align 4
br label %150
15: ; preds = %0
%16 = load i32, ptr %2, align 4
%17 = call i32 @write(i32 noundef %16, ptr noundef @.str.2, i32 noundef 1)
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = call i32 @close(i32 noundef %18)
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %27
22: ; preds = %15
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr %3, align 4
%25 = call ptr @strerror(i32 noundef %24)
%26 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %25)
store i32 1, ptr %1, align 4
br label %150
27: ; preds = %15
%28 = call i32 @usleep(i32 noundef 100000)
%29 = load i32, ptr @O_WRONLY, align 4
%30 = call i32 @open(ptr noundef @.str.3, i32 noundef %29)
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %38
33: ; preds = %27
%34 = load i32, ptr @stderr, align 4
%35 = load i32, ptr %2, align 4
%36 = call ptr @strerror(i32 noundef %35)
%37 = call i32 @fprintf(i32 noundef %34, ptr noundef @.str.1, ptr noundef %36)
store i32 1, ptr %1, align 4
br label %150
38: ; preds = %27
%39 = load i32, ptr %2, align 4
%40 = call i32 @write(i32 noundef %39, ptr noundef @.str.4, i32 noundef 4)
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %2, align 4
%42 = call i32 @close(i32 noundef %41)
%43 = load i32, ptr %3, align 4
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %50
45: ; preds = %38
%46 = load i32, ptr @stderr, align 4
%47 = load i32, ptr %3, align 4
%48 = call ptr @strerror(i32 noundef %47)
%49 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.1, ptr noundef %48)
store i32 1, ptr %1, align 4
br label %150
50: ; preds = %38
%51 = load i32, ptr @O_RDONLY, align 4
%52 = call i32 @open(ptr noundef @.str.5, i32 noundef %51)
store i32 %52, ptr %2, align 4
%53 = load i32, ptr %2, align 4
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %60
55: ; preds = %50
%56 = load i32, ptr @stderr, align 4
%57 = load i32, ptr %2, align 4
%58 = call ptr @strerror(i32 noundef %57)
%59 = call i32 @fprintf(i32 noundef %56, ptr noundef @.str.1, ptr noundef %58)
store i32 1, ptr %1, align 4
br label %150
60: ; preds = %50
%61 = load i32, ptr %2, align 4
%62 = call i32 @read(i32 noundef %61, ptr noundef %4, i32 noundef 2)
store i32 %62, ptr %3, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %70
65: ; preds = %60
%66 = load i32, ptr @stderr, align 4
%67 = load i32, ptr %3, align 4
%68 = call ptr @strerror(i32 noundef %67)
%69 = call i32 @fprintf(i32 noundef %66, ptr noundef @.str.1, ptr noundef %68)
store i32 1, ptr %1, align 4
br label %150
70: ; preds = %60
%71 = load i32, ptr %2, align 4
%72 = load i32, ptr @SEEK_SET, align 4
%73 = call i32 @lseek(i32 noundef %71, i32 noundef 0, i32 noundef %72)
%74 = load i32, ptr %3, align 4
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %81
76: ; preds = %70
%77 = load i32, ptr @stderr, align 4
%78 = load i32, ptr %3, align 4
%79 = call ptr @strerror(i32 noundef %78)
%80 = call i32 @fprintf(i32 noundef %77, ptr noundef @.str.1, ptr noundef %79)
store i32 1, ptr %1, align 4
br label %150
81: ; preds = %70
%82 = call i32 @daemon(i32 noundef 1, i32 noundef 0)
store i32 %82, ptr %3, align 4
%83 = load i32, ptr %3, align 4
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = load i32, ptr @stderr, align 4
%87 = load i32, ptr %3, align 4
%88 = call ptr @strerror(i32 noundef %87)
%89 = call i32 @fprintf(i32 noundef %86, ptr noundef @.str.1, ptr noundef %88)
store i32 1, ptr %1, align 4
br label %150
90: ; preds = %81
%91 = load i32, ptr %2, align 4
%92 = icmp eq i32 %91, -1
br i1 %92, label %93, label %94
93: ; preds = %90
store i32 0, ptr %1, align 4
br label %150
94: ; preds = %90
%95 = getelementptr inbounds [1 x %struct.pollfd], ptr %5, i64 0, i64 0
%96 = call i32 @memset(ptr noundef %95, i32 noundef 0, i32 noundef 8)
%97 = load i32, ptr @POLLPRI, align 4
%98 = getelementptr inbounds [1 x %struct.pollfd], ptr %5, i64 0, i64 0
%99 = getelementptr inbounds %struct.pollfd, ptr %98, i32 0, i32 1
store i32 %97, ptr %99, align 4
%100 = load i32, ptr %2, align 4
%101 = getelementptr inbounds [1 x %struct.pollfd], ptr %5, i64 0, i64 0
%102 = getelementptr inbounds %struct.pollfd, ptr %101, i32 0, i32 0
store i32 %100, ptr %102, align 4
br label %103
103: ; preds = %94, %149
%104 = getelementptr inbounds [1 x %struct.pollfd], ptr %5, i64 0, i64 0
%105 = call i32 @poll(ptr noundef %104, i32 noundef 1, i32 noundef -1)
store i32 %105, ptr %3, align 4
%106 = load i32, ptr %3, align 4
%107 = icmp eq i32 %106, -1
br i1 %107, label %108, label %113
108: ; preds = %103
%109 = load i32, ptr @stderr, align 4
%110 = load i32, ptr %3, align 4
%111 = call ptr @strerror(i32 noundef %110)
%112 = call i32 @fprintf(i32 noundef %109, ptr noundef @.str.1, ptr noundef %111)
store i32 1, ptr %1, align 4
br label %150
113: ; preds = %103
%114 = load i32, ptr %2, align 4
%115 = call i32 @read(i32 noundef %114, ptr noundef %4, i32 noundef 2)
store i32 %115, ptr %3, align 4
%116 = load i32, ptr %3, align 4
%117 = icmp eq i32 %116, -1
br i1 %117, label %118, label %123
118: ; preds = %113
%119 = load i32, ptr @stderr, align 4
%120 = load i32, ptr %3, align 4
%121 = call ptr @strerror(i32 noundef %120)
%122 = call i32 @fprintf(i32 noundef %119, ptr noundef @.str.1, ptr noundef %121)
store i32 1, ptr %1, align 4
br label %150
123: ; preds = %113
%124 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 48
br i1 %127, label %128, label %138
128: ; preds = %123
%129 = call i32 @execl(ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef null)
store i32 %129, ptr %3, align 4
%130 = load i32, ptr %3, align 4
%131 = icmp eq i32 %130, -1
br i1 %131, label %132, label %137
132: ; preds = %128
%133 = load i32, ptr @stderr, align 4
%134 = load i32, ptr %3, align 4
%135 = call ptr @strerror(i32 noundef %134)
%136 = call i32 @fprintf(i32 noundef %133, ptr noundef @.str.1, ptr noundef %135)
store i32 1, ptr %1, align 4
br label %150
137: ; preds = %128
br label %138
138: ; preds = %137, %123
%139 = load i32, ptr %2, align 4
%140 = load i32, ptr @SEEK_SET, align 4
%141 = call i32 @lseek(i32 noundef %139, i32 noundef 0, i32 noundef %140)
store i32 %141, ptr %3, align 4
%142 = load i32, ptr %3, align 4
%143 = icmp eq i32 %142, -1
br i1 %143, label %144, label %149
144: ; preds = %138
%145 = load i32, ptr @stderr, align 4
%146 = load i32, ptr %3, align 4
%147 = call ptr @strerror(i32 noundef %146)
%148 = call i32 @fprintf(i32 noundef %145, ptr noundef @.str.1, ptr noundef %147)
store i32 1, ptr %1, align 4
br label %150
149: ; preds = %138
br label %103
150: ; preds = %144, %132, %118, %108, %93, %85, %76, %65, %55, %45, %33, %22, %10
%151 = load i32, ptr %1, align 4
ret i32 %151
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @daemon(i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr 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/tmpyhda7f1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pollfd = type { i32, i32 }
@.str = private unnamed_addr constant [23 x i8] c"/sys/class/gpio/export\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"3\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"/sys/class/gpio/gpio3/edge\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"both\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"/sys/class/gpio/gpio3/value\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@POLLPRI = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [14 x i8] c"/usr/bin/sudo\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"sudo\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"shutdown\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"-h\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"now\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 [2 x i8], align 1
%5 = alloca [1 x %struct.pollfd], align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%6 = load i32, ptr @O_WRONLY, align 4
%7 = call i32 @open(ptr noundef @.str, i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %15
10: ; preds = %0
%11 = load i32, ptr @stderr, align 4
%12 = load i32, ptr %2, align 4
%13 = call ptr @strerror(i32 noundef %12)
%14 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1, ptr noundef %13)
store i32 1, ptr %1, align 4
br label %152
15: ; preds = %0
%16 = load i32, ptr %2, align 4
%17 = call i32 @write(i32 noundef %16, ptr noundef @.str.2, i32 noundef 1)
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = call i32 @close(i32 noundef %18)
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %27
22: ; preds = %15
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr %3, align 4
%25 = call ptr @strerror(i32 noundef %24)
%26 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %25)
store i32 1, ptr %1, align 4
br label %152
27: ; preds = %15
%28 = call i32 @usleep(i32 noundef 100000)
%29 = load i32, ptr @O_WRONLY, align 4
%30 = call i32 @open(ptr noundef @.str.3, i32 noundef %29)
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %38
33: ; preds = %27
%34 = load i32, ptr @stderr, align 4
%35 = load i32, ptr %2, align 4
%36 = call ptr @strerror(i32 noundef %35)
%37 = call i32 @fprintf(i32 noundef %34, ptr noundef @.str.1, ptr noundef %36)
store i32 1, ptr %1, align 4
br label %152
38: ; preds = %27
%39 = load i32, ptr %2, align 4
%40 = call i32 @write(i32 noundef %39, ptr noundef @.str.4, i32 noundef 4)
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %2, align 4
%42 = call i32 @close(i32 noundef %41)
%43 = load i32, ptr %3, align 4
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %50
45: ; preds = %38
%46 = load i32, ptr @stderr, align 4
%47 = load i32, ptr %3, align 4
%48 = call ptr @strerror(i32 noundef %47)
%49 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.1, ptr noundef %48)
store i32 1, ptr %1, align 4
br label %152
50: ; preds = %38
%51 = load i32, ptr @O_RDONLY, align 4
%52 = call i32 @open(ptr noundef @.str.5, i32 noundef %51)
store i32 %52, ptr %2, align 4
%53 = load i32, ptr %2, align 4
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %60
55: ; preds = %50
%56 = load i32, ptr @stderr, align 4
%57 = load i32, ptr %2, align 4
%58 = call ptr @strerror(i32 noundef %57)
%59 = call i32 @fprintf(i32 noundef %56, ptr noundef @.str.1, ptr noundef %58)
store i32 1, ptr %1, align 4
br label %152
60: ; preds = %50
%61 = load i32, ptr %2, align 4
%62 = call i32 @read(i32 noundef %61, ptr noundef %4, i32 noundef 2)
store i32 %62, ptr %3, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %70
65: ; preds = %60
%66 = load i32, ptr @stderr, align 4
%67 = load i32, ptr %3, align 4
%68 = call ptr @strerror(i32 noundef %67)
%69 = call i32 @fprintf(i32 noundef %66, ptr noundef @.str.1, ptr noundef %68)
store i32 1, ptr %1, align 4
br label %152
70: ; preds = %60
%71 = load i32, ptr %2, align 4
%72 = load i32, ptr @SEEK_SET, align 4
%73 = call i32 @lseek(i32 noundef %71, i32 noundef 0, i32 noundef %72)
%74 = load i32, ptr %3, align 4
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %81
76: ; preds = %70
%77 = load i32, ptr @stderr, align 4
%78 = load i32, ptr %3, align 4
%79 = call ptr @strerror(i32 noundef %78)
%80 = call i32 @fprintf(i32 noundef %77, ptr noundef @.str.1, ptr noundef %79)
store i32 1, ptr %1, align 4
br label %152
81: ; preds = %70
%82 = call i32 @daemon(i32 noundef 1, i32 noundef 0)
store i32 %82, ptr %3, align 4
%83 = load i32, ptr %3, align 4
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = load i32, ptr @stderr, align 4
%87 = load i32, ptr %3, align 4
%88 = call ptr @strerror(i32 noundef %87)
%89 = call i32 @fprintf(i32 noundef %86, ptr noundef @.str.1, ptr noundef %88)
store i32 1, ptr %1, align 4
br label %152
90: ; preds = %81
%91 = load i32, ptr %2, align 4
%92 = icmp eq i32 %91, -1
br i1 %92, label %93, label %94
93: ; preds = %90
store i32 0, ptr %1, align 4
br label %152
94: ; preds = %90
%95 = getelementptr inbounds [1 x %struct.pollfd], ptr %5, i64 0, i64 0
%96 = call i32 @memset(ptr noundef %95, i32 noundef 0, i32 noundef 8)
%97 = load i32, ptr @POLLPRI, align 4
%98 = getelementptr inbounds [1 x %struct.pollfd], ptr %5, i64 0, i64 0
%99 = getelementptr inbounds %struct.pollfd, ptr %98, i32 0, i32 1
store i32 %97, ptr %99, align 4
%100 = load i32, ptr %2, align 4
%101 = getelementptr inbounds [1 x %struct.pollfd], ptr %5, i64 0, i64 0
%102 = getelementptr inbounds %struct.pollfd, ptr %101, i32 0, i32 0
store i32 %100, ptr %102, align 4
%103 = getelementptr inbounds [1 x %struct.pollfd], ptr %5, i64 0, i64 0
%104 = call i32 @poll(ptr noundef %103, i32 noundef 1, i32 noundef -1)
store i32 %104, ptr %3, align 4
%105 = load i32, ptr %3, align 4
%106 = icmp eq i32 %105, -1
br i1 %106, label %111, label %.lr.ph
.lr.ph: ; preds = %94
br label %116
107: ; preds = %141
%108 = call i32 @poll(ptr noundef %103, i32 noundef 1, i32 noundef -1)
store i32 %108, ptr %3, align 4
%109 = load i32, ptr %3, align 4
%110 = icmp eq i32 %109, -1
br i1 %110, label %._crit_edge, label %116
._crit_edge: ; preds = %107
br label %111
111: ; preds = %._crit_edge, %94
%112 = load i32, ptr @stderr, align 4
%113 = load i32, ptr %3, align 4
%114 = call ptr @strerror(i32 noundef %113)
%115 = call i32 @fprintf(i32 noundef %112, ptr noundef @.str.1, ptr noundef %114)
store i32 1, ptr %1, align 4
br label %152
116: ; preds = %.lr.ph, %107
%117 = load i32, ptr %2, align 4
%118 = call i32 @read(i32 noundef %117, ptr noundef %4, i32 noundef 2)
store i32 %118, ptr %3, align 4
%119 = load i32, ptr %3, align 4
%120 = icmp eq i32 %119, -1
br i1 %120, label %121, label %126
121: ; preds = %116
%122 = load i32, ptr @stderr, align 4
%123 = load i32, ptr %3, align 4
%124 = call ptr @strerror(i32 noundef %123)
%125 = call i32 @fprintf(i32 noundef %122, ptr noundef @.str.1, ptr noundef %124)
store i32 1, ptr %1, align 4
br label %152
126: ; preds = %116
%127 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
%128 = load i8, ptr %127, align 1
%129 = sext i8 %128 to i32
%130 = icmp eq i32 %129, 48
br i1 %130, label %131, label %141
131: ; preds = %126
%132 = call i32 @execl(ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef null)
store i32 %132, ptr %3, align 4
%133 = load i32, ptr %3, align 4
%134 = icmp eq i32 %133, -1
br i1 %134, label %135, label %140
135: ; preds = %131
%136 = load i32, ptr @stderr, align 4
%137 = load i32, ptr %3, align 4
%138 = call ptr @strerror(i32 noundef %137)
%139 = call i32 @fprintf(i32 noundef %136, ptr noundef @.str.1, ptr noundef %138)
store i32 1, ptr %1, align 4
br label %152
140: ; preds = %131
br label %141
141: ; preds = %140, %126
%142 = load i32, ptr %2, align 4
%143 = load i32, ptr @SEEK_SET, align 4
%144 = call i32 @lseek(i32 noundef %142, i32 noundef 0, i32 noundef %143)
store i32 %144, ptr %3, align 4
%145 = load i32, ptr %3, align 4
%146 = icmp eq i32 %145, -1
br i1 %146, label %147, label %107
147: ; preds = %141
%148 = load i32, ptr @stderr, align 4
%149 = load i32, ptr %3, align 4
%150 = call ptr @strerror(i32 noundef %149)
%151 = call i32 @fprintf(i32 noundef %148, ptr noundef @.str.1, ptr noundef %150)
store i32 1, ptr %1, align 4
br label %152
152: ; preds = %147, %135, %121, %111, %93, %85, %76, %65, %55, %45, %33, %22, %10
%153 = load i32, ptr %1, align 4
ret i32 %153
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @daemon(i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr 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/tmp_bp01gd7.c'
source_filename = "/tmp/tmp_bp01gd7.c"
target datalayout = "e-m:e-p270: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 [49 x i8] c"__NR_sigprocmask not supported on this platform\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr @stderr, align 4
%3 = call i32 @fprintf(i32 noundef %2, ptr noundef @.str)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_bp01gd7.c"
target datalayout = "e-m:e-p270: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 [49 x i8] c"__NR_sigprocmask not supported on this platform\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr @stderr, align 4
%3 = call i32 @fprintf(i32 noundef %2, ptr noundef @.str)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyg0aqa3c.c'
source_filename = "/tmp/tmpyg0aqa3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"\1B[31mred\0A\1B[0m\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"\1B[32mgreen\0A\1B[0m\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"\1B[33myellow\0A\1B[0m\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"\1B[34mblue\0A\1B[0m\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"\1B[35mmagenta\0A\1B[0m\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"\1B[36mcyan\0A\1B[0m\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"\1B[37mwhite\0A\1B[0m\00", align 1
@__const.main.ss = private unnamed_addr constant [9 x i8] c"ha b c d\00", align 1
@.str.7 = private unnamed_addr constant [47 x i8] c"This is \1B[31mred\1B[0m and this is \1B[34mblue\1B[0m\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 [9 x i8], align 1
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @printf(ptr noundef @.str.3)
%9 = call i32 @printf(ptr noundef @.str.4)
%10 = call i32 @printf(ptr noundef @.str.5)
%11 = call i32 @printf(ptr noundef @.str.6)
store i64 1024, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.ss, i64 9, i1 false)
store i8 92, ptr %4, align 1
%12 = call i32 @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyg0aqa3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"\1B[31mred\0A\1B[0m\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"\1B[32mgreen\0A\1B[0m\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"\1B[33myellow\0A\1B[0m\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"\1B[34mblue\0A\1B[0m\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"\1B[35mmagenta\0A\1B[0m\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"\1B[36mcyan\0A\1B[0m\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"\1B[37mwhite\0A\1B[0m\00", align 1
@__const.main.ss = private unnamed_addr constant [9 x i8] c"ha b c d\00", align 1
@.str.7 = private unnamed_addr constant [47 x i8] c"This is \1B[31mred\1B[0m and this is \1B[34mblue\1B[0m\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 [9 x i8], align 1
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @printf(ptr noundef @.str.3)
%9 = call i32 @printf(ptr noundef @.str.4)
%10 = call i32 @printf(ptr noundef @.str.5)
%11 = call i32 @printf(ptr noundef @.str.6)
store i64 1024, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.ss, i64 9, i1 false)
store i8 92, ptr %4, align 1
%12 = call i32 @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxr9fp4qs.c'
source_filename = "/tmp/tmpxr9fp4qs.c"
target datalayout = "e-m:e-p270: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 @pipelineOpen1(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 [2 x ptr], align 16
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
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
store ptr %10, ptr %11, align 16
%12 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
store ptr null, ptr %12, align 8
%13 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
%14 = load i32, ptr %6, align 4
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %8, align 8
%17 = call ptr @pipelineOpen(ptr noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef %16)
ret ptr %17
}
declare ptr @pipelineOpen(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpxr9fp4qs.c"
target datalayout = "e-m:e-p270: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 @pipelineOpen1(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 [2 x ptr], align 16
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
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
store ptr %10, ptr %11, align 16
%12 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
store ptr null, ptr %12, align 8
%13 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
%14 = load i32, ptr %6, align 4
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %8, align 8
%17 = call ptr @pipelineOpen(ptr noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef %16)
ret ptr %17
}
declare ptr @pipelineOpen(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp459_ex0b.c'
source_filename = "/tmp/tmp459_ex0b.c"
target datalayout = "e-m:e-p270: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 @memset(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
br label %9
9: ; preds = %13, %3
%10 = load i64, ptr %6, align 8
%11 = add i64 %10, -1
store i64 %11, ptr %6, align 8
%12 = icmp ne i64 %10, 0
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = load i32, ptr %5, align 4
%15 = trunc i32 %14 to i8
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %7, align 8
store i8 %15, ptr %16, align 1
br label %9, !llvm.loop !6
18: ; preds = %9
%19 = load ptr, ptr %4, align 8
ret ptr %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp459_ex0b.c"
target datalayout = "e-m:e-p270: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 @memset(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
%9 = load i64, ptr %6, align 8
%10 = add i64 %9, -1
store i64 %10, ptr %6, align 8
%11 = icmp ne i64 %9, 0
br i1 %11, label %.lr.ph, label %20
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %12
%13 = load i32, ptr %5, align 4
%14 = trunc i32 %13 to i8
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %7, align 8
store i8 %14, ptr %15, align 1
%17 = load i64, ptr %6, align 8
%18 = add i64 %17, -1
store i64 %18, ptr %6, align 8
%19 = icmp ne i64 %17, 0
br i1 %19, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %20
20: ; preds = %._crit_edge, %3
%21 = load ptr, ptr %4, align 8
ret ptr %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpx1p3q66y.c'
source_filename = "/tmp/tmpx1p3q66y.c"
target datalayout = "e-m:e-p270: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 @free_exec(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/tmpx1p3q66y.c"
target datalayout = "e-m:e-p270: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 @free_exec(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/tmp2nskg7e2.c'
source_filename = "/tmp/tmp2nskg7e2.c"
target datalayout = "e-m:e-p270: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 @computeFFTsize(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @iAlignUp(i32 noundef %7, i32 noundef 16)
store i32 %8, ptr %3, align 4
store i32 31, ptr %4, align 4
br label %9
9: ; preds = %20, %1
%10 = load i32, ptr %4, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %23
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = shl i32 1, %14
%16 = and i32 %13, %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %12
br label %23
19: ; preds = %12
br label %20
20: ; preds = %19
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %4, align 4
br label %9, !llvm.loop !6
23: ; preds = %18, %9
%24 = load i32, ptr %4, align 4
%25 = shl i32 1, %24
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = load i32, ptr %3, align 4
store i32 %30, ptr %2, align 4
br label %36
31: ; preds = %23
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
%34 = shl i32 1, %33
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
store i32 %35, ptr %2, align 4
br label %36
36: ; preds = %31, %29
%37 = load i32, ptr %2, align 4
ret i32 %37
}
declare i32 @iAlignUp(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/tmp2nskg7e2.c"
target datalayout = "e-m:e-p270: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 @computeFFTsize(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @iAlignUp(i32 noundef %7, i32 noundef 16)
store i32 %8, ptr %3, align 4
store i32 31, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %19
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = shl i32 1, %13
%15 = and i32 %12, %14
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %11
br label %24
18: ; preds = %11
br label %19
19: ; preds = %18
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sge i32 %22, 0
br i1 %23, label %11, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %19
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %24
24: ; preds = %.loopexit, %17
%25 = load i32, ptr %4, align 4
%26 = shl i32 1, %25
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = load i32, ptr %3, align 4
store i32 %31, ptr %2, align 4
br label %37
32: ; preds = %24
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
%35 = shl i32 1, %34
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %2, align 4
br label %37
37: ; preds = %32, %30
%38 = load i32, ptr %2, align 4
ret i32 %38
}
declare i32 @iAlignUp(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/tmphnupnfs9.c'
source_filename = "/tmp/tmphnupnfs9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %27, %0
%6 = call i32 (...) @getchar()
store i32 %6, ptr %3, align 4
%7 = load i32, ptr @EOF, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %28
9: ; preds = %5
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 10
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 %14
store i8 0, ptr %15, align 1
%16 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%17 = call i32 @reverse(ptr noundef %16)
%18 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%19 = call i32 @printf(ptr noundef @.str, ptr noundef %18)
store i32 0, ptr %4, align 4
br label %27
20: ; preds = %9
%21 = load i32, ptr %3, align 4
%22 = trunc i32 %21 to i8
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 %25
store i8 %22, ptr %26, align 1
br label %27
27: ; preds = %20, %12
br label %5, !llvm.loop !6
28: ; preds = %5
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @reverse(ptr noundef) #1
declare i32 @printf(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/tmphnupnfs9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (...) @getchar()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr @EOF, align 4
%7 = icmp ne i32 %5, %6
br i1 %7, label %.lr.ph, label %30
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %26
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, 10
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 %13
store i8 0, ptr %14, align 1
%15 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%16 = call i32 @reverse(ptr noundef %15)
%17 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %17)
store i32 0, ptr %4, align 4
br label %26
19: ; preds = %8
%20 = load i32, ptr %3, align 4
%21 = trunc i32 %20 to i8
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 %24
store i8 %21, ptr %25, align 1
br label %26
26: ; preds = %19, %11
%27 = call i32 (...) @getchar()
store i32 %27, ptr %3, align 4
%28 = load i32, ptr @EOF, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %30
30: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @reverse(ptr noundef) #1
declare i32 @printf(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/tmpkjsezxah.c'
source_filename = "/tmp/tmpkjsezxah.c"
target datalayout = "e-m:e-p270: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/tmpkjsezxah.c"
target datalayout = "e-m:e-p270: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/tmpww1zegnc.c'
source_filename = "/tmp/tmpww1zegnc.c"
target datalayout = "e-m:e-p270: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 @partition(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 = add nsw i32 %10, 1
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %5, align 4
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [2 x i32], ptr %13, i64 %15
%17 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
%18 = load i32, ptr %17, align 4
store i32 %18, ptr %9, align 4
br label %19
19: ; preds = %58, %3
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %23, label %61
23: ; preds = %19
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [2 x i32], ptr %24, i64 %26
%28 = getelementptr inbounds [2 x i32], ptr %27, i64 0, i64 0
%29 = load i32, ptr %28, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp sle i32 %29, %30
br i1 %31, label %32, label %57
32: ; preds = %23
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [2 x i32], ptr %35, i64 %37
%39 = getelementptr inbounds [2 x i32], ptr %38, i64 0, i64 0
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %8, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [2 x i32], ptr %40, i64 %42
%44 = getelementptr inbounds [2 x i32], ptr %43, i64 0, i64 0
%45 = call i32 @swap(ptr noundef %39, ptr noundef %44)
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [2 x i32], ptr %46, i64 %48
%50 = getelementptr inbounds [2 x i32], ptr %49, i64 0, i64 1
%51 = load ptr, ptr %4, align 8
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [2 x i32], ptr %51, i64 %53
%55 = getelementptr inbounds [2 x i32], ptr %54, i64 0, i64 1
%56 = call i32 @swap(ptr noundef %50, ptr noundef %55)
br label %57
57: ; preds = %32, %23
br label %58
58: ; preds = %57
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
br label %19, !llvm.loop !6
61: ; preds = %19
%62 = load ptr, ptr %4, align 8
%63 = load i32, ptr %5, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [2 x i32], ptr %62, i64 %64
%66 = getelementptr inbounds [2 x i32], ptr %65, i64 0, i64 0
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [2 x i32], ptr %67, i64 %69
%71 = getelementptr inbounds [2 x i32], ptr %70, i64 0, i64 0
%72 = call i32 @swap(ptr noundef %66, ptr noundef %71)
%73 = load ptr, ptr %4, align 8
%74 = load i32, ptr %5, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [2 x i32], ptr %73, i64 %75
%77 = getelementptr inbounds [2 x i32], ptr %76, i64 0, i64 1
%78 = load ptr, ptr %4, align 8
%79 = load i32, ptr %8, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [2 x i32], ptr %78, i64 %80
%82 = getelementptr inbounds [2 x i32], ptr %81, i64 0, i64 1
%83 = call i32 @swap(ptr noundef %77, ptr noundef %82)
%84 = load i32, ptr %8, align 4
ret i32 %84
}
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/tmpww1zegnc.c"
target datalayout = "e-m:e-p270: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 @partition(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 = add nsw i32 %10, 1
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %5, align 4
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [2 x i32], ptr %13, i64 %15
%17 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
%18 = load i32, ptr %17, align 4
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %.lr.ph, label %63
.lr.ph: ; preds = %3
br label %22
22: ; preds = %.lr.ph, %57
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [2 x i32], ptr %23, i64 %25
%27 = getelementptr inbounds [2 x i32], ptr %26, i64 0, i64 0
%28 = load i32, ptr %27, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp sle i32 %28, %29
br i1 %30, label %31, label %56
31: ; preds = %22
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [2 x i32], ptr %34, i64 %36
%38 = getelementptr inbounds [2 x i32], ptr %37, i64 0, i64 0
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %8, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [2 x i32], ptr %39, i64 %41
%43 = getelementptr inbounds [2 x i32], ptr %42, i64 0, i64 0
%44 = call i32 @swap(ptr noundef %38, ptr noundef %43)
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %7, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [2 x i32], ptr %45, i64 %47
%49 = getelementptr inbounds [2 x i32], ptr %48, i64 0, i64 1
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [2 x i32], ptr %50, i64 %52
%54 = getelementptr inbounds [2 x i32], ptr %53, i64 0, i64 1
%55 = call i32 @swap(ptr noundef %49, ptr noundef %54)
br label %56
56: ; preds = %31, %22
br label %57
57: ; preds = %56
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %7, align 4
%61 = load i32, ptr %6, align 4
%62 = icmp sle i32 %60, %61
br i1 %62, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %3
%64 = load ptr, ptr %4, align 8
%65 = load i32, ptr %5, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [2 x i32], ptr %64, i64 %66
%68 = getelementptr inbounds [2 x i32], ptr %67, i64 0, i64 0
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %8, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [2 x i32], ptr %69, i64 %71
%73 = getelementptr inbounds [2 x i32], ptr %72, i64 0, i64 0
%74 = call i32 @swap(ptr noundef %68, ptr noundef %73)
%75 = load ptr, ptr %4, align 8
%76 = load i32, ptr %5, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [2 x i32], ptr %75, i64 %77
%79 = getelementptr inbounds [2 x i32], ptr %78, i64 0, i64 1
%80 = load ptr, ptr %4, align 8
%81 = load i32, ptr %8, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [2 x i32], ptr %80, i64 %82
%84 = getelementptr inbounds [2 x i32], ptr %83, i64 0, i64 1
%85 = call i32 @swap(ptr noundef %79, ptr noundef %84)
%86 = load i32, ptr %8, align 4
ret i32 %86
}
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/tmp3hjz_3xy.c'
source_filename = "/tmp/tmp3hjz_3xy.c"
target datalayout = "e-m:e-p270: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 @print_db_comment(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%15 = load i32, ptr %9, align 4
%16 = and i32 %15, 2
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %7
%19 = load ptr, ptr %10, align 8
%20 = load ptr, ptr %11, align 8
%21 = load i32, ptr %12, align 4
%22 = load ptr, ptr %13, align 8
%23 = load ptr, ptr %14, align 8
%24 = call i32 @print_dbppc_comment(ptr noundef %19, ptr noundef %20, i32 noundef %21, ptr noundef %22, i8 noundef signext 59, ptr noundef %23)
br label %25
25: ; preds = %18, %7
ret void
}
declare i32 @print_dbppc_comment(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i8 noundef signext, 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/tmp3hjz_3xy.c"
target datalayout = "e-m:e-p270: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 @print_db_comment(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%15 = load i32, ptr %9, align 4
%16 = and i32 %15, 2
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %7
%19 = load ptr, ptr %10, align 8
%20 = load ptr, ptr %11, align 8
%21 = load i32, ptr %12, align 4
%22 = load ptr, ptr %13, align 8
%23 = load ptr, ptr %14, align 8
%24 = call i32 @print_dbppc_comment(ptr noundef %19, ptr noundef %20, i32 noundef %21, ptr noundef %22, i8 noundef signext 59, ptr noundef %23)
br label %25
25: ; preds = %18, %7
ret void
}
declare i32 @print_dbppc_comment(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i8 noundef signext, 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/tmpqblclqgp.c'
source_filename = "/tmp/tmpqblclqgp.c"
target datalayout = "e-m:e-p270: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 @rt_modbus_read_output_table(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 2
%17 = call i32 @memcpy(ptr noundef %6, ptr noundef %16, i32 noundef 2)
%18 = call i32 @swap16(ptr noundef %6)
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 4
%21 = call i32 @memcpy(ptr noundef %7, ptr noundef %20, i32 noundef 2)
%22 = call i32 @swap16(ptr noundef %7)
%23 = load i32, ptr %7, align 4
%24 = icmp sgt i32 %23, 128
br i1 %24, label %25, label %32
25: ; preds = %2
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i32, ptr %26, i64 1
store i32 129, ptr %27, align 4
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 2
store i32 4, ptr %29, align 4
%30 = load ptr, ptr %4, align 8
%31 = call i32 @add_CRC(ptr noundef %30, i32 noundef 5, i32 noundef 65535)
store i32 5, ptr %3, align 4
br label %92
32: ; preds = %2
%33 = load i32, ptr %7, align 4
%34 = sdiv i32 %33, 8
store i32 %34, ptr %10, align 4
%35 = load i32, ptr %7, align 4
%36 = srem i32 %35, 8
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %10, align 4
br label %41
41: ; preds = %38, %32
%42 = load i32, ptr %10, align 4
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds i32, ptr %43, i64 2
store i32 %42, ptr %44, align 4
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i32, ptr %45, i64 3
store ptr %46, ptr %9, align 8
store i32 0, ptr %8, align 4
br label %47
47: ; preds = %54, %41
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %57
51: ; preds = %47
%52 = load ptr, ptr %9, align 8
%53 = getelementptr inbounds i32, ptr %52, i32 1
store ptr %53, ptr %9, align 8
store i32 0, ptr %52, align 4
br label %54
54: ; preds = %51
%55 = load i32, ptr %8, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %8, align 4
br label %47, !llvm.loop !6
57: ; preds = %47
store i32 0, ptr %8, align 4
br label %58
58: ; preds = %82, %57
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %7, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %85
62: ; preds = %58
%63 = load i32, ptr %8, align 4
%64 = srem i32 %63, 2
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %81
66: ; preds = %62
%67 = load i32, ptr %8, align 4
%68 = sdiv i32 %67, 8
store i32 %68, ptr %12, align 4
%69 = load i32, ptr %8, align 4
%70 = srem i32 %69, 8
store i32 %70, ptr %13, align 4
%71 = load i32, ptr %13, align 4
%72 = shl i32 1, %71
store i32 %72, ptr %14, align 4
%73 = load i32, ptr %14, align 4
%74 = load ptr, ptr %4, align 8
%75 = load i32, ptr %12, align 4
%76 = add nsw i32 %75, 3
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %74, i64 %77
%79 = load i32, ptr %78, align 4
%80 = or i32 %79, %73
store i32 %80, ptr %78, align 4
br label %81
81: ; preds = %66, %62
br label %82
82: ; preds = %81
%83 = load i32, ptr %8, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %8, align 4
br label %58, !llvm.loop !8
85: ; preds = %58
%86 = load ptr, ptr %4, align 8
%87 = load i32, ptr %10, align 4
%88 = add nsw i32 5, %87
%89 = call i32 @add_CRC(ptr noundef %86, i32 noundef %88, i32 noundef 65535)
%90 = load i32, ptr %10, align 4
%91 = add nsw i32 5, %90
store i32 %91, ptr %3, align 4
br label %92
92: ; preds = %85, %25
%93 = load i32, ptr %3, align 4
ret i32 %93
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @swap16(ptr noundef) #1
declare i32 @add_CRC(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqblclqgp.c"
target datalayout = "e-m:e-p270: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 @rt_modbus_read_output_table(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 2
%17 = call i32 @memcpy(ptr noundef %6, ptr noundef %16, i32 noundef 2)
%18 = call i32 @swap16(ptr noundef %6)
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 4
%21 = call i32 @memcpy(ptr noundef %7, ptr noundef %20, i32 noundef 2)
%22 = call i32 @swap16(ptr noundef %7)
%23 = load i32, ptr %7, align 4
%24 = icmp sgt i32 %23, 128
br i1 %24, label %25, label %32
25: ; preds = %2
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i32, ptr %26, i64 1
store i32 129, ptr %27, align 4
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 2
store i32 4, ptr %29, align 4
%30 = load ptr, ptr %4, align 8
%31 = call i32 @add_CRC(ptr noundef %30, i32 noundef 5, i32 noundef 65535)
store i32 5, ptr %3, align 4
br label %96
32: ; preds = %2
%33 = load i32, ptr %7, align 4
%34 = sdiv i32 %33, 8
store i32 %34, ptr %10, align 4
%35 = load i32, ptr %7, align 4
%36 = srem i32 %35, 8
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %10, align 4
br label %41
41: ; preds = %38, %32
%42 = load i32, ptr %10, align 4
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds i32, ptr %43, i64 2
store i32 %42, ptr %44, align 4
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i32, ptr %45, i64 3
store ptr %46, ptr %9, align 8
store i32 0, ptr %8, align 4
%47 = load i32, ptr %8, align 4
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph, label %59
.lr.ph: ; preds = %41
br label %50
50: ; preds = %.lr.ph, %53
%51 = load ptr, ptr %9, align 8
%52 = getelementptr inbounds i32, ptr %51, i32 1
store ptr %52, ptr %9, align 8
store i32 0, ptr %51, align 4
br label %53
53: ; preds = %50
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 4
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %10, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %50, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %59
59: ; preds = %._crit_edge, %41
store i32 0, ptr %8, align 4
%60 = load i32, ptr %8, align 4
%61 = load i32, ptr %7, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %.lr.ph2, label %89
.lr.ph2: ; preds = %59
br label %63
63: ; preds = %.lr.ph2, %83
%64 = load i32, ptr %8, align 4
%65 = srem i32 %64, 2
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %82
67: ; preds = %63
%68 = load i32, ptr %8, align 4
%69 = sdiv i32 %68, 8
store i32 %69, ptr %12, align 4
%70 = load i32, ptr %8, align 4
%71 = srem i32 %70, 8
store i32 %71, ptr %13, align 4
%72 = load i32, ptr %13, align 4
%73 = shl i32 1, %72
store i32 %73, ptr %14, align 4
%74 = load i32, ptr %14, align 4
%75 = load ptr, ptr %4, align 8
%76 = load i32, ptr %12, align 4
%77 = add nsw i32 %76, 3
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %75, i64 %78
%80 = load i32, ptr %79, align 4
%81 = or i32 %80, %74
store i32 %81, ptr %79, align 4
br label %82
82: ; preds = %67, %63
br label %83
83: ; preds = %82
%84 = load i32, ptr %8, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %8, align 4
%86 = load i32, ptr %8, align 4
%87 = load i32, ptr %7, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %63, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %83
br label %89
89: ; preds = %._crit_edge3, %59
%90 = load ptr, ptr %4, align 8
%91 = load i32, ptr %10, align 4
%92 = add nsw i32 5, %91
%93 = call i32 @add_CRC(ptr noundef %90, i32 noundef %92, i32 noundef 65535)
%94 = load i32, ptr %10, align 4
%95 = add nsw i32 5, %94
store i32 %95, ptr %3, align 4
br label %96
96: ; preds = %89, %25
%97 = load i32, ptr %3, align 4
ret i32 %97
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @swap16(ptr noundef) #1
declare i32 @add_CRC(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpczr_ff02.c'
source_filename = "/tmp/tmpczr_ff02.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"\0AEnter x1 x2 (x1=x2 to stop):\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%f %f\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c" %10.3f \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"%12s\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"%8s %10.3f %44s %10.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @scrsho(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca [61 x float], align 16
%14 = alloca [61 x [22 x i8]], align 16
store ptr %0, ptr %2, align 8
br label %15
15: ; preds = %226, %1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %8)
%18 = load float, ptr %9, align 4
%19 = load float, ptr %8, align 4
%20 = fcmp oeq float %18, %19
br i1 %20, label %21, label %22
21: ; preds = %15
br label %233
22: ; preds = %15
store i32 1, ptr %4, align 4
br label %23
23: ; preds = %35, %22
%24 = load i32, ptr %4, align 4
%25 = icmp sle i32 %24, 21
br i1 %25, label %26, label %38
26: ; preds = %23
%27 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 60
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [22 x i8], ptr %27, i64 0, i64 %29
store i8 108, ptr %30, align 1
%31 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 1
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [22 x i8], ptr %31, i64 0, i64 %33
store i8 108, ptr %34, align 1
br label %35
35: ; preds = %26
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %4, align 4
br label %23, !llvm.loop !6
38: ; preds = %23
store i32 2, ptr %5, align 4
br label %39
39: ; preds = %65, %38
%40 = load i32, ptr %5, align 4
%41 = icmp sle i32 %40, 59
br i1 %41, label %42, label %68
42: ; preds = %39
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %44
%46 = getelementptr inbounds [22 x i8], ptr %45, i64 0, i64 21
store i8 45, ptr %46, align 1
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %48
%50 = getelementptr inbounds [22 x i8], ptr %49, i64 0, i64 1
store i8 45, ptr %50, align 1
store i32 2, ptr %4, align 4
br label %51
51: ; preds = %61, %42
%52 = load i32, ptr %4, align 4
%53 = icmp sle i32 %52, 20
br i1 %53, label %54, label %64
54: ; preds = %51
%55 = load i32, ptr %5, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %56
%58 = load i32, ptr %4, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [22 x i8], ptr %57, i64 0, i64 %59
store i8 32, ptr %60, align 1
br label %61
61: ; preds = %54
%62 = load i32, ptr %4, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %4, align 4
br label %51, !llvm.loop !8
64: ; preds = %51
br label %65
65: ; preds = %64
%66 = load i32, ptr %5, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %5, align 4
br label %39, !llvm.loop !9
68: ; preds = %39
%69 = load float, ptr %8, align 4
%70 = load float, ptr %9, align 4
%71 = fsub float %69, %70
%72 = fdiv float %71, 5.900000e+01
store float %72, ptr %12, align 4
%73 = load float, ptr %9, align 4
store float %73, ptr %10, align 4
store float 0.000000e+00, ptr %7, align 4
store float 0.000000e+00, ptr %6, align 4
store i32 1, ptr %5, align 4
br label %74
74: ; preds = %111, %68
%75 = load i32, ptr %5, align 4
%76 = icmp sle i32 %75, 60
br i1 %76, label %77, label %114
77: ; preds = %74
%78 = load ptr, ptr %2, align 8
%79 = load float, ptr %10, align 4
%80 = call float %78(float noundef %79)
%81 = load i32, ptr %5, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %82
store float %80, ptr %83, align 4
%84 = load i32, ptr %5, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %85
%87 = load float, ptr %86, align 4
%88 = load float, ptr %6, align 4
%89 = fcmp olt float %87, %88
br i1 %89, label %90, label %95
90: ; preds = %77
%91 = load i32, ptr %5, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %92
%94 = load float, ptr %93, align 4
store float %94, ptr %6, align 4
br label %95
95: ; preds = %90, %77
%96 = load i32, ptr %5, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %97
%99 = load float, ptr %98, align 4
%100 = load float, ptr %7, align 4
%101 = fcmp ogt float %99, %100
br i1 %101, label %102, label %107
102: ; preds = %95
%103 = load i32, ptr %5, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %104
%106 = load float, ptr %105, align 4
store float %106, ptr %7, align 4
br label %107
107: ; preds = %102, %95
%108 = load float, ptr %12, align 4
%109 = load float, ptr %10, align 4
%110 = fadd float %109, %108
store float %110, ptr %10, align 4
br label %111
111: ; preds = %107
%112 = load i32, ptr %5, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %5, align 4
br label %74, !llvm.loop !10
114: ; preds = %74
%115 = load float, ptr %7, align 4
%116 = load float, ptr %6, align 4
%117 = fcmp oeq float %115, %116
br i1 %117, label %118, label %123
118: ; preds = %114
%119 = load float, ptr %6, align 4
%120 = fpext float %119 to double
%121 = fadd double %120, 1.000000e+00
%122 = fptrunc double %121 to float
store float %122, ptr %7, align 4
br label %123
123: ; preds = %118, %114
%124 = load float, ptr %7, align 4
%125 = load float, ptr %6, align 4
%126 = fsub float %124, %125
%127 = fdiv float 2.000000e+01, %126
store float %127, ptr %11, align 4
%128 = load float, ptr %6, align 4
%129 = load float, ptr %11, align 4
%130 = fmul float %128, %129
%131 = fptosi float %130 to i32
%132 = sub nsw i32 1, %131
store i32 %132, ptr %3, align 4
store i32 1, ptr %5, align 4
br label %133
133: ; preds = %159, %123
%134 = load i32, ptr %5, align 4
%135 = icmp sle i32 %134, 60
br i1 %135, label %136, label %162
136: ; preds = %133
%137 = load i32, ptr %5, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %138
%140 = load i32, ptr %3, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [22 x i8], ptr %139, i64 0, i64 %141
store i8 45, ptr %142, align 1
%143 = load i32, ptr %5, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %144
%146 = load float, ptr %145, align 4
%147 = load float, ptr %6, align 4
%148 = fsub float %146, %147
%149 = load float, ptr %11, align 4
%150 = fmul float %148, %149
%151 = fptosi float %150 to i32
%152 = add nsw i32 1, %151
store i32 %152, ptr %4, align 4
%153 = load i32, ptr %5, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %154
%156 = load i32, ptr %4, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [22 x i8], ptr %155, i64 0, i64 %157
store i8 120, ptr %158, align 1
br label %159
159: ; preds = %136
%160 = load i32, ptr %5, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %5, align 4
br label %133, !llvm.loop !11
162: ; preds = %133
%163 = load float, ptr %7, align 4
%164 = fpext float %163 to double
%165 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %164)
store i32 1, ptr %5, align 4
br label %166
166: ; preds = %177, %162
%167 = load i32, ptr %5, align 4
%168 = icmp sle i32 %167, 60
br i1 %168, label %169, label %180
169: ; preds = %166
%170 = load i32, ptr %5, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %171
%173 = getelementptr inbounds [22 x i8], ptr %172, i64 0, i64 21
%174 = load i8, ptr %173, align 1
%175 = sext i8 %174 to i32
%176 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %175)
br label %177
177: ; preds = %169
%178 = load i32, ptr %5, align 4
%179 = add nsw i32 %178, 1
store i32 %179, ptr %5, align 4
br label %166, !llvm.loop !12
180: ; preds = %166
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 20, ptr %4, align 4
br label %182
182: ; preds = %205, %180
%183 = load i32, ptr %4, align 4
%184 = icmp sge i32 %183, 2
br i1 %184, label %185, label %208
185: ; preds = %182
%186 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.6)
store i32 1, ptr %5, align 4
br label %187
187: ; preds = %200, %185
%188 = load i32, ptr %5, align 4
%189 = icmp sle i32 %188, 60
br i1 %189, label %190, label %203
190: ; preds = %187
%191 = load i32, ptr %5, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %192
%194 = load i32, ptr %4, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds [22 x i8], ptr %193, i64 0, i64 %195
%197 = load i8, ptr %196, align 1
%198 = sext i8 %197 to i32
%199 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %198)
br label %200
200: ; preds = %190
%201 = load i32, ptr %5, align 4
%202 = add nsw i32 %201, 1
store i32 %202, ptr %5, align 4
br label %187, !llvm.loop !13
203: ; preds = %187
%204 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %205
205: ; preds = %203
%206 = load i32, ptr %4, align 4
%207 = add nsw i32 %206, -1
store i32 %207, ptr %4, align 4
br label %182, !llvm.loop !14
208: ; preds = %182
%209 = load float, ptr %6, align 4
%210 = fpext float %209 to double
%211 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %210)
store i32 1, ptr %5, align 4
br label %212
212: ; preds = %223, %208
%213 = load i32, ptr %5, align 4
%214 = icmp sle i32 %213, 60
br i1 %214, label %215, label %226
215: ; preds = %212
%216 = load i32, ptr %5, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %217
%219 = getelementptr inbounds [22 x i8], ptr %218, i64 0, i64 1
%220 = load i8, ptr %219, align 1
%221 = sext i8 %220 to i32
%222 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %221)
br label %223
223: ; preds = %215
%224 = load i32, ptr %5, align 4
%225 = add nsw i32 %224, 1
store i32 %225, ptr %5, align 4
br label %212, !llvm.loop !15
226: ; preds = %212
%227 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%228 = load float, ptr %9, align 4
%229 = fpext float %228 to double
%230 = load float, ptr %8, align 4
%231 = fpext float %230 to double
%232 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.6, double noundef %229, ptr noundef @.str.6, double noundef %231)
br label %15
233: ; preds = %21
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpczr_ff02.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"\0AEnter x1 x2 (x1=x2 to stop):\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%f %f\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c" %10.3f \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"%12s\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"%8s %10.3f %44s %10.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @scrsho(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca [61 x float], align 16
%14 = alloca [61 x [22 x i8]], align 16
store ptr %0, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %8)
%17 = load float, ptr %9, align 4
%18 = load float, ptr %8, align 4
%19 = fcmp oeq float %17, %18
br i1 %19, label %20, label %.lr.ph26
.lr.ph26: ; preds = %1
br label %21
._crit_edge27: ; preds = %234
br label %20
20: ; preds = %._crit_edge27, %1
br label %246
21: ; preds = %.lr.ph26, %234
store i32 1, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sle i32 %22, 21
br i1 %23, label %.lr.ph, label %38
.lr.ph: ; preds = %21
br label %24
24: ; preds = %.lr.ph, %33
%25 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 60
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [22 x i8], ptr %25, i64 0, i64 %27
store i8 108, ptr %28, align 1
%29 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 1
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [22 x i8], ptr %29, i64 0, i64 %31
store i8 108, ptr %32, align 1
br label %33
33: ; preds = %24
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp sle i32 %36, 21
br i1 %37, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %38
38: ; preds = %._crit_edge, %21
store i32 2, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp sle i32 %39, 59
br i1 %40, label %.lr.ph5, label %70
.lr.ph5: ; preds = %38
br label %41
41: ; preds = %.lr.ph5, %65
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %43
%45 = getelementptr inbounds [22 x i8], ptr %44, i64 0, i64 21
store i8 45, ptr %45, align 1
%46 = load i32, ptr %5, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %47
%49 = getelementptr inbounds [22 x i8], ptr %48, i64 0, i64 1
store i8 45, ptr %49, align 1
store i32 2, ptr %4, align 4
%50 = load i32, ptr %4, align 4
%51 = icmp sle i32 %50, 20
br i1 %51, label %.lr.ph2, label %64
.lr.ph2: ; preds = %41
br label %52
52: ; preds = %.lr.ph2, %59
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %54
%56 = load i32, ptr %4, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [22 x i8], ptr %55, i64 0, i64 %57
store i8 32, ptr %58, align 1
br label %59
59: ; preds = %52
%60 = load i32, ptr %4, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %4, align 4
%62 = load i32, ptr %4, align 4
%63 = icmp sle i32 %62, 20
br i1 %63, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %64
64: ; preds = %._crit_edge3, %41
br label %65
65: ; preds = %64
%66 = load i32, ptr %5, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %5, align 4
%68 = load i32, ptr %5, align 4
%69 = icmp sle i32 %68, 59
br i1 %69, label %41, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %65
br label %70
70: ; preds = %._crit_edge6, %38
%71 = load float, ptr %8, align 4
%72 = load float, ptr %9, align 4
%73 = fsub float %71, %72
%74 = fdiv float %73, 5.900000e+01
store float %74, ptr %12, align 4
%75 = load float, ptr %9, align 4
store float %75, ptr %10, align 4
store float 0.000000e+00, ptr %7, align 4
store float 0.000000e+00, ptr %6, align 4
store i32 1, ptr %5, align 4
%76 = load i32, ptr %5, align 4
%77 = icmp sle i32 %76, 60
br i1 %77, label %.lr.ph8, label %117
.lr.ph8: ; preds = %70
br label %78
78: ; preds = %.lr.ph8, %112
%79 = load ptr, ptr %2, align 8
%80 = load float, ptr %10, align 4
%81 = call float %79(float noundef %80)
%82 = load i32, ptr %5, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %83
store float %81, ptr %84, align 4
%85 = load i32, ptr %5, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %86
%88 = load float, ptr %87, align 4
%89 = load float, ptr %6, align 4
%90 = fcmp olt float %88, %89
br i1 %90, label %91, label %96
91: ; preds = %78
%92 = load i32, ptr %5, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %93
%95 = load float, ptr %94, align 4
store float %95, ptr %6, align 4
br label %96
96: ; preds = %91, %78
%97 = load i32, ptr %5, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %98
%100 = load float, ptr %99, align 4
%101 = load float, ptr %7, align 4
%102 = fcmp ogt float %100, %101
br i1 %102, label %103, label %108
103: ; preds = %96
%104 = load i32, ptr %5, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %105
%107 = load float, ptr %106, align 4
store float %107, ptr %7, align 4
br label %108
108: ; preds = %103, %96
%109 = load float, ptr %12, align 4
%110 = load float, ptr %10, align 4
%111 = fadd float %110, %109
store float %111, ptr %10, align 4
br label %112
112: ; preds = %108
%113 = load i32, ptr %5, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %5, align 4
%115 = load i32, ptr %5, align 4
%116 = icmp sle i32 %115, 60
br i1 %116, label %78, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %112
br label %117
117: ; preds = %._crit_edge9, %70
%118 = load float, ptr %7, align 4
%119 = load float, ptr %6, align 4
%120 = fcmp oeq float %118, %119
br i1 %120, label %121, label %126
121: ; preds = %117
%122 = load float, ptr %6, align 4
%123 = fpext float %122 to double
%124 = fadd double %123, 1.000000e+00
%125 = fptrunc double %124 to float
store float %125, ptr %7, align 4
br label %126
126: ; preds = %121, %117
%127 = load float, ptr %7, align 4
%128 = load float, ptr %6, align 4
%129 = fsub float %127, %128
%130 = fdiv float 2.000000e+01, %129
store float %130, ptr %11, align 4
%131 = load float, ptr %6, align 4
%132 = load float, ptr %11, align 4
%133 = fmul float %131, %132
%134 = fptosi float %133 to i32
%135 = sub nsw i32 1, %134
store i32 %135, ptr %3, align 4
store i32 1, ptr %5, align 4
%136 = load i32, ptr %5, align 4
%137 = icmp sle i32 %136, 60
br i1 %137, label %.lr.ph11, label %166
.lr.ph11: ; preds = %126
br label %138
138: ; preds = %.lr.ph11, %161
%139 = load i32, ptr %5, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %140
%142 = load i32, ptr %3, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [22 x i8], ptr %141, i64 0, i64 %143
store i8 45, ptr %144, align 1
%145 = load i32, ptr %5, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [61 x float], ptr %13, i64 0, i64 %146
%148 = load float, ptr %147, align 4
%149 = load float, ptr %6, align 4
%150 = fsub float %148, %149
%151 = load float, ptr %11, align 4
%152 = fmul float %150, %151
%153 = fptosi float %152 to i32
%154 = add nsw i32 1, %153
store i32 %154, ptr %4, align 4
%155 = load i32, ptr %5, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %156
%158 = load i32, ptr %4, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [22 x i8], ptr %157, i64 0, i64 %159
store i8 120, ptr %160, align 1
br label %161
161: ; preds = %138
%162 = load i32, ptr %5, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %5, align 4
%164 = load i32, ptr %5, align 4
%165 = icmp sle i32 %164, 60
br i1 %165, label %138, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %161
br label %166
166: ; preds = %._crit_edge12, %126
%167 = load float, ptr %7, align 4
%168 = fpext float %167 to double
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %168)
store i32 1, ptr %5, align 4
%170 = load i32, ptr %5, align 4
%171 = icmp sle i32 %170, 60
br i1 %171, label %.lr.ph14, label %185
.lr.ph14: ; preds = %166
br label %172
172: ; preds = %.lr.ph14, %180
%173 = load i32, ptr %5, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %174
%176 = getelementptr inbounds [22 x i8], ptr %175, i64 0, i64 21
%177 = load i8, ptr %176, align 1
%178 = sext i8 %177 to i32
%179 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %178)
br label %180
180: ; preds = %172
%181 = load i32, ptr %5, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %5, align 4
%183 = load i32, ptr %5, align 4
%184 = icmp sle i32 %183, 60
br i1 %184, label %172, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %180
br label %185
185: ; preds = %._crit_edge15, %166
%186 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 20, ptr %4, align 4
%187 = load i32, ptr %4, align 4
%188 = icmp sge i32 %187, 2
br i1 %188, label %.lr.ph20, label %215
.lr.ph20: ; preds = %185
br label %189
189: ; preds = %.lr.ph20, %210
%190 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.6)
store i32 1, ptr %5, align 4
%191 = load i32, ptr %5, align 4
%192 = icmp sle i32 %191, 60
br i1 %192, label %.lr.ph17, label %208
.lr.ph17: ; preds = %189
br label %193
193: ; preds = %.lr.ph17, %203
%194 = load i32, ptr %5, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %195
%197 = load i32, ptr %4, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds [22 x i8], ptr %196, i64 0, i64 %198
%200 = load i8, ptr %199, align 1
%201 = sext i8 %200 to i32
%202 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %201)
br label %203
203: ; preds = %193
%204 = load i32, ptr %5, align 4
%205 = add nsw i32 %204, 1
store i32 %205, ptr %5, align 4
%206 = load i32, ptr %5, align 4
%207 = icmp sle i32 %206, 60
br i1 %207, label %193, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %203
br label %208
208: ; preds = %._crit_edge18, %189
%209 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %210
210: ; preds = %208
%211 = load i32, ptr %4, align 4
%212 = add nsw i32 %211, -1
store i32 %212, ptr %4, align 4
%213 = load i32, ptr %4, align 4
%214 = icmp sge i32 %213, 2
br i1 %214, label %189, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %210
br label %215
215: ; preds = %._crit_edge21, %185
%216 = load float, ptr %6, align 4
%217 = fpext float %216 to double
%218 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %217)
store i32 1, ptr %5, align 4
%219 = load i32, ptr %5, align 4
%220 = icmp sle i32 %219, 60
br i1 %220, label %.lr.ph23, label %234
.lr.ph23: ; preds = %215
br label %221
221: ; preds = %.lr.ph23, %229
%222 = load i32, ptr %5, align 4
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds [61 x [22 x i8]], ptr %14, i64 0, i64 %223
%225 = getelementptr inbounds [22 x i8], ptr %224, i64 0, i64 1
%226 = load i8, ptr %225, align 1
%227 = sext i8 %226 to i32
%228 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %227)
br label %229
229: ; preds = %221
%230 = load i32, ptr %5, align 4
%231 = add nsw i32 %230, 1
store i32 %231, ptr %5, align 4
%232 = load i32, ptr %5, align 4
%233 = icmp sle i32 %232, 60
br i1 %233, label %221, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %229
br label %234
234: ; preds = %._crit_edge24, %215
%235 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%236 = load float, ptr %9, align 4
%237 = fpext float %236 to double
%238 = load float, ptr %8, align 4
%239 = fpext float %238 to double
%240 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.6, double noundef %237, ptr noundef @.str.6, double noundef %239)
%241 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%242 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %8)
%243 = load float, ptr %9, align 4
%244 = load float, ptr %8, align 4
%245 = fcmp oeq float %243, %244
br i1 %245, label %._crit_edge27, label %21
246: ; preds = %20
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmpjjh6t0we.c'
source_filename = "/tmp/tmpjjh6t0we.c"
target datalayout = "e-m:e-p270: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 @nn_free(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/tmpjjh6t0we.c"
target datalayout = "e-m:e-p270: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 @nn_free(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/tmpdkfraa6c.c'
source_filename = "/tmp/tmpdkfraa6c.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"Il numero %d \C3\A8 perfetto.\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
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %5
5: ; preds = %34, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 100000000
br i1 %7, label %8, label %37
8: ; preds = %5
store i32 0, ptr %4, align 4
store i32 1, ptr %3, align 4
br label %9
9: ; preds = %23, %8
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %26
13: ; preds = %9
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %14, %15
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %13
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %19, %20
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %18, %13
br label %23
23: ; preds = %22
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
br label %9, !llvm.loop !6
26: ; preds = %9
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, ptr %2, align 4
%32 = call i32 @printf(ptr noundef @.str, i32 noundef %31)
br label %33
33: ; preds = %30, %26
br label %34
34: ; preds = %33
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
br label %5, !llvm.loop !8
37: ; preds = %5
%38 = load i32, ptr %1, align 4
ret i32 %38
}
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/tmpdkfraa6c.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"Il numero %d \C3\A8 perfetto.\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
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 100000000
br i1 %6, label %.lr.ph2, label %40
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %35
store i32 0, ptr %4, align 4
store i32 1, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %7
br label %11
11: ; preds = %.lr.ph, %21
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = srem i32 %12, %13
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %17, %18
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %16, %11
br label %21
21: ; preds = %20
%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 %2, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %7
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp eq i32 %28, %29
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, ptr %2, align 4
%33 = call i32 @printf(ptr noundef @.str, i32 noundef %32)
br label %34
34: ; preds = %31, %27
br label %35
35: ; preds = %34
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %2, align 4
%38 = load i32, ptr %2, align 4
%39 = icmp slt i32 %38, 100000000
br i1 %39, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %40
40: ; preds = %._crit_edge3, %0
%41 = load i32, ptr %1, align 4
ret i32 %41
}
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/tmpk0d5rciq.c'
source_filename = "/tmp/tmpk0d5rciq.c"
target datalayout = "e-m:e-p270: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/tmpk0d5rciq.c"
target datalayout = "e-m:e-p270: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/tmpoxah0pdj.c'
source_filename = "/tmp/tmpoxah0pdj.c"
target datalayout = "e-m:e-p270: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"max = %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 9, ptr %2, align 4
store i32 40, ptr %3, align 4
store i32 5, ptr %4, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = load i32, ptr %2, align 4
store i32 %10, ptr %5, align 4
br label %13
11: ; preds = %0
%12 = load i32, ptr %3, align 4
store i32 %12, ptr %5, align 4
br label %13
13: ; preds = %11, %9
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %5, align 4
br label %19
19: ; preds = %17, %13
%20 = load i32, ptr %5, align 4
%21 = call i32 @printf(ptr noundef @.str, i32 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoxah0pdj.c"
target datalayout = "e-m:e-p270: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"max = %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 9, ptr %2, align 4
store i32 40, ptr %3, align 4
store i32 5, ptr %4, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = load i32, ptr %2, align 4
store i32 %10, ptr %5, align 4
br label %13
11: ; preds = %0
%12 = load i32, ptr %3, align 4
store i32 %12, ptr %5, align 4
br label %13
13: ; preds = %11, %9
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %5, align 4
br label %19
19: ; preds = %17, %13
%20 = load i32, ptr %5, align 4
%21 = call i32 @printf(ptr noundef @.str, i32 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1_r8jdqt.c'
source_filename = "/tmp/tmp1_r8jdqt.c"
target datalayout = "e-m:e-p270: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_r8jdqt.c"
target datalayout = "e-m:e-p270: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/tmp4ey7rq34.c'
source_filename = "/tmp/tmp4ey7rq34.c"
target datalayout = "e-m:e-p270: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/tmp4ey7rq34.c"
target datalayout = "e-m:e-p270: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_5t7y2ad.c'
source_filename = "/tmp/tmp_5t7y2ad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_NETLINK = dso_local global i32 0, align 4
@NETLINK_ROUTE = dso_local global i32 0, align 4
@PF_NETLINK = dso_local global i32 0, align 4
@RTMGRP_IPV4_IFADDR = dso_local global i32 0, align 4
@RTMGRP_LINK = dso_local global i32 0, align 4
@SOCK_RAW = 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/tmp_5t7y2ad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_NETLINK = dso_local global i32 0, align 4
@NETLINK_ROUTE = dso_local global i32 0, align 4
@PF_NETLINK = dso_local global i32 0, align 4
@RTMGRP_IPV4_IFADDR = dso_local global i32 0, align 4
@RTMGRP_LINK = dso_local global i32 0, align 4
@SOCK_RAW = 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/tmpp6ahq72t.c'
source_filename = "/tmp/tmpp6ahq72t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0
%3 = call i32 @thr1(i32 noundef 0)
br label %4
4: ; preds = %2
%5 = call i32 @thr2(i32 noundef 0)
ret i32 0
}
declare i32 @thr1(i32 noundef) #1
declare i32 @thr2(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/tmpp6ahq72t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0
%3 = call i32 @thr1(i32 noundef 0)
br label %4
4: ; preds = %2
%5 = call i32 @thr2(i32 noundef 0)
ret i32 0
}
declare i32 @thr1(i32 noundef) #1
declare i32 @thr2(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_6_uvqlg.c'
source_filename = "/tmp/tmp_6_uvqlg.c"
target datalayout = "e-m:e-p270: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 @SetMemL(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = lshr i64 %6, 16
%8 = and i64 %7, 65535
%9 = call i32 @SetMemW(i64 noundef %5, i64 noundef %8)
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 2
%12 = load i64, ptr %4, align 8
%13 = and i64 %12, 65535
%14 = call i32 @SetMemW(i64 noundef %11, i64 noundef %13)
ret void
}
declare i32 @SetMemW(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_6_uvqlg.c"
target datalayout = "e-m:e-p270: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 @SetMemL(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = lshr i64 %6, 16
%8 = and i64 %7, 65535
%9 = call i32 @SetMemW(i64 noundef %5, i64 noundef %8)
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 2
%12 = load i64, ptr %4, align 8
%13 = and i64 %12, 65535
%14 = call i32 @SetMemW(i64 noundef %11, i64 noundef %13)
ret void
}
declare i32 @SetMemW(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8f6d5tx6.c'
source_filename = "/tmp/tmp8f6d5tx6.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { ptr, ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @freeaddrinfo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %20, %1
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %24
7: ; preds = %4
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 1
%10 = load ptr, ptr %9, align 8
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 0
%13 = load ptr, ptr %12, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %7
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds %struct.addrinfo, ptr %16, i32 0, i32 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @free(ptr noundef %18)
br label %20
20: ; preds = %15, %7
%21 = load ptr, ptr %2, align 8
%22 = call i32 @free(ptr noundef %21)
%23 = load ptr, ptr %3, align 8
store ptr %23, ptr %2, align 8
br label %4, !llvm.loop !6
24: ; preds = %4
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8f6d5tx6.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { ptr, ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @freeaddrinfo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %19
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 1
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds %struct.addrinfo, ptr %10, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %6
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds %struct.addrinfo, ptr %15, i32 0, i32 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @free(ptr noundef %17)
br label %19
19: ; preds = %14, %6
%20 = load ptr, ptr %2, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = load ptr, ptr %3, align 8
store ptr %22, ptr %2, align 8
%23 = load ptr, ptr %2, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6w8z6xnr.c'
source_filename = "/tmp/tmp6w8z6xnr.c"
target datalayout = "e-m:e-p270: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 @concat_strings(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i64 @malloc(i64 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strcat(ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmp6w8z6xnr.c"
target datalayout = "e-m:e-p270: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 @concat_strings(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i64 @malloc(i64 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strcat(ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmppr98moyf.c'
source_filename = "/tmp/tmppr98moyf.c"
target datalayout = "e-m:e-p270: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.test_one_zero.input = private unnamed_addr constant [5 x i32] [i32 4, i32 7, i32 0, i32 1, i32 5], align 16
@__const.test_one_zero.expected = private unnamed_addr constant [5 x i32] [i32 0, i32 0, i32 140, i32 0, i32 0], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_one_zero() #0 {
%1 = alloca [5 x i32], align 16
%2 = alloca [5 x i32], align 16
%3 = alloca [5 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_one_zero.input, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_one_zero.expected, i64 20, i1 false)
%4 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 0
%5 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
%6 = call i32 @calculate(ptr noundef %4, ptr noundef %5, i32 noundef 5)
%7 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
%8 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%9 = call i32 @are_equal(ptr noundef %7, ptr noundef %8, i32 noundef 5)
ret i32 %9
}
; 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 @calculate(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @are_equal(ptr noundef, ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppr98moyf.c"
target datalayout = "e-m:e-p270: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.test_one_zero.input = private unnamed_addr constant [5 x i32] [i32 4, i32 7, i32 0, i32 1, i32 5], align 16
@__const.test_one_zero.expected = private unnamed_addr constant [5 x i32] [i32 0, i32 0, i32 140, i32 0, i32 0], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_one_zero() #0 {
%1 = alloca [5 x i32], align 16
%2 = alloca [5 x i32], align 16
%3 = alloca [5 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_one_zero.input, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_one_zero.expected, i64 20, i1 false)
%4 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 0
%5 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
%6 = call i32 @calculate(ptr noundef %4, ptr noundef %5, i32 noundef 5)
%7 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
%8 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%9 = call i32 @are_equal(ptr noundef %7, ptr noundef %8, i32 noundef 5)
ret i32 %9
}
; 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 @calculate(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @are_equal(ptr noundef, ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxoo72cgf.c'
source_filename = "/tmp/tmpxoo72cgf.c"
target datalayout = "e-m:e-p270: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/tmpxoo72cgf.c"
target datalayout = "e-m:e-p270: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/tmptpxfidzp.c'
source_filename = "/tmp/tmptpxfidzp.c"
target datalayout = "e-m:e-p270: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/tmptpxfidzp.c"
target datalayout = "e-m:e-p270: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/tmpqiog0s_x.c'
source_filename = "/tmp/tmpqiog0s_x.c"
target datalayout = "e-m:e-p270: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.test_remove_complex_3.items = private unnamed_addr constant [7 x i32] [i32 75, i32 85, i32 30, i32 14, i32 15, i32 23, i32 12], align 16
@__const.test_remove_complex_3.removable = private unnamed_addr constant [4 x i32] [i32 85, i32 15, i32 75, i32 23], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_remove_complex_3() #0 {
%1 = alloca ptr, align 8
%2 = alloca [7 x i32], align 16
%3 = alloca i64, align 8
%4 = alloca [4 x i32], align 16
%5 = alloca i64, align 8
store ptr null, ptr %1, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_remove_complex_3.items, i64 28, i1 false)
store i64 0, ptr %3, align 8
br label %6
6: ; preds = %14, %0
%7 = load i64, ptr %3, align 8
%8 = icmp ult i64 %7, 7
br i1 %8, label %9, label %17
9: ; preds = %6
%10 = load i64, ptr %3, align 8
%11 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 %10
%12 = load i32, ptr %11, align 4
%13 = call i32 @insert(ptr noundef %1, i32 noundef %12)
br label %14
14: ; preds = %9
%15 = load i64, ptr %3, align 8
%16 = add i64 %15, 1
store i64 %16, ptr %3, align 8
br label %6, !llvm.loop !6
17: ; preds = %6
%18 = load ptr, ptr %1, align 8
%19 = call i32 @test_tree_properties(ptr noundef %18)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_remove_complex_3.removable, i64 16, i1 false)
store i64 0, ptr %5, align 8
br label %20
20: ; preds = %28, %17
%21 = load i64, ptr %5, align 8
%22 = icmp ult i64 %21, 4
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = load i64, ptr %5, align 8
%25 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 @remove_node(ptr noundef %1, i32 noundef %26)
br label %28
28: ; preds = %23
%29 = load i64, ptr %5, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %5, align 8
br label %20, !llvm.loop !8
31: ; preds = %20
%32 = load ptr, ptr %1, align 8
%33 = call i32 @test_tree_properties(ptr noundef %32)
%34 = load ptr, ptr %1, align 8
%35 = call i32 @free_tree(ptr noundef %34)
store ptr null, ptr %1, align 8
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @insert(ptr noundef, i32 noundef) #2
declare i32 @test_tree_properties(ptr noundef) #2
declare i32 @remove_node(ptr noundef, i32 noundef) #2
declare i32 @free_tree(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/tmpqiog0s_x.c"
target datalayout = "e-m:e-p270: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.test_remove_complex_3.items = private unnamed_addr constant [7 x i32] [i32 75, i32 85, i32 30, i32 14, i32 15, i32 23, i32 12], align 16
@__const.test_remove_complex_3.removable = private unnamed_addr constant [4 x i32] [i32 85, i32 15, i32 75, i32 23], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_remove_complex_3() #0 {
%1 = alloca ptr, align 8
%2 = alloca [7 x i32], align 16
%3 = alloca i64, align 8
%4 = alloca [4 x i32], align 16
%5 = alloca i64, align 8
store ptr null, ptr %1, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_remove_complex_3.items, i64 28, i1 false)
store i64 0, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = icmp ult i64 %6, 7
br i1 %7, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %13
%9 = load i64, ptr %3, align 8
%10 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 %9
%11 = load i32, ptr %10, align 4
%12 = call i32 @insert(ptr noundef %1, i32 noundef %11)
br label %13
13: ; preds = %8
%14 = load i64, ptr %3, align 8
%15 = add i64 %14, 1
store i64 %15, ptr %3, align 8
%16 = load i64, ptr %3, align 8
%17 = icmp ult i64 %16, 7
br i1 %17, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = load ptr, ptr %1, align 8
%20 = call i32 @test_tree_properties(ptr noundef %19)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_remove_complex_3.removable, i64 16, i1 false)
store i64 0, ptr %5, align 8
%21 = load i64, ptr %5, align 8
%22 = icmp ult i64 %21, 4
br i1 %22, label %.lr.ph2, label %33
.lr.ph2: ; preds = %18
br label %23
23: ; preds = %.lr.ph2, %28
%24 = load i64, ptr %5, align 8
%25 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 @remove_node(ptr noundef %1, i32 noundef %26)
br label %28
28: ; preds = %23
%29 = load i64, ptr %5, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %5, align 8
%31 = load i64, ptr %5, align 8
%32 = icmp ult i64 %31, 4
br i1 %32, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %28
br label %33
33: ; preds = %._crit_edge3, %18
%34 = load ptr, ptr %1, align 8
%35 = call i32 @test_tree_properties(ptr noundef %34)
%36 = load ptr, ptr %1, align 8
%37 = call i32 @free_tree(ptr noundef %36)
store ptr null, ptr %1, align 8
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @insert(ptr noundef, i32 noundef) #2
declare i32 @test_tree_properties(ptr noundef) #2
declare i32 @remove_node(ptr noundef, i32 noundef) #2
declare i32 @free_tree(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/tmpg9ng9i8z.c'
source_filename = "/tmp/tmpg9ng9i8z.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"malloc() failed!\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"mlock() failed!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%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
%10 = call i32 (...) @getpagesize()
store i32 %10, ptr %6, align 4
store ptr null, ptr %7, align 8
%11 = load i32, ptr %6, align 4
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %2
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %6, align 4
%21 = load ptr, ptr %7, align 8
%22 = ptrtoint ptr %21 to i32
%23 = load i32, ptr %6, align 4
%24 = urem i32 %22, %23
%25 = sub i32 %20, %24
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %19, i64 %26
store ptr %27, ptr %8, align 8
%28 = load ptr, ptr %8, align 8
%29 = call i32 @mlock(ptr noundef %28, i32 noundef 1)
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %18
%33 = call i32 @perror(ptr noundef @.str.1)
%34 = call i32 @exit(i32 noundef 1) #3
unreachable
35: ; preds = %18
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %6, align 4
%38 = call i32 @munlock(ptr noundef %36, i32 noundef %37)
ret i32 0
}
declare i32 @getpagesize(...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @mlock(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @munlock(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg9ng9i8z.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"malloc() failed!\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"mlock() failed!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%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
%10 = call i32 (...) @getpagesize()
store i32 %10, ptr %6, align 4
store ptr null, ptr %7, align 8
%11 = load i32, ptr %6, align 4
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %2
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %6, align 4
%21 = load ptr, ptr %7, align 8
%22 = ptrtoint ptr %21 to i32
%23 = load i32, ptr %6, align 4
%24 = urem i32 %22, %23
%25 = sub i32 %20, %24
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %19, i64 %26
store ptr %27, ptr %8, align 8
%28 = load ptr, ptr %8, align 8
%29 = call i32 @mlock(ptr noundef %28, i32 noundef 1)
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %18
%33 = call i32 @perror(ptr noundef @.str.1)
%34 = call i32 @exit(i32 noundef 1) #3
unreachable
35: ; preds = %18
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %6, align 4
%38 = call i32 @munlock(ptr noundef %36, i32 noundef %37)
ret i32 0
}
declare i32 @getpagesize(...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @mlock(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @munlock(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"}
|
; ModuleID = '/tmp/tmpdg8s4me9.c'
source_filename = "/tmp/tmpdg8s4me9.c"
target datalayout = "e-m:e-p270: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.ifreq = type { i32, i32 }
@.str = private unnamed_addr constant [13 x i8] c"/dev/net/tun\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@IFNAMSIZ = dso_local global i32 0, align 4
@TUNSETIFF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tun_alloc(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.ifreq, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr @.str, ptr %9, align 8
%10 = load ptr, ptr %9, align 8
%11 = load i32, ptr @O_RDWR, align 4
%12 = call i32 @open(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = load i32, ptr %7, align 4
store i32 %15, ptr %3, align 4
br label %44
16: ; preds = %2
%17 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 8)
%18 = load i32, ptr %5, align 4
%19 = getelementptr inbounds %struct.ifreq, ptr %6, i32 0, i32 0
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %16
%24 = getelementptr inbounds %struct.ifreq, ptr %6, i32 0, i32 1
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr @IFNAMSIZ, align 4
%28 = call i32 @strncpy(i32 noundef %25, ptr noundef %26, i32 noundef %27)
br label %29
29: ; preds = %23, %16
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr @TUNSETIFF, align 4
%32 = call i32 @ioctl(i32 noundef %30, i32 noundef %31, ptr noundef %6)
store i32 %32, ptr %8, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %29
%35 = load i32, ptr %7, align 4
%36 = call i32 @close(i32 noundef %35)
%37 = load i32, ptr %8, align 4
store i32 %37, ptr %3, align 4
br label %44
38: ; preds = %29
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds %struct.ifreq, ptr %6, i32 0, i32 1
%41 = load i32, ptr %40, align 4
%42 = call i32 @strcpy(ptr noundef %39, i32 noundef %41)
%43 = load i32, ptr %7, align 4
store i32 %43, ptr %3, align 4
br label %44
44: ; preds = %38, %34, %14
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @strcpy(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/tmpdg8s4me9.c"
target datalayout = "e-m:e-p270: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.ifreq = type { i32, i32 }
@.str = private unnamed_addr constant [13 x i8] c"/dev/net/tun\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@IFNAMSIZ = dso_local global i32 0, align 4
@TUNSETIFF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tun_alloc(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.ifreq, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr @.str, ptr %9, align 8
%10 = load ptr, ptr %9, align 8
%11 = load i32, ptr @O_RDWR, align 4
%12 = call i32 @open(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = load i32, ptr %7, align 4
store i32 %15, ptr %3, align 4
br label %44
16: ; preds = %2
%17 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 8)
%18 = load i32, ptr %5, align 4
%19 = getelementptr inbounds %struct.ifreq, ptr %6, i32 0, i32 0
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %16
%24 = getelementptr inbounds %struct.ifreq, ptr %6, i32 0, i32 1
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr @IFNAMSIZ, align 4
%28 = call i32 @strncpy(i32 noundef %25, ptr noundef %26, i32 noundef %27)
br label %29
29: ; preds = %23, %16
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr @TUNSETIFF, align 4
%32 = call i32 @ioctl(i32 noundef %30, i32 noundef %31, ptr noundef %6)
store i32 %32, ptr %8, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %29
%35 = load i32, ptr %7, align 4
%36 = call i32 @close(i32 noundef %35)
%37 = load i32, ptr %8, align 4
store i32 %37, ptr %3, align 4
br label %44
38: ; preds = %29
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds %struct.ifreq, ptr %6, i32 0, i32 1
%41 = load i32, ptr %40, align 4
%42 = call i32 @strcpy(ptr noundef %39, i32 noundef %41)
%43 = load i32, ptr %7, align 4
store i32 %43, ptr %3, align 4
br label %44
44: ; preds = %38, %34, %14
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @strcpy(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/tmpmmyr10nz.c'
source_filename = "/tmp/tmpmmyr10nz.c"
target datalayout = "e-m:e-p270: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 @maxpathlen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%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 ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %11
11: ; preds = %31, %2
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %34
18: ; preds = %11
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i32 @strlen(ptr noundef %23)
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp ugt i32 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %18
%29 = load i32, ptr %8, align 4
store i32 %29, ptr %6, align 4
br label %30
30: ; preds = %28, %18
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 %11, !llvm.loop !6
34: ; preds = %11
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %6, align 4
%37 = add i32 %35, %36
%38 = add i32 %37, 1
ret i32 %38
}
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/tmpmmyr10nz.c"
target datalayout = "e-m:e-p270: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 @maxpathlen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%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 ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %.lr.ph, label %39
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %30
%18 = load ptr, ptr %3, 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 @strlen(ptr noundef %22)
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp ugt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %17
%28 = load i32, ptr %8, align 4
store i32 %28, ptr %6, align 4
br label %29
29: ; preds = %27, %17
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 ptr, ptr %3, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %39
39: ; preds = %._crit_edge, %2
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %6, align 4
%42 = add i32 %40, %41
%43 = add i32 %42, 1
ret i32 %43
}
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/tmpst7ixap8.c'
source_filename = "/tmp/tmpst7ixap8.c"
target datalayout = "e-m:e-p270: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 @linev(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = add nsw i32 %10, %11
%13 = sub nsw i32 %12, 1
%14 = call i32 (...) @get_screen_rows()
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %36
16: ; preds = %4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @gotoxy(i32 noundef %17, i32 noundef %18)
store i32 0, ptr %9, align 4
br label %20
20: ; preds = %32, %16
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %35
24: ; preds = %20
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %9, align 4
%28 = add nsw i32 %26, %27
%29 = call i32 @gotoxy(i32 noundef %25, i32 noundef %28)
%30 = load i32, ptr %8, align 4
%31 = call i32 @putchar(i32 noundef %30)
br label %32
32: ; preds = %24
%33 = load i32, ptr %9, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %9, align 4
br label %20, !llvm.loop !6
35: ; preds = %20
br label %36
36: ; preds = %35, %4
ret void
}
declare i32 @get_screen_rows(...) #1
declare i32 @gotoxy(i32 noundef, i32 noundef) #1
declare i32 @putchar(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/tmpst7ixap8.c"
target datalayout = "e-m:e-p270: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 @linev(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = add nsw i32 %10, %11
%13 = sub nsw i32 %12, 1
%14 = call i32 (...) @get_screen_rows()
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %38
16: ; preds = %4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @gotoxy(i32 noundef %17, i32 noundef %18)
store i32 0, ptr %9, align 4
%20 = load i32, ptr %9, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %37
.lr.ph: ; preds = %16
br label %23
23: ; preds = %.lr.ph, %31
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %9, align 4
%27 = add nsw i32 %25, %26
%28 = call i32 @gotoxy(i32 noundef %24, i32 noundef %27)
%29 = load i32, ptr %8, align 4
%30 = call i32 @putchar(i32 noundef %29)
br label %31
31: ; preds = %23
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %16
br label %38
38: ; preds = %37, %4
ret void
}
declare i32 @get_screen_rows(...) #1
declare i32 @gotoxy(i32 noundef, i32 noundef) #1
declare i32 @putchar(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/tmp1r04mawk.c'
source_filename = "/tmp/tmp1r04mawk.c"
target datalayout = "e-m:e-p270: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/tmp1r04mawk.c"
target datalayout = "e-m:e-p270: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_wb0ahi_.c'
source_filename = "/tmp/tmp_wb0ahi_.c"
target datalayout = "e-m:e-p270: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
; 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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %7, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %6, align 4
br label %12
12: ; preds = %34, %0
%13 = load i32, ptr %2, align 4
%14 = icmp sgt i32 %13, 1
br i1 %14, label %15, label %37
15: ; preds = %12
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %3, align 4
%20 = srem i32 %18, %19
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 2
store i32 %24, ptr %7, align 4
br label %25
25: ; preds = %22, %15
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %26, %27
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %7, align 4
%31 = mul nsw i32 %29, %30
%32 = sdiv i32 %31, 100
%33 = sub nsw i32 %28, %32
store i32 %33, ptr %6, align 4
br label %34
34: ; preds = %25
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %2, align 4
br label %12, !llvm.loop !6
37: ; preds = %12
%38 = load i32, ptr %6, align 4
%39 = call i32 @printf(ptr noundef @.str, i32 noundef %38)
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_wb0ahi_.c"
target datalayout = "e-m:e-p270: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
; 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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %7, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %.lr.ph, label %38
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %33
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = srem i32 %17, %18
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %14
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 2
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %21, %14
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %25, %26
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %7, align 4
%30 = mul nsw i32 %28, %29
%31 = sdiv i32 %30, 100
%32 = sub nsw i32 %27, %31
store i32 %32, ptr %6, align 4
br label %33
33: ; preds = %24
%34 = load i32, ptr %2, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %2, align 4
%36 = load i32, ptr %2, align 4
%37 = icmp sgt i32 %36, 1
br i1 %37, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %38
38: ; preds = %._crit_edge, %0
%39 = load i32, ptr %6, align 4
%40 = call i32 @printf(ptr noundef @.str, i32 noundef %39)
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4nyjb8pi.c'
source_filename = "/tmp/tmp4nyjb8pi.c"
target datalayout = "e-m:e-p270: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 @_getline(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
store i64 0, ptr %4, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i64 @getline(ptr noundef %3, ptr noundef %4, ptr noundef %6)
store i64 %7, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @free(ptr noundef %11)
store ptr null, ptr %3, align 8
br label %13
13: ; preds = %10, %1
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare i64 @getline(ptr noundef, 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp4nyjb8pi.c"
target datalayout = "e-m:e-p270: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 @_getline(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
store i64 0, ptr %4, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i64 @getline(ptr noundef %3, ptr noundef %4, ptr noundef %6)
store i64 %7, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @free(ptr noundef %11)
store ptr null, ptr %3, align 8
br label %13
13: ; preds = %10, %1
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare i64 @getline(ptr noundef, 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp117d8fdy.c'
source_filename = "/tmp/tmp117d8fdy.c"
target datalayout = "e-m:e-p270: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/tmp117d8fdy.c"
target datalayout = "e-m:e-p270: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/tmp775oihlw.c'
source_filename = "/tmp/tmp775oihlw.c"
target datalayout = "e-m:e-p270: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"usage: %s filename\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Could not open file\0A\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %13)
store i32 0, ptr %3, align 4
br label %37
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %24
22: ; preds = %15
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %36
24: ; preds = %15
br label %25
25: ; preds = %30, %24
%26 = load ptr, ptr %6, align 8
%27 = call i32 @fgetc(ptr noundef %26)
store i32 %27, ptr %7, align 4
%28 = load i32, ptr @EOF, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i32, ptr %7, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %31)
br label %25, !llvm.loop !6
33: ; preds = %25
%34 = load ptr, ptr %6, align 8
%35 = call i32 @fclose(ptr noundef %34)
br label %36
36: ; preds = %33, %22
br label %37
37: ; preds = %10, %36
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp775oihlw.c"
target datalayout = "e-m:e-p270: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"usage: %s filename\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Could not open file\0A\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %13)
store i32 0, ptr %3, align 4
br label %40
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %24
22: ; preds = %15
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %39
24: ; preds = %15
%25 = load ptr, ptr %6, align 8
%26 = call i32 @fgetc(ptr noundef %25)
store i32 %26, ptr %7, align 4
%27 = load i32, ptr @EOF, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %.lr.ph, label %36
.lr.ph: ; preds = %24
br label %29
29: ; preds = %.lr.ph, %29
%30 = load i32, ptr %7, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @fgetc(ptr noundef %32)
store i32 %33, ptr %7, align 4
%34 = load i32, ptr @EOF, align 4
%35 = icmp ne i32 %33, %34
br i1 %35, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %36
36: ; preds = %._crit_edge, %24
%37 = load ptr, ptr %6, align 8
%38 = call i32 @fclose(ptr noundef %37)
br label %39
39: ; preds = %36, %22
br label %40
40: ; preds = %39, %10
%41 = load i32, ptr %3, align 4
ret i32 %41
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpxdiuuaup.c'
source_filename = "/tmp/tmpxdiuuaup.c"
target datalayout = "e-m:e-p270: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"refSeq\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @visiGeneSelectRefSeq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @matchingExtId(ptr noundef %5, ptr noundef %6, ptr noundef @.str)
ret ptr %7
}
declare ptr @matchingExtId(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/tmpxdiuuaup.c"
target datalayout = "e-m:e-p270: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"refSeq\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @visiGeneSelectRefSeq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @matchingExtId(ptr noundef %5, ptr noundef %6, ptr noundef @.str)
ret ptr %7
}
declare ptr @matchingExtId(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/tmp6ejxof1i.c'
source_filename = "/tmp/tmp6ejxof1i.c"
target datalayout = "e-m:e-p270: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/tmp6ejxof1i.c"
target datalayout = "e-m:e-p270: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/tmpkjesg2mx.c'
source_filename = "/tmp/tmpkjesg2mx.c"
target datalayout = "e-m:e-p270: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/tmpkjesg2mx.c"
target datalayout = "e-m:e-p270: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/tmpsn1oxbhr.c'
source_filename = "/tmp/tmpsn1oxbhr.c"
target datalayout = "e-m:e-p270: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 @write_llint(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [100 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store i64 %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%7 = load i64, ptr %2, align 8
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = call i32 @write_char(i32 noundef 45)
%11 = load i64, ptr %2, align 8
%12 = sub nsw i64 0, %11
store i64 %12, ptr %2, align 8
br label %13
13: ; preds = %9, %1
%14 = load i64, ptr %2, align 8
store i64 %14, ptr %6, align 8
br label %15
15: ; preds = %22, %13
%16 = load i64, ptr %6, align 8
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %19
%21 = call i32 @LLdiv10(i64 noundef %16, ptr noundef %6, ptr noundef %20)
br label %22
22: ; preds = %15
%23 = load i64, ptr %6, align 8
%24 = icmp ugt i64 %23, 0
br i1 %24, label %15, label %25, !llvm.loop !6
25: ; preds = %22
%26 = load i32, ptr %4, align 4
store i32 %26, ptr %5, align 4
br label %27
27: ; preds = %30, %25
%28 = load i32, ptr %4, align 4
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %38
30: ; preds = %27
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = add nsw i32 48, %35
%37 = call i32 @write_char(i32 noundef %36)
br label %27, !llvm.loop !8
38: ; preds = %27
%39 = load i32, ptr %5, align 4
ret i32 %39
}
declare i32 @write_char(i32 noundef) #1
declare i32 @LLdiv10(i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsn1oxbhr.c"
target datalayout = "e-m:e-p270: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 @write_llint(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [100 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store i64 %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%7 = load i64, ptr %2, align 8
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = call i32 @write_char(i32 noundef 45)
%11 = load i64, ptr %2, align 8
%12 = sub nsw i64 0, %11
store i64 %12, ptr %2, align 8
br label %13
13: ; preds = %9, %1
%14 = load i64, ptr %2, align 8
store i64 %14, ptr %6, align 8
br label %15
15: ; preds = %22, %13
%16 = load i64, ptr %6, align 8
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %19
%21 = call i32 @LLdiv10(i64 noundef %16, ptr noundef %6, ptr noundef %20)
br label %22
22: ; preds = %15
%23 = load i64, ptr %6, align 8
%24 = icmp ugt i64 %23, 0
br i1 %24, label %15, label %25, !llvm.loop !6
25: ; preds = %22
%26 = load i32, ptr %4, align 4
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sgt i32 %27, 0
br i1 %28, label %.lr.ph, label %39
.lr.ph: ; preds = %25
br label %29
29: ; preds = %.lr.ph, %29
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %32
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 48, %34
%36 = call i32 @write_char(i32 noundef %35)
%37 = load i32, ptr %4, align 4
%38 = icmp sgt i32 %37, 0
br i1 %38, label %29, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %29
br label %39
39: ; preds = %._crit_edge, %25
%40 = load i32, ptr %5, align 4
ret i32 %40
}
declare i32 @write_char(i32 noundef) #1
declare i32 @LLdiv10(i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpu46g5za0.c'
source_filename = "/tmp/tmpu46g5za0.c"
target datalayout = "e-m:e-p270: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 @initializeCacheHashTable(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, 8
%8 = trunc i64 %7 to i32
%9 = call i64 @malloc(i32 noundef %8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %20, %1
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %23
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
store ptr null, ptr %19, align 8
br label %20
20: ; preds = %15
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %11, !llvm.loop !6
23: ; preds = %11
%24 = load ptr, ptr %3, align 8
ret ptr %24
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu46g5za0.c"
target datalayout = "e-m:e-p270: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 @initializeCacheHashTable(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, 8
%8 = trunc i64 %7 to i32
%9 = call i64 @malloc(i32 noundef %8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %3, align 8
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %19
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
store ptr null, ptr %18, align 8
br label %19
19: ; preds = %14
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %1
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8pa5rg_3.c'
source_filename = "/tmp/tmp8pa5rg_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"hello, world : %s %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"aaa\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @HariMain() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 10)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8pa5rg_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"hello, world : %s %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"aaa\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @HariMain() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 10)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7rvitnhn.c'
source_filename = "/tmp/tmp7rvitnhn.c"
target datalayout = "e-m:e-p270: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 @zconnect(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [1024 x i8], align 16
%6 = alloca ptr, align 8
%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 %8, align 4
%9 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strncpy(ptr noundef %9, ptr noundef %10, i32 noundef 1000)
%12 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%13 = call ptr @strchr(ptr noundef %12, i8 noundef signext 58)
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %25
16: ; preds = %2
%17 = load ptr, ptr %6, align 8
store i8 0, ptr %17, align 1
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 1
%20 = call i32 @atoi(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %4, align 4
%24 = call i32 @zhost_connect(ptr noundef %21, i32 noundef %22, i32 noundef %23)
store i32 %24, ptr %8, align 4
br label %29
25: ; preds = %2
%26 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%27 = load i32, ptr %4, align 4
%28 = call i32 @zunix_connect(ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %8, align 4
br label %29
29: ; preds = %25, %16
%30 = load i32, ptr %8, align 4
ret i32 %30
}
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @zhost_connect(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @zunix_connect(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/tmp7rvitnhn.c"
target datalayout = "e-m:e-p270: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 @zconnect(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [1024 x i8], align 16
%6 = alloca ptr, align 8
%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 %8, align 4
%9 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strncpy(ptr noundef %9, ptr noundef %10, i32 noundef 1000)
%12 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%13 = call ptr @strchr(ptr noundef %12, i8 noundef signext 58)
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %25
16: ; preds = %2
%17 = load ptr, ptr %6, align 8
store i8 0, ptr %17, align 1
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 1
%20 = call i32 @atoi(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %4, align 4
%24 = call i32 @zhost_connect(ptr noundef %21, i32 noundef %22, i32 noundef %23)
store i32 %24, ptr %8, align 4
br label %29
25: ; preds = %2
%26 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%27 = load i32, ptr %4, align 4
%28 = call i32 @zunix_connect(ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %8, align 4
br label %29
29: ; preds = %25, %16
%30 = load i32, ptr %8, align 4
ret i32 %30
}
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @zhost_connect(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @zunix_connect(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_o5g66zg.c'
source_filename = "/tmp/tmp_o5g66zg.c"
target datalayout = "e-m:e-p270: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 w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x77() #0 {
%1 = call i32 @isgraph(i32 noundef 119) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 600, 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/tmp_o5g66zg.c"
target datalayout = "e-m:e-p270: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 w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x77() #0 {
%1 = call i32 @isgraph(i32 noundef 119) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 600, 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/tmpx7jg69bd.c'
source_filename = "/tmp/tmpx7jg69bd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @pthread_mutex_init(ptr noundef %3, ptr noundef null)
store i32 %5, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = call i32 @pthread_mutex_init(ptr noundef %4, ptr noundef null)
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 0
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = call i32 @pthread_mutex_lock(ptr noundef %3)
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 0
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 noundef %18)
%20 = call i32 @pthread_mutex_lock(ptr noundef %4)
store i32 %20, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp eq i32 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = call i32 @pthread_mutex_unlock(ptr noundef %3)
store i32 %25, ptr %2, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = call i32 @pthread_mutex_unlock(ptr noundef %4)
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp eq i32 %31, 0
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
%35 = call i32 @pthread_mutex_lock(ptr noundef %4)
store i32 %35, ptr %2, align 4
%36 = load i32, ptr %2, align 4
%37 = icmp eq i32 %36, 0
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = call i32 @pthread_mutex_lock(ptr noundef %3)
store i32 %40, ptr %2, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp eq i32 %41, 0
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = call i32 @pthread_mutex_unlock(ptr noundef %3)
store i32 %45, ptr %2, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp eq i32 %46, 0
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 noundef %48)
%50 = call i32 @pthread_mutex_unlock(ptr noundef %4)
store i32 %50, ptr %2, align 4
%51 = load i32, ptr %2, align 4
%52 = icmp eq i32 %51, 0
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 noundef %53)
%55 = call i32 @pthread_mutex_destroy(ptr noundef %3)
store i32 %55, ptr %2, align 4
%56 = call i32 @pthread_mutex_destroy(ptr noundef %4)
store i32 %56, ptr %2, align 4
ret i32 0
}
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @pthread_mutex_lock(ptr noundef) #1
declare i32 @pthread_mutex_unlock(ptr noundef) #1
declare i32 @pthread_mutex_destroy(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/tmpx7jg69bd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @pthread_mutex_init(ptr noundef %3, ptr noundef null)
store i32 %5, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = call i32 @pthread_mutex_init(ptr noundef %4, ptr noundef null)
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 0
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = call i32 @pthread_mutex_lock(ptr noundef %3)
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 0
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 noundef %18)
%20 = call i32 @pthread_mutex_lock(ptr noundef %4)
store i32 %20, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp eq i32 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = call i32 @pthread_mutex_unlock(ptr noundef %3)
store i32 %25, ptr %2, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = call i32 @pthread_mutex_unlock(ptr noundef %4)
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp eq i32 %31, 0
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
%35 = call i32 @pthread_mutex_lock(ptr noundef %4)
store i32 %35, ptr %2, align 4
%36 = load i32, ptr %2, align 4
%37 = icmp eq i32 %36, 0
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = call i32 @pthread_mutex_lock(ptr noundef %3)
store i32 %40, ptr %2, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp eq i32 %41, 0
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = call i32 @pthread_mutex_unlock(ptr noundef %3)
store i32 %45, ptr %2, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp eq i32 %46, 0
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 noundef %48)
%50 = call i32 @pthread_mutex_unlock(ptr noundef %4)
store i32 %50, ptr %2, align 4
%51 = load i32, ptr %2, align 4
%52 = icmp eq i32 %51, 0
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 noundef %53)
%55 = call i32 @pthread_mutex_destroy(ptr noundef %3)
store i32 %55, ptr %2, align 4
%56 = call i32 @pthread_mutex_destroy(ptr noundef %4)
store i32 %56, ptr %2, align 4
ret i32 0
}
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @pthread_mutex_lock(ptr noundef) #1
declare i32 @pthread_mutex_unlock(ptr noundef) #1
declare i32 @pthread_mutex_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ef6j8cr.c'
source_filename = "/tmp/tmp_ef6j8cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ef6j8cr.c"
target datalayout = "e-m:e-p270: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/tmpo08y5lrd.c'
source_filename = "/tmp/tmpo08y5lrd.c"
target datalayout = "e-m:e-p270: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/tmpo08y5lrd.c"
target datalayout = "e-m:e-p270: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/tmpsrnrx3ph.c'
source_filename = "/tmp/tmpsrnrx3ph.c"
target datalayout = "e-m:e-p270: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 @nrand(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call float (...) @frand()
store float %5, ptr %3, align 4
%6 = load float, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = sitofp i32 %7 to float
%9 = fmul float %6, %8
%10 = fptosi float %9 to i32
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = load i32, ptr %2, align 4
store i32 %16, ptr %4, align 4
br label %17
17: ; preds = %15, %1
%18 = load i32, ptr %4, align 4
ret i32 %18
}
declare float @frand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpsrnrx3ph.c"
target datalayout = "e-m:e-p270: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 @nrand(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call float (...) @frand()
store float %5, ptr %3, align 4
%6 = load float, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = sitofp i32 %7 to float
%9 = fmul float %6, %8
%10 = fptosi float %9 to i32
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = load i32, ptr %2, align 4
store i32 %16, ptr %4, align 4
br label %17
17: ; preds = %15, %1
%18 = load i32, ptr %4, align 4
ret i32 %18
}
declare float @frand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp7dvmf6da.c'
source_filename = "/tmp/tmp7dvmf6da.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_server_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @make_server_socket_q(i32 noundef %3, i32 noundef 1)
ret i32 %4
}
declare i32 @make_server_socket_q(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/tmp7dvmf6da.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_server_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @make_server_socket_q(i32 noundef %3, i32 noundef 1)
ret i32 %4
}
declare i32 @make_server_socket_q(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/tmpoqp_2_n_.c'
source_filename = "/tmp/tmpoqp_2_n_.c"
target datalayout = "e-m:e-p270: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 @pi(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i64, align 8
store i64 %0, ptr %2, align 8
store i64 0, ptr %3, align 8
store i64 0, ptr %4, align 8
store i64 0, ptr %7, align 8
br label %8
8: ; preds = %29, %1
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %2, align 8
%11 = icmp slt i64 %9, %10
br i1 %11, label %12, label %32
12: ; preds = %8
%13 = call double (...) @generate()
store double %13, ptr %5, align 8
%14 = call double (...) @generate()
store double %14, ptr %6, align 8
%15 = load double, ptr %5, align 8
%16 = load double, ptr %5, align 8
%17 = load double, ptr %6, align 8
%18 = load double, ptr %6, align 8
%19 = fmul double %17, %18
%20 = call double @llvm.fmuladd.f64(double %15, double %16, double %19)
%21 = fcmp ole double %20, 1.000000e+00
br i1 %21, label %22, label %25
22: ; preds = %12
%23 = load i64, ptr %3, align 8
%24 = add nsw i64 %23, 1
store i64 %24, ptr %3, align 8
br label %28
25: ; preds = %12
%26 = load i64, ptr %4, align 8
%27 = add nsw i64 %26, 1
store i64 %27, ptr %4, align 8
br label %28
28: ; preds = %25, %22
br label %29
29: ; preds = %28
%30 = load i64, ptr %7, align 8
%31 = add nsw i64 %30, 1
store i64 %31, ptr %7, align 8
br label %8, !llvm.loop !6
32: ; preds = %8
%33 = load i64, ptr %3, align 8
%34 = sitofp i64 %33 to double
%35 = fmul double 4.000000e+00, %34
%36 = load i64, ptr %3, align 8
%37 = load i64, ptr %4, align 8
%38 = add nsw i64 %36, %37
%39 = sitofp i64 %38 to double
%40 = fdiv double %35, %39
ret double %40
}
declare double @generate(...) #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/tmpoqp_2_n_.c"
target datalayout = "e-m:e-p270: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 @pi(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i64, align 8
store i64 %0, ptr %2, align 8
store i64 0, ptr %3, align 8
store i64 0, ptr %4, align 8
store i64 0, ptr %7, align 8
%8 = load i64, ptr %7, align 8
%9 = load i64, ptr %2, align 8
%10 = icmp slt i64 %8, %9
br i1 %10, label %.lr.ph, label %34
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %28
%12 = call double (...) @generate()
store double %12, ptr %5, align 8
%13 = call double (...) @generate()
store double %13, ptr %6, align 8
%14 = load double, ptr %5, align 8
%15 = load double, ptr %5, align 8
%16 = load double, ptr %6, align 8
%17 = load double, ptr %6, align 8
%18 = fmul double %16, %17
%19 = call double @llvm.fmuladd.f64(double %14, double %15, double %18)
%20 = fcmp ole double %19, 1.000000e+00
br i1 %20, label %21, label %24
21: ; preds = %11
%22 = load i64, ptr %3, align 8
%23 = add nsw i64 %22, 1
store i64 %23, ptr %3, align 8
br label %27
24: ; preds = %11
%25 = load i64, ptr %4, align 8
%26 = add nsw i64 %25, 1
store i64 %26, ptr %4, align 8
br label %27
27: ; preds = %24, %21
br label %28
28: ; preds = %27
%29 = load i64, ptr %7, align 8
%30 = add nsw i64 %29, 1
store i64 %30, ptr %7, align 8
%31 = load i64, ptr %7, align 8
%32 = load i64, ptr %2, align 8
%33 = icmp slt i64 %31, %32
br i1 %33, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %1
%35 = load i64, ptr %3, align 8
%36 = sitofp i64 %35 to double
%37 = fmul double 4.000000e+00, %36
%38 = load i64, ptr %3, align 8
%39 = load i64, ptr %4, align 8
%40 = add nsw i64 %38, %39
%41 = sitofp i64 %40 to double
%42 = fdiv double %37, %41
ret double %42
}
declare double @generate(...) #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/tmpszs2f4bz.c'
source_filename = "/tmp/tmpszs2f4bz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i64 @foo(i32 noundef %7, i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %6
store i32 1, ptr %1, align 4
br label %13
12: ; preds = %6, %0
store i32 0, ptr %1, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i64 @foo(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/tmpszs2f4bz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i64 @foo(i32 noundef %7, i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %6
store i32 1, ptr %1, align 4
br label %13
12: ; preds = %6, %0
store i32 0, ptr %1, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i64 @foo(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/tmp6y_h_2wt.c'
source_filename = "/tmp/tmp6y_h_2wt.c"
target datalayout = "e-m:e-p270: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 @julday_sub(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %7, align 4
%17 = sub nsw i32 %15, %16
%18 = load ptr, ptr %11, align 8
store i32 %17, ptr %18, align 4
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %8, align 4
%21 = sub nsw i32 %19, %20
%22 = load ptr, ptr %12, align 8
store i32 %21, ptr %22, align 4
%23 = load ptr, ptr %12, align 8
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %13, align 4
%25 = load ptr, ptr %11, align 8
%26 = call i32 @adjust_seconds(ptr noundef %25, ptr noundef %13)
%27 = load i32, ptr %13, align 4
%28 = load ptr, ptr %12, align 8
store i32 %27, ptr %28, align 4
%29 = load ptr, ptr %11, align 8
%30 = load i32, ptr %29, align 4
%31 = mul nsw i32 %30, 86400
%32 = load i32, ptr %13, align 4
%33 = add nsw i32 %31, %32
store i32 %33, ptr %14, align 4
%34 = load i32, ptr %14, align 4
%35 = sitofp i32 %34 to double
ret double %35
}
declare i32 @adjust_seconds(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/tmp6y_h_2wt.c"
target datalayout = "e-m:e-p270: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 @julday_sub(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %7, align 4
%17 = sub nsw i32 %15, %16
%18 = load ptr, ptr %11, align 8
store i32 %17, ptr %18, align 4
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %8, align 4
%21 = sub nsw i32 %19, %20
%22 = load ptr, ptr %12, align 8
store i32 %21, ptr %22, align 4
%23 = load ptr, ptr %12, align 8
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %13, align 4
%25 = load ptr, ptr %11, align 8
%26 = call i32 @adjust_seconds(ptr noundef %25, ptr noundef %13)
%27 = load i32, ptr %13, align 4
%28 = load ptr, ptr %12, align 8
store i32 %27, ptr %28, align 4
%29 = load ptr, ptr %11, align 8
%30 = load i32, ptr %29, align 4
%31 = mul nsw i32 %30, 86400
%32 = load i32, ptr %13, align 4
%33 = add nsw i32 %31, %32
store i32 %33, ptr %14, align 4
%34 = load i32, ptr %14, align 4
%35 = sitofp i32 %34 to double
ret double %35
}
declare i32 @adjust_seconds(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/tmp7j_m191x.c'
source_filename = "/tmp/tmp7j_m191x.c"
target datalayout = "e-m:e-p270: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 @call_ddot(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %9, align 8
%13 = call double @ddot_(ptr noundef %6, ptr noundef %11, ptr noundef %8, ptr noundef %12, ptr noundef %10)
ret double %13
}
declare double @ddot_(ptr noundef, ptr 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/tmp7j_m191x.c"
target datalayout = "e-m:e-p270: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 @call_ddot(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %9, align 8
%13 = call double @ddot_(ptr noundef %6, ptr noundef %11, ptr noundef %8, ptr noundef %12, ptr noundef %10)
ret double %13
}
declare double @ddot_(ptr noundef, ptr 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/tmp2cv17b0t.c'
source_filename = "/tmp/tmp2cv17b0t.c"
target datalayout = "e-m:e-p270: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/tmp2cv17b0t.c"
target datalayout = "e-m:e-p270: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/tmpen5ip403.c'
source_filename = "/tmp/tmpen5ip403.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Father:%d, This:%d, %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"End program\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr @stdout, align 4
%8 = call i32 (...) @getppid()
%9 = call i32 (...) @getpid()
%10 = load i32, ptr %6, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %6, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str, i32 noundef %8, i32 noundef %9, i32 noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @execl(ptr noundef %15, ptr noundef %18, ptr noundef null)
%20 = load i32, ptr @stdout, align 4
%21 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str.1)
ret i32 1
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @getppid(...) #1
declare i32 @getpid(...) #1
declare i32 @execl(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/tmpen5ip403.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Father:%d, This:%d, %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"End program\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr @stdout, align 4
%8 = call i32 (...) @getppid()
%9 = call i32 (...) @getpid()
%10 = load i32, ptr %6, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %6, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str, i32 noundef %8, i32 noundef %9, i32 noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @execl(ptr noundef %15, ptr noundef %18, ptr noundef null)
%20 = load i32, ptr @stdout, align 4
%21 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str.1)
ret i32 1
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @getppid(...) #1
declare i32 @getpid(...) #1
declare i32 @execl(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/tmp3rb6rdvs.c'
source_filename = "/tmp/tmp3rb6rdvs.c"
target datalayout = "e-m:e-p270: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/tmp3rb6rdvs.c"
target datalayout = "e-m:e-p270: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/tmpgt06y1rw.c'
source_filename = "/tmp/tmpgt06y1rw.c"
target datalayout = "e-m:e-p270: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 @SetMemW(i64 noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i16, align 2
store i64 %0, ptr %3, align 8
store i16 %1, ptr %4, align 2
%5 = load i64, ptr %3, align 8
%6 = load i16, ptr %4, align 2
%7 = zext i16 %6 to i32
%8 = ashr i32 %7, 8
%9 = and i32 %8, 255
%10 = trunc i32 %9 to i16
%11 = call i32 @ql_writebyte(i64 noundef %5, i16 noundef zeroext %10)
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 1
%14 = load i16, ptr %4, align 2
%15 = zext i16 %14 to i32
%16 = and i32 %15, 255
%17 = trunc i32 %16 to i16
%18 = call i32 @ql_writebyte(i64 noundef %13, i16 noundef zeroext %17)
ret void
}
declare i32 @ql_writebyte(i64 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgt06y1rw.c"
target datalayout = "e-m:e-p270: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 @SetMemW(i64 noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i16, align 2
store i64 %0, ptr %3, align 8
store i16 %1, ptr %4, align 2
%5 = load i64, ptr %3, align 8
%6 = load i16, ptr %4, align 2
%7 = zext i16 %6 to i32
%8 = ashr i32 %7, 8
%9 = and i32 %8, 255
%10 = trunc i32 %9 to i16
%11 = call i32 @ql_writebyte(i64 noundef %5, i16 noundef zeroext %10)
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 1
%14 = load i16, ptr %4, align 2
%15 = zext i16 %14 to i32
%16 = and i32 %15, 255
%17 = trunc i32 %16 to i16
%18 = call i32 @ql_writebyte(i64 noundef %13, i16 noundef zeroext %17)
ret void
}
declare i32 @ql_writebyte(i64 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwsi3jt1e.c'
source_filename = "/tmp/tmpwsi3jt1e.c"
target datalayout = "e-m:e-p270: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_0x3b() #0 {
%1 = call i64 @isalpha(i32 noundef 59)
%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 300, 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/tmpwsi3jt1e.c"
target datalayout = "e-m:e-p270: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_0x3b() #0 {
%1 = call i64 @isalpha(i32 noundef 59)
%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 300, 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/tmpsn_eb5br.c'
source_filename = "/tmp/tmpsn_eb5br.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@IPPROTO_TCP = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"socket() failed: %s\0A.\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"connect() failed: %s\0A.\00", align 1
@S_IFSOCK = 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 %struct.sockaddr_in, align 4
store i32 0, ptr %1, align 4
%4 = load i32, ptr @AF_INET, align 4
%5 = load i32, ptr @SOCK_STREAM, align 4
%6 = load i32, ptr @IPPROTO_TCP, align 4
%7 = call i32 @socket(i32 noundef %4, i32 noundef %5, i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %0
%10 = load i32, ptr @stderr, align 4
%11 = load i32, ptr @errno, align 4
%12 = call ptr @strerror(i32 noundef %11)
%13 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %12)
%14 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %14, ptr %1, align 4
br label %39
15: ; preds = %0
%16 = load i32, ptr @AF_INET, align 4
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 2
store i32 %16, ptr %17, align 4
%18 = call i32 @htons(i32 noundef 8000)
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 1
store i32 %18, ptr %19, align 4
%20 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 0
%21 = call i32 @inet_aton(ptr noundef @.str.1, ptr noundef %20)
%22 = load i32, ptr %2, align 4
%23 = call i64 @connect(i32 noundef %22, ptr noundef %3, i32 noundef 12)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %15
%26 = load i32, ptr @stderr, align 4
%27 = load i32, ptr @errno, align 4
%28 = call ptr @strerror(i32 noundef %27)
%29 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.2, ptr noundef %28)
%30 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %30, ptr %1, align 4
br label %39
31: ; preds = %15
%32 = load i32, ptr @S_IFSOCK, align 4
%33 = call i32 @isfdtype(i32 noundef 42, i32 noundef %32)
%34 = icmp ne i32 %33, -1
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %36, ptr %1, align 4
br label %39
37: ; preds = %31
%38 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %38, ptr %1, align 4
br label %39
39: ; preds = %37, %35, %25, %9
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_aton(ptr noundef, ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @isfdtype(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/tmpsn_eb5br.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@IPPROTO_TCP = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"socket() failed: %s\0A.\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"connect() failed: %s\0A.\00", align 1
@S_IFSOCK = 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 %struct.sockaddr_in, align 4
store i32 0, ptr %1, align 4
%4 = load i32, ptr @AF_INET, align 4
%5 = load i32, ptr @SOCK_STREAM, align 4
%6 = load i32, ptr @IPPROTO_TCP, align 4
%7 = call i32 @socket(i32 noundef %4, i32 noundef %5, i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %0
%10 = load i32, ptr @stderr, align 4
%11 = load i32, ptr @errno, align 4
%12 = call ptr @strerror(i32 noundef %11)
%13 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %12)
%14 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %14, ptr %1, align 4
br label %39
15: ; preds = %0
%16 = load i32, ptr @AF_INET, align 4
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 2
store i32 %16, ptr %17, align 4
%18 = call i32 @htons(i32 noundef 8000)
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 1
store i32 %18, ptr %19, align 4
%20 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 0
%21 = call i32 @inet_aton(ptr noundef @.str.1, ptr noundef %20)
%22 = load i32, ptr %2, align 4
%23 = call i64 @connect(i32 noundef %22, ptr noundef %3, i32 noundef 12)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %15
%26 = load i32, ptr @stderr, align 4
%27 = load i32, ptr @errno, align 4
%28 = call ptr @strerror(i32 noundef %27)
%29 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.2, ptr noundef %28)
%30 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %30, ptr %1, align 4
br label %39
31: ; preds = %15
%32 = load i32, ptr @S_IFSOCK, align 4
%33 = call i32 @isfdtype(i32 noundef 42, i32 noundef %32)
%34 = icmp ne i32 %33, -1
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %36, ptr %1, align 4
br label %39
37: ; preds = %31
%38 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %38, ptr %1, align 4
br label %39
39: ; preds = %37, %35, %25, %9
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_aton(ptr noundef, ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @isfdtype(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/tmp0eguxmtl.c'
source_filename = "/tmp/tmp0eguxmtl.c"
target datalayout = "e-m:e-p270: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"abertabc\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"index abc: %u\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"indexKMP abc: %u\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 ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = zext i32 %7 to i64
%9 = call ptr @llvm.stacksave()
store ptr %9, ptr %4, align 8
%10 = alloca i32, i64 %8, align 16
store i64 %8, ptr %5, align 8
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @getNext(ptr noundef %11, ptr noundef %10, i32 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = load ptr, ptr %3, align 8
%17 = call i32 @indexOf(ptr noundef %15, ptr noundef %16)
%18 = call i32 @printf(ptr noundef @.str.2, i32 noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = load ptr, ptr %3, align 8
%21 = call i32 @indexKMP(ptr noundef %19, ptr noundef %20, ptr noundef %10)
%22 = call i32 @printf(ptr noundef @.str.3, i32 noundef %21)
store i32 0, ptr %1, align 4
%23 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %23)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @getNext(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @indexOf(ptr noundef, ptr noundef) #1
declare i32 @indexKMP(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0eguxmtl.c"
target datalayout = "e-m:e-p270: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"abertabc\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"index abc: %u\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"indexKMP abc: %u\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 ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = zext i32 %7 to i64
%9 = call ptr @llvm.stacksave()
store ptr %9, ptr %4, align 8
%10 = alloca i32, i64 %8, align 16
store i64 %8, ptr %5, align 8
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @getNext(ptr noundef %11, ptr noundef %10, i32 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = load ptr, ptr %3, align 8
%17 = call i32 @indexOf(ptr noundef %15, ptr noundef %16)
%18 = call i32 @printf(ptr noundef @.str.2, i32 noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = load ptr, ptr %3, align 8
%21 = call i32 @indexKMP(ptr noundef %19, ptr noundef %20, ptr noundef %10)
%22 = call i32 @printf(ptr noundef @.str.3, i32 noundef %21)
store i32 0, ptr %1, align 4
%23 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %23)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @getNext(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @indexOf(ptr noundef, ptr noundef) #1
declare i32 @indexKMP(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1dvpiv7j.c'
source_filename = "/tmp/tmp1dvpiv7j.c"
target datalayout = "e-m:e-p270: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.nlmsghdr = type { i32 }
%struct.rtattr = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @addattr_len(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%14 = load i32, ptr %11, align 4
%15 = call i32 @RTA_LENGTH(i32 noundef %14)
store i32 %15, ptr %12, align 4
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds %struct.nlmsghdr, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 4
%19 = call i32 @NLMSG_ALIGN(i32 noundef %18)
%20 = load i32, ptr %12, align 4
%21 = add nsw i32 %19, %20
%22 = load i32, ptr %8, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %5
store i32 -1, ptr %6, align 4
br label %52
25: ; preds = %5
%26 = load ptr, ptr %7, align 8
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds %struct.nlmsghdr, ptr %27, i32 0, i32 0
%29 = load i32, ptr %28, align 4
%30 = call i32 @NLMSG_ALIGN(i32 noundef %29)
%31 = sext i32 %30 to i64
%32 = getelementptr i8, ptr %26, i64 %31
store ptr %32, ptr %13, align 8
%33 = load i32, ptr %9, align 4
%34 = load ptr, ptr %13, align 8
%35 = getelementptr inbounds %struct.rtattr, ptr %34, i32 0, i32 0
store i32 %33, ptr %35, align 4
%36 = load i32, ptr %12, align 4
%37 = load ptr, ptr %13, align 8
%38 = getelementptr inbounds %struct.rtattr, ptr %37, i32 0, i32 1
store i32 %36, ptr %38, align 4
%39 = load ptr, ptr %13, align 8
%40 = call i32 @RTA_DATA(ptr noundef %39)
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr %12, align 4
%43 = call i32 @memcpy(i32 noundef %40, ptr noundef %41, i32 noundef %42)
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds %struct.nlmsghdr, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = call i32 @NLMSG_ALIGN(i32 noundef %46)
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %47, %48
%50 = load ptr, ptr %7, align 8
%51 = getelementptr inbounds %struct.nlmsghdr, ptr %50, i32 0, i32 0
store i32 %49, ptr %51, align 4
store i32 0, ptr %6, align 4
br label %52
52: ; preds = %25, %24
%53 = load i32, ptr %6, align 4
ret i32 %53
}
declare i32 @RTA_LENGTH(i32 noundef) #1
declare i32 @NLMSG_ALIGN(i32 noundef) #1
declare i32 @memcpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @RTA_DATA(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/tmp1dvpiv7j.c"
target datalayout = "e-m:e-p270: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.nlmsghdr = type { i32 }
%struct.rtattr = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @addattr_len(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%14 = load i32, ptr %11, align 4
%15 = call i32 @RTA_LENGTH(i32 noundef %14)
store i32 %15, ptr %12, align 4
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds %struct.nlmsghdr, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 4
%19 = call i32 @NLMSG_ALIGN(i32 noundef %18)
%20 = load i32, ptr %12, align 4
%21 = add nsw i32 %19, %20
%22 = load i32, ptr %8, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %5
store i32 -1, ptr %6, align 4
br label %52
25: ; preds = %5
%26 = load ptr, ptr %7, align 8
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds %struct.nlmsghdr, ptr %27, i32 0, i32 0
%29 = load i32, ptr %28, align 4
%30 = call i32 @NLMSG_ALIGN(i32 noundef %29)
%31 = sext i32 %30 to i64
%32 = getelementptr i8, ptr %26, i64 %31
store ptr %32, ptr %13, align 8
%33 = load i32, ptr %9, align 4
%34 = load ptr, ptr %13, align 8
%35 = getelementptr inbounds %struct.rtattr, ptr %34, i32 0, i32 0
store i32 %33, ptr %35, align 4
%36 = load i32, ptr %12, align 4
%37 = load ptr, ptr %13, align 8
%38 = getelementptr inbounds %struct.rtattr, ptr %37, i32 0, i32 1
store i32 %36, ptr %38, align 4
%39 = load ptr, ptr %13, align 8
%40 = call i32 @RTA_DATA(ptr noundef %39)
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr %12, align 4
%43 = call i32 @memcpy(i32 noundef %40, ptr noundef %41, i32 noundef %42)
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds %struct.nlmsghdr, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = call i32 @NLMSG_ALIGN(i32 noundef %46)
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %47, %48
%50 = load ptr, ptr %7, align 8
%51 = getelementptr inbounds %struct.nlmsghdr, ptr %50, i32 0, i32 0
store i32 %49, ptr %51, align 4
store i32 0, ptr %6, align 4
br label %52
52: ; preds = %25, %24
%53 = load i32, ptr %6, align 4
ret i32 %53
}
declare i32 @RTA_LENGTH(i32 noundef) #1
declare i32 @NLMSG_ALIGN(i32 noundef) #1
declare i32 @memcpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @RTA_DATA(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/tmpqysbc2yb.c'
source_filename = "/tmp/tmpqysbc2yb.c"
target datalayout = "e-m:e-p270: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/tmpqysbc2yb.c"
target datalayout = "e-m:e-p270: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/tmpm3kpg8u4.c'
source_filename = "/tmp/tmpm3kpg8u4.c"
target datalayout = "e-m:e-p270: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 @poly(double noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store double %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 1, ptr %7, align 4
br label %8
8: ; preds = %22, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %25
12: ; preds = %8
%13 = load double, ptr %4, align 8
%14 = load i32, ptr %7, align 4
%15 = sub nsw i32 %14, 1
%16 = sitofp i32 %15 to double
%17 = call double @pow(double noundef %13, double noundef %16) #2
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
store double %17, ptr %21, align 8
br label %22
22: ; preds = %12
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
br label %8, !llvm.loop !6
25: ; preds = %8
ret void
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm3kpg8u4.c"
target datalayout = "e-m:e-p270: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 @poly(double noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store double %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 1, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %21
%12 = load double, ptr %4, align 8
%13 = load i32, ptr %7, align 4
%14 = sub nsw i32 %13, 1
%15 = sitofp i32 %14 to double
%16 = call double @pow(double noundef %12, double noundef %15) #2
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, ptr %17, i64 %19
store double %16, ptr %20, align 8
br label %21
21: ; preds = %11
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %3
ret void
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbszxxy60.c'
source_filename = "/tmp/tmpbszxxy60.c"
target datalayout = "e-m:e-p270: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 @U_WMRC5_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(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/tmpbszxxy60.c"
target datalayout = "e-m:e-p270: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 @U_WMRC5_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(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/tmpzarrunoo.c'
source_filename = "/tmp/tmpzarrunoo.c"
target datalayout = "e-m:e-p270: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 @unixnonblock(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @socknonblock(i32 noundef %3)
ret i32 %4
}
declare i32 @socknonblock(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/tmpzarrunoo.c"
target datalayout = "e-m:e-p270: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 @unixnonblock(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @socknonblock(i32 noundef %3)
ret i32 %4
}
declare i32 @socknonblock(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/tmp4s0e4l51.c'
source_filename = "/tmp/tmp4s0e4l51.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \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 ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 4
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %13
13: ; preds = %23, %0
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %26
17: ; preds = %13
%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
%22 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %21)
br label %23
23: ; preds = %17
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %13, !llvm.loop !6
26: ; preds = %13
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %2, align 4
%29 = call i32 @quicksort(ptr noundef %27, i32 noundef %28)
store i32 0, ptr %5, align 4
br label %30
30: ; preds = %41, %26
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %44
34: ; preds = %30
%35 = load ptr, ptr %3, 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 = call i32 @printf(ptr noundef @.str.1, i32 noundef %39)
br label %41
41: ; preds = %34
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %5, align 4
br label %30, !llvm.loop !8
44: ; preds = %30
%45 = load ptr, ptr %3, align 8
%46 = call i32 @free(ptr noundef %45)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @quicksort(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, 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/tmp4s0e4l51.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \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 ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 4
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %3, align 8
store i32 0, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %22
%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
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %20)
br label %22
22: ; preds = %16
%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 %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %0
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %2, align 4
%31 = call i32 @quicksort(ptr noundef %29, i32 noundef %30)
store i32 0, ptr %5, align 4
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph2, label %48
.lr.ph2: ; preds = %28
br label %35
35: ; preds = %.lr.ph2, %42
%36 = load ptr, ptr %3, 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 = call i32 @printf(ptr noundef @.str.1, i32 noundef %40)
br label %42
42: ; preds = %35
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %28
%49 = load ptr, ptr %3, align 8
%50 = call i32 @free(ptr noundef %49)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @quicksort(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, 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/tmphujv3y8x.c'
source_filename = "/tmp/tmphujv3y8x.c"
target datalayout = "e-m:e-p270: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 @pipe(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 @pipe2(ptr noundef %3, i32 noundef 0)
ret i32 %4
}
declare i32 @pipe2(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/tmphujv3y8x.c"
target datalayout = "e-m:e-p270: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 @pipe(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 @pipe2(ptr noundef %3, i32 noundef 0)
ret i32 %4
}
declare i32 @pipe2(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/tmpk_w87sw7.c'
source_filename = "/tmp/tmpk_w87sw7.c"
target datalayout = "e-m:e-p270: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/tmpk_w87sw7.c"
target datalayout = "e-m:e-p270: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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.