llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp_eshrcxl.c'
source_filename = "/tmp/tmp_eshrcxl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getGoalPos(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 @dxl_read_word(i32 noundef %4, i32 noundef 30)
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @PrintErrorCode()
%7 = load i32, ptr %3, align 4
ret i32 %7
}
declare i32 @dxl_read_word(i32 noundef, i32 noundef) #1
declare i32 @PrintErrorCode(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_eshrcxl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getGoalPos(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 @dxl_read_word(i32 noundef %4, i32 noundef 30)
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @PrintErrorCode()
%7 = load i32, ptr %3, align 4
ret i32 %7
}
declare i32 @dxl_read_word(i32 noundef, i32 noundef) #1
declare i32 @PrintErrorCode(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4ii_21ex.c'
source_filename = "/tmp/tmp4ii_21ex.c"
target datalayout = "e-m:e-p270: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/tmp4ii_21ex.c"
target datalayout = "e-m:e-p270: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/tmp5r7u_kmm.c'
source_filename = "/tmp/tmp5r7u_kmm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark() #0 {
%1 = alloca double, align 8
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = call double (...) @tic()
store double %6, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %21, %0
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 1000000
br i1 %9, label %10, label %24
10: ; preds = %7
%11 = call float (...) @rand_float()
%12 = fmul float %11, 1.000000e+05
store float %12, ptr %2, align 4
%13 = load float, ptr %2, align 4
%14 = call float @sqrtf(float noundef %13) #3
store float %14, ptr %3, align 4
%15 = load float, ptr %3, align 4
%16 = load float, ptr %3, align 4
%17 = fcmp une float %15, %16
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = call i32 @printf(ptr noundef @.str)
br label %24
20: ; preds = %10
br label %21
21: ; preds = %20
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %7, !llvm.loop !6
24: ; preds = %18, %7
%25 = call double (...) @tic()
%26 = load double, ptr %4, align 8
%27 = fsub double %25, %26
store double %27, ptr %1, align 8
%28 = load float, ptr %3, align 4
%29 = load float, ptr %3, align 4
%30 = fcmp une float %28, %29
br i1 %30, label %31, label %33
31: ; preds = %24
%32 = call i32 @printf(ptr noundef @.str)
br label %33
33: ; preds = %31, %24
%34 = load double, ptr %1, align 8
ret double %34
}
declare double @tic(...) #1
declare float @rand_float(...) #1
; Function Attrs: nounwind
declare float @sqrtf(float noundef) #2
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" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5r7u_kmm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark() #0 {
%1 = alloca double, align 8
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = call double (...) @tic()
store double %6, ptr %4, align 8
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 1000000
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %20
%10 = call float (...) @rand_float()
%11 = fmul float %10, 1.000000e+05
store float %11, ptr %2, align 4
%12 = load float, ptr %2, align 4
%13 = call float @sqrtf(float noundef %12) #3
store float %13, ptr %3, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %3, align 4
%16 = fcmp une float %14, %15
br i1 %16, label %17, label %19
17: ; preds = %9
%18 = call i32 @printf(ptr noundef @.str)
br label %25
19: ; preds = %9
br label %20
20: ; preds = %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %23, 1000000
br i1 %24, label %9, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %20
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %25
25: ; preds = %.loopexit, %17
%26 = call double (...) @tic()
%27 = load double, ptr %4, align 8
%28 = fsub double %26, %27
store double %28, ptr %1, align 8
%29 = load float, ptr %3, align 4
%30 = load float, ptr %3, align 4
%31 = fcmp une float %29, %30
br i1 %31, label %32, label %34
32: ; preds = %25
%33 = call i32 @printf(ptr noundef @.str)
br label %34
34: ; preds = %32, %25
%35 = load double, ptr %1, align 8
ret double %35
}
declare double @tic(...) #1
declare float @rand_float(...) #1
; Function Attrs: nounwind
declare float @sqrtf(float noundef) #2
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" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpy6y79pfd.c'
source_filename = "/tmp/tmpy6y79pfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld%lld%lld\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store i32 0, ptr %1, align 4
%11 = call i32 (ptr, ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%12 = load i64, ptr %2, align 8
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %5, align 8
%14 = alloca i64, i64 %12, align 16
store i64 %12, ptr %6, align 8
%15 = load i64, ptr %2, align 8
%16 = alloca i64, i64 %15, align 16
store i64 %15, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %17
17: ; preds = %27, %0
%18 = load i64, ptr %8, align 8
%19 = load i64, ptr %2, align 8
%20 = icmp slt i64 %18, %19
br i1 %20, label %21, label %30
21: ; preds = %17
%22 = load i64, ptr %8, align 8
%23 = getelementptr inbounds i64, ptr %14, i64 %22
%24 = load i64, ptr %8, align 8
%25 = getelementptr inbounds i64, ptr %16, i64 %24
%26 = call i32 (ptr, ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %23, ptr noundef %25)
br label %27
27: ; preds = %21
%28 = load i64, ptr %8, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %8, align 8
br label %17, !llvm.loop !6
30: ; preds = %17
store i64 0, ptr %9, align 8
br label %31
31: ; preds = %69, %30
br label %32
32: ; preds = %31
store i64 0, ptr %10, align 8
store i64 0, ptr %8, align 8
br label %33
33: ; preds = %59, %32
%34 = load i64, ptr %8, align 8
%35 = load i64, ptr %2, align 8
%36 = icmp slt i64 %34, %35
br i1 %36, label %37, label %62
37: ; preds = %33
%38 = load i64, ptr %8, align 8
%39 = getelementptr inbounds i64, ptr %14, i64 %38
%40 = load i64, ptr %39, align 8
%41 = load i64, ptr %8, align 8
%42 = getelementptr inbounds i64, ptr %16, i64 %41
%43 = load i64, ptr %42, align 8
%44 = add nsw i64 %40, %43
%45 = load i64, ptr %8, align 8
%46 = getelementptr inbounds i64, ptr %14, i64 %45
store i64 %44, ptr %46, align 8
%47 = load i64, ptr %8, align 8
%48 = getelementptr inbounds i64, ptr %14, i64 %47
%49 = load i64, ptr %48, align 8
%50 = load i64, ptr %4, align 8
%51 = icmp sge i64 %49, %50
br i1 %51, label %52, label %58
52: ; preds = %37
%53 = load i64, ptr %10, align 8
%54 = load i64, ptr %8, align 8
%55 = getelementptr inbounds i64, ptr %14, i64 %54
%56 = load i64, ptr %55, align 8
%57 = add nsw i64 %53, %56
store i64 %57, ptr %10, align 8
br label %58
58: ; preds = %52, %37
br label %59
59: ; preds = %58
%60 = load i64, ptr %8, align 8
%61 = add nsw i64 %60, 1
store i64 %61, ptr %8, align 8
br label %33, !llvm.loop !8
62: ; preds = %33
%63 = load i64, ptr %9, align 8
%64 = add nsw i64 %63, 1
store i64 %64, ptr %9, align 8
%65 = load i64, ptr %10, align 8
%66 = load i64, ptr %3, align 8
%67 = icmp sge i64 %65, %66
br i1 %67, label %68, label %69
68: ; preds = %62
br label %70
69: ; preds = %62
br label %31
70: ; preds = %68
%71 = load i64, ptr %9, align 8
%72 = call i32 @printf(ptr noundef @.str.2, i64 noundef %71)
store i32 0, ptr %1, align 4
%73 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %73)
%74 = load i32, ptr %1, align 4
ret i32 %74
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy6y79pfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld%lld%lld\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store i32 0, ptr %1, align 4
%11 = call i32 (ptr, ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%12 = load i64, ptr %2, align 8
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %5, align 8
%14 = alloca i64, i64 %12, align 16
store i64 %12, ptr %6, align 8
%15 = load i64, ptr %2, align 8
%16 = alloca i64, i64 %15, align 16
store i64 %15, ptr %7, align 8
store i64 0, ptr %8, align 8
%17 = load i64, ptr %8, align 8
%18 = load i64, ptr %2, align 8
%19 = icmp slt i64 %17, %18
br i1 %19, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %20
20: ; preds = %.lr.ph, %26
%21 = load i64, ptr %8, align 8
%22 = getelementptr inbounds i64, ptr %14, i64 %21
%23 = load i64, ptr %8, align 8
%24 = getelementptr inbounds i64, ptr %16, i64 %23
%25 = call i32 (ptr, ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %22, ptr noundef %24)
br label %26
26: ; preds = %20
%27 = load i64, ptr %8, align 8
%28 = add nsw i64 %27, 1
store i64 %28, ptr %8, align 8
%29 = load i64, ptr %8, align 8
%30 = load i64, ptr %2, align 8
%31 = icmp slt i64 %29, %30
br i1 %31, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %0
store i64 0, ptr %9, align 8
br label %33
33: ; preds = %66, %32
br label %34
34: ; preds = %33
store i64 0, ptr %10, align 8
store i64 0, ptr %8, align 8
%35 = load i64, ptr %8, align 8
%36 = load i64, ptr %2, align 8
%37 = icmp slt i64 %35, %36
br i1 %37, label %.lr.ph2, label %66
.lr.ph2: ; preds = %34
br label %38
38: ; preds = %.lr.ph2, %60
%39 = load i64, ptr %8, align 8
%40 = getelementptr inbounds i64, ptr %14, i64 %39
%41 = load i64, ptr %40, align 8
%42 = load i64, ptr %8, align 8
%43 = getelementptr inbounds i64, ptr %16, i64 %42
%44 = load i64, ptr %43, align 8
%45 = add nsw i64 %41, %44
%46 = load i64, ptr %8, align 8
%47 = getelementptr inbounds i64, ptr %14, i64 %46
store i64 %45, ptr %47, align 8
%48 = load i64, ptr %8, align 8
%49 = getelementptr inbounds i64, ptr %14, i64 %48
%50 = load i64, ptr %49, align 8
%51 = load i64, ptr %4, align 8
%52 = icmp sge i64 %50, %51
br i1 %52, label %53, label %59
53: ; preds = %38
%54 = load i64, ptr %10, align 8
%55 = load i64, ptr %8, align 8
%56 = getelementptr inbounds i64, ptr %14, i64 %55
%57 = load i64, ptr %56, align 8
%58 = add nsw i64 %54, %57
store i64 %58, ptr %10, align 8
br label %59
59: ; preds = %53, %38
br label %60
60: ; preds = %59
%61 = load i64, ptr %8, align 8
%62 = add nsw i64 %61, 1
store i64 %62, ptr %8, align 8
%63 = load i64, ptr %8, align 8
%64 = load i64, ptr %2, align 8
%65 = icmp slt i64 %63, %64
br i1 %65, label %38, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %60
br label %66
66: ; preds = %._crit_edge3, %34
%67 = load i64, ptr %9, align 8
%68 = add nsw i64 %67, 1
store i64 %68, ptr %9, align 8
%69 = load i64, ptr %10, align 8
%70 = load i64, ptr %3, align 8
%71 = icmp sge i64 %69, %70
br i1 %71, label %72, label %33
72: ; preds = %66
br label %73
73: ; preds = %72
%74 = load i64, ptr %9, align 8
%75 = call i32 @printf(ptr noundef @.str.2, i64 noundef %74)
store i32 0, ptr %1, align 4
%76 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %76)
%77 = load i32, ptr %1, align 4
ret i32 %77
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpg2qjvze7.c'
source_filename = "/tmp/tmpg2qjvze7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @non_repeating_characters(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%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
%10 = call i64 @calloc(i32 noundef 256, i32 noundef 4)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %8, align 8
%12 = load i32, ptr %6, align 4
store i32 %12, ptr %9, align 4
br label %13
13: ; preds = %42, %3
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %45
17: ; preds = %13
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %18, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %17
%30 = load ptr, ptr %8, align 8
%31 = call i32 @free(ptr noundef %30)
store i32 0, ptr %4, align 4
br label %48
32: ; preds = %17
%33 = load ptr, ptr %8, align 8
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %9, 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 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %33, i64 %40
store i32 1, ptr %41, align 4
br label %42
42: ; preds = %32
%43 = load i32, ptr %9, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %9, align 4
br label %13, !llvm.loop !6
45: ; preds = %13
%46 = load ptr, ptr %8, align 8
%47 = call i32 @free(ptr noundef %46)
store i32 1, ptr %4, align 4
br label %48
48: ; preds = %45, %29
%49 = load i32, ptr %4, align 4
ret i32 %49
}
declare i64 @calloc(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg2qjvze7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @non_repeating_characters(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%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
%10 = call i64 @calloc(i32 noundef 256, i32 noundef 4)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %8, align 8
%12 = load i32, ptr %6, align 4
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph, label %47
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %41
%17 = load ptr, ptr %8, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %9, 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 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %17, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %16
%29 = load ptr, ptr %8, align 8
%30 = call i32 @free(ptr noundef %29)
store i32 0, ptr %4, align 4
br label %50
31: ; preds = %16
%32 = load ptr, ptr %8, align 8
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %9, 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 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %32, i64 %39
store i32 1, ptr %40, align 4
br label %41
41: ; preds = %31
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %9, align 4
%44 = load i32, ptr %9, align 4
%45 = load i32, ptr %7, align 4
%46 = icmp sle i32 %44, %45
br i1 %46, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %3
%48 = load ptr, ptr %8, align 8
%49 = call i32 @free(ptr noundef %48)
store i32 1, ptr %4, align 4
br label %50
50: ; preds = %47, %28
%51 = load i32, ptr %4, align 4
ret i32 %51
}
declare i64 @calloc(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"}
|
; ModuleID = '/tmp/tmp57ye5v_c.c'
source_filename = "/tmp/tmp57ye5v_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sbrk(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp57ye5v_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sbrk(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeu68tv33.c'
source_filename = "/tmp/tmpeu68tv33.c"
target datalayout = "e-m:e-p270: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/tmpeu68tv33.c"
target datalayout = "e-m:e-p270: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/tmpyhxrhfy8.c'
source_filename = "/tmp/tmpyhxrhfy8.c"
target datalayout = "e-m:e-p270: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/tmpyhxrhfy8.c"
target datalayout = "e-m:e-p270: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/tmp874swc8q.c'
source_filename = "/tmp/tmp874swc8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mi2log_init(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 @milog_init(ptr noundef %3)
ret void
}
declare i32 @milog_init(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp874swc8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mi2log_init(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 @milog_init(ptr noundef %3)
ret void
}
declare i32 @milog_init(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprrgltqs3.c'
source_filename = "/tmp/tmprrgltqs3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"../datasets/2dchess_1000p_1000v_10dim_0err.float\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = 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 i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %2
store i32 -1, ptr %3, align 4
br label %36
14: ; preds = %2
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr @SEEK_END, align 4
%17 = call i32 @fseek(ptr noundef %15, i32 noundef 0, i32 noundef %16)
%18 = load ptr, ptr %7, align 8
%19 = call i64 @ftell(ptr noundef %18)
store i64 %19, ptr %6, align 8
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr @SEEK_SET, align 4
%22 = call i32 @fseek(ptr noundef %20, i32 noundef 0, i32 noundef %21)
%23 = load i64, ptr %6, align 8
%24 = call ptr @malloc(i64 noundef %23)
store ptr %24, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = load i64, ptr %6, align 8
%27 = load ptr, ptr %7, align 8
%28 = call i32 @fread(ptr noundef %25, i64 noundef %26, i32 noundef 1, ptr noundef %27)
%29 = icmp ne i32 %28, 1
br i1 %29, label %30, label %31
30: ; preds = %14
store i32 -1, ptr %3, align 4
br label %36
31: ; preds = %14
%32 = load ptr, ptr %7, align 8
%33 = call i32 @fclose(ptr noundef %32)
%34 = load ptr, ptr %8, align 8
%35 = call ptr @pmc_api_learn_model(ptr noundef %34, i32 noundef 0, i32 noundef 10, i32 noundef 0, i32 noundef 5, i32 noundef 10, i32 noundef 1, i32 noundef 0)
store ptr %35, ptr %9, align 8
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %31, %30, %13
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare ptr @pmc_api_learn_model(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprrgltqs3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"../datasets/2dchess_1000p_1000v_10dim_0err.float\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = 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 i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %2
store i32 -1, ptr %3, align 4
br label %36
14: ; preds = %2
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr @SEEK_END, align 4
%17 = call i32 @fseek(ptr noundef %15, i32 noundef 0, i32 noundef %16)
%18 = load ptr, ptr %7, align 8
%19 = call i64 @ftell(ptr noundef %18)
store i64 %19, ptr %6, align 8
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr @SEEK_SET, align 4
%22 = call i32 @fseek(ptr noundef %20, i32 noundef 0, i32 noundef %21)
%23 = load i64, ptr %6, align 8
%24 = call ptr @malloc(i64 noundef %23)
store ptr %24, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = load i64, ptr %6, align 8
%27 = load ptr, ptr %7, align 8
%28 = call i32 @fread(ptr noundef %25, i64 noundef %26, i32 noundef 1, ptr noundef %27)
%29 = icmp ne i32 %28, 1
br i1 %29, label %30, label %31
30: ; preds = %14
store i32 -1, ptr %3, align 4
br label %36
31: ; preds = %14
%32 = load ptr, ptr %7, align 8
%33 = call i32 @fclose(ptr noundef %32)
%34 = load ptr, ptr %8, align 8
%35 = call ptr @pmc_api_learn_model(ptr noundef %34, i32 noundef 0, i32 noundef 10, i32 noundef 0, i32 noundef 5, i32 noundef 10, i32 noundef 1, i32 noundef 0)
store ptr %35, ptr %9, align 8
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %31, %30, %13
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare ptr @pmc_api_learn_model(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprgcfk2n4.c'
source_filename = "/tmp/tmprgcfk2n4.c"
target datalayout = "e-m:e-p270: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/tmprgcfk2n4.c"
target datalayout = "e-m:e-p270: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/tmpj8x7ya1e.c'
source_filename = "/tmp/tmpj8x7ya1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Do you want another transaction\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @tty_mode(i32 noundef 0)
%8 = call i32 (...) @set_crmode()
%9 = call i32 @get_response(ptr noundef @.str)
store i32 %9, ptr %6, align 4
%10 = call i32 @tty_mode(i32 noundef 1)
%11 = load i32, ptr %6, align 4
ret i32 %11
}
declare i32 @tty_mode(i32 noundef) #1
declare i32 @set_crmode(...) #1
declare i32 @get_response(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj8x7ya1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Do you want another transaction\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @tty_mode(i32 noundef 0)
%8 = call i32 (...) @set_crmode()
%9 = call i32 @get_response(ptr noundef @.str)
store i32 %9, ptr %6, align 4
%10 = call i32 @tty_mode(i32 noundef 1)
%11 = load i32, ptr %6, align 4
ret i32 %11
}
declare i32 @tty_mode(i32 noundef) #1
declare i32 @set_crmode(...) #1
declare i32 @get_response(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt5ic04aj.c'
source_filename = "/tmp/tmpt5ic04aj.c"
target datalayout = "e-m:e-p270: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/tmpt5ic04aj.c"
target datalayout = "e-m:e-p270: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/tmp5g1asyt8.c'
source_filename = "/tmp/tmp5g1asyt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j0(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = call double @___jn(i32 noundef 0, ptr noundef %2)
ret double %3
}
declare double @___jn(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/tmp5g1asyt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j0(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = call double @___jn(i32 noundef 0, ptr noundef %2)
ret double %3
}
declare double @___jn(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/tmpdyaud4_3.c'
source_filename = "/tmp/tmpdyaud4_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cur_dens_SC(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 @c_wrapper(ptr noundef %3, i32 noundef 5)
ret i32 0
}
declare i32 @c_wrapper(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/tmpdyaud4_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cur_dens_SC(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 @c_wrapper(ptr noundef %3, i32 noundef 5)
ret i32 0
}
declare i32 @c_wrapper(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/tmplh_hx_dz.c'
source_filename = "/tmp/tmplh_hx_dz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [1024 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %35, %0
%5 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%6 = call i64 @getmyline(ptr noundef %5, i32 noundef 1024)
%7 = icmp sgt i64 %6, 0
br i1 %7, label %8, label %36
8: ; preds = %4
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %32, %8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %35
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 9
br i1 %22, label %23, label %25
23: ; preds = %16
%24 = call i32 @putchar(i8 noundef signext 32)
br label %31
25: ; preds = %16
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = call i32 @putchar(i8 noundef signext %29)
br label %31
31: ; preds = %25, %23
br label %32
32: ; preds = %31
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
br label %9, !llvm.loop !6
35: ; preds = %9
br label %4, !llvm.loop !8
36: ; preds = %4
ret i32 0
}
declare i64 @getmyline(ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplh_hx_dz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [1024 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%5 = call i64 @getmyline(ptr noundef %4, i32 noundef 1024)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %.lr.ph2, label %42
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %39
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %9
%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 %39
.lr.ph: ; preds = %7
br label %14
14: ; preds = %.lr.ph, %30
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 9
br i1 %20, label %21, label %23
21: ; preds = %14
%22 = call i32 @putchar(i8 noundef signext 32)
br label %29
23: ; preds = %14
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = call i32 @putchar(i8 noundef signext %27)
br label %29
29: ; preds = %23, %21
br label %30
30: ; preds = %29
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %39
39: ; preds = %._crit_edge, %7
%40 = call i64 @getmyline(ptr noundef %4, i32 noundef 1024)
%41 = icmp sgt i64 %40, 0
br i1 %41, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %39
br label %42
42: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i64 @getmyline(ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpri8fgyje.c'
source_filename = "/tmp/tmpri8fgyje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rgph_u32x3_jenkins2v_u16(i32 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = call i32 @UINT32_C(i32 noundef -1640531527)
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 0
store i32 %7, ptr %9, align 4
%10 = call i32 @UINT32_C(i32 noundef -1640531527)
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 1
store i32 %10, ptr %12, align 4
%13 = load i64, ptr %5, align 8
%14 = trunc i64 %13 to i32
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 2
store i32 %14, ptr %16, align 4
%17 = load i32, ptr %4, align 4
%18 = call i64 @htole16(i32 noundef %17)
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
%21 = load i32, ptr %20, align 4
%22 = sext i32 %21 to i64
%23 = add nsw i64 %22, %18
%24 = trunc i64 %23 to i32
store i32 %24, ptr %20, align 4
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 2
%27 = load i32, ptr %26, align 4
%28 = sext i32 %27 to i64
%29 = add i64 %28, 4
%30 = trunc i64 %29 to i32
store i32 %30, ptr %26, align 4
%31 = load ptr, ptr %6, align 8
%32 = call i32 @rgph_jenkins2_mix(ptr noundef %31)
ret void
}
declare i32 @UINT32_C(i32 noundef) #1
declare i64 @htole16(i32 noundef) #1
declare i32 @rgph_jenkins2_mix(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpri8fgyje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rgph_u32x3_jenkins2v_u16(i32 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = call i32 @UINT32_C(i32 noundef -1640531527)
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 0
store i32 %7, ptr %9, align 4
%10 = call i32 @UINT32_C(i32 noundef -1640531527)
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 1
store i32 %10, ptr %12, align 4
%13 = load i64, ptr %5, align 8
%14 = trunc i64 %13 to i32
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 2
store i32 %14, ptr %16, align 4
%17 = load i32, ptr %4, align 4
%18 = call i64 @htole16(i32 noundef %17)
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
%21 = load i32, ptr %20, align 4
%22 = sext i32 %21 to i64
%23 = add nsw i64 %22, %18
%24 = trunc i64 %23 to i32
store i32 %24, ptr %20, align 4
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 2
%27 = load i32, ptr %26, align 4
%28 = sext i32 %27 to i64
%29 = add i64 %28, 4
%30 = trunc i64 %29 to i32
store i32 %30, ptr %26, align 4
%31 = load ptr, ptr %6, align 8
%32 = call i32 @rgph_jenkins2_mix(ptr noundef %31)
ret void
}
declare i32 @UINT32_C(i32 noundef) #1
declare i64 @htole16(i32 noundef) #1
declare i32 @rgph_jenkins2_mix(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6h31rlf5.c'
source_filename = "/tmp/tmp6h31rlf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/proc/%d/comm\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rt\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"__unknown\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getProcessNameFromPid(i64 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load i64, ptr %4, align 8
%11 = call i32 @asprintf(ptr noundef %7, ptr noundef @.str, i64 noundef %10)
%12 = load ptr, ptr %7, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str.1)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %31
16: ; preds = %3
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %6, align 8
%19 = load ptr, ptr %8, align 8
%20 = call i32 @fgets(ptr noundef %17, i64 noundef %18, ptr noundef %19)
%21 = load ptr, ptr %5, align 8
%22 = call i64 @strlen(ptr noundef %21)
store i64 %22, ptr %9, align 8
%23 = load i64, ptr %9, align 8
%24 = icmp sgt i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %16
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %9, align 8
%28 = sub nsw i64 %27, 1
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 0, ptr %29, align 1
br label %30
30: ; preds = %25, %16
br label %34
31: ; preds = %3
%32 = load ptr, ptr %5, align 8
%33 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.2)
br label %34
34: ; preds = %31, %30
%35 = load ptr, ptr %7, align 8
%36 = call i32 @free(ptr noundef %35)
%37 = load ptr, ptr %5, align 8
ret ptr %37
}
declare i32 @asprintf(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6h31rlf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/proc/%d/comm\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rt\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"__unknown\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getProcessNameFromPid(i64 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load i64, ptr %4, align 8
%11 = call i32 @asprintf(ptr noundef %7, ptr noundef @.str, i64 noundef %10)
%12 = load ptr, ptr %7, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str.1)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %31
16: ; preds = %3
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %6, align 8
%19 = load ptr, ptr %8, align 8
%20 = call i32 @fgets(ptr noundef %17, i64 noundef %18, ptr noundef %19)
%21 = load ptr, ptr %5, align 8
%22 = call i64 @strlen(ptr noundef %21)
store i64 %22, ptr %9, align 8
%23 = load i64, ptr %9, align 8
%24 = icmp sgt i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %16
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %9, align 8
%28 = sub nsw i64 %27, 1
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 0, ptr %29, align 1
br label %30
30: ; preds = %25, %16
br label %34
31: ; preds = %3
%32 = load ptr, ptr %5, align 8
%33 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.2)
br label %34
34: ; preds = %31, %30
%35 = load ptr, ptr %7, align 8
%36 = call i32 @free(ptr noundef %35)
%37 = load ptr, ptr %5, align 8
ret ptr %37
}
declare i32 @asprintf(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplrz9qy2k.c'
source_filename = "/tmp/tmplrz9qy2k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0
%3 = call i32 @writer(i32 noundef 0)
br label %4
4: ; preds = %2
%5 = call i32 @reader1(i32 noundef 0)
br label %6
6: ; preds = %4
%7 = call i32 @reader2(i32 noundef 0)
br label %8
8: ; preds = %6
%9 = call i32 @reader3(i32 noundef 0)
br label %10
10: ; preds = %8
%11 = call i32 @reader4(i32 noundef 0)
br label %12
12: ; preds = %10
%13 = call i32 @reader5(i32 noundef 0)
ret i32 0
}
declare i32 @writer(i32 noundef) #1
declare i32 @reader1(i32 noundef) #1
declare i32 @reader2(i32 noundef) #1
declare i32 @reader3(i32 noundef) #1
declare i32 @reader4(i32 noundef) #1
declare i32 @reader5(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/tmplrz9qy2k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0
%3 = call i32 @writer(i32 noundef 0)
br label %4
4: ; preds = %2
%5 = call i32 @reader1(i32 noundef 0)
br label %6
6: ; preds = %4
%7 = call i32 @reader2(i32 noundef 0)
br label %8
8: ; preds = %6
%9 = call i32 @reader3(i32 noundef 0)
br label %10
10: ; preds = %8
%11 = call i32 @reader4(i32 noundef 0)
br label %12
12: ; preds = %10
%13 = call i32 @reader5(i32 noundef 0)
ret i32 0
}
declare i32 @writer(i32 noundef) #1
declare i32 @reader1(i32 noundef) #1
declare i32 @reader2(i32 noundef) #1
declare i32 @reader3(i32 noundef) #1
declare i32 @reader4(i32 noundef) #1
declare i32 @reader5(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/tmp2xhc6dk_.c'
source_filename = "/tmp/tmp2xhc6dk_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"print\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Unknown function!\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Imbalanced parenthesis! Croaaak...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_buffer(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [10 x [80 x i8]], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [10 x [10 x [10 x i8]]], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [10 x i32], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %15, align 4
br label %21
21: ; preds = %128, %1
%22 = load i32, ptr %15, align 4
%23 = load ptr, ptr %3, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %131
26: ; preds = %21
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %15, 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
switch i32 %32, label %40 [
i32 40, label %33
i32 41, label %36
i32 32, label %39
]
33: ; preds = %26
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %41
36: ; preds = %26
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
store i32 1, ptr %6, align 4
br label %41
39: ; preds = %26
store i32 1, ptr %6, align 4
br label %41
40: ; preds = %26
store i32 0, ptr %6, align 4
br label %41
41: ; preds = %40, %39, %36, %33
%42 = load i32, ptr %6, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %75
44: ; preds = %41
%45 = load i32, ptr %7, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %56
47: ; preds = %44
store i32 0, ptr %7, align 4
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %49
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [80 x i8], ptr %50, i64 0, i64 %52
store i8 0, ptr %53, align 1
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %74
56: ; preds = %44
%57 = load i32, ptr %9, align 4
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x [10 x [10 x i8]]], ptr %11, i64 0, i64 %59
%61 = load i32, ptr %12, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x [10 x i8]], ptr %60, i64 0, i64 %62
%64 = load i32, ptr %13, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [10 x i8], ptr %63, i64 0, i64 %65
store i8 0, ptr %66, align 1
%67 = load i32, ptr %12, align 4
%68 = load i32, ptr %9, align 4
%69 = sub nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %70
store i32 %67, ptr %71, align 4
%72 = load i32, ptr %12, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %74
74: ; preds = %56, %47
br label %127
75: ; preds = %41
%76 = load i32, ptr %7, align 4
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %100
78: ; preds = %75
%79 = load ptr, ptr %3, align 8
%80 = load i32, ptr %15, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 40
br i1 %85, label %86, label %99
86: ; preds = %78
%87 = load ptr, ptr %3, align 8
%88 = load i32, ptr %15, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
%91 = load i8, ptr %90, align 1
%92 = load i32, ptr %9, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %93
%95 = load i32, ptr %10, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %10, align 4
%97 = sext i32 %95 to i64
%98 = getelementptr inbounds [80 x i8], ptr %94, i64 0, i64 %97
store i8 %91, ptr %98, align 1
br label %99
99: ; preds = %86, %78
br label %126
100: ; preds = %75
%101 = load ptr, ptr %3, align 8
%102 = load i32, ptr %15, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 41
br i1 %107, label %108, label %125
108: ; preds = %100
%109 = load ptr, ptr %3, align 8
%110 = load i32, ptr %15, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, ptr %109, i64 %111
%113 = load i8, ptr %112, align 1
%114 = load i32, ptr %9, align 4
%115 = sub nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [10 x [10 x [10 x i8]]], ptr %11, i64 0, i64 %116
%118 = load i32, ptr %12, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [10 x [10 x i8]], ptr %117, i64 0, i64 %119
%121 = load i32, ptr %13, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %13, align 4
%123 = sext i32 %121 to i64
%124 = getelementptr inbounds [10 x i8], ptr %120, i64 0, i64 %123
store i8 %113, ptr %124, align 1
br label %125
125: ; preds = %108, %100
br label %126
126: ; preds = %125, %99
br label %127
127: ; preds = %126, %74
br label %128
128: ; preds = %127
%129 = load i32, ptr %15, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %15, align 4
br label %21, !llvm.loop !6
131: ; preds = %21
%132 = load i32, ptr %9, align 4
%133 = sub nsw i32 %132, 1
store i32 %133, ptr %16, align 4
br label %134
134: ; preds = %242, %131
%135 = load i32, ptr %16, align 4
%136 = icmp sgt i32 %135, -1
br i1 %136, label %137, label %245
137: ; preds = %134
%138 = load i32, ptr %16, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %139
%141 = getelementptr inbounds [80 x i8], ptr %140, i64 0, i64 0
%142 = call i32 @strlen(ptr noundef %141)
%143 = icmp eq i32 %142, 1
br i1 %143, label %144, label %217
144: ; preds = %137
%145 = load i32, ptr %16, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %146
%148 = getelementptr inbounds [80 x i8], ptr %147, i64 0, i64 0
%149 = load i8, ptr %148, align 16
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 43
br i1 %151, label %176, label %152
152: ; preds = %144
%153 = load i32, ptr %16, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %154
%156 = getelementptr inbounds [80 x i8], ptr %155, i64 0, i64 0
%157 = load i8, ptr %156, align 16
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 45
br i1 %159, label %176, label %160
160: ; preds = %152
%161 = load i32, ptr %16, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %162
%164 = getelementptr inbounds [80 x i8], ptr %163, i64 0, i64 0
%165 = load i8, ptr %164, align 16
%166 = sext i8 %165 to i32
%167 = icmp eq i32 %166, 42
br i1 %167, label %176, label %168
168: ; preds = %160
%169 = load i32, ptr %16, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %170
%172 = getelementptr inbounds [80 x i8], ptr %171, i64 0, i64 0
%173 = load i8, ptr %172, align 16
%174 = sext i8 %173 to i32
%175 = icmp eq i32 %174, 47
br i1 %175, label %176, label %217
176: ; preds = %168, %160, %152, %144
%177 = load i32, ptr %9, align 4
%178 = sub nsw i32 %177, 1
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [10 x [10 x [10 x i8]]], ptr %11, i64 0, i64 %179
%181 = getelementptr inbounds [10 x [10 x i8]], ptr %180, i64 0, i64 0
%182 = getelementptr inbounds [10 x i8], ptr %181, i64 0, i64 0
%183 = call i32 @strtol(ptr noundef %182, ptr noundef null, i32 noundef 10)
store i32 %183, ptr %18, align 4
store i32 1, ptr %19, align 4
br label %184
184: ; preds = %210, %176
%185 = load i32, ptr %19, align 4
%186 = load i32, ptr %9, align 4
%187 = sub nsw i32 %186, 1
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %188
%190 = load i32, ptr %189, align 4
%191 = icmp sle i32 %185, %190
br i1 %191, label %192, label %213
192: ; preds = %184
%193 = load i32, ptr %9, align 4
%194 = sub nsw i32 %193, 1
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds [10 x [10 x [10 x i8]]], ptr %11, i64 0, i64 %195
%197 = load i32, ptr %19, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds [10 x [10 x i8]], ptr %196, i64 0, i64 %198
%200 = getelementptr inbounds [10 x i8], ptr %199, i64 0, i64 0
%201 = call i32 @strtol(ptr noundef %200, ptr noundef null, i32 noundef 10)
store i32 %201, ptr %17, align 4
%202 = load i32, ptr %16, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %203
%205 = getelementptr inbounds [80 x i8], ptr %204, i64 0, i64 0
%206 = load i8, ptr %205, align 16
%207 = load i32, ptr %18, align 4
%208 = load i32, ptr %17, align 4
%209 = call i32 @fn_basic_math(i8 noundef signext %206, i32 noundef %207, i32 noundef %208)
store i32 %209, ptr %18, align 4
br label %210
210: ; preds = %192
%211 = load i32, ptr %19, align 4
%212 = add nsw i32 %211, 1
store i32 %212, ptr %19, align 4
br label %184, !llvm.loop !8
213: ; preds = %184
%214 = load ptr, ptr %3, align 8
%215 = load i32, ptr %18, align 4
%216 = call i32 @sprintf(ptr noundef %214, ptr noundef @.str, i32 noundef %215)
br label %241
217: ; preds = %168, %137
%218 = load i32, ptr %16, align 4
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %219
%221 = getelementptr inbounds [80 x i8], ptr %220, i64 0, i64 0
%222 = call i64 @strcmp(ptr noundef @.str.1, ptr noundef %221)
%223 = icmp eq i64 %222, 0
br i1 %223, label %224, label %238
224: ; preds = %217
store i32 0, ptr %20, align 4
br label %225
225: ; preds = %234, %224
%226 = load i32, ptr %20, align 4
%227 = load i32, ptr %9, align 4
%228 = sub nsw i32 %227, 1
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %229
%231 = load i32, ptr %230, align 4
%232 = icmp sle i32 %226, %231
br i1 %232, label %233, label %237
233: ; preds = %225
br label %234
234: ; preds = %233
%235 = load i32, ptr %20, align 4
%236 = add nsw i32 %235, 1
store i32 %236, ptr %20, align 4
br label %225, !llvm.loop !9
237: ; preds = %225
br label %240
238: ; preds = %217
%239 = call i32 @fn_error(ptr noundef @.str.2)
br label %240
240: ; preds = %238, %237
br label %241
241: ; preds = %240, %213
br label %242
242: ; preds = %241
%243 = load i32, ptr %16, align 4
%244 = add nsw i32 %243, -1
store i32 %244, ptr %16, align 4
br label %134, !llvm.loop !10
245: ; preds = %134
%246 = load i32, ptr %4, align 4
%247 = load i32, ptr %5, align 4
%248 = icmp ne i32 %246, %247
br i1 %248, label %249, label %251
249: ; preds = %245
%250 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %252
251: ; preds = %245
store i32 0, ptr %2, align 4
br label %252
252: ; preds = %251, %249
%253 = load i32, ptr %2, align 4
ret i32 %253
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fn_basic_math(i8 noundef signext, i32 noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fn_error(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2xhc6dk_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"print\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Unknown function!\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Imbalanced parenthesis! Croaaak...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_buffer(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [10 x [80 x i8]], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [10 x [10 x [10 x i8]]], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [10 x i32], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %15, align 4
%21 = load i32, ptr %15, align 4
%22 = load ptr, ptr %3, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = icmp slt i32 %21, %23
br i1 %24, label %.lr.ph, label %134
.lr.ph: ; preds = %1
br label %25
25: ; preds = %.lr.ph, %127
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %15, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
switch i32 %31, label %39 [
i32 40, label %32
i32 41, label %35
i32 32, label %38
]
32: ; preds = %25
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %4, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %40
35: ; preds = %25
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
store i32 1, ptr %6, align 4
br label %40
38: ; preds = %25
store i32 1, ptr %6, align 4
br label %40
39: ; preds = %25
store i32 0, ptr %6, align 4
br label %40
40: ; preds = %39, %38, %35, %32
%41 = load i32, ptr %6, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %74
43: ; preds = %40
%44 = load i32, ptr %7, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %55
46: ; preds = %43
store i32 0, ptr %7, align 4
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %48
%50 = load i32, ptr %10, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [80 x i8], ptr %49, i64 0, i64 %51
store i8 0, ptr %52, align 1
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %73
55: ; preds = %43
%56 = load i32, ptr %9, align 4
%57 = sub nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [10 x [10 x [10 x i8]]], ptr %11, i64 0, i64 %58
%60 = load i32, ptr %12, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x [10 x i8]], ptr %59, i64 0, i64 %61
%63 = load i32, ptr %13, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [10 x i8], ptr %62, i64 0, i64 %64
store i8 0, ptr %65, align 1
%66 = load i32, ptr %12, align 4
%67 = load i32, ptr %9, align 4
%68 = sub nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %69
store i32 %66, ptr %70, align 4
%71 = load i32, ptr %12, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %73
73: ; preds = %55, %46
br label %126
74: ; preds = %40
%75 = load i32, ptr %7, align 4
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %99
77: ; preds = %74
%78 = load ptr, ptr %3, align 8
%79 = load i32, ptr %15, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp ne i32 %83, 40
br i1 %84, label %85, label %98
85: ; preds = %77
%86 = load ptr, ptr %3, align 8
%87 = load i32, ptr %15, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %86, i64 %88
%90 = load i8, ptr %89, align 1
%91 = load i32, ptr %9, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %92
%94 = load i32, ptr %10, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %10, align 4
%96 = sext i32 %94 to i64
%97 = getelementptr inbounds [80 x i8], ptr %93, i64 0, i64 %96
store i8 %90, ptr %97, align 1
br label %98
98: ; preds = %85, %77
br label %125
99: ; preds = %74
%100 = load ptr, ptr %3, align 8
%101 = load i32, ptr %15, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 41
br i1 %106, label %107, label %124
107: ; preds = %99
%108 = load ptr, ptr %3, align 8
%109 = load i32, ptr %15, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %108, i64 %110
%112 = load i8, ptr %111, align 1
%113 = load i32, ptr %9, align 4
%114 = sub nsw i32 %113, 1
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [10 x [10 x [10 x i8]]], ptr %11, i64 0, i64 %115
%117 = load i32, ptr %12, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [10 x [10 x i8]], ptr %116, i64 0, i64 %118
%120 = load i32, ptr %13, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %13, align 4
%122 = sext i32 %120 to i64
%123 = getelementptr inbounds [10 x i8], ptr %119, i64 0, i64 %122
store i8 %112, ptr %123, align 1
br label %124
124: ; preds = %107, %99
br label %125
125: ; preds = %124, %98
br label %126
126: ; preds = %125, %73
br label %127
127: ; preds = %126
%128 = load i32, ptr %15, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %15, align 4
%130 = load i32, ptr %15, align 4
%131 = load ptr, ptr %3, align 8
%132 = call i32 @strlen(ptr noundef %131)
%133 = icmp slt i32 %130, %132
br i1 %133, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %127
br label %134
134: ; preds = %._crit_edge, %1
%135 = load i32, ptr %9, align 4
%136 = sub nsw i32 %135, 1
store i32 %136, ptr %16, align 4
%137 = load i32, ptr %16, align 4
%138 = icmp sgt i32 %137, -1
br i1 %138, label %.lr.ph8, label %261
.lr.ph8: ; preds = %134
br label %139
139: ; preds = %.lr.ph8, %256
%140 = load i32, ptr %16, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %141
%143 = getelementptr inbounds [80 x i8], ptr %142, i64 0, i64 0
%144 = call i32 @strlen(ptr noundef %143)
%145 = icmp eq i32 %144, 1
br i1 %145, label %146, label %225
146: ; preds = %139
%147 = load i32, ptr %16, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %148
%150 = getelementptr inbounds [80 x i8], ptr %149, i64 0, i64 0
%151 = load i8, ptr %150, align 16
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 43
br i1 %153, label %178, label %154
154: ; preds = %146
%155 = load i32, ptr %16, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %156
%158 = getelementptr inbounds [80 x i8], ptr %157, i64 0, i64 0
%159 = load i8, ptr %158, align 16
%160 = sext i8 %159 to i32
%161 = icmp eq i32 %160, 45
br i1 %161, label %178, label %162
162: ; preds = %154
%163 = load i32, ptr %16, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %164
%166 = getelementptr inbounds [80 x i8], ptr %165, i64 0, i64 0
%167 = load i8, ptr %166, align 16
%168 = sext i8 %167 to i32
%169 = icmp eq i32 %168, 42
br i1 %169, label %178, label %170
170: ; preds = %162
%171 = load i32, ptr %16, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %172
%174 = getelementptr inbounds [80 x i8], ptr %173, i64 0, i64 0
%175 = load i8, ptr %174, align 16
%176 = sext i8 %175 to i32
%177 = icmp eq i32 %176, 47
br i1 %177, label %178, label %225
178: ; preds = %170, %162, %154, %146
%179 = load i32, ptr %9, align 4
%180 = sub nsw i32 %179, 1
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [10 x [10 x [10 x i8]]], ptr %11, i64 0, i64 %181
%183 = getelementptr inbounds [10 x [10 x i8]], ptr %182, i64 0, i64 0
%184 = getelementptr inbounds [10 x i8], ptr %183, i64 0, i64 0
%185 = call i32 @strtol(ptr noundef %184, ptr noundef null, i32 noundef 10)
store i32 %185, ptr %18, align 4
store i32 1, ptr %19, align 4
%186 = load i32, ptr %19, align 4
%187 = load i32, ptr %9, align 4
%188 = sub nsw i32 %187, 1
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %189
%191 = load i32, ptr %190, align 4
%192 = icmp sle i32 %186, %191
br i1 %192, label %.lr.ph5, label %221
.lr.ph5: ; preds = %178
br label %193
193: ; preds = %.lr.ph5, %211
%194 = load i32, ptr %9, align 4
%195 = sub nsw i32 %194, 1
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds [10 x [10 x [10 x i8]]], ptr %11, i64 0, i64 %196
%198 = load i32, ptr %19, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds [10 x [10 x i8]], ptr %197, i64 0, i64 %199
%201 = getelementptr inbounds [10 x i8], ptr %200, i64 0, i64 0
%202 = call i32 @strtol(ptr noundef %201, ptr noundef null, i32 noundef 10)
store i32 %202, ptr %17, align 4
%203 = load i32, ptr %16, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %204
%206 = getelementptr inbounds [80 x i8], ptr %205, i64 0, i64 0
%207 = load i8, ptr %206, align 16
%208 = load i32, ptr %18, align 4
%209 = load i32, ptr %17, align 4
%210 = call i32 @fn_basic_math(i8 noundef signext %207, i32 noundef %208, i32 noundef %209)
store i32 %210, ptr %18, align 4
br label %211
211: ; preds = %193
%212 = load i32, ptr %19, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %19, align 4
%214 = load i32, ptr %19, align 4
%215 = load i32, ptr %9, align 4
%216 = sub nsw i32 %215, 1
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %217
%219 = load i32, ptr %218, align 4
%220 = icmp sle i32 %214, %219
br i1 %220, label %193, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %211
br label %221
221: ; preds = %._crit_edge6, %178
%222 = load ptr, ptr %3, align 8
%223 = load i32, ptr %18, align 4
%224 = call i32 @sprintf(ptr noundef %222, ptr noundef @.str, i32 noundef %223)
br label %255
225: ; preds = %170, %139
%226 = load i32, ptr %16, align 4
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds [10 x [80 x i8]], ptr %8, i64 0, i64 %227
%229 = getelementptr inbounds [80 x i8], ptr %228, i64 0, i64 0
%230 = call i64 @strcmp(ptr noundef @.str.1, ptr noundef %229)
%231 = icmp eq i64 %230, 0
br i1 %231, label %232, label %252
232: ; preds = %225
store i32 0, ptr %20, align 4
%233 = load i32, ptr %20, align 4
%234 = load i32, ptr %9, align 4
%235 = sub nsw i32 %234, 1
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %236
%238 = load i32, ptr %237, align 4
%239 = icmp sle i32 %233, %238
br i1 %239, label %.lr.ph2, label %251
.lr.ph2: ; preds = %232
br label %240
240: ; preds = %.lr.ph2, %241
br label %241
241: ; preds = %240
%242 = load i32, ptr %20, align 4
%243 = add nsw i32 %242, 1
store i32 %243, ptr %20, align 4
%244 = load i32, ptr %20, align 4
%245 = load i32, ptr %9, align 4
%246 = sub nsw i32 %245, 1
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %247
%249 = load i32, ptr %248, align 4
%250 = icmp sle i32 %244, %249
br i1 %250, label %240, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %241
br label %251
251: ; preds = %._crit_edge3, %232
br label %254
252: ; preds = %225
%253 = call i32 @fn_error(ptr noundef @.str.2)
br label %254
254: ; preds = %252, %251
br label %255
255: ; preds = %254, %221
br label %256
256: ; preds = %255
%257 = load i32, ptr %16, align 4
%258 = add nsw i32 %257, -1
store i32 %258, ptr %16, align 4
%259 = load i32, ptr %16, align 4
%260 = icmp sgt i32 %259, -1
br i1 %260, label %139, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %256
br label %261
261: ; preds = %._crit_edge9, %134
%262 = load i32, ptr %4, align 4
%263 = load i32, ptr %5, align 4
%264 = icmp ne i32 %262, %263
br i1 %264, label %265, label %267
265: ; preds = %261
%266 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %268
267: ; preds = %261
store i32 0, ptr %2, align 4
br label %268
268: ; preds = %267, %265
%269 = load i32, ptr %2, align 4
ret i32 %269
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fn_basic_math(i8 noundef signext, i32 noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fn_error(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp2s427e5b.c'
source_filename = "/tmp/tmp2s427e5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_node_cpu(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%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
%10 = alloca i32, align 4
%11 = 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
%12 = call ptr (...) @numa_allocate_cpumask()
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @numa_bitmask_nbytes(ptr noundef %13)
%15 = mul nsw i32 %14, 8
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %8, align 8
%18 = call i32 @numa_node_to_cpus(i32 noundef %16, ptr noundef %17)
store i32 %18, ptr %10, align 4
%19 = load i32, ptr %10, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = load i32, ptr %10, align 4
store i32 %22, ptr %4, align 4
br label %50
23: ; preds = %3
store i32 0, ptr %11, align 4
br label %24
24: ; preds = %44, %23
%25 = load i32, ptr %11, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %47
28: ; preds = %24
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %11, align 4
%31 = call i64 @numa_bitmask_isbitset(ptr noundef %29, i32 noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %43
33: ; preds = %28
%34 = load i32, ptr %7, align 4
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load i32, ptr %11, align 4
%38 = load ptr, ptr %5, align 8
%39 = call i32 @CPU_SET(i32 noundef %37, ptr noundef %38)
br label %40
40: ; preds = %36, %33
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, -1
store i32 %42, ptr %7, align 4
br label %43
43: ; preds = %40, %28
br label %44
44: ; preds = %43
%45 = load i32, ptr %11, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %11, align 4
br label %24, !llvm.loop !6
47: ; preds = %24
%48 = load ptr, ptr %8, align 8
%49 = call i32 @numa_free_cpumask(ptr noundef %48)
br label %50
50: ; preds = %47, %21
%51 = load i32, ptr %4, align 4
ret i32 %51
}
declare ptr @numa_allocate_cpumask(...) #1
declare i32 @numa_bitmask_nbytes(ptr noundef) #1
declare i32 @numa_node_to_cpus(i32 noundef, ptr noundef) #1
declare i64 @numa_bitmask_isbitset(ptr noundef, i32 noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @numa_free_cpumask(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2s427e5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_node_cpu(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%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
%10 = alloca i32, align 4
%11 = 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
%12 = call ptr (...) @numa_allocate_cpumask()
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @numa_bitmask_nbytes(ptr noundef %13)
%15 = mul nsw i32 %14, 8
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %8, align 8
%18 = call i32 @numa_node_to_cpus(i32 noundef %16, ptr noundef %17)
store i32 %18, ptr %10, align 4
%19 = load i32, ptr %10, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = load i32, ptr %10, align 4
store i32 %22, ptr %4, align 4
br label %52
23: ; preds = %3
store i32 0, ptr %11, align 4
%24 = load i32, ptr %11, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %49
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %43
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %11, align 4
%30 = call i64 @numa_bitmask_isbitset(ptr noundef %28, i32 noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %42
32: ; preds = %27
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %32
%36 = load i32, ptr %11, align 4
%37 = load ptr, ptr %5, align 8
%38 = call i32 @CPU_SET(i32 noundef %36, ptr noundef %37)
br label %39
39: ; preds = %35, %32
%40 = load i32, ptr %7, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %7, align 4
br label %42
42: ; preds = %39, %27
br label %43
43: ; preds = %42
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %11, align 4
%46 = load i32, ptr %11, align 4
%47 = load i32, ptr %9, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %23
%50 = load ptr, ptr %8, align 8
%51 = call i32 @numa_free_cpumask(ptr noundef %50)
br label %52
52: ; preds = %49, %21
%53 = load i32, ptr %4, align 4
ret i32 %53
}
declare ptr @numa_allocate_cpumask(...) #1
declare i32 @numa_bitmask_nbytes(ptr noundef) #1
declare i32 @numa_node_to_cpus(i32 noundef, ptr noundef) #1
declare i64 @numa_bitmask_isbitset(ptr noundef, i32 noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @numa_free_cpumask(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp06gsv6nq.c'
source_filename = "/tmp/tmp06gsv6nq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call i32 (...) @rand()
store i32 %9, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %2
%13 = call i32 (...) @rand()
store i32 %13, ptr %7, align 4
store i32 42, ptr %6, align 4
br label %17
14: ; preds = %2
%15 = call i32 (...) @rand()
%16 = call i32 (...) @rand()
store i32 %16, ptr %7, align 4
store i32 7, ptr %6, align 4
br label %17
17: ; preds = %14, %12
%18 = load i32, ptr %6, align 4
ret i32 %18
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp06gsv6nq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call i32 (...) @rand()
store i32 %9, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %2
%13 = call i32 (...) @rand()
store i32 %13, ptr %7, align 4
store i32 42, ptr %6, align 4
br label %17
14: ; preds = %2
%15 = call i32 (...) @rand()
%16 = call i32 (...) @rand()
store i32 %16, ptr %7, align 4
store i32 7, ptr %6, align 4
br label %17
17: ; preds = %14, %12
%18 = load i32, ptr %6, align 4
ret i32 %18
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxnapp7_f.c'
source_filename = "/tmp/tmpxnapp7_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"dlib-xstrdup\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call ptr @strdup(ptr noundef %7)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %6
%12 = call i32 @perror(ptr noundef @.str)
%13 = call i32 (...) @abort() #3
unreachable
14: ; preds = %6
br label %15
15: ; preds = %14, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @strdup(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxnapp7_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"dlib-xstrdup\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call ptr @strdup(ptr noundef %7)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %6
%12 = call i32 @perror(ptr noundef @.str)
%13 = call i32 (...) @abort() #3
unreachable
14: ; preds = %6
br label %15
15: ; preds = %14, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @strdup(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6fbi2j96.c'
source_filename = "/tmp/tmp6fbi2j96.c"
target datalayout = "e-m:e-p270: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/tmp6fbi2j96.c"
target datalayout = "e-m:e-p270: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/tmp9vulzcqa.c'
source_filename = "/tmp/tmp9vulzcqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @rstdin_c() #0 {
%1 = alloca [5 x i8], align 1
%2 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @rstdin_s(ptr noundef %2, i32 noundef 5)
%4 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%5 = load i8, ptr %4, align 1
ret i8 %5
}
declare i32 @rstdin_s(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/tmp9vulzcqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @rstdin_c() #0 {
%1 = alloca [5 x i8], align 1
%2 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @rstdin_s(ptr noundef %2, i32 noundef 5)
%4 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%5 = load i8, ptr %4, align 1
ret i8 %5
}
declare i32 @rstdin_s(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/tmpgwiw6a2t.c'
source_filename = "/tmp/tmpgwiw6a2t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_mprotect = 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/tmpgwiw6a2t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_mprotect = 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/tmpj6cx08uo.c'
source_filename = "/tmp/tmpj6cx08uo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%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 ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 88
br i1 %18, label %19, label %50
19: ; preds = %1
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 1
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 91
br i1 %24, label %25, label %50
25: ; preds = %19
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 2
%28 = load i8, ptr %27, align 1
%29 = call i32 @varchar(i8 noundef signext %28)
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %50
31: ; preds = %25
%32 = load ptr, ptr %3, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 3
%34 = load i8, ptr %33, align 1
%35 = call i32 @varchar(i8 noundef signext %34)
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %50
37: ; preds = %31
%38 = load ptr, ptr %3, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 4
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 93
br i1 %42, label %43, label %50
43: ; preds = %37
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 5
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %43
store i32 1, ptr %2, align 4
br label %153
50: ; preds = %43, %37, %31, %25, %19, %1
%51 = load ptr, ptr %3, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 0
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 45
br i1 %55, label %56, label %68
56: ; preds = %50
%57 = load ptr, ptr %3, align 8
%58 = load ptr, ptr %3, align 8
%59 = call i32 @strlen(ptr noundef %58)
%60 = add nsw i32 %59, 1
%61 = call ptr @segment(ptr noundef %57, i32 noundef 2, i32 noundef %60)
store ptr %61, ptr %4, align 8
%62 = load ptr, ptr %4, align 8
%63 = call i32 @parse(ptr noundef %62)
store i32 %63, ptr %5, align 4
%64 = load i32, ptr %5, align 4
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %56
store i32 2, ptr %2, align 4
br label %153
67: ; preds = %56
br label %68
68: ; preds = %67, %50
%69 = load ptr, ptr %3, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 0
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 40
br i1 %73, label %74, label %105
74: ; preds = %68
%75 = load ptr, ptr %3, align 8
%76 = load ptr, ptr %3, align 8
%77 = call i32 @strlen(ptr noundef %76)
%78 = sub nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %75, i64 %79
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 41
br i1 %83, label %84, label %105
84: ; preds = %74
%85 = load ptr, ptr %3, align 8
%86 = call i32 @bin(ptr noundef %85)
%87 = icmp ne i32 %86, 48
br i1 %87, label %88, label %104
88: ; preds = %84
%89 = load ptr, ptr %3, align 8
%90 = call ptr @partone(ptr noundef %89)
store ptr %90, ptr %6, align 8
%91 = load ptr, ptr %3, align 8
%92 = call ptr @parttwo(ptr noundef %91)
store ptr %92, ptr %7, align 8
%93 = load ptr, ptr %6, align 8
%94 = call i32 @parse(ptr noundef %93)
store i32 %94, ptr %8, align 4
%95 = load ptr, ptr %7, align 8
%96 = call i32 @parse(ptr noundef %95)
store i32 %96, ptr %9, align 4
%97 = load i32, ptr %8, align 4
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %103
99: ; preds = %88
%100 = load i32, ptr %9, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %99
store i32 3, ptr %2, align 4
br label %153
103: ; preds = %99, %88
br label %104
104: ; preds = %103, %84
br label %105
105: ; preds = %104, %74, %68
%106 = load ptr, ptr %3, align 8
%107 = getelementptr inbounds i8, ptr %106, i64 0
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = icmp eq i32 %109, 69
br i1 %110, label %111, label %129
111: ; preds = %105
%112 = load ptr, ptr %3, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 1
%114 = load i8, ptr %113, align 1
%115 = call i32 @varchar(i8 noundef signext %114)
%116 = icmp eq i32 %115, 1
br i1 %116, label %117, label %129
117: ; preds = %111
%118 = load ptr, ptr %3, align 8
%119 = load ptr, ptr %3, align 8
%120 = call i32 @strlen(ptr noundef %119)
%121 = add nsw i32 %120, 1
%122 = call ptr @segment(ptr noundef %118, i32 noundef 3, i32 noundef %121)
store ptr %122, ptr %10, align 8
%123 = load ptr, ptr %10, align 8
%124 = call i32 @parse(ptr noundef %123)
store i32 %124, ptr %11, align 4
%125 = load i32, ptr %11, align 4
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %128
127: ; preds = %117
store i32 4, ptr %2, align 4
br label %153
128: ; preds = %117
br label %129
129: ; preds = %128, %111, %105
%130 = load ptr, ptr %3, align 8
%131 = load i8, ptr %130, align 1
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 65
br i1 %133, label %134, label %152
134: ; preds = %129
%135 = load ptr, ptr %3, align 8
%136 = getelementptr inbounds i8, ptr %135, i64 1
%137 = load i8, ptr %136, align 1
%138 = call i32 @varchar(i8 noundef signext %137)
%139 = icmp eq i32 %138, 1
br i1 %139, label %140, label %152
140: ; preds = %134
%141 = load ptr, ptr %3, align 8
%142 = load ptr, ptr %3, align 8
%143 = call i32 @strlen(ptr noundef %142)
%144 = add nsw i32 %143, 1
%145 = call ptr @segment(ptr noundef %141, i32 noundef 3, i32 noundef %144)
store ptr %145, ptr %12, align 8
%146 = load ptr, ptr %12, align 8
%147 = call i32 @parse(ptr noundef %146)
store i32 %147, ptr %13, align 4
%148 = load i32, ptr %13, align 4
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %151
150: ; preds = %140
store i32 5, ptr %2, align 4
br label %153
151: ; preds = %140
br label %152
152: ; preds = %151, %134, %129
store i32 0, ptr %2, align 4
br label %153
153: ; preds = %152, %150, %127, %102, %66, %49
%154 = load i32, ptr %2, align 4
ret i32 %154
}
declare i32 @varchar(i8 noundef signext) #1
declare ptr @segment(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @bin(ptr noundef) #1
declare ptr @partone(ptr noundef) #1
declare ptr @parttwo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj6cx08uo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%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 ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 88
br i1 %18, label %19, label %50
19: ; preds = %1
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 1
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 91
br i1 %24, label %25, label %50
25: ; preds = %19
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 2
%28 = load i8, ptr %27, align 1
%29 = call i32 @varchar(i8 noundef signext %28)
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %50
31: ; preds = %25
%32 = load ptr, ptr %3, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 3
%34 = load i8, ptr %33, align 1
%35 = call i32 @varchar(i8 noundef signext %34)
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %50
37: ; preds = %31
%38 = load ptr, ptr %3, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 4
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 93
br i1 %42, label %43, label %50
43: ; preds = %37
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 5
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %43
store i32 1, ptr %2, align 4
br label %153
50: ; preds = %43, %37, %31, %25, %19, %1
%51 = load ptr, ptr %3, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 0
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 45
br i1 %55, label %56, label %68
56: ; preds = %50
%57 = load ptr, ptr %3, align 8
%58 = load ptr, ptr %3, align 8
%59 = call i32 @strlen(ptr noundef %58)
%60 = add nsw i32 %59, 1
%61 = call ptr @segment(ptr noundef %57, i32 noundef 2, i32 noundef %60)
store ptr %61, ptr %4, align 8
%62 = load ptr, ptr %4, align 8
%63 = call i32 @parse(ptr noundef %62)
store i32 %63, ptr %5, align 4
%64 = load i32, ptr %5, align 4
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %56
store i32 2, ptr %2, align 4
br label %153
67: ; preds = %56
br label %68
68: ; preds = %67, %50
%69 = load ptr, ptr %3, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 0
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 40
br i1 %73, label %74, label %105
74: ; preds = %68
%75 = load ptr, ptr %3, align 8
%76 = load ptr, ptr %3, align 8
%77 = call i32 @strlen(ptr noundef %76)
%78 = sub nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %75, i64 %79
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 41
br i1 %83, label %84, label %105
84: ; preds = %74
%85 = load ptr, ptr %3, align 8
%86 = call i32 @bin(ptr noundef %85)
%87 = icmp ne i32 %86, 48
br i1 %87, label %88, label %104
88: ; preds = %84
%89 = load ptr, ptr %3, align 8
%90 = call ptr @partone(ptr noundef %89)
store ptr %90, ptr %6, align 8
%91 = load ptr, ptr %3, align 8
%92 = call ptr @parttwo(ptr noundef %91)
store ptr %92, ptr %7, align 8
%93 = load ptr, ptr %6, align 8
%94 = call i32 @parse(ptr noundef %93)
store i32 %94, ptr %8, align 4
%95 = load ptr, ptr %7, align 8
%96 = call i32 @parse(ptr noundef %95)
store i32 %96, ptr %9, align 4
%97 = load i32, ptr %8, align 4
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %103
99: ; preds = %88
%100 = load i32, ptr %9, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %99
store i32 3, ptr %2, align 4
br label %153
103: ; preds = %99, %88
br label %104
104: ; preds = %103, %84
br label %105
105: ; preds = %104, %74, %68
%106 = load ptr, ptr %3, align 8
%107 = getelementptr inbounds i8, ptr %106, i64 0
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = icmp eq i32 %109, 69
br i1 %110, label %111, label %129
111: ; preds = %105
%112 = load ptr, ptr %3, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 1
%114 = load i8, ptr %113, align 1
%115 = call i32 @varchar(i8 noundef signext %114)
%116 = icmp eq i32 %115, 1
br i1 %116, label %117, label %129
117: ; preds = %111
%118 = load ptr, ptr %3, align 8
%119 = load ptr, ptr %3, align 8
%120 = call i32 @strlen(ptr noundef %119)
%121 = add nsw i32 %120, 1
%122 = call ptr @segment(ptr noundef %118, i32 noundef 3, i32 noundef %121)
store ptr %122, ptr %10, align 8
%123 = load ptr, ptr %10, align 8
%124 = call i32 @parse(ptr noundef %123)
store i32 %124, ptr %11, align 4
%125 = load i32, ptr %11, align 4
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %128
127: ; preds = %117
store i32 4, ptr %2, align 4
br label %153
128: ; preds = %117
br label %129
129: ; preds = %128, %111, %105
%130 = load ptr, ptr %3, align 8
%131 = load i8, ptr %130, align 1
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 65
br i1 %133, label %134, label %152
134: ; preds = %129
%135 = load ptr, ptr %3, align 8
%136 = getelementptr inbounds i8, ptr %135, i64 1
%137 = load i8, ptr %136, align 1
%138 = call i32 @varchar(i8 noundef signext %137)
%139 = icmp eq i32 %138, 1
br i1 %139, label %140, label %152
140: ; preds = %134
%141 = load ptr, ptr %3, align 8
%142 = load ptr, ptr %3, align 8
%143 = call i32 @strlen(ptr noundef %142)
%144 = add nsw i32 %143, 1
%145 = call ptr @segment(ptr noundef %141, i32 noundef 3, i32 noundef %144)
store ptr %145, ptr %12, align 8
%146 = load ptr, ptr %12, align 8
%147 = call i32 @parse(ptr noundef %146)
store i32 %147, ptr %13, align 4
%148 = load i32, ptr %13, align 4
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %151
150: ; preds = %140
store i32 5, ptr %2, align 4
br label %153
151: ; preds = %140
br label %152
152: ; preds = %151, %134, %129
store i32 0, ptr %2, align 4
br label %153
153: ; preds = %152, %150, %127, %102, %66, %49
%154 = load i32, ptr %2, align 4
ret i32 %154
}
declare i32 @varchar(i8 noundef signext) #1
declare ptr @segment(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @bin(ptr noundef) #1
declare ptr @partone(ptr noundef) #1
declare ptr @parttwo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph3h81b4y.c'
source_filename = "/tmp/tmph3h81b4y.c"
target datalayout = "e-m:e-p270: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/tmph3h81b4y.c"
target datalayout = "e-m:e-p270: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/tmp0x4b4n0j.c'
source_filename = "/tmp/tmp0x4b4n0j.c"
target datalayout = "e-m:e-p270: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_TFLG_ADB_MASK = dso_local global i32 0, align 4
@ASN1_TFLG_SK_MASK = 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/tmp0x4b4n0j.c"
target datalayout = "e-m:e-p270: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_TFLG_ADB_MASK = dso_local global i32 0, align 4
@ASN1_TFLG_SK_MASK = 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/tmpbw2eo2bv.c'
source_filename = "/tmp/tmpbw2eo2bv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"NOT IMPLEMENTED:pa_tagstruct_put\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_tagstruct_put() #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/tmpbw2eo2bv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"NOT IMPLEMENTED:pa_tagstruct_put\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_tagstruct_put() #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/tmpvphespv3.c'
source_filename = "/tmp/tmpvphespv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @task1() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @userinput1()
store i32 %3, ptr %1, align 4
%4 = call i32 (...) @userinput2()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %1, align 4
%6 = call i32 @count_up(i32 noundef %5)
%7 = load i32, ptr %1, align 4
%8 = call i32 @count_down(i32 noundef %7)
%9 = load i32, ptr %1, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = load i32, ptr %1, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @count_between_up(i32 noundef %13, i32 noundef %14)
br label %25
16: ; preds = %0
%17 = load i32, ptr %1, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sgt i32 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, ptr %1, align 4
%22 = load i32, ptr %2, align 4
%23 = call i32 @count_between_down(i32 noundef %21, i32 noundef %22)
br label %24
24: ; preds = %20, %16
br label %25
25: ; preds = %24, %12
ret void
}
declare i32 @userinput1(...) #1
declare i32 @userinput2(...) #1
declare i32 @count_up(i32 noundef) #1
declare i32 @count_down(i32 noundef) #1
declare i32 @count_between_up(i32 noundef, i32 noundef) #1
declare i32 @count_between_down(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/tmpvphespv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @task1() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @userinput1()
store i32 %3, ptr %1, align 4
%4 = call i32 (...) @userinput2()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %1, align 4
%6 = call i32 @count_up(i32 noundef %5)
%7 = load i32, ptr %1, align 4
%8 = call i32 @count_down(i32 noundef %7)
%9 = load i32, ptr %1, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = load i32, ptr %1, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @count_between_up(i32 noundef %13, i32 noundef %14)
br label %25
16: ; preds = %0
%17 = load i32, ptr %1, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sgt i32 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, ptr %1, align 4
%22 = load i32, ptr %2, align 4
%23 = call i32 @count_between_down(i32 noundef %21, i32 noundef %22)
br label %24
24: ; preds = %20, %16
br label %25
25: ; preds = %24, %12
ret void
}
declare i32 @userinput1(...) #1
declare i32 @userinput2(...) #1
declare i32 @count_up(i32 noundef) #1
declare i32 @count_down(i32 noundef) #1
declare i32 @count_between_up(i32 noundef, i32 noundef) #1
declare i32 @count_between_down(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/tmpua0621pg.c'
source_filename = "/tmp/tmpua0621pg.c"
target datalayout = "e-m:e-p270: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/tmpua0621pg.c"
target datalayout = "e-m:e-p270: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/tmpds1vad9o.c'
source_filename = "/tmp/tmpds1vad9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getext_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store ptr null, ptr %6, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %61
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
store i32 %13, ptr %4, align 4
br label %14
14: ; preds = %57, %10
%15 = load i32, ptr %4, align 4
%16 = icmp sge i32 %15, 0
br i1 %16, label %17, label %60
17: ; preds = %14
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, 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 = icmp eq i32 %23, 46
br i1 %24, label %25, label %47
25: ; preds = %17
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %4, align 4
%28 = sub nsw i32 %26, %27
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = mul i64 1, %30
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr %6, align 8
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = getelementptr inbounds i8, ptr %39, i64 1
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %4, align 4
%43 = sub nsw i32 %41, %42
%44 = add nsw i32 %43, 1
%45 = call i32 @strncpy(ptr noundef %35, ptr noundef %40, i32 noundef %44)
%46 = load ptr, ptr %6, align 8
store ptr %46, ptr %2, align 8
br label %61
47: ; preds = %17
%48 = load ptr, ptr %3, align 8
%49 = load i32, ptr %4, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %48, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 47
br i1 %54, label %55, label %56
55: ; preds = %47
store ptr null, ptr %2, align 8
br label %61
56: ; preds = %47
br label %57
57: ; preds = %56
%58 = load i32, ptr %4, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %4, align 4
br label %14, !llvm.loop !6
60: ; preds = %14
store ptr null, ptr %2, align 8
br label %61
61: ; preds = %60, %55, %25, %9
%62 = load ptr, ptr %2, align 8
ret ptr %62
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpds1vad9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getext_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store ptr null, ptr %6, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %62
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp sge i32 %14, 0
br i1 %15, label %.lr.ph, label %61
.lr.ph: ; preds = %10
br label %16
16: ; preds = %.lr.ph, %56
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 46
br i1 %23, label %24, label %46
24: ; preds = %16
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %4, align 4
%27 = sub nsw i32 %25, %26
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = mul i64 1, %29
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %6, align 8
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = getelementptr inbounds i8, ptr %38, i64 1
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %4, align 4
%42 = sub nsw i32 %40, %41
%43 = add nsw i32 %42, 1
%44 = call i32 @strncpy(ptr noundef %34, ptr noundef %39, i32 noundef %43)
%45 = load ptr, ptr %6, align 8
store ptr %45, ptr %2, align 8
br label %62
46: ; preds = %16
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %4, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 47
br i1 %53, label %54, label %55
54: ; preds = %46
store ptr null, ptr %2, align 8
br label %62
55: ; preds = %46
br label %56
56: ; preds = %55
%57 = load i32, ptr %4, align 4
%58 = add nsw i32 %57, -1
store i32 %58, ptr %4, align 4
%59 = load i32, ptr %4, align 4
%60 = icmp sge i32 %59, 0
br i1 %60, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %61
61: ; preds = %._crit_edge, %10
store ptr null, ptr %2, align 8
br label %62
62: ; preds = %61, %54, %24, %9
%63 = load ptr, ptr %2, align 8
ret ptr %63
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpaebwdi1l.c'
source_filename = "/tmp/tmpaebwdi1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Number of nodes : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter the source : \00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Enter the cost adjacency matrix : \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 [20 x [20 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%11 = load i32, ptr %4, align 4
%12 = sub nsw i32 %11, 1
store i32 %12, ptr %4, align 4
%13 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %35, %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 %38
18: ; preds = %14
store i32 0, ptr %6, align 4
br label %19
19: ; preds = %31, %18
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %34
23: ; preds = %19
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [20 x [20 x i32]], ptr %3, i64 0, i64 %25
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i32], ptr %26, i64 0, i64 %28
%30 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %29)
br label %31
31: ; preds = %23
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %19, !llvm.loop !6
34: ; preds = %19
br label %35
35: ; preds = %34
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
br label %14, !llvm.loop !8
38: ; preds = %14
%39 = getelementptr inbounds [20 x [20 x i32]], ptr %3, i64 0, i64 0
%40 = load i32, ptr %2, align 4
%41 = load i32, ptr %4, align 4
%42 = call i32 @dijkstra(ptr noundef %39, i32 noundef %40, i32 noundef %41)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @dijkstra(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaebwdi1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Number of nodes : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter the source : \00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Enter the cost adjacency matrix : \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 [20 x [20 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%11 = load i32, ptr %4, align 4
%12 = sub nsw i32 %11, 1
store i32 %12, ptr %4, align 4
%13 = call i32 @printf(ptr noundef @.str.3)
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.ph2, label %42
.lr.ph2: ; preds = %0
br label %17
17: ; preds = %.lr.ph2, %36
store i32 0, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %35
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %29
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [20 x [20 x i32]], ptr %3, i64 0, i64 %23
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [20 x i32], ptr %24, i64 0, i64 %26
%28 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %27)
br label %29
29: ; preds = %21
%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 %2, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %17
br label %36
36: ; preds = %35
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %2, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %42
42: ; preds = %._crit_edge3, %0
%43 = getelementptr inbounds [20 x [20 x i32]], ptr %3, i64 0, i64 0
%44 = load i32, ptr %2, align 4
%45 = load i32, ptr %4, align 4
%46 = call i32 @dijkstra(ptr noundef %43, i32 noundef %44, i32 noundef %45)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @dijkstra(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_xkfawxo.c'
source_filename = "/tmp/tmp_xkfawxo.c"
target datalayout = "e-m:e-p270: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_xkfawxo.c"
target datalayout = "e-m:e-p270: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/tmp8_t41ten.c'
source_filename = "/tmp/tmp8_t41ten.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\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 @printstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %20, %1
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %23
12: ; preds = %4
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %4, !llvm.loop !6
23: ; preds = %4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8_t41ten.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\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 @printstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %3, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %4, i64 %6
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %29
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %11
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %3, 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 ne i32 %27, 0
br i1 %28, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %29
29: ; preds = %._crit_edge, %1
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwqkq4lnl.c'
source_filename = "/tmp/tmpwqkq4lnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bst_malloc(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 = icmp ne ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i64, ptr %4, align 8
%9 = icmp ugt i64 %8, 0
br label %10
10: ; preds = %7, %2
%11 = phi i1 [ false, %2 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = load i64, ptr %4, align 8
%15 = call ptr @malloc(i64 noundef %14) #3
ret ptr %15
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwqkq4lnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bst_malloc(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 = icmp ne ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i64, ptr %4, align 8
%9 = icmp ugt i64 %8, 0
br label %10
10: ; preds = %7, %2
%11 = phi i1 [ false, %2 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = load i64, ptr %4, align 8
%15 = call ptr @malloc(i64 noundef %14) #3
ret ptr %15
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfd_6ocun.c'
source_filename = "/tmp/tmpfd_6ocun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strxfrm(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %7, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %31
13: ; preds = %3
%14 = load i64, ptr %7, align 8
%15 = load i64, ptr %6, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load i64, ptr %7, align 8
br label %22
19: ; preds = %13
%20 = load i64, ptr %6, align 8
%21 = sub i64 %20, 1
br label %22
22: ; preds = %19, %17
%23 = phi i64 [ %18, %17 ], [ %21, %19 ]
store i64 %23, ptr %8, align 8
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i64, ptr %8, align 8
%27 = call i32 @memcpy(ptr noundef %24, ptr noundef %25, i64 noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = load i64, ptr %8, align 8
%30 = getelementptr inbounds i8, ptr %28, i64 %29
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %22, %3
%32 = load i64, ptr %7, align 8
ret i64 %32
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfd_6ocun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strxfrm(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %7, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %31
13: ; preds = %3
%14 = load i64, ptr %7, align 8
%15 = load i64, ptr %6, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load i64, ptr %7, align 8
br label %22
19: ; preds = %13
%20 = load i64, ptr %6, align 8
%21 = sub i64 %20, 1
br label %22
22: ; preds = %19, %17
%23 = phi i64 [ %18, %17 ], [ %21, %19 ]
store i64 %23, ptr %8, align 8
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i64, ptr %8, align 8
%27 = call i32 @memcpy(ptr noundef %24, ptr noundef %25, i64 noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = load i64, ptr %8, align 8
%30 = getelementptr inbounds i8, ptr %28, i64 %29
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %22, %3
%32 = load i64, ptr %7, align 8
ret i64 %32
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1jdxfv7e.c'
source_filename = "/tmp/tmp1jdxfv7e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@error.error_str = internal global [3 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2], align 16
@.str = private unnamed_addr constant [5 x i8] c"Seek\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Read\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Write\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"%s error (file:%s)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(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 i32, ptr @stderr, align 4
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [3 x ptr], ptr @error.error_str, i64 0, i64 %7
%9 = load ptr, ptr %8, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.3, ptr noundef %9, ptr noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 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/tmp1jdxfv7e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@error.error_str = internal global [3 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2], align 16
@.str = private unnamed_addr constant [5 x i8] c"Seek\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Read\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Write\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"%s error (file:%s)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(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 i32, ptr @stderr, align 4
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [3 x ptr], ptr @error.error_str, i64 0, i64 %7
%9 = load ptr, ptr %8, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.3, ptr noundef %9, ptr noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 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 = '/tmp/tmp4tb7njkm.c'
source_filename = "/tmp/tmp4tb7njkm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @_malloc_trim_r(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
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4tb7njkm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @_malloc_trim_r(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
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxi20ff_f.c'
source_filename = "/tmp/tmpxi20ff_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxi20ff_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzpqaxlyz.c'
source_filename = "/tmp/tmpzpqaxlyz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Left roll:\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"rolls: %2d, array: \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\0A\0ARight roll:\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @init_array(ptr noundef %4, i32 noundef 10)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %17, %0
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %8, 10
br i1 %9, label %10, label %20
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %11)
%13 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%14 = call i32 @parray(ptr noundef %13, i32 noundef 10)
%15 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%16 = call i32 @array_rol(ptr noundef %15, i32 noundef 10)
br label %17
17: ; preds = %10
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %7, !llvm.loop !6
20: ; preds = %7
%21 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%22 = call i32 @init_array(ptr noundef %21, i32 noundef 10)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %34, %20
%25 = load i32, ptr %3, align 4
%26 = icmp sle i32 %25, 10
br i1 %26, label %27, label %37
27: ; preds = %24
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %28)
%30 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%31 = call i32 @parray(ptr noundef %30, i32 noundef 10)
%32 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%33 = call i32 @array_ror(ptr noundef %32, i32 noundef 10)
br label %34
34: ; preds = %27
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
br label %24, !llvm.loop !8
37: ; preds = %24
%38 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %38
}
declare i32 @init_array(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @parray(ptr noundef, i32 noundef) #1
declare i32 @array_rol(ptr noundef, i32 noundef) #1
declare i32 @array_ror(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzpqaxlyz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Left roll:\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"rolls: %2d, array: \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\0A\0ARight roll:\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @init_array(ptr noundef %4, i32 noundef 10)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sle i32 %7, 10
br i1 %8, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %16
%10 = load i32, ptr %3, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%13 = call i32 @parray(ptr noundef %12, i32 noundef 10)
%14 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%15 = call i32 @array_rol(ptr noundef %14, i32 noundef 10)
br label %16
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp sle i32 %19, 10
br i1 %20, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
%22 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%23 = call i32 @init_array(ptr noundef %22, i32 noundef 10)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp sle i32 %25, 10
br i1 %26, label %.lr.ph2, label %39
.lr.ph2: ; preds = %21
br label %27
27: ; preds = %.lr.ph2, %34
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %28)
%30 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%31 = call i32 @parray(ptr noundef %30, i32 noundef 10)
%32 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%33 = call i32 @array_ror(ptr noundef %32, i32 noundef 10)
br label %34
34: ; preds = %27
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp sle i32 %37, 10
br i1 %38, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %39
39: ; preds = %._crit_edge3, %21
%40 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %40
}
declare i32 @init_array(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @parray(ptr noundef, i32 noundef) #1
declare i32 @array_rol(ptr noundef, i32 noundef) #1
declare i32 @array_ror(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpwhjek_w2.c'
source_filename = "/tmp/tmpwhjek_w2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @setutxent() #0 {
call void (...) @__setutent()
ret void
}
declare void @__setutent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwhjek_w2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @setutxent() #0 {
call void (...) @__setutent()
ret void
}
declare void @__setutent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb56u_pm8.c'
source_filename = "/tmp/tmpb56u_pm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IF_plus() #0 {
%1 = call i32 @IF_fct_2(i8 noundef signext 43)
ret void
}
declare i32 @IF_fct_2(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb56u_pm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IF_plus() #0 {
%1 = call i32 @IF_fct_2(i8 noundef signext 43)
ret void
}
declare i32 @IF_fct_2(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzf4rq3q0.c'
source_filename = "/tmp/tmpzf4rq3q0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @to_xp(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %45, %4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %48
16: ; preds = %12
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %8, align 4
%19 = add nsw i32 %17, %18
%20 = sub nsw i32 %19, 1
%21 = load i32, ptr %9, align 4
%22 = sub nsw i32 %20, %21
store i32 %22, ptr %10, align 4
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %10, align 4
%25 = sdiv i32 %24, 8
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %23, i64 %26
%28 = load i32, ptr %27, align 4
%29 = load i32, ptr %10, align 4
%30 = srem i32 %29, 8
%31 = sub nsw i32 7, %30
%32 = ashr i32 %28, %31
%33 = and i32 %32, 1
store i32 %33, ptr %11, align 4
%34 = load i32, ptr %11, align 4
%35 = load i32, ptr %9, align 4
%36 = srem i32 %35, 8
%37 = shl i32 %34, %36
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %9, align 4
%40 = sdiv i32 %39, 8
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %38, i64 %41
%43 = load i32, ptr %42, align 4
%44 = or i32 %43, %37
store i32 %44, ptr %42, align 4
br label %45
45: ; preds = %16
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %9, align 4
br label %12, !llvm.loop !6
48: ; preds = %12
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/tmpzf4rq3q0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @to_xp(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %50
.lr.ph: ; preds = %4
br label %15
15: ; preds = %.lr.ph, %44
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %8, align 4
%18 = add nsw i32 %16, %17
%19 = sub nsw i32 %18, 1
%20 = load i32, ptr %9, align 4
%21 = sub nsw i32 %19, %20
store i32 %21, ptr %10, align 4
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %10, align 4
%24 = sdiv i32 %23, 8
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %22, i64 %25
%27 = load i32, ptr %26, align 4
%28 = load i32, ptr %10, align 4
%29 = srem i32 %28, 8
%30 = sub nsw i32 7, %29
%31 = ashr i32 %27, %30
%32 = and i32 %31, 1
store i32 %32, ptr %11, align 4
%33 = load i32, ptr %11, align 4
%34 = load i32, ptr %9, align 4
%35 = srem i32 %34, 8
%36 = shl i32 %33, %35
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %9, align 4
%39 = sdiv i32 %38, 8
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
%42 = load i32, ptr %41, align 4
%43 = or i32 %42, %36
store i32 %43, ptr %41, align 4
br label %44
44: ; preds = %15
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %9, align 4
%47 = load i32, ptr %9, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %4
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/tmp3dqy6nqw.c'
source_filename = "/tmp/tmp3dqy6nqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XNoExposeEvent_minor_code(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3dqy6nqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XNoExposeEvent_minor_code(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
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"}
|
; ModuleID = '/tmp/tmpx8qytrm2.c'
source_filename = "/tmp/tmpx8qytrm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xmalloce(i64 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = call i32 @add(i64 noundef %7, i64 noundef %8)
%10 = load i64, ptr %6, align 8
%11 = call ptr @xmallocn(i32 noundef %9, i64 noundef %10)
ret ptr %11
}
declare ptr @xmallocn(i32 noundef, i64 noundef) #1
declare i32 @add(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx8qytrm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xmalloce(i64 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = call i32 @add(i64 noundef %7, i64 noundef %8)
%10 = load i64, ptr %6, align 8
%11 = call ptr @xmallocn(i32 noundef %9, i64 noundef %10)
ret ptr %11
}
declare ptr @xmallocn(i32 noundef, i64 noundef) #1
declare i32 @add(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7lrzssy8.c'
source_filename = "/tmp/tmp7lrzssy8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_IOFBF = dso_local global i32 0, align 4
@_IONBF = dso_local global i32 0, align 4
@BUFSIZ = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setbuf(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 = icmp ne ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i32, ptr @_IOFBF, align 4
br label %13
11: ; preds = %2
%12 = load i32, ptr @_IONBF, align 4
br label %13
13: ; preds = %11, %9
%14 = phi i32 [ %10, %9 ], [ %12, %11 ]
%15 = load i32, ptr @BUFSIZ, align 4
%16 = call i32 @setvbuf(ptr noundef %5, ptr noundef %6, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @setvbuf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7lrzssy8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_IOFBF = dso_local global i32 0, align 4
@_IONBF = dso_local global i32 0, align 4
@BUFSIZ = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setbuf(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 = icmp ne ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i32, ptr @_IOFBF, align 4
br label %13
11: ; preds = %2
%12 = load i32, ptr @_IONBF, align 4
br label %13
13: ; preds = %11, %9
%14 = phi i32 [ %10, %9 ], [ %12, %11 ]
%15 = load i32, ptr @BUFSIZ, align 4
%16 = call i32 @setvbuf(ptr noundef %5, ptr noundef %6, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @setvbuf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpda4aqsp4.c'
source_filename = "/tmp/tmpda4aqsp4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @copy_container_to_target_system() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 2, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpda4aqsp4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @copy_container_to_target_system() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 2, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2wab3qso.c'
source_filename = "/tmp/tmp2wab3qso.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @build_max_heap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sub nsw i32 %7, 1
%9 = sdiv i32 %8, 2
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
store i32 %10, ptr %5, align 4
br label %11
11: ; preds = %19, %2
%12 = load i32, ptr %5, align 4
%13 = icmp sge i32 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @max_heapify(ptr noundef %15, i32 noundef %16, i32 noundef %17)
br label %19
19: ; preds = %14
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %5, align 4
br label %11, !llvm.loop !6
22: ; preds = %11
ret void
}
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/tmp2wab3qso.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @build_max_heap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sub nsw i32 %7, 1
%9 = sdiv i32 %8, 2
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %18
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = call i32 @max_heapify(ptr noundef %14, i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %13
%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 = icmp sge i32 %21, 0
br i1 %22, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %2
ret void
}
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/tmpiejjoq_d.c'
source_filename = "/tmp/tmpiejjoq_d.c"
target datalayout = "e-m:e-p270: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/tmpiejjoq_d.c"
target datalayout = "e-m:e-p270: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/tmpcodmb_ni.c'
source_filename = "/tmp/tmpcodmb_ni.c"
target datalayout = "e-m:e-p270: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/tmpcodmb_ni.c"
target datalayout = "e-m:e-p270: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/tmpnxdh7hhv.c'
source_filename = "/tmp/tmpnxdh7hhv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"length array: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"v[%d]=\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 %12, 4
%14 = trunc i64 %13 to i32
%15 = call i64 @malloc(i32 noundef %14)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %17
17: ; preds = %30, %0
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %33
21: ; preds = %17
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %28)
br label %30
30: ; preds = %21
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %17, !llvm.loop !6
33: ; preds = %17
store i32 0, ptr %5, align 4
br label %34
34: ; preds = %101, %33
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %104
38: ; preds = %34
%39 = load ptr, ptr %2, align 8
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
%44 = srem i32 %43, 2
%45 = icmp ne i32 %44, 0
br i1 %45, label %100, label %46
46: ; preds = %38
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 3
store i32 %48, ptr %3, align 4
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %3, align 4
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 4
%53 = trunc i64 %52 to i32
%54 = call i64 @realloc(ptr noundef %49, i32 noundef %53)
%55 = inttoptr i64 %54 to ptr
store ptr %55, ptr %2, align 8
%56 = load i32, ptr %3, align 4
%57 = sub nsw i32 %56, 4
store i32 %57, ptr %6, align 4
br label %58
58: ; preds = %73, %46
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %5, align 4
%61 = icmp sgt i32 %59, %60
br i1 %61, label %62, label %76
62: ; preds = %58
%63 = load ptr, ptr %2, align 8
%64 = load i32, ptr %6, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
%67 = load i32, ptr %66, align 4
%68 = load ptr, ptr %2, align 8
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 %69, 3
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %68, i64 %71
store i32 %67, ptr %72, align 4
br label %73
73: ; preds = %62
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr %6, align 4
br label %58, !llvm.loop !8
76: ; preds = %58
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %7, align 4
br label %79
79: ; preds = %94, %76
%80 = load i32, ptr %7, align 4
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 3
%83 = icmp sle i32 %80, %82
br i1 %83, label %84, label %97
84: ; preds = %79
%85 = load ptr, ptr %2, align 8
%86 = load i32, ptr %5, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = load i32, ptr %88, align 4
%90 = load ptr, ptr %2, align 8
%91 = load i32, ptr %7, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
store i32 %89, ptr %93, align 4
br label %94
94: ; preds = %84
%95 = load i32, ptr %7, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %7, align 4
br label %79, !llvm.loop !9
97: ; preds = %79
%98 = load i32, ptr %5, align 4
%99 = add nsw i32 %98, 3
store i32 %99, ptr %5, align 4
br label %100
100: ; preds = %97, %38
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
br label %34, !llvm.loop !10
104: ; preds = %34
store i32 0, ptr %8, align 4
br label %105
105: ; preds = %116, %104
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr %3, align 4
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %119
109: ; preds = %105
%110 = load ptr, ptr %2, align 8
%111 = load i32, ptr %8, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i32, ptr %110, i64 %112
%114 = load i32, ptr %113, align 4
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %114)
br label %116
116: ; preds = %109
%117 = load i32, ptr %8, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %8, align 4
br label %105, !llvm.loop !11
119: ; preds = %105
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%121 = load ptr, ptr %2, align 8
%122 = call i32 @free(ptr noundef %121)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnxdh7hhv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"length array: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"v[%d]=\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 %12, 4
%14 = trunc i64 %13 to i32
%15 = call i64 @malloc(i32 noundef %14)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %2, align 8
store i32 0, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %35
.lr.ph: ; preds = %0
br label %20
20: ; preds = %.lr.ph, %29
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %27)
br label %29
29: ; preds = %20
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %0
store i32 0, ptr %5, align 4
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph8, label %113
.lr.ph8: ; preds = %35
br label %39
39: ; preds = %.lr.ph8, %107
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = srem i32 %44, 2
%46 = icmp ne i32 %45, 0
br i1 %46, label %106, label %47
47: ; preds = %39
%48 = load i32, ptr %3, align 4
%49 = add nsw i32 %48, 3
store i32 %49, ptr %3, align 4
%50 = load ptr, ptr %2, align 8
%51 = load i32, ptr %3, align 4
%52 = sext i32 %51 to i64
%53 = mul i64 %52, 4
%54 = trunc i64 %53 to i32
%55 = call i64 @realloc(ptr noundef %50, i32 noundef %54)
%56 = inttoptr i64 %55 to ptr
store ptr %56, ptr %2, align 8
%57 = load i32, ptr %3, align 4
%58 = sub nsw i32 %57, 4
store i32 %58, ptr %6, align 4
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %5, align 4
%61 = icmp sgt i32 %59, %60
br i1 %61, label %.lr.ph2, label %79
.lr.ph2: ; preds = %47
br label %62
62: ; preds = %.lr.ph2, %73
%63 = load ptr, ptr %2, align 8
%64 = load i32, ptr %6, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
%67 = load i32, ptr %66, align 4
%68 = load ptr, ptr %2, align 8
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 %69, 3
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %68, i64 %71
store i32 %67, ptr %72, align 4
br label %73
73: ; preds = %62
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr %6, align 4
%76 = load i32, ptr %6, align 4
%77 = load i32, ptr %5, align 4
%78 = icmp sgt i32 %76, %77
br i1 %78, label %62, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %73
br label %79
79: ; preds = %._crit_edge3, %47
%80 = load i32, ptr %5, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %7, align 4
%82 = load i32, ptr %7, align 4
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, 3
%85 = icmp sle i32 %82, %84
br i1 %85, label %.lr.ph5, label %103
.lr.ph5: ; preds = %79
br label %86
86: ; preds = %.lr.ph5, %96
%87 = load ptr, ptr %2, align 8
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %87, i64 %89
%91 = load i32, ptr %90, align 4
%92 = load ptr, ptr %2, align 8
%93 = load i32, ptr %7, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, ptr %92, i64 %94
store i32 %91, ptr %95, align 4
br label %96
96: ; preds = %86
%97 = load i32, ptr %7, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %7, align 4
%99 = load i32, ptr %7, align 4
%100 = load i32, ptr %5, align 4
%101 = add nsw i32 %100, 3
%102 = icmp sle i32 %99, %101
br i1 %102, label %86, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %96
br label %103
103: ; preds = %._crit_edge6, %79
%104 = load i32, ptr %5, align 4
%105 = add nsw i32 %104, 3
store i32 %105, ptr %5, align 4
br label %106
106: ; preds = %103, %39
br label %107
107: ; preds = %106
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %5, align 4
%110 = load i32, ptr %5, align 4
%111 = load i32, ptr %3, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %39, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %107
br label %113
113: ; preds = %._crit_edge9, %35
store i32 0, ptr %8, align 4
%114 = load i32, ptr %8, align 4
%115 = load i32, ptr %3, align 4
%116 = icmp slt i32 %114, %115
br i1 %116, label %.lr.ph11, label %130
.lr.ph11: ; preds = %113
br label %117
117: ; preds = %.lr.ph11, %124
%118 = load ptr, ptr %2, align 8
%119 = load i32, ptr %8, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32, ptr %118, i64 %120
%122 = load i32, ptr %121, align 4
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %122)
br label %124
124: ; preds = %117
%125 = load i32, ptr %8, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %8, align 4
%127 = load i32, ptr %8, align 4
%128 = load i32, ptr %3, align 4
%129 = icmp slt i32 %127, %128
br i1 %129, label %117, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %124
br label %130
130: ; preds = %._crit_edge12, %113
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%132 = load ptr, ptr %2, align 8
%133 = call i32 @free(ptr noundef %132)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpwygoruec.c'
source_filename = "/tmp/tmpwygoruec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @iconv_close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwygoruec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @iconv_close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6az1ss_i.c'
source_filename = "/tmp/tmp6az1ss_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @build_argv(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = add nsw i32 %9, 1
%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 %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %1
store ptr null, ptr %2, align 8
br label %36
18: ; preds = %1
store i64 0, ptr %5, align 8
store ptr null, ptr %7, align 8
%19 = load ptr, ptr %3, align 8
%20 = call ptr @strtok_r(ptr noundef %19, ptr noundef @.str, ptr noundef %7)
store ptr %20, ptr %6, align 8
br label %21
21: ; preds = %24, %18
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %31
24: ; preds = %21
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %4, align 8
%27 = load i64, ptr %5, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %26, i64 %27
store ptr %25, ptr %29, align 8
%30 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str, ptr noundef %7)
store ptr %30, ptr %6, align 8
br label %21, !llvm.loop !6
31: ; preds = %21
%32 = load ptr, ptr %4, align 8
%33 = load i64, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %32, i64 %33
store ptr null, ptr %34, align 8
%35 = load ptr, ptr %4, align 8
store ptr %35, ptr %2, align 8
br label %36
36: ; preds = %31, %17
%37 = load ptr, ptr %2, align 8
ret ptr %37
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6az1ss_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @build_argv(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = add nsw i32 %9, 1
%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 %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %1
store ptr null, ptr %2, align 8
br label %37
18: ; preds = %1
store i64 0, ptr %5, align 8
store ptr null, ptr %7, align 8
%19 = load ptr, ptr %3, align 8
%20 = call ptr @strtok_r(ptr noundef %19, ptr noundef @.str, ptr noundef %7)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %.lr.ph, label %32
.lr.ph: ; preds = %18
br label %23
23: ; preds = %.lr.ph, %23
%24 = load ptr, ptr %6, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i64, ptr %5, align 8
%27 = add i64 %26, 1
store i64 %27, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %25, i64 %26
store ptr %24, ptr %28, align 8
%29 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str, ptr noundef %7)
store ptr %29, ptr %6, align 8
%30 = load ptr, ptr %6, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %32
32: ; preds = %._crit_edge, %18
%33 = load ptr, ptr %4, align 8
%34 = load i64, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %33, i64 %34
store ptr null, ptr %35, align 8
%36 = load ptr, ptr %4, align 8
store ptr %36, ptr %2, align 8
br label %37
37: ; preds = %32, %17
%38 = load ptr, ptr %2, align 8
ret ptr %38
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa2n5vza_.c'
source_filename = "/tmp/tmpa2n5vza_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_bx_free_exprs(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %17, %2
%7 = load i64, ptr %5, align 8
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = icmp ult i64 %7, %9
br i1 %10, label %11, label %20
11: ; preds = %6
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %12, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 @BX_DecRef(ptr noundef %15)
br label %17
17: ; preds = %11
%18 = load i64, ptr %5, align 8
%19 = add i64 %18, 1
store i64 %19, ptr %5, align 8
br label %6, !llvm.loop !6
20: ; preds = %6
%21 = load ptr, ptr %4, align 8
%22 = call i32 @free(ptr noundef %21)
ret void
}
declare i32 @BX_DecRef(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa2n5vza_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_bx_free_exprs(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i64 0, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = icmp ult i64 %6, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %16
%11 = load ptr, ptr %4, align 8
%12 = load i64, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %11, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = call i32 @BX_DecRef(ptr noundef %14)
br label %16
16: ; preds = %10
%17 = load i64, ptr %5, align 8
%18 = add i64 %17, 1
store i64 %18, ptr %5, align 8
%19 = load i64, ptr %5, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = icmp ult i64 %19, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %23
23: ; preds = %._crit_edge, %2
%24 = load ptr, ptr %4, align 8
%25 = call i32 @free(ptr noundef %24)
ret void
}
declare i32 @BX_DecRef(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz3qcpu1f.c'
source_filename = "/tmp/tmpz3qcpu1f.c"
target datalayout = "e-m:e-p270: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.s = private unnamed_addr constant [15 x i8] c"lol %n oops %n\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 [15 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.s, i64 15, i1 false)
%7 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%8 = call i32 @foo(ptr noundef %7)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @foo(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/tmpz3qcpu1f.c"
target datalayout = "e-m:e-p270: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.s = private unnamed_addr constant [15 x i8] c"lol %n oops %n\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 [15 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.s, i64 15, i1 false)
%7 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%8 = call i32 @foo(ptr noundef %7)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @foo(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/tmphit57ir2.c'
source_filename = "/tmp/tmphit57ir2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test_mm_cvttss_si64(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 i64 @_mm_cvttss_si64(i32 noundef %3)
ret i64 %4
}
declare i64 @_mm_cvttss_si64(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/tmphit57ir2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test_mm_cvttss_si64(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 i64 @_mm_cvttss_si64(i32 noundef %3)
ret i64 %4
}
declare i64 @_mm_cvttss_si64(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/tmpta22atgj.c'
source_filename = "/tmp/tmpta22atgj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [12 x i8] c"%d %d %d %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
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %26, %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %29
13: ; preds = %9
%14 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7)
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @nww(i32 noundef %15, i32 noundef %16)
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @nww(i32 noundef %18, i32 noundef %19)
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @nww(i32 noundef %21, i32 noundef %22)
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = call i32 @printf(ptr noundef @.str.2, i32 noundef %24)
br label %26
26: ; preds = %13
%27 = load i32, ptr %2, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %2, align 4
br label %9, !llvm.loop !6
29: ; preds = %9
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @nww(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpta22atgj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [12 x i8] c"%d %d %d %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
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %31
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %25
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7)
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = call i32 @nww(i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @nww(i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %7, align 4
%22 = call i32 @nww(i32 noundef %20, i32 noundef %21)
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = call i32 @printf(ptr noundef @.str.2, i32 noundef %23)
br label %25
25: ; preds = %12
%26 = load i32, ptr %2, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %2, align 4
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %0
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @nww(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpeiq58yxi.c'
source_filename = "/tmp/tmpeiq58yxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Algorithms in C\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Matthews\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"C\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Smith\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"Jacob\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Algorithms\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"Cohen\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"Art of Computer Programming\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"Burger\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"Fortran\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"Moran\00", align 1
@.str.11 = private unnamed_addr constant [28 x i8] c"The Practice of Programming\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"Andrews\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"Inventory\0A \00", align 1
@.str.14 = private unnamed_addr constant [30 x i8] c"\0AInventory in sorted order: \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 @addBook(ptr noundef @.str, i32 noundef 1998, ptr noundef @.str.1, i32 noundef 3)
%3 = call i32 @addBook(ptr noundef @.str.2, i32 noundef 1978, ptr noundef @.str.3, i32 noundef 2)
%4 = call i32 @addBook(ptr noundef @.str.2, i32 noundef 1988, ptr noundef @.str.4, i32 noundef 4)
%5 = call i32 @addBook(ptr noundef @.str.5, i32 noundef 1990, ptr noundef @.str.6, i32 noundef 1)
%6 = call i32 @addBook(ptr noundef @.str.7, i32 noundef 1978, ptr noundef @.str.8, i32 noundef 2)
%7 = call i32 @addBook(ptr noundef @.str.9, i32 noundef 1965, ptr noundef @.str.10, i32 noundef 3)
%8 = call i32 @addBook(ptr noundef @.str.11, i32 noundef 1999, ptr noundef @.str.12, i32 noundef 4)
%9 = call i32 @printf(ptr noundef @.str.13)
%10 = call i32 (...) @show()
%11 = call i32 (...) @sortInventory()
%12 = call i32 @printf(ptr noundef @.str.14)
%13 = call i32 (...) @show()
ret i32 1
}
declare i32 @addBook(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @show(...) #1
declare i32 @sortInventory(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeiq58yxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Algorithms in C\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Matthews\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"C\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Smith\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"Jacob\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Algorithms\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"Cohen\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"Art of Computer Programming\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"Burger\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"Fortran\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"Moran\00", align 1
@.str.11 = private unnamed_addr constant [28 x i8] c"The Practice of Programming\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"Andrews\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"Inventory\0A \00", align 1
@.str.14 = private unnamed_addr constant [30 x i8] c"\0AInventory in sorted order: \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 @addBook(ptr noundef @.str, i32 noundef 1998, ptr noundef @.str.1, i32 noundef 3)
%3 = call i32 @addBook(ptr noundef @.str.2, i32 noundef 1978, ptr noundef @.str.3, i32 noundef 2)
%4 = call i32 @addBook(ptr noundef @.str.2, i32 noundef 1988, ptr noundef @.str.4, i32 noundef 4)
%5 = call i32 @addBook(ptr noundef @.str.5, i32 noundef 1990, ptr noundef @.str.6, i32 noundef 1)
%6 = call i32 @addBook(ptr noundef @.str.7, i32 noundef 1978, ptr noundef @.str.8, i32 noundef 2)
%7 = call i32 @addBook(ptr noundef @.str.9, i32 noundef 1965, ptr noundef @.str.10, i32 noundef 3)
%8 = call i32 @addBook(ptr noundef @.str.11, i32 noundef 1999, ptr noundef @.str.12, i32 noundef 4)
%9 = call i32 @printf(ptr noundef @.str.13)
%10 = call i32 (...) @show()
%11 = call i32 (...) @sortInventory()
%12 = call i32 @printf(ptr noundef @.str.14)
%13 = call i32 (...) @show()
ret i32 1
}
declare i32 @addBook(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @show(...) #1
declare i32 @sortInventory(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi86xml1n.c'
source_filename = "/tmp/tmpi86xml1n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlenI(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %11, %1
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %5, i64 %6
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %4
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 1
store i64 %13, ptr %3, align 8
br label %4, !llvm.loop !6
14: ; preds = %4
%15 = load i64, ptr %3, align 8
ret i64 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpi86xml1n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlenI(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i64, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %4, i64 %5
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %19
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %3, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i64, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %19
19: ; preds = %._crit_edge, %1
%20 = load i64, ptr %3, align 8
ret i64 %20
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2orhru6a.c'
source_filename = "/tmp/tmp2orhru6a.c"
target datalayout = "e-m:e-p270: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/tmp2orhru6a.c"
target datalayout = "e-m:e-p270: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/tmpkm_jpamn.c'
source_filename = "/tmp/tmpkm_jpamn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"Array\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [5 x [5 x i32]], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 -15, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %27, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %9, label %30
9: ; preds = %6
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %23, %9
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 5
br i1 %12, label %13, label %26
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 %16
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [5 x i32], ptr %17, i64 0, i64 %19
store i32 %14, ptr %20, align 4
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %23
23: ; preds = %13
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %10, !llvm.loop !6
26: ; preds = %10
br label %27
27: ; preds = %26
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
br label %6, !llvm.loop !8
30: ; preds = %6
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %32
32: ; preds = %53, %30
%33 = load i32, ptr %3, align 4
%34 = icmp slt i32 %33, 5
br i1 %34, label %35, label %56
35: ; preds = %32
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %37
37: ; preds = %49, %35
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 5
br i1 %39, label %40, label %52
40: ; preds = %37
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 %42
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [5 x i32], ptr %43, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %47)
br label %49
49: ; preds = %40
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %4, align 4
br label %37, !llvm.loop !9
52: ; preds = %37
br label %53
53: ; preds = %52
%54 = load i32, ptr %3, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %3, align 4
br label %32, !llvm.loop !10
56: ; preds = %32
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 4, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %58
58: ; preds = %92, %56
%59 = load i32, ptr %3, align 4
%60 = icmp slt i32 %59, 5
br i1 %60, label %61, label %95
61: ; preds = %58
br label %62
62: ; preds = %80, %61
%63 = load i32, ptr %4, align 4
%64 = icmp sge i32 %63, 0
br i1 %64, label %65, label %83
65: ; preds = %62
%66 = load i32, ptr %3, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 %67
%69 = load i32, ptr %4, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [5 x i32], ptr %68, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = icmp slt i32 %72, 0
br i1 %73, label %74, label %79
74: ; preds = %65
%75 = load i32, ptr %4, align 4
%76 = add nsw i32 %75, 1
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, %76
store i32 %78, ptr %5, align 4
br label %83
79: ; preds = %65
br label %80
80: ; preds = %79
%81 = load i32, ptr %4, align 4
%82 = add nsw i32 %81, -1
store i32 %82, ptr %4, align 4
br label %62, !llvm.loop !11
83: ; preds = %74, %62
%84 = load i32, ptr %3, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 %85
%87 = getelementptr inbounds [5 x i32], ptr %86, i64 0, i64 0
%88 = load i32, ptr %87, align 4
%89 = icmp sgt i32 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %83
br label %95
91: ; preds = %83
br label %92
92: ; preds = %91
%93 = load i32, ptr %3, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %3, align 4
br label %58, !llvm.loop !12
95: ; preds = %90, %58
%96 = load i32, ptr %5, align 4
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %96)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkm_jpamn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"Array\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [5 x [5 x i32]], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 -15, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 5
br i1 %7, label %.lr.ph3, label %32
.lr.ph3: ; preds = %0
br label %8
8: ; preds = %.lr.ph3, %27
store i32 0, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 5
br i1 %10, label %.lr.ph, label %26
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %21
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 %14
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [5 x i32], ptr %15, i64 0, i64 %17
store i32 %12, ptr %18, align 4
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %11
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %24, 5
br i1 %25, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %8
br label %27
27: ; preds = %26
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %30, 5
br i1 %31, label %8, label %._crit_edge4, !llvm.loop !8
._crit_edge4: ; preds = %27
br label %32
32: ; preds = %._crit_edge4, %0
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%34 = load i32, ptr %3, align 4
%35 = icmp slt i32 %34, 5
br i1 %35, label %.lr.ph9, label %60
.lr.ph9: ; preds = %32
br label %36
36: ; preds = %.lr.ph9, %55
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 5
br i1 %39, label %.lr.ph6, label %54
.lr.ph6: ; preds = %36
br label %40
40: ; preds = %.lr.ph6, %49
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 %42
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [5 x i32], ptr %43, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %47)
br label %49
49: ; preds = %40
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %4, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp slt i32 %52, 5
br i1 %53, label %40, label %._crit_edge7, !llvm.loop !9
._crit_edge7: ; preds = %49
br label %54
54: ; preds = %._crit_edge7, %36
br label %55
55: ; preds = %54
%56 = load i32, ptr %3, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %3, align 4
%58 = load i32, ptr %3, align 4
%59 = icmp slt i32 %58, 5
br i1 %59, label %36, label %._crit_edge10, !llvm.loop !10
._crit_edge10: ; preds = %55
br label %60
60: ; preds = %._crit_edge10, %32
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 4, ptr %4, align 4
store i32 0, ptr %3, align 4
%62 = load i32, ptr %3, align 4
%63 = icmp slt i32 %62, 5
br i1 %63, label %.lr.ph14, label %.loopexit1
.lr.ph14: ; preds = %60
br label %64
64: ; preds = %.lr.ph14, %96
%65 = load i32, ptr %4, align 4
%66 = icmp sge i32 %65, 0
br i1 %66, label %.lr.ph12, label %.loopexit
.lr.ph12: ; preds = %64
br label %67
67: ; preds = %.lr.ph12, %82
%68 = load i32, ptr %3, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 %69
%71 = load i32, ptr %4, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [5 x i32], ptr %70, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = icmp slt i32 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %67
%77 = load i32, ptr %4, align 4
%78 = add nsw i32 %77, 1
%79 = load i32, ptr %5, align 4
%80 = add nsw i32 %79, %78
store i32 %80, ptr %5, align 4
br label %87
81: ; preds = %67
br label %82
82: ; preds = %81
%83 = load i32, ptr %4, align 4
%84 = add nsw i32 %83, -1
store i32 %84, ptr %4, align 4
%85 = load i32, ptr %4, align 4
%86 = icmp sge i32 %85, 0
br i1 %86, label %67, label %..loopexit_crit_edge, !llvm.loop !11
..loopexit_crit_edge: ; preds = %82
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %64
br label %87
87: ; preds = %.loopexit, %76
%88 = load i32, ptr %3, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 %89
%91 = getelementptr inbounds [5 x i32], ptr %90, i64 0, i64 0
%92 = load i32, ptr %91, align 4
%93 = icmp sgt i32 %92, 0
br i1 %93, label %94, label %95
94: ; preds = %87
br label %101
95: ; preds = %87
br label %96
96: ; preds = %95
%97 = load i32, ptr %3, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %3, align 4
%99 = load i32, ptr %3, align 4
%100 = icmp slt i32 %99, 5
br i1 %100, label %64, label %..loopexit1_crit_edge, !llvm.loop !12
..loopexit1_crit_edge: ; preds = %96
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %60
br label %101
101: ; preds = %.loopexit1, %94
%102 = load i32, ptr %5, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %102)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp8rabg1k8.c'
source_filename = "/tmp/tmp8rabg1k8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%.1f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %5, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%9 = load float, ptr %2, align 4
%10 = load float, ptr %5, align 4
%11 = fcmp ogt float %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load float, ptr %2, align 4
store float %13, ptr %5, align 4
br label %14
14: ; preds = %12, %0
%15 = load float, ptr %3, align 4
%16 = load float, ptr %5, align 4
%17 = fcmp ogt float %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load float, ptr %3, align 4
store float %19, ptr %5, align 4
br label %20
20: ; preds = %18, %14
%21 = load float, ptr %4, align 4
%22 = load float, ptr %5, align 4
%23 = fcmp ogt float %21, %22
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = load float, ptr %4, align 4
store float %25, ptr %5, align 4
br label %26
26: ; preds = %24, %20
%27 = load float, ptr %5, align 4
%28 = call i32 @printf(ptr noundef @.str.1, float noundef %27)
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, 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/tmp8rabg1k8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%.1f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %5, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%9 = load float, ptr %2, align 4
%10 = load float, ptr %5, align 4
%11 = fcmp ogt float %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load float, ptr %2, align 4
store float %13, ptr %5, align 4
br label %14
14: ; preds = %12, %0
%15 = load float, ptr %3, align 4
%16 = load float, ptr %5, align 4
%17 = fcmp ogt float %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load float, ptr %3, align 4
store float %19, ptr %5, align 4
br label %20
20: ; preds = %18, %14
%21 = load float, ptr %4, align 4
%22 = load float, ptr %5, align 4
%23 = fcmp ogt float %21, %22
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = load float, ptr %4, align 4
store float %25, ptr %5, align 4
br label %26
26: ; preds = %24, %20
%27 = load float, ptr %5, align 4
%28 = call i32 @printf(ptr noundef @.str.1, float noundef %27)
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, 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/tmplijz3fzb.c'
source_filename = "/tmp/tmplijz3fzb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"S %i %i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sendDataAboutSentAttacks(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [10 x i8], align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %9, align 4
store i32 %10, ptr %5, align 4
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 10
store i32 %12, ptr %7, align 4
%13 = call i32 (...) @rand()
%14 = srem i32 %13, 10
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %18, %2
%20 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %8, align 4
%23 = call i32 @sprintf(ptr noundef %20, ptr noundef @.str, i32 noundef %21, i32 noundef %22)
%24 = load i32, ptr %5, align 4
%25 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%26 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%27 = call i32 @strlen(ptr noundef %26)
%28 = call i32 @send(i32 noundef %24, ptr noundef %25, i32 noundef %27, i32 noundef 0)
ret void
}
declare i32 @rand(...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 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/tmplijz3fzb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"S %i %i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sendDataAboutSentAttacks(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [10 x i8], align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %9, align 4
store i32 %10, ptr %5, align 4
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 10
store i32 %12, ptr %7, align 4
%13 = call i32 (...) @rand()
%14 = srem i32 %13, 10
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %18, %2
%20 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %8, align 4
%23 = call i32 @sprintf(ptr noundef %20, ptr noundef @.str, i32 noundef %21, i32 noundef %22)
%24 = load i32, ptr %5, align 4
%25 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%26 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
%27 = call i32 @strlen(ptr noundef %26)
%28 = call i32 @send(i32 noundef %24, ptr noundef %25, i32 noundef %27, i32 noundef 0)
ret void
}
declare i32 @rand(...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 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/tmpqu7gwf4e.c'
source_filename = "/tmp/tmpqu7gwf4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [106 x i8] c"iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @x6_setup() #0 {
%1 = alloca [256 x i8], align 16
%2 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @sprintf(ptr noundef %2, ptr noundef @.str, i32 noundef 1)
%4 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @system(ptr noundef %4)
ret i32 0
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqu7gwf4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [106 x i8] c"iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @x6_setup() #0 {
%1 = alloca [256 x i8], align 16
%2 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @sprintf(ptr noundef %2, ptr noundef @.str, i32 noundef 1)
%4 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @system(ptr noundef %4)
ret i32 0
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp093l3cp6.c'
source_filename = "/tmp/tmp093l3cp6.c"
target datalayout = "e-m:e-p270: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/tmp093l3cp6.c"
target datalayout = "e-m:e-p270: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/tmpn1jh1uyv.c'
source_filename = "/tmp/tmpn1jh1uyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_IGN = 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/tmpn1jh1uyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_IGN = 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/tmpfrmjp4xr.c'
source_filename = "/tmp/tmpfrmjp4xr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GateArray_ClearInterrupt() #0 {
%1 = call i32 (...) @Z80_ClearInterruptRequest()
%2 = call i32 (...) @GateArray_ClearInterruptCount()
%3 = call i32 (...) @ASIC_ClearRasterInterrupt()
ret void
}
declare i32 @Z80_ClearInterruptRequest(...) #1
declare i32 @GateArray_ClearInterruptCount(...) #1
declare i32 @ASIC_ClearRasterInterrupt(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfrmjp4xr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GateArray_ClearInterrupt() #0 {
%1 = call i32 (...) @Z80_ClearInterruptRequest()
%2 = call i32 (...) @GateArray_ClearInterruptCount()
%3 = call i32 (...) @ASIC_ClearRasterInterrupt()
ret void
}
declare i32 @Z80_ClearInterruptRequest(...) #1
declare i32 @GateArray_ClearInterruptCount(...) #1
declare i32 @ASIC_ClearRasterInterrupt(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr9y1ll21.c'
source_filename = "/tmp/tmpr9y1ll21.c"
target datalayout = "e-m:e-p270: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/tmpr9y1ll21.c"
target datalayout = "e-m:e-p270: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/tmpcn_v3m0d.c'
source_filename = "/tmp/tmpcn_v3m0d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"tLog Aux Panel\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"<u>Table Tips</u><br>\00", align 1
@.str.2 = private unnamed_addr constant [499 x i8] c"This table holds the non-archived logged and MD5 signed operations that have taken place in the system. Usually data is available here only for the current month. When possible context related info is provided below. Current unxsMail version does not save delete (Del) operation data.<p><a href=iDNS.cgi?gcFunction=tLogMonth>tLogMonth</a> allows access to all archived (read-only and compressed) monthly tLog data sets. These archives are created from the command line usually by crontab operation.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ExttLogButtons() #0 {
%1 = call i32 @OpenFieldSet(ptr noundef @.str, i32 noundef 100)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 (...) @LogSummary()
%5 = call i32 (...) @CloseFieldSet()
ret void
}
declare i32 @OpenFieldSet(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @LogSummary(...) #1
declare i32 @CloseFieldSet(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcn_v3m0d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"tLog Aux Panel\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"<u>Table Tips</u><br>\00", align 1
@.str.2 = private unnamed_addr constant [499 x i8] c"This table holds the non-archived logged and MD5 signed operations that have taken place in the system. Usually data is available here only for the current month. When possible context related info is provided below. Current unxsMail version does not save delete (Del) operation data.<p><a href=iDNS.cgi?gcFunction=tLogMonth>tLogMonth</a> allows access to all archived (read-only and compressed) monthly tLog data sets. These archives are created from the command line usually by crontab operation.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ExttLogButtons() #0 {
%1 = call i32 @OpenFieldSet(ptr noundef @.str, i32 noundef 100)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 (...) @LogSummary()
%5 = call i32 (...) @CloseFieldSet()
ret void
}
declare i32 @OpenFieldSet(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @LogSummary(...) #1
declare i32 @CloseFieldSet(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbux3h5j8.c'
source_filename = "/tmp/tmpbux3h5j8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; 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 i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr @stdin, align 4
%11 = call i32 @fflush(i32 noundef %10)
br label %12
12: ; preds = %37, %2
%13 = call i64 @scanf(ptr noundef @.str, ptr noundef %7)
%14 = load i64, ptr @EOF, align 8
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %45
16: ; preds = %12
%17 = load i64, ptr %7, align 8
%18 = icmp sle i64 %17, 1
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load i64, ptr %7, align 8
%21 = icmp sge i64 %20, 1000000000
br i1 %21, label %22, label %23
22: ; preds = %19, %16
store i32 1, ptr %3, align 4
br label %46
23: ; preds = %19
store i64 0, ptr %8, align 8
store i64 0, ptr %9, align 8
store i32 1, ptr %6, align 4
br label %24
24: ; preds = %34, %23
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = load i64, ptr %7, align 8
%28 = icmp sle i64 %26, %27
br i1 %28, label %29, label %37
29: ; preds = %24
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = load i64, ptr %8, align 8
%33 = add nsw i64 %32, %31
store i64 %33, ptr %8, align 8
br label %34
34: ; preds = %29
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 2
store i32 %36, ptr %6, align 4
br label %24, !llvm.loop !6
37: ; preds = %24
%38 = load i64, ptr %8, align 8
%39 = mul nsw i64 %38, 2
%40 = sub nsw i64 %39, 1
store i64 %40, ptr %9, align 8
%41 = load i64, ptr %9, align 8
%42 = mul nsw i64 %41, 3
%43 = sub nsw i64 %42, 6
%44 = call i32 @printf(ptr noundef @.str.1, i64 noundef %43)
br label %12, !llvm.loop !8
45: ; preds = %12
store i32 0, ptr %3, align 4
br label %46
46: ; preds = %45, %22
%47 = load i32, ptr %3, align 4
ret i32 %47
}
declare i32 @fflush(i32 noundef) #1
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbux3h5j8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; 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 i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr @stdin, align 4
%11 = call i32 @fflush(i32 noundef %10)
%12 = call i64 @scanf(ptr noundef @.str, ptr noundef %7)
%13 = load i64, ptr @EOF, align 8
%14 = icmp ne i64 %12, %13
br i1 %14, label %.lr.ph2, label %50
.lr.ph2: ; preds = %2
br label %15
15: ; preds = %.lr.ph2, %39
%16 = load i64, ptr %7, align 8
%17 = icmp sle i64 %16, 1
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i64, ptr %7, align 8
%20 = icmp sge i64 %19, 1000000000
br i1 %20, label %21, label %22
21: ; preds = %18, %15
store i32 1, ptr %3, align 4
br label %51
22: ; preds = %18
store i64 0, ptr %8, align 8
store i64 0, ptr %9, align 8
store i32 1, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = load i64, ptr %7, align 8
%26 = icmp sle i64 %24, %25
br i1 %26, label %.lr.ph, label %39
.lr.ph: ; preds = %22
br label %27
27: ; preds = %.lr.ph, %32
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = load i64, ptr %8, align 8
%31 = add nsw i64 %30, %29
store i64 %31, ptr %8, align 8
br label %32
32: ; preds = %27
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 2
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = load i64, ptr %7, align 8
%38 = icmp sle i64 %36, %37
br i1 %38, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %39
39: ; preds = %._crit_edge, %22
%40 = load i64, ptr %8, align 8
%41 = mul nsw i64 %40, 2
%42 = sub nsw i64 %41, 1
store i64 %42, ptr %9, align 8
%43 = load i64, ptr %9, align 8
%44 = mul nsw i64 %43, 3
%45 = sub nsw i64 %44, 6
%46 = call i32 @printf(ptr noundef @.str.1, i64 noundef %45)
%47 = call i64 @scanf(ptr noundef @.str, ptr noundef %7)
%48 = load i64, ptr @EOF, align 8
%49 = icmp ne i64 %47, %48
br i1 %49, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %39
br label %50
50: ; preds = %._crit_edge3, %2
store i32 0, ptr %3, align 4
br label %51
51: ; preds = %50, %21
%52 = load i32, ptr %3, align 4
ret i32 %52
}
declare i32 @fflush(i32 noundef) #1
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8vw0dwis.c'
source_filename = "/tmp/tmp8vw0dwis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @entrada() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8vw0dwis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @entrada() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp639xisqd.c'
source_filename = "/tmp/tmp639xisqd.c"
target datalayout = "e-m:e-p270: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/tmp639xisqd.c"
target datalayout = "e-m:e-p270: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/tmpabrdwmgf.c'
source_filename = "/tmp/tmpabrdwmgf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CON_Shutdown() #0 {
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpabrdwmgf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CON_Shutdown() #0 {
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"}
|
; ModuleID = '/tmp/tmpc31xmsiv.c'
source_filename = "/tmp/tmpc31xmsiv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @m_calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @calloc(i64 noundef %6, i64 noundef %7) #3
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @mem_list_add(ptr noundef %9)
%11 = load ptr, ptr %5, align 8
ret ptr %11
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 noundef, i64 noundef) #1
declare i32 @mem_list_add(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 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-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 = { "frame-pointer"="all" "no-trapping-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 = { allocsize(0,1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc31xmsiv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @m_calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @calloc(i64 noundef %6, i64 noundef %7) #3
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @mem_list_add(ptr noundef %9)
%11 = load ptr, ptr %5, align 8
ret ptr %11
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 noundef, i64 noundef) #1
declare i32 @mem_list_add(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 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-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 = { "frame-pointer"="all" "no-trapping-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 = { allocsize(0,1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgsz_i2p9.c'
source_filename = "/tmp/tmpgsz_i2p9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%.7lf \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fprint2d(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%12 = load ptr, ptr %5, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %11, align 8
store i32 0, ptr %9, align 4
br label %14
14: ; preds = %41, %4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %44
18: ; preds = %14
store i32 0, ptr %10, align 4
br label %19
19: ; preds = %35, %18
%20 = load i32, ptr %10, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %38
23: ; preds = %19
%24 = load ptr, ptr %11, align 8
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr %10, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
%33 = load double, ptr %32, align 8
%34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.1, double noundef %33)
br label %35
35: ; preds = %23
%36 = load i32, ptr %10, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %10, align 4
br label %19, !llvm.loop !6
38: ; preds = %19
%39 = load ptr, ptr %11, align 8
%40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.2)
br label %41
41: ; preds = %38
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %9, align 4
br label %14, !llvm.loop !8
44: ; preds = %14
%45 = load ptr, ptr %11, align 8
%46 = call i32 @fclose(ptr noundef %45)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgsz_i2p9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%.7lf \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fprint2d(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%12 = load ptr, ptr %5, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %11, align 8
store i32 0, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph2, label %48
.lr.ph2: ; preds = %4
br label %17
17: ; preds = %.lr.ph2, %42
store i32 0, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %39
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %33
%22 = load ptr, ptr %11, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %27, i64 %29
%31 = load double, ptr %30, align 8
%32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.1, double noundef %31)
br label %33
33: ; preds = %21
%34 = load i32, ptr %10, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %10, align 4
%36 = load i32, ptr %10, align 4
%37 = load i32, ptr %8, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %17
%40 = load ptr, ptr %11, align 8
%41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.2)
br label %42
42: ; preds = %39
%43 = load i32, ptr %9, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %9, align 4
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %4
%49 = load ptr, ptr %11, align 8
%50 = call i32 @fclose(ptr noundef %49)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmqthc7tt.c'
source_filename = "/tmp/tmpmqthc7tt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MHD_str_has_token_caseless_(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 i64, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%11 = load i64, ptr %7, align 8
%12 = icmp eq i64 0, %11
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %112
14: ; preds = %3
br label %15
15: ; preds = %110, %14
%16 = load ptr, ptr %5, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 0, %18
br i1 %19, label %20, label %111
20: ; preds = %15
br label %21
21: ; preds = %38, %20
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 32, %24
br i1 %25, label %36, label %26
26: ; preds = %21
%27 = load ptr, ptr %5, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 9, %29
br i1 %30, label %36, label %31
31: ; preds = %26
%32 = load ptr, ptr %5, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 44, %34
br label %36
36: ; preds = %31, %26, %21
%37 = phi i1 [ true, %26 ], [ true, %21 ], [ %35, %31 ]
br i1 %37, label %38, label %41
38: ; preds = %36
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %5, align 8
br label %21, !llvm.loop !6
41: ; preds = %36
store i64 0, ptr %8, align 8
br label %42
42: ; preds = %41, %93
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %5, align 8
%45 = load i8, ptr %43, align 1
store i8 %45, ptr %9, align 1
%46 = load ptr, ptr %6, align 8
%47 = load i64, ptr %8, align 8
%48 = add i64 %47, 1
store i64 %48, ptr %8, align 8
%49 = getelementptr inbounds i8, ptr %46, i64 %47
%50 = load i8, ptr %49, align 1
store i8 %50, ptr %10, align 1
%51 = load i8, ptr %9, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 0, %52
br i1 %53, label %54, label %55
54: ; preds = %42
store i32 0, ptr %4, align 4
br label %112
55: ; preds = %42
%56 = load i8, ptr %9, align 1
%57 = load i8, ptr %10, align 1
%58 = call i32 @charsequalcaseless(i8 noundef signext %56, i8 noundef signext %57)
%59 = icmp ne i32 %58, 0
br i1 %59, label %61, label %60
60: ; preds = %55
br label %94
61: ; preds = %55
%62 = load i64, ptr %8, align 8
%63 = load i64, ptr %7, align 8
%64 = icmp uge i64 %62, %63
br i1 %64, label %65, label %93
65: ; preds = %61
br label %66
66: ; preds = %78, %65
%67 = load ptr, ptr %5, align 8
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp eq i32 32, %69
br i1 %70, label %76, label %71
71: ; preds = %66
%72 = load ptr, ptr %5, align 8
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 9, %74
br label %76
76: ; preds = %71, %66
%77 = phi i1 [ true, %66 ], [ %75, %71 ]
br i1 %77, label %78, label %81
78: ; preds = %76
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds i8, ptr %79, i32 1
store ptr %80, ptr %5, align 8
br label %66, !llvm.loop !8
81: ; preds = %76
%82 = load ptr, ptr %5, align 8
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 0, %84
br i1 %85, label %91, label %86
86: ; preds = %81
%87 = load ptr, ptr %5, align 8
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = icmp eq i32 44, %89
br i1 %90, label %91, label %92
91: ; preds = %86, %81
store i32 1, ptr %4, align 4
br label %112
92: ; preds = %86
br label %94
93: ; preds = %61
br label %42
94: ; preds = %92, %60
br label %95
95: ; preds = %107, %94
%96 = load ptr, ptr %5, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp ne i32 0, %98
br i1 %99, label %100, label %105
100: ; preds = %95
%101 = load ptr, ptr %5, align 8
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = icmp ne i32 44, %103
br label %105
105: ; preds = %100, %95
%106 = phi i1 [ false, %95 ], [ %104, %100 ]
br i1 %106, label %107, label %110
107: ; preds = %105
%108 = load ptr, ptr %5, align 8
%109 = getelementptr inbounds i8, ptr %108, i32 1
store ptr %109, ptr %5, align 8
br label %95, !llvm.loop !9
110: ; preds = %105
br label %15, !llvm.loop !10
111: ; preds = %15
store i32 0, ptr %4, align 4
br label %112
112: ; preds = %111, %91, %54, %13
%113 = load i32, ptr %4, align 4
ret i32 %113
}
declare i32 @charsequalcaseless(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmqthc7tt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MHD_str_has_token_caseless_(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 i64, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%11 = load i64, ptr %7, align 8
%12 = icmp eq i64 0, %11
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %125
14: ; preds = %3
%15 = load ptr, ptr %5, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 0, %17
br i1 %18, label %.lr.ph3, label %124
.lr.ph3: ; preds = %14
br label %19
19: ; preds = %.lr.ph3, %119
br label %20
20: ; preds = %37, %19
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 32, %23
br i1 %24, label %35, label %25
25: ; preds = %20
%26 = load ptr, ptr %5, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 9, %28
br i1 %29, label %35, label %30
30: ; preds = %25
%31 = load ptr, ptr %5, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 44, %33
br label %35
35: ; preds = %30, %25, %20
%36 = phi i1 [ true, %25 ], [ true, %20 ], [ %34, %30 ]
br i1 %36, label %37, label %40
37: ; preds = %35
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %5, align 8
br label %20, !llvm.loop !6
40: ; preds = %35
store i64 0, ptr %8, align 8
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %5, align 8
%43 = load i8, ptr %41, align 1
store i8 %43, ptr %9, align 1
%44 = load ptr, ptr %6, align 8
%45 = load i64, ptr %8, align 8
%46 = add i64 %45, 1
store i64 %46, ptr %8, align 8
%47 = getelementptr inbounds i8, ptr %44, i64 %45
%48 = load i8, ptr %47, align 1
store i8 %48, ptr %10, align 1
%49 = load i8, ptr %9, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 0, %50
br i1 %51, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %40
br label %65
52: ; preds = %71
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %5, align 8
%55 = load i8, ptr %53, align 1
store i8 %55, ptr %9, align 1
%56 = load ptr, ptr %6, align 8
%57 = load i64, ptr %8, align 8
%58 = add i64 %57, 1
store i64 %58, ptr %8, align 8
%59 = getelementptr inbounds i8, ptr %56, i64 %57
%60 = load i8, ptr %59, align 1
store i8 %60, ptr %10, align 1
%61 = load i8, ptr %9, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 0, %62
br i1 %63, label %._crit_edge1, label %65
._crit_edge: ; preds = %40
br label %64
._crit_edge1: ; preds = %52
br label %64
64: ; preds = %._crit_edge1, %._crit_edge
store i32 0, ptr %4, align 4
br label %125
65: ; preds = %.lr.ph, %52
%66 = load i8, ptr %9, align 1
%67 = load i8, ptr %10, align 1
%68 = call i32 @charsequalcaseless(i8 noundef signext %66, i8 noundef signext %67)
%69 = icmp ne i32 %68, 0
br i1 %69, label %71, label %70
70: ; preds = %65
br label %103
71: ; preds = %65
%72 = load i64, ptr %8, align 8
%73 = load i64, ptr %7, align 8
%74 = icmp uge i64 %72, %73
br i1 %74, label %75, label %52
75: ; preds = %71
br label %76
76: ; preds = %88, %75
%77 = load ptr, ptr %5, align 8
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp eq i32 32, %79
br i1 %80, label %86, label %81
81: ; preds = %76
%82 = load ptr, ptr %5, align 8
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 9, %84
br label %86
86: ; preds = %81, %76
%87 = phi i1 [ true, %76 ], [ %85, %81 ]
br i1 %87, label %88, label %91
88: ; preds = %86
%89 = load ptr, ptr %5, align 8
%90 = getelementptr inbounds i8, ptr %89, i32 1
store ptr %90, ptr %5, align 8
br label %76, !llvm.loop !8
91: ; preds = %86
%92 = load ptr, ptr %5, align 8
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp eq i32 0, %94
br i1 %95, label %101, label %96
96: ; preds = %91
%97 = load ptr, ptr %5, align 8
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = icmp eq i32 44, %99
br i1 %100, label %101, label %102
101: ; preds = %96, %91
store i32 1, ptr %4, align 4
br label %125
102: ; preds = %96
br label %103
103: ; preds = %102, %70
br label %104
104: ; preds = %116, %103
%105 = load ptr, ptr %5, align 8
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = icmp ne i32 0, %107
br i1 %108, label %109, label %114
109: ; preds = %104
%110 = load ptr, ptr %5, align 8
%111 = load i8, ptr %110, align 1
%112 = sext i8 %111 to i32
%113 = icmp ne i32 44, %112
br label %114
114: ; preds = %109, %104
%115 = phi i1 [ false, %104 ], [ %113, %109 ]
br i1 %115, label %116, label %119
116: ; preds = %114
%117 = load ptr, ptr %5, align 8
%118 = getelementptr inbounds i8, ptr %117, i32 1
store ptr %118, ptr %5, align 8
br label %104, !llvm.loop !9
119: ; preds = %114
%120 = load ptr, ptr %5, align 8
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = icmp ne i32 0, %122
br i1 %123, label %19, label %._crit_edge4, !llvm.loop !10
._crit_edge4: ; preds = %119
br label %124
124: ; preds = %._crit_edge4, %14
store i32 0, ptr %4, align 4
br label %125
125: ; preds = %124, %101, %64, %13
%126 = load i32, ptr %4, align 4
ret i32 %126
}
declare i32 @charsequalcaseless(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpnd1_a9u7.c'
source_filename = "/tmp/tmpnd1_a9u7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sinti.pi = internal constant double 0x400921FB54442D11, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sinti(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %2
br label %47
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = sdiv i32 %12, 2
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = sitofp i32 %15 to double
%17 = fdiv double 0x400921FB54442D11, %16
store double %17, ptr %7, align 8
store i32 0, ptr %5, align 4
br label %18
18: ; preds = %36, %11
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %39
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
%25 = sitofp i32 %24 to double
%26 = load double, ptr %7, align 8
%27 = fmul double %25, %26
%28 = fptosi double %27 to i32
%29 = call i32 @sin(i32 noundef %28)
%30 = mul nsw i32 2, %29
%31 = sitofp i32 %30 to double
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, ptr %32, i64 %34
store double %31, ptr %35, align 8
br label %36
36: ; preds = %22
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
br label %18, !llvm.loop !6
39: ; preds = %18
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, ptr %42, i64 %44
%46 = call i32 @rffti(i32 noundef %41, ptr noundef %45)
br label %47
47: ; preds = %39, %10
ret void
}
declare i32 @sin(i32 noundef) #1
declare i32 @rffti(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/tmpnd1_a9u7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sinti.pi = internal constant double 0x400921FB54442D11, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sinti(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %2
br label %49
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = sdiv i32 %12, 2
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = sitofp i32 %15 to double
%17 = fdiv double 0x400921FB54442D11, %16
store double %17, ptr %7, align 8
store i32 0, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %41
.lr.ph: ; preds = %11
br label %21
21: ; preds = %.lr.ph, %35
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
%24 = sitofp i32 %23 to double
%25 = load double, ptr %7, align 8
%26 = fmul double %24, %25
%27 = fptosi double %26 to i32
%28 = call i32 @sin(i32 noundef %27)
%29 = mul nsw i32 2, %28
%30 = sitofp i32 %29 to double
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
store double %30, ptr %34, align 8
br label %35
35: ; preds = %21
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %11
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 1
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %44, i64 %46
%48 = call i32 @rffti(i32 noundef %43, ptr noundef %47)
br label %49
49: ; preds = %41, %10
ret void
}
declare i32 @sin(i32 noundef) #1
declare i32 @rffti(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/tmp1rj4kjxr.c'
source_filename = "/tmp/tmp1rj4kjxr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"usage:./a.out number\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"the result is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %19
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 @factorial(i32 noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
store i32 0, ptr %3, align 4
br label %19
19: ; preds = %11, %9
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1rj4kjxr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"usage:./a.out number\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"the result is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %19
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 @factorial(i32 noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
store i32 0, ptr %3, align 4
br label %19
19: ; preds = %11, %9
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvhctegta.c'
source_filename = "/tmp/tmpvhctegta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"\0Anormal termination,exit status = %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"\0Aabnormal termination,signal number = %d %s\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"\0Achild stopped,signal no. = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pr_exit(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 i64 @WIFEXITED(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i32 @WEXITSTATUS(i32 noundef %7)
%9 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %8)
br label %28
10: ; preds = %1
%11 = load i32, ptr %2, align 4
%12 = call i64 @WIFSIGNALED(i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load i32, ptr %2, align 4
%16 = call i32 @WTERMSIG(i32 noundef %15)
%17 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %16, ptr noundef @.str.2)
br label %27
18: ; preds = %10
%19 = load i32, ptr %2, align 4
%20 = call i64 @WIFSTOPPED(i32 noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i32, ptr %2, align 4
%24 = call i32 @WSTOPSIG(i32 noundef %23)
%25 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %24)
br label %26
26: ; preds = %22, %18
br label %27
27: ; preds = %26, %14
br label %28
28: ; preds = %27, %6
ret void
}
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
declare i64 @WIFSIGNALED(i32 noundef) #1
declare i32 @WTERMSIG(i32 noundef) #1
declare i64 @WIFSTOPPED(i32 noundef) #1
declare i32 @WSTOPSIG(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/tmpvhctegta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"\0Anormal termination,exit status = %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"\0Aabnormal termination,signal number = %d %s\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"\0Achild stopped,signal no. = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pr_exit(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 i64 @WIFEXITED(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i32 @WEXITSTATUS(i32 noundef %7)
%9 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %8)
br label %28
10: ; preds = %1
%11 = load i32, ptr %2, align 4
%12 = call i64 @WIFSIGNALED(i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load i32, ptr %2, align 4
%16 = call i32 @WTERMSIG(i32 noundef %15)
%17 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %16, ptr noundef @.str.2)
br label %27
18: ; preds = %10
%19 = load i32, ptr %2, align 4
%20 = call i64 @WIFSTOPPED(i32 noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i32, ptr %2, align 4
%24 = call i32 @WSTOPSIG(i32 noundef %23)
%25 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %24)
br label %26
26: ; preds = %22, %18
br label %27
27: ; preds = %26, %14
br label %28
28: ; preds = %27, %6
ret void
}
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
declare i64 @WIFSIGNALED(i32 noundef) #1
declare i32 @WTERMSIG(i32 noundef) #1
declare i64 @WIFSTOPPED(i32 noundef) #1
declare i32 @WSTOPSIG(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/tmptmqp24w2.c'
source_filename = "/tmp/tmptmqp24w2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"%s %d: fork error\00", align 1
@.str.1 = private unnamed_addr constant [142 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/clpsz/linux-ipcs/refs/heads/master/IPC_mutex/main.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i64 (...) @fork()
store i64 %4, ptr %2, align 8
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %0
br label %7
7: ; preds = %6
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 66)
br label %10
10: ; preds = %7
%11 = call i32 @exit(i32 noundef -1) #3
unreachable
12: ; preds = %0
%13 = load i64, ptr %2, align 8
%14 = icmp sgt i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 (...) @parent()
%17 = call i32 @wait(ptr noundef %3)
br label %21
18: ; preds = %12
%19 = call i32 @usleep(i32 noundef 200)
%20 = call i32 (...) @child()
br label %21
21: ; preds = %18, %15
br label %22
22: ; preds = %21
%23 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @fork(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @parent(...) #1
declare i32 @wait(ptr noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @child(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmptmqp24w2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"%s %d: fork error\00", align 1
@.str.1 = private unnamed_addr constant [142 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/clpsz/linux-ipcs/refs/heads/master/IPC_mutex/main.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i64 (...) @fork()
store i64 %4, ptr %2, align 8
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %0
br label %7
7: ; preds = %6
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 66)
br label %10
10: ; preds = %7
%11 = call i32 @exit(i32 noundef -1) #3
unreachable
12: ; preds = %0
%13 = load i64, ptr %2, align 8
%14 = icmp sgt i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 (...) @parent()
%17 = call i32 @wait(ptr noundef %3)
br label %21
18: ; preds = %12
%19 = call i32 @usleep(i32 noundef 200)
%20 = call i32 (...) @child()
br label %21
21: ; preds = %18, %15
br label %22
22: ; preds = %21
%23 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @fork(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @parent(...) #1
declare i32 @wait(ptr noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @child(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp7te_b15b.c'
source_filename = "/tmp/tmp7te_b15b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@VIDIOC_QUERYCAP = 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/tmp7te_b15b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@VIDIOC_QUERYCAP = 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/tmpf8l0z8cp.c'
source_filename = "/tmp/tmpf8l0z8cp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @genericsTimestampuS() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%4 = load i64, ptr %3, align 8
%5 = mul nsw i64 %4, 1000000
%6 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%7 = load i64, ptr %6, align 8
%8 = add nsw i64 %5, %7
ret i64 %8
}
declare i32 @gettimeofday(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/tmpf8l0z8cp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @genericsTimestampuS() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%4 = load i64, ptr %3, align 8
%5 = mul nsw i64 %4, 1000000
%6 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%7 = load i64, ptr %6, align 8
%8 = add nsw i64 %5, %7
ret i64 %8
}
declare i32 @gettimeofday(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/tmpmbjylyjm.c'
source_filename = "/tmp/tmpmbjylyjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, ptr, ptr }
%struct.TYPE_2__ = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [41 x i8] c"client remote-ip remote-port local-port\0A\00", align 1
@AF_INET = dso_local global ptr null, align 8
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"setsockopt() failed\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Bind error:\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"Waiting for connection on port %s\0A\00", align 1
@FIONBIO = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [27 x i8] c"ioctl FIONBIO call failed\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Accepted.\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"\0A inet_pton error occured\0A\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"\0A Error : Could not create socket \0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"\0A Error : Connect Failed \0A\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"Connection %d connected\0A\00", align 1
@.str.10 = private unnamed_addr constant [22 x i8] c"%d %d %d - max_fd=%d\0A\00", align 1
@.str.11 = private unnamed_addr constant [27 x i8] c"Read %d bytes from sockfd\0A\00", align 1
@.str.12 = private unnamed_addr constant [38 x i8] c"Wrote %d bytes to connfd[0] - res=%d\0A\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"select failed\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"%d bits/s (%dKB/s)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [5 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %struct.sockaddr_in, align 8
%12 = alloca %struct.sockaddr_in, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca i32, align 4
%21 = alloca [5 x [1324 x i8]], align 16
%22 = alloca [5 x i32], align 16
%23 = alloca [1024 x i8], align 16
%24 = alloca i32, align 4
%25 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %14, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp ne i32 %26, 4
br i1 %27, label %28, label %31
28: ; preds = %2
%29 = load i32, ptr @stderr, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %300
31: ; preds = %2
%32 = call i32 @memset(ptr noundef %12, i32 noundef 48, i32 noundef 24)
%33 = load ptr, ptr @AF_INET, align 8
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 2
store ptr %33, ptr %34, align 8
%35 = load i32, ptr @INADDR_ANY, align 4
%36 = call i32 @htonl(i32 noundef %35)
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 0
%38 = getelementptr inbounds %struct.TYPE_2__, ptr %37, i32 0, i32 0
store i32 %36, ptr %38, align 8
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = call i32 @atoi(ptr noundef %41)
%43 = call ptr @htons(i32 noundef %42)
%44 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 1
store ptr %43, ptr %44, align 8
%45 = load ptr, ptr @AF_INET, align 8
%46 = load i32, ptr @SOCK_STREAM, align 4
%47 = call i32 @socket(ptr noundef %45, i32 noundef %46, i32 noundef 0)
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr @SOL_SOCKET, align 4
%50 = load i32, ptr @SO_REUSEADDR, align 4
%51 = call i32 @setsockopt(i32 noundef %48, i32 noundef %49, i32 noundef %50, ptr noundef %14, i32 noundef 4)
store i32 %51, ptr %15, align 4
%52 = load i32, ptr %15, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %31
%55 = call i32 @perror(ptr noundef @.str.1)
%56 = load i32, ptr %8, align 4
%57 = call i32 @close(i32 noundef %56)
%58 = call i32 @exit(i32 noundef -1) #3
unreachable
59: ; preds = %31
%60 = load i32, ptr %8, align 4
%61 = call i32 @bind(i32 noundef %60, ptr noundef %12, i32 noundef 24)
store i32 %61, ptr %13, align 4
%62 = load i32, ptr %13, align 4
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %59
%65 = call i32 @perror(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %300
66: ; preds = %59
%67 = load i32, ptr %8, align 4
%68 = call i32 @listen(i32 noundef %67, i32 noundef 10)
%69 = load i32, ptr @stderr, align 4
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 3
%72 = load ptr, ptr %71, align 8
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.3, ptr noundef %72)
%74 = load i32, ptr %8, align 4
%75 = call i32 @accept(i32 noundef %74, ptr noundef null, ptr noundef null)
store i32 %75, ptr %7, align 4
%76 = load i32, ptr %7, align 4
%77 = load i64, ptr @FIONBIO, align 8
%78 = trunc i64 %77 to i32
%79 = call i64 @ioctl(i32 noundef %76, i32 noundef %78, ptr noundef %14)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %66
%82 = load i32, ptr @stderr, align 4
%83 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %82, ptr noundef @.str.4)
br label %84
84: ; preds = %81, %66
%85 = load i32, ptr @stderr, align 4
%86 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %85, ptr noundef @.str.5)
%87 = call i32 @memset(ptr noundef %11, i32 noundef 48, i32 noundef 24)
%88 = load ptr, ptr @AF_INET, align 8
%89 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
store ptr %88, ptr %89, align 8
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds ptr, ptr %90, i64 2
%92 = load ptr, ptr %91, align 8
%93 = call i32 @atoi(ptr noundef %92)
%94 = call ptr @htons(i32 noundef %93)
%95 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
store ptr %94, ptr %95, align 8
%96 = load ptr, ptr @AF_INET, align 8
%97 = load ptr, ptr %5, align 8
%98 = getelementptr inbounds ptr, ptr %97, i64 1
%99 = load ptr, ptr %98, align 8
%100 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
%101 = call i64 @inet_pton(ptr noundef %96, ptr noundef %99, ptr noundef %100)
%102 = icmp sle i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %84
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %3, align 4
br label %300
105: ; preds = %84
store i32 0, ptr %9, align 4
br label %106
106: ; preds = %142, %105
%107 = load i32, ptr %9, align 4
%108 = icmp slt i32 %107, 5
br i1 %108, label %109, label %145
109: ; preds = %106
%110 = load ptr, ptr @AF_INET, align 8
%111 = load i32, ptr @SOCK_STREAM, align 4
%112 = call i32 @socket(ptr noundef %110, i32 noundef %111, i32 noundef 0)
%113 = load i32, ptr %9, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %114
store i32 %112, ptr %115, align 4
%116 = icmp slt i32 %112, 0
br i1 %116, label %117, label %119
117: ; preds = %109
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 1, ptr %3, align 4
br label %300
119: ; preds = %109
%120 = load i32, ptr %9, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %121
%123 = load i32, ptr %122, align 4
%124 = call i64 @connect(i32 noundef %123, ptr noundef %11, i32 noundef 24)
%125 = icmp slt i64 %124, 0
br i1 %125, label %126, label %128
126: ; preds = %119
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %300
128: ; preds = %119
store i32 1, ptr %16, align 4
%129 = load i32, ptr %9, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %130
%132 = load i32, ptr %131, align 4
%133 = load i64, ptr @FIONBIO, align 8
%134 = trunc i64 %133 to i32
%135 = call i64 @ioctl(i32 noundef %132, i32 noundef %134, ptr noundef %16)
%136 = icmp ne i64 %135, 0
br i1 %136, label %137, label %139
137: ; preds = %128
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %139
139: ; preds = %137, %128
%140 = load i32, ptr %9, align 4
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %140)
br label %142
142: ; preds = %139
%143 = load i32, ptr %9, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %9, align 4
br label %106, !llvm.loop !6
145: ; preds = %106
%146 = call i32 @FD_ZERO(ptr noundef %17)
store i32 0, ptr %18, align 4
store i32 0, ptr %9, align 4
br label %147
147: ; preds = %168, %145
%148 = load i32, ptr %9, align 4
%149 = icmp slt i32 %148, 5
br i1 %149, label %150, label %171
150: ; preds = %147
%151 = load i32, ptr %9, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %152
%154 = load i32, ptr %153, align 4
%155 = call i32 @FD_SET(i32 noundef %154, ptr noundef %17)
%156 = load i32, ptr %9, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %157
%159 = load i32, ptr %158, align 4
%160 = load i32, ptr %18, align 4
%161 = icmp sgt i32 %159, %160
br i1 %161, label %162, label %167
162: ; preds = %150
%163 = load i32, ptr %9, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %164
%166 = load i32, ptr %165, align 4
store i32 %166, ptr %18, align 4
br label %167
167: ; preds = %162, %150
br label %168
168: ; preds = %167
%169 = load i32, ptr %9, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %9, align 4
br label %147, !llvm.loop !8
171: ; preds = %147
%172 = load i32, ptr %18, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %18, align 4
%174 = load i32, ptr @stderr, align 4
%175 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%176 = load i32, ptr %175, align 16
%177 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
%178 = load i32, ptr %177, align 4
%179 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 2
%180 = load i32, ptr %179, align 8
%181 = load i32, ptr %18, align 4
%182 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %174, ptr noundef @.str.10, i32 noundef %176, i32 noundef %178, i32 noundef %180, i32 noundef %181)
%183 = call double (...) @get_time()
store double %183, ptr %19, align 8
store i32 0, ptr %20, align 4
store i32 0, ptr %9, align 4
br label %184
184: ; preds = %191, %171
%185 = load i32, ptr %9, align 4
%186 = icmp slt i32 %185, 5
br i1 %186, label %187, label %194
187: ; preds = %184
%188 = load i32, ptr %9, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %189
store i32 0, ptr %190, align 4
br label %191
191: ; preds = %187
%192 = load i32, ptr %9, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %9, align 4
br label %184, !llvm.loop !9
194: ; preds = %184
br label %195
195: ; preds = %194, %299
%196 = load i32, ptr %7, align 4
%197 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
%198 = call i32 (i32, ...) @read(i32 noundef %196, ptr noundef %197, i64 noundef 1024)
store i32 %198, ptr %10, align 4
%199 = load i32, ptr %10, align 4
%200 = icmp sgt i32 %199, 0
br i1 %200, label %201, label %214
201: ; preds = %195
%202 = load i32, ptr @stderr, align 4
%203 = load i32, ptr %10, align 4
%204 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %202, ptr noundef @.str.11, i32 noundef %203)
%205 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%206 = load i32, ptr %205, align 16
%207 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
%208 = load i32, ptr %10, align 4
%209 = call i32 @write(i32 noundef %206, ptr noundef %207, i32 noundef %208)
store i32 %209, ptr %24, align 4
%210 = load i32, ptr @stderr, align 4
%211 = load i32, ptr %10, align 4
%212 = load i32, ptr %24, align 4
%213 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %210, ptr noundef @.str.12, i32 noundef %211, i32 noundef %212)
br label %214
214: ; preds = %201, %195
%215 = load i32, ptr %18, align 4
%216 = call i32 @select(i32 noundef %215, ptr noundef %17, ptr noundef null, ptr noundef null, ptr noundef null)
store i32 %216, ptr %10, align 4
store i32 1, ptr %10, align 4
%217 = load i32, ptr %10, align 4
%218 = icmp slt i32 %217, 0
br i1 %218, label %219, label %221
219: ; preds = %214
%220 = call i32 @perror(ptr noundef @.str.13)
br label %286
221: ; preds = %214
store i32 0, ptr %9, align 4
br label %222
222: ; preds = %280, %221
%223 = load i32, ptr %9, align 4
%224 = icmp slt i32 %223, 5
br i1 %224, label %225, label %283
225: ; preds = %222
%226 = load i32, ptr %9, align 4
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %227
%229 = load i32, ptr %228, align 4
%230 = load i32, ptr %9, align 4
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds [5 x [1324 x i8]], ptr %21, i64 0, i64 %231
%233 = getelementptr inbounds [1324 x i8], ptr %232, i64 0, i64 0
%234 = load i32, ptr %9, align 4
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %235
%237 = load i32, ptr %236, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds i8, ptr %233, i64 %238
%240 = load i32, ptr %9, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %241
%243 = load i32, ptr %242, align 4
%244 = sub nsw i32 1324, %243
%245 = call i32 (i32, ...) @read(i32 noundef %229, ptr noundef %239, i32 noundef %244)
store i32 %245, ptr %10, align 4
%246 = load i32, ptr %10, align 4
%247 = icmp sgt i32 %246, 0
br i1 %247, label %248, label %279
248: ; preds = %225
%249 = load i32, ptr %10, align 4
%250 = load i32, ptr %20, align 4
%251 = add nsw i32 %250, %249
store i32 %251, ptr %20, align 4
%252 = load i32, ptr %10, align 4
%253 = load i32, ptr %9, align 4
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %254
%256 = load i32, ptr %255, align 4
%257 = add nsw i32 %256, %252
store i32 %257, ptr %255, align 4
%258 = load i32, ptr %9, align 4
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %259
%261 = load i32, ptr %260, align 4
%262 = icmp eq i32 %261, 1324
br i1 %262, label %263, label %278
263: ; preds = %248
%264 = load i32, ptr %9, align 4
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds [5 x [1324 x i8]], ptr %21, i64 0, i64 %265
%267 = getelementptr inbounds [1324 x i8], ptr %266, i64 0, i64 0
%268 = load i32, ptr %267, align 4
store i32 %268, ptr %25, align 4
%269 = load i32, ptr %25, align 4
%270 = load i32, ptr %9, align 4
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds [5 x [1324 x i8]], ptr %21, i64 0, i64 %271
%273 = getelementptr inbounds [1324 x i8], ptr %272, i64 0, i64 8
%274 = call i32 @add_to_queue(i32 noundef %269, ptr noundef %273)
%275 = load i32, ptr %9, align 4
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %276
store i32 0, ptr %277, align 4
br label %278
278: ; preds = %263, %248
br label %279
279: ; preds = %278, %225
br label %280
280: ; preds = %279
%281 = load i32, ptr %9, align 4
%282 = add nsw i32 %281, 1
store i32 %282, ptr %9, align 4
br label %222, !llvm.loop !10
283: ; preds = %222
%284 = load i32, ptr %7, align 4
%285 = call i32 @empty_queue(i32 noundef %284)
br label %286
286: ; preds = %283, %219
%287 = call double (...) @get_time()
%288 = load double, ptr %19, align 8
%289 = fadd double %288, 1.000000e+03
%290 = fcmp ogt double %287, %289
br i1 %290, label %291, label %299
291: ; preds = %286
%292 = load i32, ptr @stderr, align 4
%293 = load i32, ptr %20, align 4
%294 = mul nsw i32 %293, 8
%295 = load i32, ptr %20, align 4
%296 = sdiv i32 %295, 1024
%297 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %292, ptr noundef @.str.14, i32 noundef %294, i32 noundef %296)
store i32 0, ptr %20, align 4
%298 = call double (...) @get_time()
store double %298, ptr %19, align 8
br label %299
299: ; preds = %291, %286
br label %195
300: ; preds = %126, %117, %103, %64, %28
%301 = load i32, ptr %3, align 4
ret i32 %301
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare ptr @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @socket(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @inet_pton(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare double @get_time(...) #1
declare i32 @read(i32 noundef, ...) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @add_to_queue(i32 noundef, ptr noundef) #1
declare i32 @empty_queue(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmbjylyjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, ptr, ptr }
%struct.TYPE_2__ = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [41 x i8] c"client remote-ip remote-port local-port\0A\00", align 1
@AF_INET = dso_local global ptr null, align 8
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"setsockopt() failed\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Bind error:\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"Waiting for connection on port %s\0A\00", align 1
@FIONBIO = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [27 x i8] c"ioctl FIONBIO call failed\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Accepted.\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"\0A inet_pton error occured\0A\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"\0A Error : Could not create socket \0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"\0A Error : Connect Failed \0A\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"Connection %d connected\0A\00", align 1
@.str.10 = private unnamed_addr constant [22 x i8] c"%d %d %d - max_fd=%d\0A\00", align 1
@.str.11 = private unnamed_addr constant [27 x i8] c"Read %d bytes from sockfd\0A\00", align 1
@.str.12 = private unnamed_addr constant [38 x i8] c"Wrote %d bytes to connfd[0] - res=%d\0A\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"select failed\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"%d bits/s (%dKB/s)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [5 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %struct.sockaddr_in, align 8
%12 = alloca %struct.sockaddr_in, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca i32, align 4
%21 = alloca [5 x [1324 x i8]], align 16
%22 = alloca [5 x i32], align 16
%23 = alloca [1024 x i8], align 16
%24 = alloca i32, align 4
%25 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %14, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp ne i32 %26, 4
br i1 %27, label %28, label %31
28: ; preds = %2
%29 = load i32, ptr @stderr, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %304
31: ; preds = %2
%32 = call i32 @memset(ptr noundef %12, i32 noundef 48, i32 noundef 24)
%33 = load ptr, ptr @AF_INET, align 8
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 2
store ptr %33, ptr %34, align 8
%35 = load i32, ptr @INADDR_ANY, align 4
%36 = call i32 @htonl(i32 noundef %35)
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 0
%38 = getelementptr inbounds %struct.TYPE_2__, ptr %37, i32 0, i32 0
store i32 %36, ptr %38, align 8
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = call i32 @atoi(ptr noundef %41)
%43 = call ptr @htons(i32 noundef %42)
%44 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 1
store ptr %43, ptr %44, align 8
%45 = load ptr, ptr @AF_INET, align 8
%46 = load i32, ptr @SOCK_STREAM, align 4
%47 = call i32 @socket(ptr noundef %45, i32 noundef %46, i32 noundef 0)
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr @SOL_SOCKET, align 4
%50 = load i32, ptr @SO_REUSEADDR, align 4
%51 = call i32 @setsockopt(i32 noundef %48, i32 noundef %49, i32 noundef %50, ptr noundef %14, i32 noundef 4)
store i32 %51, ptr %15, align 4
%52 = load i32, ptr %15, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %31
%55 = call i32 @perror(ptr noundef @.str.1)
%56 = load i32, ptr %8, align 4
%57 = call i32 @close(i32 noundef %56)
%58 = call i32 @exit(i32 noundef -1) #3
unreachable
59: ; preds = %31
%60 = load i32, ptr %8, align 4
%61 = call i32 @bind(i32 noundef %60, ptr noundef %12, i32 noundef 24)
store i32 %61, ptr %13, align 4
%62 = load i32, ptr %13, align 4
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %59
%65 = call i32 @perror(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %304
66: ; preds = %59
%67 = load i32, ptr %8, align 4
%68 = call i32 @listen(i32 noundef %67, i32 noundef 10)
%69 = load i32, ptr @stderr, align 4
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 3
%72 = load ptr, ptr %71, align 8
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.3, ptr noundef %72)
%74 = load i32, ptr %8, align 4
%75 = call i32 @accept(i32 noundef %74, ptr noundef null, ptr noundef null)
store i32 %75, ptr %7, align 4
%76 = load i32, ptr %7, align 4
%77 = load i64, ptr @FIONBIO, align 8
%78 = trunc i64 %77 to i32
%79 = call i64 @ioctl(i32 noundef %76, i32 noundef %78, ptr noundef %14)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %66
%82 = load i32, ptr @stderr, align 4
%83 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %82, ptr noundef @.str.4)
br label %84
84: ; preds = %81, %66
%85 = load i32, ptr @stderr, align 4
%86 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %85, ptr noundef @.str.5)
%87 = call i32 @memset(ptr noundef %11, i32 noundef 48, i32 noundef 24)
%88 = load ptr, ptr @AF_INET, align 8
%89 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
store ptr %88, ptr %89, align 8
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds ptr, ptr %90, i64 2
%92 = load ptr, ptr %91, align 8
%93 = call i32 @atoi(ptr noundef %92)
%94 = call ptr @htons(i32 noundef %93)
%95 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
store ptr %94, ptr %95, align 8
%96 = load ptr, ptr @AF_INET, align 8
%97 = load ptr, ptr %5, align 8
%98 = getelementptr inbounds ptr, ptr %97, i64 1
%99 = load ptr, ptr %98, align 8
%100 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
%101 = call i64 @inet_pton(ptr noundef %96, ptr noundef %99, ptr noundef %100)
%102 = icmp sle i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %84
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %3, align 4
br label %304
105: ; preds = %84
store i32 0, ptr %9, align 4
%106 = load i32, ptr %9, align 4
%107 = icmp slt i32 %106, 5
br i1 %107, label %.lr.ph, label %146
.lr.ph: ; preds = %105
br label %108
108: ; preds = %.lr.ph, %141
%109 = load ptr, ptr @AF_INET, align 8
%110 = load i32, ptr @SOCK_STREAM, align 4
%111 = call i32 @socket(ptr noundef %109, i32 noundef %110, i32 noundef 0)
%112 = load i32, ptr %9, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %113
store i32 %111, ptr %114, align 4
%115 = icmp slt i32 %111, 0
br i1 %115, label %116, label %118
116: ; preds = %108
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 1, ptr %3, align 4
br label %304
118: ; preds = %108
%119 = load i32, ptr %9, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %120
%122 = load i32, ptr %121, align 4
%123 = call i64 @connect(i32 noundef %122, ptr noundef %11, i32 noundef 24)
%124 = icmp slt i64 %123, 0
br i1 %124, label %125, label %127
125: ; preds = %118
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %304
127: ; preds = %118
store i32 1, ptr %16, align 4
%128 = load i32, ptr %9, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %129
%131 = load i32, ptr %130, align 4
%132 = load i64, ptr @FIONBIO, align 8
%133 = trunc i64 %132 to i32
%134 = call i64 @ioctl(i32 noundef %131, i32 noundef %133, ptr noundef %16)
%135 = icmp ne i64 %134, 0
br i1 %135, label %136, label %138
136: ; preds = %127
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %138
138: ; preds = %136, %127
%139 = load i32, ptr %9, align 4
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %139)
br label %141
141: ; preds = %138
%142 = load i32, ptr %9, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %9, align 4
%144 = load i32, ptr %9, align 4
%145 = icmp slt i32 %144, 5
br i1 %145, label %108, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %141
br label %146
146: ; preds = %._crit_edge, %105
%147 = call i32 @FD_ZERO(ptr noundef %17)
store i32 0, ptr %18, align 4
store i32 0, ptr %9, align 4
%148 = load i32, ptr %9, align 4
%149 = icmp slt i32 %148, 5
br i1 %149, label %.lr.ph2, label %173
.lr.ph2: ; preds = %146
br label %150
150: ; preds = %.lr.ph2, %168
%151 = load i32, ptr %9, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %152
%154 = load i32, ptr %153, align 4
%155 = call i32 @FD_SET(i32 noundef %154, ptr noundef %17)
%156 = load i32, ptr %9, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %157
%159 = load i32, ptr %158, align 4
%160 = load i32, ptr %18, align 4
%161 = icmp sgt i32 %159, %160
br i1 %161, label %162, label %167
162: ; preds = %150
%163 = load i32, ptr %9, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %164
%166 = load i32, ptr %165, align 4
store i32 %166, ptr %18, align 4
br label %167
167: ; preds = %162, %150
br label %168
168: ; preds = %167
%169 = load i32, ptr %9, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %9, align 4
%171 = load i32, ptr %9, align 4
%172 = icmp slt i32 %171, 5
br i1 %172, label %150, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %168
br label %173
173: ; preds = %._crit_edge3, %146
%174 = load i32, ptr %18, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %18, align 4
%176 = load i32, ptr @stderr, align 4
%177 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%178 = load i32, ptr %177, align 16
%179 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
%180 = load i32, ptr %179, align 4
%181 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 2
%182 = load i32, ptr %181, align 8
%183 = load i32, ptr %18, align 4
%184 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %176, ptr noundef @.str.10, i32 noundef %178, i32 noundef %180, i32 noundef %182, i32 noundef %183)
%185 = call double (...) @get_time()
store double %185, ptr %19, align 8
store i32 0, ptr %20, align 4
store i32 0, ptr %9, align 4
%186 = load i32, ptr %9, align 4
%187 = icmp slt i32 %186, 5
br i1 %187, label %.lr.ph5, label %197
.lr.ph5: ; preds = %173
br label %188
188: ; preds = %.lr.ph5, %192
%189 = load i32, ptr %9, align 4
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %190
store i32 0, ptr %191, align 4
br label %192
192: ; preds = %188
%193 = load i32, ptr %9, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %9, align 4
%195 = load i32, ptr %9, align 4
%196 = icmp slt i32 %195, 5
br i1 %196, label %188, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %192
br label %197
197: ; preds = %._crit_edge6, %173
br label %198
198: ; preds = %303, %197
%199 = load i32, ptr %7, align 4
%200 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
%201 = call i32 (i32, ...) @read(i32 noundef %199, ptr noundef %200, i64 noundef 1024)
store i32 %201, ptr %10, align 4
%202 = load i32, ptr %10, align 4
%203 = icmp sgt i32 %202, 0
br i1 %203, label %204, label %217
204: ; preds = %198
%205 = load i32, ptr @stderr, align 4
%206 = load i32, ptr %10, align 4
%207 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %205, ptr noundef @.str.11, i32 noundef %206)
%208 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%209 = load i32, ptr %208, align 16
%210 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
%211 = load i32, ptr %10, align 4
%212 = call i32 @write(i32 noundef %209, ptr noundef %210, i32 noundef %211)
store i32 %212, ptr %24, align 4
%213 = load i32, ptr @stderr, align 4
%214 = load i32, ptr %10, align 4
%215 = load i32, ptr %24, align 4
%216 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %213, ptr noundef @.str.12, i32 noundef %214, i32 noundef %215)
br label %217
217: ; preds = %204, %198
%218 = load i32, ptr %18, align 4
%219 = call i32 @select(i32 noundef %218, ptr noundef %17, ptr noundef null, ptr noundef null, ptr noundef null)
store i32 %219, ptr %10, align 4
store i32 1, ptr %10, align 4
%220 = load i32, ptr %10, align 4
%221 = icmp slt i32 %220, 0
br i1 %221, label %222, label %224
222: ; preds = %217
%223 = call i32 @perror(ptr noundef @.str.13)
br label %290
224: ; preds = %217
store i32 0, ptr %9, align 4
%225 = load i32, ptr %9, align 4
%226 = icmp slt i32 %225, 5
br i1 %226, label %.lr.ph8, label %287
.lr.ph8: ; preds = %224
br label %227
227: ; preds = %.lr.ph8, %282
%228 = load i32, ptr %9, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %229
%231 = load i32, ptr %230, align 4
%232 = load i32, ptr %9, align 4
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds [5 x [1324 x i8]], ptr %21, i64 0, i64 %233
%235 = getelementptr inbounds [1324 x i8], ptr %234, i64 0, i64 0
%236 = load i32, ptr %9, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %237
%239 = load i32, ptr %238, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds i8, ptr %235, i64 %240
%242 = load i32, ptr %9, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %243
%245 = load i32, ptr %244, align 4
%246 = sub nsw i32 1324, %245
%247 = call i32 (i32, ...) @read(i32 noundef %231, ptr noundef %241, i32 noundef %246)
store i32 %247, ptr %10, align 4
%248 = load i32, ptr %10, align 4
%249 = icmp sgt i32 %248, 0
br i1 %249, label %250, label %281
250: ; preds = %227
%251 = load i32, ptr %10, align 4
%252 = load i32, ptr %20, align 4
%253 = add nsw i32 %252, %251
store i32 %253, ptr %20, align 4
%254 = load i32, ptr %10, align 4
%255 = load i32, ptr %9, align 4
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %256
%258 = load i32, ptr %257, align 4
%259 = add nsw i32 %258, %254
store i32 %259, ptr %257, align 4
%260 = load i32, ptr %9, align 4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %261
%263 = load i32, ptr %262, align 4
%264 = icmp eq i32 %263, 1324
br i1 %264, label %265, label %280
265: ; preds = %250
%266 = load i32, ptr %9, align 4
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds [5 x [1324 x i8]], ptr %21, i64 0, i64 %267
%269 = getelementptr inbounds [1324 x i8], ptr %268, i64 0, i64 0
%270 = load i32, ptr %269, align 4
store i32 %270, ptr %25, align 4
%271 = load i32, ptr %25, align 4
%272 = load i32, ptr %9, align 4
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds [5 x [1324 x i8]], ptr %21, i64 0, i64 %273
%275 = getelementptr inbounds [1324 x i8], ptr %274, i64 0, i64 8
%276 = call i32 @add_to_queue(i32 noundef %271, ptr noundef %275)
%277 = load i32, ptr %9, align 4
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %278
store i32 0, ptr %279, align 4
br label %280
280: ; preds = %265, %250
br label %281
281: ; preds = %280, %227
br label %282
282: ; preds = %281
%283 = load i32, ptr %9, align 4
%284 = add nsw i32 %283, 1
store i32 %284, ptr %9, align 4
%285 = load i32, ptr %9, align 4
%286 = icmp slt i32 %285, 5
br i1 %286, label %227, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %282
br label %287
287: ; preds = %._crit_edge9, %224
%288 = load i32, ptr %7, align 4
%289 = call i32 @empty_queue(i32 noundef %288)
br label %290
290: ; preds = %287, %222
%291 = call double (...) @get_time()
%292 = load double, ptr %19, align 8
%293 = fadd double %292, 1.000000e+03
%294 = fcmp ogt double %291, %293
br i1 %294, label %295, label %303
295: ; preds = %290
%296 = load i32, ptr @stderr, align 4
%297 = load i32, ptr %20, align 4
%298 = mul nsw i32 %297, 8
%299 = load i32, ptr %20, align 4
%300 = sdiv i32 %299, 1024
%301 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %296, ptr noundef @.str.14, i32 noundef %298, i32 noundef %300)
store i32 0, ptr %20, align 4
%302 = call double (...) @get_time()
store double %302, ptr %19, align 8
br label %303
303: ; preds = %295, %290
br label %198
304: ; preds = %125, %116, %103, %64, %28
%305 = load i32, ptr %3, align 4
ret i32 %305
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare ptr @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @socket(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @inet_pton(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare double @get_time(...) #1
declare i32 @read(i32 noundef, ...) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @add_to_queue(i32 noundef, ptr noundef) #1
declare i32 @empty_queue(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp5uecbd39.c'
source_filename = "/tmp/tmp5uecbd39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"%s <clave> <palabra a cifrar>\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"clave: '%s' no valida\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Se usara la clave '%s'\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Se encripto palabra '%s' -> '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %15)
store i32 1, ptr %3, align 4
br label %64
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %7, align 8
%24 = load ptr, ptr %7, align 8
%25 = call i64 @strlen(ptr noundef %24)
%26 = add nsw i64 %25, 1
%27 = call i64 @calloc(i32 noundef 1, i64 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %8, align 8
%29 = load ptr, ptr %7, align 8
%30 = call i64 @strlen(ptr noundef %29)
%31 = add nsw i64 %30, 1
%32 = call i64 @calloc(i32 noundef 1, i64 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %9, align 8
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %9, align 8
%36 = call i32 @normalizar(ptr noundef %34, ptr noundef %35)
%37 = load ptr, ptr %6, align 8
%38 = call i64 @validar_clave(ptr noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %17
%41 = load ptr, ptr %6, align 8
%42 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %41)
store i32 1, ptr %3, align 4
br label %64
43: ; preds = %17
%44 = load ptr, ptr %6, align 8
%45 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %44)
%46 = load ptr, ptr %6, align 8
%47 = load ptr, ptr %9, align 8
%48 = load ptr, ptr %8, align 8
%49 = call i32 @encrypt(ptr noundef %46, ptr noundef %47, ptr noundef %48)
%50 = load ptr, ptr %9, align 8
%51 = load ptr, ptr %8, align 8
%52 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %50, ptr noundef %51)
%53 = load ptr, ptr %6, align 8
%54 = load ptr, ptr %8, align 8
%55 = load ptr, ptr %9, align 8
%56 = call i32 @decrypt(ptr noundef %53, ptr noundef %54, ptr noundef %55)
%57 = load ptr, ptr %8, align 8
%58 = load ptr, ptr %9, align 8
%59 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %57, ptr noundef %58)
%60 = load ptr, ptr %8, align 8
%61 = call i32 @free(ptr noundef %60)
%62 = load ptr, ptr %9, align 8
%63 = call i32 @free(ptr noundef %62)
store i32 0, ptr %3, align 4
br label %64
64: ; preds = %43, %40, %12
%65 = load i32, ptr %3, align 4
ret i32 %65
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i64 @calloc(i32 noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @normalizar(ptr noundef, ptr noundef) #1
declare i64 @validar_clave(ptr noundef) #1
declare i32 @encrypt(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @decrypt(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5uecbd39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"%s <clave> <palabra a cifrar>\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"clave: '%s' no valida\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Se usara la clave '%s'\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Se encripto palabra '%s' -> '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %15)
store i32 1, ptr %3, align 4
br label %64
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %7, align 8
%24 = load ptr, ptr %7, align 8
%25 = call i64 @strlen(ptr noundef %24)
%26 = add nsw i64 %25, 1
%27 = call i64 @calloc(i32 noundef 1, i64 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %8, align 8
%29 = load ptr, ptr %7, align 8
%30 = call i64 @strlen(ptr noundef %29)
%31 = add nsw i64 %30, 1
%32 = call i64 @calloc(i32 noundef 1, i64 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %9, align 8
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %9, align 8
%36 = call i32 @normalizar(ptr noundef %34, ptr noundef %35)
%37 = load ptr, ptr %6, align 8
%38 = call i64 @validar_clave(ptr noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %17
%41 = load ptr, ptr %6, align 8
%42 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %41)
store i32 1, ptr %3, align 4
br label %64
43: ; preds = %17
%44 = load ptr, ptr %6, align 8
%45 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %44)
%46 = load ptr, ptr %6, align 8
%47 = load ptr, ptr %9, align 8
%48 = load ptr, ptr %8, align 8
%49 = call i32 @encrypt(ptr noundef %46, ptr noundef %47, ptr noundef %48)
%50 = load ptr, ptr %9, align 8
%51 = load ptr, ptr %8, align 8
%52 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %50, ptr noundef %51)
%53 = load ptr, ptr %6, align 8
%54 = load ptr, ptr %8, align 8
%55 = load ptr, ptr %9, align 8
%56 = call i32 @decrypt(ptr noundef %53, ptr noundef %54, ptr noundef %55)
%57 = load ptr, ptr %8, align 8
%58 = load ptr, ptr %9, align 8
%59 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %57, ptr noundef %58)
%60 = load ptr, ptr %8, align 8
%61 = call i32 @free(ptr noundef %60)
%62 = load ptr, ptr %9, align 8
%63 = call i32 @free(ptr noundef %62)
store i32 0, ptr %3, align 4
br label %64
64: ; preds = %43, %40, %12
%65 = load i32, ptr %3, align 4
ret i32 %65
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i64 @calloc(i32 noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @normalizar(ptr noundef, ptr noundef) #1
declare i64 @validar_clave(ptr noundef) #1
declare i32 @encrypt(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @decrypt(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpddn5q1i_.c'
source_filename = "/tmp/tmpddn5q1i_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @string_test()
%7 = call i32 (...) @expr_test()
%8 = call i32 (...) @scope_test()
%9 = call i32 (...) @forward_test()
%10 = call i32 (...) @funcptr_test()
%11 = call i32 (...) @loop_test()
%12 = call i32 (...) @goto_test()
%13 = call i32 (...) @enum_test()
%14 = call i32 (...) @typedef_test()
%15 = call i32 (...) @struct_test()
%16 = call i32 (...) @array_test()
%17 = call i32 (...) @expr_ptr_test()
%18 = call i32 (...) @bool_test()
%19 = call i32 (...) @expr2_test()
%20 = call i32 (...) @constant_expr_test()
%21 = call i32 (...) @expr_cmp_test()
%22 = call i32 (...) @char_short_test()
%23 = call i32 (...) @cast_test()
%24 = call i32 (...) @longlong_test()
%25 = call i32 (...) @stdarg_test()
%26 = call i32 (...) @relocation_test()
%27 = call i32 (...) @sizeof_test()
%28 = call i32 (...) @global_data_test()
ret i32 0
}
declare i32 @string_test(...) #1
declare i32 @expr_test(...) #1
declare i32 @scope_test(...) #1
declare i32 @forward_test(...) #1
declare i32 @funcptr_test(...) #1
declare i32 @loop_test(...) #1
declare i32 @goto_test(...) #1
declare i32 @enum_test(...) #1
declare i32 @typedef_test(...) #1
declare i32 @struct_test(...) #1
declare i32 @array_test(...) #1
declare i32 @expr_ptr_test(...) #1
declare i32 @bool_test(...) #1
declare i32 @expr2_test(...) #1
declare i32 @constant_expr_test(...) #1
declare i32 @expr_cmp_test(...) #1
declare i32 @char_short_test(...) #1
declare i32 @cast_test(...) #1
declare i32 @longlong_test(...) #1
declare i32 @stdarg_test(...) #1
declare i32 @relocation_test(...) #1
declare i32 @sizeof_test(...) #1
declare i32 @global_data_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpddn5q1i_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @string_test()
%7 = call i32 (...) @expr_test()
%8 = call i32 (...) @scope_test()
%9 = call i32 (...) @forward_test()
%10 = call i32 (...) @funcptr_test()
%11 = call i32 (...) @loop_test()
%12 = call i32 (...) @goto_test()
%13 = call i32 (...) @enum_test()
%14 = call i32 (...) @typedef_test()
%15 = call i32 (...) @struct_test()
%16 = call i32 (...) @array_test()
%17 = call i32 (...) @expr_ptr_test()
%18 = call i32 (...) @bool_test()
%19 = call i32 (...) @expr2_test()
%20 = call i32 (...) @constant_expr_test()
%21 = call i32 (...) @expr_cmp_test()
%22 = call i32 (...) @char_short_test()
%23 = call i32 (...) @cast_test()
%24 = call i32 (...) @longlong_test()
%25 = call i32 (...) @stdarg_test()
%26 = call i32 (...) @relocation_test()
%27 = call i32 (...) @sizeof_test()
%28 = call i32 (...) @global_data_test()
ret i32 0
}
declare i32 @string_test(...) #1
declare i32 @expr_test(...) #1
declare i32 @scope_test(...) #1
declare i32 @forward_test(...) #1
declare i32 @funcptr_test(...) #1
declare i32 @loop_test(...) #1
declare i32 @goto_test(...) #1
declare i32 @enum_test(...) #1
declare i32 @typedef_test(...) #1
declare i32 @struct_test(...) #1
declare i32 @array_test(...) #1
declare i32 @expr_ptr_test(...) #1
declare i32 @bool_test(...) #1
declare i32 @expr2_test(...) #1
declare i32 @constant_expr_test(...) #1
declare i32 @expr_cmp_test(...) #1
declare i32 @char_short_test(...) #1
declare i32 @cast_test(...) #1
declare i32 @longlong_test(...) #1
declare i32 @stdarg_test(...) #1
declare i32 @relocation_test(...) #1
declare i32 @sizeof_test(...) #1
declare i32 @global_data_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpis9qf4d4.c'
source_filename = "/tmp/tmpis9qf4d4.c"
target datalayout = "e-m:e-p270: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/tmpis9qf4d4.c"
target datalayout = "e-m:e-p270: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/tmpkts3zsla.c'
source_filename = "/tmp/tmpkts3zsla.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @a3_error(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 @as3_error(ptr noundef @.str, ptr noundef %3)
ret i32 0
}
declare i32 @as3_error(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/tmpkts3zsla.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @a3_error(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 @as3_error(ptr noundef @.str, ptr noundef %3)
ret i32 0
}
declare i32 @as3_error(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/tmpv17_8cly.c'
source_filename = "/tmp/tmpv17_8cly.c"
target datalayout = "e-m:e-p270: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/tmpv17_8cly.c"
target datalayout = "e-m:e-p270: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/tmp205fdqvw.c'
source_filename = "/tmp/tmp205fdqvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @int2str(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call i64 @malloc(i32 noundef 25)
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %2, align 4
%8 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
ret ptr %9
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(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/tmp205fdqvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @int2str(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call i64 @malloc(i32 noundef 25)
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %2, align 4
%8 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
ret ptr %9
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(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/tmpd6ubjvvf.c'
source_filename = "/tmp/tmpd6ubjvvf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ap_str_skip_word(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %29
6: ; preds = %1
br label %7
7: ; preds = %25, %6
%8 = load ptr, ptr %2, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 32
br i1 %11, label %12, label %22
12: ; preds = %7
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 9
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load ptr, ptr %2, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br label %22
22: ; preds = %17, %12, %7
%23 = phi i1 [ false, %12 ], [ false, %7 ], [ %21, %17 ]
br i1 %23, label %24, label %28
24: ; preds = %22
br label %25
25: ; preds = %24
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %2, align 8
br label %7, !llvm.loop !6
28: ; preds = %22
br label %29
29: ; preds = %28, %5
%30 = load ptr, ptr %2, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpd6ubjvvf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ap_str_skip_word(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %29
6: ; preds = %1
br label %7
7: ; preds = %25, %6
%8 = load ptr, ptr %2, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 32
br i1 %11, label %12, label %22
12: ; preds = %7
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 9
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load ptr, ptr %2, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br label %22
22: ; preds = %17, %12, %7
%23 = phi i1 [ false, %12 ], [ false, %7 ], [ %21, %17 ]
br i1 %23, label %24, label %28
24: ; preds = %22
br label %25
25: ; preds = %24
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %2, align 8
br label %7, !llvm.loop !6
28: ; preds = %22
br label %29
29: ; preds = %28, %5
%30 = load ptr, ptr %2, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpk96cr6he.c'
source_filename = "/tmp/tmpk96cr6he.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@setenv.alloced = internal global i32 0, align 4
@environ = external global ptr, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setenv(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 61
br i1 %16, label %17, label %20
17: ; preds = %3
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %6, align 8
br label %20
20: ; preds = %17, %3
%21 = load ptr, ptr %6, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %9, align 4
%23 = load ptr, ptr %5, align 8
%24 = call ptr @__findenv(ptr noundef %23, ptr noundef %10)
store ptr %24, ptr %8, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %46
26: ; preds = %20
%27 = load i32, ptr %7, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %26
store i32 0, ptr %4, align 4
br label %173
30: ; preds = %26
%31 = load ptr, ptr %8, align 8
%32 = call i32 @strlen(ptr noundef %31)
%33 = load i32, ptr %9, align 4
%34 = icmp sge i32 %32, %33
br i1 %34, label %35, label %45
35: ; preds = %30
br label %36
36: ; preds = %43, %35
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %6, align 8
%39 = load i8, ptr %37, align 1
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %8, align 8
store i8 %39, ptr %40, align 1
%42 = icmp ne i8 %39, 0
br i1 %42, label %43, label %44
43: ; preds = %36
br label %36, !llvm.loop !6
44: ; preds = %36
store i32 0, ptr %4, align 4
br label %173
45: ; preds = %30
br label %100
46: ; preds = %20
%47 = load ptr, ptr @environ, align 8
store ptr %47, ptr %12, align 8
store i32 0, ptr %11, align 4
br label %48
48: ; preds = %53, %46
%49 = load ptr, ptr %12, align 8
%50 = load ptr, ptr %49, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %52, label %58
52: ; preds = %48
br label %53
53: ; preds = %52
%54 = load ptr, ptr %12, align 8
%55 = getelementptr inbounds ptr, ptr %54, i32 1
store ptr %55, ptr %12, align 8
%56 = load i32, ptr %11, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %11, align 4
br label %48, !llvm.loop !8
58: ; preds = %48
%59 = load i32, ptr @setenv.alloced, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %74
61: ; preds = %58
%62 = load ptr, ptr @environ, align 8
%63 = load i32, ptr %11, align 4
%64 = add nsw i32 %63, 2
%65 = sext i32 %64 to i64
%66 = mul i64 8, %65
%67 = call i64 @realloc(ptr noundef %62, i64 noundef %66)
%68 = inttoptr i64 %67 to ptr
store ptr %68, ptr %12, align 8
%69 = load ptr, ptr %12, align 8
%70 = icmp ne ptr %69, null
br i1 %70, label %72, label %71
71: ; preds = %61
store i32 -1, ptr %4, align 4
br label %173
72: ; preds = %61
%73 = load ptr, ptr %12, align 8
store ptr %73, ptr @environ, align 8
br label %93
74: ; preds = %58
store i32 1, ptr @setenv.alloced, align 4
%75 = load i32, ptr %11, align 4
%76 = add nsw i32 %75, 2
%77 = sext i32 %76 to i64
%78 = mul i64 8, %77
%79 = call i64 @malloc(i64 noundef %78)
%80 = inttoptr i64 %79 to ptr
store ptr %80, ptr %12, align 8
%81 = load ptr, ptr %12, align 8
%82 = icmp ne ptr %81, null
br i1 %82, label %84, label %83
83: ; preds = %74
store i32 -1, ptr %4, align 4
br label %173
84: ; preds = %74
%85 = load ptr, ptr %12, align 8
%86 = load ptr, ptr @environ, align 8
%87 = load i32, ptr %11, align 4
%88 = sext i32 %87 to i64
%89 = mul i64 %88, 8
%90 = trunc i64 %89 to i32
%91 = call i32 @memmove(ptr noundef %85, ptr noundef %86, i32 noundef %90)
%92 = load ptr, ptr %12, align 8
store ptr %92, ptr @environ, align 8
br label %93
93: ; preds = %84, %72
%94 = load ptr, ptr @environ, align 8
%95 = load i32, ptr %11, align 4
%96 = add nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %94, i64 %97
store ptr null, ptr %98, align 8
%99 = load i32, ptr %11, align 4
store i32 %99, ptr %10, align 4
br label %100
100: ; preds = %93, %45
%101 = load ptr, ptr %5, align 8
store ptr %101, ptr %8, align 8
br label %102
102: ; preds = %115, %100
%103 = load ptr, ptr %8, align 8
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %112
107: ; preds = %102
%108 = load ptr, ptr %8, align 8
%109 = load i8, ptr %108, align 1
%110 = sext i8 %109 to i32
%111 = icmp ne i32 %110, 61
br label %112
112: ; preds = %107, %102
%113 = phi i1 [ false, %102 ], [ %111, %107 ]
br i1 %113, label %114, label %118
114: ; preds = %112
br label %115
115: ; preds = %114
%116 = load ptr, ptr %8, align 8
%117 = getelementptr inbounds i8, ptr %116, i32 1
store ptr %117, ptr %8, align 8
br label %102, !llvm.loop !9
118: ; preds = %112
%119 = load ptr, ptr %8, align 8
%120 = load ptr, ptr %5, align 8
%121 = ptrtoint ptr %119 to i64
%122 = ptrtoint ptr %120 to i64
%123 = sub i64 %121, %122
%124 = trunc i64 %123 to i32
%125 = load i32, ptr %9, align 4
%126 = add nsw i32 %124, %125
%127 = add nsw i32 %126, 2
%128 = sext i32 %127 to i64
%129 = call i64 @malloc(i64 noundef %128)
%130 = inttoptr i64 %129 to ptr
%131 = load ptr, ptr @environ, align 8
%132 = load i32, ptr %10, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds ptr, ptr %131, i64 %133
store ptr %130, ptr %134, align 8
%135 = icmp ne ptr %130, null
br i1 %135, label %137, label %136
136: ; preds = %118
store i32 -1, ptr %4, align 4
br label %173
137: ; preds = %118
%138 = load ptr, ptr @environ, align 8
%139 = load i32, ptr %10, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds ptr, ptr %138, i64 %140
%142 = load ptr, ptr %141, align 8
store ptr %142, ptr %8, align 8
br label %143
143: ; preds = %158, %137
%144 = load ptr, ptr %5, align 8
%145 = getelementptr inbounds i8, ptr %144, i32 1
store ptr %145, ptr %5, align 8
%146 = load i8, ptr %144, align 1
%147 = load ptr, ptr %8, align 8
store i8 %146, ptr %147, align 1
%148 = sext i8 %146 to i32
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %155
150: ; preds = %143
%151 = load ptr, ptr %8, align 8
%152 = load i8, ptr %151, align 1
%153 = sext i8 %152 to i32
%154 = icmp ne i32 %153, 61
br label %155
155: ; preds = %150, %143
%156 = phi i1 [ false, %143 ], [ %154, %150 ]
br i1 %156, label %157, label %161
157: ; preds = %155
br label %158
158: ; preds = %157
%159 = load ptr, ptr %8, align 8
%160 = getelementptr inbounds i8, ptr %159, i32 1
store ptr %160, ptr %8, align 8
br label %143, !llvm.loop !10
161: ; preds = %155
%162 = load ptr, ptr %8, align 8
%163 = getelementptr inbounds i8, ptr %162, i32 1
store ptr %163, ptr %8, align 8
store i8 61, ptr %162, align 1
br label %164
164: ; preds = %171, %161
%165 = load ptr, ptr %6, align 8
%166 = getelementptr inbounds i8, ptr %165, i32 1
store ptr %166, ptr %6, align 8
%167 = load i8, ptr %165, align 1
%168 = load ptr, ptr %8, align 8
%169 = getelementptr inbounds i8, ptr %168, i32 1
store ptr %169, ptr %8, align 8
store i8 %167, ptr %168, align 1
%170 = icmp ne i8 %167, 0
br i1 %170, label %171, label %172
171: ; preds = %164
br label %164, !llvm.loop !11
172: ; preds = %164
store i32 0, ptr %4, align 4
br label %173
173: ; preds = %172, %136, %83, %71, %44, %29
%174 = load i32, ptr %4, align 4
ret i32 %174
}
declare i32 @strlen(ptr noundef) #1
declare ptr @__findenv(ptr noundef, ptr noundef) #1
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk96cr6he.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@setenv.alloced = internal global i32 0, align 4
@environ = external global ptr, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setenv(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 61
br i1 %16, label %17, label %20
17: ; preds = %3
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %6, align 8
br label %20
20: ; preds = %17, %3
%21 = load ptr, ptr %6, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %9, align 4
%23 = load ptr, ptr %5, align 8
%24 = call ptr @__findenv(ptr noundef %23, ptr noundef %10)
store ptr %24, ptr %8, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %45
26: ; preds = %20
%27 = load i32, ptr %7, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %26
store i32 0, ptr %4, align 4
br label %173
30: ; preds = %26
%31 = load ptr, ptr %8, align 8
%32 = call i32 @strlen(ptr noundef %31)
%33 = load i32, ptr %9, align 4
%34 = icmp sge i32 %32, %33
br i1 %34, label %35, label %44
35: ; preds = %30
br label %36
36: ; preds = %36, %35
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %6, align 8
%39 = load i8, ptr %37, align 1
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %8, align 8
store i8 %39, ptr %40, align 1
%42 = icmp ne i8 %39, 0
br i1 %42, label %36, label %43, !llvm.loop !6
43: ; preds = %36
store i32 0, ptr %4, align 4
br label %173
44: ; preds = %30
br label %101
45: ; preds = %20
%46 = load ptr, ptr @environ, align 8
store ptr %46, ptr %12, align 8
store i32 0, ptr %11, align 4
%47 = load ptr, ptr %12, align 8
%48 = load ptr, ptr %47, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %.lr.ph, label %59
.lr.ph: ; preds = %45
br label %50
50: ; preds = %.lr.ph, %51
br label %51
51: ; preds = %50
%52 = load ptr, ptr %12, align 8
%53 = getelementptr inbounds ptr, ptr %52, i32 1
store ptr %53, ptr %12, align 8
%54 = load i32, ptr %11, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %11, align 4
%56 = load ptr, ptr %12, align 8
%57 = load ptr, ptr %56, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %50, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %51
br label %59
59: ; preds = %._crit_edge, %45
%60 = load i32, ptr @setenv.alloced, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %75
62: ; preds = %59
%63 = load ptr, ptr @environ, align 8
%64 = load i32, ptr %11, align 4
%65 = add nsw i32 %64, 2
%66 = sext i32 %65 to i64
%67 = mul i64 8, %66
%68 = call i64 @realloc(ptr noundef %63, i64 noundef %67)
%69 = inttoptr i64 %68 to ptr
store ptr %69, ptr %12, align 8
%70 = load ptr, ptr %12, align 8
%71 = icmp ne ptr %70, null
br i1 %71, label %73, label %72
72: ; preds = %62
store i32 -1, ptr %4, align 4
br label %173
73: ; preds = %62
%74 = load ptr, ptr %12, align 8
store ptr %74, ptr @environ, align 8
br label %94
75: ; preds = %59
store i32 1, ptr @setenv.alloced, align 4
%76 = load i32, ptr %11, align 4
%77 = add nsw i32 %76, 2
%78 = sext i32 %77 to i64
%79 = mul i64 8, %78
%80 = call i64 @malloc(i64 noundef %79)
%81 = inttoptr i64 %80 to ptr
store ptr %81, ptr %12, align 8
%82 = load ptr, ptr %12, align 8
%83 = icmp ne ptr %82, null
br i1 %83, label %85, label %84
84: ; preds = %75
store i32 -1, ptr %4, align 4
br label %173
85: ; preds = %75
%86 = load ptr, ptr %12, align 8
%87 = load ptr, ptr @environ, align 8
%88 = load i32, ptr %11, align 4
%89 = sext i32 %88 to i64
%90 = mul i64 %89, 8
%91 = trunc i64 %90 to i32
%92 = call i32 @memmove(ptr noundef %86, ptr noundef %87, i32 noundef %91)
%93 = load ptr, ptr %12, align 8
store ptr %93, ptr @environ, align 8
br label %94
94: ; preds = %85, %73
%95 = load ptr, ptr @environ, align 8
%96 = load i32, ptr %11, align 4
%97 = add nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds ptr, ptr %95, i64 %98
store ptr null, ptr %99, align 8
%100 = load i32, ptr %11, align 4
store i32 %100, ptr %10, align 4
br label %101
101: ; preds = %94, %44
%102 = load ptr, ptr %5, align 8
store ptr %102, ptr %8, align 8
br label %103
103: ; preds = %116, %101
%104 = load ptr, ptr %8, align 8
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %113
108: ; preds = %103
%109 = load ptr, ptr %8, align 8
%110 = load i8, ptr %109, align 1
%111 = sext i8 %110 to i32
%112 = icmp ne i32 %111, 61
br label %113
113: ; preds = %108, %103
%114 = phi i1 [ false, %103 ], [ %112, %108 ]
br i1 %114, label %115, label %119
115: ; preds = %113
br label %116
116: ; preds = %115
%117 = load ptr, ptr %8, align 8
%118 = getelementptr inbounds i8, ptr %117, i32 1
store ptr %118, ptr %8, align 8
br label %103, !llvm.loop !9
119: ; preds = %113
%120 = load ptr, ptr %8, align 8
%121 = load ptr, ptr %5, align 8
%122 = ptrtoint ptr %120 to i64
%123 = ptrtoint ptr %121 to i64
%124 = sub i64 %122, %123
%125 = trunc i64 %124 to i32
%126 = load i32, ptr %9, align 4
%127 = add nsw i32 %125, %126
%128 = add nsw i32 %127, 2
%129 = sext i32 %128 to i64
%130 = call i64 @malloc(i64 noundef %129)
%131 = inttoptr i64 %130 to ptr
%132 = load ptr, ptr @environ, align 8
%133 = load i32, ptr %10, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds ptr, ptr %132, i64 %134
store ptr %131, ptr %135, align 8
%136 = icmp ne ptr %131, null
br i1 %136, label %138, label %137
137: ; preds = %119
store i32 -1, ptr %4, align 4
br label %173
138: ; preds = %119
%139 = load ptr, ptr @environ, align 8
%140 = load i32, ptr %10, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds ptr, ptr %139, i64 %141
%143 = load ptr, ptr %142, align 8
store ptr %143, ptr %8, align 8
br label %144
144: ; preds = %159, %138
%145 = load ptr, ptr %5, align 8
%146 = getelementptr inbounds i8, ptr %145, i32 1
store ptr %146, ptr %5, align 8
%147 = load i8, ptr %145, align 1
%148 = load ptr, ptr %8, align 8
store i8 %147, ptr %148, align 1
%149 = sext i8 %147 to i32
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %156
151: ; preds = %144
%152 = load ptr, ptr %8, align 8
%153 = load i8, ptr %152, align 1
%154 = sext i8 %153 to i32
%155 = icmp ne i32 %154, 61
br label %156
156: ; preds = %151, %144
%157 = phi i1 [ false, %144 ], [ %155, %151 ]
br i1 %157, label %158, label %162
158: ; preds = %156
br label %159
159: ; preds = %158
%160 = load ptr, ptr %8, align 8
%161 = getelementptr inbounds i8, ptr %160, i32 1
store ptr %161, ptr %8, align 8
br label %144, !llvm.loop !10
162: ; preds = %156
%163 = load ptr, ptr %8, align 8
%164 = getelementptr inbounds i8, ptr %163, i32 1
store ptr %164, ptr %8, align 8
store i8 61, ptr %163, align 1
br label %165
165: ; preds = %165, %162
%166 = load ptr, ptr %6, align 8
%167 = getelementptr inbounds i8, ptr %166, i32 1
store ptr %167, ptr %6, align 8
%168 = load i8, ptr %166, align 1
%169 = load ptr, ptr %8, align 8
%170 = getelementptr inbounds i8, ptr %169, i32 1
store ptr %170, ptr %8, align 8
store i8 %168, ptr %169, align 1
%171 = icmp ne i8 %168, 0
br i1 %171, label %165, label %172, !llvm.loop !11
172: ; preds = %165
store i32 0, ptr %4, align 4
br label %173
173: ; preds = %172, %137, %84, %72, %43, %29
%174 = load i32, ptr %4, align 4
ret i32 %174
}
declare i32 @strlen(ptr noundef) #1
declare ptr @__findenv(ptr noundef, ptr noundef) #1
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmps5q0j1me.c'
source_filename = "/tmp/tmps5q0j1me.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FP_NORMAL = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isnormal(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 i64 @fpclassify(double noundef %3)
%5 = load i64, ptr @FP_NORMAL, align 8
%6 = icmp eq i64 %4, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i64 @fpclassify(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/tmps5q0j1me.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FP_NORMAL = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isnormal(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 i64 @fpclassify(double noundef %3)
%5 = load i64, ptr @FP_NORMAL, align 8
%6 = icmp eq i64 %4, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i64 @fpclassify(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/tmple5rdcao.c'
source_filename = "/tmp/tmple5rdcao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = load i32, ptr @EOF, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmple5rdcao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = load i32, ptr @EOF, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5cfzb7v6.c'
source_filename = "/tmp/tmp5cfzb7v6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qsort(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca [40 x ptr], align 16
%15 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%16 = load i64, ptr %7, align 8
%17 = mul i64 7, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %11, align 4
%19 = load ptr, ptr %5, align 8
store ptr %19, ptr %12, align 8
%20 = load ptr, ptr %12, align 8
%21 = load i64, ptr %6, align 8
%22 = load i64, ptr %7, align 8
%23 = mul i64 %21, %22
%24 = getelementptr inbounds i8, ptr %20, i64 %23
store ptr %24, ptr %13, align 8
%25 = getelementptr inbounds [40 x ptr], ptr %14, i64 0, i64 0
store ptr %25, ptr %15, align 8
br label %26
26: ; preds = %217, %4
%27 = load ptr, ptr %13, align 8
%28 = load ptr, ptr %12, align 8
%29 = ptrtoint ptr %27 to i64
%30 = ptrtoint ptr %28 to i64
%31 = sub i64 %29, %30
%32 = load i32, ptr %11, align 4
%33 = sext i32 %32 to i64
%34 = icmp sgt i64 %31, %33
br i1 %34, label %35, label %161
35: ; preds = %26
%36 = load ptr, ptr %12, align 8
%37 = load i64, ptr %7, align 8
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store ptr %38, ptr %9, align 8
%39 = load ptr, ptr %13, align 8
%40 = load i64, ptr %7, align 8
%41 = sub i64 0, %40
%42 = getelementptr inbounds i8, ptr %39, i64 %41
store ptr %42, ptr %10, align 8
%43 = load ptr, ptr %13, align 8
%44 = load ptr, ptr %12, align 8
%45 = ptrtoint ptr %43 to i64
%46 = ptrtoint ptr %44 to i64
%47 = sub i64 %45, %46
%48 = load i64, ptr %7, align 8
%49 = udiv i64 %47, %48
%50 = udiv i64 %49, 2
%51 = load i64, ptr %7, align 8
%52 = mul i64 %50, %51
%53 = load ptr, ptr %12, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 %52
%55 = load ptr, ptr %12, align 8
%56 = load i64, ptr %7, align 8
%57 = call i32 @memswp(ptr noundef %54, ptr noundef %55, i64 noundef %56)
%58 = load ptr, ptr %8, align 8
%59 = load ptr, ptr %9, align 8
%60 = load ptr, ptr %10, align 8
%61 = call i32 %58(ptr noundef %59, ptr noundef %60)
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %68
63: ; preds = %35
%64 = load ptr, ptr %9, align 8
%65 = load ptr, ptr %10, align 8
%66 = load i64, ptr %7, align 8
%67 = call i32 @memswp(ptr noundef %64, ptr noundef %65, i64 noundef %66)
br label %68
68: ; preds = %63, %35
%69 = load ptr, ptr %8, align 8
%70 = load ptr, ptr %12, align 8
%71 = load ptr, ptr %10, align 8
%72 = call i32 %69(ptr noundef %70, ptr noundef %71)
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %79
74: ; preds = %68
%75 = load ptr, ptr %12, align 8
%76 = load ptr, ptr %10, align 8
%77 = load i64, ptr %7, align 8
%78 = call i32 @memswp(ptr noundef %75, ptr noundef %76, i64 noundef %77)
br label %79
79: ; preds = %74, %68
%80 = load ptr, ptr %8, align 8
%81 = load ptr, ptr %9, align 8
%82 = load ptr, ptr %12, align 8
%83 = call i32 %80(ptr noundef %81, ptr noundef %82)
%84 = icmp sgt i32 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %79
%86 = load ptr, ptr %9, align 8
%87 = load ptr, ptr %12, align 8
%88 = load i64, ptr %7, align 8
%89 = call i32 @memswp(ptr noundef %86, ptr noundef %87, i64 noundef %88)
br label %90
90: ; preds = %85, %79
br label %91
91: ; preds = %119, %90
br label %92
92: ; preds = %96, %91
%93 = load i64, ptr %7, align 8
%94 = load ptr, ptr %9, align 8
%95 = getelementptr inbounds i8, ptr %94, i64 %93
store ptr %95, ptr %9, align 8
br label %96
96: ; preds = %92
%97 = load ptr, ptr %8, align 8
%98 = load ptr, ptr %9, align 8
%99 = load ptr, ptr %12, align 8
%100 = call i32 %97(ptr noundef %98, ptr noundef %99)
%101 = icmp slt i32 %100, 0
br i1 %101, label %92, label %102, !llvm.loop !6
102: ; preds = %96
br label %103
103: ; preds = %108, %102
%104 = load i64, ptr %7, align 8
%105 = load ptr, ptr %10, align 8
%106 = sub i64 0, %104
%107 = getelementptr inbounds i8, ptr %105, i64 %106
store ptr %107, ptr %10, align 8
br label %108
108: ; preds = %103
%109 = load ptr, ptr %8, align 8
%110 = load ptr, ptr %10, align 8
%111 = load ptr, ptr %12, align 8
%112 = call i32 %109(ptr noundef %110, ptr noundef %111)
%113 = icmp sgt i32 %112, 0
br i1 %113, label %103, label %114, !llvm.loop !8
114: ; preds = %108
%115 = load ptr, ptr %9, align 8
%116 = load ptr, ptr %10, align 8
%117 = icmp ugt ptr %115, %116
br i1 %117, label %118, label %119
118: ; preds = %114
br label %124
119: ; preds = %114
%120 = load ptr, ptr %9, align 8
%121 = load ptr, ptr %10, align 8
%122 = load i64, ptr %7, align 8
%123 = call i32 @memswp(ptr noundef %120, ptr noundef %121, i64 noundef %122)
br label %91
124: ; preds = %118
%125 = load ptr, ptr %12, align 8
%126 = load ptr, ptr %10, align 8
%127 = load i64, ptr %7, align 8
%128 = call i32 @memswp(ptr noundef %125, ptr noundef %126, i64 noundef %127)
%129 = load ptr, ptr %10, align 8
%130 = load ptr, ptr %12, align 8
%131 = ptrtoint ptr %129 to i64
%132 = ptrtoint ptr %130 to i64
%133 = sub i64 %131, %132
%134 = load ptr, ptr %13, align 8
%135 = load ptr, ptr %9, align 8
%136 = ptrtoint ptr %134 to i64
%137 = ptrtoint ptr %135 to i64
%138 = sub i64 %136, %137
%139 = icmp sgt i64 %133, %138
br i1 %139, label %140, label %150
140: ; preds = %124
%141 = load ptr, ptr %12, align 8
%142 = load ptr, ptr %15, align 8
%143 = getelementptr inbounds ptr, ptr %142, i64 0
store ptr %141, ptr %143, align 8
%144 = load ptr, ptr %10, align 8
%145 = load ptr, ptr %15, align 8
%146 = getelementptr inbounds ptr, ptr %145, i64 1
store ptr %144, ptr %146, align 8
%147 = load ptr, ptr %15, align 8
%148 = getelementptr inbounds ptr, ptr %147, i64 2
store ptr %148, ptr %15, align 8
%149 = load ptr, ptr %9, align 8
store ptr %149, ptr %12, align 8
br label %160
150: ; preds = %124
%151 = load ptr, ptr %9, align 8
%152 = load ptr, ptr %15, align 8
%153 = getelementptr inbounds ptr, ptr %152, i64 0
store ptr %151, ptr %153, align 8
%154 = load ptr, ptr %13, align 8
%155 = load ptr, ptr %15, align 8
%156 = getelementptr inbounds ptr, ptr %155, i64 1
store ptr %154, ptr %156, align 8
%157 = load ptr, ptr %15, align 8
%158 = getelementptr inbounds ptr, ptr %157, i64 2
store ptr %158, ptr %15, align 8
%159 = load ptr, ptr %10, align 8
store ptr %159, ptr %13, align 8
br label %160
160: ; preds = %150, %140
br label %217
161: ; preds = %26
%162 = load ptr, ptr %12, align 8
store ptr %162, ptr %10, align 8
%163 = load ptr, ptr %10, align 8
%164 = load i64, ptr %7, align 8
%165 = getelementptr inbounds i8, ptr %163, i64 %164
store ptr %165, ptr %9, align 8
br label %166
166: ; preds = %197, %161
%167 = load ptr, ptr %9, align 8
%168 = load ptr, ptr %13, align 8
%169 = icmp ult ptr %167, %168
br i1 %169, label %170, label %202
170: ; preds = %166
br label %171
171: ; preds = %191, %170
%172 = load ptr, ptr %8, align 8
%173 = load ptr, ptr %10, align 8
%174 = load ptr, ptr %10, align 8
%175 = load i64, ptr %7, align 8
%176 = getelementptr inbounds i8, ptr %174, i64 %175
%177 = call i32 %172(ptr noundef %173, ptr noundef %176)
%178 = icmp sgt i32 %177, 0
br i1 %178, label %179, label %196
179: ; preds = %171
%180 = load ptr, ptr %10, align 8
%181 = load ptr, ptr %10, align 8
%182 = load i64, ptr %7, align 8
%183 = getelementptr inbounds i8, ptr %181, i64 %182
%184 = load i64, ptr %7, align 8
%185 = call i32 @memswp(ptr noundef %180, ptr noundef %183, i64 noundef %184)
%186 = load ptr, ptr %10, align 8
%187 = load ptr, ptr %12, align 8
%188 = icmp eq ptr %186, %187
br i1 %188, label %189, label %190
189: ; preds = %179
br label %196
190: ; preds = %179
br label %191
191: ; preds = %190
%192 = load i64, ptr %7, align 8
%193 = load ptr, ptr %10, align 8
%194 = sub i64 0, %192
%195 = getelementptr inbounds i8, ptr %193, i64 %194
store ptr %195, ptr %10, align 8
br label %171, !llvm.loop !9
196: ; preds = %189, %171
br label %197
197: ; preds = %196
%198 = load ptr, ptr %9, align 8
store ptr %198, ptr %10, align 8
%199 = load i64, ptr %7, align 8
%200 = load ptr, ptr %9, align 8
%201 = getelementptr inbounds i8, ptr %200, i64 %199
store ptr %201, ptr %9, align 8
br label %166, !llvm.loop !10
202: ; preds = %166
%203 = load ptr, ptr %15, align 8
%204 = getelementptr inbounds [40 x ptr], ptr %14, i64 0, i64 0
%205 = icmp ne ptr %203, %204
br i1 %205, label %206, label %215
206: ; preds = %202
%207 = load ptr, ptr %15, align 8
%208 = getelementptr inbounds ptr, ptr %207, i64 -2
store ptr %208, ptr %15, align 8
%209 = load ptr, ptr %15, align 8
%210 = getelementptr inbounds ptr, ptr %209, i64 0
%211 = load ptr, ptr %210, align 8
store ptr %211, ptr %12, align 8
%212 = load ptr, ptr %15, align 8
%213 = getelementptr inbounds ptr, ptr %212, i64 1
%214 = load ptr, ptr %213, align 8
store ptr %214, ptr %13, align 8
br label %216
215: ; preds = %202
br label %218
216: ; preds = %206
br label %217
217: ; preds = %216, %160
br label %26
218: ; preds = %215
ret void
}
declare i32 @memswp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5cfzb7v6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qsort(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca [40 x ptr], align 16
%15 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%16 = load i64, ptr %7, align 8
%17 = mul i64 7, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %11, align 4
%19 = load ptr, ptr %5, align 8
store ptr %19, ptr %12, align 8
%20 = load ptr, ptr %12, align 8
%21 = load i64, ptr %6, align 8
%22 = load i64, ptr %7, align 8
%23 = mul i64 %21, %22
%24 = getelementptr inbounds i8, ptr %20, i64 %23
store ptr %24, ptr %13, align 8
%25 = getelementptr inbounds [40 x ptr], ptr %14, i64 0, i64 0
store ptr %25, ptr %15, align 8
br label %26
26: ; preds = %225, %4
%27 = load ptr, ptr %13, align 8
%28 = load ptr, ptr %12, align 8
%29 = ptrtoint ptr %27 to i64
%30 = ptrtoint ptr %28 to i64
%31 = sub i64 %29, %30
%32 = load i32, ptr %11, align 4
%33 = sext i32 %32 to i64
%34 = icmp sgt i64 %31, %33
br i1 %34, label %35, label %161
35: ; preds = %26
%36 = load ptr, ptr %12, align 8
%37 = load i64, ptr %7, align 8
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store ptr %38, ptr %9, align 8
%39 = load ptr, ptr %13, align 8
%40 = load i64, ptr %7, align 8
%41 = sub i64 0, %40
%42 = getelementptr inbounds i8, ptr %39, i64 %41
store ptr %42, ptr %10, align 8
%43 = load ptr, ptr %13, align 8
%44 = load ptr, ptr %12, align 8
%45 = ptrtoint ptr %43 to i64
%46 = ptrtoint ptr %44 to i64
%47 = sub i64 %45, %46
%48 = load i64, ptr %7, align 8
%49 = udiv i64 %47, %48
%50 = udiv i64 %49, 2
%51 = load i64, ptr %7, align 8
%52 = mul i64 %50, %51
%53 = load ptr, ptr %12, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 %52
%55 = load ptr, ptr %12, align 8
%56 = load i64, ptr %7, align 8
%57 = call i32 @memswp(ptr noundef %54, ptr noundef %55, i64 noundef %56)
%58 = load ptr, ptr %8, align 8
%59 = load ptr, ptr %9, align 8
%60 = load ptr, ptr %10, align 8
%61 = call i32 %58(ptr noundef %59, ptr noundef %60)
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %68
63: ; preds = %35
%64 = load ptr, ptr %9, align 8
%65 = load ptr, ptr %10, align 8
%66 = load i64, ptr %7, align 8
%67 = call i32 @memswp(ptr noundef %64, ptr noundef %65, i64 noundef %66)
br label %68
68: ; preds = %63, %35
%69 = load ptr, ptr %8, align 8
%70 = load ptr, ptr %12, align 8
%71 = load ptr, ptr %10, align 8
%72 = call i32 %69(ptr noundef %70, ptr noundef %71)
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %79
74: ; preds = %68
%75 = load ptr, ptr %12, align 8
%76 = load ptr, ptr %10, align 8
%77 = load i64, ptr %7, align 8
%78 = call i32 @memswp(ptr noundef %75, ptr noundef %76, i64 noundef %77)
br label %79
79: ; preds = %74, %68
%80 = load ptr, ptr %8, align 8
%81 = load ptr, ptr %9, align 8
%82 = load ptr, ptr %12, align 8
%83 = call i32 %80(ptr noundef %81, ptr noundef %82)
%84 = icmp sgt i32 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %79
%86 = load ptr, ptr %9, align 8
%87 = load ptr, ptr %12, align 8
%88 = load i64, ptr %7, align 8
%89 = call i32 @memswp(ptr noundef %86, ptr noundef %87, i64 noundef %88)
br label %90
90: ; preds = %85, %79
br label %91
91: ; preds = %119, %90
br label %92
92: ; preds = %96, %91
%93 = load i64, ptr %7, align 8
%94 = load ptr, ptr %9, align 8
%95 = getelementptr inbounds i8, ptr %94, i64 %93
store ptr %95, ptr %9, align 8
br label %96
96: ; preds = %92
%97 = load ptr, ptr %8, align 8
%98 = load ptr, ptr %9, align 8
%99 = load ptr, ptr %12, align 8
%100 = call i32 %97(ptr noundef %98, ptr noundef %99)
%101 = icmp slt i32 %100, 0
br i1 %101, label %92, label %102, !llvm.loop !6
102: ; preds = %96
br label %103
103: ; preds = %108, %102
%104 = load i64, ptr %7, align 8
%105 = load ptr, ptr %10, align 8
%106 = sub i64 0, %104
%107 = getelementptr inbounds i8, ptr %105, i64 %106
store ptr %107, ptr %10, align 8
br label %108
108: ; preds = %103
%109 = load ptr, ptr %8, align 8
%110 = load ptr, ptr %10, align 8
%111 = load ptr, ptr %12, align 8
%112 = call i32 %109(ptr noundef %110, ptr noundef %111)
%113 = icmp sgt i32 %112, 0
br i1 %113, label %103, label %114, !llvm.loop !8
114: ; preds = %108
%115 = load ptr, ptr %9, align 8
%116 = load ptr, ptr %10, align 8
%117 = icmp ugt ptr %115, %116
br i1 %117, label %118, label %119
118: ; preds = %114
br label %124
119: ; preds = %114
%120 = load ptr, ptr %9, align 8
%121 = load ptr, ptr %10, align 8
%122 = load i64, ptr %7, align 8
%123 = call i32 @memswp(ptr noundef %120, ptr noundef %121, i64 noundef %122)
br label %91
124: ; preds = %118
%125 = load ptr, ptr %12, align 8
%126 = load ptr, ptr %10, align 8
%127 = load i64, ptr %7, align 8
%128 = call i32 @memswp(ptr noundef %125, ptr noundef %126, i64 noundef %127)
%129 = load ptr, ptr %10, align 8
%130 = load ptr, ptr %12, align 8
%131 = ptrtoint ptr %129 to i64
%132 = ptrtoint ptr %130 to i64
%133 = sub i64 %131, %132
%134 = load ptr, ptr %13, align 8
%135 = load ptr, ptr %9, align 8
%136 = ptrtoint ptr %134 to i64
%137 = ptrtoint ptr %135 to i64
%138 = sub i64 %136, %137
%139 = icmp sgt i64 %133, %138
br i1 %139, label %140, label %150
140: ; preds = %124
%141 = load ptr, ptr %12, align 8
%142 = load ptr, ptr %15, align 8
%143 = getelementptr inbounds ptr, ptr %142, i64 0
store ptr %141, ptr %143, align 8
%144 = load ptr, ptr %10, align 8
%145 = load ptr, ptr %15, align 8
%146 = getelementptr inbounds ptr, ptr %145, i64 1
store ptr %144, ptr %146, align 8
%147 = load ptr, ptr %15, align 8
%148 = getelementptr inbounds ptr, ptr %147, i64 2
store ptr %148, ptr %15, align 8
%149 = load ptr, ptr %9, align 8
store ptr %149, ptr %12, align 8
br label %160
150: ; preds = %124
%151 = load ptr, ptr %9, align 8
%152 = load ptr, ptr %15, align 8
%153 = getelementptr inbounds ptr, ptr %152, i64 0
store ptr %151, ptr %153, align 8
%154 = load ptr, ptr %13, align 8
%155 = load ptr, ptr %15, align 8
%156 = getelementptr inbounds ptr, ptr %155, i64 1
store ptr %154, ptr %156, align 8
%157 = load ptr, ptr %15, align 8
%158 = getelementptr inbounds ptr, ptr %157, i64 2
store ptr %158, ptr %15, align 8
%159 = load ptr, ptr %10, align 8
store ptr %159, ptr %13, align 8
br label %160
160: ; preds = %150, %140
br label %225
161: ; preds = %26
%162 = load ptr, ptr %12, align 8
store ptr %162, ptr %10, align 8
%163 = load ptr, ptr %10, align 8
%164 = load i64, ptr %7, align 8
%165 = getelementptr inbounds i8, ptr %163, i64 %164
store ptr %165, ptr %9, align 8
%166 = load ptr, ptr %9, align 8
%167 = load ptr, ptr %13, align 8
%168 = icmp ult ptr %166, %167
br i1 %168, label %.lr.ph1, label %210
.lr.ph1: ; preds = %161
br label %169
169: ; preds = %.lr.ph1, %202
%170 = load ptr, ptr %8, align 8
%171 = load ptr, ptr %10, align 8
%172 = load ptr, ptr %10, align 8
%173 = load i64, ptr %7, align 8
%174 = getelementptr inbounds i8, ptr %172, i64 %173
%175 = call i32 %170(ptr noundef %171, ptr noundef %174)
%176 = icmp sgt i32 %175, 0
br i1 %176, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %169
br label %177
177: ; preds = %.lr.ph, %189
%178 = load ptr, ptr %10, align 8
%179 = load ptr, ptr %10, align 8
%180 = load i64, ptr %7, align 8
%181 = getelementptr inbounds i8, ptr %179, i64 %180
%182 = load i64, ptr %7, align 8
%183 = call i32 @memswp(ptr noundef %178, ptr noundef %181, i64 noundef %182)
%184 = load ptr, ptr %10, align 8
%185 = load ptr, ptr %12, align 8
%186 = icmp eq ptr %184, %185
br i1 %186, label %187, label %188
187: ; preds = %177
br label %201
188: ; preds = %177
br label %189
189: ; preds = %188
%190 = load i64, ptr %7, align 8
%191 = load ptr, ptr %10, align 8
%192 = sub i64 0, %190
%193 = getelementptr inbounds i8, ptr %191, i64 %192
store ptr %193, ptr %10, align 8
%194 = load ptr, ptr %8, align 8
%195 = load ptr, ptr %10, align 8
%196 = load ptr, ptr %10, align 8
%197 = load i64, ptr %7, align 8
%198 = getelementptr inbounds i8, ptr %196, i64 %197
%199 = call i32 %194(ptr noundef %195, ptr noundef %198)
%200 = icmp sgt i32 %199, 0
br i1 %200, label %177, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %189
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %169
br label %201
201: ; preds = %.loopexit, %187
br label %202
202: ; preds = %201
%203 = load ptr, ptr %9, align 8
store ptr %203, ptr %10, align 8
%204 = load i64, ptr %7, align 8
%205 = load ptr, ptr %9, align 8
%206 = getelementptr inbounds i8, ptr %205, i64 %204
store ptr %206, ptr %9, align 8
%207 = load ptr, ptr %9, align 8
%208 = load ptr, ptr %13, align 8
%209 = icmp ult ptr %207, %208
br i1 %209, label %169, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %202
br label %210
210: ; preds = %._crit_edge, %161
%211 = load ptr, ptr %15, align 8
%212 = getelementptr inbounds [40 x ptr], ptr %14, i64 0, i64 0
%213 = icmp ne ptr %211, %212
br i1 %213, label %214, label %223
214: ; preds = %210
%215 = load ptr, ptr %15, align 8
%216 = getelementptr inbounds ptr, ptr %215, i64 -2
store ptr %216, ptr %15, align 8
%217 = load ptr, ptr %15, align 8
%218 = getelementptr inbounds ptr, ptr %217, i64 0
%219 = load ptr, ptr %218, align 8
store ptr %219, ptr %12, align 8
%220 = load ptr, ptr %15, align 8
%221 = getelementptr inbounds ptr, ptr %220, i64 1
%222 = load ptr, ptr %221, align 8
store ptr %222, ptr %13, align 8
br label %224
223: ; preds = %210
br label %226
224: ; preds = %214
br label %225
225: ; preds = %224, %160
br label %26
226: ; preds = %223
ret void
}
declare i32 @memswp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmplso00yci.c'
source_filename = "/tmp/tmplso00yci.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBLPMEndpointGet(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 = icmp eq i32 %4, 1074069504
%6 = zext i1 %5 to i32
%7 = call i32 @ASSERT(i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 864
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i32, ptr %11, align 4
%13 = and i32 %12, 61440
%14 = ashr i32 %13, 12
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = shl i32 %15, 4
ret i32 %16
}
declare i32 @ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplso00yci.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBLPMEndpointGet(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 = icmp eq i32 %4, 1074069504
%6 = zext i1 %5 to i32
%7 = call i32 @ASSERT(i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 864
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i32, ptr %11, align 4
%13 = and i32 %12, 61440
%14 = ashr i32 %13, 12
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = shl i32 %15, 4
ret i32 %16
}
declare i32 @ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzrtnp0l_.c'
source_filename = "/tmp/tmpzrtnp0l_.c"
target datalayout = "e-m:e-p270: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/tmpzrtnp0l_.c"
target datalayout = "e-m:e-p270: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/tmpk5iposj8.c'
source_filename = "/tmp/tmpk5iposj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fill_buff(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load i32, ptr %5, align 4
%12 = call i32 @mask(i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
store i32 %12, ptr %16, align 4
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
ret void
}
declare i32 @mask(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/tmpk5iposj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fill_buff(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load i32, ptr %5, align 4
%11 = call i32 @mask(i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
store i32 %11, ptr %15, align 4
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
ret void
}
declare i32 @mask(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/tmpw326303r.c'
source_filename = "/tmp/tmpw326303r.c"
target datalayout = "e-m:e-p270: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 i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"Number malformed or is out of range: %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @reliable_atol(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr @errno, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strtol(ptr noundef %5, ptr noundef %3, i32 noundef 10)
store i64 %6, ptr %4, align 8
%7 = load i64, ptr @errno, align 8
%8 = icmp ne i64 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
%12 = icmp eq ptr %10, %11
br i1 %12, label %18, label %13
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %13, %9, %1
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %2, align 8
%21 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %20)
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %13
%24 = load i64, ptr %4, align 8
ret i64 %24
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw326303r.c"
target datalayout = "e-m:e-p270: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 i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"Number malformed or is out of range: %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @reliable_atol(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr @errno, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strtol(ptr noundef %5, ptr noundef %3, i32 noundef 10)
store i64 %6, ptr %4, align 8
%7 = load i64, ptr @errno, align 8
%8 = icmp ne i64 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
%12 = icmp eq ptr %10, %11
br i1 %12, label %18, label %13
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %13, %9, %1
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %2, align 8
%21 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %20)
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %13
%24 = load i64, ptr %4, align 8
ret i64 %24
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.