llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp61tbkra5.c'
source_filename = "/tmp/tmp61tbkra5.c"
target datalayout = "e-m:e-p270: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 @func(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fmul double %3, %4
%6 = call i32 @cos(double noundef %5)
%7 = mul nsw i32 34, %6
%8 = sitofp i32 %7 to double
ret double %8
}
declare i32 @cos(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp61tbkra5.c"
target datalayout = "e-m:e-p270: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 @func(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fmul double %3, %4
%6 = call i32 @cos(double noundef %5)
%7 = mul nsw i32 34, %6
%8 = sitofp i32 %7 to double
ret double %8
}
declare i32 @cos(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_4bzy6dj.c'
source_filename = "/tmp/tmp_4bzy6dj.c"
target datalayout = "e-m:e-p270: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"%5g\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Visualizar(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %34, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %37
13: ; preds = %9
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %29, %13
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %32
18: ; preds = %14
%19 = load ptr, ptr %4, 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 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %23, i64 %25
%27 = load double, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %27)
br label %29
29: ; preds = %18
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
br label %14, !llvm.loop !6
32: ; preds = %14
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %34
34: ; preds = %32
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %9, !llvm.loop !8
37: ; preds = %9
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_4bzy6dj.c"
target datalayout = "e-m:e-p270: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"%5g\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Visualizar(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph2, label %41
.lr.ph2: ; preds = %3
br label %12
12: ; preds = %.lr.ph2, %35
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %27
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
%25 = load double, ptr %24, align 8
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %25)
br label %27
27: ; preds = %16
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %12
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %35
35: ; preds = %33
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %3
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp6ljnfser.c'
source_filename = "/tmp/tmp6ljnfser.c"
target datalayout = "e-m:e-p270: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 [48 x i8] c"Pore3D - Performing thinning skeletonization...\00", align 1
@.str.1 = private unnamed_addr constant [71 x i8] c"Pore3D - Thinning skeletonization performed successfully in %dm%0.3fs.\00", align 1
@.str.2 = private unnamed_addr constant [60 x i8] c"Pore3D - Not enough (contiguous) memory. Program will exit.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @p3dThinningSkeletonization(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store i32 1, ptr %15, align 4
%19 = load i32, ptr %10, align 4
%20 = add nsw i32 %19, 2
store i32 %20, ptr %16, align 4
%21 = load i32, ptr %11, align 4
%22 = add nsw i32 %21, 2
store i32 %22, ptr %17, align 4
%23 = load i32, ptr %12, align 4
%24 = add nsw i32 %23, 2
store i32 %24, ptr %18, align 4
%25 = load ptr, ptr %13, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %31
27: ; preds = %6
%28 = call i32 (...) @p3dResetStartTime()
%29 = load ptr, ptr %13, align 8
%30 = call i32 (ptr, ...) %29(ptr noundef @.str)
br label %31
31: ; preds = %27, %6
%32 = load i32, ptr %16, align 4
%33 = load i32, ptr %17, align 4
%34 = mul nsw i32 %32, %33
%35 = load i32, ptr %18, align 4
%36 = mul nsw i32 %34, %35
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 1
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %14, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %44
43: ; preds = %31
br label %85
44: ; preds = %31
%45 = load ptr, ptr %8, align 8
%46 = load ptr, ptr %14, align 8
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %11, align 4
%49 = load i32, ptr %12, align 4
%50 = call i64 @p3dZeroPadding3D_uchar2uchar(ptr noundef %45, ptr noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef 1)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %44
br label %85
53: ; preds = %44
%54 = load ptr, ptr %14, align 8
%55 = load i32, ptr %16, align 4
%56 = load i32, ptr %17, align 4
%57 = load i32, ptr %18, align 4
%58 = call i64 @p3dThinning(ptr noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %57)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %53
br label %85
61: ; preds = %53
%62 = load ptr, ptr %14, align 8
%63 = load ptr, ptr %9, align 8
%64 = load i32, ptr %16, align 4
%65 = load i32, ptr %17, align 4
%66 = load i32, ptr %18, align 4
%67 = call i64 @p3dCrop3D_uchar2uchar(ptr noundef %62, ptr noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef 1)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %61
br label %85
70: ; preds = %61
%71 = load ptr, ptr %13, align 8
%72 = icmp ne ptr %71, null
br i1 %72, label %73, label %78
73: ; preds = %70
%74 = load ptr, ptr %13, align 8
%75 = call i32 (...) @p3dGetElapsedTime_min()
%76 = call i32 (...) @p3dGetElapsedTime_sec()
%77 = call i32 (ptr, ...) %74(ptr noundef @.str.1, i32 noundef %75, i32 noundef %76)
br label %78
78: ; preds = %73, %70
%79 = load ptr, ptr %14, align 8
%80 = icmp ne ptr %79, null
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load ptr, ptr %14, align 8
%83 = call i32 @free(ptr noundef %82)
br label %84
84: ; preds = %81, %78
store i32 2, ptr %7, align 4
br label %98
85: ; preds = %69, %60, %52, %43
%86 = load ptr, ptr %13, align 8
%87 = icmp ne ptr %86, null
br i1 %87, label %88, label %91
88: ; preds = %85
%89 = load ptr, ptr %13, align 8
%90 = call i32 (ptr, ...) %89(ptr noundef @.str.2)
br label %91
91: ; preds = %88, %85
%92 = load ptr, ptr %14, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %97
94: ; preds = %91
%95 = load ptr, ptr %14, align 8
%96 = call i32 @free(ptr noundef %95)
br label %97
97: ; preds = %94, %91
store i32 0, ptr %7, align 4
br label %98
98: ; preds = %97, %84
%99 = load i32, ptr %7, align 4
ret i32 %99
}
declare i32 @p3dResetStartTime(...) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @p3dZeroPadding3D_uchar2uchar(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @p3dThinning(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @p3dCrop3D_uchar2uchar(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @p3dGetElapsedTime_min(...) #1
declare i32 @p3dGetElapsedTime_sec(...) #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/tmp6ljnfser.c"
target datalayout = "e-m:e-p270: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 [48 x i8] c"Pore3D - Performing thinning skeletonization...\00", align 1
@.str.1 = private unnamed_addr constant [71 x i8] c"Pore3D - Thinning skeletonization performed successfully in %dm%0.3fs.\00", align 1
@.str.2 = private unnamed_addr constant [60 x i8] c"Pore3D - Not enough (contiguous) memory. Program will exit.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @p3dThinningSkeletonization(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store i32 1, ptr %15, align 4
%19 = load i32, ptr %10, align 4
%20 = add nsw i32 %19, 2
store i32 %20, ptr %16, align 4
%21 = load i32, ptr %11, align 4
%22 = add nsw i32 %21, 2
store i32 %22, ptr %17, align 4
%23 = load i32, ptr %12, align 4
%24 = add nsw i32 %23, 2
store i32 %24, ptr %18, align 4
%25 = load ptr, ptr %13, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %31
27: ; preds = %6
%28 = call i32 (...) @p3dResetStartTime()
%29 = load ptr, ptr %13, align 8
%30 = call i32 (ptr, ...) %29(ptr noundef @.str)
br label %31
31: ; preds = %27, %6
%32 = load i32, ptr %16, align 4
%33 = load i32, ptr %17, align 4
%34 = mul nsw i32 %32, %33
%35 = load i32, ptr %18, align 4
%36 = mul nsw i32 %34, %35
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 1
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %14, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %44
43: ; preds = %31
br label %85
44: ; preds = %31
%45 = load ptr, ptr %8, align 8
%46 = load ptr, ptr %14, align 8
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %11, align 4
%49 = load i32, ptr %12, align 4
%50 = call i64 @p3dZeroPadding3D_uchar2uchar(ptr noundef %45, ptr noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef 1)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %44
br label %85
53: ; preds = %44
%54 = load ptr, ptr %14, align 8
%55 = load i32, ptr %16, align 4
%56 = load i32, ptr %17, align 4
%57 = load i32, ptr %18, align 4
%58 = call i64 @p3dThinning(ptr noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %57)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %53
br label %85
61: ; preds = %53
%62 = load ptr, ptr %14, align 8
%63 = load ptr, ptr %9, align 8
%64 = load i32, ptr %16, align 4
%65 = load i32, ptr %17, align 4
%66 = load i32, ptr %18, align 4
%67 = call i64 @p3dCrop3D_uchar2uchar(ptr noundef %62, ptr noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef 1)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %61
br label %85
70: ; preds = %61
%71 = load ptr, ptr %13, align 8
%72 = icmp ne ptr %71, null
br i1 %72, label %73, label %78
73: ; preds = %70
%74 = load ptr, ptr %13, align 8
%75 = call i32 (...) @p3dGetElapsedTime_min()
%76 = call i32 (...) @p3dGetElapsedTime_sec()
%77 = call i32 (ptr, ...) %74(ptr noundef @.str.1, i32 noundef %75, i32 noundef %76)
br label %78
78: ; preds = %73, %70
%79 = load ptr, ptr %14, align 8
%80 = icmp ne ptr %79, null
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load ptr, ptr %14, align 8
%83 = call i32 @free(ptr noundef %82)
br label %84
84: ; preds = %81, %78
store i32 2, ptr %7, align 4
br label %98
85: ; preds = %69, %60, %52, %43
%86 = load ptr, ptr %13, align 8
%87 = icmp ne ptr %86, null
br i1 %87, label %88, label %91
88: ; preds = %85
%89 = load ptr, ptr %13, align 8
%90 = call i32 (ptr, ...) %89(ptr noundef @.str.2)
br label %91
91: ; preds = %88, %85
%92 = load ptr, ptr %14, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %97
94: ; preds = %91
%95 = load ptr, ptr %14, align 8
%96 = call i32 @free(ptr noundef %95)
br label %97
97: ; preds = %94, %91
store i32 0, ptr %7, align 4
br label %98
98: ; preds = %97, %84
%99 = load i32, ptr %7, align 4
ret i32 %99
}
declare i32 @p3dResetStartTime(...) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @p3dZeroPadding3D_uchar2uchar(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @p3dThinning(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @p3dCrop3D_uchar2uchar(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @p3dGetElapsedTime_min(...) #1
declare i32 @p3dGetElapsedTime_sec(...) #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/tmpxw77aaym.c'
source_filename = "/tmp/tmpxw77aaym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Usage: divc <n>\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"Generates optimal ARM code for divide-by-constant\0A\00", align 1
@.str.2 = private unnamed_addr constant [51 x i8] c"where <n> is one of (2^n-2^m) or (2^n+2^m) eg. 10\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Advanced RISC Machines [%s]\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"27 Jan 94\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [20 x i8] c"%d is not sensible\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"%d is an easy case\0A\00", align 1
@.str.7 = private unnamed_addr constant [41 x i8] c"%d is not one of (2^n-2^m) or (2^n+2^m)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4)
br label %77
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 i32 @atoi(ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp sle i32 %20, 1
br i1 %21, label %22, label %26
22: ; preds = %15
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr %6, align 4
%25 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.5, i32 noundef %24)
br label %76
26: ; preds = %15
store i32 1, ptr %7, align 4
br label %27
27: ; preds = %32, %26
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %7, align 4
%30 = and i32 %28, %29
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = load i32, ptr %7, align 4
%34 = shl i32 %33, 1
store i32 %34, ptr %7, align 4
br label %27, !llvm.loop !6
35: ; preds = %27
%36 = load i32, ptr %6, align 4
%37 = call i64 @powerof2(i32 noundef %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = load i32, ptr @stderr, align 4
%41 = load i32, ptr %6, align 4
%42 = call i32 @fprintf(i32 noundef %40, ptr noundef @.str.6, i32 noundef %41)
br label %75
43: ; preds = %35
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %44, %45
%47 = call i64 @powerof2(i32 noundef %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %56
49: ; preds = %43
%50 = load i32, ptr %6, align 4
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %52, %53
%55 = call i32 @divideby2(i32 noundef 0, i32 noundef %50, i32 noundef %51, i32 noundef %54)
br label %74
56: ; preds = %43
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr %7, align 4
%59 = sub nsw i32 %57, %58
%60 = call i64 @powerof2(i32 noundef %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %69
62: ; preds = %56
%63 = load i32, ptr %6, align 4
%64 = load i32, ptr %7, align 4
%65 = load i32, ptr %6, align 4
%66 = load i32, ptr %7, align 4
%67 = sub nsw i32 %65, %66
%68 = call i32 @divideby2(i32 noundef 1, i32 noundef %63, i32 noundef %64, i32 noundef %67)
br label %73
69: ; preds = %56
%70 = load i32, ptr @stderr, align 4
%71 = load i32, ptr %6, align 4
%72 = call i32 @fprintf(i32 noundef %70, ptr noundef @.str.7, i32 noundef %71)
br label %73
73: ; preds = %69, %62
br label %74
74: ; preds = %73, %49
br label %75
75: ; preds = %74, %39
br label %76
76: ; preds = %75, %22
br label %77
77: ; preds = %76, %10
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @powerof2(i32 noundef) #1
declare i32 @divideby2(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxw77aaym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Usage: divc <n>\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"Generates optimal ARM code for divide-by-constant\0A\00", align 1
@.str.2 = private unnamed_addr constant [51 x i8] c"where <n> is one of (2^n-2^m) or (2^n+2^m) eg. 10\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Advanced RISC Machines [%s]\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"27 Jan 94\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [20 x i8] c"%d is not sensible\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"%d is an easy case\0A\00", align 1
@.str.7 = private unnamed_addr constant [41 x i8] c"%d is not one of (2^n-2^m) or (2^n+2^m)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4)
br label %80
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 i32 @atoi(ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp sle i32 %20, 1
br i1 %21, label %22, label %26
22: ; preds = %15
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr %6, align 4
%25 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.5, i32 noundef %24)
br label %79
26: ; preds = %15
store i32 1, ptr %7, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = and i32 %27, %28
%30 = icmp eq i32 %29, 0
br i1 %30, label %.lr.ph, label %38
.lr.ph: ; preds = %26
br label %31
31: ; preds = %.lr.ph, %31
%32 = load i32, ptr %7, align 4
%33 = shl i32 %32, 1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %7, align 4
%36 = and i32 %34, %35
%37 = icmp eq i32 %36, 0
br i1 %37, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %38
38: ; preds = %._crit_edge, %26
%39 = load i32, ptr %6, align 4
%40 = call i64 @powerof2(i32 noundef %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %46
42: ; preds = %38
%43 = load i32, ptr @stderr, align 4
%44 = load i32, ptr %6, align 4
%45 = call i32 @fprintf(i32 noundef %43, ptr noundef @.str.6, i32 noundef %44)
br label %78
46: ; preds = %38
%47 = load i32, ptr %6, align 4
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %47, %48
%50 = call i64 @powerof2(i32 noundef %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %59
52: ; preds = %46
%53 = load i32, ptr %6, align 4
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %55, %56
%58 = call i32 @divideby2(i32 noundef 0, i32 noundef %53, i32 noundef %54, i32 noundef %57)
br label %77
59: ; preds = %46
%60 = load i32, ptr %6, align 4
%61 = load i32, ptr %7, align 4
%62 = sub nsw i32 %60, %61
%63 = call i64 @powerof2(i32 noundef %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %72
65: ; preds = %59
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr %7, align 4
%68 = load i32, ptr %6, align 4
%69 = load i32, ptr %7, align 4
%70 = sub nsw i32 %68, %69
%71 = call i32 @divideby2(i32 noundef 1, i32 noundef %66, i32 noundef %67, i32 noundef %70)
br label %76
72: ; preds = %59
%73 = load i32, ptr @stderr, align 4
%74 = load i32, ptr %6, align 4
%75 = call i32 @fprintf(i32 noundef %73, ptr noundef @.str.7, i32 noundef %74)
br label %76
76: ; preds = %72, %65
br label %77
77: ; preds = %76, %52
br label %78
78: ; preds = %77, %42
br label %79
79: ; preds = %78, %22
br label %80
80: ; preds = %79, %10
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @powerof2(i32 noundef) #1
declare i32 @divideby2(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqifmmjdk.c'
source_filename = "/tmp/tmpqifmmjdk.c"
target datalayout = "e-m:e-p270: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_l(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 inbounds 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 %11, 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/tmpqifmmjdk.c"
target datalayout = "e-m:e-p270: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_l(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 inbounds 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 %11, 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/tmpozcgl1ft.c'
source_filename = "/tmp/tmpozcgl1ft.c"
target datalayout = "e-m:e-p270: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/tmpozcgl1ft.c"
target datalayout = "e-m:e-p270: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/tmpjgc7u9og.c'
source_filename = "/tmp/tmpjgc7u9og.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"%s\09%%al,%d(%%rbp)\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"movb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgstorlb(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 @ngen(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %3)
ret void
}
declare i32 @ngen(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjgc7u9og.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"%s\09%%al,%d(%%rbp)\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"movb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgstorlb(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 @ngen(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %3)
ret void
}
declare i32 @ngen(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7dts5_d0.c'
source_filename = "/tmp/tmp7dts5_d0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_COLOR_BUFFER_BIT = dso_local global i32 0, align 4
@GL_DEPTH_BUFFER_BIT = dso_local global i32 0, align 4
@GL_QUADS = 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/tmp7dts5_d0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_COLOR_BUFFER_BIT = dso_local global i32 0, align 4
@GL_DEPTH_BUFFER_BIT = dso_local global i32 0, align 4
@GL_QUADS = 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/tmpurcdmi8v.c'
source_filename = "/tmp/tmpurcdmi8v.c"
target datalayout = "e-m:e-p270: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.newfroot = private unnamed_addr constant [14 x i8] c"Snozberry\00\00\00\00\00", align 1
@.str = private unnamed_addr constant [10 x i8] c"froot.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Error opening file\00", align 1
@SEEK_SET = 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 ptr, align 8
%3 = alloca [14 x i8], align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.newfroot, i64 14, i1 false)
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %10, label %8
8: ; preds = %0
%9 = call i32 @puts(ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %22
10: ; preds = %0
store i32 12, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 %11, 14
store i32 %12, ptr %5, align 4
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr @SEEK_SET, align 4
%16 = call i32 @fseek(ptr noundef %13, i32 noundef %14, i32 noundef %15)
%17 = getelementptr inbounds [14 x i8], ptr %3, i64 0, i64 0
%18 = load ptr, ptr %2, align 8
%19 = call i32 @fwrite(ptr noundef %17, i32 noundef 14, i32 noundef 1, ptr noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = call i32 @fclose(ptr noundef %20)
store i32 0, ptr %1, align 4
br label %22
22: ; preds = %10, %8
%23 = load i32, ptr %1, align 4
ret i32 %23
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @puts(ptr noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpurcdmi8v.c"
target datalayout = "e-m:e-p270: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.newfroot = private unnamed_addr constant [14 x i8] c"Snozberry\00\00\00\00\00", align 1
@.str = private unnamed_addr constant [10 x i8] c"froot.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Error opening file\00", align 1
@SEEK_SET = 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 ptr, align 8
%3 = alloca [14 x i8], align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.newfroot, i64 14, i1 false)
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %10, label %8
8: ; preds = %0
%9 = call i32 @puts(ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %22
10: ; preds = %0
store i32 12, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 %11, 14
store i32 %12, ptr %5, align 4
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr @SEEK_SET, align 4
%16 = call i32 @fseek(ptr noundef %13, i32 noundef %14, i32 noundef %15)
%17 = getelementptr inbounds [14 x i8], ptr %3, i64 0, i64 0
%18 = load ptr, ptr %2, align 8
%19 = call i32 @fwrite(ptr noundef %17, i32 noundef 14, i32 noundef 1, ptr noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = call i32 @fclose(ptr noundef %20)
store i32 0, ptr %1, align 4
br label %22
22: ; preds = %10, %8
%23 = load i32, ptr %1, align 4
ret i32 %23
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @puts(ptr noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmjvdjqw6.c'
source_filename = "/tmp/tmpmjvdjqw6.c"
target datalayout = "e-m:e-p270: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 [166 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BCLinux/qga-bc/refs/heads/ai-touchbook/agent/qemu-0.12.4/tests/linux-test.c\00", align 1
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_pipe() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [2 x i32], align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%10 = call i32 @pipe(ptr noundef %9)
%11 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 358, i32 noundef %10)
%12 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr @F_SETFL, align 4
%15 = load i32, ptr @O_NONBLOCK, align 4
%16 = call i32 @fcntl(i32 noundef %13, i32 noundef %14, i32 noundef %15)
%17 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 359, i32 noundef %16)
%18 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr @F_SETFL, align 4
%21 = load i32, ptr @O_NONBLOCK, align 4
%22 = call i32 @fcntl(i32 noundef %19, i32 noundef %20, i32 noundef %21)
%23 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 360, i32 noundef %22)
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %24
24: ; preds = %78, %0
%25 = call i32 @FD_ZERO(ptr noundef %1)
%26 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %4, align 4
%28 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%29 = load i32, ptr %28, align 4
%30 = call i32 @FD_SET(i32 noundef %29, ptr noundef %1)
%31 = call i32 @FD_ZERO(ptr noundef %2)
%32 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%33 = load i32, ptr %32, align 4
%34 = call i32 @FD_SET(i32 noundef %33, ptr noundef %2)
%35 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%36 = load i32, ptr %35, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp sgt i32 %36, %37
br i1 %38, label %39, label %42
39: ; preds = %24
%40 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%41 = load i32, ptr %40, align 4
store i32 %41, ptr %4, align 4
br label %42
42: ; preds = %39, %24
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
%45 = call i32 @select(i32 noundef %44, ptr noundef %1, ptr noundef %2, ptr noundef null, ptr noundef null)
%46 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 373, i32 noundef %45)
store i32 %46, ptr %5, align 4
%47 = load i32, ptr %5, align 4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %78
49: ; preds = %42
%50 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%51 = load i32, ptr %50, align 4
%52 = call i64 @FD_ISSET(i32 noundef %51, ptr noundef %1)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %65
54: ; preds = %49
%55 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%56 = load i32, ptr %55, align 4
%57 = call i32 @read(i32 noundef %56, ptr noundef %6, i32 noundef 1)
%58 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 376, i32 noundef %57)
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
%61 = load i32, ptr %8, align 4
%62 = icmp sge i32 %61, 512
br i1 %62, label %63, label %64
63: ; preds = %54
br label %79
64: ; preds = %54
br label %65
65: ; preds = %64, %49
%66 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%67 = load i32, ptr %66, align 4
%68 = call i64 @FD_ISSET(i32 noundef %67, ptr noundef %2)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %77
70: ; preds = %65
store i8 97, ptr %6, align 1
%71 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%72 = load i32, ptr %71, align 4
%73 = call i32 @write(i32 noundef %72, ptr noundef %6, i32 noundef 1)
%74 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 383, i32 noundef %73)
%75 = load i32, ptr %7, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %7, align 4
br label %77
77: ; preds = %70, %65
br label %78
78: ; preds = %77, %42
br label %24
79: ; preds = %63
%80 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%81 = load i32, ptr %80, align 4
%82 = call i32 @close(i32 noundef %81)
%83 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 388, i32 noundef %82)
%84 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%85 = load i32, ptr %84, align 4
%86 = call i32 @close(i32 noundef %85)
%87 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 389, i32 noundef %86)
ret void
}
declare i32 @__chk_error(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmjvdjqw6.c"
target datalayout = "e-m:e-p270: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 [166 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BCLinux/qga-bc/refs/heads/ai-touchbook/agent/qemu-0.12.4/tests/linux-test.c\00", align 1
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_pipe() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [2 x i32], align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%10 = call i32 @pipe(ptr noundef %9)
%11 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 358, i32 noundef %10)
%12 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr @F_SETFL, align 4
%15 = load i32, ptr @O_NONBLOCK, align 4
%16 = call i32 @fcntl(i32 noundef %13, i32 noundef %14, i32 noundef %15)
%17 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 359, i32 noundef %16)
%18 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr @F_SETFL, align 4
%21 = load i32, ptr @O_NONBLOCK, align 4
%22 = call i32 @fcntl(i32 noundef %19, i32 noundef %20, i32 noundef %21)
%23 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 360, i32 noundef %22)
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%24 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
br label %25
25: ; preds = %78, %0
%26 = call i32 @FD_ZERO(ptr noundef %1)
%27 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %4, align 4
%29 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%30 = load i32, ptr %29, align 4
%31 = call i32 @FD_SET(i32 noundef %30, ptr noundef %1)
%32 = call i32 @FD_ZERO(ptr noundef %2)
%33 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%34 = load i32, ptr %33, align 4
%35 = call i32 @FD_SET(i32 noundef %34, ptr noundef %2)
%36 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%37 = load i32, ptr %36, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp sgt i32 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %25
%41 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%42 = load i32, ptr %41, align 4
store i32 %42, ptr %4, align 4
br label %43
43: ; preds = %40, %25
%44 = load i32, ptr %4, align 4
%45 = add nsw i32 %44, 1
%46 = call i32 @select(i32 noundef %45, ptr noundef %1, ptr noundef %2, ptr noundef null, ptr noundef null)
%47 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 373, i32 noundef %46)
store i32 %47, ptr %5, align 4
%48 = load i32, ptr %5, align 4
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %78
50: ; preds = %43
%51 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%52 = load i32, ptr %51, align 4
%53 = call i64 @FD_ISSET(i32 noundef %52, ptr noundef %1)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %65
55: ; preds = %50
%56 = load i32, ptr %24, align 4
%57 = call i32 @read(i32 noundef %56, ptr noundef %6, i32 noundef 1)
%58 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 376, i32 noundef %57)
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
%61 = load i32, ptr %8, align 4
%62 = icmp sge i32 %61, 512
br i1 %62, label %63, label %64
63: ; preds = %55
br label %79
64: ; preds = %55
br label %65
65: ; preds = %64, %50
%66 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%67 = load i32, ptr %66, align 4
%68 = call i64 @FD_ISSET(i32 noundef %67, ptr noundef %2)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %77
70: ; preds = %65
store i8 97, ptr %6, align 1
%71 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%72 = load i32, ptr %71, align 4
%73 = call i32 @write(i32 noundef %72, ptr noundef %6, i32 noundef 1)
%74 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 383, i32 noundef %73)
%75 = load i32, ptr %7, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %7, align 4
br label %77
77: ; preds = %70, %65
br label %78
78: ; preds = %77, %43
br label %25
79: ; preds = %63
%80 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%81 = load i32, ptr %80, align 4
%82 = call i32 @close(i32 noundef %81)
%83 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 388, i32 noundef %82)
%84 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%85 = load i32, ptr %84, align 4
%86 = call i32 @close(i32 noundef %85)
%87 = call i32 @__chk_error(ptr noundef @.str, i32 noundef 389, i32 noundef %86)
ret void
}
declare i32 @__chk_error(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsj8c8uqk.c'
source_filename = "/tmp/tmpsj8c8uqk.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Element not found.\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Element found at index %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca 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
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %3, align 8
%13 = alloca i32, i64 %11, align 16
store i64 %11, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %23, %0
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %13, i64 %20
%22 = call i32 @scanf(ptr noundef @.str, ptr noundef %21)
br label %23
23: ; preds = %18
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %14, !llvm.loop !6
26: ; preds = %14
%27 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %2, align 4
%30 = call i32 @fibSearch(ptr noundef %13, i32 noundef %28, i32 noundef %29)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %35
33: ; preds = %26
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %38
35: ; preds = %26
%36 = load i32, ptr %7, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %36)
store i32 0, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %38
38: ; preds = %35, %33
%39 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %39)
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @fibSearch(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsj8c8uqk.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Element not found.\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Element found at index %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca 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
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %3, align 8
%13 = alloca i32, i64 %11, align 16
store i64 %11, ptr %4, align 8
store i32 0, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %22
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %13, i64 %19
%21 = call i32 @scanf(ptr noundef @.str, ptr noundef %20)
br label %22
22: ; preds = %17
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %0
%29 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %2, align 4
%32 = call i32 @fibSearch(ptr noundef %13, i32 noundef %30, i32 noundef %31)
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %37
35: ; preds = %28
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %40
37: ; preds = %28
%38 = load i32, ptr %7, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %38)
store i32 0, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %40
40: ; preds = %37, %35
%41 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %41)
%42 = load i32, ptr %1, align 4
ret i32 %42
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @fibSearch(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_x4zmx0h.c'
source_filename = "/tmp/tmp_x4zmx0h.c"
target datalayout = "e-m:e-p270: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_x4zmx0h.c"
target datalayout = "e-m:e-p270: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/tmparsfpv49.c'
source_filename = "/tmp/tmparsfpv49.c"
target datalayout = "e-m:e-p270: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/tmparsfpv49.c"
target datalayout = "e-m:e-p270: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/tmpol4gnz6b.c'
source_filename = "/tmp/tmpol4gnz6b.c"
target datalayout = "e-m:e-p270: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 @init_buffer(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %19, %2
%7 = load i32, ptr %5, align 4
%8 = sext i32 %7 to i64
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %22
11: ; preds = %6
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 48
%14 = trunc i32 %13 to i8
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, 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 = %11
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %6, !llvm.loop !6
22: ; preds = %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpol4gnz6b.c"
target datalayout = "e-m:e-p270: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 @init_buffer(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = sext i32 %6 to i64
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %18
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 48
%13 = trunc i32 %12 to i8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store i8 %13, ptr %17, align 1
br label %18
18: ; preds = %10
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = load i64, ptr %4, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %25
25: ; preds = %._crit_edge, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmputnhxu2c.c'
source_filename = "/tmp/tmputnhxu2c.c"
target datalayout = "e-m:e-p270: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 @SPIIntEnable(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %4, align 8
%7 = and i64 %6, 536870912
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load i64, ptr %3, align 8
%11 = call i32 @SPIDmaMaskGet(i64 noundef %10)
%12 = sext i32 %11 to i64
store i64 %12, ptr %5, align 8
%13 = load i64, ptr %5, align 8
store volatile i64 %13, ptr inttoptr (i64 1141006484 to ptr), align 8
br label %14
14: ; preds = %9, %2
%15 = load i64, ptr %4, align 8
%16 = and i64 %15, 268435456
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %14
%19 = load i64, ptr %3, align 8
%20 = call i32 @SPIDmaMaskGet(i64 noundef %19)
%21 = ashr i32 %20, 1
%22 = sext i32 %21 to i64
store i64 %22, ptr %5, align 8
%23 = load i64, ptr %5, align 8
store volatile i64 %23, ptr inttoptr (i64 1141006484 to ptr), align 8
br label %24
24: ; preds = %18, %14
%25 = load i64, ptr %4, align 8
%26 = and i64 %25, 196623
%27 = load i64, ptr %3, align 8
%28 = add i64 %27, 284
%29 = inttoptr i64 %28 to ptr
%30 = load volatile i64, ptr %29, align 8
%31 = or i64 %30, %26
store volatile i64 %31, ptr %29, align 8
ret void
}
declare i32 @SPIDmaMaskGet(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/tmputnhxu2c.c"
target datalayout = "e-m:e-p270: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 @SPIIntEnable(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %4, align 8
%7 = and i64 %6, 536870912
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load i64, ptr %3, align 8
%11 = call i32 @SPIDmaMaskGet(i64 noundef %10)
%12 = sext i32 %11 to i64
store i64 %12, ptr %5, align 8
%13 = load i64, ptr %5, align 8
store volatile i64 %13, ptr inttoptr (i64 1141006484 to ptr), align 8
br label %14
14: ; preds = %9, %2
%15 = load i64, ptr %4, align 8
%16 = and i64 %15, 268435456
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %14
%19 = load i64, ptr %3, align 8
%20 = call i32 @SPIDmaMaskGet(i64 noundef %19)
%21 = ashr i32 %20, 1
%22 = sext i32 %21 to i64
store i64 %22, ptr %5, align 8
%23 = load i64, ptr %5, align 8
store volatile i64 %23, ptr inttoptr (i64 1141006484 to ptr), align 8
br label %24
24: ; preds = %18, %14
%25 = load i64, ptr %4, align 8
%26 = and i64 %25, 196623
%27 = load i64, ptr %3, align 8
%28 = add i64 %27, 284
%29 = inttoptr i64 %28 to ptr
%30 = load volatile i64, ptr %29, align 8
%31 = or i64 %30, %26
store volatile i64 %31, ptr %29, align 8
ret void
}
declare i32 @SPIDmaMaskGet(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/tmpfatnvmj6.c'
source_filename = "/tmp/tmpfatnvmj6.c"
target datalayout = "e-m:e-p270: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 [43 x i8] c"# contents of %%eax will be the exit code\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"\09movl\09%%esp, %%ebp\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"\09subl\09$8, %%esp\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"\09leave\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"\09ret\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"\09.subsections_via_symbols\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @asmfooter() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfatnvmj6.c"
target datalayout = "e-m:e-p270: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 [43 x i8] c"# contents of %%eax will be the exit code\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"\09movl\09%%esp, %%ebp\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"\09subl\09$8, %%esp\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"\09leave\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"\09ret\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"\09.subsections_via_symbols\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @asmfooter() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpng5cbnor.c'
source_filename = "/tmp/tmpng5cbnor.c"
target datalayout = "e-m:e-p270: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 @GetWindowWidth() #0 {
%1 = call i32 (...) @InitCheck()
ret double 8.500000e+00
}
declare i32 @InitCheck(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpng5cbnor.c"
target datalayout = "e-m:e-p270: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 @GetWindowWidth() #0 {
%1 = call i32 (...) @InitCheck()
ret double 8.500000e+00
}
declare i32 @InitCheck(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3yxplnr8.c'
source_filename = "/tmp/tmp3yxplnr8.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"\0A%s: generate CAN frames\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"Usage: %s [options] <CAN interface>\0A\00", align 1
@.str.2 = private unnamed_addr constant [64 x i8] c"Options: -g <ms> (gap in milli seconds - default: %d ms)\0A\00", align 1
@.str.3 = private unnamed_addr constant [72 x i8] c" -e (generate extended frame mode (EFF) CAN frames)\0A\00", align 1
@.str.4 = private unnamed_addr constant [53 x i8] c" -f (generate CAN FD CAN frames)\0A\00", align 1
@.str.5 = private unnamed_addr constant [79 x i8] c" -b (generate CAN FD CAN frames with bitrate switch (BRS))\0A\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c" -R (send RTR frame)\0A\00", align 1
@.str.7 = private unnamed_addr constant [49 x i8] c" -m (mix -e -f -b -R frames)\0A\00", align 1
@.str.8 = private unnamed_addr constant [61 x i8] c" -I <mode> (CAN ID generation mode - see below)\0A\00", align 1
@.str.9 = private unnamed_addr constant [81 x i8] c" -L <mode> (CAN data length code (dlc) generation mode - see below)\0A\00", align 1
@.str.10 = private unnamed_addr constant [73 x i8] c" -D <mode> (CAN data (payload) generation mode - see below)\0A\00", align 1
@.str.11 = private unnamed_addr constant [77 x i8] c" -p <timeout> (poll on -ENOBUFS to write frames with <timeout> ms)\0A\00", align 1
@.str.12 = private unnamed_addr constant [80 x i8] c" -n <count> (terminate after <count> CAN frames - default infinite)\0A\00", align 1
@.str.13 = private unnamed_addr constant [76 x i8] c" -i (ignore -ENOBUFS return values on write() syscalls)\0A\00", align 1
@.str.14 = private unnamed_addr constant [73 x i8] c" -x (disable local loopback of generated CAN frames)\0A\00", align 1
@.str.15 = private unnamed_addr constant [80 x i8] c" -v (increment verbose level for printing sent CAN frames)\0A\0A\00", align 1
@.str.16 = private unnamed_addr constant [19 x i8] c"Generation modes:\0A\00", align 1
@.str.17 = private unnamed_addr constant [39 x i8] c"'r' => random values (default)\0A\00", align 1
@.str.18 = private unnamed_addr constant [32 x i8] c"'i' => increment values\0A\00", align 1
@.str.19 = private unnamed_addr constant [43 x i8] c"<hexvalue> => fix value using <hexvalue>\0A\0A\00", align 1
@.str.20 = private unnamed_addr constant [74 x i8] c"When incrementing the CAN data the data length code minimum is set to 1.\0A\00", align 1
@.str.21 = private unnamed_addr constant [73 x i8] c"CAN IDs and data content are given and expected in hexadecimal values.\0A\0A\00", align 1
@.str.22 = private unnamed_addr constant [11 x i8] c"Examples:\0A\00", align 1
@.str.23 = private unnamed_addr constant [40 x i8] c"%s vcan0 -g 4 -I 42A -L 1 -D i -v -v \00", align 1
@.str.24 = private unnamed_addr constant [38 x i8] c"(fixed CAN ID and length, inc. data)\0A\00", align 1
@.str.25 = private unnamed_addr constant [40 x i8] c"%s vcan0 -e -L i -v -v -v \00", align 1
@.str.26 = private unnamed_addr constant [37 x i8] c"(generate EFF frames, incr. length)\0A\00", align 1
@.str.27 = private unnamed_addr constant [40 x i8] c"%s vcan0 -D 11223344DEADBEEF -L 8 \00", align 1
@.str.28 = private unnamed_addr constant [37 x i8] c"(fixed CAN data payload and length)\0A\00", align 1
@.str.29 = private unnamed_addr constant [40 x i8] c"%s vcan0 -g 0 -i -x \00", align 1
@.str.30 = private unnamed_addr constant [36 x i8] c"(full load test ignoring -ENOBUFS)\0A\00", align 1
@.str.31 = private unnamed_addr constant [40 x i8] c"%s vcan0 -g 0 -p 10 -x \00", align 1
@.str.32 = private unnamed_addr constant [45 x i8] c"(full load test with polling, 10ms timeout)\0A\00", align 1
@.str.33 = private unnamed_addr constant [40 x i8] c"%s vcan0 \00", align 1
@.str.34 = private unnamed_addr constant [27 x i8] c"(my favourite default :)\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1, ptr noundef %7)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.2, i32 noundef 200)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.3)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str.4)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str.5)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str.6)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.7)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.8)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str.9)
%25 = load i32, ptr @stderr, align 4
%26 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %25, ptr noundef @.str.10)
%27 = load i32, ptr @stderr, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %27, ptr noundef @.str.11)
%29 = load i32, ptr @stderr, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.12)
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.13)
%33 = load i32, ptr @stderr, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.14)
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.15)
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.16)
%39 = load i32, ptr @stderr, align 4
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %39, ptr noundef @.str.17)
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.18)
%43 = load i32, ptr @stderr, align 4
%44 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.19)
%45 = load i32, ptr @stderr, align 4
%46 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %45, ptr noundef @.str.20)
%47 = load i32, ptr @stderr, align 4
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %47, ptr noundef @.str.21)
%49 = load i32, ptr @stderr, align 4
%50 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.22)
%51 = load i32, ptr @stderr, align 4
%52 = load ptr, ptr %2, align 8
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %51, ptr noundef @.str.23, ptr noundef %52)
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.24)
%56 = load i32, ptr @stderr, align 4
%57 = load ptr, ptr %2, align 8
%58 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %56, ptr noundef @.str.25, ptr noundef %57)
%59 = load i32, ptr @stderr, align 4
%60 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef @.str.26)
%61 = load i32, ptr @stderr, align 4
%62 = load ptr, ptr %2, align 8
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %61, ptr noundef @.str.27, ptr noundef %62)
%64 = load i32, ptr @stderr, align 4
%65 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef @.str.28)
%66 = load i32, ptr @stderr, align 4
%67 = load ptr, ptr %2, align 8
%68 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.29, ptr noundef %67)
%69 = load i32, ptr @stderr, align 4
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.30)
%71 = load i32, ptr @stderr, align 4
%72 = load ptr, ptr %2, align 8
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %71, ptr noundef @.str.31, ptr noundef %72)
%74 = load i32, ptr @stderr, align 4
%75 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %74, ptr noundef @.str.32)
%76 = load i32, ptr @stderr, align 4
%77 = load ptr, ptr %2, align 8
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %76, ptr noundef @.str.33, ptr noundef %77)
%79 = load i32, ptr @stderr, align 4
%80 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %79, ptr noundef @.str.34)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3yxplnr8.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"\0A%s: generate CAN frames\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"Usage: %s [options] <CAN interface>\0A\00", align 1
@.str.2 = private unnamed_addr constant [64 x i8] c"Options: -g <ms> (gap in milli seconds - default: %d ms)\0A\00", align 1
@.str.3 = private unnamed_addr constant [72 x i8] c" -e (generate extended frame mode (EFF) CAN frames)\0A\00", align 1
@.str.4 = private unnamed_addr constant [53 x i8] c" -f (generate CAN FD CAN frames)\0A\00", align 1
@.str.5 = private unnamed_addr constant [79 x i8] c" -b (generate CAN FD CAN frames with bitrate switch (BRS))\0A\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c" -R (send RTR frame)\0A\00", align 1
@.str.7 = private unnamed_addr constant [49 x i8] c" -m (mix -e -f -b -R frames)\0A\00", align 1
@.str.8 = private unnamed_addr constant [61 x i8] c" -I <mode> (CAN ID generation mode - see below)\0A\00", align 1
@.str.9 = private unnamed_addr constant [81 x i8] c" -L <mode> (CAN data length code (dlc) generation mode - see below)\0A\00", align 1
@.str.10 = private unnamed_addr constant [73 x i8] c" -D <mode> (CAN data (payload) generation mode - see below)\0A\00", align 1
@.str.11 = private unnamed_addr constant [77 x i8] c" -p <timeout> (poll on -ENOBUFS to write frames with <timeout> ms)\0A\00", align 1
@.str.12 = private unnamed_addr constant [80 x i8] c" -n <count> (terminate after <count> CAN frames - default infinite)\0A\00", align 1
@.str.13 = private unnamed_addr constant [76 x i8] c" -i (ignore -ENOBUFS return values on write() syscalls)\0A\00", align 1
@.str.14 = private unnamed_addr constant [73 x i8] c" -x (disable local loopback of generated CAN frames)\0A\00", align 1
@.str.15 = private unnamed_addr constant [80 x i8] c" -v (increment verbose level for printing sent CAN frames)\0A\0A\00", align 1
@.str.16 = private unnamed_addr constant [19 x i8] c"Generation modes:\0A\00", align 1
@.str.17 = private unnamed_addr constant [39 x i8] c"'r' => random values (default)\0A\00", align 1
@.str.18 = private unnamed_addr constant [32 x i8] c"'i' => increment values\0A\00", align 1
@.str.19 = private unnamed_addr constant [43 x i8] c"<hexvalue> => fix value using <hexvalue>\0A\0A\00", align 1
@.str.20 = private unnamed_addr constant [74 x i8] c"When incrementing the CAN data the data length code minimum is set to 1.\0A\00", align 1
@.str.21 = private unnamed_addr constant [73 x i8] c"CAN IDs and data content are given and expected in hexadecimal values.\0A\0A\00", align 1
@.str.22 = private unnamed_addr constant [11 x i8] c"Examples:\0A\00", align 1
@.str.23 = private unnamed_addr constant [40 x i8] c"%s vcan0 -g 4 -I 42A -L 1 -D i -v -v \00", align 1
@.str.24 = private unnamed_addr constant [38 x i8] c"(fixed CAN ID and length, inc. data)\0A\00", align 1
@.str.25 = private unnamed_addr constant [40 x i8] c"%s vcan0 -e -L i -v -v -v \00", align 1
@.str.26 = private unnamed_addr constant [37 x i8] c"(generate EFF frames, incr. length)\0A\00", align 1
@.str.27 = private unnamed_addr constant [40 x i8] c"%s vcan0 -D 11223344DEADBEEF -L 8 \00", align 1
@.str.28 = private unnamed_addr constant [37 x i8] c"(fixed CAN data payload and length)\0A\00", align 1
@.str.29 = private unnamed_addr constant [40 x i8] c"%s vcan0 -g 0 -i -x \00", align 1
@.str.30 = private unnamed_addr constant [36 x i8] c"(full load test ignoring -ENOBUFS)\0A\00", align 1
@.str.31 = private unnamed_addr constant [40 x i8] c"%s vcan0 -g 0 -p 10 -x \00", align 1
@.str.32 = private unnamed_addr constant [45 x i8] c"(full load test with polling, 10ms timeout)\0A\00", align 1
@.str.33 = private unnamed_addr constant [40 x i8] c"%s vcan0 \00", align 1
@.str.34 = private unnamed_addr constant [27 x i8] c"(my favourite default :)\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1, ptr noundef %7)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.2, i32 noundef 200)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.3)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str.4)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str.5)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str.6)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.7)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.8)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str.9)
%25 = load i32, ptr @stderr, align 4
%26 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %25, ptr noundef @.str.10)
%27 = load i32, ptr @stderr, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %27, ptr noundef @.str.11)
%29 = load i32, ptr @stderr, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.12)
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.13)
%33 = load i32, ptr @stderr, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.14)
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.15)
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.16)
%39 = load i32, ptr @stderr, align 4
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %39, ptr noundef @.str.17)
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.18)
%43 = load i32, ptr @stderr, align 4
%44 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.19)
%45 = load i32, ptr @stderr, align 4
%46 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %45, ptr noundef @.str.20)
%47 = load i32, ptr @stderr, align 4
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %47, ptr noundef @.str.21)
%49 = load i32, ptr @stderr, align 4
%50 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.22)
%51 = load i32, ptr @stderr, align 4
%52 = load ptr, ptr %2, align 8
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %51, ptr noundef @.str.23, ptr noundef %52)
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.24)
%56 = load i32, ptr @stderr, align 4
%57 = load ptr, ptr %2, align 8
%58 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %56, ptr noundef @.str.25, ptr noundef %57)
%59 = load i32, ptr @stderr, align 4
%60 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef @.str.26)
%61 = load i32, ptr @stderr, align 4
%62 = load ptr, ptr %2, align 8
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %61, ptr noundef @.str.27, ptr noundef %62)
%64 = load i32, ptr @stderr, align 4
%65 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef @.str.28)
%66 = load i32, ptr @stderr, align 4
%67 = load ptr, ptr %2, align 8
%68 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.29, ptr noundef %67)
%69 = load i32, ptr @stderr, align 4
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.30)
%71 = load i32, ptr @stderr, align 4
%72 = load ptr, ptr %2, align 8
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %71, ptr noundef @.str.31, ptr noundef %72)
%74 = load i32, ptr @stderr, align 4
%75 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %74, ptr noundef @.str.32)
%76 = load i32, ptr @stderr, align 4
%77 = load ptr, ptr %2, align 8
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %76, ptr noundef @.str.33, ptr noundef %77)
%79 = load i32, ptr @stderr, align 4
%80 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %79, ptr noundef @.str.34)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm2pd0khc.c'
source_filename = "/tmp/tmpm2pd0khc.c"
target datalayout = "e-m:e-p270: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 @add(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %7, align 4
%11 = add nsw i32 %10, %9
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp ne i32 %12, 0
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 1, i32 0
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm2pd0khc.c"
target datalayout = "e-m:e-p270: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 @add(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %7, align 4
%11 = add nsw i32 %10, %9
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp ne i32 %12, 0
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 1, i32 0
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgep7abrp.c'
source_filename = "/tmp/tmpgep7abrp.c"
target datalayout = "e-m:e-p270: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 @replace_all(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call ptr @strstr(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %4, align 8
%12 = icmp ne ptr null, %11
br i1 %12, label %13, label %39
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
%19 = call ptr @strdup(ptr noundef %18)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %6, align 8
store ptr %20, ptr %8, align 8
br label %21
21: ; preds = %26, %13
%22 = load ptr, ptr %8, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 0, %24
br i1 %25, label %26, label %32
26: ; preds = %21
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
%29 = load i8, ptr %27, align 1
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %4, align 8
store i8 %29, ptr %30, align 1
br label %21, !llvm.loop !6
32: ; preds = %21
%33 = load ptr, ptr %4, align 8
%34 = load ptr, ptr %7, align 8
%35 = call i32 @strcpy(ptr noundef %33, ptr noundef %34)
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %5, align 8
%38 = load ptr, ptr %6, align 8
call void @replace_all(ptr noundef %36, ptr noundef %37, ptr noundef %38)
br label %39
39: ; preds = %32, %3
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgep7abrp.c"
target datalayout = "e-m:e-p270: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 @replace_all(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call ptr @strstr(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %4, align 8
%12 = icmp ne ptr null, %11
br i1 %12, label %13, label %42
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
%19 = call ptr @strdup(ptr noundef %18)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %6, align 8
store ptr %20, ptr %8, align 8
%21 = load ptr, ptr %8, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 0, %23
br i1 %24, label %.lr.ph, label %35
.lr.ph: ; preds = %13
br label %25
25: ; preds = %.lr.ph, %25
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %8, align 8
%28 = load i8, ptr %26, align 1
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %4, align 8
store i8 %28, ptr %29, align 1
%31 = load ptr, ptr %8, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 0, %33
br i1 %34, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %35
35: ; preds = %._crit_edge, %13
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %7, align 8
%38 = call i32 @strcpy(ptr noundef %36, ptr noundef %37)
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %5, align 8
%41 = load ptr, ptr %6, align 8
call void @replace_all(ptr noundef %39, ptr noundef %40, ptr noundef %41)
br label %42
42: ; preds = %35, %3
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpedt7cx0e.c'
source_filename = "/tmp/tmpedt7cx0e.c"
target datalayout = "e-m:e-p270: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
@EINTR = dso_local global i32 0, align 4
@EINPROGRESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sjs__close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr @errno, align 4
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @close(i32 noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %25
10: ; preds = %1
%11 = load i32, ptr @errno, align 4
%12 = sub nsw i32 0, %11
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr @EINTR, align 4
%15 = sub nsw i32 0, %14
%16 = icmp eq i32 %13, %15
br i1 %16, label %22, label %17
17: ; preds = %10
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr @EINPROGRESS, align 4
%20 = sub nsw i32 0, %19
%21 = icmp eq i32 %18, %20
br i1 %21, label %22, label %23
22: ; preds = %17, %10
store i32 0, ptr %4, align 4
br label %23
23: ; preds = %22, %17
%24 = load i32, ptr %3, align 4
store i32 %24, ptr @errno, align 4
br label %25
25: ; preds = %23, %1
%26 = load i32, ptr %4, align 4
ret i32 %26
}
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/tmpedt7cx0e.c"
target datalayout = "e-m:e-p270: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
@EINTR = dso_local global i32 0, align 4
@EINPROGRESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sjs__close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr @errno, align 4
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @close(i32 noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %25
10: ; preds = %1
%11 = load i32, ptr @errno, align 4
%12 = sub nsw i32 0, %11
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr @EINTR, align 4
%15 = sub nsw i32 0, %14
%16 = icmp eq i32 %13, %15
br i1 %16, label %22, label %17
17: ; preds = %10
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr @EINPROGRESS, align 4
%20 = sub nsw i32 0, %19
%21 = icmp eq i32 %18, %20
br i1 %21, label %22, label %23
22: ; preds = %17, %10
store i32 0, ptr %4, align 4
br label %23
23: ; preds = %22, %17
%24 = load i32, ptr %3, align 4
store i32 %24, ptr @errno, align 4
br label %25
25: ; preds = %23, %1
%26 = load i32, ptr %4, align 4
ret i32 %26
}
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/tmpitlzo_0p.c'
source_filename = "/tmp/tmpitlzo_0p.c"
target datalayout = "e-m:e-p270: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 @count_chars(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
br label %10
10: ; preds = %25, %2
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = load i8, ptr %4, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %18, %20
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %25
25: ; preds = %22, %15
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %3, align 8
br label %10, !llvm.loop !6
28: ; preds = %10
%29 = load i32, ptr %5, align 4
ret i32 %29
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpitlzo_0p.c"
target datalayout = "e-m:e-p270: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 @count_chars(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %24
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %17, %19
br i1 %20, label %21, label %24
21: ; preds = %14
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %24
24: ; preds = %21, %14
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %3, align 8
%27 = load ptr, ptr %3, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %31
31: ; preds = %._crit_edge, %2
%32 = load i32, ptr %5, align 4
ret i32 %32
}
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"}
|
; ModuleID = '/tmp/tmpf24ekpbs.c'
source_filename = "/tmp/tmpf24ekpbs.c"
target datalayout = "e-m:e-p270: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 @param1(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @tanh(double noundef %3)
%5 = mul nsw i32 2, %4
%6 = sitofp i32 %5 to double
ret double %6
}
declare i32 @tanh(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf24ekpbs.c"
target datalayout = "e-m:e-p270: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 @param1(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @tanh(double noundef %3)
%5 = mul nsw i32 2, %4
%6 = sitofp i32 %5 to double
ret double %6
}
declare i32 @tanh(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjfazs3n6.c'
source_filename = "/tmp/tmpjfazs3n6.c"
target datalayout = "e-m:e-p270: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 @run_postreceive(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1 x ptr], align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [1 x ptr], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %4, align 8
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds [1 x ptr], ptr %5, i64 0, i64 0
%10 = call i32 @run_postreceive_multi(ptr noundef %8, ptr noundef %9, i32 noundef 1)
ret void
}
declare i32 @run_postreceive_multi(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjfazs3n6.c"
target datalayout = "e-m:e-p270: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 @run_postreceive(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1 x ptr], align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [1 x ptr], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %4, align 8
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds [1 x ptr], ptr %5, i64 0, i64 0
%10 = call i32 @run_postreceive_multi(ptr noundef %8, ptr noundef %9, i32 noundef 1)
ret void
}
declare i32 @run_postreceive_multi(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7x4k0oh4.c'
source_filename = "/tmp/tmp7x4k0oh4.c"
target datalayout = "e-m:e-p270: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/tmp7x4k0oh4.c"
target datalayout = "e-m:e-p270: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/tmph7tlq4o0.c'
source_filename = "/tmp/tmph7tlq4o0.c"
target datalayout = "e-m:e-p270: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"n:m:\00", align 1
@optarg = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 4, ptr %7, align 4
store i32 2, ptr %8, align 4
br label %11
11: ; preds = %25, %2
%12 = load i32, ptr %4, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @getopt(i32 noundef %12, ptr noundef %13, ptr noundef @.str)
store i32 %14, ptr %6, align 4
%15 = icmp ne i32 -1, %14
br i1 %15, label %16, label %26
16: ; preds = %11
%17 = load i32, ptr %6, align 4
switch i32 %17, label %24 [
i32 110, label %18
i32 109, label %21
]
18: ; preds = %16
%19 = load i32, ptr @optarg, align 4
%20 = call i32 @atoi(i32 noundef %19)
store i32 %20, ptr %7, align 4
br label %25
21: ; preds = %16
%22 = load i32, ptr @optarg, align 4
%23 = call i32 @atoi(i32 noundef %22)
store i32 %23, ptr %8, align 4
br label %25
24: ; preds = %16
br label %25
25: ; preds = %24, %21, %18
br label %11, !llvm.loop !6
26: ; preds = %11
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 4, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %10, align 8
store i32 0, ptr %9, align 4
br label %33
33: ; preds = %43, %26
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %46
37: ; preds = %33
%38 = load i32, ptr %9, align 4
%39 = load ptr, ptr %10, align 8
%40 = load i32, ptr %9, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
store i32 %38, ptr %42, align 4
br label %43
43: ; preds = %37
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %9, align 4
br label %33, !llvm.loop !8
46: ; preds = %33
%47 = load ptr, ptr %10, align 8
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %8, align 4
%50 = call i32 @partperm(ptr noundef %47, i32 noundef %48, i32 noundef 0, i32 noundef %49)
%51 = load ptr, ptr %10, align 8
%52 = call i32 @free(ptr noundef %51)
ret i32 0
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @partperm(ptr noundef, i32 noundef, i32 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/tmph7tlq4o0.c"
target datalayout = "e-m:e-p270: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"n:m:\00", align 1
@optarg = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 4, ptr %7, align 4
store i32 2, ptr %8, align 4
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @getopt(i32 noundef %11, ptr noundef %12, ptr noundef @.str)
store i32 %13, ptr %6, align 4
%14 = icmp ne i32 -1, %13
br i1 %14, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %24
%16 = load i32, ptr %6, align 4
switch i32 %16, label %23 [
i32 110, label %17
i32 109, label %20
]
17: ; preds = %15
%18 = load i32, ptr @optarg, align 4
%19 = call i32 @atoi(i32 noundef %18)
store i32 %19, ptr %7, align 4
br label %24
20: ; preds = %15
%21 = load i32, ptr @optarg, align 4
%22 = call i32 @atoi(i32 noundef %21)
store i32 %22, ptr %8, align 4
br label %24
23: ; preds = %15
br label %24
24: ; preds = %23, %20, %17
%25 = load i32, ptr %4, align 4
%26 = load ptr, ptr %5, align 8
%27 = call i32 @getopt(i32 noundef %25, ptr noundef %26, ptr noundef @.str)
store i32 %27, ptr %6, align 4
%28 = icmp ne i32 -1, %27
br i1 %28, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %2
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = mul i64 4, %31
%33 = trunc i64 %32 to i32
%34 = call i64 @malloc(i32 noundef %33)
%35 = inttoptr i64 %34 to ptr
store ptr %35, ptr %10, align 8
store i32 0, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %7, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph2, label %51
.lr.ph2: ; preds = %29
br label %39
39: ; preds = %.lr.ph2, %45
%40 = load i32, ptr %9, align 4
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 %40, ptr %44, align 4
br label %45
45: ; preds = %39
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %9, align 4
%48 = load i32, ptr %9, align 4
%49 = load i32, ptr %7, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %39, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %51
51: ; preds = %._crit_edge3, %29
%52 = load ptr, ptr %10, align 8
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %8, align 4
%55 = call i32 @partperm(ptr noundef %52, i32 noundef %53, i32 noundef 0, i32 noundef %54)
%56 = load ptr, ptr %10, align 8
%57 = call i32 @free(ptr noundef %56)
ret i32 0
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @partperm(ptr noundef, i32 noundef, i32 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/tmpvlbz97bl.c'
source_filename = "/tmp/tmpvlbz97bl.c"
target datalayout = "e-m:e-p270: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 @memlook(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store ptr %17, ptr %9, align 8
%18 = load ptr, ptr %5, align 8
store ptr %18, ptr %10, align 8
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %11, align 8
store i32 0, ptr %13, align 4
%20 = load ptr, ptr %5, align 8
%21 = call i32 @strlen(ptr noundef %20)
store i32 %21, ptr %8, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 0
%24 = load i8, ptr %23, align 1
%25 = zext i8 %24 to i32
%26 = icmp eq i32 %25, 10
br i1 %26, label %27, label %30
27: ; preds = %3
%28 = load ptr, ptr %10, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %10, align 8
br label %30
30: ; preds = %27, %3
br label %31
31: ; preds = %72, %30
%32 = load ptr, ptr %11, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load ptr, ptr %9, align 8
%37 = icmp ule ptr %35, %36
br i1 %37, label %38, label %76
38: ; preds = %31
%39 = load ptr, ptr %11, align 8
store ptr %39, ptr %12, align 8
br label %40
40: ; preds = %56, %38
%41 = load ptr, ptr %10, align 8
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = icmp ult ptr %41, %45
br i1 %46, label %47, label %61
47: ; preds = %40
%48 = load ptr, ptr %10, align 8
%49 = load i8, ptr %48, align 1
%50 = zext i8 %49 to i32
%51 = load ptr, ptr %12, align 8
%52 = load i8, ptr %51, align 1
%53 = zext i8 %52 to i32
%54 = icmp ne i32 %50, %53
br i1 %54, label %55, label %56
55: ; preds = %47
br label %61
56: ; preds = %47
%57 = load ptr, ptr %10, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %10, align 8
%59 = load ptr, ptr %12, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %12, align 8
br label %40, !llvm.loop !6
61: ; preds = %55, %40
%62 = load ptr, ptr %10, align 8
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %8, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = icmp eq ptr %62, %66
%68 = zext i1 %67 to i32
store i32 %68, ptr %13, align 4
%69 = load i32, ptr %13, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %61
br label %76
72: ; preds = %61
%73 = load ptr, ptr %5, align 8
store ptr %73, ptr %10, align 8
%74 = load ptr, ptr %11, align 8
%75 = getelementptr inbounds i8, ptr %74, i32 1
store ptr %75, ptr %11, align 8
br label %31, !llvm.loop !8
76: ; preds = %71, %31
%77 = load i32, ptr %13, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %100
79: ; preds = %76
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 0
%82 = load i8, ptr %81, align 1
%83 = zext i8 %82 to i32
%84 = icmp eq i32 %83, 10
br i1 %84, label %85, label %93
85: ; preds = %79
%86 = load ptr, ptr %11, align 8
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
%89 = icmp eq i32 %88, 10
br i1 %89, label %90, label %93
90: ; preds = %85
%91 = load ptr, ptr %11, align 8
%92 = getelementptr inbounds i8, ptr %91, i32 1
store ptr %92, ptr %11, align 8
br label %93
93: ; preds = %90, %85, %79
%94 = load ptr, ptr %11, align 8
%95 = load ptr, ptr %6, align 8
%96 = ptrtoint ptr %94 to i64
%97 = ptrtoint ptr %95 to i64
%98 = sub i64 %96, %97
%99 = trunc i64 %98 to i32
store i32 %99, ptr %4, align 4
br label %101
100: ; preds = %76
store i32 -2, ptr %4, align 4
br label %101
101: ; preds = %100, %93
%102 = load i32, ptr %4, align 4
ret i32 %102
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvlbz97bl.c"
target datalayout = "e-m:e-p270: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 @memlook(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store ptr %17, ptr %9, align 8
%18 = load ptr, ptr %5, align 8
store ptr %18, ptr %10, align 8
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %11, align 8
store i32 0, ptr %13, align 4
%20 = load ptr, ptr %5, align 8
%21 = call i32 @strlen(ptr noundef %20)
store i32 %21, ptr %8, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 0
%24 = load i8, ptr %23, align 1
%25 = zext i8 %24 to i32
%26 = icmp eq i32 %25, 10
br i1 %26, label %27, label %30
27: ; preds = %3
%28 = load ptr, ptr %10, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %10, align 8
br label %30
30: ; preds = %27, %3
%31 = load ptr, ptr %11, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load ptr, ptr %9, align 8
%36 = icmp ule ptr %34, %35
br i1 %36, label %.lr.ph2, label %.loopexit1
.lr.ph2: ; preds = %30
br label %37
37: ; preds = %.lr.ph2, %76
%38 = load ptr, ptr %11, align 8
store ptr %38, ptr %12, align 8
%39 = load ptr, ptr %10, align 8
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %8, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = icmp ult ptr %39, %43
br i1 %44, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %37
br label %45
45: ; preds = %.lr.ph, %54
%46 = load ptr, ptr %10, align 8
%47 = load i8, ptr %46, align 1
%48 = zext i8 %47 to i32
%49 = load ptr, ptr %12, align 8
%50 = load i8, ptr %49, align 1
%51 = zext i8 %50 to i32
%52 = icmp ne i32 %48, %51
br i1 %52, label %53, label %54
53: ; preds = %45
br label %65
54: ; preds = %45
%55 = load ptr, ptr %10, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %10, align 8
%57 = load ptr, ptr %12, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %12, align 8
%59 = load ptr, ptr %10, align 8
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %8, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
%64 = icmp ult ptr %59, %63
br i1 %64, label %45, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %54
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %37
br label %65
65: ; preds = %.loopexit, %53
%66 = load ptr, ptr %10, align 8
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = icmp eq ptr %66, %70
%72 = zext i1 %71 to i32
store i32 %72, ptr %13, align 4
%73 = load i32, ptr %13, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %65
br label %86
76: ; preds = %65
%77 = load ptr, ptr %5, align 8
store ptr %77, ptr %10, align 8
%78 = load ptr, ptr %11, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %11, align 8
%80 = load ptr, ptr %11, align 8
%81 = load i32, ptr %8, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load ptr, ptr %9, align 8
%85 = icmp ule ptr %83, %84
br i1 %85, label %37, label %..loopexit1_crit_edge, !llvm.loop !8
..loopexit1_crit_edge: ; preds = %76
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %30
br label %86
86: ; preds = %.loopexit1, %75
%87 = load i32, ptr %13, align 4
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %110
89: ; preds = %86
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 0
%92 = load i8, ptr %91, align 1
%93 = zext i8 %92 to i32
%94 = icmp eq i32 %93, 10
br i1 %94, label %95, label %103
95: ; preds = %89
%96 = load ptr, ptr %11, align 8
%97 = load i8, ptr %96, align 1
%98 = zext i8 %97 to i32
%99 = icmp eq i32 %98, 10
br i1 %99, label %100, label %103
100: ; preds = %95
%101 = load ptr, ptr %11, align 8
%102 = getelementptr inbounds i8, ptr %101, i32 1
store ptr %102, ptr %11, align 8
br label %103
103: ; preds = %100, %95, %89
%104 = load ptr, ptr %11, align 8
%105 = load ptr, ptr %6, align 8
%106 = ptrtoint ptr %104 to i64
%107 = ptrtoint ptr %105 to i64
%108 = sub i64 %106, %107
%109 = trunc i64 %108 to i32
store i32 %109, ptr %4, align 4
br label %111
110: ; preds = %86
store i32 -2, ptr %4, align 4
br label %111
111: ; preds = %110, %103
%112 = load i32, ptr %4, align 4
ret i32 %112
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmprleuft4n.c'
source_filename = "/tmp/tmprleuft4n.c"
target datalayout = "e-m:e-p270: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 @__aeabi_memclr4(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @memset(ptr noundef %5, i32 noundef 0, i64 noundef %6)
ret void
}
declare i32 @memset(ptr noundef, i32 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/tmprleuft4n.c"
target datalayout = "e-m:e-p270: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 @__aeabi_memclr4(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @memset(ptr noundef %5, i32 noundef 0, i64 noundef %6)
ret void
}
declare i32 @memset(ptr noundef, i32 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/tmp0uig3d25.c'
source_filename = "/tmp/tmp0uig3d25.c"
target datalayout = "e-m:e-p270: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/tmp0uig3d25.c"
target datalayout = "e-m:e-p270: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/tmpipc26dbj.c'
source_filename = "/tmp/tmpipc26dbj.c"
target datalayout = "e-m:e-p270: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 [26 x i8] c"Esto es una prueba niggi\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Segundo mensaje a\C3\B1adido\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpipc26dbj.c"
target datalayout = "e-m:e-p270: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 [26 x i8] c"Esto es una prueba niggi\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Segundo mensaje a\C3\B1adido\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuhiufs_u.c'
source_filename = "/tmp/tmpuhiufs_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Removing whitespace.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @removewhitespace(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %5, align 8
br label %10
10: ; preds = %27, %2
%11 = load ptr, ptr %5, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 10
br i1 %14, label %15, label %28
15: ; preds = %10
%16 = load ptr, ptr %5, align 8
%17 = ptrtoint ptr %16 to i32
switch i32 %17, label %21 [
i32 32, label %18
]
18: ; preds = %15
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %5, align 8
br label %27
21: ; preds = %15
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %5, align 8
%24 = load i8, ptr %22, align 1
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %4, align 8
store i8 %24, ptr %25, align 1
br label %27
27: ; preds = %21, %18
br label %10, !llvm.loop !6
28: ; preds = %10
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuhiufs_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Removing whitespace.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @removewhitespace(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 10
br i1 %13, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %26
%15 = load ptr, ptr %5, align 8
%16 = ptrtoint ptr %15 to i32
switch i32 %16, label %20 [
i32 32, label %17
]
17: ; preds = %14
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %5, align 8
br label %26
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %5, align 8
%23 = load i8, ptr %21, align 1
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
store i8 %23, ptr %24, align 1
br label %26
26: ; preds = %20, %17
%27 = load ptr, ptr %5, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 10
br i1 %30, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9b0tepma.c'
source_filename = "/tmp/tmp9b0tepma.c"
target datalayout = "e-m:e-p270: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 @erase(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
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %12
12: ; preds = %58, %2
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %59
16: ; preds = %12
br label %17
17: ; preds = %31, %16
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %23, %29
br i1 %30, label %31, label %34
31: ; preds = %17
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
br label %17, !llvm.loop !6
34: ; preds = %17
%35 = load i32, ptr %8, align 4
%36 = load i32, ptr %7, align 4
%37 = sub nsw i32 %35, %36
%38 = icmp sgt i32 %37, 1
br i1 %38, label %39, label %46
39: ; preds = %34
%40 = load i32, ptr %8, align 4
%41 = load i32, ptr %7, align 4
%42 = sub nsw i32 %40, %41
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, %42
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %8, align 4
store i32 %45, ptr %7, align 4
br label %58
46: ; preds = %34
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
%50 = sext i32 %48 to i64
%51 = getelementptr inbounds i8, ptr %47, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %9, align 4
%56 = sext i32 %54 to i64
%57 = getelementptr inbounds i8, ptr %53, i64 %56
store i8 %52, ptr %57, align 1
br label %58
58: ; preds = %46, %39
br label %12, !llvm.loop !8
59: ; preds = %12
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
store i8 0, ptr %63, align 1
%64 = load i32, ptr %6, align 4
ret i32 %64
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9b0tepma.c"
target datalayout = "e-m:e-p270: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 @erase(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
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph2, label %73
.lr.ph2: ; preds = %2
br label %15
15: ; preds = %.lr.ph2, %69
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %21, %27
br i1 %28, label %.lr.ph, label %45
.lr.ph: ; preds = %15
br label %29
29: ; preds = %.lr.ph, %29
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %37, %43
br i1 %44, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %45
45: ; preds = %._crit_edge, %15
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %7, align 4
%48 = sub nsw i32 %46, %47
%49 = icmp sgt i32 %48, 1
br i1 %49, label %50, label %57
50: ; preds = %45
%51 = load i32, ptr %8, align 4
%52 = load i32, ptr %7, align 4
%53 = sub nsw i32 %51, %52
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, %53
store i32 %55, ptr %6, align 4
%56 = load i32, ptr %8, align 4
store i32 %56, ptr %7, align 4
br label %69
57: ; preds = %45
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
%61 = sext i32 %59 to i64
%62 = getelementptr inbounds i8, ptr %58, i64 %61
%63 = load i8, ptr %62, align 1
%64 = load ptr, ptr %4, align 8
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %9, align 4
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds i8, ptr %64, i64 %67
store i8 %63, ptr %68, align 1
br label %69
69: ; preds = %57, %50
%70 = load i32, ptr %7, align 4
%71 = load i32, ptr %5, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %73
73: ; preds = %._crit_edge3, %2
%74 = load ptr, ptr %4, align 8
%75 = load i32, ptr %9, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
store i8 0, ptr %77, align 1
%78 = load i32, ptr %6, align 4
ret i32 %78
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpl1_zh71z.c'
source_filename = "/tmp/tmpl1_zh71z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Incorrect number of parentheses\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Error with operators\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Operator before close parenthese\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_expr(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %16, label %10
10: ; preds = %3
%11 = load ptr, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load ptr, ptr %7, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %13, %10, %3
store i32 0, ptr %4, align 4
br label %38
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i32 @check_parthe(ptr noundef %18, ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %17
%23 = call i32 @my_putstr(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %38
24: ; preds = %17
%25 = load ptr, ptr %5, align 8
%26 = load ptr, ptr %7, align 8
%27 = call i32 @check_operator(ptr noundef %25, ptr noundef %26)
%28 = icmp ne i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %24
%30 = call i32 @my_putstr(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %38
31: ; preds = %24
%32 = load ptr, ptr %5, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 @check_oparthe(ptr noundef %32, ptr noundef %33)
%35 = icmp ne i32 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %31
%37 = call i32 @my_putstr(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %38
38: ; preds = %16, %22, %29, %36, %31
%39 = load i32, ptr %4, align 4
ret i32 %39
}
declare i32 @check_parthe(ptr noundef, ptr noundef) #1
declare i32 @my_putstr(ptr noundef) #1
declare i32 @check_operator(ptr noundef, ptr noundef) #1
declare i32 @check_oparthe(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/tmpl1_zh71z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Incorrect number of parentheses\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Error with operators\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Operator before close parenthese\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_expr(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %16, label %10
10: ; preds = %3
%11 = load ptr, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load ptr, ptr %7, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %13, %10, %3
store i32 0, ptr %4, align 4
br label %38
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i32 @check_parthe(ptr noundef %18, ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %17
%23 = call i32 @my_putstr(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %38
24: ; preds = %17
%25 = load ptr, ptr %5, align 8
%26 = load ptr, ptr %7, align 8
%27 = call i32 @check_operator(ptr noundef %25, ptr noundef %26)
%28 = icmp ne i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %24
%30 = call i32 @my_putstr(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %38
31: ; preds = %24
%32 = load ptr, ptr %5, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 @check_oparthe(ptr noundef %32, ptr noundef %33)
%35 = icmp ne i32 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %31
%37 = call i32 @my_putstr(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %38
38: ; preds = %36, %31, %29, %22, %16
%39 = load i32, ptr %4, align 4
ret i32 %39
}
declare i32 @check_parthe(ptr noundef, ptr noundef) #1
declare i32 @my_putstr(ptr noundef) #1
declare i32 @check_operator(ptr noundef, ptr noundef) #1
declare i32 @check_oparthe(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/tmpd2t5gzll.c'
source_filename = "/tmp/tmpd2t5gzll.c"
target datalayout = "e-m:e-p270: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/tmpd2t5gzll.c"
target datalayout = "e-m:e-p270: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/tmp11jp18xl.c'
source_filename = "/tmp/tmp11jp18xl.c"
target datalayout = "e-m:e-p270: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 @cs5530_enable_softvga() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = call i64 @gfx_pci_config_read(i32 noundef -2147445692)
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = and i64 %4, 4294967294
%6 = call i32 @gfx_pci_config_write(i32 noundef -2147445692, i64 noundef %5)
%7 = call i64 @gfx_pci_config_read(i32 noundef -2147445692)
store i64 %7, ptr %2, align 8
%8 = load i64, ptr %2, align 8
%9 = and i64 %8, 1
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 1, ptr %1, align 4
br label %13
12: ; preds = %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 @gfx_pci_config_read(i32 noundef) #1
declare i32 @gfx_pci_config_write(i32 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/tmp11jp18xl.c"
target datalayout = "e-m:e-p270: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 @cs5530_enable_softvga() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = call i64 @gfx_pci_config_read(i32 noundef -2147445692)
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = and i64 %4, 4294967294
%6 = call i32 @gfx_pci_config_write(i32 noundef -2147445692, i64 noundef %5)
%7 = call i64 @gfx_pci_config_read(i32 noundef -2147445692)
store i64 %7, ptr %2, align 8
%8 = load i64, ptr %2, align 8
%9 = and i64 %8, 1
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 1, ptr %1, align 4
br label %13
12: ; preds = %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 @gfx_pci_config_read(i32 noundef) #1
declare i32 @gfx_pci_config_write(i32 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/tmpmoepeuva.c'
source_filename = "/tmp/tmpmoepeuva.c"
target datalayout = "e-m:e-p270: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"w+\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"tmpfile: cannot open %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @tmpfile() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = call ptr (ptr, ...) @tmpnam(ptr noundef null)
store ptr %4, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = load ptr, ptr %3, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %2, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %14, label %10
10: ; preds = %6, %0
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1, ptr noundef %12)
store ptr null, ptr %1, align 8
br label %18
14: ; preds = %6
%15 = load ptr, ptr %3, align 8
%16 = call i32 @unlink(ptr noundef %15)
%17 = load ptr, ptr %2, align 8
store ptr %17, ptr %1, align 8
br label %18
18: ; preds = %14, %10
%19 = load ptr, ptr %1, align 8
ret ptr %19
}
declare ptr @tmpnam(...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmoepeuva.c"
target datalayout = "e-m:e-p270: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"w+\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"tmpfile: cannot open %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @tmpfile() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = call ptr (ptr, ...) @tmpnam(ptr noundef null)
store ptr %4, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = load ptr, ptr %3, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %2, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %14, label %10
10: ; preds = %6, %0
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1, ptr noundef %12)
store ptr null, ptr %1, align 8
br label %18
14: ; preds = %6
%15 = load ptr, ptr %3, align 8
%16 = call i32 @unlink(ptr noundef %15)
%17 = load ptr, ptr %2, align 8
store ptr %17, ptr %1, align 8
br label %18
18: ; preds = %14, %10
%19 = load ptr, ptr %1, align 8
ret ptr %19
}
declare ptr @tmpnam(...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpin7qn0ac.c'
source_filename = "/tmp/tmpin7qn0ac.c"
target datalayout = "e-m:e-p270: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 @findKthLargest(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = call i32 @build_max_heap(ptr noundef %9, i32 noundef %10)
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %32, %3
%15 = load i32, ptr %7, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %6, align 4
%20 = sub nsw i32 %19, 1
%21 = icmp slt i32 %18, %20
br label %22
22: ; preds = %17, %14
%23 = phi i1 [ false, %14 ], [ %21, %17 ]
br i1 %23, label %24, label %37
24: ; preds = %22
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %7, align 4
%27 = call i32 @swap(ptr noundef %25, i32 noundef %26, i32 noundef 0)
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %5, align 4
%31 = call i32 @max_heapify(ptr noundef %28, i32 noundef %30, i32 noundef 0)
br label %32
32: ; preds = %24
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %7, align 4
br label %14, !llvm.loop !6
37: ; preds = %22
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds i32, ptr %38, i64 0
%40 = load i32, ptr %39, align 4
ret i32 %40
}
declare i32 @build_max_heap(ptr noundef, i32 noundef) #1
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @max_heapify(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpin7qn0ac.c"
target datalayout = "e-m:e-p270: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 @findKthLargest(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = call i32 @build_max_heap(ptr noundef %9, i32 noundef %10)
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %32, %3
%15 = load i32, ptr %7, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %6, align 4
%20 = sub nsw i32 %19, 1
%21 = icmp slt i32 %18, %20
br label %22
22: ; preds = %17, %14
%23 = phi i1 [ false, %14 ], [ %21, %17 ]
br i1 %23, label %24, label %37
24: ; preds = %22
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %7, align 4
%27 = call i32 @swap(ptr noundef %25, i32 noundef %26, i32 noundef 0)
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %5, align 4
%31 = call i32 @max_heapify(ptr noundef %28, i32 noundef %30, i32 noundef 0)
br label %32
32: ; preds = %24
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %7, align 4
br label %14, !llvm.loop !6
37: ; preds = %22
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds i32, ptr %38, i64 0
%40 = load i32, ptr %39, align 4
ret i32 %40
}
declare i32 @build_max_heap(ptr noundef, i32 noundef) #1
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @max_heapify(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"}
|
; ModuleID = '/tmp/tmpaxw3gy4x.c'
source_filename = "/tmp/tmpaxw3gy4x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%10 = call i32 (ptr, ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %2)
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %101, %0
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %104
15: ; preds = %11
%16 = call i32 (ptr, ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %7, ptr noundef %8)
%17 = load i32, ptr %7, align 4
%18 = icmp sgt i32 %17, 8
br i1 %18, label %19, label %72
19: ; preds = %15
%20 = load i32, ptr %8, align 4
%21 = icmp sgt i32 %20, 8
br i1 %21, label %22, label %72
22: ; preds = %19
%23 = load i32, ptr %9, align 4
%24 = icmp eq i32 %23, 1
br i1 %24, label %25, label %35
25: ; preds = %22
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
%32 = call i32 @printf(ptr noundef @.str.2, i32 noundef %31, i32 noundef 1)
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %71
35: ; preds = %25, %22
%36 = load i32, ptr %9, align 4
%37 = icmp eq i32 %36, 2
br i1 %37, label %38, label %48
38: ; preds = %35
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %2, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %48
42: ; preds = %38
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
%45 = call i32 @printf(ptr noundef @.str.2, i32 noundef %44, i32 noundef 2)
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
br label %70
48: ; preds = %38, %35
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %2, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %58
52: ; preds = %48
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, 1
%55 = call i32 @printf(ptr noundef @.str.2, i32 noundef %54, i32 noundef 1)
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %5, align 4
br label %69
58: ; preds = %48
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %2, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %68
62: ; preds = %58
%63 = load i32, ptr %4, align 4
%64 = add nsw i32 %63, 1
%65 = call i32 @printf(ptr noundef @.str.2, i32 noundef %64, i32 noundef 2)
%66 = load i32, ptr %6, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %6, align 4
br label %68
68: ; preds = %62, %58
br label %69
69: ; preds = %68, %52
br label %70
70: ; preds = %69, %42
br label %71
71: ; preds = %70, %29
br label %100
72: ; preds = %19, %15
%73 = load i32, ptr %7, align 4
%74 = icmp sgt i32 %73, 8
br i1 %74, label %75, label %85
75: ; preds = %72
%76 = load i32, ptr %5, align 4
%77 = load i32, ptr %2, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %85
79: ; preds = %75
%80 = load i32, ptr %4, align 4
%81 = add nsw i32 %80, 1
%82 = call i32 @printf(ptr noundef @.str.2, i32 noundef %81, i32 noundef 1)
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %5, align 4
br label %99
85: ; preds = %75, %72
%86 = load i32, ptr %8, align 4
%87 = icmp sgt i32 %86, 8
br i1 %87, label %88, label %98
88: ; preds = %85
%89 = load i32, ptr %6, align 4
%90 = load i32, ptr %2, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %98
92: ; preds = %88
%93 = load i32, ptr %4, align 4
%94 = add nsw i32 %93, 1
%95 = call i32 @printf(ptr noundef @.str.2, i32 noundef %94, i32 noundef 2)
%96 = load i32, ptr %6, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %6, align 4
br label %98
98: ; preds = %92, %88, %85
br label %99
99: ; preds = %98, %79
br label %100
100: ; preds = %99, %71
br label %101
101: ; preds = %100
%102 = load i32, ptr %4, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %4, align 4
br label %11, !llvm.loop !6
104: ; preds = %11
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaxw3gy4x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%10 = call i32 (ptr, ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %2)
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %106
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %100
%15 = call i32 (ptr, ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %7, ptr noundef %8)
%16 = load i32, ptr %7, align 4
%17 = icmp sgt i32 %16, 8
br i1 %17, label %18, label %71
18: ; preds = %14
%19 = load i32, ptr %8, align 4
%20 = icmp sgt i32 %19, 8
br i1 %20, label %21, label %71
21: ; preds = %18
%22 = load i32, ptr %9, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %34
24: ; preds = %21
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %34
28: ; preds = %24
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
%31 = call i32 @printf(ptr noundef @.str.2, i32 noundef %30, i32 noundef 1)
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
br label %70
34: ; preds = %24, %21
%35 = load i32, ptr %9, align 4
%36 = icmp eq i32 %35, 2
br i1 %36, label %37, label %47
37: ; preds = %34
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %2, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
%44 = call i32 @printf(ptr noundef @.str.2, i32 noundef %43, i32 noundef 2)
%45 = load i32, ptr %6, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %6, align 4
br label %69
47: ; preds = %37, %34
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %2, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %57
51: ; preds = %47
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
%54 = call i32 @printf(ptr noundef @.str.2, i32 noundef %53, i32 noundef 1)
%55 = load i32, ptr %5, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %5, align 4
br label %68
57: ; preds = %47
%58 = load i32, ptr %6, align 4
%59 = load i32, ptr %2, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %67
61: ; preds = %57
%62 = load i32, ptr %4, align 4
%63 = add nsw i32 %62, 1
%64 = call i32 @printf(ptr noundef @.str.2, i32 noundef %63, i32 noundef 2)
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
br label %67
67: ; preds = %61, %57
br label %68
68: ; preds = %67, %51
br label %69
69: ; preds = %68, %41
br label %70
70: ; preds = %69, %28
br label %99
71: ; preds = %18, %14
%72 = load i32, ptr %7, align 4
%73 = icmp sgt i32 %72, 8
br i1 %73, label %74, label %84
74: ; preds = %71
%75 = load i32, ptr %5, align 4
%76 = load i32, ptr %2, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %84
78: ; preds = %74
%79 = load i32, ptr %4, align 4
%80 = add nsw i32 %79, 1
%81 = call i32 @printf(ptr noundef @.str.2, i32 noundef %80, i32 noundef 1)
%82 = load i32, ptr %5, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %5, align 4
br label %98
84: ; preds = %74, %71
%85 = load i32, ptr %8, align 4
%86 = icmp sgt i32 %85, 8
br i1 %86, label %87, label %97
87: ; preds = %84
%88 = load i32, ptr %6, align 4
%89 = load i32, ptr %2, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %97
91: ; preds = %87
%92 = load i32, ptr %4, align 4
%93 = add nsw i32 %92, 1
%94 = call i32 @printf(ptr noundef @.str.2, i32 noundef %93, i32 noundef 2)
%95 = load i32, ptr %6, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %6, align 4
br label %97
97: ; preds = %91, %87, %84
br label %98
98: ; preds = %97, %78
br label %99
99: ; preds = %98, %70
br label %100
100: ; preds = %99
%101 = load i32, ptr %4, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %4, align 4
%103 = load i32, ptr %4, align 4
%104 = load i32, ptr %3, align 4
%105 = icmp slt i32 %103, %104
br i1 %105, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %100
br label %106
106: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_s4x37id.c'
source_filename = "/tmp/tmp_s4x37id.c"
target datalayout = "e-m:e-p270: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 @fetch_instruction(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @read_ram(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @read_ram(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_s4x37id.c"
target datalayout = "e-m:e-p270: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 @fetch_instruction(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @read_ram(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @read_ram(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/tmp39v6u_pt.c'
source_filename = "/tmp/tmp39v6u_pt.c"
target datalayout = "e-m:e-p270: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"sfcb\00", align 1
@LOG_PID = dso_local global i32 0, align 4
@LOG_DAEMON = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@LOG_DEBUG = dso_local global i32 0, align 4
@LOG_INFO = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @runLogger(i32 noundef %0, i32 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 [4096 x i8], align 16
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%9 = load i32, ptr @LOG_PID, align 4
%10 = load i32, ptr @LOG_DAEMON, align 4
%11 = call i32 @openlog(ptr noundef @.str, i32 noundef %9, i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = call i32 @LOG_UPTO(i32 noundef %12)
%14 = call i32 @setlogmask(i32 noundef %13)
%15 = load i32, ptr %3, align 4
%16 = call ptr @fdopen(i32 noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %5, align 8
br label %17
17: ; preds = %37, %2
%18 = load ptr, ptr %5, align 8
%19 = call i32 @feof(ptr noundef %18)
%20 = icmp ne i32 %19, 0
%21 = xor i1 %20, true
br i1 %21, label %22, label %42
22: ; preds = %17
%23 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%24 = load ptr, ptr %5, align 8
%25 = call i32 @fgets(ptr noundef %23, i32 noundef 4096, ptr noundef %24)
%26 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%27 = load i8, ptr %26, align 16
%28 = sext i8 %27 to i32
store i32 %28, ptr %8, align 4
%29 = load i32, ptr %8, align 4
switch i32 %29, label %35 [
i32 1, label %30
i32 2, label %32
i32 3, label %34
]
30: ; preds = %22
%31 = load i32, ptr @LOG_DEBUG, align 4
store i32 %31, ptr %6, align 4
br label %37
32: ; preds = %22
%33 = load i32, ptr @LOG_INFO, align 4
store i32 %33, ptr %6, align 4
br label %37
34: ; preds = %22
br label %35
35: ; preds = %22, %34
%36 = load i32, ptr @LOG_ERR, align 4
store i32 %36, ptr %6, align 4
br label %37
37: ; preds = %35, %32, %30
%38 = load i32, ptr %6, align 4
%39 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%40 = getelementptr inbounds i8, ptr %39, i64 1
%41 = call i32 @syslog(i32 noundef %38, ptr noundef @.str.2, ptr noundef %40)
br label %17, !llvm.loop !6
42: ; preds = %17
ret void
}
declare i32 @openlog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @setlogmask(i32 noundef) #1
declare i32 @LOG_UPTO(i32 noundef) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @syslog(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp39v6u_pt.c"
target datalayout = "e-m:e-p270: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"sfcb\00", align 1
@LOG_PID = dso_local global i32 0, align 4
@LOG_DAEMON = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@LOG_DEBUG = dso_local global i32 0, align 4
@LOG_INFO = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @runLogger(i32 noundef %0, i32 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 [4096 x i8], align 16
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%9 = load i32, ptr @LOG_PID, align 4
%10 = load i32, ptr @LOG_DAEMON, align 4
%11 = call i32 @openlog(ptr noundef @.str, i32 noundef %9, i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = call i32 @LOG_UPTO(i32 noundef %12)
%14 = call i32 @setlogmask(i32 noundef %13)
%15 = load i32, ptr %3, align 4
%16 = call ptr @fdopen(i32 noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i32 @feof(ptr noundef %17)
%19 = icmp ne i32 %18, 0
%20 = xor i1 %19, true
br i1 %20, label %.lr.ph, label %45
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %36
%22 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%23 = load ptr, ptr %5, align 8
%24 = call i32 @fgets(ptr noundef %22, i32 noundef 4096, ptr noundef %23)
%25 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%26 = load i8, ptr %25, align 16
%27 = sext i8 %26 to i32
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
switch i32 %28, label %34 [
i32 1, label %29
i32 2, label %31
i32 3, label %33
]
29: ; preds = %21
%30 = load i32, ptr @LOG_DEBUG, align 4
store i32 %30, ptr %6, align 4
br label %36
31: ; preds = %21
%32 = load i32, ptr @LOG_INFO, align 4
store i32 %32, ptr %6, align 4
br label %36
33: ; preds = %21
br label %34
34: ; preds = %33, %21
%35 = load i32, ptr @LOG_ERR, align 4
store i32 %35, ptr %6, align 4
br label %36
36: ; preds = %34, %31, %29
%37 = load i32, ptr %6, align 4
%38 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%39 = getelementptr inbounds i8, ptr %38, i64 1
%40 = call i32 @syslog(i32 noundef %37, ptr noundef @.str.2, ptr noundef %39)
%41 = load ptr, ptr %5, align 8
%42 = call i32 @feof(ptr noundef %41)
%43 = icmp ne i32 %42, 0
%44 = xor i1 %43, true
br i1 %44, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %45
45: ; preds = %._crit_edge, %2
ret void
}
declare i32 @openlog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @setlogmask(i32 noundef) #1
declare i32 @LOG_UPTO(i32 noundef) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @syslog(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_jezd8q4.c'
source_filename = "/tmp/tmp_jezd8q4.c"
target datalayout = "e-m:e-p270: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 { i32, i32, i64, i32, i32, ptr, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Usage: %s host port msg...\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Could not connect\0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"Ignoring long message in argument %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"partial/failed write\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Received %zd bytes: %s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.addrinfo, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%13 = alloca i32, align 4
%14 = alloca [500 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %25
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %21)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %2
%26 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 40)
%27 = load i32, ptr @AF_UNSPEC, align 4
%28 = getelementptr inbounds %struct.addrinfo, ptr %6, i32 0, i32 4
store i32 %27, ptr %28, align 4
%29 = load i32, ptr @SOCK_DGRAM, align 4
%30 = getelementptr inbounds %struct.addrinfo, ptr %6, i32 0, i32 3
store i32 %29, ptr %30, align 8
%31 = getelementptr inbounds %struct.addrinfo, ptr %6, i32 0, i32 6
store i64 0, ptr %31, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %6, i32 0, i32 2
store i64 0, ptr %32, align 8
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 2
%38 = load ptr, ptr %37, align 8
%39 = call i32 @getaddrinfo(ptr noundef %35, ptr noundef %38, ptr noundef %6, ptr noundef %7)
store i32 %39, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %49
42: ; preds = %25
%43 = load i32, ptr @stderr, align 4
%44 = load i32, ptr %10, align 4
%45 = call ptr @gai_strerror(i32 noundef %44)
%46 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.1, ptr noundef %45)
%47 = load i32, ptr @EXIT_FAILURE, align 4
%48 = call i32 @exit(i32 noundef %47) #3
unreachable
49: ; preds = %25
%50 = load ptr, ptr %7, align 8
store ptr %50, ptr %8, align 8
br label %51
51: ; preds = %82, %49
%52 = load ptr, ptr %8, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %86
54: ; preds = %51
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds %struct.addrinfo, ptr %55, i32 0, i32 4
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %8, align 8
%59 = getelementptr inbounds %struct.addrinfo, ptr %58, i32 0, i32 3
%60 = load i32, ptr %59, align 8
%61 = load ptr, ptr %8, align 8
%62 = getelementptr inbounds %struct.addrinfo, ptr %61, i32 0, i32 2
%63 = load i64, ptr %62, align 8
%64 = call i32 @socket(i32 noundef %57, i32 noundef %60, i64 noundef %63)
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %68
67: ; preds = %54
br label %82
68: ; preds = %54
%69 = load i32, ptr %9, align 4
%70 = load ptr, ptr %8, align 8
%71 = getelementptr inbounds %struct.addrinfo, ptr %70, i32 0, i32 1
%72 = load i32, ptr %71, align 4
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds %struct.addrinfo, ptr %73, i32 0, i32 0
%75 = load i32, ptr %74, align 8
%76 = call i32 @connect(i32 noundef %69, i32 noundef %72, i32 noundef %75)
%77 = icmp ne i32 %76, -1
br i1 %77, label %78, label %79
78: ; preds = %68
br label %86
79: ; preds = %68
%80 = load i32, ptr %9, align 4
%81 = call i32 @close(i32 noundef %80)
br label %82
82: ; preds = %79, %67
%83 = load ptr, ptr %8, align 8
%84 = getelementptr inbounds %struct.addrinfo, ptr %83, i32 0, i32 5
%85 = load ptr, ptr %84, align 8
store ptr %85, ptr %8, align 8
br label %51, !llvm.loop !6
86: ; preds = %78, %51
%87 = load ptr, ptr %8, align 8
%88 = icmp eq ptr %87, null
br i1 %88, label %89, label %94
89: ; preds = %86
%90 = load i32, ptr @stderr, align 4
%91 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %90, ptr noundef @.str.2)
%92 = load i32, ptr @EXIT_FAILURE, align 4
%93 = call i32 @exit(i32 noundef %92) #3
unreachable
94: ; preds = %86
%95 = load ptr, ptr %7, align 8
%96 = call i32 @freeaddrinfo(ptr noundef %95)
store i32 3, ptr %11, align 4
br label %97
97: ; preds = %147, %94
%98 = load i32, ptr %11, align 4
%99 = load i32, ptr %4, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %150
101: ; preds = %97
%102 = load ptr, ptr %5, align 8
%103 = load i32, ptr %11, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds ptr, ptr %102, i64 %104
%106 = load ptr, ptr %105, align 8
%107 = call i32 @strlen(ptr noundef %106)
%108 = add nsw i32 %107, 1
%109 = sext i32 %108 to i64
store i64 %109, ptr %12, align 8
%110 = load i64, ptr %12, align 8
%111 = add i64 %110, 1
%112 = icmp ugt i64 %111, 500
br i1 %112, label %113, label %117
113: ; preds = %101
%114 = load i32, ptr @stderr, align 4
%115 = load i32, ptr %11, align 4
%116 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %114, ptr noundef @.str.3, i32 noundef %115)
br label %147
117: ; preds = %101
%118 = load i32, ptr %9, align 4
%119 = load ptr, ptr %5, align 8
%120 = load i32, ptr %11, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds ptr, ptr %119, i64 %121
%123 = load ptr, ptr %122, align 8
%124 = load i64, ptr %12, align 8
%125 = call i64 @write(i32 noundef %118, ptr noundef %123, i64 noundef %124)
%126 = load i64, ptr %12, align 8
%127 = icmp ne i64 %125, %126
br i1 %127, label %128, label %133
128: ; preds = %117
%129 = load i32, ptr @stderr, align 4
%130 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %129, ptr noundef @.str.4)
%131 = load i32, ptr @EXIT_FAILURE, align 4
%132 = call i32 @exit(i32 noundef %131) #3
unreachable
133: ; preds = %117
%134 = load i32, ptr %9, align 4
%135 = getelementptr inbounds [500 x i8], ptr %14, i64 0, i64 0
%136 = call i32 @read(i32 noundef %134, ptr noundef %135, i32 noundef 500)
store i32 %136, ptr %13, align 4
%137 = load i32, ptr %13, align 4
%138 = icmp eq i32 %137, -1
br i1 %138, label %139, label %143
139: ; preds = %133
%140 = call i32 @perror(ptr noundef @.str.5)
%141 = load i32, ptr @EXIT_FAILURE, align 4
%142 = call i32 @exit(i32 noundef %141) #3
unreachable
143: ; preds = %133
%144 = load i32, ptr %13, align 4
%145 = getelementptr inbounds [500 x i8], ptr %14, i64 0, i64 0
%146 = call i32 @printf(ptr noundef @.str.6, i32 noundef %144, ptr noundef %145)
br label %147
147: ; preds = %143, %113
%148 = load i32, ptr %11, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %11, align 4
br label %97, !llvm.loop !8
150: ; preds = %97
%151 = load i32, ptr @EXIT_SUCCESS, align 4
%152 = call i32 @exit(i32 noundef %151) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i64 noundef) #1
declare i32 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_jezd8q4.c"
target datalayout = "e-m:e-p270: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 { i32, i32, i64, i32, i32, ptr, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Usage: %s host port msg...\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Could not connect\0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"Ignoring long message in argument %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"partial/failed write\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Received %zd bytes: %s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.addrinfo, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%13 = alloca i32, align 4
%14 = alloca [500 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %25
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %21)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %2
%26 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 40)
%27 = load i32, ptr @AF_UNSPEC, align 4
%28 = getelementptr inbounds %struct.addrinfo, ptr %6, i32 0, i32 4
store i32 %27, ptr %28, align 4
%29 = load i32, ptr @SOCK_DGRAM, align 4
%30 = getelementptr inbounds %struct.addrinfo, ptr %6, i32 0, i32 3
store i32 %29, ptr %30, align 8
%31 = getelementptr inbounds %struct.addrinfo, ptr %6, i32 0, i32 6
store i64 0, ptr %31, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %6, i32 0, i32 2
store i64 0, ptr %32, align 8
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 2
%38 = load ptr, ptr %37, align 8
%39 = call i32 @getaddrinfo(ptr noundef %35, ptr noundef %38, ptr noundef %6, ptr noundef %7)
store i32 %39, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %49
42: ; preds = %25
%43 = load i32, ptr @stderr, align 4
%44 = load i32, ptr %10, align 4
%45 = call ptr @gai_strerror(i32 noundef %44)
%46 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.1, ptr noundef %45)
%47 = load i32, ptr @EXIT_FAILURE, align 4
%48 = call i32 @exit(i32 noundef %47) #3
unreachable
49: ; preds = %25
%50 = load ptr, ptr %7, align 8
store ptr %50, ptr %8, align 8
%51 = load ptr, ptr %8, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %49
br label %53
53: ; preds = %.lr.ph, %81
%54 = load ptr, ptr %8, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 4
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %8, align 8
%58 = getelementptr inbounds %struct.addrinfo, ptr %57, i32 0, i32 3
%59 = load i32, ptr %58, align 8
%60 = load ptr, ptr %8, align 8
%61 = getelementptr inbounds %struct.addrinfo, ptr %60, i32 0, i32 2
%62 = load i64, ptr %61, align 8
%63 = call i32 @socket(i32 noundef %56, i32 noundef %59, i64 noundef %62)
store i32 %63, ptr %9, align 4
%64 = load i32, ptr %9, align 4
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %67
66: ; preds = %53
br label %81
67: ; preds = %53
%68 = load i32, ptr %9, align 4
%69 = load ptr, ptr %8, align 8
%70 = getelementptr inbounds %struct.addrinfo, ptr %69, i32 0, i32 1
%71 = load i32, ptr %70, align 4
%72 = load ptr, ptr %8, align 8
%73 = getelementptr inbounds %struct.addrinfo, ptr %72, i32 0, i32 0
%74 = load i32, ptr %73, align 8
%75 = call i32 @connect(i32 noundef %68, i32 noundef %71, i32 noundef %74)
%76 = icmp ne i32 %75, -1
br i1 %76, label %77, label %78
77: ; preds = %67
br label %87
78: ; preds = %67
%79 = load i32, ptr %9, align 4
%80 = call i32 @close(i32 noundef %79)
br label %81
81: ; preds = %78, %66
%82 = load ptr, ptr %8, align 8
%83 = getelementptr inbounds %struct.addrinfo, ptr %82, i32 0, i32 5
%84 = load ptr, ptr %83, align 8
store ptr %84, ptr %8, align 8
%85 = load ptr, ptr %8, align 8
%86 = icmp ne ptr %85, null
br i1 %86, label %53, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %81
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %49
br label %87
87: ; preds = %.loopexit, %77
%88 = load ptr, ptr %8, align 8
%89 = icmp eq ptr %88, null
br i1 %89, label %90, label %95
90: ; preds = %87
%91 = load i32, ptr @stderr, align 4
%92 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %91, ptr noundef @.str.2)
%93 = load i32, ptr @EXIT_FAILURE, align 4
%94 = call i32 @exit(i32 noundef %93) #3
unreachable
95: ; preds = %87
%96 = load ptr, ptr %7, align 8
%97 = call i32 @freeaddrinfo(ptr noundef %96)
store i32 3, ptr %11, align 4
%98 = load i32, ptr %11, align 4
%99 = load i32, ptr %4, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %.lr.ph1, label %153
.lr.ph1: ; preds = %95
br label %101
101: ; preds = %.lr.ph1, %147
%102 = load ptr, ptr %5, align 8
%103 = load i32, ptr %11, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds ptr, ptr %102, i64 %104
%106 = load ptr, ptr %105, align 8
%107 = call i32 @strlen(ptr noundef %106)
%108 = add nsw i32 %107, 1
%109 = sext i32 %108 to i64
store i64 %109, ptr %12, align 8
%110 = load i64, ptr %12, align 8
%111 = add i64 %110, 1
%112 = icmp ugt i64 %111, 500
br i1 %112, label %113, label %117
113: ; preds = %101
%114 = load i32, ptr @stderr, align 4
%115 = load i32, ptr %11, align 4
%116 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %114, ptr noundef @.str.3, i32 noundef %115)
br label %147
117: ; preds = %101
%118 = load i32, ptr %9, align 4
%119 = load ptr, ptr %5, align 8
%120 = load i32, ptr %11, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds ptr, ptr %119, i64 %121
%123 = load ptr, ptr %122, align 8
%124 = load i64, ptr %12, align 8
%125 = call i64 @write(i32 noundef %118, ptr noundef %123, i64 noundef %124)
%126 = load i64, ptr %12, align 8
%127 = icmp ne i64 %125, %126
br i1 %127, label %128, label %133
128: ; preds = %117
%129 = load i32, ptr @stderr, align 4
%130 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %129, ptr noundef @.str.4)
%131 = load i32, ptr @EXIT_FAILURE, align 4
%132 = call i32 @exit(i32 noundef %131) #3
unreachable
133: ; preds = %117
%134 = load i32, ptr %9, align 4
%135 = getelementptr inbounds [500 x i8], ptr %14, i64 0, i64 0
%136 = call i32 @read(i32 noundef %134, ptr noundef %135, i32 noundef 500)
store i32 %136, ptr %13, align 4
%137 = load i32, ptr %13, align 4
%138 = icmp eq i32 %137, -1
br i1 %138, label %139, label %143
139: ; preds = %133
%140 = call i32 @perror(ptr noundef @.str.5)
%141 = load i32, ptr @EXIT_FAILURE, align 4
%142 = call i32 @exit(i32 noundef %141) #3
unreachable
143: ; preds = %133
%144 = load i32, ptr %13, align 4
%145 = getelementptr inbounds [500 x i8], ptr %14, i64 0, i64 0
%146 = call i32 @printf(ptr noundef @.str.6, i32 noundef %144, ptr noundef %145)
br label %147
147: ; preds = %143, %113
%148 = load i32, ptr %11, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %11, align 4
%150 = load i32, ptr %11, align 4
%151 = load i32, ptr %4, align 4
%152 = icmp slt i32 %150, %151
br i1 %152, label %101, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %147
br label %153
153: ; preds = %._crit_edge, %95
%154 = load i32, ptr @EXIT_SUCCESS, align 4
%155 = call i32 @exit(i32 noundef %154) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i64 noundef) #1
declare i32 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpaj8ry2x3.c'
source_filename = "/tmp/tmpaj8ry2x3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ASN1_F_ASN1_I2D_FP = dso_local global i32 0, align 4
@ERR_R_BUF_LIB = dso_local global i32 0, align 4
@BIO_NOCLOSE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ASN1_i2d_fp(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%10 = call i32 (...) @BIO_s_file()
%11 = call ptr @BIO_new(i32 noundef %10)
store ptr %11, ptr %8, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %3
%14 = load i32, ptr @ASN1_F_ASN1_I2D_FP, align 4
%15 = load i32, ptr @ERR_R_BUF_LIB, align 4
%16 = call i32 @ASN1err(i32 noundef %14, i32 noundef %15)
store i32 0, ptr %4, align 4
br label %29
17: ; preds = %3
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr @BIO_NOCLOSE, align 4
%21 = call i32 @BIO_set_fp(ptr noundef %18, ptr noundef %19, i32 noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %8, align 8
%24 = load ptr, ptr %7, align 8
%25 = call i32 @ASN1_i2d_bio(ptr noundef %22, ptr noundef %23, ptr noundef %24)
store i32 %25, ptr %9, align 4
%26 = load ptr, ptr %8, align 8
%27 = call i32 @BIO_free(ptr noundef %26)
%28 = load i32, ptr %9, align 4
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %17, %13
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare ptr @BIO_new(i32 noundef) #1
declare i32 @BIO_s_file(...) #1
declare i32 @ASN1err(i32 noundef, i32 noundef) #1
declare i32 @BIO_set_fp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ASN1_i2d_bio(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @BIO_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/tmpaj8ry2x3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ASN1_F_ASN1_I2D_FP = dso_local global i32 0, align 4
@ERR_R_BUF_LIB = dso_local global i32 0, align 4
@BIO_NOCLOSE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ASN1_i2d_fp(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%10 = call i32 (...) @BIO_s_file()
%11 = call ptr @BIO_new(i32 noundef %10)
store ptr %11, ptr %8, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %3
%14 = load i32, ptr @ASN1_F_ASN1_I2D_FP, align 4
%15 = load i32, ptr @ERR_R_BUF_LIB, align 4
%16 = call i32 @ASN1err(i32 noundef %14, i32 noundef %15)
store i32 0, ptr %4, align 4
br label %29
17: ; preds = %3
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr @BIO_NOCLOSE, align 4
%21 = call i32 @BIO_set_fp(ptr noundef %18, ptr noundef %19, i32 noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %8, align 8
%24 = load ptr, ptr %7, align 8
%25 = call i32 @ASN1_i2d_bio(ptr noundef %22, ptr noundef %23, ptr noundef %24)
store i32 %25, ptr %9, align 4
%26 = load ptr, ptr %8, align 8
%27 = call i32 @BIO_free(ptr noundef %26)
%28 = load i32, ptr %9, align 4
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %17, %13
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare ptr @BIO_new(i32 noundef) #1
declare i32 @BIO_s_file(...) #1
declare i32 @ASN1err(i32 noundef, i32 noundef) #1
declare i32 @BIO_set_fp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ASN1_i2d_bio(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @BIO_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/tmpta9jumw6.c'
source_filename = "/tmp/tmpta9jumw6.c"
target datalayout = "e-m:e-p270: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 @foo(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 = icmp slt i32 %5, %6
%8 = zext i1 %7 to i32
%9 = call i32 @__VERIFIER_assert(i32 noundef %8)
ret void
}
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpta9jumw6.c"
target datalayout = "e-m:e-p270: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 @foo(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 = icmp slt i32 %5, %6
%8 = zext i1 %7 to i32
%9 = call i32 @__VERIFIER_assert(i32 noundef %8)
ret void
}
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6opdvvjc.c'
source_filename = "/tmp/tmp6opdvvjc.c"
target datalayout = "e-m:e-p270: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 @mergeSort(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sge i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %4
br label %34
14: ; preds = %4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %15, %16
%18 = sdiv i32 %17, 2
store i32 %18, ptr %9, align 4
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %9, align 4
%22 = load ptr, ptr %8, align 8
call void @mergeSort(ptr noundef %19, i32 noundef %20, i32 noundef %21, ptr noundef %22)
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, 1
%26 = load i32, ptr %7, align 4
%27 = load ptr, ptr %8, align 8
call void @mergeSort(ptr noundef %23, i32 noundef %25, i32 noundef %26, ptr noundef %27)
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %9, align 4
%32 = load ptr, ptr %8, align 8
%33 = call i32 @merge(ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31, ptr noundef %32)
br label %34
34: ; preds = %14, %13
ret void
}
declare i32 @merge(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6opdvvjc.c"
target datalayout = "e-m:e-p270: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 @mergeSort(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sge i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %4
br label %34
14: ; preds = %4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %15, %16
%18 = sdiv i32 %17, 2
store i32 %18, ptr %9, align 4
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %9, align 4
%22 = load ptr, ptr %8, align 8
call void @mergeSort(ptr noundef %19, i32 noundef %20, i32 noundef %21, ptr noundef %22)
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, 1
%26 = load i32, ptr %7, align 4
%27 = load ptr, ptr %8, align 8
call void @mergeSort(ptr noundef %23, i32 noundef %25, i32 noundef %26, ptr noundef %27)
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %9, align 4
%32 = load ptr, ptr %8, align 8
%33 = call i32 @merge(ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31, ptr noundef %32)
br label %34
34: ; preds = %14, %13
ret void
}
declare i32 @merge(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm96duod8.c'
source_filename = "/tmp/tmpm96duod8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\1B[%dD\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @AnsiTerm_cursor_back(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 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
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/tmpm96duod8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\1B[%dD\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @AnsiTerm_cursor_back(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 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
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/tmprjdq72w8.c'
source_filename = "/tmp/tmprjdq72w8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"write\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @filewrite(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 0, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_CREAT, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @S_IRUSR, align 4
%14 = load i32, ptr @S_IWUSR, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @S_IRGRP, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @S_IROTH, align 4
%19 = or i32 %17, %18
%20 = call i32 @open(ptr noundef %9, i32 noundef %12, i32 noundef %19)
store i32 %20, ptr %8, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %3
%23 = call i32 @perror(ptr noundef @.str)
store i32 -2147479292, ptr %4, align 4
br label %33
24: ; preds = %3
%25 = load i32, ptr %8, align 4
%26 = load ptr, ptr %6, align 8
%27 = load i64, ptr %7, align 8
%28 = call i64 @write(i32 noundef %25, ptr noundef %26, i64 noundef %27)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = call i32 @perror(ptr noundef @.str.1)
store i32 -2147479290, ptr %4, align 4
br label %33
32: ; preds = %24
store i32 0, ptr %4, align 4
br label %33
33: ; preds = %32, %30, %22
%34 = load i32, ptr %4, align 4
ret i32 %34
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprjdq72w8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"write\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @filewrite(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 0, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_CREAT, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @S_IRUSR, align 4
%14 = load i32, ptr @S_IWUSR, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @S_IRGRP, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @S_IROTH, align 4
%19 = or i32 %17, %18
%20 = call i32 @open(ptr noundef %9, i32 noundef %12, i32 noundef %19)
store i32 %20, ptr %8, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %3
%23 = call i32 @perror(ptr noundef @.str)
store i32 -2147479292, ptr %4, align 4
br label %33
24: ; preds = %3
%25 = load i32, ptr %8, align 4
%26 = load ptr, ptr %6, align 8
%27 = load i64, ptr %7, align 8
%28 = call i64 @write(i32 noundef %25, ptr noundef %26, i64 noundef %27)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = call i32 @perror(ptr noundef @.str.1)
store i32 -2147479290, ptr %4, align 4
br label %33
32: ; preds = %24
store i32 0, ptr %4, align 4
br label %33
33: ; preds = %32, %30, %22
%34 = load i32, ptr %4, align 4
ret i32 %34
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzlwlnkw6.c'
source_filename = "/tmp/tmpzlwlnkw6.c"
target datalayout = "e-m:e-p270: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/tmpzlwlnkw6.c"
target datalayout = "e-m:e-p270: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/tmpvdkviudw.c'
source_filename = "/tmp/tmpvdkviudw.c"
target datalayout = "e-m:e-p270: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 @libamg_process_start_init_program(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 @_set_init_program(i32 noundef 1, ptr noundef %3)
ret i32 %4
}
declare i32 @_set_init_program(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/tmpvdkviudw.c"
target datalayout = "e-m:e-p270: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 @libamg_process_start_init_program(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 @_set_init_program(i32 noundef 1, ptr noundef %3)
ret i32 %4
}
declare i32 @_set_init_program(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/tmp8vflyzd5.c'
source_filename = "/tmp/tmp8vflyzd5.c"
target datalayout = "e-m:e-p270: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/tmp8vflyzd5.c"
target datalayout = "e-m:e-p270: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/tmpyehsml7u.c'
source_filename = "/tmp/tmpyehsml7u.c"
target datalayout = "e-m:e-p270: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 @freezeFrame(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 15000, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = mul i32 15000, %4
%6 = call i32 @usleep(i32 noundef %5)
ret void
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyehsml7u.c"
target datalayout = "e-m:e-p270: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 @freezeFrame(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 15000, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = mul i32 15000, %4
%6 = call i32 @usleep(i32 noundef %5)
ret void
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx2lzi3pe.c'
source_filename = "/tmp/tmpx2lzi3pe.c"
target datalayout = "e-m:e-p270: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"*#This is a stopwatch#*\0A\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"**Press 'p' to pause.\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"**Press any key to start & to stop.\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"\09\09*#This is a stopwatch#*\0A\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0D\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Time-\09 %d : %d : %d \00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"\0DTime-\09 %d : %d : %d \00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call signext i8 (...) @getch()
%8 = call i32 @system(ptr noundef @.str.3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%10 = call i32 (...) @clock()
store i32 %10, ptr %2, align 4
br label %11
11: ; preds = %0, %56
br label %12
12: ; preds = %11, %33
%13 = call i32 (...) @clock()
store i32 %13, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = sub nsw i32 %15, %16
%18 = sdiv i32 %17, 1000
%19 = sdiv i32 %18, 60
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %2, align 4
%22 = sub nsw i32 %20, %21
%23 = sdiv i32 %22, 1000
%24 = srem i32 %23, 60
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %2, align 4
%27 = sub nsw i32 %25, %26
%28 = srem i32 %27, 1000
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %19, i32 noundef %24, i32 noundef %28)
%30 = call i64 (...) @kbhit()
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %12
br label %34
33: ; preds = %12
br label %12
34: ; preds = %32
%35 = call signext i8 (...) @getch()
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 112
br i1 %37, label %38, label %55
38: ; preds = %34
%39 = load i32, ptr %3, align 4
%40 = load i32, ptr %2, align 4
%41 = sub nsw i32 %39, %40
%42 = sdiv i32 %41, 1000
%43 = sdiv i32 %42, 60
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %2, align 4
%46 = sub nsw i32 %44, %45
%47 = sdiv i32 %46, 1000
%48 = srem i32 %47, 60
%49 = load i32, ptr %3, align 4
%50 = load i32, ptr %2, align 4
%51 = sub nsw i32 %49, %50
%52 = srem i32 %51, 1000
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %43, i32 noundef %48, i32 noundef %52)
%54 = call signext i8 (...) @getch()
br label %56
55: ; preds = %34
br label %62
56: ; preds = %38
%57 = load i32, ptr %2, align 4
%58 = call i32 (...) @clock()
%59 = load i32, ptr %3, align 4
%60 = sub nsw i32 %58, %59
%61 = add nsw i32 %57, %60
store i32 %61, ptr %2, align 4
br label %11
62: ; preds = %55
%63 = load i32, ptr %3, align 4
%64 = load i32, ptr %2, align 4
%65 = sub nsw i32 %63, %64
%66 = sdiv i32 %65, 1000
%67 = sdiv i32 %66, 60
%68 = load i32, ptr %3, align 4
%69 = load i32, ptr %2, align 4
%70 = sub nsw i32 %68, %69
%71 = sdiv i32 %70, 1000
%72 = srem i32 %71, 60
%73 = load i32, ptr %3, align 4
%74 = load i32, ptr %2, align 4
%75 = sub nsw i32 %73, %74
%76 = srem i32 %75, 1000
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %67, i32 noundef %72, i32 noundef %76)
%78 = call signext i8 (...) @getch()
%79 = call signext i8 (...) @getch()
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getch(...) #1
declare i32 @system(ptr noundef) #1
declare i32 @clock(...) #1
declare i64 @kbhit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx2lzi3pe.c"
target datalayout = "e-m:e-p270: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"*#This is a stopwatch#*\0A\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"**Press 'p' to pause.\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"**Press any key to start & to stop.\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"\09\09*#This is a stopwatch#*\0A\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0D\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Time-\09 %d : %d : %d \00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"\0DTime-\09 %d : %d : %d \00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call signext i8 (...) @getch()
%8 = call i32 @system(ptr noundef @.str.3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%10 = call i32 (...) @clock()
store i32 %10, ptr %2, align 4
br label %11
11: ; preds = %55, %0
br label %12
12: ; preds = %12, %11
%13 = call i32 (...) @clock()
store i32 %13, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = sub nsw i32 %15, %16
%18 = sdiv i32 %17, 1000
%19 = sdiv i32 %18, 60
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %2, align 4
%22 = sub nsw i32 %20, %21
%23 = sdiv i32 %22, 1000
%24 = srem i32 %23, 60
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %2, align 4
%27 = sub nsw i32 %25, %26
%28 = srem i32 %27, 1000
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %19, i32 noundef %24, i32 noundef %28)
%30 = call i64 (...) @kbhit()
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %12
32: ; preds = %12
br label %33
33: ; preds = %32
%34 = call signext i8 (...) @getch()
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 112
br i1 %36, label %37, label %54
37: ; preds = %33
%38 = load i32, ptr %3, align 4
%39 = load i32, ptr %2, align 4
%40 = sub nsw i32 %38, %39
%41 = sdiv i32 %40, 1000
%42 = sdiv i32 %41, 60
%43 = load i32, ptr %3, align 4
%44 = load i32, ptr %2, align 4
%45 = sub nsw i32 %43, %44
%46 = sdiv i32 %45, 1000
%47 = srem i32 %46, 60
%48 = load i32, ptr %3, align 4
%49 = load i32, ptr %2, align 4
%50 = sub nsw i32 %48, %49
%51 = srem i32 %50, 1000
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %42, i32 noundef %47, i32 noundef %51)
%53 = call signext i8 (...) @getch()
br label %55
54: ; preds = %33
br label %61
55: ; preds = %37
%56 = load i32, ptr %2, align 4
%57 = call i32 (...) @clock()
%58 = load i32, ptr %3, align 4
%59 = sub nsw i32 %57, %58
%60 = add nsw i32 %56, %59
store i32 %60, ptr %2, align 4
br label %11
61: ; preds = %54
%62 = load i32, ptr %3, align 4
%63 = load i32, ptr %2, align 4
%64 = sub nsw i32 %62, %63
%65 = sdiv i32 %64, 1000
%66 = sdiv i32 %65, 60
%67 = load i32, ptr %3, align 4
%68 = load i32, ptr %2, align 4
%69 = sub nsw i32 %67, %68
%70 = sdiv i32 %69, 1000
%71 = srem i32 %70, 60
%72 = load i32, ptr %3, align 4
%73 = load i32, ptr %2, align 4
%74 = sub nsw i32 %72, %73
%75 = srem i32 %74, 1000
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %66, i32 noundef %71, i32 noundef %75)
%77 = call signext i8 (...) @getch()
%78 = call signext i8 (...) @getch()
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getch(...) #1
declare i32 @system(ptr noundef) #1
declare i32 @clock(...) #1
declare i64 @kbhit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8aqrk7zo.c'
source_filename = "/tmp/tmp8aqrk7zo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca 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 ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %14
14: ; preds = %187, %0
%15 = load i32, ptr @stdin, align 4
%16 = call i64 @feof(i32 noundef %15)
%17 = icmp ne i64 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %188
19: ; preds = %14
store i32 0, ptr %7, align 4
store i32 0, ptr %9, align 4
store i32 1, ptr %10, align 4
%20 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%21 = load i32, ptr %3, align 4
%22 = zext i32 %21 to i64
%23 = call ptr @llvm.stacksave()
store ptr %23, ptr %11, align 8
%24 = alloca ptr, i64 %22, align 16
store i64 %22, ptr %12, align 8
store i32 0, ptr %4, align 4
br label %25
25: ; preds = %39, %19
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %42
29: ; preds = %25
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 4
%33 = trunc i64 %32 to i32
%34 = call i64 @malloc(i32 noundef %33)
%35 = inttoptr i64 %34 to ptr
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %24, i64 %37
store ptr %35, ptr %38, align 8
br label %39
39: ; preds = %29
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %25, !llvm.loop !6
42: ; preds = %25
store i32 0, ptr %4, align 4
br label %43
43: ; preds = %64, %42
%44 = load i32, ptr %4, align 4
%45 = load i32, ptr %3, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %67
47: ; preds = %43
store i32 0, ptr %5, align 4
br label %48
48: ; preds = %60, %47
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %63
52: ; preds = %48
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds ptr, ptr %24, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = load i32, ptr %5, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
store i32 0, ptr %59, align 4
br label %60
60: ; preds = %52
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
br label %48, !llvm.loop !8
63: ; preds = %48
br label %64
64: ; preds = %63
%65 = load i32, ptr %4, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %4, align 4
br label %43, !llvm.loop !9
67: ; preds = %43
store i32 1, ptr %4, align 4
br label %68
68: ; preds = %170, %67
%69 = load i32, ptr %4, align 4
%70 = load i32, ptr %3, align 4
%71 = icmp sle i32 %69, %70
br i1 %71, label %72, label %173
72: ; preds = %68
%73 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %8)
%74 = load i32, ptr %4, align 4
%75 = icmp eq i32 %74, 1
br i1 %75, label %76, label %85
76: ; preds = %72
%77 = load i32, ptr %8, align 4
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %85
79: ; preds = %76
%80 = getelementptr inbounds ptr, ptr %24, i64 0
%81 = load ptr, ptr %80, align 16
%82 = getelementptr inbounds i32, ptr %81, i64 0
store i32 1, ptr %82, align 4
%83 = load i32, ptr %9, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %9, align 4
br label %161
85: ; preds = %76, %72
%86 = load i32, ptr %8, align 4
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %108
88: ; preds = %85
store i32 0, ptr %5, align 4
br label %89
89: ; preds = %98, %88
%90 = getelementptr inbounds ptr, ptr %24, i64 0
%91 = load ptr, ptr %90, align 16
%92 = load i32, ptr %5, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %91, i64 %93
%95 = load i32, ptr %94, align 4
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %89
br label %98
98: ; preds = %97
%99 = load i32, ptr %5, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %5, align 4
br label %89, !llvm.loop !10
101: ; preds = %89
%102 = load i32, ptr %4, align 4
%103 = getelementptr inbounds ptr, ptr %24, i64 0
%104 = load ptr, ptr %103, align 16
%105 = load i32, ptr %5, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
store i32 %102, ptr %107, align 4
br label %160
108: ; preds = %85
store i32 0, ptr %7, align 4
store i32 0, ptr %5, align 4
br label %109
109: ; preds = %156, %108
%110 = load i32, ptr %5, align 4
%111 = load i32, ptr %3, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %159
113: ; preds = %109
store i32 0, ptr %6, align 4
store i32 1, ptr %10, align 4
br label %114
114: ; preds = %146, %113
%115 = load i32, ptr %6, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds ptr, ptr %24, i64 %116
%118 = load ptr, ptr %117, align 8
%119 = load i32, ptr %5, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32, ptr %118, i64 %120
%122 = load i32, ptr %121, align 4
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %151
124: ; preds = %114
%125 = load i32, ptr %6, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds ptr, ptr %24, i64 %126
%128 = load ptr, ptr %127, align 8
%129 = load i32, ptr %5, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i32, ptr %128, i64 %130
%132 = load i32, ptr %131, align 4
%133 = load i32, ptr %8, align 4
%134 = icmp eq i32 %132, %133
br i1 %134, label %135, label %145
135: ; preds = %124
%136 = load i32, ptr %4, align 4
%137 = load i32, ptr %6, align 4
%138 = add nsw i32 %137, 1
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds ptr, ptr %24, i64 %139
%141 = load ptr, ptr %140, align 8
%142 = load i32, ptr %5, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i32, ptr %141, i64 %143
store i32 %136, ptr %144, align 4
store i32 1, ptr %7, align 4
br label %151
145: ; preds = %124
br label %146
146: ; preds = %145
%147 = load i32, ptr %6, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %6, align 4
%149 = load i32, ptr %10, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %10, align 4
br label %114, !llvm.loop !11
151: ; preds = %135, %114
%152 = load i32, ptr %7, align 4
%153 = icmp eq i32 %152, 1
br i1 %153, label %154, label %155
154: ; preds = %151
br label %159
155: ; preds = %151
br label %156
156: ; preds = %155
%157 = load i32, ptr %5, align 4
%158 = add nsw i32 %157, 1
store i32 %158, ptr %5, align 4
br label %109, !llvm.loop !12
159: ; preds = %154, %109
br label %160
160: ; preds = %159, %101
br label %161
161: ; preds = %160, %79
%162 = load i32, ptr %9, align 4
%163 = load i32, ptr %10, align 4
%164 = add nsw i32 %163, 1
%165 = icmp slt i32 %162, %164
br i1 %165, label %166, label %169
166: ; preds = %161
%167 = load i32, ptr %10, align 4
%168 = add nsw i32 %167, 1
store i32 %168, ptr %9, align 4
br label %169
169: ; preds = %166, %161
br label %170
170: ; preds = %169
%171 = load i32, ptr %4, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %4, align 4
br label %68, !llvm.loop !13
173: ; preds = %68
%174 = load i32, ptr @stdin, align 4
%175 = call i64 @feof(i32 noundef %174)
%176 = icmp ne i64 %175, 0
br i1 %176, label %177, label %178
177: ; preds = %173
store i32 3, ptr %13, align 4
br label %184
178: ; preds = %173
%179 = load i32, ptr %2, align 4
%180 = load i32, ptr %9, align 4
%181 = sub nsw i32 %179, %180
%182 = call i32 @abs(i32 noundef %181) #4
%183 = call i32 @printf(ptr noundef @.str.2, i32 noundef %182)
store i32 0, ptr %13, align 4
br label %184
184: ; preds = %178, %177
%185 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %185)
%186 = load i32, ptr %13, align 4
switch i32 %186, label %189 [
i32 0, label %187
i32 3, label %188
]
187: ; preds = %184
br label %14, !llvm.loop !14
188: ; preds = %184, %14
ret i32 0
189: ; preds = %184
unreachable
}
declare i64 @feof(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #3
; 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 }
attributes #3 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8aqrk7zo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca 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 ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
%14 = load i32, ptr @stdin, align 4
%15 = call i64 @feof(i32 noundef %14)
%16 = icmp ne i64 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %.lr.ph19, label %214
.lr.ph19: ; preds = %0
br label %18
18: ; preds = %.lr.ph19, %209
store i32 0, ptr %7, align 4
store i32 0, ptr %9, align 4
store i32 1, ptr %10, align 4
%19 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%20 = load i32, ptr %3, align 4
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %11, align 8
%23 = alloca ptr, i64 %21, align 16
store i64 %21, ptr %12, align 8
store i32 0, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %43
.lr.ph: ; preds = %18
br label %27
27: ; preds = %.lr.ph, %37
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 4
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 noundef %31)
%33 = inttoptr i64 %32 to ptr
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %23, i64 %35
store ptr %33, ptr %36, align 8
br label %37
37: ; preds = %27
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %3, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %18
store i32 0, ptr %4, align 4
%44 = load i32, ptr %4, align 4
%45 = load i32, ptr %3, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %.lr.ph6, label %72
.lr.ph6: ; preds = %43
br label %47
47: ; preds = %.lr.ph6, %66
store i32 0, ptr %5, align 4
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %.lr.ph3, label %65
.lr.ph3: ; preds = %47
br label %51
51: ; preds = %.lr.ph3, %59
%52 = load i32, ptr %4, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds ptr, ptr %23, i64 %53
%55 = load ptr, ptr %54, align 8
%56 = load i32, ptr %5, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
store i32 0, ptr %58, align 4
br label %59
59: ; preds = %51
%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 %51, label %._crit_edge4, !llvm.loop !8
._crit_edge4: ; preds = %59
br label %65
65: ; preds = %._crit_edge4, %47
br label %66
66: ; preds = %65
%67 = load i32, ptr %4, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %4, align 4
%69 = load i32, ptr %4, align 4
%70 = load i32, ptr %3, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %47, label %._crit_edge7, !llvm.loop !9
._crit_edge7: ; preds = %66
br label %72
72: ; preds = %._crit_edge7, %43
store i32 1, ptr %4, align 4
%73 = load i32, ptr %4, align 4
%74 = load i32, ptr %3, align 4
%75 = icmp sle i32 %73, %74
br i1 %75, label %.lr.ph16, label %195
.lr.ph16: ; preds = %72
br label %76
76: ; preds = %.lr.ph16, %189
%77 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %8)
%78 = load i32, ptr %4, align 4
%79 = icmp eq i32 %78, 1
br i1 %79, label %80, label %89
80: ; preds = %76
%81 = load i32, ptr %8, align 4
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %89
83: ; preds = %80
%84 = getelementptr inbounds ptr, ptr %23, i64 0
%85 = load ptr, ptr %84, align 16
%86 = getelementptr inbounds i32, ptr %85, i64 0
store i32 1, ptr %86, align 4
%87 = load i32, ptr %9, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %9, align 4
br label %180
89: ; preds = %80, %76
%90 = load i32, ptr %8, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %117
92: ; preds = %89
store i32 0, ptr %5, align 4
%93 = getelementptr inbounds ptr, ptr %23, i64 0
%94 = load ptr, ptr %93, align 16
%95 = load i32, ptr %5, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, ptr %94, i64 %96
%98 = load i32, ptr %97, align 4
%99 = icmp ne i32 %98, 0
br i1 %99, label %.lr.ph13, label %110
.lr.ph13: ; preds = %92
br label %100
100: ; preds = %.lr.ph13, %101
br label %101
101: ; preds = %100
%102 = load i32, ptr %5, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %5, align 4
%104 = load ptr, ptr %93, align 16
%105 = load i32, ptr %5, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
%108 = load i32, ptr %107, align 4
%109 = icmp ne i32 %108, 0
br i1 %109, label %100, label %._crit_edge14, !llvm.loop !10
._crit_edge14: ; preds = %101
br label %110
110: ; preds = %._crit_edge14, %92
%111 = load i32, ptr %4, align 4
%112 = getelementptr inbounds ptr, ptr %23, i64 0
%113 = load ptr, ptr %112, align 16
%114 = load i32, ptr %5, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, ptr %113, i64 %115
store i32 %111, ptr %116, align 4
br label %179
117: ; preds = %89
store i32 0, ptr %7, align 4
store i32 0, ptr %5, align 4
%118 = load i32, ptr %5, align 4
%119 = load i32, ptr %3, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %.lr.ph11, label %.loopexit1
.lr.ph11: ; preds = %117
br label %121
121: ; preds = %.lr.ph11, %172
store i32 0, ptr %6, align 4
store i32 1, ptr %10, align 4
%122 = load i32, ptr %6, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds ptr, ptr %23, i64 %123
%125 = load ptr, ptr %124, align 8
%126 = load i32, ptr %5, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %125, i64 %127
%129 = load i32, ptr %128, align 4
%130 = icmp ne i32 %129, 0
br i1 %130, label %.lr.ph9, label %.loopexit
.lr.ph9: ; preds = %121
br label %131
131: ; preds = %.lr.ph9, %153
%132 = load i32, ptr %6, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds ptr, ptr %23, i64 %133
%135 = load ptr, ptr %134, align 8
%136 = load i32, ptr %5, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, ptr %135, i64 %137
%139 = load i32, ptr %138, align 4
%140 = load i32, ptr %8, align 4
%141 = icmp eq i32 %139, %140
br i1 %141, label %142, label %152
142: ; preds = %131
%143 = load i32, ptr %4, align 4
%144 = load i32, ptr %6, align 4
%145 = add nsw i32 %144, 1
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds ptr, ptr %23, i64 %146
%148 = load ptr, ptr %147, align 8
%149 = load i32, ptr %5, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, ptr %148, i64 %150
store i32 %143, ptr %151, align 4
store i32 1, ptr %7, align 4
br label %167
152: ; preds = %131
br label %153
153: ; preds = %152
%154 = load i32, ptr %6, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %6, align 4
%156 = load i32, ptr %10, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %10, align 4
%158 = load i32, ptr %6, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds ptr, ptr %23, i64 %159
%161 = load ptr, ptr %160, align 8
%162 = load i32, ptr %5, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i32, ptr %161, i64 %163
%165 = load i32, ptr %164, align 4
%166 = icmp ne i32 %165, 0
br i1 %166, label %131, label %..loopexit_crit_edge, !llvm.loop !11
..loopexit_crit_edge: ; preds = %153
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %121
br label %167
167: ; preds = %.loopexit, %142
%168 = load i32, ptr %7, align 4
%169 = icmp eq i32 %168, 1
br i1 %169, label %170, label %171
170: ; preds = %167
br label %178
171: ; preds = %167
br label %172
172: ; preds = %171
%173 = load i32, ptr %5, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %5, align 4
%175 = load i32, ptr %5, align 4
%176 = load i32, ptr %3, align 4
%177 = icmp slt i32 %175, %176
br i1 %177, label %121, label %..loopexit1_crit_edge, !llvm.loop !12
..loopexit1_crit_edge: ; preds = %172
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %117
br label %178
178: ; preds = %.loopexit1, %170
br label %179
179: ; preds = %178, %110
br label %180
180: ; preds = %179, %83
%181 = load i32, ptr %9, align 4
%182 = load i32, ptr %10, align 4
%183 = add nsw i32 %182, 1
%184 = icmp slt i32 %181, %183
br i1 %184, label %185, label %188
185: ; preds = %180
%186 = load i32, ptr %10, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %9, align 4
br label %188
188: ; preds = %185, %180
br label %189
189: ; preds = %188
%190 = load i32, ptr %4, align 4
%191 = add nsw i32 %190, 1
store i32 %191, ptr %4, align 4
%192 = load i32, ptr %4, align 4
%193 = load i32, ptr %3, align 4
%194 = icmp sle i32 %192, %193
br i1 %194, label %76, label %._crit_edge17, !llvm.loop !13
._crit_edge17: ; preds = %189
br label %195
195: ; preds = %._crit_edge17, %72
%196 = load i32, ptr @stdin, align 4
%197 = call i64 @feof(i32 noundef %196)
%198 = icmp ne i64 %197, 0
br i1 %198, label %199, label %200
199: ; preds = %195
store i32 3, ptr %13, align 4
br label %206
200: ; preds = %195
%201 = load i32, ptr %2, align 4
%202 = load i32, ptr %9, align 4
%203 = sub nsw i32 %201, %202
%204 = call i32 @abs(i32 noundef %203) #4
%205 = call i32 @printf(ptr noundef @.str.2, i32 noundef %204)
store i32 0, ptr %13, align 4
br label %206
206: ; preds = %200, %199
%207 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %207)
%208 = load i32, ptr %13, align 4
switch i32 %208, label %215 [
i32 0, label %209
i32 3, label %._crit_edge20
]
209: ; preds = %206
%210 = load i32, ptr @stdin, align 4
%211 = call i64 @feof(i32 noundef %210)
%212 = icmp ne i64 %211, 0
%213 = xor i1 %212, true
br i1 %213, label %18, label %._crit_edge21, !llvm.loop !14
._crit_edge20: ; preds = %206
br label %214
._crit_edge21: ; preds = %209
br label %214
214: ; preds = %._crit_edge21, %._crit_edge20, %0
ret i32 0
215: ; preds = %206
unreachable
}
declare i64 @feof(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #3
; 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 }
attributes #3 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmptv0pjlf4.c'
source_filename = "/tmp/tmptv0pjlf4.c"
target datalayout = "e-m:e-p270: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 @pim_interface_new_hook(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 @pim_vif_new(ptr noundef %3)
ret i32 0
}
declare i32 @pim_vif_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptv0pjlf4.c"
target datalayout = "e-m:e-p270: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 @pim_interface_new_hook(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 @pim_vif_new(ptr noundef %3)
ret i32 0
}
declare i32 @pim_vif_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzgbfmd4y.c'
source_filename = "/tmp/tmpzgbfmd4y.c"
target datalayout = "e-m:e-p270: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 @sfd_streql_ct(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
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 1, ptr %6, align 4
%10 = load ptr, ptr %3, align 8
%11 = call i32 @sfd_strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 @sfd_strlen(ptr noundef %12)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = load i32, ptr %7, align 4
br label %21
19: ; preds = %2
%20 = load i32, ptr %8, align 4
br label %21
21: ; preds = %19, %17
%22 = phi i32 [ %18, %17 ], [ %20, %19 ]
store i32 %22, ptr %9, align 4
store i32 0, ptr %5, align 4
br label %23
23: ; preds = %43, %21
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %46
27: ; preds = %23
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %33, %39
br i1 %40, label %41, label %42
41: ; preds = %27
store i32 0, ptr %6, align 4
br label %42
42: ; preds = %41, %27
br label %43
43: ; preds = %42
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
br label %23, !llvm.loop !6
46: ; preds = %23
%47 = load i32, ptr %6, align 4
ret i32 %47
}
declare i32 @sfd_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/tmpzgbfmd4y.c"
target datalayout = "e-m:e-p270: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 @sfd_streql_ct(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
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 1, ptr %6, align 4
%10 = load ptr, ptr %3, align 8
%11 = call i32 @sfd_strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 @sfd_strlen(ptr noundef %12)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = load i32, ptr %7, align 4
br label %21
19: ; preds = %2
%20 = load i32, ptr %8, align 4
br label %21
21: ; preds = %19, %17
%22 = phi i32 [ %18, %17 ], [ %20, %19 ]
store i32 %22, ptr %9, align 4
store i32 0, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph, label %48
.lr.ph: ; preds = %21
br label %26
26: ; preds = %.lr.ph, %42
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %32, %38
br i1 %39, label %40, label %41
40: ; preds = %26
store i32 0, ptr %6, align 4
br label %41
41: ; preds = %40, %26
br label %42
42: ; preds = %41
%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 %9, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %21
%49 = load i32, ptr %6, align 4
ret i32 %49
}
declare i32 @sfd_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/tmp5k0cmcq1.c'
source_filename = "/tmp/tmp5k0cmcq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i64 0, align 8
@INT_MIN = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5k0cmcq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i64 0, align 8
@INT_MIN = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd4p1ixt0.c'
source_filename = "/tmp/tmpd4p1ixt0.c"
target datalayout = "e-m:e-p270: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/tmpd4p1ixt0.c"
target datalayout = "e-m:e-p270: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/tmpfzs66m1d.c'
source_filename = "/tmp/tmpfzs66m1d.c"
target datalayout = "e-m:e-p270: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 @test_mm_set_epi16(i16 noundef signext %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef signext %3, i16 noundef signext %4, i16 noundef signext %5, i16 noundef signext %6, i16 noundef signext %7) #0 {
%9 = alloca i16, align 2
%10 = alloca i16, align 2
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca i16, align 2
%15 = alloca i16, align 2
%16 = alloca i16, align 2
store i16 %0, ptr %9, align 2
store i16 %1, ptr %10, align 2
store i16 %2, ptr %11, align 2
store i16 %3, ptr %12, align 2
store i16 %4, ptr %13, align 2
store i16 %5, ptr %14, align 2
store i16 %6, ptr %15, align 2
store i16 %7, ptr %16, align 2
%17 = load i16, ptr %9, align 2
%18 = load i16, ptr %10, align 2
%19 = load i16, ptr %11, align 2
%20 = load i16, ptr %12, align 2
%21 = load i16, ptr %13, align 2
%22 = load i16, ptr %14, align 2
%23 = load i16, ptr %15, align 2
%24 = load i16, ptr %16, align 2
%25 = call i32 @_mm_set_epi16(i16 noundef signext %17, i16 noundef signext %18, i16 noundef signext %19, i16 noundef signext %20, i16 noundef signext %21, i16 noundef signext %22, i16 noundef signext %23, i16 noundef signext %24)
ret i32 %25
}
declare i32 @_mm_set_epi16(i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfzs66m1d.c"
target datalayout = "e-m:e-p270: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 @test_mm_set_epi16(i16 noundef signext %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef signext %3, i16 noundef signext %4, i16 noundef signext %5, i16 noundef signext %6, i16 noundef signext %7) #0 {
%9 = alloca i16, align 2
%10 = alloca i16, align 2
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca i16, align 2
%15 = alloca i16, align 2
%16 = alloca i16, align 2
store i16 %0, ptr %9, align 2
store i16 %1, ptr %10, align 2
store i16 %2, ptr %11, align 2
store i16 %3, ptr %12, align 2
store i16 %4, ptr %13, align 2
store i16 %5, ptr %14, align 2
store i16 %6, ptr %15, align 2
store i16 %7, ptr %16, align 2
%17 = load i16, ptr %9, align 2
%18 = load i16, ptr %10, align 2
%19 = load i16, ptr %11, align 2
%20 = load i16, ptr %12, align 2
%21 = load i16, ptr %13, align 2
%22 = load i16, ptr %14, align 2
%23 = load i16, ptr %15, align 2
%24 = load i16, ptr %16, align 2
%25 = call i32 @_mm_set_epi16(i16 noundef signext %17, i16 noundef signext %18, i16 noundef signext %19, i16 noundef signext %20, i16 noundef signext %21, i16 noundef signext %22, i16 noundef signext %23, i16 noundef signext %24)
ret i32 %25
}
declare i32 @_mm_set_epi16(i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqdmdz4rr.c'
source_filename = "/tmp/tmpqdmdz4rr.c"
target datalayout = "e-m:e-p270: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 @left() #0 {
%1 = call i32 @write_block(i32 noundef 97, i32 noundef 0, i32 noundef 0, i32 noundef 0)
ret i32 %1
}
declare i32 @write_block(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/tmpqdmdz4rr.c"
target datalayout = "e-m:e-p270: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 @left() #0 {
%1 = call i32 @write_block(i32 noundef 97, i32 noundef 0, i32 noundef 0, i32 noundef 0)
ret i32 %1
}
declare i32 @write_block(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/tmp7nrv5yyy.c'
source_filename = "/tmp/tmp7nrv5yyy.c"
target datalayout = "e-m:e-p270: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/tmp7nrv5yyy.c"
target datalayout = "e-m:e-p270: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/tmpji3puffz.c'
source_filename = "/tmp/tmpji3puffz.c"
target datalayout = "e-m:e-p270: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 @stringbuf_puts(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 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @stringbuf_append(ptr noundef %5, ptr noundef %6, i32 noundef %8)
ret void
}
declare i32 @stringbuf_append(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpji3puffz.c"
target datalayout = "e-m:e-p270: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 @stringbuf_puts(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 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @stringbuf_append(ptr noundef %5, ptr noundef %6, i32 noundef %8)
ret void
}
declare i32 @stringbuf_append(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbueim2t5.c'
source_filename = "/tmp/tmpbueim2t5.c"
target datalayout = "e-m:e-p270: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/tmpbueim2t5.c"
target datalayout = "e-m:e-p270: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/tmpuegm2ctu.c'
source_filename = "/tmp/tmpuegm2ctu.c"
target datalayout = "e-m:e-p270: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 @insertion(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @printArray(i32 noundef %13, ptr noundef %14)
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %3, align 8
br label %80
17: ; preds = %2
store i32 0, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 2
store i32 %19, ptr %7, align 4
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %20, i64 %23
%25 = load i32, ptr %24, align 4
store i32 %25, ptr %8, align 4
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %64, %17
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp sgt i32 %32, %33
br i1 %34, label %35, label %65
35: ; preds = %31
%36 = load i32, ptr %9, align 4
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
store i32 %36, ptr %41, align 4
%42 = load i32, ptr %4, align 4
%43 = load ptr, ptr %5, align 8
%44 = call i32 @printArray(i32 noundef %42, ptr noundef %43)
%45 = load i32, ptr %7, align 4
%46 = icmp sle i32 %45, 0
br i1 %46, label %47, label %56
47: ; preds = %35
%48 = load i32, ptr %8, align 4
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds i32, ptr %49, i64 0
store i32 %48, ptr %50, align 4
%51 = load i32, ptr %9, align 4
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 1
store i32 %51, ptr %53, align 4
store i32 1, ptr %6, align 4
%54 = load i32, ptr %8, align 4
%55 = sub nsw i32 %54, 1
store i32 %55, ptr %9, align 4
br label %64
56: ; preds = %35
%57 = load i32, ptr %7, align 4
%58 = add nsw i32 %57, -1
store i32 %58, ptr %7, align 4
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
%63 = load i32, ptr %62, align 4
store i32 %63, ptr %9, align 4
br label %64
64: ; preds = %56, %47
br label %31, !llvm.loop !6
65: ; preds = %31
%66 = load i32, ptr %6, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %75
68: ; preds = %65
%69 = load i32, ptr %8, align 4
%70 = load ptr, ptr %5, align 8
%71 = load i32, ptr %7, align 4
%72 = add nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %70, i64 %73
store i32 %69, ptr %74, align 4
br label %75
75: ; preds = %68, %65
%76 = load i32, ptr %4, align 4
%77 = load ptr, ptr %5, align 8
%78 = call i32 @printArray(i32 noundef %76, ptr noundef %77)
%79 = load ptr, ptr %5, align 8
store ptr %79, ptr %3, align 8
br label %80
80: ; preds = %75, %12
%81 = load ptr, ptr %3, align 8
ret ptr %81
}
declare i32 @printArray(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/tmpuegm2ctu.c"
target datalayout = "e-m:e-p270: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 @insertion(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @printArray(i32 noundef %13, ptr noundef %14)
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %3, align 8
br label %82
17: ; preds = %2
store i32 0, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 2
store i32 %19, ptr %7, align 4
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %20, i64 %23
%25 = load i32, ptr %24, align 4
store i32 %25, ptr %8, align 4
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %.lr.ph, label %67
.lr.ph: ; preds = %17
br label %34
34: ; preds = %.lr.ph, %63
%35 = load i32, ptr %9, align 4
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %36, i64 %39
store i32 %35, ptr %40, align 4
%41 = load i32, ptr %4, align 4
%42 = load ptr, ptr %5, align 8
%43 = call i32 @printArray(i32 noundef %41, ptr noundef %42)
%44 = load i32, ptr %7, align 4
%45 = icmp sle i32 %44, 0
br i1 %45, label %46, label %55
46: ; preds = %34
%47 = load i32, ptr %8, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 0
store i32 %47, ptr %49, align 4
%50 = load i32, ptr %9, align 4
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 1
store i32 %50, ptr %52, align 4
store i32 1, ptr %6, align 4
%53 = load i32, ptr %8, align 4
%54 = sub nsw i32 %53, 1
store i32 %54, ptr %9, align 4
br label %63
55: ; preds = %34
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, -1
store i32 %57, ptr %7, align 4
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %7, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
%62 = load i32, ptr %61, align 4
store i32 %62, ptr %9, align 4
br label %63
63: ; preds = %55, %46
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %8, align 4
%66 = icmp sgt i32 %64, %65
br i1 %66, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %67
67: ; preds = %._crit_edge, %17
%68 = load i32, ptr %6, align 4
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %77
70: ; preds = %67
%71 = load i32, ptr %8, align 4
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %72, i64 %75
store i32 %71, ptr %76, align 4
br label %77
77: ; preds = %70, %67
%78 = load i32, ptr %4, align 4
%79 = load ptr, ptr %5, align 8
%80 = call i32 @printArray(i32 noundef %78, ptr noundef %79)
%81 = load ptr, ptr %5, align 8
store ptr %81, ptr %3, align 8
br label %82
82: ; preds = %77, %12
%83 = load ptr, ptr %3, align 8
ret ptr %83
}
declare i32 @printArray(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/tmp4n8to0pd.c'
source_filename = "/tmp/tmp4n8to0pd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Inserisci 0 per uscire\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
%3 = alloca i32, align 4
%4 = alloca [10 x [10 x i8]], align 16
store i32 0, ptr %1, align 4
store i16 1, ptr %2, align 2
%5 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 5
%6 = getelementptr inbounds [10 x i8], ptr %5, i64 0, i64 5
store i8 120, ptr %6, align 1
%7 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 0
%8 = call i32 @pulisciArray(ptr noundef %7)
%9 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 5
%10 = getelementptr inbounds [10 x i8], ptr %9, i64 0, i64 5
store i8 120, ptr %10, align 1
%11 = call i32 (...) @intro()
br label %12
12: ; preds = %21, %0
%13 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 0
%14 = call i32 @generaTavola(ptr noundef %13)
%15 = call i32 @printf(ptr noundef @.str)
%16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%17 = load i32, ptr %3, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %12
store i16 0, ptr %2, align 2
br label %20
20: ; preds = %19, %12
br label %21
21: ; preds = %20
%22 = load i16, ptr %2, align 2
%23 = icmp ne i16 %22, 0
br i1 %23, label %12, label %24, !llvm.loop !6
24: ; preds = %21
ret i32 0
}
declare i32 @pulisciArray(ptr noundef) #1
declare i32 @intro(...) #1
declare i32 @generaTavola(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4n8to0pd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Inserisci 0 per uscire\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
%3 = alloca i32, align 4
%4 = alloca [10 x [10 x i8]], align 16
store i32 0, ptr %1, align 4
store i16 1, ptr %2, align 2
%5 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 5
%6 = getelementptr inbounds [10 x i8], ptr %5, i64 0, i64 5
store i8 120, ptr %6, align 1
%7 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 0
%8 = call i32 @pulisciArray(ptr noundef %7)
%9 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 5
%10 = getelementptr inbounds [10 x i8], ptr %9, i64 0, i64 5
store i8 120, ptr %10, align 1
%11 = call i32 (...) @intro()
br label %12
12: ; preds = %21, %0
%13 = getelementptr inbounds [10 x [10 x i8]], ptr %4, i64 0, i64 0
%14 = call i32 @generaTavola(ptr noundef %13)
%15 = call i32 @printf(ptr noundef @.str)
%16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%17 = load i32, ptr %3, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %12
store i16 0, ptr %2, align 2
br label %20
20: ; preds = %19, %12
br label %21
21: ; preds = %20
%22 = load i16, ptr %2, align 2
%23 = icmp ne i16 %22, 0
br i1 %23, label %12, label %24, !llvm.loop !6
24: ; preds = %21
ret i32 0
}
declare i32 @pulisciArray(ptr noundef) #1
declare i32 @intro(...) #1
declare i32 @generaTavola(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfxwd1kjq.c'
source_filename = "/tmp/tmpfxwd1kjq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i64 (...) @validate_freq()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (...) @ksft_exit_fail()
store i32 %9, ptr %3, align 4
br label %12
10: ; preds = %2
%11 = call i32 (...) @ksft_exit_pass()
store i32 %11, ptr %3, align 4
br label %12
12: ; preds = %10, %8
%13 = load i32, ptr %3, align 4
ret i32 %13
}
declare i64 @validate_freq(...) #1
declare i32 @ksft_exit_fail(...) #1
declare i32 @ksft_exit_pass(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfxwd1kjq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i64 (...) @validate_freq()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (...) @ksft_exit_fail()
store i32 %9, ptr %3, align 4
br label %12
10: ; preds = %2
%11 = call i32 (...) @ksft_exit_pass()
store i32 %11, ptr %3, align 4
br label %12
12: ; preds = %10, %8
%13 = load i32, ptr %3, align 4
ret i32 %13
}
declare i64 @validate_freq(...) #1
declare i32 @ksft_exit_fail(...) #1
declare i32 @ksft_exit_pass(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplc5g4n4z.c'
source_filename = "/tmp/tmplc5g4n4z.c"
target datalayout = "e-m:e-p270: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 @gotonextline(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %7, %1
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @fgetc(ptr noundef %5)
store i8 %6, ptr %3, align 1
br label %7
7: ; preds = %4
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 10
br i1 %10, label %4, label %11, !llvm.loop !6
11: ; preds = %7
ret void
}
declare signext i8 @fgetc(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/tmplc5g4n4z.c"
target datalayout = "e-m:e-p270: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 @gotonextline(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %7, %1
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @fgetc(ptr noundef %5)
store i8 %6, ptr %3, align 1
br label %7
7: ; preds = %4
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 10
br i1 %10, label %4, label %11, !llvm.loop !6
11: ; preds = %7
ret void
}
declare signext i8 @fgetc(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/tmpaih5j_3p.c'
source_filename = "/tmp/tmpaih5j_3p.c"
target datalayout = "e-m:e-p270: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/tmpaih5j_3p.c"
target datalayout = "e-m:e-p270: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/tmpoujucnju.c'
source_filename = "/tmp/tmpoujucnju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @movelight_reshape(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 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = sdiv i32 %11, %12
%14 = call i32 @gluPerspective(double noundef 4.000000e+01, i32 noundef %13, double noundef 1.000000e+00, double noundef 2.000000e+01)
%15 = load i32, ptr @GL_MODELVIEW, align 4
%16 = call i32 @glMatrixMode(i32 noundef %15)
%17 = call i32 (...) @glLoadIdentity()
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(double noundef, i32 noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoujucnju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @movelight_reshape(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 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = sdiv i32 %11, %12
%14 = call i32 @gluPerspective(double noundef 4.000000e+01, i32 noundef %13, double noundef 1.000000e+00, double noundef 2.000000e+01)
%15 = load i32, ptr @GL_MODELVIEW, align 4
%16 = call i32 @glMatrixMode(i32 noundef %15)
%17 = call i32 (...) @glLoadIdentity()
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(double noundef, i32 noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu97kpc5f.c'
source_filename = "/tmp/tmpu97kpc5f.c"
target datalayout = "e-m:e-p270: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 @mapif_parse_PartyCheck(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %7, align 4
%11 = load ptr, ptr %8, align 8
%12 = call i32 @party_check_conflict(i32 noundef %9, i32 noundef %10, ptr noundef %11)
ret i32 %12
}
declare i32 @party_check_conflict(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu97kpc5f.c"
target datalayout = "e-m:e-p270: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 @mapif_parse_PartyCheck(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %7, align 4
%11 = load ptr, ptr %8, align 8
%12 = call i32 @party_check_conflict(i32 noundef %9, i32 noundef %10, ptr noundef %11)
ret i32 %12
}
declare i32 @party_check_conflict(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcbd8az8c.c'
source_filename = "/tmp/tmpcbd8az8c.c"
target datalayout = "e-m:e-p270: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/tmpcbd8az8c.c"
target datalayout = "e-m:e-p270: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/tmpqroegh4w.c'
source_filename = "/tmp/tmpqroegh4w.c"
target datalayout = "e-m:e-p270: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/tmpqroegh4w.c"
target datalayout = "e-m:e-p270: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/tmpa705goiy.c'
source_filename = "/tmp/tmpa705goiy.c"
target datalayout = "e-m:e-p270: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 = call i32 @power_digit_sum(i32 noundef 5)
%2 = icmp eq i32 5, %1
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 noundef %3)
%5 = call i32 @power_digit_sum(i32 noundef 15)
%6 = icmp eq i32 26, %5
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = call i32 @power_digit_sum(i32 noundef 100)
%10 = icmp eq i32 115, %9
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = call i32 @power_digit_sum(i32 noundef 500)
%14 = icmp eq i32 679, %13
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = call i32 @power_digit_sum(i32 noundef 1000)
%18 = icmp eq i32 1366, %17
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
%21 = call i32 @power_digit_sum(i32 noundef 1500)
%22 = icmp eq i32 2035, %21
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = call i32 @power_digit_sum(i32 noundef 2000)
%26 = icmp eq i32 2704, %25
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 noundef %27)
%29 = call i32 @power_digit_sum(i32 noundef 3000)
%30 = icmp eq i32 3871, %29
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @power_digit_sum(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/tmpa705goiy.c"
target datalayout = "e-m:e-p270: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 = call i32 @power_digit_sum(i32 noundef 5)
%2 = icmp eq i32 5, %1
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 noundef %3)
%5 = call i32 @power_digit_sum(i32 noundef 15)
%6 = icmp eq i32 26, %5
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = call i32 @power_digit_sum(i32 noundef 100)
%10 = icmp eq i32 115, %9
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = call i32 @power_digit_sum(i32 noundef 500)
%14 = icmp eq i32 679, %13
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = call i32 @power_digit_sum(i32 noundef 1000)
%18 = icmp eq i32 1366, %17
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
%21 = call i32 @power_digit_sum(i32 noundef 1500)
%22 = icmp eq i32 2035, %21
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = call i32 @power_digit_sum(i32 noundef 2000)
%26 = icmp eq i32 2704, %25
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 noundef %27)
%29 = call i32 @power_digit_sum(i32 noundef 3000)
%30 = icmp eq i32 3871, %29
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @power_digit_sum(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/tmp8ziwat5x.c'
source_filename = "/tmp/tmp8ziwat5x.c"
target datalayout = "e-m:e-p270: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 [169 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_isbdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isbdigit should be 0 for 0x85\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isbdigit_0x85() #0 {
%1 = call i64 @isbdigit(i32 noundef 133)
%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 670, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isbdigit(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/tmp8ziwat5x.c"
target datalayout = "e-m:e-p270: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 [169 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_isbdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isbdigit should be 0 for 0x85\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isbdigit_0x85() #0 {
%1 = call i64 @isbdigit(i32 noundef 133)
%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 670, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isbdigit(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/tmprvz_8y82.c'
source_filename = "/tmp/tmprvz_8y82.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i32
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %33
store i32 %31, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = icmp eq i32 %42, 4468601
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
br label %48
48: ; preds = %51, %47
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %48, !llvm.loop !8
59: ; preds = %48
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprvz_8y82.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i32
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %32
store i32 %30, ptr %33, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, 4468601
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %38
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %.lr.ph2, label %61
.lr.ph2: ; preds = %48
br label %51
51: ; preds = %.lr.ph2, %51
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 1
br i1 %60, label %51, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %48
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpbp9t5_bl.c'
source_filename = "/tmp/tmpbp9t5_bl.c"
target datalayout = "e-m:e-p270: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/tmpbp9t5_bl.c"
target datalayout = "e-m:e-p270: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/tmptowyhxdi.c'
source_filename = "/tmp/tmptowyhxdi.c"
target datalayout = "e-m:e-p270: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 @up_sample(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 8
%13 = trunc i64 %12 to i32
%14 = call ptr @malloc(i32 noundef %13)
store ptr %14, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %15
15: ; preds = %45, %2
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %4, align 4
%18 = sdiv i32 %17, 2
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %48
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
%25 = load double, ptr %24, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = mul nsw i32 2, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %26, i64 %29
store double %25, ptr %30, align 8
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %4, align 4
%34 = sdiv i32 %33, 2
%35 = add nsw i32 %32, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %31, i64 %36
%38 = load double, ptr %37, align 8
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %7, align 4
%41 = mul nsw i32 2, %40
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %39, i64 %43
store double %38, ptr %44, align 8
br label %45
45: ; preds = %20
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
br label %15, !llvm.loop !6
48: ; preds = %15
store i32 0, ptr %7, align 4
br label %49
49: ; preds = %63, %48
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %66
53: ; preds = %49
%54 = load ptr, ptr %6, align 8
%55 = load i32, ptr %7, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
%58 = load double, ptr %57, align 8
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, ptr %59, i64 %61
store double %58, ptr %62, align 8
br label %63
63: ; preds = %53
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %7, align 4
br label %49, !llvm.loop !8
66: ; preds = %49
%67 = load ptr, ptr %6, align 8
%68 = call i32 @free(ptr noundef %67)
%69 = load ptr, ptr %5, align 8
ret ptr %69
}
declare ptr @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptowyhxdi.c"
target datalayout = "e-m:e-p270: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 @up_sample(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 8
%13 = trunc i64 %12 to i32
%14 = call ptr @malloc(i32 noundef %13)
store ptr %14, ptr %6, align 8
store i32 0, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %4, align 4
%17 = sdiv i32 %16, 2
%18 = icmp slt i32 %15, %17
br i1 %18, label %.lr.ph, label %51
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %44
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %20, i64 %22
%24 = load double, ptr %23, align 8
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %7, align 4
%27 = mul nsw i32 2, %26
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double, ptr %25, i64 %28
store double %24, ptr %29, align 8
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %4, align 4
%33 = sdiv i32 %32, 2
%34 = add nsw i32 %31, %33
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %30, i64 %35
%37 = load double, ptr %36, align 8
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %7, align 4
%40 = mul nsw i32 2, %39
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %38, i64 %42
store double %37, ptr %43, align 8
br label %44
44: ; preds = %19
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %4, align 4
%49 = sdiv i32 %48, 2
%50 = icmp slt i32 %47, %49
br i1 %50, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %51
51: ; preds = %._crit_edge, %2
store i32 0, ptr %7, align 4
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %4, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %.lr.ph2, label %71
.lr.ph2: ; preds = %51
br label %55
55: ; preds = %.lr.ph2, %65
%56 = load ptr, ptr %6, align 8
%57 = load i32, ptr %7, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
%60 = load double, ptr %59, align 8
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %7, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
store double %60, ptr %64, align 8
br label %65
65: ; preds = %55
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %7, align 4
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %55, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %71
71: ; preds = %._crit_edge3, %51
%72 = load ptr, ptr %6, align 8
%73 = call i32 @free(ptr noundef %72)
%74 = load ptr, ptr %5, align 8
ret ptr %74
}
declare ptr @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpe3s4_a41.c'
source_filename = "/tmp/tmpe3s4_a41.c"
target datalayout = "e-m:e-p270: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.smokes = type { i32, i32, i32, i32 }
@add_smoke.S = internal global [1000 x %struct.smokes] zeroinitializer, align 16
@add_smoke.sum = internal global i32 0, align 4
@add_smoke.Smoke = internal global [2 x [16 x ptr]] [[16 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.1, ptr @.str, ptr @.str.2, ptr @.str.2, ptr @.str.3, ptr @.str.3, ptr @.str.4, ptr @.str.4, ptr @.str.5, ptr @.str.5, ptr @.str.5, ptr @.str.5, ptr @.str.5, ptr @.str.6], [16 x ptr] [ptr @.str.7, ptr @.str.8, ptr @.str.8, ptr @.str.7, ptr @.str.9, ptr @.str.9, ptr @.str.10, ptr @.str.10, ptr @.str.11, ptr @.str.11, ptr @.str.12, ptr @.str.12, ptr @.str.12, ptr @.str.12, ptr @.str.12, ptr @.str.6]], align 16
@.str = private unnamed_addr constant [6 x i8] c"( )\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"( )\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"( )\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"( )\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"()\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"(@@@)\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"(@@@@)\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"(@@)\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"(@)\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"@@\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c"@\00", align 1
@add_smoke.Eraser = internal global [16 x ptr] [ptr @.str.13, ptr @.str.14, ptr @.str.14, ptr @.str.13, ptr @.str.15, ptr @.str.15, ptr @.str.16, ptr @.str.16, ptr @.str.17, ptr @.str.17, ptr @.str.6, ptr @.str.6, ptr @.str.6, ptr @.str.6, ptr @.str.6, ptr @.str.6], align 16
@.str.13 = private unnamed_addr constant [6 x i8] c" \00", align 1
@.str.14 = private unnamed_addr constant [7 x i8] c" \00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c" \00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c" \00", align 1
@add_smoke.dy = internal global <{ i32, i32, i32, i32, [12 x i32] }> <{ i32 2, i32 1, i32 1, i32 1, [12 x i32] zeroinitializer }>, align 16
@add_smoke.dx = internal global [16 x i32] [i32 -2, i32 -1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 2, i32 3, i32 3, i32 3], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_smoke(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = srem i32 %6, 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %137
9: ; preds = %2
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %102, %9
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr @add_smoke.sum, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %105
14: ; preds = %10
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %16
%18 = getelementptr inbounds %struct.smokes, ptr %17, i32 0, i32 0
%19 = load i32, ptr %18, align 16
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %21
%23 = getelementptr inbounds %struct.smokes, ptr %22, i32 0, i32 1
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %26
%28 = getelementptr inbounds %struct.smokes, ptr %27, i32 0, i32 2
%29 = load i32, ptr %28, align 8
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [16 x ptr], ptr @add_smoke.Eraser, i64 0, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = call i32 @my_mvaddstr(i32 noundef %19, i32 noundef %24, ptr noundef %32)
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %35
%37 = getelementptr inbounds %struct.smokes, ptr %36, i32 0, i32 2
%38 = load i32, ptr %37, align 8
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [16 x i32], ptr @add_smoke.dy, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %43
%45 = getelementptr inbounds %struct.smokes, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 16
%47 = sub nsw i32 %46, %41
store i32 %47, ptr %45, align 16
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %49
%51 = getelementptr inbounds %struct.smokes, ptr %50, i32 0, i32 2
%52 = load i32, ptr %51, align 8
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [16 x i32], ptr @add_smoke.dx, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = load i32, ptr %5, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %57
%59 = getelementptr inbounds %struct.smokes, ptr %58, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = add nsw i32 %60, %55
store i32 %61, ptr %59, align 4
%62 = load i32, ptr %5, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %63
%65 = getelementptr inbounds %struct.smokes, ptr %64, i32 0, i32 2
%66 = load i32, ptr %65, align 8
%67 = icmp slt i32 %66, 15
%68 = zext i1 %67 to i64
%69 = select i1 %67, i32 1, i32 0
%70 = load i32, ptr %5, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %71
%73 = getelementptr inbounds %struct.smokes, ptr %72, i32 0, i32 2
%74 = load i32, ptr %73, align 8
%75 = add nsw i32 %74, %69
store i32 %75, ptr %73, align 8
%76 = load i32, ptr %5, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %77
%79 = getelementptr inbounds %struct.smokes, ptr %78, i32 0, i32 0
%80 = load i32, ptr %79, align 16
%81 = load i32, ptr %5, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %82
%84 = getelementptr inbounds %struct.smokes, ptr %83, i32 0, i32 1
%85 = load i32, ptr %84, align 4
%86 = load i32, ptr %5, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %87
%89 = getelementptr inbounds %struct.smokes, ptr %88, i32 0, i32 3
%90 = load i32, ptr %89, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [2 x [16 x ptr]], ptr @add_smoke.Smoke, i64 0, i64 %91
%93 = load i32, ptr %5, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %94
%96 = getelementptr inbounds %struct.smokes, ptr %95, i32 0, i32 2
%97 = load i32, ptr %96, align 8
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [16 x ptr], ptr %92, i64 0, i64 %98
%100 = load ptr, ptr %99, align 8
%101 = call i32 @my_mvaddstr(i32 noundef %80, i32 noundef %85, ptr noundef %100)
br label %102
102: ; preds = %14
%103 = load i32, ptr %5, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %5, align 4
br label %10, !llvm.loop !6
105: ; preds = %10
%106 = load i32, ptr %3, align 4
%107 = load i32, ptr %4, align 4
%108 = load i32, ptr @add_smoke.sum, align 4
%109 = srem i32 %108, 2
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [2 x [16 x ptr]], ptr @add_smoke.Smoke, i64 0, i64 %110
%112 = getelementptr inbounds [16 x ptr], ptr %111, i64 0, i64 0
%113 = load ptr, ptr %112, align 16
%114 = call i32 @my_mvaddstr(i32 noundef %106, i32 noundef %107, ptr noundef %113)
%115 = load i32, ptr %3, align 4
%116 = load i32, ptr @add_smoke.sum, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %117
%119 = getelementptr inbounds %struct.smokes, ptr %118, i32 0, i32 0
store i32 %115, ptr %119, align 16
%120 = load i32, ptr %4, align 4
%121 = load i32, ptr @add_smoke.sum, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %122
%124 = getelementptr inbounds %struct.smokes, ptr %123, i32 0, i32 1
store i32 %120, ptr %124, align 4
%125 = load i32, ptr @add_smoke.sum, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %126
%128 = getelementptr inbounds %struct.smokes, ptr %127, i32 0, i32 2
store i32 0, ptr %128, align 8
%129 = load i32, ptr @add_smoke.sum, align 4
%130 = srem i32 %129, 2
%131 = load i32, ptr @add_smoke.sum, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %132
%134 = getelementptr inbounds %struct.smokes, ptr %133, i32 0, i32 3
store i32 %130, ptr %134, align 4
%135 = load i32, ptr @add_smoke.sum, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr @add_smoke.sum, align 4
br label %137
137: ; preds = %105, %2
ret i32 0
}
declare i32 @my_mvaddstr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe3s4_a41.c"
target datalayout = "e-m:e-p270: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.smokes = type { i32, i32, i32, i32 }
@add_smoke.S = internal global [1000 x %struct.smokes] zeroinitializer, align 16
@add_smoke.sum = internal global i32 0, align 4
@add_smoke.Smoke = internal global [2 x [16 x ptr]] [[16 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.1, ptr @.str, ptr @.str.2, ptr @.str.2, ptr @.str.3, ptr @.str.3, ptr @.str.4, ptr @.str.4, ptr @.str.5, ptr @.str.5, ptr @.str.5, ptr @.str.5, ptr @.str.5, ptr @.str.6], [16 x ptr] [ptr @.str.7, ptr @.str.8, ptr @.str.8, ptr @.str.7, ptr @.str.9, ptr @.str.9, ptr @.str.10, ptr @.str.10, ptr @.str.11, ptr @.str.11, ptr @.str.12, ptr @.str.12, ptr @.str.12, ptr @.str.12, ptr @.str.12, ptr @.str.6]], align 16
@.str = private unnamed_addr constant [6 x i8] c"( )\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"( )\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"( )\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"( )\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"()\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"(@@@)\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"(@@@@)\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"(@@)\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"(@)\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"@@\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c"@\00", align 1
@add_smoke.Eraser = internal global [16 x ptr] [ptr @.str.13, ptr @.str.14, ptr @.str.14, ptr @.str.13, ptr @.str.15, ptr @.str.15, ptr @.str.16, ptr @.str.16, ptr @.str.17, ptr @.str.17, ptr @.str.6, ptr @.str.6, ptr @.str.6, ptr @.str.6, ptr @.str.6, ptr @.str.6], align 16
@.str.13 = private unnamed_addr constant [6 x i8] c" \00", align 1
@.str.14 = private unnamed_addr constant [7 x i8] c" \00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c" \00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c" \00", align 1
@add_smoke.dy = internal global <{ i32, i32, i32, i32, [12 x i32] }> <{ i32 2, i32 1, i32 1, i32 1, [12 x i32] zeroinitializer }>, align 16
@add_smoke.dx = internal global [16 x i32] [i32 -2, i32 -1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 2, i32 3, i32 3, i32 3], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_smoke(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = srem i32 %6, 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %139
9: ; preds = %2
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr @add_smoke.sum, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %107
.lr.ph: ; preds = %9
br label %13
13: ; preds = %.lr.ph, %101
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %15
%17 = getelementptr inbounds %struct.smokes, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 16
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %20
%22 = getelementptr inbounds %struct.smokes, ptr %21, i32 0, i32 1
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %25
%27 = getelementptr inbounds %struct.smokes, ptr %26, i32 0, i32 2
%28 = load i32, ptr %27, align 8
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [16 x ptr], ptr @add_smoke.Eraser, i64 0, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call i32 @my_mvaddstr(i32 noundef %18, i32 noundef %23, ptr noundef %31)
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %34
%36 = getelementptr inbounds %struct.smokes, ptr %35, i32 0, i32 2
%37 = load i32, ptr %36, align 8
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [16 x i32], ptr @add_smoke.dy, i64 0, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %42
%44 = getelementptr inbounds %struct.smokes, ptr %43, i32 0, i32 0
%45 = load i32, ptr %44, align 16
%46 = sub nsw i32 %45, %40
store i32 %46, ptr %44, align 16
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %48
%50 = getelementptr inbounds %struct.smokes, ptr %49, i32 0, i32 2
%51 = load i32, ptr %50, align 8
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [16 x i32], ptr @add_smoke.dx, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
%55 = load i32, ptr %5, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %56
%58 = getelementptr inbounds %struct.smokes, ptr %57, i32 0, i32 1
%59 = load i32, ptr %58, align 4
%60 = add nsw i32 %59, %54
store i32 %60, ptr %58, align 4
%61 = load i32, ptr %5, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %62
%64 = getelementptr inbounds %struct.smokes, ptr %63, i32 0, i32 2
%65 = load i32, ptr %64, align 8
%66 = icmp slt i32 %65, 15
%67 = zext i1 %66 to i64
%68 = select i1 %66, i32 1, i32 0
%69 = load i32, ptr %5, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %70
%72 = getelementptr inbounds %struct.smokes, ptr %71, i32 0, i32 2
%73 = load i32, ptr %72, align 8
%74 = add nsw i32 %73, %68
store i32 %74, ptr %72, align 8
%75 = load i32, ptr %5, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %76
%78 = getelementptr inbounds %struct.smokes, ptr %77, i32 0, i32 0
%79 = load i32, ptr %78, align 16
%80 = load i32, ptr %5, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %81
%83 = getelementptr inbounds %struct.smokes, ptr %82, i32 0, i32 1
%84 = load i32, ptr %83, align 4
%85 = load i32, ptr %5, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %86
%88 = getelementptr inbounds %struct.smokes, ptr %87, i32 0, i32 3
%89 = load i32, ptr %88, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [2 x [16 x ptr]], ptr @add_smoke.Smoke, i64 0, i64 %90
%92 = load i32, ptr %5, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %93
%95 = getelementptr inbounds %struct.smokes, ptr %94, i32 0, i32 2
%96 = load i32, ptr %95, align 8
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [16 x ptr], ptr %91, i64 0, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = call i32 @my_mvaddstr(i32 noundef %79, i32 noundef %84, ptr noundef %99)
br label %101
101: ; preds = %13
%102 = load i32, ptr %5, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %5, align 4
%104 = load i32, ptr %5, align 4
%105 = load i32, ptr @add_smoke.sum, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %101
br label %107
107: ; preds = %._crit_edge, %9
%108 = load i32, ptr %3, align 4
%109 = load i32, ptr %4, align 4
%110 = load i32, ptr @add_smoke.sum, align 4
%111 = srem i32 %110, 2
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [2 x [16 x ptr]], ptr @add_smoke.Smoke, i64 0, i64 %112
%114 = getelementptr inbounds [16 x ptr], ptr %113, i64 0, i64 0
%115 = load ptr, ptr %114, align 16
%116 = call i32 @my_mvaddstr(i32 noundef %108, i32 noundef %109, ptr noundef %115)
%117 = load i32, ptr %3, align 4
%118 = load i32, ptr @add_smoke.sum, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %119
%121 = getelementptr inbounds %struct.smokes, ptr %120, i32 0, i32 0
store i32 %117, ptr %121, align 16
%122 = load i32, ptr %4, align 4
%123 = load i32, ptr @add_smoke.sum, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %124
%126 = getelementptr inbounds %struct.smokes, ptr %125, i32 0, i32 1
store i32 %122, ptr %126, align 4
%127 = load i32, ptr @add_smoke.sum, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %128
%130 = getelementptr inbounds %struct.smokes, ptr %129, i32 0, i32 2
store i32 0, ptr %130, align 8
%131 = load i32, ptr @add_smoke.sum, align 4
%132 = srem i32 %131, 2
%133 = load i32, ptr @add_smoke.sum, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [1000 x %struct.smokes], ptr @add_smoke.S, i64 0, i64 %134
%136 = getelementptr inbounds %struct.smokes, ptr %135, i32 0, i32 3
store i32 %132, ptr %136, align 4
%137 = load i32, ptr @add_smoke.sum, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr @add_smoke.sum, align 4
br label %139
139: ; preds = %107, %2
ret i32 0
}
declare i32 @my_mvaddstr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj9c9yx4e.c'
source_filename = "/tmp/tmpj9c9yx4e.c"
target datalayout = "e-m:e-p270: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 @printf2(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @print_format1(ptr noundef %9, i32 noundef 0, ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = call i32 @print_format1(ptr noundef %8, i32 noundef %11, ptr noundef %12)
%14 = call i32 @print_format0(ptr noundef %7, i32 noundef %13)
ret void
}
declare i32 @print_format0(ptr noundef, i32 noundef) #1
declare i32 @print_format1(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj9c9yx4e.c"
target datalayout = "e-m:e-p270: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 @printf2(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @print_format1(ptr noundef %9, i32 noundef 0, ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = call i32 @print_format1(ptr noundef %8, i32 noundef %11, ptr noundef %12)
%14 = call i32 @print_format0(ptr noundef %7, i32 noundef %13)
ret void
}
declare i32 @print_format0(ptr noundef, i32 noundef) #1
declare i32 @print_format1(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxqniqypf.c'
source_filename = "/tmp/tmpxqniqypf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"0123456789,.\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c",.\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"affinity %s is not parseable\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_affinity(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = call i32 @CPU_ZERO(ptr noundef %5)
%10 = load ptr, ptr %4, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 48
br i1 %13, label %14, label %23
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 1
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 120
br i1 %19, label %20, label %23
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = call i32 @str_to_cpuset(ptr noundef %5, ptr noundef %21)
br label %49
23: ; preds = %14, %2
%24 = load ptr, ptr %4, align 8
%25 = call i64 @strspn(ptr noundef %24, ptr noundef @.str)
store i64 %25, ptr %7, align 8
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %44
27: ; preds = %23
br label %28
28: ; preds = %42, %27
%29 = call ptr @strsep(ptr noundef %4, ptr noundef @.str.1)
store ptr %29, ptr %6, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %43
31: ; preds = %28
%32 = load ptr, ptr %6, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = call i64 @isdigit(i32 noundef %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %31
%38 = load ptr, ptr %6, align 8
%39 = call i32 @atoi(ptr noundef %38)
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = call i32 @CPU_SET(i32 noundef %40, ptr noundef %5)
br label %42
42: ; preds = %37, %31
br label %28, !llvm.loop !6
43: ; preds = %28
br label %48
44: ; preds = %23
%45 = load ptr, ptr %4, align 8
%46 = call i32 @decode_error(ptr noundef @.str.2, ptr noundef %45)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %43
br label %49
49: ; preds = %48, %20
%50 = load i32, ptr %5, align 4
%51 = load ptr, ptr %3, align 8
store i32 %50, ptr %51, align 4
ret i32 0
}
declare i32 @CPU_ZERO(ptr noundef) #1
declare i32 @str_to_cpuset(ptr noundef, ptr noundef) #1
declare i64 @strspn(ptr noundef, ptr noundef) #1
declare ptr @strsep(ptr noundef, ptr noundef) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @decode_error(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxqniqypf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"0123456789,.\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c",.\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"affinity %s is not parseable\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_affinity(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = call i32 @CPU_ZERO(ptr noundef %5)
%10 = load ptr, ptr %4, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 48
br i1 %13, label %14, label %23
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 1
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 120
br i1 %19, label %20, label %23
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = call i32 @str_to_cpuset(ptr noundef %5, ptr noundef %21)
br label %50
23: ; preds = %14, %2
%24 = load ptr, ptr %4, align 8
%25 = call i64 @strspn(ptr noundef %24, ptr noundef @.str)
store i64 %25, ptr %7, align 8
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %45
27: ; preds = %23
%28 = call ptr @strsep(ptr noundef %4, ptr noundef @.str.1)
store ptr %28, ptr %6, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %.lr.ph, label %44
.lr.ph: ; preds = %27
br label %30
30: ; preds = %.lr.ph, %41
%31 = load ptr, ptr %6, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = call i64 @isdigit(i32 noundef %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %30
%37 = load ptr, ptr %6, align 8
%38 = call i32 @atoi(ptr noundef %37)
store i32 %38, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = call i32 @CPU_SET(i32 noundef %39, ptr noundef %5)
br label %41
41: ; preds = %36, %30
%42 = call ptr @strsep(ptr noundef %4, ptr noundef @.str.1)
store ptr %42, ptr %6, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %44
44: ; preds = %._crit_edge, %27
br label %49
45: ; preds = %23
%46 = load ptr, ptr %4, align 8
%47 = call i32 @decode_error(ptr noundef @.str.2, ptr noundef %46)
%48 = call i32 @exit(i32 noundef 1) #3
unreachable
49: ; preds = %44
br label %50
50: ; preds = %49, %20
%51 = load i32, ptr %5, align 4
%52 = load ptr, ptr %3, align 8
store i32 %51, ptr %52, align 4
ret i32 0
}
declare i32 @CPU_ZERO(ptr noundef) #1
declare i32 @str_to_cpuset(ptr noundef, ptr noundef) #1
declare i64 @strspn(ptr noundef, ptr noundef) #1
declare ptr @strsep(ptr noundef, ptr noundef) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @decode_error(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpr7fkbtlj.c'
source_filename = "/tmp/tmpr7fkbtlj.c"
target datalayout = "e-m:e-p270: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/tmpr7fkbtlj.c"
target datalayout = "e-m:e-p270: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/tmpyrh23nxo.c'
source_filename = "/tmp/tmpyrh23nxo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i64], align 8
%7 = alloca [1 x i64], align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %36
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
store i64 %29, ptr %9, align 8
%30 = load i64, ptr %9, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 %32
store i64 %30, ptr %33, align 8
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
br label %19, !llvm.loop !6
36: ; preds = %19
%37 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 0
%38 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%39 = call i32 @RandomFunc(ptr noundef %37, ptr noundef %38)
%40 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%41 = load i64, ptr %40, align 8
%42 = icmp eq i64 %41, -61361545179590975
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %46
45: ; preds = %36
br label %46
46: ; preds = %45, %43
store i32 0, ptr %10, align 4
br label %47
47: ; preds = %50, %46
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %48, 1
br i1 %49, label %50, label %58
50: ; preds = %47
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %54)
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
br label %47, !llvm.loop !8
58: ; preds = %47
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyrh23nxo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i64], align 8
%7 = alloca [1 x i64], align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %37
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
store i64 %28, ptr %9, align 8
%29 = load i64, ptr %9, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 %31
store i64 %29, ptr %32, align 8
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp slt i32 %35, 1
br i1 %36, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %37
37: ; preds = %._crit_edge, %18
%38 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%42 = load i64, ptr %41, align 8
%43 = icmp eq i64 %42, -61361545179590975
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %48, 1
br i1 %49, label %.lr.ph2, label %60
.lr.ph2: ; preds = %47
br label %50
50: ; preds = %.lr.ph2, %50
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %54)
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp slt i32 %58, 1
br i1 %59, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %60
60: ; preds = %._crit_edge3, %47
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5xj_8hbv.c'
source_filename = "/tmp/tmp5xj_8hbv.c"
target datalayout = "e-m:e-p270: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 @pthread_yield() #0 {
%1 = call i32 (...) @sched_yield()
ret void
}
declare i32 @sched_yield(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5xj_8hbv.c"
target datalayout = "e-m:e-p270: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 @pthread_yield() #0 {
%1 = call i32 (...) @sched_yield()
ret void
}
declare i32 @sched_yield(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmc1p8nzo.c'
source_filename = "/tmp/tmpmc1p8nzo.c"
target datalayout = "e-m:e-p270: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 @f2b_csocket_disconnect(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 @unlink(ptr noundef %5)
%7 = load i32, ptr %3, align 4
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr %3, align 4
%11 = call i32 @close(i32 noundef %10)
br label %12
12: ; preds = %9, %2
ret void
}
declare i32 @unlink(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmc1p8nzo.c"
target datalayout = "e-m:e-p270: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 @f2b_csocket_disconnect(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 @unlink(ptr noundef %5)
%7 = load i32, ptr %3, align 4
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr %3, align 4
%11 = call i32 @close(i32 noundef %10)
br label %12
12: ; preds = %9, %2
ret void
}
declare i32 @unlink(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgaxtaaem.c'
source_filename = "/tmp/tmpgaxtaaem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_NOTICE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"Daemon started by User %d\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @do_fork(ptr noundef %2)
%5 = call i32 @umask(i32 noundef 0)
%6 = call i32 (...) @start_log()
%7 = call i32 @do_session(ptr noundef %3)
%8 = call i32 (...) @change_dir()
%9 = call i32 (...) @close_std_files()
%10 = load i32, ptr @LOG_NOTICE, align 4
%11 = call i32 (...) @getuid()
%12 = call i32 @syslog(i32 noundef %10, ptr noundef @.str, i32 noundef %11)
%13 = call i32 (...) @tcp_listener()
%14 = load i32, ptr @EXIT_SUCCESS, align 4
%15 = call i32 @exit(i32 noundef %14) #3
unreachable
}
declare i32 @do_fork(ptr noundef) #1
declare i32 @umask(i32 noundef) #1
declare i32 @start_log(...) #1
declare i32 @do_session(ptr noundef) #1
declare i32 @change_dir(...) #1
declare i32 @close_std_files(...) #1
declare i32 @syslog(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getuid(...) #1
declare i32 @tcp_listener(...) #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/tmpgaxtaaem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_NOTICE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"Daemon started by User %d\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @do_fork(ptr noundef %2)
%5 = call i32 @umask(i32 noundef 0)
%6 = call i32 (...) @start_log()
%7 = call i32 @do_session(ptr noundef %3)
%8 = call i32 (...) @change_dir()
%9 = call i32 (...) @close_std_files()
%10 = load i32, ptr @LOG_NOTICE, align 4
%11 = call i32 (...) @getuid()
%12 = call i32 @syslog(i32 noundef %10, ptr noundef @.str, i32 noundef %11)
%13 = call i32 (...) @tcp_listener()
%14 = load i32, ptr @EXIT_SUCCESS, align 4
%15 = call i32 @exit(i32 noundef %14) #3
unreachable
}
declare i32 @do_fork(ptr noundef) #1
declare i32 @umask(i32 noundef) #1
declare i32 @start_log(...) #1
declare i32 @do_session(ptr noundef) #1
declare i32 @change_dir(...) #1
declare i32 @close_std_files(...) #1
declare i32 @syslog(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getuid(...) #1
declare i32 @tcp_listener(...) #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/tmpk5odbq2e.c'
source_filename = "/tmp/tmpk5odbq2e.c"
target datalayout = "e-m:e-p270: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"NOT IMPLEMENTED:pa_shm_cleanup\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_shm_cleanup() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpk5odbq2e.c"
target datalayout = "e-m:e-p270: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"NOT IMPLEMENTED:pa_shm_cleanup\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_shm_cleanup() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpup8wr8d7.c'
source_filename = "/tmp/tmpup8wr8d7.c"
target datalayout = "e-m:e-p270: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 @irc_deinit() #0 {
%1 = call i32 (...) @irc_notifylist_deinit()
%2 = call i32 (...) @irc_flood_deinit()
%3 = call i32 (...) @irc_dcc_deinit()
%4 = call i32 (...) @irc_core_deinit()
ret void
}
declare i32 @irc_notifylist_deinit(...) #1
declare i32 @irc_flood_deinit(...) #1
declare i32 @irc_dcc_deinit(...) #1
declare i32 @irc_core_deinit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpup8wr8d7.c"
target datalayout = "e-m:e-p270: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 @irc_deinit() #0 {
%1 = call i32 (...) @irc_notifylist_deinit()
%2 = call i32 (...) @irc_flood_deinit()
%3 = call i32 (...) @irc_dcc_deinit()
%4 = call i32 (...) @irc_core_deinit()
ret void
}
declare i32 @irc_notifylist_deinit(...) #1
declare i32 @irc_flood_deinit(...) #1
declare i32 @irc_dcc_deinit(...) #1
declare i32 @irc_core_deinit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmply0oykaz.c'
source_filename = "/tmp/tmply0oykaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-1\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"client exiting...\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @runner(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %5, align 4
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %1, %20
%8 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%11 = call i32 @atoi(ptr noundef %10)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %20
13: ; preds = %7
%14 = load i32, ptr %3, align 4
%15 = call i32 @write(i32 noundef %14, ptr noundef @.str.1, i32 noundef 2)
%16 = load i32, ptr %3, align 4
%17 = call i32 @close(i32 noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %7
%21 = load i32, ptr %3, align 4
%22 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%23 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%24 = call i32 @strlen(ptr noundef %23)
%25 = call i32 @write(i32 noundef %21, ptr noundef %22, i32 noundef %24)
%26 = load i32, ptr %3, align 4
%27 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%28 = call i32 @read(i32 noundef %26, ptr noundef %27, i32 noundef 1024)
%29 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %29)
%31 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%32 = call i32 @memset(ptr noundef %31, i32 noundef 0, i32 noundef 1024)
br label %7
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strlen(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmply0oykaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-1\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"client exiting...\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @runner(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %5, align 4
store i32 %6, ptr %3, align 4
%7 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%9 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @atoi(ptr noundef %9)
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %.lr.ph
.lr.ph: ; preds = %1
br label %19
._crit_edge: ; preds = %19
br label %12
12: ; preds = %._crit_edge, %1
%13 = load i32, ptr %3, align 4
%14 = call i32 @write(i32 noundef %13, ptr noundef @.str.1, i32 noundef 2)
%15 = load i32, ptr %3, align 4
%16 = call i32 @close(i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %.lr.ph, %19
%20 = load i32, ptr %3, align 4
%21 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%22 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%23 = call i32 @strlen(ptr noundef %22)
%24 = call i32 @write(i32 noundef %20, ptr noundef %21, i32 noundef %23)
%25 = load i32, ptr %3, align 4
%26 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%27 = call i32 @read(i32 noundef %25, ptr noundef %26, i32 noundef 1024)
%28 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %28)
%30 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%31 = call i32 @memset(ptr noundef %30, i32 noundef 0, i32 noundef 1024)
%32 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%33 = call i32 @atoi(ptr noundef %9)
%34 = icmp eq i32 %33, -1
br i1 %34, label %._crit_edge, label %19
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strlen(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0v48epbp.c'
source_filename = "/tmp/tmp0v48epbp.c"
target datalayout = "e-m:e-p270: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/tmp0v48epbp.c"
target datalayout = "e-m:e-p270: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/tmpmdj4qju4.c'
source_filename = "/tmp/tmpmdj4qju4.c"
target datalayout = "e-m:e-p270: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/tmpmdj4qju4.c"
target datalayout = "e-m:e-p270: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/tmpoklpl4t_.c'
source_filename = "/tmp/tmpoklpl4t_.c"
target datalayout = "e-m:e-p270: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/tmpoklpl4t_.c"
target datalayout = "e-m:e-p270: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/tmpeardrcn8.c'
source_filename = "/tmp/tmpeardrcn8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"ok\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @await_reply_rpc_katcl(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 %struct.timeval, align 4
%8 = alloca %struct.timeval, align 4
%9 = alloca %struct.timeval, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = udiv i32 %11, 1000
%13 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
store i32 %12, ptr %13, align 4
%14 = load i32, ptr %5, align 4
%15 = urem i32 %14, 1000
%16 = mul i32 %15, 1000
%17 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
store i32 %16, ptr %17, align 4
%18 = call i32 @gettimeofday(ptr noundef %7, ptr noundef null)
%19 = call i32 @add_time_katcp(ptr noundef %8, ptr noundef %7, ptr noundef %9)
br label %20
20: ; preds = %24, %2
%21 = load ptr, ptr %4, align 8
%22 = call i32 @complete_rpc_katcl(ptr noundef %21, i32 noundef 0, ptr noundef %8)
store i32 %22, ptr %6, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %20
br label %20, !llvm.loop !6
25: ; preds = %20
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 -1, ptr %3, align 4
br label %41
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = call ptr @arg_string_katcl(ptr noundef %30, i32 noundef 1)
store ptr %31, ptr %10, align 8
%32 = load ptr, ptr %10, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %35
34: ; preds = %29
store i32 -1, ptr %3, align 4
br label %41
35: ; preds = %29
%36 = load ptr, ptr %10, align 8
%37 = call i64 @strcmp(ptr noundef %36, ptr noundef @.str)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %35
store i32 1, ptr %3, align 4
br label %41
40: ; preds = %35
store i32 0, ptr %3, align 4
br label %41
41: ; preds = %40, %39, %34, %28
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @add_time_katcp(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @complete_rpc_katcl(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @arg_string_katcl(ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeardrcn8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"ok\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @await_reply_rpc_katcl(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 %struct.timeval, align 4
%8 = alloca %struct.timeval, align 4
%9 = alloca %struct.timeval, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = udiv i32 %11, 1000
%13 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
store i32 %12, ptr %13, align 4
%14 = load i32, ptr %5, align 4
%15 = urem i32 %14, 1000
%16 = mul i32 %15, 1000
%17 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
store i32 %16, ptr %17, align 4
%18 = call i32 @gettimeofday(ptr noundef %7, ptr noundef null)
%19 = call i32 @add_time_katcp(ptr noundef %8, ptr noundef %7, ptr noundef %9)
br label %20
20: ; preds = %20, %2
%21 = load ptr, ptr %4, align 8
%22 = call i32 @complete_rpc_katcl(ptr noundef %21, i32 noundef 0, ptr noundef %8)
store i32 %22, ptr %6, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %20, label %24, !llvm.loop !6
24: ; preds = %20
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 -1, ptr %3, align 4
br label %40
28: ; preds = %24
%29 = load ptr, ptr %4, align 8
%30 = call ptr @arg_string_katcl(ptr noundef %29, i32 noundef 1)
store ptr %30, ptr %10, align 8
%31 = load ptr, ptr %10, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %34
33: ; preds = %28
store i32 -1, ptr %3, align 4
br label %40
34: ; preds = %28
%35 = load ptr, ptr %10, align 8
%36 = call i64 @strcmp(ptr noundef %35, ptr noundef @.str)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34
store i32 1, ptr %3, align 4
br label %40
39: ; preds = %34
store i32 0, ptr %3, align 4
br label %40
40: ; preds = %39, %38, %33, %27
%41 = load i32, ptr %3, align 4
ret i32 %41
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @add_time_katcp(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @complete_rpc_katcl(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @arg_string_katcl(ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpagbiftn6.c'
source_filename = "/tmp/tmpagbiftn6.c"
target datalayout = "e-m:e-p270: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 @network_close(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 @close(i32 noundef %3)
ret void
}
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/tmpagbiftn6.c"
target datalayout = "e-m:e-p270: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 @network_close(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 @close(i32 noundef %3)
ret void
}
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/tmptig79wb0.c'
source_filename = "/tmp/tmptig79wb0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @g()
store i32 %3, ptr %2, align 4
%4 = call i64 (...) @f()
%5 = load i32, ptr %2, align 4
%6 = sext i32 %5 to i64
%7 = add nsw i64 %6, %4
%8 = trunc i64 %7 to i32
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
ret i32 %9
}
declare i32 @g(...) #1
declare i64 @f(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptig79wb0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @g()
store i32 %3, ptr %2, align 4
%4 = call i64 (...) @f()
%5 = load i32, ptr %2, align 4
%6 = sext i32 %5 to i64
%7 = add nsw i64 %6, %4
%8 = trunc i64 %7 to i32
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
ret i32 %9
}
declare i32 @g(...) #1
declare i64 @f(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps_83x1fd.c'
source_filename = "/tmp/tmps_83x1fd.c"
target datalayout = "e-m:e-p270: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 @select() #0 {
%1 = call i32 @syscall(i32 noundef 3)
ret i32 %1
}
declare i32 @syscall(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/tmps_83x1fd.c"
target datalayout = "e-m:e-p270: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 @select() #0 {
%1 = call i32 @syscall(i32 noundef 3)
ret i32 %1
}
declare i32 @syscall(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/tmpx4zmo9gl.c'
source_filename = "/tmp/tmpx4zmo9gl.c"
target datalayout = "e-m:e-p270: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 @fermatTest(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i64, ptr %4, align 8
%9 = icmp eq i64 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 0, ptr %3, align 4
br label %34
11: ; preds = %2
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %30, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %33
16: ; preds = %12
%17 = call i64 (...) @rand()
%18 = load i64, ptr %4, align 8
%19 = sub nsw i64 %18, 1
%20 = srem i64 %17, %19
%21 = add nsw i64 %20, 1
store i64 %21, ptr %7, align 8
%22 = load i64, ptr %7, align 8
%23 = load i64, ptr %4, align 8
%24 = sub nsw i64 %23, 1
%25 = load i64, ptr %4, align 8
%26 = call i32 @expMod(i64 noundef %22, i64 noundef %24, i64 noundef %25)
%27 = icmp ne i32 %26, 1
br i1 %27, label %28, label %29
28: ; preds = %16
store i32 0, ptr %3, align 4
br label %34
29: ; preds = %16
br label %30
30: ; preds = %29
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
br label %12, !llvm.loop !6
33: ; preds = %12
store i32 1, ptr %3, align 4
br label %34
34: ; preds = %33, %28, %10
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i64 @rand(...) #1
declare i32 @expMod(i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx4zmo9gl.c"
target datalayout = "e-m:e-p270: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 @fermatTest(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i64, ptr %4, align 8
%9 = icmp eq i64 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 0, ptr %3, align 4
br label %36
11: ; preds = %2
store i32 0, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %35
.lr.ph: ; preds = %11
br label %15
15: ; preds = %.lr.ph, %29
%16 = call i64 (...) @rand()
%17 = load i64, ptr %4, align 8
%18 = sub nsw i64 %17, 1
%19 = srem i64 %16, %18
%20 = add nsw i64 %19, 1
store i64 %20, ptr %7, align 8
%21 = load i64, ptr %7, align 8
%22 = load i64, ptr %4, align 8
%23 = sub nsw i64 %22, 1
%24 = load i64, ptr %4, align 8
%25 = call i32 @expMod(i64 noundef %21, i64 noundef %23, i64 noundef %24)
%26 = icmp ne i32 %25, 1
br i1 %26, label %27, label %28
27: ; preds = %15
store i32 0, ptr %3, align 4
br label %36
28: ; preds = %15
br label %29
29: ; preds = %28
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %11
store i32 1, ptr %3, align 4
br label %36
36: ; preds = %35, %27, %10
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i64 @rand(...) #1
declare i32 @expMod(i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq90u7c1z.c'
source_filename = "/tmp/tmpq90u7c1z.c"
target datalayout = "e-m:e-p270: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 @dbg_wb_read32(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 = call i32 @dbg_set_chain(i32 noundef 0)
%6 = call i32 @send_command_to_vpi(i32 noundef 8)
%7 = load i32, ptr %3, align 4
%8 = call i32 @send_address_to_vpi(i32 noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @get_word_from_vpi(ptr noundef %9)
%11 = call i32 (...) @get_response_from_vpi()
ret i32 0
}
declare i32 @dbg_set_chain(i32 noundef) #1
declare i32 @send_command_to_vpi(i32 noundef) #1
declare i32 @send_address_to_vpi(i32 noundef) #1
declare i32 @get_word_from_vpi(ptr noundef) #1
declare i32 @get_response_from_vpi(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq90u7c1z.c"
target datalayout = "e-m:e-p270: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 @dbg_wb_read32(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 = call i32 @dbg_set_chain(i32 noundef 0)
%6 = call i32 @send_command_to_vpi(i32 noundef 8)
%7 = load i32, ptr %3, align 4
%8 = call i32 @send_address_to_vpi(i32 noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @get_word_from_vpi(ptr noundef %9)
%11 = call i32 (...) @get_response_from_vpi()
ret i32 0
}
declare i32 @dbg_set_chain(i32 noundef) #1
declare i32 @send_command_to_vpi(i32 noundef) #1
declare i32 @send_address_to_vpi(i32 noundef) #1
declare i32 @get_word_from_vpi(ptr noundef) #1
declare i32 @get_response_from_vpi(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj_tux9za.c'
source_filename = "/tmp/tmpj_tux9za.c"
target datalayout = "e-m:e-p270: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 @TimerPrescaleGet(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 %4, align 4
%6 = icmp eq i32 %5, 255
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 56
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i64, ptr %11, align 8
br label %19
13: ; preds = %2
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 60
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to ptr
%18 = load volatile i64, ptr %17, align 8
br label %19
19: ; preds = %13, %7
%20 = phi i64 [ %12, %7 ], [ %18, %13 ]
%21 = trunc i64 %20 to i32
ret i32 %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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj_tux9za.c"
target datalayout = "e-m:e-p270: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 @TimerPrescaleGet(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 %4, align 4
%6 = icmp eq i32 %5, 255
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 56
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i64, ptr %11, align 8
br label %19
13: ; preds = %2
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 60
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to ptr
%18 = load volatile i64, ptr %17, align 8
br label %19
19: ; preds = %13, %7
%20 = phi i64 [ %12, %7 ], [ %18, %13 ]
%21 = trunc i64 %20 to i32
ret i32 %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"}
|
; ModuleID = '/tmp/tmphg200jii.c'
source_filename = "/tmp/tmphg200jii.c"
target datalayout = "e-m:e-p270: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/tmphg200jii.c"
target datalayout = "e-m:e-p270: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/tmpp38bjldm.c'
source_filename = "/tmp/tmpp38bjldm.c"
target datalayout = "e-m:e-p270: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/tmpp38bjldm.c"
target datalayout = "e-m:e-p270: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/tmpr2xehvbi.c'
source_filename = "/tmp/tmpr2xehvbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @r_acosd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load float, ptr %3, align 4
%5 = call float @__racosd(float noundef %4)
ret float %5
}
declare float @__racosd(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr2xehvbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @r_acosd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load float, ptr %3, align 4
%5 = call float @__racosd(float noundef %4)
ret float %5
}
declare float @__racosd(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy1f995fx.c'
source_filename = "/tmp/tmpy1f995fx.c"
target datalayout = "e-m:e-p270: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 [586 x i8] c"Usage\0A======\0A\0A sudo %s [OPTIONS] targets\0A\0AOPTIONS\0A========\0A\0A-t\09Number of spotter threads(i.e. 3).\0A-p\09Port scan range (i.e. 80 or 20-80).\0A-d\09Delay between packages sent in us(i.e. 100).\0A-s\09No service discoverage (less bandwith load).\0A-m\09Module to run. For instance, Service.\0A-h\09Show this help.\0A\0A\09Ip address seed (i.e. 192.168.01).\0AExamples\0A========\0A\0A %s -t 5 -p 80 -s 74.125.0.0-74.125.255.255 #SYN scan Google Servers\0A\0A %s -t 3 -p 20-80 188.160.0.0-200.0.0.0 -d 1 -m Service #Service Discoverage Plugin\0A\0A %s -t 2 1.1.1.1-255.1.1.1 -m Backdoor32764 -p 32764 #32764/TCP Backdoor Plugin\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printUsage(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 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy1f995fx.c"
target datalayout = "e-m:e-p270: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 [586 x i8] c"Usage\0A======\0A\0A sudo %s [OPTIONS] targets\0A\0AOPTIONS\0A========\0A\0A-t\09Number of spotter threads(i.e. 3).\0A-p\09Port scan range (i.e. 80 or 20-80).\0A-d\09Delay between packages sent in us(i.e. 100).\0A-s\09No service discoverage (less bandwith load).\0A-m\09Module to run. For instance, Service.\0A-h\09Show this help.\0A\0A\09Ip address seed (i.e. 192.168.01).\0AExamples\0A========\0A\0A %s -t 5 -p 80 -s 74.125.0.0-74.125.255.255 #SYN scan Google Servers\0A\0A %s -t 3 -p 20-80 188.160.0.0-200.0.0.0 -d 1 -m Service #Service Discoverage Plugin\0A\0A %s -t 2 1.1.1.1-255.1.1.1 -m Backdoor32764 -p 32764 #32764/TCP Backdoor Plugin\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printUsage(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 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.